/* UncleKay Digital Skills Academy - app.css
 * Tokens -> base -> components (buttons, forms, cards, tables, modal, toast) -> app shell -> public site -> auth.
 * 8px grid. Palette: navy / deep teal / gold / ivory. Everything is documented in docs/FRONTEND.md */
:root {
  --navy: #0B1F3A; --navy-2: #14305A; --navy-3: #1C3F73;
  --teal: #0F766E; --teal-d: #0B5E58; --teal-l: #E3F2F0;
  --gold: #C9A24A; --gold-d: #9C7A28; --gold-l: #F6EDD3;
  --ivory: #FAF7F0; --paper: #FFFFFF; --sand: #F1ECE0;
  --ink: #1B2433; --muted: #5B6577; --line: #E4DECF; --line-2: #D5CEBB;
  --red: #B42318; --red-l: #FDECEA; --green: #12703F; --green-l: #E4F5EB; --amber: #9A5B05; --amber-l: #FDF1D8; --blue: #1D4F91; --blue-l: #E6EEF9;
  --r: 12px; --r-sm: 8px; --r-lg: 20px;
  --sh-1: 0 1px 2px rgba(11,31,58,.06), 0 1px 3px rgba(11,31,58,.05);
  --sh-2: 0 4px 12px rgba(11,31,58,.08), 0 2px 4px rgba(11,31,58,.05);
  --sh-3: 0 16px 40px rgba(11,31,58,.18);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --side-w: 264px; --top-h: 64px; --tab-h: 64px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--ivory); min-height: 100vh; min-height: 100dvh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); } h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--teal-d); text-underline-offset: 2px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; }
code { background: var(--sand); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 8px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 8px; transition: top .15s; }
.skip-link:focus { top: 8px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; } .prewrap { white-space: pre-line; }
.stack > * + * { margin-top: 16px; } .stack-lg > * + * { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 max(16px, var(--sal)) 0 max(16px, var(--sar)); }
.container.narrow { max-width: 760px; }
.ic { display: inline-flex; vertical-align: middle; flex: none; } .ic svg { display: block; }
.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); }
.boot-mark { width: 56px; height: 56px; border-radius: 14px; background: var(--navy); position: relative; }
.boot-mark::after { content: ""; position: absolute; inset: 14px; border-radius: 8px; background: var(--gold); animation: pulse 1.2s ease-in-out infinite; }
.fatal { max-width: 420px; margin: 20vh auto; padding: 24px; text-align: center; }
.noscript { padding: 24px; text-align: center; background: var(--gold-l); }
@keyframes pulse { 50% { opacity: .35; transform: scale(.9); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; white-space: nowrap; background: none; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; } .btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; } .btn-teal:hover { background: var(--teal-d); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); } .btn-gold:hover { background: #D6B15C; color: var(--navy); }
.btn-outline { border-color: var(--line-2); background: var(--paper); color: var(--navy); } .btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost { color: var(--navy); } .btn-ghost:hover { background: var(--sand); }
.btn-danger { background: var(--red); color: #fff; } .btn-danger:hover { background: #8F1C12; color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; } .btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-ghost-nav { color: #fff; } .btn-ghost-nav:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost-light { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.18); } .btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .875rem; } .btn-lg { min-height: 52px; padding: 12px 28px; font-size: 1.02rem; } .btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 0; background: none; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(127,127,127,.14); }
.link-btn { background: none; border: 0; padding: 4px; color: var(--teal-d); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
.js-install { display: none; } [data-can-install="yes"] .js-install, [data-can-install="ios"] .js-install { display: inline-flex; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--teal); animation: spin .8s linear infinite; display: inline-block; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; vertical-align: -3px; border-color: rgba(255,255,255,.4); border-top-color: #fff; }
.spinner-wrap { display: grid; place-items: center; padding: 48px 0; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; } .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .col-2 { grid-column: 1 / -1; }
.form-group { grid-column: 1 / -1; font-size: 1rem; margin: 8px 0 -4px; padding-top: 8px; border-top: 1px solid var(--line); }
.field { min-width: 0; } .field.is-hidden { display: none; }
.field-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.req { color: var(--red); } .opt-tag { color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 10px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6577' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,.2); }
input::placeholder, textarea::placeholder { color: #8B93A3; }
input:disabled, select:disabled, textarea:disabled { background: var(--sand); color: var(--muted); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); } .has-error input:focus { box-shadow: 0 0 0 3px rgba(180,35,24,.18); }
.field-error { color: var(--red); font-size: .85rem; min-height: 0; margin-top: 4px; } .field-error:empty { display: none; }
.field-hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.input-wrap { position: relative; } .input-wrap input { padding-right: 50px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; } .pw-toggle:hover { color: var(--navy); }
.check, .opt { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.form-error { background: var(--red-l); color: var(--red); border: 1px solid #F4C4BE; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: .92rem; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; } .auth-form .form-actions { margin-top: 20px; } .auth-form .form-actions .btn { width: 100%; }
.is-busy { opacity: .85; } .form-row-end { text-align: right; margin-top: 8px; font-size: .9rem; }
.notice { padding: 12px 16px; border-radius: 10px; background: var(--gold-l); color: #5B4410; font-size: .92rem; margin-bottom: 16px; } .notice.info { background: var(--blue-l); color: var(--blue); }
.dev-note { margin-top: 12px; padding: 8px 12px; border: 1px dashed var(--gold-d); border-radius: 8px; background: var(--gold-l); font-size: .85rem; color: #5B4410; }
.meter-wrap { margin-top: 8px; } .meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; } .meter span { height: 5px; border-radius: 3px; background: var(--line); transition: background .2s; }
.meter span.on.s1 { background: var(--red); } .meter span.on.s2 { background: #D97706; } .meter span.on.s3 { background: #65A30D; } .meter span.on.s4 { background: var(--green); }
.meter-txt { color: var(--muted); display: block; min-height: 18px; margin-top: 4px; }
.otp { display: flex; gap: 8px; justify-content: center; margin: 24px 0 8px; }
.otp-box { width: 100% !important; max-width: 52px; height: 58px; min-height: 0 !important; padding: 0 !important; text-align: center; font-size: 1.6rem !important; font-weight: 700; border-radius: 12px !important; }
.otp.has-error .otp-box { border-color: var(--red); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.resend { display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: center; align-items: center; font-size: .9rem; margin: 12px 0; }

/* ---------- cards, stats, badges, tabs ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-title { font-size: 1.05rem; margin: 0; } .card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card-body { padding: 20px; } .card.flush .card-body { padding: 0; }
.stat { display: flex; gap: 16px; align-items: center; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); text-decoration: none; color: inherit; min-width: 0; }
a.stat:hover { box-shadow: var(--sh-2); border-color: var(--line-2); }
.stat-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-l); color: var(--teal-d); flex: none; }
.stat.tone-gold .stat-ic { background: var(--gold-l); color: var(--gold-d); } .stat.tone-navy .stat-ic { background: #E4EAF3; color: var(--navy); } .stat.tone-red .stat-ic { background: var(--red-l); color: var(--red); } .stat.tone-green .stat-ic { background: var(--green-l); color: var(--green); }
.stat-main { display: flex; flex-direction: column; min-width: 0; } .stat-label { color: var(--muted); font-size: .85rem; } .stat-value { font-size: 1.5rem; color: var(--navy); line-height: 1.2; overflow-wrap: anywhere; } .stat-hint { color: var(--muted); font-size: .8rem; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; text-transform: capitalize; white-space: nowrap; background: var(--blue-l); color: var(--blue); }
.badge-green { background: var(--green-l); color: var(--green); } .badge-amber { background: var(--amber-l); color: var(--amber); } .badge-red { background: var(--red-l); color: var(--red); } .badge-teal { background: var(--teal-l); color: var(--teal-d); } .badge-grey { background: var(--sand); color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .tabs::-webkit-scrollbar { display: none; }
.tab-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font-weight: 600; cursor: pointer; white-space: nowrap; min-height: 44px; }
.tab-btn[aria-selected=true] { color: var(--navy); border-bottom-color: var(--gold); } .tab-btn:hover { color: var(--navy); }
.tab-btn .count { background: var(--sand); border-radius: 999px; padding: 0 8px; font-size: .75rem; } .tab-panel { padding-top: 20px; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); } .empty h3 { color: var(--navy); margin-bottom: 4px; } .empty p { max-width: 420px; margin: 0 auto 16px; }
.empty-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sand); color: var(--navy); margin-bottom: 16px; }
.skeleton .sk-line { display: block; height: 12px; border-radius: 6px; margin: 10px 0; background: linear-gradient(90deg, var(--sand), #fff, var(--sand)); background-size: 200% 100%; animation: shimmer 1.4s infinite; } .skeleton .sk-line:nth-child(odd) { width: 80%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; } .page-head h2 { margin-bottom: 4px; }
.avatar-img { object-fit: cover; background: var(--sand); display: block; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 700; font-size: .85rem; flex: none; }
.grid-stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px 0; flex-wrap: wrap; } .pager.is-empty { padding-top: 8px; } .pager-btns { display: flex; align-items: center; gap: 8px; } .pager-cur { font-size: .9rem; color: var(--muted); }
.chart { width: 100%; } .chart svg { display: block; } .ch-grid { stroke: var(--line); stroke-width: 1; } .ch-ax { font-size: 11px; fill: var(--muted); } .ch-center { font-size: 22px; font-weight: 700; fill: var(--navy); }
.donut { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; } .legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; } .legend li { display: flex; gap: 8px; align-items: center; } .legend .dot { width: 12px; height: 12px; border-radius: 4px; } .legend b { margin-left: auto; padding-left: 16px; }

/* ---------- table (stacked cards on phones) ---------- */
.tbl-wrap { width: 100%; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 16px; background: var(--ivory); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; } .tbl.clickable tbody tr { cursor: pointer; } .tbl.clickable tbody tr:hover td, .tbl.clickable tbody tr:focus-visible td { background: #FBF9F3; }
.al-right { text-align: right; } .al-center { text-align: center; }
@media (max-width: 699px) {
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; } .tbl thead { display: none; } .tbl-wrap { overflow: visible; }
  .tbl tr { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; padding: 4px 0; box-shadow: var(--sh-1); }
  .card.flush .tbl tr { border-radius: 0; border-width: 0 0 1px; box-shadow: none; margin: 0; }
  .tbl td { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 8px 16px; border: 0; text-align: right !important; overflow-wrap: anywhere; }
  .tbl td::before { content: attr(data-label); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; text-align: left; flex: none; padding-top: 2px; }
  .tbl td.primary { font-weight: 700; color: var(--navy); font-size: 1rem; text-align: left !important; justify-content: flex-start; padding-top: 12px; } .tbl td.primary::before { display: none; }
  .tbl td.hide-m { display: none; }
}

/* ---------- overlays ---------- */
.backdrop { position: fixed; inset: 0; z-index: 500; background: rgba(11,31,58,.55); display: grid; place-items: center; padding: 16px; animation: fade .16s; overflow-y: auto; }
.backdrop.out { opacity: 0; transition: opacity .15s; } @keyframes fade { from { opacity: 0; } }
.modal { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh-3); width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; position: relative; animation: rise .2s; }
.modal-sm { max-width: 420px; } .modal-lg { max-width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px 24px; } .modal-head h2 { margin: 0; font-size: 1.2rem; }
.modal-x { position: absolute; right: 8px; top: 8px; }
.modal-body { padding: 8px 24px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.confirm-msg { margin: 8px 0 0; }
.toasts { position: fixed; z-index: 900; top: calc(12px + var(--sat)); right: 12px; display: grid; gap: 8px; width: min(380px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 12px 12px 12px 16px; background: var(--navy); color: #fff; border-radius: 12px; box-shadow: var(--sh-3); font-size: .93rem; animation: rise .2s; border-left: 4px solid var(--gold); }
.toast.out { opacity: 0; transform: translateX(16px); transition: .2s; } .toast span:nth-child(2) { flex: 1; padding-top: 1px; }
.toast-success { border-left-color: #34D399; } .toast-error { border-left-color: #F87171; background: #4B1511; } .toast-warn { border-left-color: #FBBF24; }
.toast-x { background: none; border: 0; color: rgba(255,255,255,.7); cursor: pointer; padding: 2px; border-radius: 6px; } .toast-x:hover { color: #fff; }

/* ---------- authenticated app shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar { background: var(--navy); color: #E7ECF4; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: 60; overflow-y: auto; padding-bottom: var(--sab); }
.side-head { padding: 20px 20px 12px; } .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; } .brand:hover { color: #fff; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; } .brand-name b { font-size: 1.1rem; } .brand-name small { color: var(--gold); font-size: .72rem; font-weight: 500; letter-spacing: .02em; }
.nav-list { list-style: none; margin: 0; padding: 12px; display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: #C9D3E3; text-decoration: none; font-weight: 500; min-height: 44px; position: relative; }
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-link[aria-current=page] { background: rgba(201,162,74,.16); color: #fff; } .nav-link[aria-current=page]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold); }
.nav-link[aria-current=page] .ic { color: var(--gold); }
.nav-badge { margin-left: auto; background: var(--gold); color: var(--navy); border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 0 7px; }
.side-foot { margin-top: auto; padding: 16px; display: grid; gap: 8px; }
.shell-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; min-height: var(--top-h); padding: calc(8px + var(--sat)) max(24px, var(--sar)) 8px 24px; background: rgba(250,247,240,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-title { font-size: 1.15rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn, .brand-phone { display: none; }
.user-wrap { position: relative; } .avatar-btn { display: flex; align-items: center; gap: 10px; background: none; border: 1px solid transparent; border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; color: var(--ink); } .avatar-btn:hover { background: var(--sand); }
.who { display: flex; flex-direction: column; text-align: left; line-height: 1.2; } .who b { font-size: .88rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .who small { color: var(--muted); font-size: .72rem; text-transform: capitalize; }
.user-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-3); padding: 8px; z-index: 70; animation: rise .15s; }
.um-head { color: var(--ink); display: flex; flex-direction: column; padding: 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; } .um-head small { color: var(--muted); }
.um-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 8px; border: 0; background: none; color: var(--ink); text-decoration: none; cursor: pointer; font-size: .93rem; min-height: 44px; text-align: left; } .um-item:hover { background: var(--sand); color: var(--ink); } .um-item.danger { color: var(--red); }
.view { padding: 24px max(24px, var(--sar)) 48px 24px; width: 100%; max-width: 1280px; animation: rise .25s; outline: none; }
.view-bare { min-height: 100vh; min-height: 100dvh; }
.tabbar { display: none; }
.scrim { display: none; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .sheet-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px; border-radius: 12px; background: var(--ivory); text-decoration: none; color: var(--navy); font-size: .8rem; font-weight: 600; text-align: center; min-height: 80px; justify-content: center; }
.sheet-list { display: grid; gap: 4px; } .modal.is-sheet .modal-body { padding-top: 4px; }

/* tablet: collapsed rail */
@media (min-width: 700px) and (max-width: 1099px) {
  .shell { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; width: 76px; transition: width .2s; } .shell-main { grid-column: 2; }
  .shell.nav-open .sidebar { width: var(--side-w); box-shadow: var(--sh-3); }
  .shell:not(.nav-open) .brand-name, .shell:not(.nav-open) .nav-link .lbl, .shell:not(.nav-open) .nav-badge, .shell:not(.nav-open) .side-foot .btn span:not(.ic) { display: none; }
  .shell:not(.nav-open) .side-head { padding: 20px 0 12px; display: grid; place-items: center; } .shell:not(.nav-open) .nav-link { justify-content: center; padding: 11px 0; } .shell:not(.nav-open) .side-foot .btn { padding: 8px 0; }
  .shell:not(.nav-open) .nav-link[aria-current=page]::before { left: -12px; }
  .menu-btn { display: inline-grid; } .shell.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(11,31,58,.45); z-index: 55; }
  .topbar { padding-left: 16px; } .view { padding-left: 16px; }
}
/* phone: top app bar + bottom tab bar */
@media (max-width: 699px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: 56px; padding: calc(6px + var(--sat)) max(12px, var(--sar)) 6px max(12px, var(--sal)); background: var(--navy); border-bottom: 0; color: #fff; }
  .brand-phone { display: inline-flex; } .top-title { color: #fff; font-size: 1.05rem; flex: 0 1 auto; min-width: 0; } .top-install { display: none !important; }
  .avatar-btn { padding: 2px; } .who { display: none; } .avatar-btn:hover { background: rgba(255,255,255,.12); }
  .user-menu { position: fixed; right: 12px; top: calc(56px + var(--sat)); }
  .view { padding: 16px max(16px, var(--sar)) calc(var(--tab-h) + var(--sab) + 24px) max(16px, var(--sal)); }
  .shell.no-tabs .view { padding-bottom: 24px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(11,31,58,.08); padding: 0 var(--sar) var(--sab) var(--sal); }
  .tab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tab-h); padding: 6px 2px; border: 0; background: none; color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 600; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
  .tab .lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab[aria-current=page], .tab.is-on { color: var(--navy); } .tab[aria-current=page]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
  .tab[aria-current=page] .ic { color: var(--teal-d); }
  .toasts { top: auto; bottom: calc(var(--tab-h) + var(--sab) + 8px); right: 12px; left: 12px; width: auto; }
  .backdrop { align-items: end; padding: 0; } .modal { border-radius: 20px 20px 0 0; max-width: none; max-height: 92dvh; animation: slideup .22s; } .modal-body { padding: 8px 16px calc(24px + var(--sab)); } .modal-foot { padding: 12px 16px calc(12px + var(--sab)); } .modal-foot .btn { flex: 1; }
  .modal-head { padding: 16px 8px 4px 16px; } .form-grid.cols-2 { grid-template-columns: 1fr; }
}
@keyframes slideup { from { transform: translateY(40px); opacity: 0; } }

/* ---------- public site ---------- */
.pub { background: var(--ivory); }
.pub-header { position: sticky; top: 0; z-index: 80; background: var(--navy); color: #fff; padding-top: var(--sat); transition: box-shadow .2s, background .2s; } .pub-header.is-stuck { box-shadow: 0 4px 20px rgba(11,31,58,.3); }
.pub-header-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.pub-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex: none; } .pub-brand:hover { color: #fff; }
.pub-brand-name { display: flex; flex-direction: column; line-height: 1.15; } .pub-brand-name b { font-size: 1.1rem; } .pub-brand-name small { color: var(--gold); font-size: .72rem; }
.pub-nav { display: flex; gap: 4px; margin-left: auto; } .pub-nav a { color: #D5DDEB; text-decoration: none; padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: .95rem; } .pub-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.pub-actions { display: flex; align-items: center; gap: 8px; } .pub-auth { display: flex; gap: 8px; } .pub-burger { display: none; color: #fff; }
.pub-menu { padding: 8px 16px 20px; border-top: 1px solid rgba(255,255,255,.12); max-height: calc(100dvh - 68px); overflow-y: auto; } .pub-menu[hidden] { display: none; } .pub-menu nav { display: grid; } .pub-menu nav a { color: #fff; text-decoration: none; padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 500; }
.pub-menu-btns { display: grid; gap: 8px; margin: 16px 0 8px; } .btn-outline-light.btn-block { margin-top: 8px; }
@media (max-width: 899px) { .pub-nav, .pub-auth, .pub-actions .btn-sm.js-install { display: none !important; } .pub-burger { display: inline-grid; } .pub-actions { margin-left: auto; } .pub-brand-name small { display: none; } }
.kicker { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; } .kicker.dark { color: var(--gold-d); }
/* hero slider */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.slides { position: relative; min-height: clamp(520px, 78vh, 640px); }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transform: scale(1.02); transition: opacity .7s ease, transform 1.2s ease, visibility 0s .7s; }
.slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease, transform 1.2s ease; z-index: 1; }
.s1 { background: radial-gradient(900px 500px at 85% 20%, rgba(94,234,212,.22), transparent 60%), linear-gradient(135deg, #0B1F3A 0%, #0B3A4A 55%, #0F766E 100%); }
.s2 { background: radial-gradient(800px 500px at 90% 80%, rgba(201,162,74,.22), transparent 60%), linear-gradient(135deg, #0B1F3A 0%, #17376A 60%, #3B6EA5 100%); }
.s3 { background: radial-gradient(800px 500px at 80% 10%, rgba(201,162,74,.3), transparent 60%), linear-gradient(135deg, #0B1F3A 0%, #2B2A2E 55%, #7A5C1B 100%); }
.s4 { background: radial-gradient(800px 500px at 15% 90%, rgba(201,162,74,.22), transparent 60%), linear-gradient(135deg, #0A2A2E 0%, #0B5E58 60%, #0F766E 100%); }
.slide-glow { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); }
.slide-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-top: 32px; padding-bottom: 72px; }
.slide-text h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; margin-bottom: 16px; } .slide-text p { color: #D5DDEB; font-size: clamp(1rem, 2vw, 1.2rem); max-width: 540px; margin-bottom: 28px; }
.slide-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.slide-art { justify-self: center; width: 100%; max-width: 440px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); } .slide.is-on .slide-art { animation: float 6s ease-in-out infinite; } @keyframes float { 50% { transform: translateY(-10px); } }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(11,31,58,.4); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); } .slide-arrow:hover { background: rgba(255,255,255,.2); } .slide-arrow.prev { left: 16px; } .slide-arrow.next { right: 16px; }
.dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; gap: 4px; } .dot { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; position: relative; } .dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 999px; background: rgba(255,255,255,.4); transition: width .3s, background .3s; } .dot.is-on::after { width: 28px; margin-left: -14px; background: var(--gold); }
@media (max-width: 899px) {
  .slides { min-height: 560px; } .slide-in { grid-template-columns: 1fr; padding-bottom: 88px; } .slide-art { position: absolute; right: -40px; bottom: 56px; width: 280px; opacity: .12; z-index: -1; max-width: none; } .slide-arrow { display: none; }
  .slide-cta .btn { flex: 1 1 100%; } .slide-text { position: relative; z-index: 1; }
}
.stats-strip { background: var(--paper); border-bottom: 1px solid var(--line); } .strip { display: grid; grid-template-columns: repeat(4, 1fr); } .strip-item { padding: 24px 16px; text-align: center; border-right: 1px solid var(--line); } .strip-item:last-child { border: 0; } .strip-item b { display: block; font-size: 1.7rem; color: var(--navy); line-height: 1.2; } .strip-item span { color: var(--muted); font-size: .9rem; }
@media (max-width: 699px) { .strip { grid-template-columns: 1fr 1fr; } .strip-item { padding: 16px 8px; border-bottom: 1px solid var(--line); } .strip-item:nth-child(2n) { border-right: 0; } .strip-item:nth-last-child(-n+2) { border-bottom: 0; } .strip-item b { font-size: 1.35rem; } }
.sec { padding: 80px 0; } .sec.alt { background: var(--paper); } .sec-head { max-width: 680px; margin: 0 auto 40px; text-align: center; } .sec-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); } .lead { color: var(--muted); font-size: 1.08rem; margin: 0; }
@media (max-width: 699px) { .sec { padding: 48px 0; } .sec-head { margin-bottom: 28px; } }
.course-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } .col-all { grid-column: 1 / -1; }
.course-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; } .course-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.course-art { height: 148px; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--sand); } .course-art-pattern { position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.25), transparent 45%), repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); } .course-art-code { position: relative; font-size: 2.6rem; font-weight: 800; color: rgba(255,255,255,.9); letter-spacing: .06em; } .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-body { padding: 20px; display: flex; flex-direction: column; flex: 1; } .course-body h3 { font-size: 1.2rem; margin: 12px 0 2px; } .course-sub { color: var(--teal-d); font-weight: 600; font-size: .9rem; margin-bottom: 8px; } .course-desc { color: var(--muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--sand); color: var(--navy); font-size: .78rem; font-weight: 600; } .chips.light .chip { background: rgba(255,255,255,.14); color: #fff; }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); } .price small { display: block; color: var(--muted); font-size: .75rem; line-height: 1; } .price b { font-size: 1.3rem; color: var(--navy); }
.course-card.skel { pointer-events: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; text-align: center; padding: 8px; } .step-n { position: absolute; top: -4px; left: 50%; margin-left: -48px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; font-size: .8rem; display: grid; place-items: center; z-index: 1; } .step-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--navy); color: var(--gold); margin-bottom: 16px; } .step h3 { font-size: 1rem; } .step p { color: var(--muted); font-size: .9rem; margin: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 32px; left: calc(50% + 44px); right: calc(-50% + 44px); border-top: 2px dashed var(--line-2); }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; gap: 8px; } .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; text-align: left; align-items: start; padding: 12px 0; } .step-ic { grid-row: 1 / 3; width: 56px; height: 56px; margin: 0; } .step-n { left: 38px; top: 6px; margin: 0; width: 22px; height: 22px; font-size: .72rem; } .step::after { display: none; } .step h3 { margin: 0; align-self: end; } }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; } @media (max-width: 899px) { .feature-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 599px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); } .sec.alt .feature { background: var(--ivory); } .feature-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--teal-l); color: var(--teal-d); margin-bottom: 16px; } .feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.pricing-note { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; max-width: 960px; margin: 0 auto; } @media (max-width: 799px) { .pricing-note { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; } .ticks li { display: flex; gap: 12px; align-items: flex-start; } .ticks .ic { color: var(--teal); margin-top: 2px; } .ticks.two { grid-template-columns: 1fr 1fr; } @media (max-width: 699px) { .ticks.two { grid-template-columns: 1fr; } }
.pn-card { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 28px; text-align: center; } .pn-card p { margin: 0 0 8px; color: #D5DDEB; } .pn-card b { display: block; font-size: 1.8rem; color: var(--gold); margin-bottom: 8px; } .pn-card small { color: #AEBBD0; }
.about { max-width: 720px; margin: 0 auto; text-align: center; font-size: 1.05rem; color: #3A4458; }
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; } .faq-item { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r); } .faq-item.open { border-color: var(--gold); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; text-align: left; background: none; border: 0; padding: 18px 20px; font-weight: 600; color: var(--navy); cursor: pointer; min-height: 56px; } .faq-q .ic { transition: transform .2s; flex: none; } .faq-item.open .faq-q .ic { transform: rotate(180deg); }
.faq-a { padding: 0 20px 18px; color: #3A4458; } .faq-a p { margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; } @media (max-width: 799px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; } .contact-card.cta { background: var(--navy); color: #fff; border-color: var(--navy); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; } .contact-card.cta h3 { color: #fff; } .contact-card.cta p { color: #D5DDEB; margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; } .contact-list li { display: flex; gap: 14px; align-items: flex-start; } .contact-list small { display: block; color: var(--muted); } .contact-list a, .contact-list span { overflow-wrap: anywhere; } .contact-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--teal-l); color: var(--teal-d); flex: none; }
.verify-sec { background: linear-gradient(135deg, var(--navy), #14305A); } .verify-sec h2 { color: #fff; } .verify-sec .lead { color: #D5DDEB; }
.verify-box { max-width: 520px; margin: 0 auto; background: var(--paper); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-3); } .verify-box .form-actions { justify-content: stretch; } .verify-box .form-actions .btn { width: 100%; }
.pub-footer { background: #07162B; color: #AEBBD0; padding: 56px 0 calc(24px + var(--sab)); } .pub-footer h4 { color: #fff; font-size: .95rem; } .pub-footer a { color: #D5DDEB; text-decoration: none; } .pub-footer a:hover { color: var(--gold); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; } .foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .foot-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 12px; } .foot-note { max-width: 340px; font-size: .92rem; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; } @media (max-width: 699px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
/* course detail + verification page */
.course-hero { background: linear-gradient(135deg, var(--navy), #0B3A4A 70%, var(--teal)); color: #fff; padding: 40px 0 48px; } .course-hero h1 { color: #fff; margin: 16px 0 8px; } .hero-sub { color: #D5DDEB; font-size: 1.15rem; margin: 0; } .back { display: inline-flex; align-items: center; color: #D5DDEB; text-decoration: none; margin-bottom: 16px; font-size: .92rem; } .back:hover { color: var(--gold); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding-top: 40px; padding-bottom: 64px; align-items: start; } @media (max-width: 959px) { .detail-grid { grid-template-columns: 1fr; } .enrol-card { order: -1; } }
.detail-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 24px; } .detail-block h2 { font-size: 1.3rem; }
.syllabus { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .syllabus li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--ivory); border-radius: 10px; } .syl-n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex: none; } .syl-t { flex: 1; font-weight: 500; } .syl-m { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.enrol-card { position: sticky; top: 88px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-2); } @media (max-width: 959px) { .enrol-card { position: static; } }
.plan-list { display: grid; gap: 8px; margin-bottom: 16px; } .plan { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); cursor: pointer; text-align: left; width: 100%; min-height: 56px; } .plan.is-on { border-color: var(--teal); background: var(--teal-l); }
.plan-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; position: relative; } .plan.is-on .plan-radio { border-color: var(--teal); } .plan.is-on .plan-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--teal); }
.plan-main { display: flex; flex-direction: column; flex: 1; line-height: 1.25; } .plan-main small { color: var(--muted); } .plan-amt { font-weight: 700; color: var(--navy); }
.plan-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 8px; } .plan-price { font-size: 1.6rem; color: var(--navy); }
.page-sec { padding: 48px 0 80px; } .page-pad { padding: 64px 16px; } .page-h { margin-bottom: 24px; } .h3 { margin-top: 40px; }
.verify-result { margin-bottom: 8px; } .vr { border-radius: var(--r-lg); padding: 32px 24px; text-align: center; border: 1px solid; } .vr.valid { background: var(--green-l); border-color: #B7E2C7; } .vr.invalid { background: var(--red-l); border-color: #F4C4BE; } .vr-ic { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #fff; margin-bottom: 12px; } .vr.valid .vr-ic { color: var(--green); } .vr.invalid .vr-ic { color: var(--red); }
.vr-list { display: grid; gap: 0; margin: 20px auto 0; max-width: 460px; text-align: left; background: #fff; border-radius: 12px; padding: 4px 16px; } .vr-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .vr-list > div:last-child { border: 0; } .vr-list dt { color: var(--muted); } .vr-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; text-align: right; }

/* ---------- auth screens ---------- */
.auth-page { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; overflow: hidden; background: radial-gradient(700px 400px at 100% 0, rgba(201,162,74,.25), transparent 60%), linear-gradient(150deg, #0B1F3A, #0B3A4A 70%, #0F766E); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.auth-side h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 440px; position: relative; } .auth-side p { color: #D5DDEB; max-width: 420px; position: relative; font-size: 1.05rem; }
.auth-brand { display: flex; gap: 12px; align-items: center; color: #fff; text-decoration: none; font-size: 1.1rem; position: relative; margin-bottom: 32px; } .auth-brand:hover { color: #fff; }
.auth-orb { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); } .auth-orb.o1 { width: 420px; height: 420px; right: -140px; bottom: -140px; } .auth-orb.o2 { width: 240px; height: 240px; right: 0; bottom: 0; background: rgba(201,162,74,.1); }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px max(16px, var(--sar)) calc(24px + var(--sab)) max(16px, var(--sal)); min-width: 0; outline: none; }
.auth-back { align-self: flex-start; display: inline-flex; align-items: center; text-decoration: none; color: var(--muted); font-size: .9rem; margin: 0 0 16px max(0px, calc(50% - 240px)); } .auth-back:hover { color: var(--navy); }
.auth-card { width: 100%; max-width: 480px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 32px; } .auth-card h1 { font-size: 1.6rem; margin-bottom: 8px; } .auth-lead { color: var(--muted); margin-bottom: 24px; overflow-wrap: anywhere; } .auth-brand-m { display: none; margin-bottom: 16px; }
.auth-alt { text-align: center; margin: 20px 0 0; font-size: .93rem; } .auth-foot { margin-top: 24px; text-align: center; font-size: .78rem; color: var(--muted); max-width: 480px; }
.cats-label { margin-bottom: 8px; } .cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); cursor: pointer; color: var(--navy); min-height: 88px; justify-content: center; transition: border-color .15s, background .15s; } .cat small { color: var(--muted); font-size: .72rem; } .cat-ic { color: var(--muted); } .cat:hover { border-color: var(--navy); }
.cat.is-on { border-color: var(--teal); background: var(--teal-l); box-shadow: 0 0 0 1px var(--teal) inset; } .cat.is-on .cat-ic { color: var(--teal-d); }
@media (max-width: 899px) { .auth-page { display: block; background: linear-gradient(180deg, var(--navy) 0, var(--navy) 160px, var(--ivory) 160px); } .auth-side { display: none; } .auth-main { min-height: 100dvh; justify-content: flex-start; padding-top: 16px; } .auth-back { color: #D5DDEB; margin-left: 0; max-width: 480px; width: 100%; align-self: center; } .auth-back:hover { color: var(--gold); } .auth-brand-m { display: inline-block; } .auth-card { padding: 24px 20px; } }
@media (max-width: 380px) { .otp { gap: 4px; } .otp-box { height: 50px; font-size: 1.3rem !important; } .cat small { display: none; } .cat { min-height: 72px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
@media print {
  body { background: #fff; } .sidebar, .topbar, .tabbar, .pub-header, .pub-footer, .toasts, .scrim, .skip-link, .no-print { display: none !important; }
  .shell { display: block; } .view { padding: 0; max-width: none; } .card { box-shadow: none; }
  body.print-only > *:not(#print-area) { display: none !important; } #print-area { display: block !important; }
}
#print-area { display: none; }
