        :root {
            --bg: #eff1f5;
            --card: #ffffff;
            --line: #e6e8ef;
            --ink: #141824;
            --ink-2: #3b4353;
            --muted: #737b8b;
            --brand: #3b4bd8;
            --brand-strong: #2f3cb3;
            --brand-soft: #eef0fe;
            --danger: #d24444;
            --danger-soft: #fdeceb;
            --success: #148a5f;
            --success-soft: #e7f6ef;
            --warn: #97650a;
            --warn-soft: #fdf3e0;
            --radius: 14px;
            --radius-sm: 9px;
            --shadow-sm: 0 1px 2px rgba(18, 24, 40, .05), 0 1px 3px rgba(18, 24, 40, .04);
            --shadow-md: 0 6px 22px rgba(18, 24, 40, .09);
            --side-w: 248px;
        }
        * { box-sizing: border-box; }
        html { -webkit-text-size-adjust: 100%; }
        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
            font-size: 14.5px; line-height: 1.55; background: var(--bg); color: var(--ink);
            -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
        }
        a { color: var(--brand); text-decoration: none; }
        a:hover { color: var(--brand-strong); }
        h1 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }

        /* ---- Sidebar ---- */
        .side {
            position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 30;
            background: var(--card); border-right: 1px solid var(--line);
            display: flex; flex-direction: column; padding: 18px 14px;
        }
        .side .brand-mark { display: flex; align-items: center; gap: 10px; font-weight: 730; letter-spacing: -0.02em; font-size: 16px; color: var(--ink); padding: 4px 8px 18px; }
        .side .logo {
            width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none;
            background: linear-gradient(140deg, var(--brand), #6a5cf0); color: #fff; box-shadow: 0 3px 8px rgba(59, 75, 216, .35);
        }
        .side nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
        .side .group { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9aa1b1; padding: 14px 10px 5px; }
        .side .group:first-child { padding-top: 4px; }
        .navlink {
            display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px;
            color: var(--ink-2); font-weight: 550; font-size: 14px; transition: background .12s, color .12s;
        }
        .navlink svg { flex: none; opacity: .72; }
        .navlink:hover { background: #f1f2f6; color: var(--ink); }
        .navlink.active { background: var(--brand-soft); color: var(--brand); }
        .navlink.active svg { opacity: 1; }
        .side .foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; display: flex; align-items: center; gap: 10px; }
        .side .foot .who { line-height: 1.25; min-width: 0; flex: 1; }
        .side .foot .who .n { font-weight: 620; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .side .foot .who .s { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .side .foot .logout { border: none; background: none; padding: 6px; border-radius: 8px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
        .side .foot .logout:hover { background: #f1f2f6; color: var(--danger); }

        .avatar {
            width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
            font-size: 13px; font-weight: 650; color: #fff; background: linear-gradient(140deg, #5566e6, #8a7cf5); letter-spacing: .02em;
        }
        .avatar.sm { width: 26px; height: 26px; font-size: 11px; }

        /* ---- Content ---- */
        .page { margin-left: var(--side-w); }
        main { max-width: 1120px; margin: 34px auto 70px; padding: 0 30px; }
        main.wide { max-width: 1360px; }
        .page-guest main { margin-top: 0; }

        /* ---- Cards ---- */
        .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }

        /* ---- Tables ---- */
        table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
        th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); }
        th { color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
        tbody tr:last-child td { border-bottom: none; }
        tbody tr { transition: background .1s; }
        /* Responsive: tables scroll horizontally inside their card on narrow screens
           instead of overflowing the page (public/js/tables.js wraps every table). */
        .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        @media (max-width: 640px) { .table-scroll > table { min-width: 480px; } }
        /* Sortable headers (opt-in via class="sortable"). */
        th.th-sort { cursor: pointer; user-select: none; white-space: nowrap; }
        th.th-sort::after { content: '↕'; opacity: .35; font-size: 10px; margin-left: 5px; }
        th.th-sort[aria-sort=ascending]::after { content: '↑'; opacity: .85; }
        th.th-sort[aria-sort=descending]::after { content: '↓'; opacity: .85; }
        th.th-sort:hover { color: var(--ink); }
        tbody tr:hover { background: #fafbfc; }
        tfoot th { border-top: 2px solid var(--line); color: var(--ink); }

        /* ---- Buttons ---- */
        .btn {
            display: inline-flex; align-items: center; justify-content: center; gap: 7px;
            padding: 9px 15px; border-radius: var(--radius-sm); border: 1px solid transparent;
            background: var(--brand); color: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; line-height: 1;
            box-shadow: 0 1px 2px rgba(59, 75, 216, .25); transition: background .12s, box-shadow .12s, transform .05s; text-decoration: none;
        }
        .btn:hover { background: var(--brand-strong); color: #fff; box-shadow: 0 3px 8px rgba(59, 75, 216, .28); }
        .btn:active { transform: translateY(1px); }
        .btn.secondary { background: #fff; color: var(--ink-2); border-color: var(--line); box-shadow: var(--shadow-sm); }
        .btn.secondary:hover { color: var(--brand); border-color: #c9cfe8; background: #fff; }
        .btn.danger { background: #fff; color: var(--danger); border-color: #f0c9c7; box-shadow: none; }
        .btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
        .btn-row { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }

        /* ---- Forms ---- */
        .field { margin-bottom: 15px; }
        .field label { display: block; font-size: 13px; color: var(--ink-2); font-weight: 550; margin-bottom: 5px; }
        .field input, .field textarea, .field select { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; transition: border-color .12s, box-shadow .12s; }
        .field input:focus, .field textarea:focus, .field select:focus, select:focus, input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59, 75, 216, .14); }
        .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
        .error { color: var(--danger); font-size: 12.5px; margin-top: 5px; }

        /* ---- Badges ---- */
        .badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.55; border: 1px solid transparent; }
        .badge--green { background: var(--success-soft); color: var(--success); border-color: #bfe6d3; }
        .badge--red { background: var(--danger-soft); color: var(--danger); border-color: #f3c8c5; }
        .badge--blue { background: var(--brand-soft); color: var(--brand); border-color: #d3d8f8; }
        .badge--amber { background: var(--warn-soft); color: var(--warn); border-color: #f0dcae; }
        .badge--gray { background: #f0f1f4; color: var(--muted); border-color: #e2e4ea; }

        /* ---- Flash / warnings ---- */
        .flash, .warn { padding: 11px 15px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; display: flex; gap: 9px; align-items: flex-start; }
        .flash { background: var(--success-soft); border: 1px solid #bfe6d3; color: var(--success); }
        .warn { background: var(--warn-soft); border: 1px solid #f0dcae; color: var(--warn); }
        .warn ul { margin: 6px 0 0; padding-left: 18px; }

        /* ---- Conflict resolution panel (appointment form) ---- */
        .resolve { border: 1px solid #d3d8f8; background: var(--brand-soft); border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 18px; }
        .resolve-h { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; color: var(--brand); }
        .resolve-sub { margin: 4px 0 10px; font-size: 13px; color: var(--ink-2); }
        .resolve-g { margin-top: 10px; }
        .resolve-l { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
        .resolve .chips { display: flex; flex-wrap: wrap; gap: 7px; }
        .resolve .chip { border: 1px solid #c7cded; background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; transition: border-color .12s, background .12s, color .12s; }
        .resolve .chip:hover { border-color: var(--brand); color: var(--brand); }
        .resolve .chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

        /* ---- Misc ---- */
        .muted { color: var(--muted); }
        dl.detail { display: grid; grid-template-columns: 170px 1fr; gap: 10px 18px; margin: 0; }
        dl.detail dt { color: var(--muted); font-size: 13.5px; }
        .page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
        .page-head h1 { margin: 0; }
        .page-head .sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
        .empty { text-align: center; padding: 28px 10px; color: var(--muted); }

        @media (max-width: 860px) {
            .side { position: static; inset: auto; width: auto; flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 4px; padding: 10px 14px; }
            .side .brand-mark { flex: none; padding: 4px 10px 4px 4px; }
            /* One horizontally-scrollable row of icons — never wrap onto multiple lines. */
            .side nav { flex: 1; min-width: 0; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; gap: 2px; scrollbar-width: none; }
            .side nav::-webkit-scrollbar { display: none; }
            .side .navlink { flex: none; }
            .side .group { display: none; }
            .side .navlink span.lbl { display: none; }
            .side .foot { flex: none; border: none; padding: 0; margin: 0 0 0 auto; }
            .side .foot .who { display: none; }
            .page { margin-left: 0; }
            .grid2 { grid-template-columns: 1fr; }
            main { padding: 0 18px; }
        }
        /* ---- Tabs (public/js/tabs.js) ---- */
        .tablist { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
        .tab-btn { appearance: none; border: none; background: none; font: inherit; font-weight: 550; color: var(--muted); padding: 9px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 7px 7px 0 0; transition: color .12s, background .12s; }
        .tab-btn:hover { color: var(--ink); background: var(--bg); }
        .tab-btn[aria-selected=true] { color: var(--brand); border-bottom-color: var(--brand); }
        .tab-panel[hidden] { display: none; }

        /* Sub-navigation across a section's own pages (e.g. Einstellungen). */
        .subnav { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 22px; flex-wrap: wrap; }
        .subnav a { font-weight: 550; color: var(--muted); text-decoration: none; padding: 9px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 7px 7px 0 0; transition: color .12s, background .12s; }
        .subnav a:hover { color: var(--ink); background: var(--bg); }
        .subnav a.active { color: var(--brand); border-bottom-color: var(--brand); }

        .select { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; transition: border-color .12s, box-shadow .12s; }
        .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59, 75, 216, .14); }

        /* ---- Right-hand data-entry drawer (public/js/drawer.js) ---- */
        .drawer-host { position: fixed; inset: 0; z-index: 60; }
        .drawer-host[hidden] { display: none; }
        .drawer-scrim { position: absolute; inset: 0; background: rgba(18, 24, 40, .38); opacity: 0; transition: opacity .32s ease; }
        .drawer { position: absolute; top: 0; right: 0; height: 100%; width: min(520px, 100%); background: var(--card);
            box-shadow: -18px 0 46px rgba(18, 24, 40, .20); display: flex; flex-direction: column;
            transform: translateX(100%); transition: transform .34s cubic-bezier(.32, .72, 0, 1); will-change: transform; }
        .drawer-host.is-open .drawer-scrim { opacity: 1; }
        .drawer-host.is-open .drawer { transform: none; }
        .drawer-x { position: absolute; top: 16px; right: 18px; z-index: 2; display: grid; place-items: center;
            width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 9px;
            color: var(--muted); cursor: pointer; transition: color .12s, background .12s; }
        .drawer-x:hover { color: var(--ink); background: var(--bg); }
        .drawer-body { padding: 26px 28px 40px; overflow-y: auto; height: 100%; }
        .drawer-body > h1:first-child { padding-right: 42px; } /* clear the floating close button */
        .drawer-loading { color: var(--muted); padding: 20px 2px; }
        .drawer-host.is-busy .drawer-body { opacity: .55; pointer-events: none; }
        body.drawer-open { overflow: hidden; }

        /* Forms sit flush in the drawer — the panel already provides the frame. */
        .drawer-body .card { border: none; box-shadow: none; background: transparent; padding: 0; margin: 0; }

        /* Checkbox/radio card grid (e.g. licence-class pickers). Each cell shows a
           prominent class code with a muted description below, so labels of very
           different lengths still line up on a tidy grid. */
        .checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
        .checks label { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; cursor: pointer; color: var(--ink); background: #fff; transition: border-color .12s, background .12s; }
        .checks label:hover { border-color: #c7cded; }
        .checks input { width: 16px; height: 16px; accent-color: var(--brand); flex: none; margin: 0; }
        .checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
        .checks .check-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
        .checks .check-code { font-size: 14px; font-weight: 550; }
        .checks .check-desc { font-size: 12px; color: var(--muted); }
        .checks label:has(input:checked) .check-code { font-weight: 650; }

        /* Dashboard / list rows with a clickable hover. */
        .dash-row { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 10px; color: inherit; text-decoration: none; transition: background .1s; }
        .dash-row:hover { background: #fafbfc; }
        .dash-row + .dash-row { border-top: 1px solid var(--line); }
        .attention { border-color: #f0dcae; background: linear-gradient(180deg, #fffdf6, #fff); }
        .attention .ah { display: flex; align-items: center; gap: 8px; padding: 12px 10px 6px; font-weight: 660; color: var(--warn); }
        .attention .go { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }

        /* Inline checkbox label (e.g. an Active toggle). */
        .check-inline { display: flex; align-items: center; gap: 9px; font-weight: 400; color: var(--ink); margin-bottom: 15px; cursor: pointer; }
        .check-inline input { width: 16px; height: 16px; accent-color: var(--brand); flex: none; }

        /* Segmented radio control (e.g. appointment type). */
        .segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
        .segmented label { padding: 8px 16px; cursor: pointer; font-size: 14px; font-weight: 550; color: var(--ink); transition: background .12s; }
        .segmented label + label { border-left: 1px solid var(--line); }
        .segmented input { position: absolute; opacity: 0; width: 0; height: 0; }
        .segmented label:hover { background: var(--bg); }
        .segmented label:has(input:checked) { background: var(--brand); color: #fff; }
        [data-kind-group][hidden] { display: none; }

        @media (max-width: 600px) { .drawer { width: 100%; } }
        @media (prefers-reduced-motion: reduce) {
            /* Keep the drawer's slide-in — it's the expected, requested motion — but
               shorten it. (This was previously disabling the slide entirely.) */
            .drawer, .drawer-scrim { transition-duration: .16s; }
        }

        /* ---- Getting-started onboarding checklist (dashboard) ---- */
        .onboard { padding: 0; overflow: hidden; margin-bottom: 24px; border-color: #d3d8f8; }
        .onboard .oh { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 16px; background: linear-gradient(140deg, var(--brand-soft), #fff 72%); border-bottom: 1px solid var(--line); }
        .onboard .oh .ic { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--brand), #6a5cf0); box-shadow: 0 4px 12px rgba(59, 75, 216, .32); }
        .onboard .oh .tt { flex: 1; min-width: 0; }
        .onboard .oh h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 2px; }
        .onboard .oh .sub { color: var(--muted); font-size: 13.5px; }
        .onboard .oh .dismiss { border: none; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 5px 9px; border-radius: 8px; white-space: nowrap; }
        .onboard .oh .dismiss:hover { background: #eef0f6; color: var(--ink-2); }
        .onboard .prog { display: flex; align-items: center; gap: 12px; padding: 14px 22px 4px; }
        .onboard .prog .bar { flex: 1; height: 8px; border-radius: 999px; background: #e9ebf3; overflow: hidden; }
        .onboard .prog .bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #6a5cf0); transition: width .5s cubic-bezier(.22, .61, .36, 1); }
        .onboard .prog .pct { font-size: 13px; font-weight: 650; color: var(--brand); white-space: nowrap; }
        .onboard .steps { padding: 8px 12px 14px; display: grid; }
        .ostep { display: flex; align-items: center; gap: 13px; padding: 11px 10px; border-radius: 11px; color: inherit; text-decoration: none; }
        .ostep + .ostep { border-top: 1px solid var(--line); }
        a.ostep:hover { background: #fafbfc; }
        a.ostep.next { background: var(--brand-soft); }
        a.ostep.next:hover { background: #e6e9fb; }
        .ostep .lead { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
        .ostep.is-done .lead { border-radius: 50%; background: var(--success-soft); color: var(--success); }
        .ostep .txt { flex: 1; min-width: 0; }
        .ostep .txt .l, .ostep .txt .d { display: block; }
        .ostep .txt .l { font-weight: 600; font-size: 14.5px; }
        .ostep.is-done .txt .l { color: var(--muted); text-decoration: line-through; text-decoration-color: #c3c8d4; }
        .ostep .txt .d { color: var(--muted); font-size: 12.5px; }
        .ostep .step-cta { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650; color: var(--brand); white-space: nowrap; }
        @media (max-width: 600px) { .ostep .txt .d { display: none; } }

        /* --- Website editor (site.edit) — tabbed like the settings form --- */
        .editor-sub { color: var(--muted); font-size: 12.5px; margin: -8px 0 12px; }
        .field input[type=color] { width: 48px; height: 36px; padding: 2px; cursor: pointer; vertical-align: middle; }
        .field input[type=file] { padding: 7px 10px; background: #fbfbfd; }
        .img-prev { margin-bottom: 8px; }
        .img-prev img { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
        /* Grid rows must shrink below content width on narrow cards → minmax(0, …). */
        .svc-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 8px; margin-bottom: 8px; }
        .svc-row input { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; transition: border-color .12s, box-shadow .12s; }
        .hours-row { display: grid; grid-template-columns: 84px minmax(0,1fr) 12px minmax(0,1fr); align-items: center; gap: 8px; margin-bottom: 6px; }
        .hours-row label { margin: 0; font-size: 13px; color: var(--ink-2); }
        .hours-row input[type=time] { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; transition: border-color .12s, box-shadow .12s; }
        .hours-row .sep { text-align: center; color: var(--muted); }
        .editor-bar { position: sticky; bottom: 12px; margin-top: 18px; padding: 13px 20px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
        .editor-bar .check-inline { margin: 0; }

        /* Auth split — the sign-up conversion surface: a value panel beside the form.
           Degrades to a single stacked column (form first) on narrow screens. */
        .auth-wrap { min-height: 82vh; display: grid; place-items: center; padding: 32px 0; }
        .auth-split { width: 100%; max-width: 860px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--card); }
        .auth-aside { background: linear-gradient(155deg, var(--brand), #6a5cf0); color: #fff; padding: 36px 32px; display: flex; flex-direction: column; }
        .auth-aside .brandmark { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.16); color: #fff; margin-bottom: 22px; }
        .auth-aside h2 { font-size: 20px; line-height: 1.3; margin: 0 0 22px; letter-spacing: -.01em; }
        .auth-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
        .auth-benefit { display: flex; gap: 12px; align-items: flex-start; }
        .auth-benefit .bi { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(255,255,255,.16); margin-top: 1px; }
        .auth-benefit b { display: block; font-size: 14.5px; font-weight: 650; }
        .auth-benefit span { font-size: 12.5px; color: rgba(255,255,255,.82); line-height: 1.5; }
        .auth-proof { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); font-size: 13px; color: rgba(255,255,255,.9); line-height: 1.55; }
        .auth-proof .stars { color: #ffd479; letter-spacing: 2px; font-size: 13px; }
        .auth-terms { margin-top: auto; padding-top: 22px; }
        .auth-terms .chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.16); border-radius: 999px; padding: 6px 13px; }
        .auth-main { padding: 34px 32px; display: flex; flex-direction: column; justify-content: center; }
        @media (max-width: 720px) {
            .auth-split { grid-template-columns: 1fr; max-width: 440px; }
            .auth-aside { order: 2; padding: 28px 26px; }
            .auth-terms { margin-top: 22px; }
        }

        /* Study System (theorie24) panel on the learner page. */
        .study-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
        .study-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 15px; color: var(--ink); }
        .study-brand .dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), #6a5cf0); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
        .study-prog { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
        .study-prog .bar { flex: 1; height: 9px; border-radius: 999px; background: #e9ebf3; overflow: hidden; }
        .study-prog .bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #6a5cf0); transition: width .5s cubic-bezier(.22, .61, .36, 1); }
        .study-prog .pct { font-weight: 750; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
        .study-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
        .study-stats .stat { background: #f8f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
        .study-stats .stat b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
        .study-stats .stat span { font-size: 12px; color: var(--muted); }
