/* ==========================================================================
   Account shell (#717, variant C of #716) — the static-SSR account pages (#619): plain markup, no MudBlazor
   runtime. Two frames share it:
   - .acc-shell--stage (AccountLayout): signed-out and single-purpose pages, a centred card on a dark green stage;
   - .acc-shell--app (ManageLayout): the app's chrome (green app bar, drawer) around the account header + tabs,
     or around a flow page.
   Its own shell per ADR-0013: the neutral/brand ramp is the cfg- ramp of app.css (Einstellungen), copied
   verbatim — do not edit one without checking whether the other drifted. Nothing here imports or couples to
   another page's classes. Class names follow the prototype (#716).
   ========================================================================== */

.acc-shell {
    /* ── copied verbatim from .cfg-shell (app.css) ── */
    --bg: #F5F7F6;
    --surface: #FFFFFF;
    --surface-2: #FAFBFA;
    --surface-3: #F0F3F1;
    --line: #E4E8E6;
    --line-strong: #CBD4CF;
    --text: #12211C;
    --text-2: #5C6B65;
    --text-3: #93A09A;
    --brand: #059669;
    --brand-deep: #047857;
    --brand-ink: #064E3B;
    --brand-tint: #E7F5EF;
    --amber: #D97706;
    --amber-tint: #FDF2E2;
    --red: #EF4444;
    --on-brand: #FFFFFF;
    --shadow-rest: 0 1px 1.5px rgba(9, 32, 25, .05);
    --shadow-hover: 0 3px 10px rgba(9, 32, 25, .11);

    /* ── the account's own additions: the inks a tinted alert or chip writes in, the drawer ── */
    --amber-ink: #7C4A05;
    --red-ink: #B91C1C;
    --red-tint: #FDECEC;
    --on-red: #FFFFFF;
    --drawer: #FFFFFF;
    --scrim: rgba(18, 33, 28, .45);
    --shadow-pop: 0 24px 64px rgba(9, 32, 25, .22);

    /* ── constant in both themes: the app bar, and the stage with the logo's performance curve ── */
    --appbar: linear-gradient(135deg, #064E3B, #047857, #059669);
    --on-appbar: #FFFFFF;
    --on-appbar-2: rgba(255, 255, 255, .78);
    --on-appbar-hover: rgba(255, 255, 255, .14);
    --hero-a: #022C22;
    --hero-b: #065F46;
    --hero-line: rgba(255, 255, 255, .30);
    --hero-fill: rgba(255, 255, 255, .07);
    --hero-spike: #F59E0B;
    --hero-link: #A7F3D0;
    --qr-fg: #12211C;
    --qr-bg: #FFFFFF;

    --font: "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", Consolas, monospace;

    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

/* The account pages follow the system's light/dark choice (#716; one persisted switch is #722). */
@media (prefers-color-scheme: dark) {
    .acc-shell {
        /* ── copied verbatim from .cfg-shell--dark (app.css) ── */
        --bg: #0A0A0A;
        --surface: #141414;
        --surface-2: #101010;
        --surface-3: #1C1C1C;
        --line: #232323;
        --line-strong: #303030;
        --text: #E0E0E0;
        --text-2: #9E9E9E;
        --text-3: #6C6C6C;
        --brand-deep: #10B981;
        --brand-ink: #6EE7B7;
        --brand-tint: #10241C;
        --red: #F87171;
        --on-brand: #05170F;

        /* ── the account's own additions ── */
        --amber-ink: #FCD34D;
        --amber-tint: #2A1E0C;
        --red-ink: #FCA5A5;
        --red-tint: #2A1414;
        --on-red: #1A0505;
        --drawer: #0E0E0E;
        --scrim: rgba(0, 0, 0, .62);
        --shadow-pop: 0 24px 64px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}

/* What shows past the shell when the page overscrolls. */
body:has(.acc-shell) { margin: 0; }
body:has(.acc-shell--stage) { background: #022C22; }
body:has(.acc-shell--app) { background: #F5F7F6; }
@media (prefers-color-scheme: dark) {
    body:has(.acc-shell--app) { background: #0A0A0A; }
}

.acc-shell *, .acc-shell *::before, .acc-shell *::after { box-sizing: border-box; }
/* Without specificity of their own (:where), so a component's class (.btn, .fld-in, .rt) sets its size and colour. */
:where(.acc-shell) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.acc-shell a { color: var(--brand-deep); }
.acc-shell p { margin: 0; }
.acc-shell :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Material icons as inline SVG (AccountIcon): sized by font-size, coloured by currentColor. */
.mi { width: 1em; height: 1em; font-size: 18px; fill: currentColor; display: inline-block; vertical-align: middle; flex: none; }
.mi-xs { font-size: 14px; }
.mi-lg { font-size: 26px; }

/* A form that lays out its parts (fields, alerts, actions) like the card or flow column around it. */
.c-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.grow { flex: 1; }
.muted { color: var(--text-3); }
.mono { font-family: var(--mono); }
.eyebrow { font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.txt { color: var(--text-2); line-height: 1.5; font-size: 13px; max-width: 68ch; }

/* ── Stage (AccountLayout) ───────────────────────────────────────────────── */
.c-stage { position: relative; min-height: 100vh; overflow: hidden; isolation: isolate; background: linear-gradient(165deg, var(--hero-a) 0%, var(--hero-b) 100%); display: flex; flex-direction: column; align-items: center; padding: calc(44px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 140px max(16px, env(safe-area-inset-left, 0px)); }
.c-curve { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; z-index: -1; }
.c-curve .area { fill: var(--hero-fill); }
.c-curve .line { fill: none; stroke: var(--hero-line); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.c-curve .spike { fill: none; stroke: var(--hero-spike); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .85; }
.c-brand { display: flex; align-items: center; gap: 10px; color: var(--on-appbar) !important; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -.5px; margin-bottom: 26px; }
.c-brand img { width: 40px; height: 40px; object-fit: contain; background: rgba(255, 255, 255, .94); border-radius: 10px; padding: 4px; }
.c-card { width: 100%; max-width: 410px; background: var(--surface); border-radius: 16px; padding: 28px 28px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 16px; }
.c-card > .glyph { margin: 0 auto; width: 52px; height: 52px; border-radius: 50%; }
.c-card > .glyph .mi { font-size: 26px; }
.c-card > .eyebrow { text-align: center; color: var(--brand-deep); margin-bottom: -10px; }
.c-card h1 { font-size: 22px; text-align: center; margin: 0; font-weight: 650; letter-spacing: -.02em; text-wrap: balance; }
.c-card .c-sub { text-align: center; color: var(--text-2); margin-top: -8px; line-height: 1.5; font-size: 13.5px; }
.c-card > .txt { text-align: center; margin: 0 auto; }
.c-below { margin-top: 20px; display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: center; font-size: 13px; }
.c-below a { color: var(--hero-link); text-decoration: none; font-weight: 600; }
.c-below a:hover { text-decoration: underline; }
.c-meta { margin-top: 10px; color: var(--on-appbar-2); font-size: 12.5px; text-align: center; max-width: 410px; line-height: 1.5; }
.c-meta a { color: var(--hero-link); }
@media (max-width: 440px) { .c-card { padding: 24px 18px 20px; } }

/* ── App chrome (ManageLayout): static copy of MainLayout's app bar and drawer ── */
.appbar { position: fixed; inset: 0 0 auto; z-index: 50; height: calc(64px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; gap: 4px; background: var(--appbar); color: var(--on-appbar); }
.ab-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: inherit; display: grid; place-items: center; cursor: pointer; }
.ab-btn:hover { background: var(--on-appbar-hover); }
.ab-btn .mi { font-size: 22px; }
.ab-brand { display: flex; align-items: center; color: inherit !important; text-decoration: none; }
.ab-logo { width: 32px; height: 32px; margin-left: 8px; object-fit: contain; }
.ab-name { margin-left: 6px; font-size: 1.45rem; font-weight: 700; letter-spacing: -.5px; }
.ab-user { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 3px; border-radius: 999px; background: var(--on-appbar-hover); color: inherit !important; text-decoration: none; font-size: 13px; font-weight: 600; }
.ab-user .avatar { width: 30px; height: 30px; font-size: 11.5px; background: var(--on-appbar); color: #064E3B; }
@media (max-width: 440px) { .ab-user-name { display: none; } .ab-user { padding-right: 3px; } }

/* The drawer opens and closes without a circuit: a checkbox before it carries the state (no script). It is open
   by default from 1100px, so there the box means "closed"; below, it means "open", over a scrim. */
.acc-nav-toggle { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.acc-nav-toggle:focus-visible ~ .appbar .ab-menu { outline: 2px solid var(--on-appbar); outline-offset: 2px; }
.drawer { position: fixed; top: calc(64px + env(safe-area-inset-top, 0px)); bottom: 0; left: 0; width: 240px; z-index: 45; background: var(--drawer); border-right: 1px solid var(--line); overflow-y: auto; transform: translateX(-100%); transition: transform .18s ease; padding: 8px 0 120px env(safe-area-inset-left, 0px); }
.drawer-scrim { display: none; }
.main { padding-top: calc(64px + env(safe-area-inset-top, 0px)); min-height: 100vh; transition: margin-left .18s ease; }
@media (min-width: 1100px) {
    .acc-nav-toggle:not(:checked) ~ .drawer { transform: none; }
    .acc-nav-toggle:not(:checked) ~ .main { margin-left: 240px; }
}
@media (max-width: 1099px) {
    .acc-nav-toggle:checked ~ .drawer { transform: none; }
    .acc-nav-toggle:checked ~ .drawer-scrim { display: block; position: fixed; inset: 0; z-index: 44; background: var(--scrim); }
}
.nav a { display: flex; align-items: center; gap: 18px; height: 40px; margin: 0 8px; padding: 0 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; }
.nav a .mi { font-size: 21px; color: var(--text-2); }
.nav a:hover { background: var(--surface-3); }
.nav a.on { background: var(--brand-tint); color: var(--brand-deep); font-weight: 600; }
.nav a.on .mi { color: var(--brand); }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: var(--on-brand); font-size: 11px; font-weight: 700; display: grid; place-items: center; }

.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.avatar--sm { width: 30px; height: 30px; font-size: 11px; }
.avatar--lg { width: 56px; height: 56px; font-size: 19px; }
.avatar--off { background: var(--surface-3); color: var(--text-3); }

/* ── Account header and tabs (ManageLayout, a page under a tab) ─────────── */
.c-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.c-head-in { max-width: 1040px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.c-id { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.c-id-text { flex: 1 1 200px; min-width: 0; }
.c-id form { margin: 0; }
.c-title { font-size: 22px; font-weight: 650; letter-spacing: -.02em; overflow-wrap: anywhere; }
.c-mail { color: var(--text-2); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 3px; overflow-wrap: anywhere; }
.c-tabs { display: flex; gap: 2px; margin-top: 14px; overflow-x: auto; }
.c-tabs a { display: flex; gap: 7px; align-items: center; padding: 10px 12px 11px; border-bottom: 2px solid transparent; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.c-tabs a .mi { font-size: 18px; }
.c-tabs a:hover { color: var(--text); }
.c-tabs a.on { color: var(--brand-ink); border-bottom-color: var(--brand); }
.c-body { max-width: 1040px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 160px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 24px; }
.c-subtabs { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.c-subtabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 600; color: var(--text-2); text-decoration: none; background: var(--surface); }
.c-subtabs a.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* Administration → Einladungen: the invite form beside the open Invites (one column below 860px). */
.c-admin-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }

/* Groups and boxes on a tab page */
.c-group h2 { font-size: 15px; font-weight: 650; letter-spacing: -.01em; margin: 0 0 10px; }
.c-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.c-box > h2 { font-size: 15px; font-weight: 650; letter-spacing: -.01em; margin: 0; }
.c-box--row { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.c-box--row > div { flex: 1 1 280px; }
.c-box--danger { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.c-box--danger b { color: var(--red); }
.c-box-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ── Flow pages (AccountFlow): back link, stepper, title, one card, actions on the right ── */
.c-flow-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.c-flow-top-in { max-width: 720px; margin: 0 auto; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 10px; }
.c-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2) !important; text-decoration: none; font-size: 13px; font-weight: 600; }
.c-back:hover { color: var(--brand-deep) !important; }
/* ManageLayout's column for a flow page; AccountFlow fills it. */
.c-flow-frame { max-width: 720px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-right, 0px)) 160px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 22px; }
.c-flow-frame > form { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.c-stepper { list-style: none; margin: -4px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.c-stepper li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-3); font-weight: 600; }
.c-stepper li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); }
.c-stepper li.done::before, .c-stepper li.on::before { background: var(--brand); }
.c-stepper li.on { color: var(--brand-ink); }
.c-stepper li.done { color: var(--text-2); }
.c-flow { display: flex; flex-direction: column; gap: 16px; }
.c-flow h1 { font-size: 26px; font-weight: 650; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.c-flow .c-lead { color: var(--text-2); line-height: 1.5; margin-top: -8px; max-width: 64ch; }
.c-flow-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.c-flow-card--danger { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.c-flow-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.foot-note { margin-right: auto; font-size: 12px; color: var(--text-3); }

/* ── Buttons: primary, secondary (default), danger outline, danger filled, quiet; 32px, --lg 40px ── */
.btn { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 550; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .12s; }
.btn:hover { background: var(--surface-2); }
.btn .mi { font-size: 16px; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand) !important; }
.btn--primary:hover { background: var(--brand-deep); }
.btn--danger { color: var(--red) !important; border-color: var(--red); }
.btn--danger:hover { background: var(--red-tint); }
.btn--danger-fill { background: var(--red); border-color: var(--red); color: var(--on-red) !important; }
.btn--danger-fill:hover { filter: brightness(.94); background: var(--red); }
.btn--quiet { border-color: transparent; background: none; }
.btn--quiet:hover { background: var(--surface-3); }
.btn--lg { height: 40px; padding: 0 16px; font-size: 14px; font-weight: 600; }
.btn--block { width: 100%; }
a.btn { color: var(--text-2); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.acts--col { flex-direction: column; align-items: stretch; }
.or { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── Chips ───────────────────────────────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 650; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.chip--ok { background: var(--brand-tint); color: var(--brand-ink); }
.chip--warn { background: var(--amber-tint); color: var(--amber-ink); }
.chip--danger { background: var(--red-tint); color: var(--red-ink); }
.chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }

/* ── Alerts (AccountAlert, StatusMessage): success, danger, warning, info, with an icon ── */
.alert { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.45; }
.alert > .mi { margin-top: 1px; }
.alert strong { display: block; font-weight: 650; }
.alert-b { margin-top: 2px; }
.alert-b ul { margin: 6px 0; padding-left: 18px; }
.alert-b li + li { margin-top: 3px; }
.alert-b p + p, .alert-b ul + p { margin-top: 6px; }
.alert a { color: inherit; font-weight: 650; }
.alert--success { background: var(--brand-tint); color: var(--brand-ink); }
.alert--danger { background: var(--red-tint); color: var(--red-ink); }
.alert--warning { background: var(--amber-tint); color: var(--amber-ink); }
.alert--info { background: var(--surface-3); color: var(--text-2); }
.glyph { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-ink); flex: none; }
.glyph .mi { font-size: 20px; }
.glyph--danger { background: var(--red-tint); color: var(--red-ink); }
.glyph--warning { background: var(--amber-tint); color: var(--amber-ink); }
.glyph--info { background: var(--surface-3); color: var(--text-2); }

/* ── Labelled fields: label above, 42px outlined input, hint; the one-time code ── */
.flds { display: grid; gap: 14px; }
.flds--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld--wide { grid-column: 1 / -1; }
.fld-l { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.fld-l a { margin-left: auto; font-weight: 600; text-decoration: none; }
.fld-in { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); font-size: 14.5px; color: var(--text); }
.fld-in:hover { border-color: var(--text-3); }
.fld-in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(5, 150, 105, .15); }
.fld-in:disabled { background: var(--surface-2); color: var(--text-2); border-color: var(--line); }
.fld-in::placeholder { color: var(--text-3); font-weight: 400; }
.fld-in.invalid { border-color: var(--red); }
.fld-hint { font-size: 11.5px; color: var(--text-3); }
.fld-err { font-size: 11.5px; color: var(--red-ink); }
.otp-in { font-family: var(--mono); font-size: 20px; letter-spacing: .35em; }
.fld-in.otp-in { height: 56px; text-align: center; font-size: 26px; letter-spacing: .5em; padding-left: calc(12px + .5em); }

/* ── Checks ──────────────────────────────────────────────────────────────── */
.checks { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.checks--inline { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
.checks legend { padding: 0; margin-bottom: 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.chk { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; cursor: pointer; }
.chk input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--brand); }
.chk small { display: block; color: var(--text-3); font-size: 11.5px; }

/* ── Rows: a hairline list of things one has (icon, title + chips, meta, actions) ── */
.rows { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
a.row { color: inherit !important; text-decoration: none; }
.row--link:hover { background: var(--surface-2); }
.row-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-3); color: var(--text-2); display: grid; place-items: center; }
.row-title { font-weight: 620; font-size: 13.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; line-height: 1.45; }
.row-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; color: var(--text-3); }
.row-act form { margin: 0; }
.perm { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--text-2); }
.perm li { display: flex; gap: 6px; align-items: flex-start; }
.perm .mi { color: var(--brand); margin-top: 1px; }
.empty { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--text-2); }
.empty .mi { color: var(--text-3); }
.empty b { color: var(--text); display: block; margin-bottom: 2px; }
.empty p { font-size: 12.5px; }

/* Role toggles (Administration → Benutzer): filled with a check while held, dashed with a plus while not. */
.rts { display: inline-flex; gap: 6px; }
.rt { height: 26px; padding: 0 10px 0 7px; border-radius: 999px; border: 1px dashed var(--line-strong); background: none; font-size: 12px; font-weight: 600; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.rt:hover { border-color: var(--text-3); color: var(--text-2); }
.rt--on { border: 1px solid transparent; background: var(--brand-tint); color: var(--brand-ink); }
.rt--on:hover { color: var(--brand-ink); border-color: var(--brand); }

/* ── Method blocks (Anmeldung & Sicherheit, Verbundene Apps) ─────────────── */
.c-methods { display: flex; flex-direction: column; gap: 12px; }
.c-method { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; scroll-margin-top: 90px; }
.c-method--focus { box-shadow: 0 0 0 2px var(--brand); }
.c-method-h { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; }
.c-method-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); }
.c-method-ic .mi { font-size: 22px; }
.c-method--on .c-method-ic { background: var(--brand-tint); color: var(--brand-ink); }
.c-method-name { font-weight: 650; font-size: 14.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.c-method-desc { font-size: 12.5px; color: var(--text-2); margin-top: 3px; line-height: 1.45; max-width: 66ch; }
.c-method-a { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.c-method-a form { margin: 0; }
.c-method-d { border-top: 1px solid var(--line); background: var(--surface-2); }
.c-method-d > .alert { margin: 12px 18px 0; }
.c-method-d .rows { border: 0; border-radius: 0; background: transparent; }
.c-method-d .row { padding-left: 76px; }
.c-method-d .row-ic { background: var(--surface); }

/* ── Codes grid, steps, key and QR code ─────────────────────────────────── */
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.codes code { background: var(--surface); padding: 10px 14px; font-family: var(--mono); font-size: 15px; letter-spacing: .04em; display: flex; gap: 12px; color: var(--text); }
.codes code span { color: var(--text-3); font-size: 11px; width: 16px; text-align: right; padding-top: 3px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 28px; bottom: 4px; width: 2px; background: var(--line); }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-ink); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.step-t { font-weight: 650; font-size: 13.5px; padding-top: 4px; }
.step-c { margin-top: 6px; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.keyrow { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.keybox { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 220px; }
.key { font-family: var(--mono); font-size: 15px; letter-spacing: .06em; color: var(--text); padding: 10px 12px; background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 8px; overflow-wrap: anywhere; }
.qr { width: 128px; height: 128px; flex: none; border-radius: 8px; border: 1px solid var(--line); background: var(--qr-bg); }

@media (max-width: 860px) {
    .c-admin-grid { grid-template-columns: 1fr; }
    .c-method-h { grid-template-columns: 44px minmax(0, 1fr); }
    .c-method-a { grid-column: 1 / -1; justify-content: flex-start; }
    .c-method-d .row { padding-left: 14px; }
}
@media (max-width: 560px) {
    .flds--2 { grid-template-columns: 1fr; }
    .codes { grid-template-columns: 1fr; }
    .row { grid-template-columns: auto minmax(0, 1fr); }
    .row-act { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .acc-shell * { transition: none !important; } }

/* ── Übersicht: the protection status (AccountProtection), the level, the meter and the next step;
   Anmeldung & Sicherheit: the ringed block takes the focus, so it scrolls into view, and shows no second outline. */
.c-shield { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.c-shield-main { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.c-level { font-size: 26px; font-weight: 650; letter-spacing: -.025em; }
.c-meter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.c-meter > div { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--text-3); }
.c-meter i { height: 8px; border-radius: 4px; background: var(--surface-3); }
.c-meter b { color: var(--text-2); font-weight: 650; display: block; font-size: 12.5px; }
.c-meter .on i { background: var(--brand); }
.c-meter .on b { color: var(--text); }
.c-next { padding: 20px 22px; background: var(--brand-tint); color: var(--brand-ink); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.c-next .eyebrow { color: var(--brand-ink); opacity: .75; }
.c-next b { font-size: 15px; }
.c-next p { font-size: 12.5px; line-height: 1.5; }
.c-next--done { background: var(--surface-2); color: var(--text-2); }
.c-next--done .eyebrow { color: var(--text-3); }
.c-next--done b { color: var(--text); }
.c-method--focus:focus { outline: none; }
@media (max-width: 860px) { .c-shield { grid-template-columns: 1fr; } }

/* ── Flow pages' details (e-mail, password, authenticator, delete account) ── */
/* "oder" between two ways to confirm in one action row (DeleteAccount). */
.c-flow-actions .c-or { font-size: 12px; color: var(--text-3); }
/* PasskeySubmit's element draws nothing (it only carries the form value), so it takes no gap in the row. */
.c-flow-actions passkey-submit { display: none; }
/* A field's validation message, whatever class Blazor leaves on it. */
.fld .validation-message { font-size: 11.5px; color: var(--red-ink); }
/* The copy button stays hidden until its module knows it can copy (CopyButton.razor.js). */
copy-button[hidden] { display: none; }
/* The server-rendered QR code (AuthenticatorQrCode): dark modules on a white quiet zone, in both themes. */
.qr .qr-bg { fill: var(--qr-bg); }
.qr .qr-m { fill: var(--qr-fg); }
/* A real otpauth URI needs 41–45 modules plus the quiet zone (the prototype drew 25): bigger, for a phone to read. */
.keyrow .qr { width: 168px; height: 168px; }

/* ── Stage pages' details: sign-in, invite and status pages on the card ─── */
/* The passkey script's element has no box of its own, so it adds no gap to the column of buttons. */
passkey-submit { display: contents; }
/* A form inside a line of text or links (Consent's "Nicht du?", NoAthlete's "Abmelden"): its button reads as a link. */
.c-inline-form { display: inline; margin: 0; }
.c-below .c-inline-form { display: contents; }
.c-link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--hero-link) !important; cursor: pointer; }
.c-link-btn:hover { text-decoration: underline; }
.c-below .c-link-btn { font-weight: 600; }
.c-meta .c-link-btn { text-decoration: underline; }
/* An option row that is a form's submit button (NoAthlete's "Eigenes Training erfassen"). */
.rows > form { margin: 0; }
button.row { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
.rows > form:first-child button.row { border-top: 0; }
button.row .row-title, button.row .row-meta { display: block; }
/* A text inside the card's form centres like one straight in the card. */
.c-card > .c-form > .txt { text-align: center; margin: 0 auto; }
