/* Judoka pages: phone first, colours from the mockups. System fonts (no external font service, privacy).
   Colours as variables (2.11.2026): light by default, dark when the phone is dark or when chosen under «Einstellungen»
   (data-wz-theme on <html>, set in the head of App.razor before the page is drawn). Pictures of techniques always lie
   on white paper: black lines on a dark ground would not be readable. */
:root {
    --wz-ink: #15202B;
    --wz-on-ink: #FFFFFF;
    --wz-muted: #5A6470;
    --wz-line: #E3E6E1;
    --wz-bg: #F6F7F4;
    --wz-card: #FFFFFF;
    --wz-face: #FBFCFA;
    --wz-soft: #F1F3EF;
    --wz-soft-2: #E9ECE6;
    --wz-field-line: #B8BEC4;
    --wz-accent: #1E4E9C;
    --wz-accent-fill: #1E4E9C;
    --wz-ok: #2E7D4F;
    --wz-info-bg: #E9F0FB;
    --wz-ok-bg: #E6F3EA;
    --wz-error-bg: #FBEAEA;
    --wz-error: #A12A2A;
    --wz-learning: #E3A72F;
    --wz-new: #C9CFD4;
    --wz-paper: #FFFFFF;
    --wz-shadow: rgba(0, 0, 0, .16);
    --wz-scheme: light;
}
/* The same dark values twice: when the phone is dark (unless «Hell» is chosen), and when «Dunkel» is chosen. */
@media (prefers-color-scheme: dark) {
    :root:not([data-wz-theme="light"]) {
        --wz-ink: #E6E9EC; --wz-on-ink: #0F1419; --wz-muted: #9AA4AE; --wz-line: #2C343C; --wz-bg: #0F1419; --wz-card: #182028;
        --wz-face: #1D262E; --wz-soft: #222B33; --wz-soft-2: #2A333C; --wz-field-line: #4A5560; --wz-accent: #8AB4F8;
        --wz-accent-fill: #2F62B8; --wz-ok: #5CC08A; --wz-info-bg: #1B2A40; --wz-ok-bg: #173325; --wz-error-bg: #3A1D1D;
        --wz-error: #F08A80; --wz-learning: #D9A43A; --wz-new: #4A535C; --wz-shadow: rgba(0, 0, 0, .5); --wz-scheme: dark;
    }
}
:root[data-wz-theme="dark"] {
    --wz-ink: #E6E9EC; --wz-on-ink: #0F1419; --wz-muted: #9AA4AE; --wz-line: #2C343C; --wz-bg: #0F1419; --wz-card: #182028;
    --wz-face: #1D262E; --wz-soft: #222B33; --wz-soft-2: #2A333C; --wz-field-line: #4A5560; --wz-accent: #8AB4F8;
    --wz-accent-fill: #2F62B8; --wz-ok: #5CC08A; --wz-info-bg: #1B2A40; --wz-ok-bg: #173325; --wz-error-bg: #3A1D1D;
    --wz-error: #F08A80; --wz-learning: #D9A43A; --wz-new: #4A535C; --wz-shadow: rgba(0, 0, 0, .5); --wz-scheme: dark;
}
/* Also beside the column on a wide screen. */
body:has(> .wz) { background: var(--wz-bg); }
:where(.wz img[src*="/bild/"]) { background-color: var(--wz-paper); border-radius: 8px; }

.wz {
    color-scheme: var(--wz-scheme);
    min-height: 100vh;
    background: var(--wz-bg);
    color: var(--wz-ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
    padding-bottom: 5rem;
}

.wz a { color: var(--wz-accent); }

.wz-header { display: flex; align-items: center; gap: .75rem; padding: 1rem 1rem .5rem; position: relative; }
.wz-logo-link { flex: none; display: block; line-height: 0; }
.wz-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: var(--wz-paper); }
.wz-club { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.wz-brand { font-size: .75rem; color: var(--wz-muted); font-weight: 700; }
.wz-brand-mark { display: flex; align-items: center; gap: .3rem; margin-top: .15rem; font-size: .8rem; font-weight: 600; color: var(--wz-ink); }
/* «WAZA» in brush letters (WazaMark.razor), «Club» in the text font. */
.wz-waza { display: block; height: .72rem; width: auto; flex: none; }
/* Public pages (PublicShell.razor): the name is the title, so as big as the club name. */
.wz .wz-brand-title { margin-top: 0; font-size: 1.15rem; font-weight: 700; color: var(--wz-ink); gap: .4rem; }
.wz-brand-title .wz-waza { height: 1rem; }

.wz-main { padding: .5rem 1rem 1rem; }
.wz-main h1 { font-size: 1.4rem; font-weight: 800; margin: .25rem 0 .75rem; }
.wz-main h2 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
.wz-muted { color: var(--wz-muted); }
.wz-small { font-size: .85rem; }

.wz-card { display: block; background: var(--wz-card); border: 1px solid var(--wz-line); border-radius: 14px; padding: .9rem 1rem; margin-bottom: .6rem; color: inherit; text-decoration: none; }
/* Only with a mouse: on a phone :hover stays on the card tapped last, until the next tap. */
@media (hover: hover) {
    a.wz-card:hover, .wz-card-link:hover { border-color: var(--wz-accent); }
}
/* A card with two links: the first covers the whole card, the second lies on top of it. */
.wz-card-link { position: relative; }
.wz-card-cover::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
.wz-card-over { position: relative; z-index: 1; }
.wz-start-actions { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .5rem; }
.wz .wz-card { color: var(--wz-ink); }

.wz-belt { display: flex; align-items: center; gap: .8rem; }
.wz-belt-bar { width: 2.6rem; height: .9rem; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .15); flex: none; }
.wz-belt-bar.half { background-image: linear-gradient(180deg, #fff 0 30%, var(--half) 30% 70%, #fff 70%); }
/* Belt with knot (BeltIcon.razor, beltIcon() in judoka.js). */
.wz-belt-icon { display: block; flex: none; overflow: visible; }
.wz-belt-icon-box { display: inline-flex; flex: none; vertical-align: middle; }
h2 .wz-belt-icon, strong .wz-belt-icon { display: inline-block; vertical-align: middle; margin-right: .35rem; }
.wz-belt-bar.stripes { background-image: repeating-linear-gradient(90deg, var(--half) 0 12px, #fff 12px 24px); }
/* Known with the belt worn, not ticked by hand (concept §16, «Frühere Gurte gelten als gekonnt»). */
.wz-item-belt input { opacity: .5; }
/* «Kann ich» on the technique page (TechniquePage.razor): the tick of the belt page, green once ticked. */
.wz-tick { display: flex; align-items: center; gap: .75rem; padding: .65rem 1rem; cursor: pointer; }
.wz-tick input[type=checkbox] { width: 1.35rem; height: 1.35rem; accent-color: var(--wz-ok); flex: none; }
.wz-tick:has(input:checked) { border-color: var(--wz-ok); }
/* The techniques of the belt: stays above the tab bar while scrolling; once ticked, «next» stands out. */
.wz-pager { position: sticky; bottom: calc(3.75rem + env(safe-area-inset-bottom)); z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem;
    margin: 1rem -1rem 0; padding: .5rem 1rem; background: var(--wz-card); border-top: 1px solid var(--wz-line); }
.wz .wz-pager-step { font-size: .85rem; color: var(--wz-ink); text-decoration: none; border: 1px solid var(--wz-field-line); border-radius: 99px; padding: .3rem .7rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; justify-self: start; max-width: 100%; }
.wz .wz-pager-next { justify-self: end; }
.wz-pager-count { font-size: .8rem; color: var(--wz-muted); white-space: nowrap; }
.wz:has(.wz-tick:not([hidden]) input:checked) .wz-pager-next { background: var(--wz-info-bg); border-color: var(--wz-accent); color: var(--wz-accent); }
.wz-item-belt label::after { content: 'mit dem Gurt bestanden'; display: block; font-size: .78rem; color: var(--wz-muted); }
.wz-belt-title { font-weight: 700; }
.wz-belt-sub { font-size: .85rem; color: var(--wz-muted); }
.wz-progress { margin-left: auto; font-size: .85rem; font-weight: 700; color: var(--wz-muted); white-space: nowrap; }
.wz-progress.wz-complete { color: var(--wz-ok); }

.wz-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.wz-chip { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--wz-line); background: var(--wz-card); text-decoration: none; color: var(--wz-ink); font-size: .9rem; }
.wz-chip.active { background: var(--wz-ink); color: var(--wz-on-ink); border-color: var(--wz-ink); }
.wz-chips-small { gap: .35rem; margin-top: -.35rem; }
.wz-chips-small .wz-chip { padding: .2rem .6rem; font-size: .82rem; }

.wz-items { list-style: none; padding: 0; margin: 0; background: var(--wz-card); border: 1px solid var(--wz-line); border-radius: 14px; overflow: hidden; }
.wz-items li { border-top: 1px solid var(--wz-line); }
.wz-items li:first-child { border-top: 0; }
.wz-item { display: flex; align-items: flex-start; gap: .75rem; padding: .7rem 1rem; }
.wz-item input[type=checkbox] { width: 1.35rem; height: 1.35rem; margin-top: .1rem; accent-color: var(--wz-ok); flex: none; }
.wz-item-name { font-weight: 600; }
.wz-item-sub { font-size: .85rem; color: var(--wz-muted); }
.wz-item-note { font-size: .85rem; color: var(--wz-accent); margin-top: .15rem; }
.wz-item-link { margin-left: auto; text-decoration: none; font-size: 1.2rem; padding: 0 .25rem; }
.wz-badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: .05rem .4rem; border-radius: 4px; background: var(--wz-soft); color: var(--wz-muted); margin-left: .3rem; vertical-align: middle; }

.wz-banner { border-radius: 12px; padding: .75rem 1rem; margin-bottom: .9rem; font-size: .92rem; }
.wz-banner.info { background: var(--wz-info-bg); }
.wz-banner.ok { background: var(--wz-ok-bg); }
.wz-banner.error { background: var(--wz-error-bg); }

.wz-locked { text-align: center; background: var(--wz-card); border: 1px dashed var(--wz-field-line); border-radius: 14px; padding: 1.25rem 1rem; margin: .75rem 0; }
.wz-locked-icon { font-size: 1.6rem; }
.wz-locked p { margin: .35rem 0; }

.wz-button { display: inline-block; background: var(--wz-accent-fill); color: #fff !important; border: 0; border-radius: 10px; padding: .65rem 1.2rem; font-weight: 700; text-decoration: none; font-size: 1rem; }
.wz-input { width: 100%; font-size: 1.2rem; padding: .7rem .9rem; border: 1px solid var(--wz-field-line); border-radius: 10px; background: var(--wz-card); color: var(--wz-ink); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }

.wz-image { aspect-ratio: 4 / 3; background: var(--wz-soft); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--wz-muted); margin-bottom: .75rem; }
.wz-steps { padding-left: 1.2rem; }
.wz-steps li { margin-bottom: .4rem; }

/* Glossary (TermsPage.razor): categories folded with a count, compact rows, explanation on a tap. */
/* Profiles (judoka.js): name in the header, the page «Profile», the next belt on «Gurte». */
.wz-profile-chip { margin-left: auto; padding: .3rem .75rem; border: 1px solid var(--wz-line); border-radius: 999px; background: var(--wz-card); font-size: .85rem; font-weight: 600; color: var(--wz-ink) !important; text-decoration: none; max-width: 40%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-profile-chip.active { border-color: var(--wz-accent); }
/* Menu of the chip: switch the profile at once. */
.wz-profile-menu { position: absolute; right: 1rem; top: calc(100% - .2rem); z-index: 30; min-width: 13rem; max-width: calc(100vw - 2rem);
    background: var(--wz-card); border: 1px solid var(--wz-line); border-radius: 12px; box-shadow: 0 8px 28px var(--wz-shadow); padding: .3rem; }
.wz-profile-menu-item { display: flex; gap: .45rem; align-items: flex-start; width: 100%; border: 0; background: none; text-align: left;
    padding: .55rem .6rem; border-radius: 8px; font-size: .95rem; color: var(--wz-ink); }
.wz-profile-menu-item:hover, .wz-profile-menu-item:focus-visible { background: var(--wz-soft); }
.wz-profile-menu-item.active { font-weight: 700; }
.wz-profile-menu-item small { display: block; font-weight: 400; font-size: .8rem; color: var(--wz-muted); }
.wz-profile-menu-check { width: 1rem; flex: none; color: var(--wz-ok); }
.wz-profile-menu-name { flex: 1; }
.wz-profile-menu-item .wz-belt-icon-box { align-self: center; }
.wz-profile-menu-manage { display: block; border-top: 1px solid var(--wz-line); margin-top: .25rem; padding: .6rem .6rem .45rem 2.05rem; font-size: .9rem; }
.wz-belt-next { border-color: var(--wz-accent); box-shadow: 0 0 0 1px var(--wz-accent); }
/* Programm (BeltsPage.razor): a bar in the colour of the belt under each one; the belt practised for in its colour. */
.wz-belt-card { flex-wrap: wrap; row-gap: .55rem; }
.wz-belt-bar { flex: 0 0 100%; position: relative; height: 5px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--wz-belt) 18%, var(--wz-soft)); }
.wz-belt-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--wz-p, 0) * 1%); background: var(--wz-belt); border-radius: 3px; transition: width .4s; }
.wz-belt-card.wz-belt-next { border-color: var(--wz-belt); box-shadow: 0 0 0 1px var(--wz-belt); background: color-mix(in srgb, var(--wz-belt) 10%, var(--wz-card)); }
.wz-next-label { display: block; font-size: .78rem; font-weight: 700; color: var(--wz-accent); }
.wz-belt-hint { font-size: .9rem; background: var(--wz-info-bg); border-color: transparent; }

/* Start page (concept §16): cards with a small title, first visit, «Mehr», switch «Gurte | Alle Techniken». */
.wz-kicker { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--wz-muted); margin-bottom: .35rem; }
.wz-start-card .wz-progress { align-self: center; }
.wz-start-next { display: block; font-size: .88rem; color: var(--wz-muted); margin-top: .4rem; }
/* «Hallo Lea» above the cards (3.11.2026). */
.wz-hello { margin: .1rem 0 .7rem; }
.wz-hello strong { display: block; font-size: 1.35rem; line-height: 1.2; }
.wz-hello span { font-size: .85rem; color: var(--wz-muted); }
/* «Mein Gurt» in the colour of the belt practised for (--wz-belt), a tint of it on the card, so also in dark. */
.wz-goal-card { background: color-mix(in srgb, var(--wz-belt) 14%, var(--wz-card)); border-color: color-mix(in srgb, var(--wz-belt) 55%, var(--wz-card)); }
/* The ticks as a ring (--wz-p from judoka.js); the number stays inside. */
.wz-ring { position: relative; width: 3.4rem; height: 3.4rem; flex: none; display: grid; place-items: center; font-size: .8rem; color: var(--wz-ink); }
.wz-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(color-mix(in srgb, var(--wz-belt) 80%, var(--wz-ink)) calc(var(--wz-p, 0) * 1%), color-mix(in srgb, var(--wz-belt) 22%, var(--wz-card)) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); }
.wz-ring.wz-complete { color: var(--wz-ok); }
/* Term of the day and flashcards side by side; a hidden one leaves the whole width to the other. */
.wz-start-pair { display: flex; gap: .6rem; align-items: stretch; }
.wz-start-pair > * { flex: 1 1 0; min-width: 0; }
.wz-start-image { display: block; width: 100%; max-height: 180px; object-fit: contain; background: var(--wz-paper); border-radius: 10px; margin-bottom: .5rem; }
.wz-week-status { display: block; font-size: .85rem; font-weight: 600; color: var(--wz-muted); margin-top: .3rem; }
.wz-week-status.ok { color: var(--wz-ok); }
.wz-review-link { color: inherit !important; text-decoration: none; }
.wz-welcome { border-color: var(--wz-accent); }
.wz-switch { display: flex; background: var(--wz-soft-2); border-radius: 10px; padding: 3px; margin-bottom: .9rem; }
.wz-switch a { flex: 1; text-align: center; padding: .4rem .5rem; border-radius: 8px; font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--wz-muted) !important; }
.wz-switch a.active { background: var(--wz-card); color: var(--wz-ink) !important; box-shadow: 0 1px 2px var(--wz-shadow); }
.wz-more { display: flex; align-items: center; gap: .9rem; }
.wz-more-sign { width: 1.8rem; text-align: center; font-size: 1.35rem; color: var(--wz-accent); flex: none; }
.wz-more-sign.ok { color: var(--wz-ok); }
/* «Mehr» (3.11.2026): a heading, then one list with lines between the rows; the sign on a tint per heading. */
.wz-list-title { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--wz-muted); margin: 1rem .25rem .4rem; }
.wz-list { background: var(--wz-card); border: 1px solid var(--wz-line); border-radius: 14px; overflow: hidden; margin-bottom: .6rem; }
.wz .wz-list-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; color: var(--wz-ink); text-decoration: none; }
.wz-list-row + .wz-list-row { border-top: 1px solid var(--wz-line); }
a.wz-list-row::after { content: "›"; margin-left: auto; padding-left: .5rem; font-size: 1.2rem; color: var(--wz-muted); }
@media (hover: hover) { a.wz-list-row:hover { background: var(--wz-face); } }
.wz-list-row .wz-more-sign { width: 2.1rem; height: 2.1rem; line-height: 2.1rem; font-size: 1.1rem; border-radius: 9px; }
.wz-tone-dojo .wz-more-sign { background: var(--wz-info-bg); color: var(--wz-accent); }
.wz-tone-learn .wz-more-sign { background: var(--wz-ok-bg); color: var(--wz-ok); }
.wz-tone-me .wz-more-sign { background: var(--wz-soft); color: var(--wz-ink); }
.wz-tone-me .wz-more-sign.ok { background: var(--wz-ok-bg); color: var(--wz-ok); }

/* «Neu im Dojo»: one folded card per section. */
.wz-new-body { border-top: 1px solid var(--wz-line); padding: .8rem 1rem 1rem; }
.wz-new-body .wz-steps { margin-bottom: .5rem; }
.wz-new-terms { border: 1px solid var(--wz-line); border-radius: 10px; }
.wz-new-terms .wz-term-row { padding: .45rem .75rem; border-top: 1px solid var(--wz-line); }
.wz-new-terms .wz-term-row:first-child { border-top: 0; }
.wz-new-grades { font-size: .9rem; font-weight: 600; }

/* Flashcards and «Abfragen»: Leitner box, one card at a time, four answers. */
.wz-switch button { flex: 1; border: 0; background: none; padding: .4rem .5rem; border-radius: 8px; font-size: .92rem; font-weight: 600; color: var(--wz-muted); }
.wz-switch button.active { background: var(--wz-card); color: var(--wz-ink); box-shadow: 0 1px 2px var(--wz-shadow); }
.wz-flash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
/* The next card slides in from the right: only inside the round, never wider than the screen. */
.wz-flash { overflow: hidden; overflow: clip; }
/* Flashcards (concept §16): what is due today, the bar «neu · am Lernen · gelernt», settings folded. */
.wz-flash-today { display: block; font-size: 1.15rem; }
.wz-learn { margin-top: .9rem; }
.wz-learn-bar { display: flex; height: .7rem; border-radius: 99px; overflow: hidden; background: var(--wz-soft-2); }
.wz-learn-bar span { display: block; height: 100%; transition: width .4s; }
.wz-learn-kann { background: var(--wz-ok); }
.wz-learn-lernen { background: var(--wz-learning); }
.wz-learn-neu { background: var(--wz-new); }
.wz-learn-legend { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .78rem; color: var(--wz-muted); margin-top: .45rem; }
/* The three are buttons: a tap shows their cards (judoka.js, learnBar). */
button.wz-learn-key { font: inherit; color: inherit; background: none; border: 1px solid var(--wz-line); border-radius: 999px; padding: .15rem .55rem; cursor: pointer; }
button.wz-learn-key::after { content: '▾'; display: inline-block; margin-left: .3rem; font-size: .7rem; transition: transform .15s; }
button.wz-learn-key.open { background: var(--wz-soft); color: var(--wz-ink); border-color: var(--wz-field-line); }
button.wz-learn-key.open::after { transform: rotate(180deg); }
.wz-learn-list { margin-top: .5rem; border-top: 1px solid var(--wz-line); }
.wz-learn-list ul { list-style: none; margin: 0; padding: 0; }
.wz-learn-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid var(--wz-line); }
.wz-learn-list li:last-child { border-bottom: 0; }
.wz-learn-name { display: block; font-weight: 600; font-size: .95rem; color: var(--wz-ink); }
.wz-learn-meaning { display: block; font-size: .82rem; color: var(--wz-muted); }
.wz-learn-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.wz-learn-when { font-size: .75rem; color: var(--wz-muted); white-space: nowrap; }
/* How often known in a row: three dots, filled in the colour of «am Lernen». */
.wz-learn-dots { display: inline-flex; gap: .2rem; }
.wz-learn-dots i { width: .5rem; height: .5rem; border-radius: 50%; border: 1px solid var(--wz-learning); }
.wz-learn-dots i.on { background: var(--wz-learning); }
.wz-learn-when.due { color: var(--wz-accent); font-weight: 600; }
.wz-learn-list p, .wz-learn-list > .wz-link-button { margin-top: .5rem; }
/* «ⓘ» after the three: a round button with the principle (judoka.js, learnBar). */
.wz-learn-info-button { width: 1.6rem; height: 1.6rem; flex: none; border-radius: 50%; border: 1px solid var(--wz-line); background: none;
    color: var(--wz-accent); font: italic 700 .85rem/1 Georgia, serif; cursor: pointer; }
.wz-learn-info-button.open { background: var(--wz-soft); border-color: var(--wz-field-line); }
.wz-learn-info { padding: .6rem 0 .2rem; font-size: .88rem; }
.wz-learn-list .wz-learn-info ul { margin: .35rem 0 .5rem; padding-left: 1.1rem; list-style: disc; }
.wz-learn-list .wz-learn-info li { display: list-item; padding: 0; border: 0; margin-bottom: .2rem; }
.wz-learn-info p { margin: 0; color: var(--wz-muted); }
.wz-learn-key::before { content: ''; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .3rem; vertical-align: -.02rem; }
.wz-learn-key-kann::before { background: var(--wz-ok); }
.wz-learn-key-lernen::before { background: var(--wz-learning); }
.wz-learn-key-neu::before { background: var(--wz-new); }
.wz-learn-head { display: flex; align-items: center; gap: .5rem; }
.wz-learn-head .wz-learn-bar { flex: 1; min-width: 0; }
.wz-learn-total { font-weight: 700; font-size: .92rem; margin: .3rem 0 0; }
.wz-flash-settings { margin-top: .9rem; border-top: 1px solid var(--wz-line); padding-top: .6rem; }
.wz-flash-settings summary { cursor: pointer; font-size: .9rem; color: var(--wz-muted); list-style: none; }
.wz-flash-settings summary::-webkit-details-marker { display: none; }
.wz-flash-settings summary span { color: var(--wz-ink); font-weight: 600; }
.wz-flash-settings[open] summary { margin-bottom: .6rem; }
.wz-flash-modes { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-bottom: .7rem; }
.wz-flash-modes button { border: 1px solid var(--wz-field-line); background: var(--wz-card); border-radius: 10px; padding: .5rem .6rem; text-align: left; color: var(--wz-ink); }
.wz-flash-modes button strong { display: block; font-size: .95rem; }
.wz-flash-modes button span { display: block; font-size: .78rem; color: var(--wz-muted); }
.wz-flash-modes button.active { border-color: var(--wz-accent); box-shadow: inset 0 0 0 1px var(--wz-accent); background: var(--wz-info-bg); }
/* The card: both faces in one grid cell, so it has the height of the larger one; turning in 0.4 s. */
.wz-flash-card { display: grid; grid-template-columns: minmax(0, 1fr); perspective: 1200px; margin: .3rem 0 .6rem; border-radius: 12px; }
.wz-flash-card:focus-visible { outline: 2px solid var(--wz-accent); outline-offset: 3px; }
.wz-flash-tappable { cursor: pointer; }
.wz-flash-face { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; text-align: center;
    min-height: 7.5rem; padding: .8rem .6rem; border: 1px solid var(--wz-line); border-radius: 12px; background: var(--wz-face);
    backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .4s ease, opacity .4s ease; }
.wz-flash-back { transform: rotateY(180deg); }
.wz-flash-back:empty { display: none; }
.wz-flash-card.flipped .wz-flash-front { transform: rotateY(-180deg); }
.wz-flash-card.flipped .wz-flash-back { transform: rotateY(0deg); }
.wz-flash-instant .wz-flash-face { transition: none; }
.wz-flash-enter { animation: wz-flash-in .3s ease-out; }
@keyframes wz-flash-in { from { transform: translateX(35%); opacity: 0; } }
/* The server takes a while (judoka.js): a thin bar at the top, and a form being sent does not react any more. */
.wz-loading-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 3000; overflow: hidden; background: var(--wz-soft-2); pointer-events: none; }
.wz-loading-bar::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: var(--wz-accent); animation: wz-loading 1.1s ease-in-out infinite; }
@keyframes wz-loading { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
form[data-wz-sending] button:not([type="button"]) { opacity: .6; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
    .wz-loading-bar::before { width: 100%; animation: none; }
    .wz-flash-face, .wz-flash-card.flipped .wz-flash-front, .wz-flash-card.flipped .wz-flash-back { transform: none; }
    .wz-flash-back { opacity: 0; }
    .wz-flash-card.flipped .wz-flash-front { opacity: 0; }
    .wz-flash-card.flipped .wz-flash-back { opacity: 1; }
    .wz-flash-enter { animation: wz-flash-fade .3s ease-out; }
    @keyframes wz-flash-fade { from { opacity: 0; } }
}
.wz-flash-word { font-size: 1.45rem; font-weight: 800; line-height: 1.25; display: flex; align-items: center; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.wz-flash-back .wz-flash-word { font-size: 1.2rem; }
.wz-flash-picture { position: relative; display: inline-block; max-width: 100%; }
.wz-flash-image { display: block; max-width: 100%; max-height: 240px; object-fit: contain; }
.wz-flash-back .wz-flash-image { max-height: 170px; }
.wz-flash-zoom { position: absolute; right: .25rem; bottom: .25rem; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: var(--wz-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); display: flex; align-items: center; justify-content: center; padding: 0; }
.wz-flash-zoom svg { width: 1.3rem; height: 1.3rem; }
.wz-flash-answer { font-size: 1.05rem; font-weight: 600; margin: .15rem 0; }
.wz-flash-choices { display: grid; gap: .45rem; margin-bottom: .5rem; }
.wz-flash-choices-pictures { grid-template-columns: 1fr 1fr; }
.wz-choice-row { display: flex; gap: .35rem; align-items: center; }
.wz-choice-row .wz-choice { flex: 1; }
.wz-choice { text-align: left; border: 1px solid var(--wz-field-line); background: var(--wz-card); border-radius: 10px; padding: .6rem .8rem; font-size: 1rem; color: var(--wz-ink); }
.wz-choice-picture { padding: .3rem; display: flex; align-items: center; justify-content: center; }
.wz-choice-picture img { max-width: 100%; max-height: 130px; object-fit: contain; }
.wz-choice.right { border-color: var(--wz-ok); background: var(--wz-ok-bg); font-weight: 700; box-shadow: inset 0 0 0 1px var(--wz-ok); }
.wz-choice.wrong { border-color: var(--wz-error); background: var(--wz-error-bg); }
.wz-choice:disabled { opacity: 1; }
.wz-flash-note { min-height: 1.3rem; font-size: .88rem; color: var(--wz-muted); text-align: center; margin: 0 0 .4rem; }
.wz-flash-actions { justify-content: center; }
.wz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wz-say.wz-say-big { width: 4.5rem; height: 4.5rem; }
.wz-say.wz-say-big svg { width: 2.4rem; height: 2.4rem; }
.wz-check { display: flex; gap: .45rem; align-items: center; font-size: .9rem; margin-bottom: .35rem; }
/* «Ich bin Mitglied …» before unlocking (MemberCheck.razor): the box at the first line of a longer text. */
.wz-member-check { align-items: flex-start; margin: .25rem 0 .75rem; }
.wz-member-check input { margin-top: .2rem; flex: none; width: 1.1rem; height: 1.1rem; }
/* Camera for the QR code of the poster (UnlockPage.razor). */
.wz-scanner { margin-top: .75rem; }
.wz-scanner video { display: block; width: 100%; max-height: 60vh; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #000; margin-bottom: .35rem; }
/* Dates from the club calendars (start page, «Agenda», «Wettkampf»). */
.wz-date { padding: .35rem 0; border-top: 1px solid var(--wz-line); }
.wz-date:first-of-type { border-top: 0; padding-top: 0; }
.wz-date-when { display: block; font-size: .8rem; font-weight: 700; color: var(--wz-muted); }
.wz-date-title { display: block; font-weight: 600; }
.wz-agenda h2 { margin-top: 1rem; }
.wz-agenda .wz-card { margin-bottom: .45rem; }
/* Agenda: own period von–bis, folded under the chips. */
.wz-agenda-range { margin: -.25rem 0 .6rem; }
.wz-agenda-range summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--wz-accent); }
.wz-agenda-form { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-items: end; margin: .5rem 0 .35rem; }
.wz-agenda-form button { grid-column: 1 / -1; justify-self: start; }
.wz-next-tournament { border-color: var(--wz-accent); }
.wz-check-item { align-items: flex-start; font-size: .95rem; padding: .3rem 0; }
.wz-check-item input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; flex: none; }

/* «Dein Weg»: belt band, timeline by year, photos. */
.wz-band { display: flex; height: 1.1rem; border-radius: 6px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .18); margin: .3rem 0 .6rem; }
.wz-band-part { min-width: 4px; background: var(--belt); border-right: 1px solid rgba(0, 0, 0, .12); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.wz-band-part:last-child { border-right: 0; }
.wz-band-part.half { background: linear-gradient(180deg, #fff 0 30%, var(--belt) 30% 70%, #fff 70%); }
.wz-band-part.stripes { background: repeating-linear-gradient(90deg, var(--belt) 0 12px, #fff 12px 24px); }
.wz-band-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.wz-way-year h2 { margin-top: 1rem; }
.wz-way-event { display: flex; gap: .8rem; align-items: flex-start; }
.wz-way-event .wz-belt-bar { margin-top: .35rem; }
.wz-way-sign { width: 2.6rem; text-align: center; color: var(--wz-accent); flex: none; }
.wz-way-body { flex: 1; min-width: 0; }
.wz-way-text { display: block; font-weight: 600; overflow-wrap: anywhere; }
.wz-way-photo { display: block; border: 0; padding: 0; background: none; margin: .4rem 0; }
.wz-way-photo img { max-width: 100%; max-height: 180px; border-radius: 8px; }
.wz-way-summary { margin: -.3rem 0 .5rem; }
.wz-way-suggest { border-color: var(--wz-accent); }
.wz-training-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .25rem 0; font-weight: 600; }
.wz-profile-groups { margin: .2rem 0 .6rem; }
.wz-profile-groups .wz-check { font-size: .92rem; }
.wz-diary-entry { padding: .55rem .9rem; }
.wz-way-ask { background: var(--wz-soft); border-radius: 10px; padding: .6rem .7rem; margin: -.2rem 0 .6rem; }
/* «Bild gross anschauen»: the whole screen, dark, outside .wz (appended to body). */
img[data-wz-zoom] { cursor: zoom-in; }
.wz-gallery-button { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.wz-zoom { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0d1117; color: #fff; font-family: inherit; }
.wz-zoom[open] { display: flex; flex-direction: column; }
.wz-zoom::backdrop { background: #0d1117; }
.wz-zoom [hidden] { display: none !important; }
.wz-zoom-top { display: flex; align-items: center; gap: .5rem; padding: max(.6rem, env(safe-area-inset-top)) .9rem .5rem; }
.wz-zoom-title { flex: 1; min-width: 0; }
.wz-zoom-title strong { display: block; font-size: 1.05rem; }
.wz-zoom-title span { display: block; font-size: .85rem; opacity: .75; }
.wz-zoom-close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; padding: .2rem .5rem; cursor: pointer; }
.wz-zoom-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.wz-zoom-stage img { max-width: 100%; max-height: 100%; background: #fff; transform-origin: center; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.wz-zoom-bottom { display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 3.2rem; padding: .5rem .9rem max(.7rem, env(safe-area-inset-bottom)); }
.wz-zoom-bottom a { color: #fff; }
.wz-zoom-step { background: rgba(255, 255, 255, .12); border: 0; color: #fff; border-radius: 50%; width: 2.6rem; height: 2.6rem; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.wz-zoom-hint { position: absolute; left: 50%; bottom: 5rem; transform: translateX(-50%); background: rgba(0, 0, 0, .75); padding: .4rem .8rem; border-radius: 999px; font-size: .85rem; margin: 0; white-space: nowrap; }
.wz-zoom .wz-say { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
.wz-sheet .wz-band-head strong { font-size: 12pt; }
.wz-sheet-year h2 { border-bottom: 1px solid #999; }
.wz-sheet-event { margin: .15cm 0; break-inside: avoid; }
.wz-sheet-event img { display: block; max-width: 8cm; max-height: 6cm; margin: .15cm 0 .3cm; }

/* «Wettkampf»: scores, gestures and age categories. */
.wz-rule-terms { border: 1px solid var(--wz-line); border-radius: 10px; margin-bottom: .6rem; }
.wz-rule-term { display: flex; flex-direction: column; gap: .1rem; padding: .55rem .75rem; border-top: 1px solid var(--wz-line); }
.wz-rule-term:first-child { border-top: 0; }
.wz-rule-meaning { font-weight: 600; font-size: .92rem; }
.wz-rule-detail { font-size: .88rem; color: var(--wz-muted); }
.wz-rule-category { border-left: 3px solid var(--wz-accent); padding: .2rem 0 .2rem .75rem; margin-bottom: .8rem; }
.wz-rule-time { font-size: .85rem; color: var(--wz-muted); margin-bottom: .2rem; }
.wz-field { width: 100%; font-size: 1rem; padding: .55rem .75rem; border: 1px solid var(--wz-field-line); border-radius: 10px; background: var(--wz-card); color: var(--wz-ink); margin-bottom: .5rem; }
.wz-profile.active { border-color: var(--wz-accent); }
.wz-profile-head { display: flex; gap: .6rem; align-items: flex-start; }
.wz-profile-head .wz-field { flex: 1; }
.wz-profile-active { color: var(--wz-ok); font-weight: 700; font-size: .9rem; padding-top: .55rem; white-space: nowrap; }
.wz-profile-belt { display: block; font-size: .85rem; color: var(--wz-muted); }
.wz-profile-belt > span { display: block; margin-bottom: .15rem; }
.wz-profile-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.wz-button.secondary { background: var(--wz-card); color: var(--wz-accent) !important; border: 1px solid var(--wz-accent); }
.wz-button-small { padding: .3rem .8rem; font-size: .85rem; }
.wz-button-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.wz-button-row .wz-button { cursor: pointer; padding: .5rem .9rem; font-size: .92rem; }
.wz-link-button { background: none; border: 0; padding: 0; color: var(--wz-accent); text-decoration: underline; font-size: .9rem; }
.wz-import { border-color: var(--wz-accent); }
.wz-ok-text { color: var(--wz-ok); }

/* Backup sheet: only it is printed (judoka.js sets wz-printing while the print dialog is open). */
.wz-sheet { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #000; padding: 1.5cm; }
.wz-sheet h1 { font-size: 22pt; margin: 0 0 .2cm; }
.wz-sheet h2 { font-size: 14pt; margin: .6cm 0 .2cm; }
.wz-sheet-label { margin: .6cm 0 .1cm; font-weight: 700; }
.wz-sheet-note { margin-top: .6cm; padding: .3cm; border: 1px solid #999; }
@media print {
    body.wz-printing * { visibility: hidden; }
    body.wz-printing .wz-sheet, body.wz-printing .wz-sheet * { visibility: visible; }
    body.wz-printing .wz-sheet { position: absolute; left: 0; top: 0; width: 100%; }
    body.wz-printing .wz-tabs { display: none; }
}
.wz-import-list { padding-left: 1.2rem; margin: .3rem 0 .6rem; }

/* Start page: what the app offers, and short lists with a tick. */
.wz-features { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1rem 0 .4rem; }
.wz-feature { display: flex; flex-direction: column; gap: .15rem; background: var(--wz-card); border: 1px solid var(--wz-line); border-radius: 14px; padding: .8rem .9rem; font-size: .88rem; color: var(--wz-muted); }
.wz-feature strong { font-size: 1rem; color: var(--wz-ink); }
.wz-feature-sign { font-size: 1.6rem; line-height: 1.2; color: var(--wz-accent); }
.wz-checks { list-style: none; padding: 0; margin: 0; }
.wz-checks li { position: relative; padding-left: 1.5rem; margin-bottom: .35rem; }
.wz-checks li:last-child { margin-bottom: 0; }
.wz-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--wz-ok); font-weight: 700; }

.wz-card.wz-group { padding: 0; }
/* Terms and techniques (3.11.2026): the groups in one list, lines between them; an open one on a slightly darker
   ground. The first group's line lies under the frame. Nothing left after a search: no empty frame. */
.wz-group-list { background: var(--wz-card); border: 1px solid var(--wz-line); border-radius: 14px; overflow: hidden; margin-bottom: .6rem; }
.wz-group-list > .wz-card.wz-group { margin: -1px 0 0; border: 0; border-top: 1px solid var(--wz-line); border-radius: 0; }
.wz-group-list > .wz-group[open] > .wz-terms { background: color-mix(in srgb, var(--wz-soft) 60%, var(--wz-card)); }
.wz-group-list:not(:has(> .wz-group:not([hidden]))) { display: none; }
.wz-group > summary { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; cursor: pointer; list-style: none; }
.wz-group > summary::-webkit-details-marker { display: none; }
.wz-main .wz-group > summary h2 { margin: 0; flex: 1; }
.wz-count { font-size: .85rem; font-weight: 600; color: var(--wz-muted); }
.wz-group > summary::after, .wz-term-more::after { content: ""; width: .5rem; height: .5rem; border-right: 2px solid var(--wz-muted); border-bottom: 2px solid var(--wz-muted); transform: rotate(45deg); margin: 0 .3rem 0 .2rem; flex: none; transition: transform .15s; }
.wz-group[open] > summary::after, .wz-term[open] > .wz-term-more::after { transform: rotate(-135deg); }
.wz-terms { border-top: 1px solid var(--wz-line); }
.wz-term { border-top: 1px solid var(--wz-line); }
.wz-term:first-child { border-top: 0; }
.wz-term-row { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .6rem; padding: .55rem 1rem; }
summary.wz-term-row { cursor: pointer; list-style: none; }
summary.wz-term-row::-webkit-details-marker { display: none; }
.wz-term-name { display: inline-flex; align-items: center; font-weight: 700; min-width: 7rem; }
.wz-term-meaning { flex: 1 1 9rem; }
.wz-term-more::after { margin-left: auto; width: .4rem; height: .4rem; }
.wz-term-explanation { margin: 0; padding: 0 1rem .6rem; font-size: .85rem; color: var(--wz-muted); }
.wz-group-meaning { display: block; font-size: .8rem; font-weight: 400; color: var(--wz-muted); }
.wz-tech-row { display: flex; align-items: center; gap: .5rem; padding: .5rem 1rem; }
.wz-tech-text { flex: 1; min-width: 0; }
/* «Nach Gokyo»: the number of the throw in its group. */
.wz-tech-number { flex: none; width: 1rem; text-align: right; font-size: .8rem; color: var(--wz-muted); font-variant-numeric: tabular-nums; }
.wz-tech-link { color: var(--wz-ink) !important; text-decoration: none; }
.wz-tech-sub { display: block; font-size: .85rem; color: var(--wz-muted); }
.wz-kyu { margin-left: .3rem; white-space: nowrap; }
.wz-prohibited { margin-left: .3rem; background: var(--wz-error-bg); color: var(--wz-error); }
.wz-rule-picture { display: block; max-width: 100%; max-height: 170px; margin: .4rem 0 .6rem; }
/* A small piece of belt in its colour (2.11.2026, before a dot). */
.wz-kyu-bar { display: inline-block; width: .95rem; height: .38rem; border-radius: 2px; border: 1px solid var(--wz-line); margin-right: .3rem; vertical-align: middle; }

/* Speaker button for the spoken pronunciation (SayButton.razor, judoka.js). */
.wz-say { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; margin-left: .35rem; border: 1px solid var(--wz-line); border-radius: 50%; background: var(--wz-card); color: var(--wz-accent); cursor: pointer; vertical-align: middle; flex: none; }
.wz-say svg { width: 1.15rem; height: 1.15rem; }
.wz-say.wz-playing { background: var(--wz-accent-fill); border-color: var(--wz-accent-fill); color: #fff; }
.wz-search { position: sticky; top: 0; z-index: 2; background: var(--wz-bg); padding: .25rem 0 .5rem; margin-bottom: .25rem; }
.wz-search input { width: 100%; font-size: 16px; padding: .6rem .9rem; border: 1px solid var(--wz-line); border-radius: 12px; background: var(--wz-card); color: var(--wz-ink); }
.wz-search input:focus { outline: 2px solid var(--wz-accent); outline-offset: 1px; }
/* Order and Kyu of «Alle Techniken» in one row. */
.wz-list-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: .75rem; }
.wz-list-options .wz-field { margin-bottom: 0; }

.wz-install summary { font-weight: 700; cursor: pointer; }
.wz-install-button { width: 100%; }
.wz [hidden] { display: none !important; }
@media (display-mode: standalone) {
    .wz-install { display: none; }
}

.wz-tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; background: var(--wz-card); border-top: 1px solid var(--wz-line); padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom)); z-index: 10; }
.wz-tabs a { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; font-size: .72rem; text-decoration: none; color: var(--wz-muted) !important; padding: .2rem 0; }
.wz-tabs a span { font-size: 1.15rem; line-height: 1.3; }
.wz-tabs a.active { color: var(--wz-ink) !important; font-weight: 700; }
/* The active tab: its sign on a tint (3.11.2026). */
.wz-tabs a span { padding: 0 .9rem; border-radius: 99px; transition: background-color .15s; }
.wz-tabs a.active span { background: var(--wz-info-bg); color: var(--wz-accent); }

.wz-print-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .35rem; }
.wz-print-links a { font-weight: 700; }

.wz-video { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #15202B; margin-bottom: .4rem; }
.wz-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.wz-video-play { width: 100%; height: 100%; border: 0; background: #15202B; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; font-weight: 700; font-size: 1rem; cursor: pointer; }
.wz-video-icon { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--wz-accent-fill); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; padding-left: .2rem; }
.wz-video-note { font-weight: 400; font-size: .8rem; opacity: .75; }

.wz-legal { text-align: center; font-size: .8rem; color: var(--wz-muted); padding: 1.5rem 1rem 1rem; }
.wz-legal a { color: var(--wz-muted); }

.wz-photo { display: block; width: 100%; max-height: 60vh; object-fit: contain; background: var(--wz-paper); border-radius: 14px; border: 1px solid var(--wz-line); margin-bottom: .75rem; }
