/* Student portal - calm, professional look. Loaded last, so it only restyles; no markup depends on it.
   Cool grey page, flat white cards with a thin border, solid navy and green feature cards, one blue for actions. */
body.student {
  --navy-900: #0B1F36; --navy-800: #10294A; --navy-700: #173A64; --navy-600: #1F4C80;
  --blue-600: #1558B0; --blue-500: #1E6BD1; --blue-100: #DCE9FA; --blue-50: #EEF4FC;
  --orange-500: #1E6BD1; --orange-600: #1558B0;
  --ink: #16202E; --ink-2: #425066; --muted: #6B778A; --line: #E2E8F0; --line-2: #EDF1F6; --bg: #F4F6F9;
  --grad-navy: linear-gradient(#10294A, #10294A);
  --grad-accent: linear-gradient(180deg, #2272DA, #1558B0);
  --shadow-sm: 0 1px 2px rgba(16, 41, 74, .06);
  background: var(--bg);
}
body.student::before { background: none; }
body.student [hidden] { display: none !important; }

/* header: a plain white bar */
body.student .sp-top, body.app .sp-top { top: 0; margin-top: 0; padding: env(safe-area-inset-top, 0px) clamp(12px, 2.4vw, 28px) 0; background: #fff; border-bottom: 1px solid var(--line); }
body.student .sp-bar { height: 58px; padding: 0; border-radius: 0; background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.student .sp-nav { padding: 0; background: transparent; gap: 2px; }
body.student .sp-nav a { padding: 8px 14px; border-radius: 8px; font-weight: 600; color: var(--ink-2); }
body.student .sp-nav a:hover { background: var(--line-2); color: var(--navy-800); }
body.student .sp-nav a.on { background: var(--blue-50); color: var(--blue-600); box-shadow: none; }
body.student .sp-menu { border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 41, 74, .14); border: 1px solid var(--line); }

/* bottom tabs: flat, with a thin line on the active one */
body.app .app-tabs { padding-top: 6px; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border-top: 1px solid var(--line); gap: 0; }
body.app .app-tabs a { position: relative; border-radius: 10px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
body.app .app-tabs a.on { background: transparent; color: var(--blue-600); }
body.app .app-tabs a.on svg { stroke: var(--blue-600); transform: none; }
body.app .app-tabs a.on::before { content: ""; position: absolute; top: -6px; left: 26%; right: 26%; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue-600); }
@media (min-width: 900px) { body.app .app-tabs { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px rgba(16, 41, 74, .1); } body.app .app-tabs a.on::before { display: none; } }

/* cards, buttons, chips */
body.student .card { border-radius: 14px; box-shadow: var(--shadow-sm); border-color: var(--line); }
body.student .btn { border-radius: 10px; font-weight: 600; }
body.student .btn-accent { box-shadow: none; }
body.student .btn-accent:hover { filter: brightness(1.06); }
body.student .chips button { height: 34px; border-radius: 999px; font-weight: 600; }
body.student .chips button.on { background: var(--navy-800); border-color: var(--navy-800); box-shadow: none; }
body.student .sp-h h2 { font-size: 20px; letter-spacing: -.02em; color: var(--navy-800); }
body.student .sp-h p { color: var(--muted); }

/* greeting */
.greet { margin: 0 0 16px; }
.greet h1 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; color: var(--navy-800); }
.greet p { color: var(--muted); font-size: 14.5px; } .greet p b { color: var(--navy-800); }

/* ID card: a clean white card with a navy header band */
.idc { padding: 0 0 16px; border-radius: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.idc:hover { transform: none; }
.idc::before, .idc::after, .idc .shine, .idc-bar { display: none; }
.idc-top { margin: 0; padding: 13px 18px; background: var(--navy-800); color: #fff; opacity: 1; }
.idc > :not(.idc-top) { margin-left: 18px; margin-right: 18px; }
.idc-photo { margin: 18px 18px 12px; }
.idc-photo .av { border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.idc-cam { border-color: #fff; background: var(--blue-500); box-shadow: 0 2px 8px rgba(16, 41, 74, .25); }
.idc h3 { font-size: 20px; color: var(--navy-800); font-weight: 700; }
.idc-no { opacity: 1; color: var(--muted); letter-spacing: .06em; }
.idc-grid { margin-top: 14px; }
.idc-grid > div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.idc-grid small { opacity: 1; color: var(--muted); }
.idc-grid b { color: var(--ink); } .idc-grid em { color: var(--muted); opacity: 1; }
.idc-foot { opacity: 1; color: var(--muted); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.idc-foot a { color: var(--blue-600); }
.idc.big { padding: 0 0 20px; } .idc.big h3 { font-size: 23px; }

/* feature card: solid colour, no glow */
.feat { padding: 24px 26px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.feat::before, .feat::after { display: none; }
.feat.soon { background: var(--navy-800); box-shadow: var(--shadow-sm); }
.feat.live { background: #0B6B4D; box-shadow: var(--shadow-sm); }
.feat h2 { font-size: 22px; font-weight: 700; margin-top: 12px; }
.feat-k { border-radius: 6px; padding: 4px 10px; font-size: 11px; background: rgba(255, 255, 255, .14); }
.feat-meta span { border-radius: 8px; background: rgba(255, 255, 255, .1); }
.feat-side { border-radius: 12px; }
.feat .btn-lg { height: 46px; border-radius: 10px; }
.feat .btn-accent { background: #fff; color: var(--navy-800); border-color: #fff; }
.feat .btn-accent:hover { filter: none; background: #F1F5FA; }

/* exam cards and side cards */
.ex-card { border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); border-color: var(--line); }
.ex-card::before { display: none; }
.ex-card:hover { transform: none; border-color: #C5D3E6; box-shadow: 0 6px 18px rgba(16, 41, 74, .08); }
.pcard, .prog { border-radius: 14px; box-shadow: var(--shadow-sm); }
.pcard:hover { transform: none; border-color: #C5D3E6; box-shadow: 0 6px 18px rgba(16, 41, 74, .08); }

/* ===== attendance ===== */
.att-strip { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .15s; }
.att-strip:hover { border-color: #C5D3E6; }
.as-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.att-strip.in .as-ic { background: #E3F4EC; color: #0B6B4D; } .att-strip.done .as-ic { background: var(--line-2); color: var(--muted); }
.as-ic .i { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.as-tx { flex: 1; min-width: 0; } .as-tx b { display: block; font-size: 14.5px; color: var(--ink); } .as-tx small { display: block; font-size: 12.5px; color: var(--muted); }
.as-go { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--blue-600); }
.as-go .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 560px) {
  .greet h1 { font-size: 23px; }
  .feat { padding: 20px; }
}

/* ===== header, side menu and footer ===== */
.sp { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; transition: padding-left .24s cubic-bezier(.2, .8, .2, 1); }
#app.sd-dock { padding-left: 264px; }
.sp .sp-main { flex: 1 0 auto; width: 100%; min-height: 0; }
body.student .sp-bar { max-width: none; height: 60px; gap: 12px; }

.sp-toggle { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.sp-toggle:hover { background: var(--line-2); color: var(--navy-800); border-color: #CBD5E3; }
.sp-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sp-top .sp-brand { display: none; min-width: 0; }
@media (min-width: 720px) { #app:not(.sd-dock) .sp-top .sp-brand { display: flex; } #app:not(.sd-dock) .sp-ttl { padding-left: 16px; border-left: 1px solid var(--line); } }
.sp-ttl { min-width: 0; line-height: 1.2; }
.sp-ttl small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-ttl b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.015em; color: var(--navy-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.student .sp-me-btn { border-radius: 10px; border: 1px solid var(--line); padding: 4px 10px 4px 4px; }
body.student .sp-me-btn .av { border-radius: 8px; }

.sp-side { position: fixed; z-index: 80; top: 0; bottom: 0; left: 0; width: 264px; max-width: 86vw; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); background: #fff; border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1), box-shadow .24s; }
#app.sd-dock .sp-side, #app.sd-open .sp-side { transform: none; }
#app.sd-open .sp-side { box-shadow: 0 0 48px rgba(11, 31, 54, .28); }
.sd-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(11, 31, 54, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
#app.sd-open .sd-scrim { opacity: 1; pointer-events: auto; }
.sd-top { flex: none; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--line); }
.sd-top .sp-brand { display: flex; min-width: 0; flex: 1; }
.sd-top .sp-brand.org .sp-bt b { max-width: 150px; font-size: 15px; } .sd-top .sp-brand .sp-bt small { max-width: 150px; }
.sd-x { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.sd-x:hover { background: var(--line-2); color: var(--ink); }
.sd-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
#app.sd-dock .sd-x { display: none; }
.sd-me { flex: none; display: flex; align-items: center; gap: 12px; margin: 14px 14px 6px; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.sd-me .av { border-radius: 12px; }
.sd-me > div { min-width: 0; } .sd-me b { display: block; font-size: 14.5px; color: var(--navy-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-me small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-nav { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 2px; padding: 6px 12px 12px; }
.sd-cap { display: block; margin: 12px 12px 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sd-nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s; }
.sd-nav a:hover { background: var(--line-2); color: var(--navy-800); }
.sd-nav a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sd-nav a.on { background: var(--blue-50); color: var(--blue-600); font-weight: 700; }
.sd-nav a.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue-600); }
.sd-foot { flex: none; padding: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.sd-out { width: 100%; height: 42px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: #B42318; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.sd-out:hover { background: #FDF0EE; border-color: #F3C7C1; }
.sd-out svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sd-foot p { margin: 10px 0 0; text-align: center; font-size: 11.5px; color: var(--muted); }

.sp-foot { flex: none; margin-top: 32px; background: #fff; border-top: 1px solid var(--line); }
.ft-in { max-width: 1240px; margin: 0 auto; padding: 16px clamp(16px, 3vw, 36px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; font-size: 12.5px; color: var(--muted); }
.ft-l b { margin-right: 10px; color: var(--navy-800); font-weight: 700; } .ft-l i { font-style: normal; }
.ft-r b { color: var(--ink-2); font-weight: 600; }
@media (max-width: 560px) { .ft-in { justify-content: center; text-align: center; } }
body.app .sp .sp-main { min-height: 0; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: reduce) { .sp, .sp-side, .sd-scrim { transition: none; } }
.dash-side { top: 84px; }

/* ===== alignment: header, page and footer share one width and one set of side margins, so their edges line up ===== */
body.student .sp-top, body.app .sp-top { padding-left: 0; padding-right: 0; }
body.student .sp-bar, .sp .sp-main, .ft-in { max-width: 1400px; margin-left: auto; margin-right: auto; padding-left: clamp(16px, 3vw, 32px); padding-right: clamp(16px, 3vw, 32px); }
.sp-bar > * { min-width: 0; } .sp-bar .sp-toggle, .sp-bar .sp-me { flex: none; }
@media (max-width: 720px) {
  body.student .sp-bar { gap: 12px; }
  .dash .idc { padding: 14px; border-radius: 14px; box-shadow: var(--shadow-sm); gap: 0 14px; }
  .dash .idc > :not(.idc-top) { margin-left: 0; margin-right: 0; }
  .dash .idc-photo { margin: 0; } .dash .idc-photo .av { border-radius: 14px; }
  .dash .idc-grid { margin-top: 12px; }
  .dash .idc::before { display: none; }
}

/* loader colours in the student portal */
body.student { --ld-a: var(--navy-800); --ld-b: var(--blue-500); }

/* ===== attendance (student portal): clock dial, one big action, timeline, month tiles ===== */
.axi { width: 20px; height: 20px; flex: none; }
.ap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ap-main { min-width: 0; overflow: hidden; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -22px rgba(16, 41, 74, .35); }
.ap-hero { position: relative; display: grid; gap: 14px; justify-items: center; padding: 18px 18px 20px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 70% at 85% -10%, rgba(94, 234, 212, .28), transparent 55%), radial-gradient(90% 60% at -10% 110%, rgba(59, 130, 246, .38), transparent 60%), linear-gradient(165deg, #0A1B3A 0%, #12306B 60%, #1A3F8C 100%); }
.ap-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ap-date { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.ap-date .axi { width: 16px; height: 16px; opacity: .9; }
.ap-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.ap-chip i { width: 8px; height: 8px; border-radius: 50%; background: #94A3B8; }
.ap-chip.in i { background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: apdot 1.8s ease-out infinite; }
.ap-chip.late i { background: #FBBF24; } .ap-chip.done i { background: #5EEAD4; } .ap-chip.short i { background: #F87171; }
@keyframes apdot { 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.ap-dial { position: relative; width: min(236px, 70vw); aspect-ratio: 1; margin: 2px 0; }
.ap-dial svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ap-ticks { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 5; stroke-dasharray: 1.6 10.13; }
.ap-track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 12; }
.ap-arc { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1); }
.ap-arc.ok { filter: drop-shadow(0 0 7px rgba(94, 234, 212, .75)); }
.ap-dc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.ap-time { display: flex; align-items: baseline; justify-content: center; gap: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-hm { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.ap-ss { font-size: 18px; font-weight: 700; opacity: .55; }
.ap-ap { margin-left: 4px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5EEAD4; }
.ap-sub { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .72); } .ap-sub b { color: #fff; font-weight: 800; }
.ap-stay { display: flex; align-items: center; gap: 9px; max-width: 100%; padding: 9px 14px; border-radius: 14px; font-size: 12.5px; font-weight: 700; line-height: 1.35; background: rgba(251, 191, 36, .14); border: 1px solid rgba(251, 191, 36, .35); color: #FDE68A; }
.ap-stay.ok { background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .4); color: #A7F3D0; }
.ap-body { display: grid; gap: 14px; padding: 18px; }
#atSteps { display: grid; gap: 14px; min-width: 0; }

/* where you are: a radar badge, one line, two chips */
.ap-geo { --gc: #2563EB; --gb: #EEF4FF; --gl: #CFE0FB; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: var(--gb); border: 1px solid var(--gl); color: var(--ink); }
.ap-geo.ok { --gc: #0E8A5F; --gb: #EAF8F2; --gl: #BFE8D6; } .ap-geo.warn { --gc: #C98A10; --gb: #FEF6E4; --gl: #F3DCA6; }
.ap-geo.bad { --gc: #D14343; --gb: #FDF0EE; --gl: #F3C7C1; } .ap-geo.off { --gc: #64748B; --gb: #F3F5F9; --gl: #DDE3EC; }
.ap-radar { position: relative; flex: none; width: 48px; height: 48px; display: grid; place-items: center; color: var(--gc); }
.ap-radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; opacity: 0; }
.ap-geo.ok .ap-radar i, .ap-geo.wait .ap-radar i, .ap-geo.ask .ap-radar i { animation: apripple 2.6s ease-out infinite; } .ap-radar i + i { animation-delay: 1.3s !important; }
@keyframes apripple { 0% { transform: scale(.55); opacity: .55; } 100% { transform: scale(1.25); opacity: 0; } }
.ap-radar em { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gc); color: #fff; box-shadow: 0 6px 14px -6px var(--gc); }
.ap-radar em .axi { width: 20px; height: 20px; }
.ap-gt { min-width: 0; } .ap-gt b { display: block; font-size: 15px; line-height: 1.3; } .ap-gt small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ap-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #fff; border: 1px solid var(--line); }
.ap-chips .axi { width: 14px; height: 14px; }
.ap-chips .ok { color: #0B6B4D; border-color: #BFE8D6; } .ap-chips .warn { color: #92580A; border-color: #F3DCA6; } .ap-chips .bad { color: #B42318; border-color: #F3C7C1; }
.ap-lnk { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--gl); background: #fff; color: var(--gc); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.ap-lnk.strong { background: var(--gc); border-color: var(--gc); color: #fff; box-shadow: 0 8px 16px -8px var(--gc); }
.ap-lnk .axi { width: 16px; height: 16px; }
.ap-err { margin: 0; padding: 11px 13px; border-radius: 14px; background: #FDECEA; color: #B42318; font-size: 13.5px; font-weight: 600; line-height: 1.45; }

/* the one big action */
.ap-btn { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 12px 14px; border: 0; border-radius: 22px; font: inherit; text-align: left; color: #fff; cursor: pointer; transition: transform .12s, box-shadow .2s, filter .2s; }
.ap-btn.in { background: linear-gradient(135deg, #19C08A 0%, #0A7F5C 100%); box-shadow: 0 16px 26px -14px rgba(10, 127, 92, .85); }
.ap-btn.out { background: linear-gradient(135deg, #FFA13D 0%, #EA580C 100%); box-shadow: 0 16px 26px -14px rgba(234, 88, 12, .85); }
.ap-btn:not(:disabled):active { transform: scale(.985); }
.ap-btn:not(:disabled)::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg); animation: apsheen 3.8s ease-in-out infinite; }
@keyframes apsheen { 0%, 55% { left: -40%; } 100% { left: 130%; } }
.ap-btn:disabled { cursor: not-allowed; filter: grayscale(.45) saturate(.7); opacity: .6; box-shadow: none; }
.ap-btn.wait { background: #F1F4F9; color: var(--ink); border: 1px dashed #C9D3E2; filter: none; opacity: 1; }
.ap-bi { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .22); }
.ap-bi .axi { width: 25px; height: 25px; stroke-width: 2.2; }
.ap-btn.wait .ap-bi { background: #fff; color: #64748B; box-shadow: inset 0 0 0 1px #DDE3EC; }
.ap-bt { flex: 1; min-width: 0; } .ap-bt b { display: block; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; } .ap-bt small { display: block; margin-top: 2px; font-size: 12.5px; opacity: .85; font-weight: 600; }
.ap-btn.wait .ap-bt small { color: var(--muted); opacity: 1; }
.ap-ba { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); transition: transform .2s; }
.ap-btn:not(:disabled):hover .ap-ba { transform: translateX(3px); }
.ap-btn.busy .ap-ba .axi { display: none; } .ap-btn.busy .ap-ba::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: apspin .8s linear infinite; }
@keyframes apspin { to { transform: rotate(360deg); } }
.ap-fin { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 22px; background: linear-gradient(135deg, #E9F9F1, #D8F3E6); border: 1px solid #BFE8D6; color: #064E3B; }
.ap-fin .ap-bi { background: #0E8A5F; color: #fff; box-shadow: 0 10px 18px -8px rgba(14, 138, 95, .8); }
.ap-fin b { display: block; font-size: 16.5px; } .ap-fin small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; opacity: .8; }
.ap-fin.short { background: linear-gradient(135deg, #F5EEFD, #ECDFFB); border-color: #DCC8F5; color: #4C1D95; } .ap-fin.short .ap-bi { background: #7C3AED; box-shadow: 0 10px 18px -8px rgba(124, 58, 237, .8); }
.ap-hint { display: flex; align-items: center; gap: 8px; margin: -6px 0 0; padding: 9px 12px; border-radius: 12px; background: #FEF6E4; color: #7A4B05; font-size: 12.5px; font-weight: 700; }
.ap-hint .axi { width: 16px; height: 16px; }

/* today, as a timeline */
.ap-tl { list-style: none; margin: 4px 0 0; padding: 0; }
.ap-tl li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.ap-nd { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: #EEF2F7; color: #94A3B8; }
.ap-nd .axi { width: 20px; height: 20px; }
.ap-tl li.done .ap-nd { background: linear-gradient(135deg, #19C08A, #0A7F5C); color: #fff; box-shadow: 0 8px 14px -8px #0A7F5C; }
.ap-tl li.next .ap-nd { background: #E8F0FD; color: #2563EB; animation: apglow 2s ease-in-out infinite; }
@keyframes apglow { 50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, .12); } }
.ap-nt b { display: block; font-size: 14.5px; } .ap-nt small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-tl time { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: #0B6B4D; }
.ap-tl li.next time, .ap-tl li.wait time { color: #94A3B8; }
.ap-tl li.wait .ap-nt b { color: var(--muted); }
.ap-tl li.ap-link { display: flex; min-height: 34px; margin-left: 19px; padding-left: 31px; border-left: 2px solid #B7E3D0; }
.ap-link span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #F1F5F9; color: var(--ink-2); }
.ap-link .axi { width: 14px; height: 14px; color: #0E8A5F; }

/* side cards */
.ap-ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ap-ch h4 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--navy-800); }
.ap-ch h4 .axi { width: 18px; height: 18px; color: var(--blue-600); }
.ap-pct { padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: #E3F4EC; color: #0B6B4D; }
.ap-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ap-tile { --tc: #0E8A5F; --tb: #EAF8F2; display: grid; gap: 2px; justify-items: start; padding: 12px; border-radius: 18px; background: var(--tb); }
.ap-tile.a { --tc: #C98A10; --tb: #FEF4DF; } .ap-tile.v { --tc: #7C3AED; --tb: #F2EAFB; } .ap-tile.b { --tc: #2563EB; --tb: #E8F0FD; }
.ap-tile span { width: 32px; height: 32px; margin-bottom: 6px; border-radius: 11px; display: grid; place-items: center; background: #fff; color: var(--tc); box-shadow: 0 4px 10px -6px var(--tc); }
.ap-tile span .axi { width: 18px; height: 18px; }
.ap-tile b { font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); } .ap-tile b em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); }
.ap-tile small { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ap-bar { height: 9px; margin-top: 14px; border-radius: 9px; background: var(--line-2); overflow: hidden; } .ap-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #34D399, #0E8A5F); transition: width .8s ease; }
.ap-rl { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.ap-rl li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); } .ap-rl li:first-child { border-top: 0; padding-top: 0; }
.ap-rl span { --tc: #0E8A5F; --tb: #EAF8F2; flex: none; width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--tb); color: var(--tc); }
.ap-rl span.a { --tc: #C98A10; --tb: #FEF4DF; } .ap-rl span.r { --tc: #D14343; --tb: #FDECEA; } .ap-rl span.b { --tc: #2563EB; --tb: #E8F0FD; } .ap-rl span.v { --tc: #7C3AED; --tb: #F2EAFB; }
.ap-rl .axi { width: 19px; height: 19px; }
.ap-rl em { flex: 1; min-width: 0; font-style: normal; font-size: 14px; color: var(--ink-2); } .ap-rl b { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--navy-800); white-space: nowrap; }
.ap-empty { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ap-hl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ap-hl li { --sc: #0E8A5F; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line-2); border-left: 4px solid var(--sc); }
.ap-hl li.late { --sc: #E0A020; } .ap-hl li.short { --sc: #7C3AED; }
.ap-dt { flex: none; width: 46px; padding: 6px 0; text-align: center; border-radius: 13px; background: #fff; border: 1px solid var(--line-2); }
.ap-dt b { display: block; font-size: 18px; line-height: 1.1; color: var(--navy-800); } .ap-dt small { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ap-lt { flex: 1; min-width: 0; } .ap-lt b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-variant-numeric: tabular-nums; } .ap-lt b i { display: inline-flex; color: var(--muted); } .ap-lt b .axi { width: 14px; height: 14px; }
.ap-lt small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-rt { display: grid; justify-items: end; gap: 3px; } .ap-rt small { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.ap-chip2 { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; background: #E3F4EC; color: #0B6B4D; }
.ap-chip2.late { background: #FDF1DC; color: #92580A; } .ap-chip2.short { background: #F1E7FB; color: #6B2FB0; }
@media (max-width: 899px) { .ap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ap-hero { padding: 16px 14px 18px; } .ap-body { padding: 14px; } .ap-card { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .ap *, .ap *::before, .ap *::after { animation: none !important; transition: none !important; } }
/* compact layout: a short header, one slim location line, one action, and the details in tabs */
.ap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ap-hero { gap: 10px; justify-items: stretch; padding: 14px; }
.ap-date, .ap-chip { padding-top: 5px; padding-bottom: 5px; font-size: 12px; }
.ap-mid { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.ap-clk { min-width: 0; text-align: left; }
.ap-dial { flex: none; width: 104px; margin: 0; }
.ap-time { justify-content: flex-start; }
.ap-hm { font-size: 42px; } .ap-ss { font-size: 17px; }
.ap-sub { margin-top: 5px; }
.ap-dc { gap: 0; }
.ap-dc b { font-size: 19px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ap-dc small { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.ap-stay { padding: 7px 12px; font-size: 12px; }
.ap-body { gap: 10px; padding: 12px; }
.ap-geo { gap: 11px; padding: 9px 12px; border-radius: 16px; }
.ap-radar { width: 40px; height: 40px; } .ap-radar em { width: 32px; height: 32px; } .ap-radar em .axi { width: 17px; height: 17px; }
.ap-gt b { font-size: 14px; } .ap-gt small { font-size: 12px; line-height: 1.4; }
.ap-geo.ok .ap-gt small { display: none; }
.ap-chips { margin-top: 5px; } .ap-chips span { padding: 3px 9px 3px 7px; font-size: 11px; }
.ap-btn { min-height: 62px; padding: 10px 12px; border-radius: 18px; gap: 12px; }
.ap-bi { width: 42px; height: 42px; border-radius: 14px; } .ap-bi .axi { width: 22px; height: 22px; }
.ap-bt b { font-size: 16.5px; } .ap-ba { width: 32px; height: 32px; }
.ap-fin { padding: 10px 12px; gap: 12px; border-radius: 18px; } .ap-fin b { font-size: 15px; }
.ap-hint { padding: 7px 11px; font-size: 12px; }
#atSteps { gap: 10px; }
.ap-tabs { min-width: 0; padding: 10px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ap-tb { --i: 0; --n: 4; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); padding: 4px; border-radius: 16px; background: #EDF1F8; }
.ap-tb button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 9px 4px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--muted); cursor: pointer; transition: color .2s; }
.ap-tb button .axi { width: 16px; height: 16px; } .ap-tb button.on { color: var(--navy-800); } .ap-tb button.on .axi { color: var(--blue-600); }
.ap-tg { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 12px; background: #fff; box-shadow: 0 4px 10px -4px rgba(16, 41, 74, .3); transform: translateX(calc(100% * var(--i))); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.ap-pn { padding: 12px 2px 2px; min-width: 0; animation: appn .25s ease; }
.ap-pn[hidden] { display: none; }
@keyframes appn { from { opacity: 0; transform: translateY(4px); } }
.ap-tl li.ap-link { min-height: 30px; }
.ap-ch { margin-bottom: 10px; font-size: 13px; font-weight: 800; color: var(--navy-800); }
.ap-tile { grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "i v" "i l"; column-gap: 10px; align-items: center; justify-items: start; padding: 10px 12px; border-radius: 16px; }
.ap-tile span { grid-area: i; margin: 0; } .ap-tile b { grid-area: v; font-size: 19px; } .ap-tile small { grid-area: l; }
.ap-bar { margin-top: 12px; height: 8px; }
.ap-hl li { padding: 8px 10px 8px 8px; } .ap-dt { width: 42px; padding: 4px 0; } .ap-dt b { font-size: 16px; }
.ap-rl li { padding: 8px 0; } .ap-rl span { width: 34px; height: 34px; border-radius: 11px; }
@media (max-width: 899px) { .ap { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
@media (max-width: 380px) { .ap-tb button { flex-direction: column; gap: 2px; font-size: 11.5px; } .ap-hm { font-size: 38px; } .ap-dial { width: 92px; } }.ap-stay .axi { width: 16px; height: 16px; }
/* student profile at the top of the attendance card */
.ap-me { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ap-me .av { flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .22), 0 8px 16px -8px rgba(0, 0, 0, .5); }
.ap-mn { min-width: 0; }
.ap-mn b { display: block; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-mn small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: rgba(255, 255, 255, .62); }
.ap-mt { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ap-mt span { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .92); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-mt .axi { width: 13px; height: 13px; flex: none; opacity: .85; }
/* ===== Student dashboard (db-*): hero, sideways rails, quick links ===== */
.db { --g: clamp(16px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.db .axi { width: 18px; height: 18px; flex: none; }

/* hero */
.db-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 14px; padding: 18px 18px 18px; border-radius: 26px; color: #fff;
  background: radial-gradient(120% 80% at 90% -20%, rgba(94, 234, 212, .30), transparent 55%), radial-gradient(90% 70% at -10% 120%, rgba(59, 130, 246, .42), transparent 60%), linear-gradient(165deg, #0A1B3A 0%, #12306B 60%, #1A3F8C 100%);
  box-shadow: 0 22px 40px -24px rgba(10, 27, 58, .8); }
.db-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(110deg, transparent 30%, #000); mask-image: linear-gradient(110deg, transparent 30%, #000); }
.db-ht { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.db-date, .db-open { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.db-date .axi { width: 15px; height: 15px; opacity: .85; }
.db-open i { width: 8px; height: 8px; border-radius: 50%; background: #34D399; animation: apdot 1.8s ease-out infinite; }
.db-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.db-who .av { flex: none; --s: 64px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2), 0 12px 20px -10px rgba(0, 0, 0, .6); }
.db-wn { min-width: 0; }
.db-wn small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .66); }
.db-wn h2 { margin: 1px 0 2px; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; color: #fff; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.db-wn span { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: #8FE9D6; }
.db-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.db-chips span { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 11px 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .14); }
.db-chips .axi { width: 14px; height: 14px; }
.db-sum { margin: 0; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .78); } .db-sum b { color: #fff; }
.db-att { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); transition: background .15s, transform .12s; }
.db-att:hover { background: rgba(255, 255, 255, .16); } .db-att:active { transform: scale(.985); }
.db-ai { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #FFA13D, #EA580C); }
.db-att.in .db-ai { background: linear-gradient(135deg, #19C08A, #0A7F5C); } .db-att.done .db-ai { background: linear-gradient(135deg, #5EEAD4, #0F9D8A); }
.db-at { flex: 1; min-width: 0; } .db-at b { display: block; font-size: 14px; } .db-at small { display: block; margin-top: 1px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.db-ag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: #fff; color: #12306B; white-space: nowrap; }
.db-ag .axi { width: 15px; height: 15px; }

/* sections + rails */
.db-sec { min-width: 0; }
.db-sh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.db-sh h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--navy-800); }
.db-sh h3 .axi { color: var(--blue-600); }
.db-sh a { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--blue-600); }
.db-sh a .axi { width: 14px; height: 14px; }
.db-rail { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin: 0 calc(var(--g) * -1); padding: 4px var(--g) 10px; scroll-padding: 0 var(--g); }
.db-rail::-webkit-scrollbar { display: none; }
.db-rail > * { flex: none; scroll-snap-align: start; }
.db-trk { position: relative; height: 4px; margin: 0 auto; width: 72px; border-radius: 4px; background: #DCE4EF; overflow: hidden; }
.db-trk i { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; border-radius: 4px; background: var(--blue-600); transition: left .08s linear; }

/* stat tiles */
.db-st { position: relative; overflow: hidden; width: 128px; padding: 12px 12px 13px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 22px -16px rgba(16, 41, 74, .5); }
.db-si { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 8px 14px -8px var(--c2); }
.db-st b { display: block; font-size: 26px; line-height: 1; letter-spacing: -.03em; color: var(--navy-800); }
.db-st b em { font-style: normal; font-size: 14px; font-weight: 800; color: var(--muted); margin-left: 1px; }
.db-st small { display: block; margin-top: 5px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.db-bar { display: block; height: 5px; margin-top: 9px; border-radius: 5px; background: #E6ECF4; overflow: hidden; } .db-bar u { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.db-st::after { content: ""; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(var(--c1), transparent 70%); opacity: .13; }
.db-st.t1 { --c1: #4F8CFF; --c2: #1E5BD8; } .db-st.t2 { --c1: #22C99A; --c2: #0B8A68; } .db-st.t3 { --c1: #FFA13D; --c2: #E8590C; }
.db-st.t4 { --c1: #A78BFA; --c2: #6D3FD8; } .db-st.t5 { --c1: #FBC531; --c2: #D98200; } .db-st.t6 { --c1: #2DD4D4; --c2: #0E8F9A; }

/* exam cards */
.db-ex { --c: #1E6BD1; position: relative; display: flex; flex-direction: column; gap: 10px; width: min(268px, 78vw); padding: 14px 14px 14px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 26px -18px rgba(16, 41, 74, .55); overflow: hidden; }
.db-ex::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; border-radius: 0 5px 5px 0; background: var(--c); }
.db-ex.live { --c: #12A15E; } .db-ex.resume { --c: #E8890C; } .db-ex.upcoming { --c: #6D5BD8; }
.db-et { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.db-ek { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.db-es { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--c); background: #EEF2F8; background: color-mix(in srgb, var(--c) 12%, #fff); }
.db-ex h4 { margin: 0; min-height: 2.5em; font-size: 15.5px; line-height: 1.25; letter-spacing: -.01em; color: var(--navy-800); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.db-em { display: flex; flex-wrap: wrap; gap: 5px; }
.db-em span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); background: #F1F5FA; }
.db-em .axi { width: 13px; height: 13px; color: var(--c); }
.db-el { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); } .db-el .axi { width: 15px; height: 15px; color: var(--c); } .db-el b { color: var(--navy-800); }
.db-go { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: 14px; font: inherit; font-size: 14px; font-weight: 800; color: #fff; cursor: pointer; background: var(--c); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c)); box-shadow: 0 12px 18px -12px var(--c); }
.db-go .axi { width: 16px; height: 16px; } .db-go:active { transform: scale(.98); }
.db-go.off { cursor: default; color: var(--ink-2); background: #F1F5FA; box-shadow: inset 0 0 0 1px #DDE5EF; } .db-go.off b { color: var(--navy-800); }
.db-empty { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; background: #fff; border: 1px dashed #C9D5E5; }
.db-empty span { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: var(--blue-50); color: var(--blue-600); } .db-empty .axi { width: 22px; height: 22px; }
.db-empty b { display: block; color: var(--navy-800); } .db-empty small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }

/* result cards */
.db-rs { --c: #12A15E; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 164px; padding: 14px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 26px -18px rgba(16, 41, 74, .55); transition: transform .12s; }
.db-rs:active { transform: scale(.98); }
.db-rs.fail { --c: #E5484D; } .db-rs.wait { --c: #D98200; }
.db-ring { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 6px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #E6ECF4 0); position: relative; }
.db-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.db-ring b { position: relative; font-size: 16px; letter-spacing: -.02em; color: var(--navy-800); } .db-ring .axi { width: 22px; height: 22px; color: var(--c); }
.db-rs h4 { margin: 0; font-size: 14px; line-height: 1.25; color: var(--navy-800); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.db-rs small { font-size: 12px; color: var(--muted); font-weight: 600; }
.db-rs i { font-style: normal; margin-top: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--c); background: #EEF2F8; background: color-mix(in srgb, var(--c) 12%, #fff); }

/* quick links */
.db-ql { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.db-ql a { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 22px -18px rgba(16, 41, 74, .5); transition: transform .12s, border-color .15s; }
.db-ql a:hover { border-color: #BFD0E8; } .db-ql a:active { transform: scale(.98); }
.db-ql span { grid-row: 1 / span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: var(--blue-600); background: var(--blue-50); }
.db-ql a:nth-child(2) span { color: #0B8A68; background: #E4F6EF; } .db-ql a:nth-child(3) span { color: #C2560C; background: #FDEEDD; } .db-ql a:nth-child(4) span { color: #6D3FD8; background: #F0EAFD; }
.db-ql .axi { width: 21px; height: 21px; }
.db-ql b { align-self: end; font-size: 14px; color: var(--navy-800); } .db-ql small { align-self: start; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* bigger screens: no edge bleed, stats become a grid, two columns below the hero */
@media (min-width: 900px) {
  .db { gap: 22px; }
  .db-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; padding: 26px 28px; gap: 14px 28px; }
  .db-ht, .db-sum { grid-column: 1; } .db-who { grid-column: 1; } .db-chips { grid-column: 1; }
  .db-att { grid-column: 2; grid-row: 2 / span 3; align-self: center; padding: 16px; }
  .db-rail { margin: 0 -4px; padding: 4px 4px 10px; scroll-padding: 0 4px; }
  .db-rail.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); overflow: visible; }
  .db-rail.stats .db-st { width: auto; }
  .db-rail.stats + .db-trk { display: none; }
  .db-ql { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ===== My results (hx-*): performance gauge, one card per exam, attempts as tiles ===== */
.hx { --g: clamp(16px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.hx-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 12px; padding: 16px 16px 16px; border-radius: 28px; color: #fff; text-align: center;
  background: radial-gradient(120% 80% at 50% -30%, rgba(94, 234, 212, .34), transparent 55%), radial-gradient(90% 70% at -10% 120%, rgba(59, 130, 246, .42), transparent 60%), linear-gradient(165deg, #0A1B3A 0%, #12306B 60%, #1A3F8C 100%);
  box-shadow: 0 24px 40px -24px rgba(10, 27, 58, .85); }
.hx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000, transparent); mask-image: radial-gradient(80% 60% at 50% 30%, #000, transparent); }
.hx-tp { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hx-tp small { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .64); }
.hx-vd { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(251, 197, 49, .18); border: 1px solid rgba(251, 197, 49, .38); color: #FDE08A; }
.hx-vd .axi { width: 14px; height: 14px; }
.hx-gw { position: relative; width: 230px; max-width: 100%; margin: 2px auto 0; }
.hx-gg { display: block; width: 100%; height: auto; overflow: visible; }
.hx-gg path { fill: none; stroke-linecap: round; }
.hx-gg .t { stroke: rgba(255, 255, 255, .28); stroke-width: 12; stroke-dasharray: .7 1.9; stroke-linecap: butt; }
.hx-gg .v { stroke-width: 8; filter: drop-shadow(0 0 6px rgba(94, 234, 212, .6)); }
.hx-gv { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; }
.hx-gv b { font-size: 40px; line-height: 1; letter-spacing: -.04em; } .hx-gv b em { font-style: normal; font-size: 17px; font-weight: 800; opacity: .7; margin-left: 2px; }
.hx-gv small { margin-top: 3px; font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.hx-lk { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); } .hx-lk .axi { width: 20px; height: 20px; }
.hx-hl h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; color: #fff; }
.hx-hl p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .74); } .hx-hl p b { color: #8FE9D6; font-variant-numeric: tabular-nums; }
.hx-kp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hx-kp div { padding: 10px 6px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
.hx-kp b { display: block; font-size: 20px; letter-spacing: -.02em; } .hx-kp small { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .66); }
.hx-tr { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); text-align: left; }
.hx-tr span small { display: block; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .62); } .hx-tr span b { font-size: 20px; letter-spacing: -.02em; }
.hx-tr svg { width: 150px; height: 38px; overflow: visible; }
.hx-tr polyline { fill: none; stroke: #5EEAD4; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; } .hx-tr circle { fill: #fff; stroke: #5EEAD4; stroke-width: 1.6; }

.hx-fl { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--g) * -1); padding: 2px var(--g); }
.hx-fl::-webkit-scrollbar { display: none; }
.hx-fl button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid #CBD6E6; border-radius: 12px; background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.hx-fl button small { min-width: 20px; padding: 1px 6px; border-radius: 8px; font-size: 11px; font-weight: 800; text-align: center; background: #EEF2F8; color: var(--muted); }
.hx-fl button.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; } .hx-fl button.on small { background: rgba(255, 255, 255, .2); color: #fff; }

.hx-gl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hx-ex { --c: #12A15E; display: grid; gap: 12px; padding: 14px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 28px -22px rgba(16, 41, 74, .55); }
.hx-ex.fail { --c: #E5484D; } .hx-ex.wait { --c: #D98200; } .hx-ex.going { --c: #1E6BD1; }
.hx-ex header { display: flex; align-items: center; gap: 12px; }
.hx-lt { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; font-size: 19px; font-weight: 800; color: #fff; background: var(--c); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 10px 16px -10px var(--c); }
.hx-hn { flex: 1; min-width: 0; }
.hx-hn h4 { margin: 0; font-size: 15px; line-height: 1.25; color: var(--navy-800); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-hn small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.hx-bs { flex: none; align-self: flex-start; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; color: var(--c); background: #EEF2F8; background: color-mix(in srgb, var(--c) 12%, #fff); }
.hx-bar { position: relative; height: 22px; border-radius: 11px; background: #EAEFF6; overflow: hidden; }
.hx-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 11px; background: var(--c); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, #fff), var(--c)); }
.hx-bar span { position: absolute; left: 10px; top: 0; bottom: 0; display: flex; align-items: center; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.hx-ats { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.hx-at { --c: #12A15E; position: relative; overflow: hidden; display: grid; justify-items: center; gap: 2px; padding: 11px 4px 8px; border-radius: 16px; background: #F5F8FC; border: 1px solid var(--line-2); transition: transform .12s, background .15s; -webkit-tap-highlight-color: transparent; }
.hx-at::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.hx-at.fail { --c: #E5484D; } .hx-at.wait { --c: #D98200; } .hx-at.going { --c: #1E6BD1; }
.hx-at:active { transform: scale(.95); background: #EAF1FB; }
.hx-at em { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; color: var(--muted); }
.hx-at b { display: inline-flex; align-items: center; height: 24px; font-size: 18px; letter-spacing: -.02em; color: var(--c); } .hx-at b u { text-decoration: none; font-size: 11px; margin-left: 1px; opacity: .75; }
.hx-at b .axi { width: 19px; height: 19px; }
.hx-at small { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.hx-at.going small { color: var(--c); }

@media (min-width: 900px) {
  .hx-hero { grid-template-columns: 250px minmax(0, 1fr) minmax(280px, 340px); grid-template-areas: "tp tp tp" "gw hl kp" "gw hl tr"; align-items: center; text-align: left; padding: 22px 28px; gap: 6px 28px; }
  .hx-tp { grid-area: tp; } .hx-gw { grid-area: gw; margin: 0; } .hx-hl { grid-area: hl; } .hx-kp { grid-area: kp; } .hx-tr { grid-area: tr; }
  .hx-fl { margin: 0; padding: 2px 0; flex-wrap: wrap; }
  .hx-gl { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); align-items: start; }
}

/* ===== Exam result screens (rz-*): "submitted, result pending" and the scored result ===== */
.rz { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 760px; margin: 0 auto; }
.rz .axi { width: 18px; height: 18px; flex: none; }
.rz-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rz-back { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; border-radius: 14px; font-size: 14px; font-weight: 700; color: var(--navy-800); background: #fff; border: 1px solid var(--line); }
.rz-back svg { width: 18px; height: 18px; }
.rz-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: center; gap: 10px; padding: 18px 16px 18px; border-radius: 30px; text-align: center; color: #fff;
  background: radial-gradient(120% 80% at 50% -30%, rgba(94, 234, 212, .34), transparent 55%), radial-gradient(90% 70% at -10% 120%, rgba(59, 130, 246, .42), transparent 60%), linear-gradient(165deg, #0A1B3A 0%, #12306B 60%, #1A3F8C 100%);
  box-shadow: 0 24px 40px -24px rgba(10, 27, 58, .85); }
.rz-hero.pass { background: radial-gradient(120% 80% at 50% -30%, rgba(110, 231, 183, .42), transparent 55%), radial-gradient(90% 70% at -10% 120%, rgba(20, 184, 166, .38), transparent 60%), linear-gradient(165deg, #063B33 0%, #0B6B55 60%, #0F8A6B 100%); }
.rz-hero.fail { background: radial-gradient(120% 80% at 50% -30%, rgba(251, 191, 36, .32), transparent 55%), radial-gradient(90% 70% at -10% 120%, rgba(244, 114, 94, .36), transparent 60%), linear-gradient(165deg, #2A1330 0%, #4B1D5C 55%, #7A2D5E 100%); }
.rz-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000, transparent); mask-image: radial-gradient(80% 60% at 50% 30%, #000, transparent); }
.rz-hero h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.rz-ex { margin: 0; max-width: 100%; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.rz-tp { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rz-vd { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(251, 197, 49, .2); border: 1px solid rgba(251, 197, 49, .4); color: #FDE08A; }
.rz-hero.fail .rz-vd { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .24); color: #fff; }
.rz-vd.soft { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .85); }
.rz-vd .axi { width: 15px; height: 15px; }
.rz-ring { position: relative; width: 168px; height: 168px; margin: 2px 0; }
.rz-ring svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(94, 234, 212, .35)); }
.rz-ring .trk { stroke: rgba(255, 255, 255, .16); } .rz-ring .bar { stroke: #5EEAD4; transition: stroke-dashoffset 1.3s cubic-bezier(.2, .8, .2, 1); }
.rz-hero.fail .rz-ring .bar { stroke: #FBBF77; }
.rz-ring b { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; align-items: baseline; padding: 0 22px; font-size: 44px; line-height: 1; letter-spacing: -.04em; }
.rz-ring b em { font-style: normal; font-size: 18px; font-weight: 800; opacity: .7; margin-left: 2px; }
.rz-ring small { flex-basis: 100%; text-align: center; margin-top: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .66); }
.rz-ms { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.rz-ms div { padding: 10px 6px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); }
.rz-ms b { display: block; font-size: 18px; letter-spacing: -.02em; } .rz-ms b em { font-style: normal; font-size: 12px; font-weight: 700; opacity: .7; }
.rz-ms small { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .68); }

.rz-st { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rz-st div { --c: #1E6BD1; display: grid; justify-items: center; gap: 2px; padding: 12px 4px 10px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 22px -18px rgba(16, 41, 74, .55); }
.rz-st .g { --c: #12A15E; } .rz-st .r { --c: #E5484D; } .rz-st .a { --c: #D98200; }
.rz-st span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 12px; color: var(--c); background: #EEF2F8; background: color-mix(in srgb, var(--c) 13%, #fff); }
.rz-st b { font-size: 19px; line-height: 1.1; letter-spacing: -.02em; color: var(--navy-800); }
.rz-st .b b { font-size: 15px; }
.rz-st small { font-size: 11px; font-weight: 700; color: var(--muted); }

.rz-sub, .rz-info { padding: 16px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 26px -22px rgba(16, 41, 74, .5); }
.rz-sub h3, .rz-info h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--navy-800); }
.rz-sub h3 .axi, .rz-info h3 .axi { color: var(--blue-600); }
.rz-sr + .rz-sr { margin-top: 12px; }
.rz-sl { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.rz-sl b { font-size: 14px; color: var(--navy-800); } .rz-sl span { font-size: 12px; font-weight: 700; color: var(--muted); }
.rz-sb { height: 9px; border-radius: 9px; background: #E8EEF6; overflow: hidden; }
.rz-sb i { display: block; height: 100%; border-radius: 9px; background: var(--c); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, #fff), var(--c)); }

/* submitted, result pending */
.rz-hero.wait { gap: 12px; padding-top: 24px; }
.rz-ok { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(94, 234, 212, .16); box-shadow: 0 0 0 10px rgba(94, 234, 212, .08), 0 0 34px rgba(94, 234, 212, .35); }
.rz-ok svg { width: 56px; height: 56px; fill: none; stroke: #5EEAD4; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rz-ok circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: rzdraw .8s ease forwards; } .rz-ok path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: rzdraw .5s .6s ease forwards; stroke: #fff; }
@keyframes rzdraw { to { stroke-dashoffset: 0; } }
.rz-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rz-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); }
.rz-chips .axi { width: 14px; height: 14px; }
.rz-steps { list-style: none; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); margin: 6px 0 2px; padding: 0; }
.rz-steps li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .6); }
.rz-steps li + li::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.rz-steps li.done + li::before, .rz-steps li.done + li.now::before { background: linear-gradient(90deg, #5EEAD4, #5EEAD4); }
.rz-steps i { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #17356F; border: 2px solid rgba(255, 255, 255, .25); }
.rz-steps .axi { width: 17px; height: 17px; }
.rz-steps .done { color: #fff; } .rz-steps .done i { background: #12A15E; border-color: #5EEAD4; }
.rz-steps .now { color: #fff; } .rz-steps .now i { background: #D98200; border-color: #FBC531; animation: rzpulse 1.8s ease-out infinite; }
@keyframes rzpulse { 0% { box-shadow: 0 0 0 0 rgba(251, 197, 49, .6); } 100% { box-shadow: 0 0 0 14px rgba(251, 197, 49, 0); } }
.rz-rel { width: 100%; display: grid; gap: 4px; padding: 14px 10px 12px; border-radius: 22px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.rz-rel small { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .7); } .rz-rel > b { font-size: 18px; letter-spacing: -.01em; }
.rz-cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.rz-cd div { padding: 9px 2px 7px; border-radius: 14px; background: rgba(8, 20, 48, .45); border: 1px solid rgba(255, 255, 255, .12); }
.rz-cd b { display: block; font-size: 24px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .rz-cd small { display: block; margin-top: 4px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.rz-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rz-info li { display: flex; align-items: center; gap: 12px; }
.rz-info li > span { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; color: var(--blue-600); background: var(--blue-50); }
.rz-info li:nth-child(2) > span { color: #0B8A68; background: #E4F6EF; } .rz-info li:nth-child(3) > span { color: #C2560C; background: #FDEEDD; }
.rz-info li b { display: block; font-size: 14px; color: var(--navy-800); } .rz-info li small { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.rz-act { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rz-act.one { grid-template-columns: minmax(0, 1fr); } .rz-act.one .btn { width: 100%; justify-content: center; }
.rz-b { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 16px; font-size: 14px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2272DA, #1558B0); box-shadow: 0 14px 22px -14px #1558B0; }
.rz-b.alt { color: var(--navy-800); background: #fff; border: 1px solid #CBD6E6; box-shadow: none; }
.rz-b:active { transform: scale(.98); }

/* the answer review under a scored result */
.rz #rvWrap .rv-card { border-radius: 22px; border: 1px solid var(--line); border-left-width: 5px; box-shadow: 0 12px 24px -20px rgba(16, 41, 74, .5); }
.rz #rvWrap .rv-card.correct { border-left-color: #12A15E; } .rz #rvWrap .rv-card.wrong { border-left-color: #E5484D; } .rz #rvWrap .rv-card.skipped { border-left-color: #D98200; }
@media (min-width: 900px) { .rz-hero { padding: 24px 28px; } .rz-ring { width: 190px; height: 190px; } }

/* ===== Profile (pr-*): app-style hero with a completion ring, grouped settings lists ===== */
.pr { max-width: 1120px; margin: 0 auto; display: grid; gap: 0; }
.pr-hero { position: relative; overflow: hidden; isolation: isolate; margin: 2px 0 16px; padding: 20px 18px 18px; border-radius: 30px; color: #fff;
  background: radial-gradient(120% 80% at 100% -20%, rgba(94, 234, 212, .3), transparent 55%), radial-gradient(90% 70% at -10% 120%, rgba(59, 130, 246, .4), transparent 60%), linear-gradient(165deg, #0A1B3A 0%, #12306B 60%, #1A3F8C 100%);
  box-shadow: 0 24px 40px -24px rgba(10, 27, 58, .85); transition: outline-color .2s; }
.pr-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(80% 60% at 80% 20%, #000, transparent); mask-image: radial-gradient(80% 60% at 80% 20%, #000, transparent); }
#pfHeroWrap.drop { outline: 3px dashed #5EEAD4; outline-offset: 6px; }
.pr-top { display: flex; align-items: center; gap: 18px; }
.pr-ring { position: relative; flex: none; width: 130px; height: 130px; display: grid; place-items: center; }
.pr-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#5EEAD4 calc(var(--p) * 1%), rgba(255, 255, 255, .18) 0); -webkit-mask: radial-gradient(closest-side, transparent 88%, #000 90%); mask: radial-gradient(closest-side, transparent 88%, #000 90%); }
.pr-av { position: relative; display: grid; place-items: center; width: 98px; height: 98px; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .1); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .5); }
.pr-av .av { border-radius: 50%; }
.pr-cam { position: absolute; right: 0; bottom: 4px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 3px solid #12306B; background: #5EEAD4; color: #063B33; cursor: pointer; box-shadow: 0 8px 18px rgba(0, 0, 0, .3); transition: transform .15s; }
.pr-cam:active { transform: scale(.92); }
.pr-cam svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pr-who { min-width: 0; flex: 1; }
.pr-who h2 { margin: 0; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.pr-no { display: inline-block; margin-top: 7px; padding: 3px 10px; border-radius: 999px; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 11px; letter-spacing: .12em; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); }
.pr-pct { margin: 10px 0 0; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .75); }
.pr-pct b { color: #5EEAD4; font-size: 15px; margin-right: 2px; }
.pr-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.pr-st { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 8px; border-radius: 16px; color: rgba(255, 255, 255, .85); font-size: 12.5px; font-weight: 800; background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .28); cursor: pointer; transition: transform .12s, background .2s; }
.pr-st:active { transform: scale(.97); }
.pr-st.ok { color: #fff; background: rgba(94, 234, 212, .16); border: 1px solid rgba(94, 234, 212, .45); }
.pr-sg { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 14px; line-height: 1; background: rgba(255, 255, 255, .16); }
.pr-st.ok .pr-sg { background: #5EEAD4; color: #063B33; }
.pr-sg svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.pr-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
.pr-side { min-width: 0; }
.pr-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.pr-acts[hidden] { display: none; }
.pr-act { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--navy-800); font-size: 13.5px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 18px -16px rgba(16, 41, 74, .6); transition: transform .12s, background .15s; }
.pr-act:active { transform: scale(.97); background: #F3F7FD; }
.pr-act:disabled { opacity: .45; cursor: not-allowed; }
.pr-act svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pr-idwrap .idc { margin-bottom: 4px; }
.pr-side .pf-hint { margin: 12px 4px 0; text-align: left; font-size: 12px; }
/* phones: the ID card reads like a real ID badge - photo on the left, details on the right */
@media (max-width: 899px) {
  .pr-idwrap .idc { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 0 0 14px; }
  .pr-idwrap .idc-top { grid-column: 1 / -1; }
  .pr-idwrap .idc-photo { grid-column: 1; grid-row: 2 / span 2; margin: 14px 0 0 14px; }
  .pr-idwrap .idc-photo .av { --s: 92px !important; border-radius: 16px; }
  .pr-idwrap .idc h3 { grid-column: 2; grid-row: 2; align-self: end; margin: 14px 14px 0 0; font-size: 18px; line-height: 1.2; }
  .pr-idwrap .idc-no { grid-column: 2; grid-row: 3; align-self: start; margin: 4px 14px 0 0; font-size: 11.5px; }
  .pr-idwrap .idc-grid { grid-column: 1 / -1; margin: 14px 14px 0; gap: 8px; }
  .pr-idwrap .idc-foot { grid-column: 1 / -1; margin: 12px 14px 0; }
}

.pr-main { min-width: 0; }
.pr-form { min-width: 0; }
.pr .pr-body { display: block; padding: 0; background: transparent; border: 0; }
.pr-cap { margin: 20px 6px 9px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pr-list { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 16px 28px -24px rgba(16, 41, 74, .55); }
.pr-row { position: relative; display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 12px 16px; cursor: text; transition: background .15s; }
.pr-row + .pr-row { border-top: 1px solid #EDF2F8; }
.pr-row:focus-within { background: #F5F8FE; }
.pr-row.is-lock { cursor: default; background: #FAFBFD; }
.pr-row.is-lock:focus-within { background: #FAFBFD; }
.pr-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 15px; color: var(--c, #1E6BD1); background: color-mix(in srgb, var(--c, #1E6BD1) 13%, #fff); }
.pr-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pr-ic.c1 { --c: #1E6BD1; } .pr-ic.c2 { --c: #0B8A68; } .pr-ic.c3 { --c: #C2560C; } .pr-ic.c4 { --c: #6D4AD8; }
.pr-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pr-tx > small { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .01em; }
.pr-tx .req { color: var(--orange-600, #E26A00); }
.pr .pr-tx .input, .pr .pr-tx .select, .pr .pr-in { width: 100%; min-width: 0; height: auto; padding: 1px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 15.5px; font-weight: 700; line-height: 1.35; color: var(--navy-800); outline: none; -webkit-appearance: none; appearance: none; }
.pr .pr-tx .select { background-image: none; padding-right: 22px; cursor: pointer; }
.pr .pr-tx .input::placeholder { color: #A9B6CA; font-weight: 600; }
.pr .pr-in:disabled { color: var(--ink-2); opacity: 1; -webkit-text-fill-color: var(--ink-2); cursor: default; }
.pr-lk { flex: none; width: 16px; height: 16px; color: #94A3B8; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pr .ferr { margin: 6px 8px 0; }
.pr-note { margin: 12px 8px 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.pr .banner { margin-top: 12px; }
.pr-save { margin-top: 18px; display: block; }
.pr-save .btn { width: 100%; height: 54px; border-radius: 18px; justify-content: center; font-size: 15.5px; font-weight: 800; box-shadow: 0 16px 26px -16px rgba(255, 106, 0, .55); }
.pr-save .btn:active { transform: scale(.98); }
.pr .oc { margin-top: 18px; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 16px 28px -24px rgba(16, 41, 74, .55); }

@media (min-width: 900px) {
  .pr-hero { padding: 26px 30px; margin-bottom: 22px; }
  .pr-top { gap: 26px; }
  .pr-ring { width: 150px; height: 150px; }
  .pr-av { width: 122px; height: 122px; }
  .pr-who h2 { font-size: 28px; }
  .pr-cols { grid-template-columns: 340px minmax(0, 1fr); gap: 26px; }
  .pr-side { position: sticky; top: 104px; }
  .pr-row { min-height: 70px; }
}