/* ==========================================================================
   Panels — student portal, practice apps, admin, auth screens
   ========================================================================== */
.min-w-0 { min-width: 0; }

/* ── Auth screens ───────────────────────────────────────────── */
.auth-body { background: #fff; }
.auth-shell { display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: calc(var(--vh) * 100); }
.auth-side { position: relative; overflow: hidden; background: radial-gradient(circle at 15% 10%, #312e81, var(--ink) 55%); color: #cbd5e1; padding: 2.5rem 3rem; display: flex; flex-direction: column; }
.auth-side::after { content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: var(--brand); filter: blur(120px); opacity: .28; right: -160px; bottom: -160px; }
.auth-side.admin { background: radial-gradient(circle at 15% 10%, #1e293b, #020617 60%); }
.auth-side-copy { margin: auto 0; position: relative; z-index: 1; max-width: 460px; }
.auth-side h2 { color: #fff; font-size: 2.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.auth-side p { font-size: 1.05rem; }
.auth-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.auth-points li { display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.auth-points i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--brand); }
.auth-foot { position: relative; z-index: 1; color: #64748b; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-title { font-size: 1.75rem; font-weight: 800; margin-bottom: .35rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.75rem; }
.auth-help { display: flex; gap: .6rem; margin-top: 1.5rem; padding: .9rem 1rem; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); }
.auth-help i { color: var(--brand); margin-top: 2px; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .form-control { padding-left: 2.6rem; }
.pw-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: .4rem .6rem; }
.otp-input { font-size: 1.8rem; letter-spacing: .6em; text-align: center; font-weight: 700; font-family: ui-monospace, monospace; }
@media (max-width: 991.98px) { .auth-shell { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ── Shell ──────────────────────────────────────────────────── */
.panel-body { background: var(--bg); --sidebar-w: 260px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--ink); color: #cbd5e1; display: flex; flex-direction: column; z-index: 1045; transition: transform .25s ease; }
.sidebar-head { padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-head .brand-mark { width: 38px; height: 38px; font-size: 1.05rem; }
.sidebar-head .brand-name { font-size: 1rem; }
.sidebar-user { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; margin: .75rem .75rem 0; border-radius: 12px; background: rgba(255,255,255,.04); }
.sidebar-user strong { color: #fff; font-size: .9rem; }
.sidebar-user small { color: #94a3b8; font-size: .72rem; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .75rem; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.sidebar-nav a, .sidebar-foot a, .sidebar-foot button { display: flex; align-items: center; gap: .8rem; padding: .62rem .85rem; border-radius: 10px; color: #cbd5e1; text-decoration: none; font-weight: 500; font-size: .9rem; border: 0; background: none; width: 100%; text-align: left; transition: background .15s, color .15s; }
.sidebar-nav a i, .sidebar-foot i { width: 18px; text-align: center; color: #64748b; transition: color .15s; }
.sidebar-nav a:hover, .sidebar-foot a:hover, .sidebar-foot button:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav a.active { background: linear-gradient(90deg, rgba(245,124,0,.22), rgba(245,124,0,.06)); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.sidebar-nav a.active i { color: var(--brand); }
.sidebar-nav .nav-group { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #64748b; padding: 1rem .85rem .35rem; }
.sidebar-nav .nav-count { margin-left: auto; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; padding: .05rem .45rem; border-radius: 99px; }
.sidebar-foot { padding: .75rem; border-top: 1px solid rgba(255,255,255,.06); }
.sidebar-foot form { margin: 0; }
.sidebar-backdrop { display: none; }
.sidebar, .panel-main { transition: transform .25s ease, width .2s ease, margin-left .2s ease; }

/* Collapsed (icon rail) — desktop only, toggled by the user and remembered */
@media (min-width: 992px) {
    .sidebar-collapsed { --sidebar-w: 76px; }
    .sidebar-collapsed .sidebar-head { padding: 1.1rem .9rem; }
    .sidebar-collapsed .brand-text,
    .sidebar-collapsed .sidebar-user > div,
    .sidebar-collapsed .sidebar-nav a span,
    .sidebar-collapsed .sidebar-foot a span,
    .sidebar-collapsed .sidebar-foot button span { display: none; }
    .sidebar-collapsed .sidebar-user { justify-content: center; padding: .6rem; margin: .75rem .5rem 0; }
    .sidebar-collapsed .sidebar-nav, .sidebar-collapsed .sidebar-foot { padding: .6rem .5rem; }
    .sidebar-collapsed .sidebar-nav a, .sidebar-collapsed .sidebar-foot a, .sidebar-collapsed .sidebar-foot button { justify-content: center; padding: .7rem 0; position: relative; }
    .sidebar-collapsed .sidebar-nav a i, .sidebar-collapsed .sidebar-foot i { font-size: 1.05rem; width: auto; }
    .sidebar-collapsed .sidebar-nav .nav-group { font-size: 0; padding: .6rem 0 .3rem; margin: 0 .6rem; border-top: 1px solid rgba(255,255,255,.08); }
    .sidebar-collapsed .sidebar-nav .nav-group:first-child { border-top: 0; }
    .sidebar-collapsed .sidebar-nav .nav-count { position: absolute; top: 4px; right: 8px; font-size: .6rem; padding: 0 .3rem; }
}
.collapse-btn i { transition: transform .2s; }
.sidebar-collapsed .collapse-btn i { transform: rotate(180deg); }
.panel-main { margin-left: var(--sidebar-w); min-height: calc(var(--vh) * 100); display: flex; flex-direction: column; }
.panel-topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem; padding: .85rem 1.75rem; background: rgba(248,250,252,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-title { min-width: 0; }
.topbar-title h1 { font-size: 1.25rem; font-weight: 800; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--brand-700); }
.user-chip { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: .25rem .75rem .25rem .25rem; font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.panel-content { padding: 1.75rem; flex: 1; max-width: 1480px; width: 100%; }
.panel-content > .flash-stack { padding-top: 0; margin-bottom: 1rem; }
.demo-bar { position: sticky; top: 0; z-index: 1050; display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; background: linear-gradient(90deg, #7c3aed, #db2777); color: #fff; padding: .45rem 1rem; font-size: .85rem; }
.demo-bar form { margin: 0; }
/* Demo bar is pinned above everything; the sidebar and top bar start below it */
.has-demo { --demo-h: 44px; padding-top: var(--demo-h); }
.has-demo .demo-bar { position: fixed; top: 0; left: 0; right: 0; height: var(--demo-h); flex-wrap: nowrap; overflow: hidden; }
.has-demo .demo-bar > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.has-demo .sidebar { top: var(--demo-h); }
.has-demo .panel-topbar { top: var(--demo-h); }
@media (max-width: 767.98px) { .has-demo .demo-bar > span { display: none; } .has-demo .demo-bar { justify-content: center; } }
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
    .sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(2,6,23,.5); z-index: 1040; }
    .panel-main { margin-left: 0; }
    .panel-topbar { padding: .75rem 1rem; }
    .panel-content { padding: 1rem; }
}

/* ── Generic panel components ───────────────────────────────── */
.stat-card { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; padding: 1.15rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; height: 100%; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
a.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card > i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); flex-shrink: 0; }
.stat-card > div { flex: 1; min-width: 0; }
.stat-card strong { display: block; font-size: 1.45rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card strong small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stat-card span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat-card .progress { flex-basis: 100%; height: 5px; }
.mini-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; border-top: 3px solid var(--c); height: 100%; }
.mini-stat span { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
.mini-stat strong { font-size: 1.15rem; font-weight: 800; }
.hint-box { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-sm); background: #eff6ff; color: #1e3a8a; font-size: .9rem; }
.hint-box > i { margin-top: 3px; }
.hint-box.success { background: #ecfdf5; color: #065f46; }
.hint-box.warning { background: #fffbeb; color: #92400e; }
.hint-box.danger { background: #fef2f2; color: #991b1b; }
.hint-box.small { font-size: .8rem; }
.detail-list { margin: 0; display: grid; gap: .1rem; }
.detail-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-weight: 500; }
.detail-list dd { margin: 0; font-weight: 600; text-align: right; color: var(--ink); word-break: break-word; }
.chip-glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }
.score-ring { --size: 64px; --p: 0; width: var(--size); height: var(--size); border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    background: radial-gradient(closest-side, #fff 78%, transparent 80% 100%), conic-gradient(var(--ring, var(--brand)) calc(var(--p) * 1%), #edf1f6 0); }
.score-ring span { font-weight: 800; font-size: .95rem; color: var(--ink); }
.score-ring.pass { --ring: var(--success); } .score-ring.fail { --ring: var(--danger); }
.score-ring.big { --size: 84px; } .score-ring.big span { font-size: 1.2rem; }
.score-ring.huge { --size: 150px; } .score-ring.huge span { font-size: 2.2rem; }
.panel-card .table > :not(caption) > * > * { padding-left: 1rem; padding-right: 1rem; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; padding: .75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.filter-bar .search-input { flex: 1; min-width: 200px; position: relative; }
.search-input { position: relative; }
.search-input > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-input .form-control { padding-left: 2.4rem; }
.pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; padding: .9rem 1rem; border-top: 1px solid var(--line-2); }
.pagination { --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-color: var(--ink-3); --bs-pagination-border-radius: 8px; }
.row-link { cursor: pointer; }

/* ── Student dashboard ──────────────────────────────────────── */
.welcome-card { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.75rem 2rem; border-radius: var(--radius-lg); margin-bottom: 1.5rem; color: #e2e8f0; position: relative; overflow: hidden; background: radial-gradient(circle at 85% 20%, rgba(245,124,0,.45), transparent 45%), linear-gradient(120deg, var(--ink), #1e1b4b); box-shadow: var(--shadow); }
.welcome-kicker { font-size: .9rem; color: #94a3b8; }
.welcome-card h2 { color: #fff; font-size: 1.9rem; font-weight: 800; margin: .1rem 0 .75rem; }
.welcome-card p { margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.welcome-ring { --p: 0; width: 112px; height: 112px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: radial-gradient(closest-side, #172033 80%, transparent 82% 100%), conic-gradient(var(--brand) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); }
.welcome-ring div { text-align: center; line-height: 1.1; } .welcome-ring strong { display: block; color: #fff; font-size: 1.6rem; font-weight: 800; } .welcome-ring small { color: #94a3b8; font-size: .72rem; }
.journey-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; counter-reset: step; }
.journey-steps li { position: relative; display: flex; gap: .7rem; align-items: center; padding: .9rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.js-dot { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: #e2e8f0; color: #64748b; }
.js-text strong { display: block; font-size: .9rem; } .js-text small { color: var(--muted); font-size: .75rem; }
.js-done { background: #f0fdf4 !important; border-color: #bbf7d0 !important; } .js-done .js-dot { background: var(--success); color: #fff; }
.js-current { background: var(--brand-50) !important; border-color: var(--brand) !important; box-shadow: 0 0 0 4px rgba(245,124,0,.08); } .js-current .js-dot { background: var(--brand); color: #fff; animation: pulse 2s infinite; }
.js-locked { opacity: .65; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245,124,0,.5); } 70% { box-shadow: 0 0 0 10px rgba(245,124,0,0); } 100% { box-shadow: 0 0 0 0 rgba(245,124,0,0); } }
@media (max-width: 767.98px) { .journey-steps { grid-template-columns: repeat(2, 1fr); } .welcome-card { padding: 1.25rem; } .welcome-ring { width: 84px; height: 84px; } .welcome-ring strong { font-size: 1.2rem; } }
.next-lesson { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: border-color .15s; }
.next-lesson:hover { border-color: var(--brand); }
.next-lesson small { color: var(--muted); font-size: .78rem; } .next-lesson strong { color: var(--ink); }
.nl-play { width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px -6px rgba(245,124,0,.7); flex-shrink: 0; }
.reward-card { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-radius: var(--radius); background: linear-gradient(120deg, #f5f3ff, #fff); border: 1px solid #ddd6fe; text-decoration: none; color: inherit; }
.reward-card strong { color: var(--ink); } .reward-card p { margin: .15rem 0 0; color: var(--muted); font-size: .85rem; }
.reward-card.earned { background: linear-gradient(120deg, #ecfdf5, #fff); border-color: #a7f3d0; }
.reward-card.pending { background: linear-gradient(120deg, #fffbeb, #fff); border-color: #fde68a; }
.reward-emoji { font-size: 2rem; line-height: 1; }
.app-row { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.app-row:hover { border-color: var(--brand); background: var(--brand-50); }
.app-row-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.d-grid > .app-row { min-width: 0; }
.app-row > .fa-arrow-right { flex-shrink: 0; }
.d-grid:has(> .app-row) { grid-template-columns: minmax(0, 1fr); }

/* ── Lessons ───────────────────────────────────────────────── */
.module-list { display: grid; gap: .75rem; }
.module-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.module-card summary { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; }
.module-card summary::-webkit-details-marker { display: none; }
.module-card[open] summary { border-bottom: 1px solid var(--line-2); }
.module-card .chev { color: var(--muted); transition: transform .2s; }
.module-card[open] .chev { transform: rotate(180deg); }
.module-no { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.module-progress { width: 120px; }
.lesson-list { list-style: none; padding: .35rem; margin: 0; }
.lesson-list a { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.lesson-list a:hover { background: var(--bg); }
.lesson-state { color: #cbd5e1; font-size: 1.05rem; }
.lesson-list a.done .lesson-state { color: var(--success); }
.lesson-list a.next { background: var(--brand-50); } .lesson-list a.next .lesson-state { color: var(--brand); }
.lesson-list a.current { background: var(--ink); color: #fff; } .lesson-list a.current .lesson-state, .lesson-list a.current small { color: #fff !important; }
.lesson-list.compact a { padding: .55rem .8rem; font-size: .86rem; }
.player-card { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lesson-video { width: 100%; display: block; max-height: calc(var(--vh) * 72); background: #000; aspect-ratio: 16 / 9; }
.player-empty { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; color: #94a3b8; background: linear-gradient(135deg, #0f172a, #1e1b4b); }
.player-empty i { font-size: 3rem; color: var(--brand); display: block; margin-bottom: .5rem; }
.watch-hint { padding: .85rem 1rem; background: var(--bg); border-radius: var(--radius-sm); }
.lesson-notes { line-height: 1.75; color: var(--ink-3); border-top: 1px solid var(--line-2); padding-top: 1rem; }

/* ── Exams ────────────────────────────────────────────────── */
.exam-card { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.exam-card.passed { border-color: #bbf7d0; background: linear-gradient(90deg, #f0fdf4, #fff 40%); }
.exam-no { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.exam-card.passed .exam-no { background: var(--success); }
.exam-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; color: var(--muted); }
.exam-meta i { margin-right: .3rem; color: var(--brand); }
.exam-action { flex-shrink: 0; align-self: center; text-align: right; }
.attempt-history summary { font-size: .8rem; font-weight: 600; color: var(--brand-700); cursor: pointer; }
@media (max-width: 575.98px) { .exam-card { flex-wrap: wrap; } .exam-action { width: 100%; text-align: left; } }
.exam-bar { position: sticky; top: 64px; z-index: 10; display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; margin-bottom: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.exam-bar > div:first-child { flex: 1; }
.exam-timer { display: flex; align-items: center; gap: .5rem; font-family: ui-monospace, monospace; font-size: 1.35rem; font-weight: 800; padding: .35rem .9rem; border-radius: 10px; background: var(--line-2); }
.exam-timer.warn { background: #fef3c7; color: #b45309; } .exam-timer.danger { background: #fee2e2; color: #b91c1c; animation: pulse 1s infinite; }
.question-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.q-no { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-700); }
.review-toggle { font-size: .82rem; color: var(--muted); cursor: pointer; display: flex; align-items: center; }
.q-text { font-size: 1.2rem; font-weight: 700; line-height: 1.5; margin-bottom: 1.25rem; }
.options { display: grid; gap: .65rem; }
.option { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.option:hover { border-color: #cbd5e1; background: var(--bg); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.opt-key { width: 32px; height: 32px; border-radius: 8px; background: var(--line-2); display: grid; place-items: center; font-weight: 800; color: var(--ink-3); flex-shrink: 0; }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.option:has(input:checked) .opt-key { background: var(--brand); color: #fff; }
.option:has(input:focus-visible) { outline: 3px solid rgba(245,124,0,.35); }
.palette-card { position: sticky; top: 150px; }
.q-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: .4rem; }
.q-palette button { aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .85rem; color: var(--ink-3); }
.q-palette button.answered { background: var(--success); border-color: var(--success); color: #fff; }
.q-palette button.review { box-shadow: inset 0 0 0 2px #f59e0b; }
.q-palette button.current { outline: 2px solid var(--ink); outline-offset: 1px; }
.palette-legend { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; font-size: .75rem; color: var(--muted); }
.palette-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); margin-right: .3rem; vertical-align: -1px; }
.palette-legend .lg.answered { background: var(--success); border-color: var(--success); } .palette-legend .lg.review { box-shadow: inset 0 0 0 2px #f59e0b; }
.result-card .result-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 1.8rem; }
.result-card.pass .result-icon { background: #dcfce7; color: var(--success); } .result-card.fail .result-icon { background: #fef3c7; color: #b45309; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.result-stats.big { grid-template-columns: repeat(4, 1fr); }
.result-stats > div { background: var(--bg); border-radius: 12px; padding: .75rem .5rem; text-align: center; }
.result-stats strong { display: block; font-size: 1.35rem; font-weight: 800; } .result-stats span { font-size: .75rem; color: var(--muted); }
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.review-list li { display: flex; gap: .8rem; padding: .85rem; border-radius: 12px; border: 1px solid var(--line); }
.rv-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: .8rem; color: #fff; }
.rv-img { max-width: 220px; max-height: 120px; border-radius: 8px; border: 1px solid var(--line); margin: .25rem 0 .4rem; object-fit: contain; }
.rv-explain { margin-top: .5rem; padding: .5rem .7rem; border-radius: 8px; background: #fffbeb; color: #92400e; font-size: .83rem; }
.review-list .ok .rv-icon { background: var(--success); } .review-list .bad .rv-icon { background: var(--danger); } .review-list .skip .rv-icon { background: #94a3b8; }
@media (max-width: 575.98px) { .result-stats.big { grid-template-columns: repeat(2, 1fr); } .exam-bar { top: 56px; flex-wrap: wrap; } }

/* ── Typing test ──────────────────────────────────────────── */
.typing-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); position: relative; }
.typing-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.typing-stats { display: flex; gap: .5rem; flex-wrap: wrap; }
.typing-stats > div { min-width: 86px; padding: .55rem .9rem; border-radius: 12px; background: var(--bg); text-align: center; }
.typing-stats strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.typing-stats span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.typing-stage { position: relative; border: 2px solid var(--line); border-radius: var(--radius); background: #fcfcfd; cursor: text; transition: border-color .15s; }
.typing-stage.focused { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(245,124,0,.1); }
.typing-stage.done { opacity: .6; }
.typing-text { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 1.25rem; line-height: 2.1rem; padding: 1.1rem 1.25rem; height: calc(2.1rem * 4 + 2.2rem); overflow: hidden; color: #94a3b8; word-break: break-word; white-space: pre-wrap; }
.typing-text span.ok { color: var(--ink); }
.typing-text span.bad { color: #dc2626; background: #fee2e2; border-radius: 3px; }
.typing-text span.cursor { border-left: 2px solid var(--brand); margin-left: -2px; animation: blink 1s step-end infinite; color: var(--ink-3); }
@keyframes blink { 50% { border-color: transparent; } }
.typing-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; background: rgba(255,255,255,.82); backdrop-filter: blur(2px); border-radius: var(--radius); font-weight: 600; color: var(--ink-3); text-align: center; padding: 1rem; pointer-events: none; }
.typing-overlay i { font-size: 2rem; color: var(--brand); }
.typing-stage.focused .typing-overlay { opacity: 0; transition: opacity .2s; }
.typing-input { position: absolute; opacity: 0; height: 1px; width: 1px; left: -9999px; }
.typing-foot { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 1rem; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.typing-result { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--line); }
.target-row { display: flex; align-items: center; gap: .75rem; font-size: .85rem; margin-bottom: .6rem; }
.target-row > span { width: 72px; color: var(--muted); } .target-row b { width: 52px; text-align: right; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 64px; margin-bottom: 1rem; padding: .5rem; background: var(--bg); border-radius: 10px; }
.spark span { flex: 1; background: #cbd5e1; border-radius: 3px 3px 0 0; min-height: 4px; }
.spark span.hit { background: var(--success); }

/* ── Certificate (page wrapper; designs live in certificates.css) ── */
.cert-lock { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; font-size: 2.2rem; color: var(--brand); background: var(--brand-50); }

/* ── Apps hub ─────────────────────────────────────────────── */
.app-tile { display: flex; flex-direction: column; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.app-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.app-tile-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--violet)); margin-bottom: 1rem; }
.app-tile h3 { font-size: 1.15rem; } .app-tile p { color: var(--muted); font-size: .9rem; flex: 1; }
.app-tile-foot { display: flex; justify-content: space-between; align-items: center; }
.frame-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.frame-card iframe { width: 100%; height: calc(var(--vh) * 100 - 170px); min-height: 520px; border: 0; display: block; }

/* ── Billing app ──────────────────────────────────────────── */
.app-header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .75rem .9rem; margin-bottom: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.app-identity { display: flex; align-items: center; gap: .75rem; min-width: 0; flex: 1; }
.app-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; flex-shrink: 0; }
.app-tabs { display: flex; gap: .25rem; order: 3; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -.9rem -.75rem; padding: .5rem .9rem; border-top: 1px solid var(--line); background: var(--bg); border-radius: 0 0 var(--radius) var(--radius); }
.app-tabs a { display: flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 10px; color: var(--ink-3); text-decoration: none; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.app-tabs a i { color: var(--muted); }
.app-tabs a:hover { background: #fff; }
.app-tabs a.active { background: var(--ink); color: #fff; } .app-tabs a.active i { color: var(--brand); }
@media (max-width: 767.98px) { .app-tabs a span { display: none; } }
.onboard-card { text-align: center; padding: 3rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.onboard-icon { width: 80px; height: 80px; border-radius: 24px; margin: 0 auto 1.25rem; display: grid; place-items: center; font-size: 2rem; color: #fff; background: linear-gradient(135deg, #7c3aed, var(--brand)); }
.onboard-card h2 { font-weight: 800; } .onboard-card p { color: var(--muted); max-width: 560px; margin: 0 auto 1.5rem; }
.onboard-steps { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.onboard-steps a { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.onboard-steps a:hover { border-color: var(--brand); }
.onboard-steps span { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.bar-chart { display: flex; align-items: flex-end; gap: .75rem; height: 220px; padding-top: 1.5rem; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .35rem; }
.bar { width: 100%; max-width: 56px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--brand), #fdba74); transition: height .6s ease; }
.bar-val { font-size: .68rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.bar-label { font-size: .78rem; font-weight: 700; color: var(--ink-3); }
.due-row { display: flex; align-items: center; gap: .7rem; padding: .6rem; border-radius: 10px; background: var(--bg); }
a.due-row:hover { background: var(--brand-50); }
.quick-link { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink-2); font-weight: 600; }
.quick-link:hover { border-color: var(--brand); }
.quick-link i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.quick-link span { flex: 1; }
.btn-pill-start { border-radius: 999px 0 0 999px !important; }
.btn-pill-end { border-radius: 0 999px 999px 0 !important; }
.items-table .form-control.is-invalid { background-image: none; padding-right: .5rem; }
.items-table td { padding: .45rem .35rem !important; vertical-align: middle; }
.items-table th { padding: .6rem .35rem !important; }
.items-table .form-control-sm, .items-table .form-select-sm { padding: .35rem .5rem; }
.items-table .row-no { text-align: center; font-weight: 600; }
.totals-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.totals { margin: 0; display: grid; gap: .1rem; }
.totals > div { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .92rem; }
.totals dt { color: var(--muted); font-weight: 500; } .totals dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.totals .grand { border-top: 2px solid var(--ink); margin-top: .35rem; padding-top: .6rem; }
.totals .grand dt { color: var(--ink); font-weight: 800; } .totals .grand dd { font-size: 1.45rem; font-weight: 800; color: var(--ink); }
.totals.compact .grand dd { font-size: 1.15rem; }
.words { font-size: .8rem; color: var(--muted); font-style: italic; margin: .35rem 0 0; }
.tax-mode-note { font-size: .8rem; margin-top: .6rem; padding: .5rem .7rem; border-radius: 8px; background: var(--bg); color: var(--ink-3); }
.balance-line { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding: .7rem .9rem; border-radius: 10px; background: #fef2f2; color: #991b1b; }
.balance-line strong { font-size: 1.15rem; }
.bill-to { padding: 1rem; border-radius: 12px; background: var(--bg); }
.hbar .progress { margin-top: .25rem; }

/* ── Games ───────────────────────────────────────────────── */
.games-hero { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.75rem 2rem; margin-bottom: 1.5rem; border-radius: var(--radius-lg); color: #e2e8f0;
    background: radial-gradient(circle at 90% 10%, rgba(14,165,233,.5), transparent 45%), radial-gradient(circle at 10% 90%, rgba(245,124,0,.45), transparent 45%), linear-gradient(120deg, #0f172a, #312e81); }
.games-hero h2 { color: #fff; font-weight: 800; font-size: 1.6rem; } .games-hero p { margin: 0; max-width: 560px; }
.games-filter { display: flex; gap: .5rem; flex-wrap: wrap; }
.games-filter .chip { cursor: pointer; padding: .5rem .9rem; font-size: .85rem; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.18); gap: .4rem; }
.games-filter .chip.active { background: #fff; color: var(--ink); }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.game-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.game-card.hidden { display: none; }
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.game-thumb { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); color: rgba(255,255,255,.9); font-size: 3rem; overflow: hidden; }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.game-card:hover .game-thumb img { transform: scale(1.06); }
.play-btn { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--ink); display: grid; place-items: center; font-size: 1.1rem; opacity: 0; transform: scale(.8); transition: all .2s; box-shadow: var(--shadow-lg); }
.game-card:hover .play-btn { opacity: 1; transform: scale(1); }
.orig-badge { position: absolute; top: .6rem; left: .6rem; font-size: .68rem; font-weight: 800; padding: .2rem .55rem; border-radius: 99px; background: rgba(255,255,255,.92); color: var(--ink); letter-spacing: .02em; }
.game-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { font-size: 1.05rem; margin: 0; }
.game-body p { color: var(--muted); font-size: .85rem; margin: .4rem 0 .7rem; flex: 1; }
.game-cat { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--cc); background: color-mix(in srgb, var(--cc) 12%, #fff); font-size: .85rem; flex-shrink: 0; }
.game-skills { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .6rem; }
.game-skills span { font-size: .7rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; background: var(--line-2); color: var(--ink-3); }
.recent-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .75rem; }
.recent-game { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .9rem; }
.recent-game:hover { border-color: var(--c); }
.recent-game > i { color: var(--muted); font-size: .8rem; }
.rg-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--c); flex-shrink: 0; }
.game-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #0b1020; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.game-stage iframe { display: block; width: 100%; height: calc(100vh - 210px); min-height: 480px; border: 0; background: #fff; }
.game-stage:fullscreen iframe, .game-stage.pseudo-fs iframe { height: 100vh; }
.game-stage.pseudo-fs { position: fixed; inset: 0; z-index: 3000; border-radius: 0; }
.game-exit-fs { display: none; position: absolute; top: .75rem; right: .75rem; z-index: 2; border: 0; border-radius: 99px; padding: .4rem .9rem; background: rgba(15,23,42,.8); color: #fff; font-size: .82rem; font-weight: 600; }
.game-stage:fullscreen .game-exit-fs, .game-stage.pseudo-fs .game-exit-fs { display: block; }

/* ── Admin ───────────────────────────────────────────────── */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h2 { font-size: 1.35rem; font-weight: 800; margin: 0; }
.page-head p { color: var(--muted); margin: .25rem 0 0; font-size: .92rem; }
.data-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.data-card .table { margin: 0; }
.data-card-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line-2); }
.data-card-head h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.person { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.person strong { display: block; color: var(--ink); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person small { color: var(--muted); font-size: .78rem; }
.person a { text-decoration: none; }
.tabs-line { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs-line a { padding: .65rem 1rem; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: .9rem; }
.tabs-line a.active { color: var(--ink); border-color: var(--brand); }
.tabs-line a .count { background: var(--line-2); border-radius: 99px; padding: 0 .45rem; font-size: .72rem; margin-left: .3rem; }
.form-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.form-section > h3 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.form-section > p { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: .5rem; padding: .9rem 1rem; margin: 0 -1rem -1rem; background: rgba(248,250,252,.92); backdrop-filter: blur(6px); border-top: 1px solid var(--line); }
.icon-preview { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--brand)) 12%, #fff); color: var(--c, var(--brand)); font-size: 1.1rem; flex-shrink: 0; }
.thumb { width: 54px; height: 40px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--line-2); }
.thumb-lg { width: 100%; max-height: 200px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.drag-handle { cursor: grab; color: #cbd5e1; padding: 0 .25rem; } .drag-handle:hover { color: var(--muted); }
tr.dragging { opacity: .4; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; padding: 1rem; }
.media-tile { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; position: relative; }
.media-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.media-tile .mt-body { padding: .6rem .7rem; font-size: .82rem; }
.media-tile .mt-actions { position: absolute; top: .4rem; right: .4rem; display: flex; gap: .25rem; }
.media-tile.inactive img { filter: grayscale(1); opacity: .6; }
.kpi-row .stat-card strong { font-size: 1.6rem; }
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line-2); font-size: .88rem; }
.activity-list li:last-child { border-bottom: 0; }
.activity-list .a-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg); color: var(--muted); flex-shrink: 0; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.quick-links a { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: .9rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .88rem; transition: border-color .15s, transform .15s; }
.quick-links a:hover { border-color: var(--brand); transform: translateY(-2px); }
.quick-links i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.content-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.content-hub a { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink-2); }
.content-hub a:hover { border-color: var(--brand); }
.content-hub a i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--brand); flex-shrink: 0; }
.content-hub strong { display: block; font-size: .9rem; } .content-hub small { color: var(--muted); font-size: .75rem; }
.matrix th, .matrix td { text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix .matrix-app { white-space: nowrap; text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; }
.matrix thead th { white-space: normal; min-width: 96px; vertical-align: bottom; line-height: 1.25; }
.matrix thead th.matrix-app { min-width: 200px; }
.flag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.flag { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.flag strong { display: block; font-size: .88rem; } .flag small { color: var(--muted); font-size: .75rem; }
.flag form { margin-left: auto; }
.qr-box { padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: inline-block; }
.code-box { font-family: ui-monospace, monospace; background: var(--ink); color: #e2e8f0; padding: 1rem; border-radius: 10px; font-size: .8rem; max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.receipt { max-width: 620px; margin: 0 auto; }
.bank-summary { display: flex; align-items: stretch; gap: .6rem; flex-wrap: wrap; }
.bank-summary > div { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1rem; }
.bank-summary > div strong { font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1; }
.bank-summary > div span { font-size: .8rem; font-weight: 600; color: var(--ink-3); line-height: 1.25; }
.bank-summary > div small { color: var(--muted); font-weight: 500; }
.bank-summary > div.comp { border-color: #c4b5fd; background: #f5f3ff; } .bank-summary > div.comp strong { color: #6d28d9; }
.bank-summary > div.bank { margin-left: auto; background: var(--bg); }
.bank-summary .op { background: none !important; border: 0 !important; padding: 0 .1rem !important; font-size: 1.4rem; font-weight: 800; color: var(--muted); }
tr.is-compulsory > td { background: #faf7ff; }
.type-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; }
.type-card { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .9rem .5rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .88rem; text-align: center; background: #fff; transition: border-color .15s, background .15s; }
.type-card i { font-size: 1.3rem; color: var(--muted); }
.btn-check:checked + .type-card { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.btn-check:checked + .type-card i { color: var(--brand); }
.opt-row { display: flex; align-items: center; gap: .5rem; }
.opt-letter { width: 28px; height: 28px; border-radius: 8px; background: var(--line-2); display: grid; place-items: center; font-weight: 800; color: var(--ink-3); flex-shrink: 0; }
.opt-correct { display: flex; align-items: center; justify-content: center; width: 30px; flex-shrink: 0; }
.opt-correct input { width: 1.25rem; height: 1.25rem; accent-color: var(--success); cursor: pointer; }
.opt-correct input[hidden] { display: none; }
.opt-img-btn { width: 46px; height: 38px; padding: 0; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.opt-img-btn img { width: 100%; height: 100%; object-fit: cover; }
.opt-img-btn img:not(.d-none) + i { display: none; }
@media print {
    .sidebar, .panel-topbar, .no-print, .demo-bar { display: none !important; }
    .panel-main { margin: 0 !important; } .panel-content { padding: 0 !important; }
    body { background: #fff !important; }
    .panel-card, .data-card { box-shadow: none !important; }
}

/* ── Bank & ATM practice app ──────────────────────────── */
.bank-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem; border-radius: 18px; color: #fff; text-decoration: none; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0f766e, #0e7490 60%, #0369a1); box-shadow: 0 14px 30px -16px rgba(14,116,144,.7); transition: transform .15s; }
.bank-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.08); }
.bank-card.current { background: linear-gradient(135deg, #1e293b, #334155 60%, #475569); }
.bank-card.closed { filter: grayscale(1); opacity: .7; }
a.bank-card:hover { transform: translateY(-3px); color: #fff; }
.bank-card-type { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.bank-card-no { font-size: 1.15rem; letter-spacing: .08em; margin-top: .35rem; }
.bank-card-name { font-weight: 600; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; opacity: .9; }
.bank-card.big { padding: 1.5rem 1.6rem; gap: .6rem; } .bank-card.big .bank-card-no { font-size: 1.5rem; }
.bank-slip { border-top: 6px solid #0f766e; background: linear-gradient(#fff, #fff) padding-box, repeating-linear-gradient(0deg, transparent 0 27px, rgba(15,118,110,.05) 27px 28px); }
.bank-slip.slip-green { border-top-color: #16a34a; } .bank-slip.slip-red { border-top-color: #dc2626; } .bank-slip.slip-blue { border-top-color: #2563eb; }
.slip-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding-bottom: .75rem; margin-bottom: 1rem; border-bottom: 1px dashed var(--line-2, #cbd5e1); font-size: .8rem; color: var(--muted); }
.slip-head strong { color: var(--ink); letter-spacing: .12em; font-size: .9rem; }
.slip-words { min-height: 1.4em; margin: 0; font-style: italic; color: var(--ink-3); border-bottom: 1px dotted var(--line-2, #cbd5e1); padding-bottom: .25rem; }
.denoms { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.denoms > div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .1rem .5rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 10px; }
.denoms span { font-weight: 700; font-size: .85rem; } .denoms small { grid-column: 2; color: var(--muted); text-align: right; }
.passbook-table td, .passbook-table th { white-space: nowrap; } .passbook-table td:nth-child(2) { white-space: normal; min-width: 220px; }
/* ATM */
.atm { background: linear-gradient(180deg, #334155, #1e293b); border-radius: 26px; padding: 1rem 1rem 1.25rem; box-shadow: 0 30px 60px -30px rgba(15,23,42,.8), inset 0 1px 0 rgba(255,255,255,.1); color: #e2e8f0; max-width: 640px; margin: 0 auto; }
.atm-top { text-align: center; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; padding: .3rem 0 .8rem; color: #5eead4; }
.atm-body { display: grid; grid-template-columns: 44px 1fr 44px; gap: .5rem; align-items: stretch; }
.atm-side { display: grid; grid-template-rows: repeat(4, 1fr); gap: .5rem; padding: 2.6rem 0 .4rem; }
.atm-side button { border: 0; border-radius: 8px; background: #475569; box-shadow: inset 0 -3px 0 rgba(0,0,0,.35); cursor: default; }
.atm-side button.live { background: #64748b; cursor: pointer; } .atm-side button.live:hover { background: #0d9488; }
.atm-screen { background: radial-gradient(circle at 50% 30%, #134e4a, #042f2e); border: 6px solid #0f172a; border-radius: 12px; min-height: 290px; padding: .9rem 1rem; font-family: ui-monospace, Consolas, monospace; color: #99f6e4; display: flex; flex-direction: column; text-shadow: 0 0 6px rgba(94,234,212,.35); }
.atm-title { font-weight: 700; font-size: 1.05rem; color: #ccfbf1; text-align: center; margin-bottom: .4rem; }
.atm-line { text-align: center; font-size: .88rem; line-height: 1.5; white-space: pre-wrap; }
.atm-input { margin: .6rem auto; padding: .35rem 1rem; border: 1px solid #2dd4bf; border-radius: 6px; font-size: 1.4rem; letter-spacing: .3em; min-width: 140px; text-align: center; color: #fff; }
.atm-note { text-align: center; font-size: .75rem; color: #5eead4; opacity: .85; }
.atm-opts { margin-top: auto; display: grid; grid-template-rows: repeat(4, 1fr); gap: .5rem; padding-top: .5rem; }
.atm-opt { display: flex; justify-content: space-between; font-size: .82rem; min-height: 1.4em; }
.atm-bottom { display: grid; grid-template-columns: 1fr auto; gap: 1rem; margin-top: 1rem; align-items: start; }
.atm-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; background: #0f172a; padding: .7rem; border-radius: 14px; }
.atm-keypad button { border: 0; border-radius: 8px; padding: .55rem 0; font-weight: 800; background: #cbd5e1; color: #0f172a; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.atm-keypad button:active { transform: translateY(1px); box-shadow: none; }
.atm-keypad .k-clear { background: #facc15; } .atm-keypad .k-enter { background: #22c55e; color: #fff; } .atm-keypad .k-cancel { background: #ef4444; color: #fff; font-size: .8rem; }
.atm-slots { display: grid; gap: .8rem; min-width: 150px; }
.atm-slot span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; }
.slot-line { height: 12px; border-radius: 6px; background: #0f172a; box-shadow: inset 0 2px 4px rgba(0,0,0,.6); position: relative; overflow: visible; }
.slot-line.in::after { content: ''; position: absolute; left: 20%; right: 20%; top: -18px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, #0ea5e9, #6366f1); animation: card-in .5s ease; }
.slot-line.cash.out::after { content: '₹'; position: absolute; left: 10%; right: 10%; top: 6px; height: 26px; border-radius: 3px; background: repeating-linear-gradient(90deg, #86efac 0 14px, #4ade80 14px 16px); color: #14532d; font-weight: 900; display: grid; place-items: center; animation: cash-out 1s ease; }
.slot-line.out:not(.cash)::after { content: ''; position: absolute; left: 30%; right: 30%; top: 6px; height: 30px; background: #fff; border-radius: 2px; animation: cash-out .8s ease; }
@keyframes card-in { from { transform: translateY(-16px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes cash-out { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.atm-card-pick { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s; }
.atm-card-pick:hover { border-color: var(--brand); }
.mini-card { width: 46px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #0f766e, #0369a1); color: #fde68a; display: grid; place-items: center; font-size: .8rem; flex-shrink: 0; }
@media (max-width: 575.98px) { .atm-bottom { grid-template-columns: 1fr; } .atm-body { grid-template-columns: 30px 1fr 30px; } }
.calc-out { margin: 1rem 0 .75rem; display: grid; gap: .1rem; }
.calc-out > div { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.calc-out dt { color: var(--muted); font-weight: 500; } .calc-out dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-out .grand dd { font-size: 1.25rem; color: var(--brand-700, #c2410c); }

/* ── Payroll & data entry apps ────────────────────────── */
.register-table th, .register-table td { white-space: nowrap; font-size: .85rem; }
.step-mini { height: 100%; padding: .9rem; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: .25rem; }
.step-mini i { color: var(--brand); font-size: 1.2rem; } .step-mini span { font-size: .82rem; color: var(--muted); }
.de-bar { position: sticky; top: 70px; z-index: 5; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: .7rem 1rem; margin-bottom: 1rem; background: var(--ink); color: #e2e8f0; border-radius: var(--radius); }
.de-bar button { margin-left: auto; }
.de-form-img { background: #e5e7eb; border-radius: var(--radius); padding: .75rem; box-shadow: inset 0 2px 8px rgba(0,0,0,.08); user-select: none; -webkit-user-select: none; }
.de-form-img canvas { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 6px 18px -8px rgba(0,0,0,.35); }
.de-input { font-family: ui-monospace, Consolas, monospace; }
.de-score > i { font-size: 2.6rem; color: var(--brand); } .de-score.passed > i { color: #eab308; }

/* ── Online certification: auth (register / OTP) ─────────────── */
.auth-shell.auth-wide { grid-template-columns: minmax(300px, 30%) 1fr; }
.auth-card.auth-card-wide { max-width: 780px; }
.auth-side.auth-online { background: radial-gradient(circle at 15% 10%, #1d4ed8, #0b1d42 60%); }
.oc-step { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); margin: 0 0 .85rem; font-size: .95rem; }
.oc-step span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: .8rem; }
.oc-camera { display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; align-items: center; padding: 1rem; border: 1px dashed var(--line); border-radius: 14px; background: #fff; }
.oc-camera.compact { grid-template-columns: 1fr; padding: 0; border: 0; }
.oc-cam-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #0f172a; }
.oc-camera.compact .oc-cam-frame { max-width: 240px; margin: 0 auto; }
.oc-cam-frame video, .oc-cam-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oc-cam-frame video { transform: scaleX(-1); opacity: 0; }
.oc-camera.is-live video { opacity: 1; }
.oc-camera.is-live .oc-cam-frame::after { content: ''; position: absolute; left: 18%; right: 18%; top: 12%; bottom: 22%; border: 2px dashed rgba(255,255,255,.55); border-radius: 50%; pointer-events: none; }
.oc-cam-guide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: #94a3b8; font-size: .85rem; text-align: center; padding: 1rem; }
.oc-cam-guide i { font-size: 2rem; }
.oc-camera.has-photo .oc-cam-frame { box-shadow: 0 0 0 3px var(--success); }
.oc-done-icon { width: 76px; height: 76px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 2rem; color: #fff; background: var(--success); box-shadow: 0 14px 30px -12px var(--success); }
.oc-id-card { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 1.1rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-align: center; }
.oc-id-card small { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; }
.oc-id-card strong { font-size: 1.6rem; color: var(--ink); letter-spacing: .04em; }
.oc-id-card span { color: var(--muted); font-size: .8rem; }
@media (max-width: 575.98px) { .oc-camera { grid-template-columns: 1fr; } .oc-cam-frame { max-width: 240px; margin: 0 auto; width: 100%; } }

/* ── Online certification: portal ─────────────────────────────── */
.oc-course-progress .journey-steps { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1199.98px) { .oc-course-progress .journey-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .oc-course-progress .journey-steps { grid-template-columns: 1fr 1fr; } }
.oc-syllabus { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; }
.oc-syllabus li strong { display: block; font-size: .92rem; } .oc-syllabus li small { color: var(--muted); }
.oc-pattern { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.oc-pattern > div { text-align: center; padding: .8rem .5rem; border-radius: 12px; background: color-mix(in srgb, var(--c) 7%, #fff); border: 1px solid color-mix(in srgb, var(--c) 18%, #fff); }
.oc-pattern b { display: block; font-size: 1.25rem; color: var(--ink); } .oc-pattern small { color: var(--muted); font-size: .75rem; font-weight: 600; }
@media (max-width: 575.98px) { .oc-pattern { grid-template-columns: 1fr 1fr; } }
.oc-profile-photo { width: 140px; height: 175px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); display: block; margin: 0 auto; }
.oc-sections { display: grid; gap: .35rem; }
.oc-sections > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .75rem; border-radius: 10px; background: var(--bg); font-size: .88rem; }
.oc-sections b { white-space: nowrap; }

/* Student with several courses: switcher under the user card */
.course-switch { margin: .6rem .75rem 0; padding: .65rem .75rem; border-radius: 12px; background: rgba(255,255,255,.04); }
.course-switch label { display: flex; align-items: center; gap: .45rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; margin-bottom: .35rem; }
.course-switch .form-select { background-color: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.course-switch .form-select option { color: #0f172a; }
body.sidebar-collapsed .course-switch { display: none; }
/* Multi-course students */
.enrol-rows { display: grid; gap: .6rem; }
.enrol-row { padding: .6rem; border: 1px dashed var(--line); border-radius: 12px; background: #fff; margin: 0; }
.course-focus { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.course-focus .eyebrow-sm { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.course-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-left: auto; }
.course-tabs a { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .8rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.course-tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.course-tabs a i { color: #16a34a; } .course-tabs a.active i { color: #fff; }
.my-course { display: flex; flex-direction: column; gap: .55rem; width: 100%; height: 100%; text-align: left; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: border-color .15s, box-shadow .15s; }
.my-course:hover { border-color: var(--c); }
.my-course.is-on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.my-course .mc-head { display: flex; align-items: center; gap: .55rem; }
.my-course .mc-head i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--c); flex-shrink: 0; }
.my-course .mc-head strong { font-size: .92rem; line-height: 1.25; }
.my-course .mc-head em { margin-left: auto; font-style: normal; font-size: .68rem; font-weight: 800; text-transform: uppercase; color: var(--c); }
.my-course .mc-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; color: var(--muted); font-weight: 600; }
.my-course .mc-go { margin-top: auto; font-weight: 800; font-size: .85rem; color: var(--c); }
.my-course { padding: 1.1rem 1.15rem; }
.course-switch label a { color: #cbd5e1; text-transform: none; letter-spacing: 0; font-weight: 600; }

/* Auth side panel with a photo (e.g. assets/images/online/auth.webp) */
.auth-side.has-photo { background: linear-gradient(180deg, rgba(11,29,66,.55) 0%, rgba(11,29,66,.82) 45%, rgba(11,29,66,.94) 100%), var(--side-img) center / cover no-repeat; }
.auth-side.has-photo::after { opacity: .18; }

/* ── Online exams, payments, results ───────────────────────────── */
.oc-pay-icon { width: 76px; height: 76px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 2rem; color: #fff; }
.oc-pay-icon.ok { background: var(--success); box-shadow: 0 14px 30px -12px var(--success); }
.oc-pay-icon.wait { background: #f59e0b; } .oc-pay-icon.no { background: var(--danger); }
.oc-rules { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; font-size: .9rem; }
.oc-rules li { display: flex; gap: .7rem; } .oc-rules i { color: var(--brand); width: 18px; margin-top: 3px; text-align: center; }
.oc-score { --p: 0; width: 120px; height: 120px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    background: conic-gradient(var(--ring, var(--brand)) calc(var(--p) * 1%), #e2e8f0 0); }
.oc-score > div { width: 94px; height: 94px; border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; }
.oc-score strong { font-size: 1.35rem; line-height: 1; } .oc-score small { color: var(--muted); font-size: .7rem; }
.oc-result.is-pass { --ring: var(--success); border-top: 4px solid var(--success); }
.oc-result.is-fail { --ring: var(--danger); border-top: 4px solid var(--danger); }
.mock-q { border: 0; padding: 0; margin: 0 0 1.4rem; }
.mock-q legend { font-size: 1rem; font-weight: 700; margin-bottom: .6rem; float: none; width: auto; }
.mock-q .options { grid-template-columns: 1fr 1fr; }
@media (max-width: 575.98px) { .mock-q .options { grid-template-columns: 1fr; } }
.option.is-right { border-color: var(--success) !important; background: #f0fdf4 !important; }
.option.is-right .opt-key { background: var(--success); color: #fff; }
.option.is-wrong { border-color: var(--danger) !important; background: #fef2f2 !important; }
.oc-cert-card { transition: transform .15s, box-shadow .15s; } .oc-cert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.oc-cert-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, #f59e0b, #d97706); }

.oc-thumb { width: 44px; height: 55px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

.pay-online { border: 2px solid #bbf7d0; }
.pay-online-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, #16a34a, #22c55e); }

/* ── Enquiry board ─────────────────────────────────────────────── */
.enq-board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: .8rem; overflow-x: auto; padding-bottom: .5rem; }
.enq-col { background: #f1f5f9; border-radius: 14px; display: flex; flex-direction: column; min-height: 320px; border-top: 4px solid var(--c); transition: background .15s; }
.enq-col.over { background: color-mix(in srgb, var(--c) 10%, #f1f5f9); }
.enq-col header { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; font-weight: 800; font-size: .88rem; color: #0f172a; }
.enq-col header i { color: var(--c); }
.enq-count { margin-left: auto; background: #fff; border-radius: 999px; padding: .05rem .55rem; font-size: .75rem; color: var(--muted); }
.enq-cards { display: flex; flex-direction: column; gap: .55rem; padding: 0 .55rem .7rem; flex: 1; }
.enq-card { background: #fff; border-radius: 11px; padding: .65rem .7rem; box-shadow: 0 1px 2px rgba(15,23,42,.06); border: 1px solid var(--line); cursor: grab; font-size: .82rem; }
.enq-card.dragging { opacity: .45; }
.enq-name { font-weight: 700; color: #0f172a; text-decoration: none; }
.enq-src { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.enq-sub { color: #475569; margin-top: .2rem; line-height: 1.35; }
.enq-note { margin-top: .35rem; color: #64748b; font-size: .76rem; display: flex; gap: .35rem; }
.enq-meta { display: flex; align-items: center; gap: .5rem; margin-top: .45rem; font-size: .72rem; color: var(--muted); }
.enq-fu { font-weight: 700; color: #334155; display: inline-flex; gap: .25rem; align-items: center; }
.enq-fu.today { color: #c2410c; } .enq-fu.late { color: #dc2626; }
.enq-btn { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #f1f5f9; color: #334155; text-decoration: none; }
.enq-btn.wa { background: #dcfce7; color: #15803d; }
.enq-empty { text-align: center; color: #94a3b8; font-size: .8rem; margin: 1rem 0; }
.enq-stages { display: flex; flex-wrap: wrap; gap: .3rem; }
.enq-stages button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .7rem; font-size: .76rem; font-weight: 700; color: #334155; display: inline-flex; gap: .35rem; align-items: center; }
.enq-stages button i { color: var(--c); }
.enq-stages button.on { background: var(--c); border-color: var(--c); color: #fff; } .enq-stages button.on i { color: #fff; }
.enq-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.enq-timeline li { padding: .55rem .75rem; border-left: 3px solid var(--brand); background: var(--bg); border-radius: 0 10px 10px 0; display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; }
.enq-timeline small { color: var(--muted); font-size: .74rem; }
/* ── Admin → Staff / staff login ─────────────────────────────── */
.auth-side.auth-staff { background: radial-gradient(circle at 15% 10%, #0f766e, #062a2a 62%); }
.staff-tool-dot { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; font-size: .72rem; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); flex-shrink: 0; }
.staff-tool-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .45rem; }
.staff-tool-pick { display: flex; align-items: center; gap: .55rem; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; margin: 0; font-size: .86rem; font-weight: 600; }
.staff-tool-pick .form-check-input { margin: 0; }
.staff-tool-pick:has(input:checked) { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); background: color-mix(in srgb, var(--c) 6%, #fff); }
.staff-tool-pick .staff-tool-dot { --c: inherit; }
.staff-cred { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; }
.staff-cred code { font-size: .95rem; background: #fff; padding: .1rem .45rem; border-radius: 6px; color: #065f46; }
.staff-bars { display: flex; align-items: flex-end; gap: 4px; height: 110px; }
.staff-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.staff-bar span { width: 100%; background: linear-gradient(#14b8a6, #0f766e); border-radius: 4px 4px 0 0; min-height: 0; }
.staff-bar small { font-size: .62rem; color: var(--muted); }
