/* ============================================================================
   HSMSO Provider Self-Service - frontend styles

   A centered professional sign-in screen and a sidebar dashboard, with a calm,
   clinical character. All colour comes from the theme design tokens in
   css/themes.css, so the whole site - and the embedded Authorization Assistant -
   re-themes together (including dark mode).
   ========================================================================== */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    line-height: 1.55;
    color: var(--ink);
    background: var(--canvas);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--accent); }
.icon { display: block; flex: none; }

/* -- App loading + Blazor error ------------------------------------------- */
.app-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 1rem;
    color: var(--muted);
}
.app-loading-mark {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.app-loading-mark img { width: 72%; height: 72%; object-fit: contain; }

#blazor-error-ui {
    background: #fbe6c8;
    color: #3a2c10;
    bottom: 0; left: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    padding: 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* -- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.05rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background 0.13s ease, border-color 0.13s ease, color 0.13s ease;
}
.btn-block { display: flex; width: 100%; }
.btn-block + .btn-block { margin-top: 0.6rem; }
.btn-sm { padding: 0.42rem 0.8rem; font-size: 0.82rem; }
.btn-lg { padding: 0.8rem 1.15rem; font-size: 0.95rem; }

.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { background: var(--brand-soft); }
.btn-brand:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-primary:disabled { background: var(--accent); opacity: 0.5; cursor: not-allowed; }

.btn-soft { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { background: var(--accent-soft); border-color: var(--accent); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-strong); }

.btn-ghost { background: transparent; color: var(--accent-strong); }
.btn-ghost:hover { background: var(--accent-soft); }

/* -- Form fields ---------------------------------------------------------- */
.field { margin-bottom: 0.95rem; }
.field label {
    display: block;
    font-size: 0.79rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.35rem;
}
.field-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.field-link { font-size: 0.78rem; font-weight: 600; text-decoration: none; }
.field-link:hover { text-decoration: underline; }
.field-input { position: relative; }
.field-ico {
    position: absolute;
    left: 0.75rem; top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    display: flex;
    pointer-events: none;
}
.input {
    width: 100%;
    padding: 0.66rem 0.72rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--ink);
}
.input::placeholder { color: var(--muted); opacity: 0.6; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.input.has-ico { padding-left: 2.5rem; }

.inline-error { color: var(--error); font-size: 0.83rem; margin: 0.4rem 0 0.7rem; }

.alert {
    border-radius: var(--radius-sm);
    padding: 0.72rem 0.9rem;
    font-size: 0.86rem;
    margin: 0.7rem 0 1rem;
    border: 1px solid transparent;
    color: var(--ink);
}
.alert-warn { background: var(--warn-bg); border-color: var(--warn); }
.alert-info { background: var(--info-bg); border-color: var(--info); }
.alert .btn { margin-top: 0.5rem; }

/* -- Status pills --------------------------------------------------------- */
.pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.62rem;
    border-radius: 999px;
    white-space: nowrap;
}
.pill-approved { background: var(--ok-bg); color: var(--ok); }
.pill-pending  { background: var(--warn-bg); color: var(--warn); }
.pill-denied   { background: var(--deny-bg); color: var(--deny); }
.pill-info     { background: var(--info-bg); color: var(--info); }

/* ============================================================================
   Sign-in screen (signed-out)
   ========================================================================== */
.login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    background: var(--canvas);
}
.login-col {
    width: 100%;
    max-width: 416px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-logo {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    margin-bottom: 1.1rem;
}
.login-tagline { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.6rem; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.login-card { width: 100%; padding: 1.8rem 1.7rem; }

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}
.card-title { font-size: 1.22rem; }
.card-sub { color: var(--muted); font-size: 0.88rem; margin: 0.22rem 0 0; }
.card-meta { font-size: 0.81rem; color: var(--muted); margin-top: 1rem; text-align: center; }

/* "or" separator between the PIN and email-code sign-in options. */
.login-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.1rem 0 0.85rem; color: var(--muted); font-size: 0.8rem; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.login-foot {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.4rem;
    color: var(--muted);
    font-size: 0.8rem;
}
.login-foot span { display: flex; align-items: center; gap: 0.4rem; }
.login-copy { margin-top: 0.85rem; font-size: 0.74rem; color: var(--muted); }

/* identity-confirmation card */
.id-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    padding: 0.9rem 0.95rem;
    margin-bottom: 1.1rem;
}
.id-avatar {
    flex: none;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--on-brand);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.id-name { font-weight: 700; font-size: 0.98rem; }
.id-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.12rem; }

/* ============================================================================
   Signed-in dashboard
   ========================================================================== */
.shell { display: flex; min-height: 100vh; }

/* -- Sidebar -- */
.sidebar {
    width: 250px;
    flex: none;
    background: var(--brand);
    color: var(--on-brand);
    display: flex;
    flex-direction: column;
    padding: 1.1rem 0.85rem;
}
.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.4rem 0.55rem 1.2rem;
}
.sidebar-logo {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    background: #fff;
    border-radius: 10px;
    padding: 7px 10px;
    box-shadow: var(--shadow-sm);
}
.sidebar-brand-sub {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--on-brand-muted);
    padding-left: 0.15rem;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--on-brand-muted);
    padding: 0.6rem 0.62rem;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.12s ease, color 0.12s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.08); color: var(--on-brand); }
.nav-item.is-active { background: rgba(255, 255, 255, 0.14); color: var(--on-brand); font-weight: 600; }
.nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
}

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.6rem; }
.access-card {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 0.7rem 0.75rem;
}
.access-label {
    display: block;
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-brand-muted);
}
.access-value { display: block; font-size: 0.88rem; font-weight: 600; margin-top: 0.12rem; }
.access-sub { display: block; font-size: 0.74rem; color: var(--on-brand-muted); margin-top: 0.05rem; }
.nav-signout { color: var(--on-brand-muted); }

/* -- Main column -- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--canvas); }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.7rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.topbar-title { font-size: 1.25rem; }
.topbar-sub { color: var(--muted); font-size: 0.83rem; margin: 0.1rem 0 0; }
.topbar-end { display: flex; align-items: center; gap: 1rem; }
.topbar-user { display: flex; align-items: center; gap: 0.6rem; }
.topbar-user-meta { text-align: right; line-height: 1.2; }
.topbar-user-name { display: block; font-size: 0.85rem; font-weight: 600; }
.topbar-user-sub { display: block; font-size: 0.72rem; color: var(--muted); }
.topbar-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.82rem;
}

.content { padding: 1.9rem 1.7rem 4rem; }

.welcome {
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.welcome h2 { font-size: 1.3rem; }
.welcome p { color: var(--muted); font-size: 0.9rem; margin: 0.25rem 0 0; }

/* -- Stat tiles -- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.15rem 1.2rem;
    box-shadow: var(--shadow-sm);
}
.stat-ico {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.75rem;
}
.stat-ico-info { background: var(--info-bg); color: var(--info); }
.stat-ico-ok   { background: var(--ok-bg);   color: var(--ok); }
.stat-ico-warn { background: var(--warn-bg); color: var(--warn); }
.stat-ico-deny { background: var(--deny-bg); color: var(--deny); }
.stat-num { display: block; font-size: 1.85rem; font-weight: 700; line-height: 1; }
.stat-label { display: block; color: var(--muted); font-size: 0.83rem; margin-top: 0.32rem; }
.stat-skeleton { min-height: 116px; background: var(--surface-2); animation: hsmso-pulse 1.3s ease-in-out infinite; }

@keyframes hsmso-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* -- Panel -- */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 1.6rem;
}
.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.panel-head h3 { font-size: 1.08rem; }
.panel-sub { color: var(--muted); font-size: 0.8rem; margin: 0.12rem 0 0; }
.panel-loading { color: var(--muted); font-size: 0.9rem; padding: 1.5rem 0; text-align: center; }

/* -- Recent activity rows -- */
.rec-list { display: flex; flex-direction: column; }
.rec-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 0.65rem;
    font-family: inherit;
    transition: background 0.12s ease;
}
.rec-item:hover { background: var(--surface-2); }
.rec-item + .rec-item { margin-top: 0.15rem; }
.rec-ico {
    flex: none;
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    display: flex; align-items: center; justify-content: center;
}
.rec-text { flex: 1; min-width: 0; }
.rec-title {
    display: block;
    font-weight: 600;
    font-size: 0.91rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rec-sub { display: block; font-size: 0.78rem; color: var(--muted); }

/* -- Extension-request detail cards -- */
.req-list { display: flex; flex-direction: column; gap: 0.9rem; }
.req {
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 1.05rem 1.2rem;
    background: var(--surface);
}
.req-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.45rem;
}
.req-ticket { font-weight: 700; font-size: 0.9rem; color: var(--accent-strong); letter-spacing: 0.02em; }
.req-service { font-weight: 600; font-size: 0.99rem; }
.req-sub { font-size: 0.82rem; color: var(--muted); margin-top: 0.12rem; }
.req-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem 1rem;
    margin: 0.9rem 0 0.7rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
}
.req-grid .k, .req-reason .k {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.req-grid .v { font-size: 0.88rem; font-weight: 600; }
.req-reason { font-size: 0.86rem; color: var(--ink); }
.req-reason .k { display: inline; margin-right: 0.3rem; }

/* -- Empty state -- */
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.empty-glyph {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    color: var(--line);
    margin-bottom: 0.5rem;
}
.empty p { font-size: 0.9rem; margin: 0 auto; max-width: 42ch; }

/* -- Extension-request wizard --------------------------------------------- */
.wizard { max-width: 680px; }

.wizard-rail {
    display: flex;
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
    gap: 0.4rem;
}
.wizard-rail-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}
.wizard-rail-num {
    flex: none;
    width: 1.55rem; height: 1.55rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    border: 1.5px solid var(--line);
    background: var(--surface);
}
.wizard-rail-step.is-current { color: var(--ink); }
.wizard-rail-step.is-current .wizard-rail-num { border-color: var(--accent); color: var(--accent); }
.wizard-rail-step.is-done { color: var(--ink); }
.wizard-rail-step.is-done .wizard-rail-num { background: var(--accent); border-color: var(--accent); color: #fff; }

.wizard-title { font-size: 1.12rem; }
.wizard-sub { color: var(--muted); font-size: 0.87rem; margin: 0.25rem 0 1.15rem; }
.wizard-actions { display: flex; gap: 0.6rem; margin-top: 1.3rem; }
.wizard-actions .btn { flex: 1; }
.wizard-actions .btn:only-child { flex: none; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.choice {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-family: inherit;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.choice:hover { border-color: var(--accent); background: var(--accent-soft); }
.choice:disabled { opacity: 0.6; }
.choice-ico {
    flex: none;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    display: flex; align-items: center; justify-content: center;
}
.choice-text { flex: 1; min-width: 0; }
.choice-title { display: block; font-weight: 600; font-size: 0.92rem; }
.choice-sub { display: block; font-size: 0.77rem; color: var(--muted); }
.choice-go { flex: none; color: var(--muted); }

.pick-list { display: flex; flex-direction: column; gap: 0.6rem; }
.pick {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.95rem;
    font-family: inherit;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.pick:hover { border-color: var(--accent); background: var(--accent-soft); }
.pick:disabled { opacity: 0.6; }
.pick-main { flex: 1; min-width: 0; }
.pick-title { display: block; font-weight: 600; font-size: 0.9rem; }
.pick-sub { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }
.pick-go { flex: none; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem; }
.tag {
    font-size: 0.72rem;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--muted);
}

.detail { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.86rem;
}
.detail-row:nth-child(even) { background: var(--surface-2); }
.detail-row .k { color: var(--muted); }
.detail-row .v { font-weight: 600; text-align: right; }
.detail-status { margin-bottom: 0.8rem; }

.field-hint { font-size: 0.78rem; color: var(--muted); margin: 0.35rem 0 0; }

.submitted { text-align: center; padding: 1rem 0 0.4rem; }
.submitted-mark {
    display: inline-flex;
    width: 62px; height: 62px;
    border-radius: 50%;
    background: var(--ok-bg);
    color: var(--ok);
    align-items: center; justify-content: center;
    margin-bottom: 0.7rem;
}
.submitted-ticket {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-strong);
    letter-spacing: 0.02em;
    margin: 0.3rem 0;
}

/* ============================================================================
   Admin module - small additions on top of the portal system
   ========================================================================== */

/* One-time PIN reveal shown on the post-create / post-reset admin screen. */
.admin-pin {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 2.1rem;
    letter-spacing: 0.45rem;
    text-align: center;
    padding: 1.1rem;
    background: var(--brand);
    color: var(--on-brand);
    border-radius: var(--radius-sm);
    margin: 1rem 0 0.6rem;
}
.admin-pin-caption {
    text-align: center;
    color: var(--muted);
    font-size: 0.83rem;
    margin: 0 0 1rem;
}

/* Inline filter row used on the providers list - keeps the search input and
   the active-only toggle on a single row that aligns with the panel head. */
.admin-filters {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.admin-filters .field { flex: 1 1 240px; margin-bottom: 0; }
.admin-filters .toggle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--ink);
    padding-bottom: 0.55rem;
}

/* Compact data table styled to fit alongside the .panel cards. Full grid -
   row AND column borders - with a brand-tinted header so the column structure
   reads at a glance. Rounded outer corners keep it visually consistent with
   the surrounding .panel / .card surfaces. */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.86rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.data-table th, .data-table td {
    padding: 0.5rem 0.7rem;
    text-align: left;
    vertical-align: middle;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.data-table th:last-child, .data-table td:last-child { border-right: none; }
.data-table tbody tr:last-child td { border-bottom: none; }

.data-table thead th {
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 700;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent);
    border-right-color: var(--accent);
}
.data-table thead th:last-child { border-right: none; }

.data-table tbody tr:hover { background: var(--surface-2); }
.data-table .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.83rem; }
.data-table .actions { text-align: right; }
.data-table a { color: var(--accent-strong); text-decoration: none; font-weight: 600; }
.data-table a:hover { text-decoration: underline; }

/* Pager - sits below the table, aligned end-of-row. */
.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.83rem;
    color: var(--muted);
}
.pager-controls { display: flex; align-items: center; gap: 0.4rem; }
.pager-btn {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: var(--radius-sm);
    padding: 0.32rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease;
}
.pager-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-strong); }
.pager-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pager-page { font-weight: 600; color: var(--ink); padding: 0 0.25rem; }

/* -- Responsive ----------------------------------------------------------- */
@media (max-width: 820px) {
    .shell { flex-direction: column; }
    .sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.4rem 0.7rem;
        padding: 0.7rem 1rem;
    }
    .sidebar-brand { padding: 0.2rem 0.35rem; }
    .sidebar-logo { max-width: 150px; padding: 5px 8px; }
    .sidebar-brand-sub { display: none; }
    .sidebar-nav { flex-direction: row; }
    .sidebar-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; gap: 0.6rem; }
    .access-card { display: none; }
    .topbar { padding: 0.9rem 1.1rem; }
    .content { padding: 1.4rem 1.1rem 4rem; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .req-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .topbar-user-meta { display: none; }
    .topbar-title { font-size: 1.12rem; }
    .login-card { padding: 1.5rem 1.3rem; }
    .login-foot { gap: 1rem; }
    .choice-grid { grid-template-columns: 1fr; }
    .wizard-actions { flex-wrap: wrap; }
}
