/* =====================================================================
   TLES design system — Teacher Licensing & Examination System
   Built on Bootstrap 4 grid/utilities. Navy + sun-gold from the bureau seal.
   ===================================================================== */

:root {
  --navy-950: #0a1a30;
  --navy-900: #0f2440;
  --navy-800: #15315a;
  --navy-700: #1b3f73;
  --navy-600: #224f8f;
  --navy-500: #2f64ad;
  --navy-100: #dfe8f5;
  --navy-50:  #f0f5fb;

  --gold-600: #c98a06;
  --gold-500: #e9a10d;
  --gold-400: #f6b928;
  --gold-100: #fdf1d2;

  --ink:      #0f172a;
  --ink-2:    #26354a;
  --muted:    #526178;
  --subtle:   #8494aa;
  --line:     #dfe5ee;
  --line-2:   #eef2f6;
  --surface:  #ffffff;
  --canvas:   #f3f5f9;

  --success: #0f9d6b;  --success-bg: #e3f6ee;
  --warning: #b7791f;  --warning-bg: #fdf3dc;
  --danger:  #d23b3b;  --danger-bg:  #fde8e8;
  --info:    #1f6fd1;  --info-bg:    #e5f0fd;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow:    0 1px 3px rgba(15, 23, 42, .06), 0 6px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .14);
  --ring:      0 0 0 3px rgba(47, 100, 173, .22);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Ethiopic", "Helvetica Neue", Arial, sans-serif;
  --sidebar-w: 260px;
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
a { color: var(--navy-600); }
a:hover { color: var(--navy-800); text-decoration: none; }
.text-muted { color: var(--muted) !important; }
.small, small { font-size: 82%; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.text-gold { color: var(--gold-600) !important; }
.text-navy { color: var(--navy-700) !important; }
:focus-visible { outline: none; box-shadow: var(--ring); }
::selection { background: var(--gold-100); }

/* ---------- buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; font-size: 14.5px; padding: .6rem 1.1rem; min-height: 40px; border-width: 1px; transition: background .15s, box-shadow .15s, transform .05s; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn:active { transform: translateY(1px); }
.btn:focus, .btn.focus { box-shadow: var(--ring); }
.btn-sm { padding: .38rem .75rem; font-size: 13.5px; min-height: 34px; border-radius: 8px; }
.btn-lg { padding: .8rem 1.4rem; font-size: 16px; border-radius: 10px; }
.btn-primary { background: linear-gradient(180deg, var(--navy-600), var(--navy-700)); border-color: var(--navy-700); color: #fff; box-shadow: 0 1px 2px rgba(15,36,64,.25), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-primary:hover, .btn-primary:focus { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn-gold { background: var(--gold-400); border-color: var(--gold-400); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.btn-light, .btn-secondary, .btn-default { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-light:hover, .btn-secondary:hover, .btn-default:hover { background: var(--navy-50); border-color: var(--navy-100); color: var(--navy-800); }
.btn-success { background: var(--success); border-color: var(--success); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-outline-danger { color: var(--danger); border-color: #f3c2c2; background: #fff; }
.btn-outline-danger:hover { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.btn-outline-primary { color: var(--navy-700); border-color: var(--navy-100); background: #fff; }
.btn-outline-primary:hover { background: var(--navy-50); color: var(--navy-800); border-color: var(--navy-500); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-icon { width: 34px; height: 34px; padding: 0; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }

/* ---------- forms ---------- */
label, .form-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: .4rem; }
.form-control, .custom-select {
  border: 1px solid #d3dbe6; border-radius: 10px; font-size: 15px; color: var(--ink);
  height: calc(2.75rem + 2px); padding: .5rem .8rem; background-color: #fff; box-shadow: var(--shadow-sm);
}
textarea.form-control { height: auto; min-height: 90px; }
.form-control:focus, .custom-select:focus { border-color: var(--navy-500); box-shadow: var(--ring); }
.form-control::placeholder { color: var(--subtle); }
.form-text { color: var(--muted); font-size: 13px; }
.form-group { margin-bottom: 1.1rem; }
.req::after { content: " *"; color: var(--danger); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.3rem; }
.custom-control-label { font-weight: 500; }
.custom-control-input:checked ~ .custom-control-label::before { background-color: var(--navy-600); border-color: var(--navy-600); }
.form-section { border-top: 1px solid var(--line-2); padding-top: 1.25rem; margin-top: .5rem; }
.form-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1rem; }

/* ---------- cards ---------- */
.card-x { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-x + .card-x { margin-top: 1.25rem; }
.card-x-header { padding: 1.05rem 1.35rem; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.card-x-title { font-size: 16.5px; letter-spacing: -.01em; font-weight: 700; margin: 0; display: flex; align-items: center; gap: .5rem; }
.card-x-title i { color: var(--navy-500); }
.card-x-sub { color: var(--muted); font-size: 13.5px; margin: 3px 0 0; }
.card-x-body { padding: 1.35rem; }
.card-x-footer { padding: .9rem 1.25rem; border-top: 1px solid var(--line-2); background: #fbfcfe; border-radius: 0 0 var(--radius) var(--radius); display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
.grid-gap { row-gap: 1.25rem; }

/* stat tiles */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; gap: 1rem; align-items: center; box-shadow: var(--shadow-sm); height: 100%; }
.stat-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.stat-icon.navy { background: var(--navy-50); color: var(--navy-600); }
.stat-icon.gold { background: var(--gold-100); color: var(--gold-600); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.red { background: var(--danger-bg); color: var(--danger); }
.stat-icon.blue { background: var(--info-bg); color: var(--info); }
.stat-value { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.stat-label { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.stat a.stretched-link { color: inherit; }

/* ---------- tables ---------- */
.table-x { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.table-x th { background: #f6f8fb; color: #4a5a71; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .7rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: left; }
.table-x td { padding: .95rem 1rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; color: var(--ink-2); }
.table-x tbody tr:hover td { background: #f7f9fc; }
.table-x tbody tr:last-child td { border-bottom: 0; }
.table-x .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-x .actions { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cell-title { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 13px; color: var(--muted); }
.person { display: flex; align-items: center; gap: .7rem; min-width: 180px; }

/* ---------- pills / avatars ---------- */
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: 12.5px; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill-success { background: var(--success-bg); color: var(--success); }
.pill-warning { background: var(--warning-bg); color: var(--warning); }
.pill-danger  { background: var(--danger-bg);  color: var(--danger); }
.pill-info    { background: var(--info-bg);    color: var(--info); }
.pill-primary { background: var(--navy-50);    color: var(--navy-600); }
.pill-neutral { background: var(--line-2);     color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: .15rem .5rem; border-radius: 6px; background: var(--line-2); color: var(--ink-2); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-100); color: var(--navy-700); display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 84px; height: 84px; font-size: 26px; }

/* ---------- alerts ---------- */
.alert-x { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 14px; border: 1px solid transparent; }
.alert-x > i { margin-top: 3px; }
.alert-x > div { flex: 1; }
.alert-x-success { background: var(--success-bg); color: #0b6b4a; border-color: #bfe8d6; }
.alert-x-error   { background: var(--danger-bg);  color: #9b2424; border-color: #f6c9c9; }
.alert-x-warning { background: var(--warning-bg); color: #7c5310; border-color: #f2dcaa; }
.alert-x-info    { background: var(--info-bg);    color: #174e94; border-color: #c4dbf8; }
.alert-x-close { background: none; border: 0; font-size: 20px; line-height: 1; color: inherit; opacity: .6; cursor: pointer; }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--navy-50); color: var(--navy-500); display: grid; place-items: center; font-size: 24px; margin: 0 auto 1rem; }
.empty h4 { font-size: 17px; margin-bottom: .35rem; }

/* ---------- toolbar / filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.toolbar .form-control, .toolbar .custom-select { width: auto; min-width: 160px; }
.toolbar .grow { flex: 1; min-width: 200px; }
.tabs-x { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs-x a { padding: .65rem 1rem; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs-x a:hover { color: var(--ink); }
.tabs-x a.active { color: var(--navy-700); border-color: var(--gold-400); }
.tabs-x .count { background: var(--line-2); border-radius: 999px; padding: 0 .45rem; font-size: 12px; margin-left: .3rem; }

.pagination .page-link { border-color: var(--line); color: var(--ink-2); font-weight: 600; font-size: 13px; }
.pagination .page-item.active .page-link { background: var(--navy-700); border-color: var(--navy-700); }
.pagination .page-item:first-child .page-link { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.pagination .page-item:last-child .page-link { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.progress-x { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.progress-x > span { display: block; height: 100%; border-radius: 999px; background: var(--navy-500); }
.progress-x.gold > span { background: var(--gold-400); }
.progress-x.green > span { background: var(--success); }
.progress-x.red > span { background: var(--danger); }

.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: .6rem 1rem; font-size: 14.5px; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }

.steps-x { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps-x li { position: relative; padding: 0 0 1.1rem 2.6rem; }
.steps-x li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-50); color: var(--navy-700); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.steps-x li.done::before { content: "\2713"; background: var(--success-bg); color: var(--success); }
.steps-x li strong { display: block; font-size: 14px; }
.steps-x li span { color: var(--muted); font-size: 13px; }

.modal-content { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--line-2); padding: 1rem 1.25rem; }
.modal-title { font-weight: 700; font-size: 17px; }
.modal-footer { border-top: 1px solid var(--line-2); }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem; font-size: 14px; }
.dropdown-item { border-radius: 6px; padding: .5rem .75rem; display: flex; align-items: center; gap: .6rem; color: var(--ink-2); }
.dropdown-item i { width: 16px; color: var(--muted); }
.dropdown-item:hover { background: var(--navy-50); color: var(--navy-800); }
.dropdown-item.text-danger i { color: var(--danger); }

/* =====================================================================
   App shell (staff console + teacher portal)
   ===================================================================== */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: #c7d3e6; position: fixed; inset: 0 auto 0 0; z-index: 1040; display: flex; flex-direction: column;
  transition: transform .25s ease;
}
.sidebar-brand { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 2px; }
.sidebar-brand strong { color: #fff; font-size: 16px; letter-spacing: .02em; display: block; line-height: 1.1; }
.sidebar-brand span { font-size: 11.5px; color: #8ea3c4; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .75rem .75rem 1.5rem; }
.sidebar-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: #6d84a8; font-weight: 700; padding: 1rem .75rem .4rem; }
.sidebar-link { display: flex; align-items: center; gap: .85rem; padding: .66rem .8rem; border-radius: 10px; color: #d3ddec; font-size: 14.5px; font-weight: 500; margin-bottom: 2px; position: relative; }
.sidebar-link i { width: 18px; text-align: center; color: #8ea3c4; font-size: 15px; }
.sidebar-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-link:hover i { color: #fff; }
.sidebar-link.active { background: rgba(246, 185, 40, .12); color: #fff; }
.sidebar-link.active i { color: var(--gold-400); }
.sidebar-link.active::before { content: ""; position: absolute; left: -.75rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-400); }
.sidebar-link .count { margin-left: auto; background: var(--gold-400); color: var(--navy-950); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 .45rem; }
.sidebar-foot { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.06); font-size: 12px; color: #6d84a8; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; position: sticky; top: 0; z-index: 1030; }
.topbar-title { font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem .3rem .3rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.user-chip:hover { border-color: var(--navy-100); background: var(--navy-50); }
.user-chip .avatar { width: 32px; height: 32px; font-size: 12px; }
.user-chip .name { font-size: 13.5px; font-weight: 600; line-height: 1.1; }
.user-chip .role { font-size: 11.5px; color: var(--muted); }
.menu-toggle { display: none; }
.content { padding: 2rem 2rem 3.5rem; flex: 1; width: 100%; max-width: 1560px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.page-head p { color: var(--muted); margin: .35rem 0 0; font-size: 15px; max-width: 780px; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: .35rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy-700); }
.crumbs i { font-size: 10px; margin: 0 .4rem; opacity: .6; }
.app-footer { padding: 1rem 1.75rem; color: var(--subtle); font-size: 12.5px; border-top: 1px solid var(--line); background: #fff; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.backdrop { display: none; }

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(10, 26, 48, .45); z-index: 1035; }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-flex; }
  .content { padding: 1.25rem 1rem 2.5rem; }
  .topbar { padding: 0 1rem; }
  .user-chip .meta { display: none; }
  .page-head h1 { font-size: 21px; }
}

/* welcome banner */
.hello { background: radial-gradient(1200px 300px at 100% 0%, rgba(246,185,40,.25), transparent 60%), linear-gradient(120deg, var(--navy-800), var(--navy-600)); color: #fff; border-radius: var(--radius-lg); padding: 1.6rem 1.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; box-shadow: var(--shadow); }
.hello h2 { color: #fff; font-size: 22px; margin: 0 0 .25rem; }
.hello p { color: #d2ddf0; margin: 0; }

/* =====================================================================
   Public site
   ===================================================================== */
.pub-nav { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.pub-nav .inner { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand strong { display: block; font-size: 17px; line-height: 1.1; letter-spacing: .02em; }
.brand span { display: block; font-size: 12px; color: var(--muted); }
.pub-links { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.pub-links a.link { color: var(--ink-2); font-weight: 600; font-size: 14px; padding: .5rem .8rem; border-radius: 8px; }
.pub-links a.link:hover { background: var(--navy-50); color: var(--navy-800); }
.pub-toggle { display: none; margin-left: auto; }
@media (max-width: 767.98px) {
  .pub-toggle { display: inline-flex; }
  .pub-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: .75rem 16px 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .pub-links.open { display: flex; }
  .brand span { display: none; }
}

.hero { position: relative; overflow: hidden; background: radial-gradient(900px 420px at 85% 10%, rgba(246,185,40,.22), transparent 60%), linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%); color: #fff; padding: 5.5rem 0 6rem; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-400); background: rgba(246,185,40,.1); border: 1px solid rgba(246,185,40,.25); padding: .35rem .8rem; border-radius: 999px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.1; font-weight: 800; margin: 1.1rem 0 1rem; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero p.lead { color: #c9d6ec; font-size: 1.12rem; max-width: 560px; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.hero .btn-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.hero .btn-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.hero-card { background: rgba(255,255,255,.97); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.6rem; }
.hero-card h3 { font-size: 18px; }
.trust { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; color: #9fb3d4; font-size: 13px; }
.trust strong { display: block; color: #fff; font-size: 22px; font-weight: 800; }

.section { padding: 5rem 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--navy-100); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-600); font-size: 20px; margin-bottom: 1rem; }
.feature h3 { font-size: 17px; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }
.journey { counter-reset: j; }
.journey-step { position: relative; padding: 1.5rem 1.25rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; }
.journey-step::before { counter-increment: j; content: counter(j); position: absolute; top: -16px; left: 1.25rem; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-400); color: var(--navy-950); font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 5px var(--canvas); }
.journey-step h4 { font-size: 16px; margin: .5rem 0 .35rem; }
.journey-step p { color: var(--muted); font-size: 14px; margin: 0; }
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-600)); border-radius: var(--radius-lg); color: #fff; padding: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h3 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { color: #d2ddf0; margin: 0; }
.pub-footer { background: var(--navy-950); color: #8ea3c4; padding: 3rem 0 1.5rem; font-size: 14px; }
.pub-footer h5 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.pub-footer a { color: #c7d3e6; }
.pub-footer a:hover { color: var(--gold-400); }
.pub-footer ul { list-style: none; padding: 0; margin: 0; }
.pub-footer li { margin-bottom: .5rem; }
.pub-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: 13px; }

/* auth split screen */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-aside { background: radial-gradient(700px 360px at 90% 0%, rgba(246,185,40,.22), transparent 60%), linear-gradient(150deg, var(--navy-950), var(--navy-700)); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside h2 { color: #fff; font-size: 2rem; font-weight: 800; line-height: 1.2; max-width: 460px; }
.auth-aside p { color: #c9d6ec; max-width: 460px; }
.auth-aside ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.auth-aside li { display: flex; gap: .7rem; margin-bottom: .8rem; color: #dbe5f5; }
.auth-aside li i { color: var(--gold-400); margin-top: 4px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 16px; background: var(--canvas); }
.auth-box { width: 100%; max-width: 420px; }
.auth-box.wide { max-width: 760px; }
.auth-box h1 { font-size: 26px; font-weight: 800; }
@media (max-width: 991.98px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* license verification */
.verify-card { max-width: 640px; margin: 0 auto; }
.verify-status { display: flex; gap: 1rem; align-items: center; padding: 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.verify-status i { font-size: 30px; }
.verify-status.valid { background: var(--success-bg); color: #0b6b4a; }
.verify-status.invalid { background: var(--danger-bg); color: #9b2424; }

/* =====================================================================
   Exam room — built for long, careful reading. Everything inside the
   question area scales with --qs (examinee text-size control).
   ===================================================================== */
.exam-body { background: #eef2f7; --qs: 1; }
.exam-top { position: sticky; top: 0; z-index: 1030; background: var(--navy-900); color: #fff; min-height: 66px; display: flex; align-items: center; gap: .9rem; padding: .5rem 1.25rem; box-shadow: 0 2px 10px rgba(10,26,48,.25); }
.exam-top .who { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.exam-top .who img { width: 38px; height: 38px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.exam-top .who strong { display: block; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exam-top .who span { font-size: 13px; color: #b6c6de; }
.exam-top .spacer { flex: 1; }
.tool-group { display: inline-flex; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; overflow: hidden; }
.tool-group button { background: transparent; border: 0; color: #e6edf7; font-weight: 700; padding: .4rem .7rem; font-size: 14px; min-width: 38px; cursor: pointer; }
.tool-group button + button { border-left: 1px solid rgba(255,255,255,.15); }
.tool-group button:hover, .tool-group button[aria-pressed="true"] { background: rgba(255,255,255,.16); color: #fff; }
.net { display: inline-flex; align-items: center; gap: .45rem; font-size: 13px; font-weight: 600; padding: .38rem .75rem; border-radius: 999px; background: rgba(15,157,107,.2); color: #8ef0c8; }
.net.off { background: rgba(210,59,59,.25); color: #fecaca; }
.net.saving { background: rgba(246,185,40,.2); color: var(--gold-400); }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 22px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: .3rem .9rem; display: flex; align-items: center; gap: .55rem; letter-spacing: .02em; }
.timer i { color: var(--gold-400); font-size: 16px; }
.timer.low { background: var(--danger); border-color: var(--danger); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .78; } }

.exam-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 1.5rem; max-width: 1360px; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; }
.exam-wrap.has-passage { max-width: 1680px; }
.q-area { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.exam-wrap.has-passage .q-area { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

/* reading passage */
.passage { background: #fffdf7; border: 1px solid #ecdcb3; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); position: sticky; top: 86px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; }
.passage-head { padding: .9rem 1.25rem; border-bottom: 1px solid #f1e6c8; display: flex; align-items: center; gap: .6rem; }
.passage-head i { color: var(--gold-600); }
.passage-head .lbl { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a6514; }
.passage-head .ttl { font-weight: 700; font-size: calc(15px * var(--qs)); color: var(--ink); }
.passage-body { padding: 1.25rem 1.5rem 1.5rem; overflow-y: auto; font-size: calc(17.5px * var(--qs)); line-height: 1.85; color: #1d2939; white-space: pre-line; word-break: break-word; }
.passage-body img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); margin-top: 1rem; cursor: zoom-in; background: #fff; }

/* question card */
.q-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.75rem 2rem 1.5rem; }
.q-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.q-num { font-size: 13.5px; font-weight: 800; color: var(--navy-600); text-transform: uppercase; letter-spacing: .07em; }
.q-num .of { color: var(--muted); font-weight: 600; }
.q-tools { display: flex; align-items: center; gap: .6rem; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.q-ref { display: inline-flex; align-items: center; gap: .4rem; font-size: 13px; font-weight: 600; color: #8a6514; background: var(--gold-100); border-radius: 999px; padding: .2rem .7rem; }
.givens { background: #f5f8fc; border: 1px solid #dbe5f1; border-left: 4px solid var(--navy-500); border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 1.2rem; }
.givens .lbl { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-600); margin-bottom: .35rem; }
.givens .body { font-size: calc(17px * var(--qs)); line-height: 1.75; color: #1d2939; white-space: pre-line; word-break: break-word; font-variant-numeric: tabular-nums; }
.q-text { font-size: calc(20px * var(--qs)); line-height: 1.7; color: #0b1626; font-weight: 500; margin-bottom: 1.25rem; white-space: pre-line; word-break: break-word; }
.q-figure { margin: 0 0 1.4rem; text-align: center; }
.q-figure img, .zoomable { max-width: 100%; max-height: calc(380px * var(--qs)); border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px; cursor: zoom-in; }
.q-figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: .4rem; }

/* options */
.opts { display: grid; gap: .75rem; }
.opts.with-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { display: flex; gap: 1rem; align-items: flex-start; width: 100%; text-align: left; padding: 1rem 1.15rem; border: 2px solid #dbe2ec; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; font-size: calc(17.5px * var(--qs)); line-height: 1.55; color: #0b1626; min-height: 64px; }
.opt:hover { border-color: var(--navy-500); background: #f6f9fe; }
.opt:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(47,100,173,.25); }
.opt .key { width: calc(36px * var(--qs)); height: calc(36px * var(--qs)); min-width: 36px; min-height: 36px; border-radius: 10px; border: 2px solid #cfd8e4; display: grid; place-items: center; font-weight: 800; font-size: calc(15px * var(--qs)); flex-shrink: 0; color: var(--ink-2); background: #fff; }
.opt .txt { padding-top: 4px; word-break: break-word; flex: 1; min-width: 0; }
.opt .txt img { display: block; max-width: 100%; max-height: calc(220px * var(--qs)); border-radius: 10px; border: 1px solid var(--line); background: #fff; margin-bottom: .5rem; }
.opts.with-images .opt { flex-direction: column; align-items: stretch; }
.opts.with-images .opt .key { position: absolute; }
.opts.with-images .opt { position: relative; padding-top: 3.3rem; }
.opts.with-images .opt .key { top: .8rem; left: .9rem; }
.opts.with-images .opt .txt img { margin: 0 auto .5rem; }
.zoom-btn { position: absolute; top: .75rem; right: 2.6rem; width: 34px; height: 34px; border-radius: 9px; background: rgba(15,36,64,.75); color: #fff; display: grid; place-items: center; font-size: 14px; cursor: zoom-in; }
.zoom-btn:hover { background: var(--navy-900); }
.opt.selected { border-color: var(--navy-600); background: #eef4fd; box-shadow: 0 0 0 3px rgba(47,100,173,.14); }
.opt.selected .key { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.opt.selected::after { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-left: auto; color: var(--navy-600); padding-top: 6px; }
.opts.with-images .opt.selected::after { position: absolute; top: .9rem; right: 1rem; }
.q-nav { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1.6rem; padding-top: 1.25rem; border-top: 1px solid var(--line-2); flex-wrap: wrap; }

/* navigator */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; position: sticky; top: 86px; box-shadow: var(--shadow-sm); }
.panel h6 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 800; }
.grid-nav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; max-height: 44vh; overflow-y: auto; padding: 3px; }
.grid-nav button { aspect-ratio: 1; border: 2px solid #d6dee9; background: #fff; border-radius: 9px; font-size: 14px; font-weight: 800; color: var(--ink-2); position: relative; cursor: pointer; padding: 0; }
.grid-nav button:hover { border-color: var(--navy-500); }
.grid-nav button.answered { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.grid-nav button.flagged::after { content: ""; position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 2px #fff; }
.grid-nav button.in-passage { border-bottom-color: var(--gold-500); border-bottom-width: 4px; }
.grid-nav button.current { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold-500); }
.legend { display: flex; gap: .5rem 1rem; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 1rem 0; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 2px solid #d6dee9; }
.legend .l-ans::before { background: var(--navy-700); border-color: var(--navy-700); }
.legend .l-flag::before { background: var(--gold-400); border-color: var(--gold-400); border-radius: 50%; }
.legend .l-pass::before { border-bottom: 4px solid var(--gold-500); }

/* overlays & zoom */
.overlay { position: fixed; inset: 0; background: rgba(10,26,48,.86); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px; }
.overlay.show { display: flex; }
.overlay-box { background: #fff; border-radius: var(--radius-lg); padding: 2rem; max-width: 470px; text-align: center; box-shadow: var(--shadow-lg); }
.overlay-box h3 { font-size: 22px; }
.overlay-box .empty-icon { width: 72px; height: 72px; font-size: 28px; }
.lightbox { position: fixed; inset: 0; background: rgba(6,14,28,.92); z-index: 2100; display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; background: #fff; border-radius: 10px; padding: 8px; box-shadow: var(--shadow-lg); }
.lightbox .close-x { position: absolute; top: 14px; right: 18px; color: #fff; font-size: 30px; background: none; border: 0; cursor: pointer; }

/* high contrast mode (examinee toggle) */
.exam-body.hc { background: #fff; }
.exam-body.hc .q-card, .exam-body.hc .panel, .exam-body.hc .passage { border: 2px solid #000; box-shadow: none; background: #fff; }
.exam-body.hc .q-text, .exam-body.hc .opt, .exam-body.hc .passage-body, .exam-body.hc .givens .body { color: #000; }
.exam-body.hc .opt { border-color: #000; }
.exam-body.hc .opt.selected { background: #000; color: #fff; }
.exam-body.hc .opt.selected .key { background: #fff; color: #000; border-color: #fff; }
.exam-body.hc .opt.selected::after { color: #fff; }
.exam-body.hc .givens { background: #fff; border: 2px solid #000; }
.exam-body.hc .grid-nav button { border-color: #000; color: #000; }
.exam-body.hc .grid-nav button.answered { background: #000; color: #fff; }

@media (max-width: 1199.98px) {
  .exam-wrap.has-passage .q-area { grid-template-columns: minmax(0, 1fr); }
  .passage { position: static; max-height: 46vh; }
}
@media (max-width: 991.98px) {
  .exam-wrap, .exam-wrap.has-passage { grid-template-columns: minmax(0, 1fr); padding: 1rem 16px 2rem; }
  .panel { position: static; }
  .q-card { padding: 1.25rem 1.1rem; }
  .exam-top .who span, .net .lbl, .exam-top .hide-sm { display: none; }
}
@media (max-width: 575.98px) {
  .opts.with-images { grid-template-columns: minmax(0, 1fr); }
  .timer { font-size: 18px; padding: .25rem .6rem; }
}

/* the same question layout, rendered server-side for previews and printed papers */
.q-render .q-text { font-size: 18px; margin-bottom: 1rem; }
.q-render .opt { cursor: default; font-size: 16px; min-height: 0; }
.q-render .opt.correct { border-color: var(--success); background: var(--success-bg); }
.q-render .opt.correct .key { background: var(--success); border-color: var(--success); color: #fff; }
.q-render .passage { position: static; max-height: none; margin-bottom: 1.25rem; }
.q-render .passage-body { font-size: 16px; }
.q-render .givens .body { font-size: 16px; }

/* result screen */
.score-ring { --p: 0; --c: var(--success); width: 168px; height: 168px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line-2) 0); display: grid; place-items: center; margin: 0 auto; }
.score-ring > div { width: 136px; height: 136px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.score-ring strong { font-size: 34px; font-weight: 800; display: block; line-height: 1; }
.score-ring span { font-size: 12px; color: var(--muted); }

/* =====================================================================
   Print (licenses & reports)
   ===================================================================== */
.print-bar { background: var(--navy-900); color: #fff; padding: .75rem 16px; display: flex; gap: .75rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.print-sheet { background: #fff; margin: 1.5rem auto; box-shadow: var(--shadow-lg); }
.license { width: 297mm; height: 210mm; padding: 9mm; position: relative; overflow: hidden; color: var(--navy-950); }
.license-frame { position: absolute; inset: 9mm; border: 2.5mm solid var(--navy-800); outline: .6mm solid var(--gold-400); outline-offset: -4.5mm; border-radius: 2mm; }
.license-inner { position: relative; height: 100%; padding: 13mm 17mm 11mm; display: flex; flex-direction: column; }
.license-watermark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.license-watermark img { width: 105mm; opacity: .06; }
.license-head { display: flex; align-items: center; gap: 6mm; border-bottom: .4mm solid var(--line); padding-bottom: 4mm; }
.license-head img { width: 24mm; height: 24mm; }
.license-head .org { flex: 1; }
.license-head .org div:first-child { font-size: 11pt; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-700); }
.license-head .org div:last-child { font-size: 9pt; color: var(--muted); }
.license-no { text-align: right; font-size: 9pt; color: var(--muted); }
.license-no strong { display: block; font-size: 13pt; color: var(--navy-900); font-family: ui-monospace, Menlo, Consolas, monospace; }
.license-title { text-align: center; margin: 6mm 0 3mm; }
.license-title h1 { font-family: Georgia, "Times New Roman", serif; font-size: 30pt; font-weight: 700; color: var(--navy-900); margin: 0; letter-spacing: .02em; }
.license-title div { color: var(--gold-600); font-weight: 700; letter-spacing: .3em; font-size: 10pt; text-transform: uppercase; margin-top: 1mm; }
.license-body { display: flex; gap: 9mm; align-items: center; flex: 1; }
.license-photo { width: 34mm; height: 42mm; border: .6mm solid var(--navy-100); border-radius: 2mm; object-fit: cover; background: var(--navy-50); display: grid; place-items: center; font-size: 22pt; font-weight: 800; color: var(--navy-600); flex-shrink: 0; }
.license-text { flex: 1; font-size: 12pt; line-height: 1.6; }
.license-text .name { font-family: Georgia, "Times New Roman", serif; font-size: 22pt; font-weight: 700; color: var(--navy-800); border-bottom: .4mm solid var(--gold-400); display: inline-block; padding: 0 2mm 1mm; margin: 1mm 0 3mm; }
.license-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2mm 6mm; margin-top: 4mm; font-size: 9.5pt; }
.license-grid div span { display: block; color: var(--muted); font-size: 8pt; text-transform: uppercase; letter-spacing: .06em; }
.license-grid div strong { color: var(--navy-950); }
.license-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 6mm; margin-top: 4mm; }
.license-sign { text-align: center; min-width: 60mm; font-size: 9.5pt; }
.license-sign .line { border-top: .4mm solid var(--navy-900); margin-bottom: 1mm; padding-top: 1mm; }
.license-qr { text-align: center; font-size: 7.5pt; color: var(--muted); }
.license-qr img { width: 26mm; height: 26mm; display: block; margin: 0 auto 1mm; }
.license-seal { width: 26mm; height: 26mm; border-radius: 50%; border: .8mm double var(--gold-500); display: grid; place-items: center; text-align: center; font-size: 6.5pt; font-weight: 800; color: var(--gold-600); letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.license.revoked::before { content: "REVOKED"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 80pt; font-weight: 900; color: rgba(210,59,59,.22); transform: rotate(-18deg); z-index: 5; }

.report-sheet { width: 210mm; min-height: 297mm; padding: 14mm; font-size: 10pt; }
.report-sheet h1 { font-size: 18pt; }
.report-sheet .table-x td, .report-sheet .table-x th { padding: 5px 7px; font-size: 9pt; }

@page { margin: 0; }
@media print {
  body { background: #fff !important; }
  .no-print, .print-bar { display: none !important; }
  .print-sheet { margin: 0; box-shadow: none; }
  .license { page-break-after: always; }
  .report-sheet { width: auto; min-height: 0; padding: 12mm; }
  .report-sheet .card-x { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media screen and (max-width: 1100px) {
  .print-sheet.license { transform-origin: top left; }
}

/* =====================================================================
   Question editor
   ===================================================================== */
.img-drop { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; border: 2px dashed #c9d4e3; border-radius: 12px; background: #fafcff; cursor: pointer; transition: border-color .15s, background .15s; margin: 0; font-weight: 500; }
.img-drop:hover { border-color: var(--navy-500); background: var(--navy-50); }
.img-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.img-drop:focus-within { box-shadow: var(--ring); border-color: var(--navy-500); }
.img-preview { width: 96px; height: 72px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: #9fb0c7; font-size: 22px; flex-shrink: 0; }
.img-preview img { width: 100%; height: 100%; object-fit: contain; }
.img-hint strong { display: block; color: var(--navy-700); font-size: 14px; }
.img-hint span { color: var(--muted); font-size: 12.5px; }
.img-drop-sm { padding: .4rem .65rem; gap: .6rem; border-width: 1.5px; }
.img-drop-sm .img-preview { width: 52px; height: 40px; font-size: 15px; }
.img-drop-sm .img-hint strong { font-size: 13px; }

.opt-edit { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: .75rem; transition: border-color .15s, background .15s; }
.opt-edit:last-child { margin-bottom: 0; }
.opt-edit.is-correct { border-color: var(--success); background: #f3fbf7; }
.opt-key { margin: 0; cursor: pointer; }
.opt-key input { position: absolute; opacity: 0; }
.opt-key span { width: 44px; height: 44px; border-radius: 12px; border: 2px solid #cfd8e4; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: var(--ink-2); background: #fff; transition: all .15s; }
.opt-key:hover span { border-color: var(--success); color: var(--success); }
.opt-key input:checked + span { background: var(--success); border-color: var(--success); color: #fff; box-shadow: 0 2px 8px rgba(15,157,107,.3); }
.opt-key input:focus-visible + span { box-shadow: var(--ring); }
.opt-body { flex: 1; min-width: 0; }
.opt-body textarea { min-height: 44px; resize: vertical; }
.correct-tag { display: none; margin-left: auto; color: var(--success); font-weight: 700; font-size: 13px; }
.opt-edit.is-correct .correct-tag { display: inline-flex; gap: .35rem; align-items: center; }

.seg { display: flex; border: 1px solid #d3dbe6; border-radius: 10px; overflow: hidden; }
.seg label { flex: 1; margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: .55rem .5rem; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg label + label span { border-left: 1px solid #d3dbe6; }
.seg input:checked + span { background: var(--navy-700); color: #fff; }
.seg input:focus-visible + span { box-shadow: inset var(--ring); }
@media (min-width: 1200px) { .sticky-xl { position: sticky; top: 84px; } }

/* question bank list */
.q-badges { display: inline-flex; gap: .3rem; flex-wrap: wrap; margin-top: .35rem; }
.q-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: 11.5px; font-weight: 700; padding: .12rem .5rem; border-radius: 6px; background: var(--navy-50); color: var(--navy-600); }
.q-badge.gold { background: var(--gold-100); color: #8a6514; }
.q-thumb { width: 54px; height: 42px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; background: #fff; }

/* compact questions on printed papers */
.report-sheet .q-render .q-text { font-size: 11.5pt; margin-bottom: .5rem; }
.report-sheet .q-render .opts { gap: .3rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.report-sheet .q-render .opt { padding: .3rem .55rem; min-height: 0; border-width: 1px; border-radius: 8px; font-size: 10.5pt; gap: .5rem; }
.report-sheet .q-render .opt .key { width: 22px; height: 22px; min-width: 22px; min-height: 22px; font-size: 10pt; border-width: 1px; border-radius: 6px; }
.report-sheet .q-render .opts.with-images .opt { padding-top: 2rem; }
.report-sheet .q-render .opt .txt img { max-height: 120px; }
.report-sheet .q-render .q-figure img { max-height: 230px; }
.report-sheet .q-render .givens .body, .report-sheet .q-render .passage-body { font-size: 10.5pt; line-height: 1.55; }
.report-sheet .q-render .q-num { font-size: 10pt; }
.check-inline { display: inline-flex; align-items: center; gap: .45rem; font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin: 0; cursor: pointer; }
.check-inline input { width: 17px; height: 17px; accent-color: var(--danger); }
.custom-select { padding-right: 2.1rem; text-overflow: ellipsis; }
.toolbar .custom-select { min-width: 140px; max-width: 240px; flex: 0 1 auto; }
@media (max-width: 575.98px) {
  .exam-top { gap: .45rem; padding: .45rem .6rem; }
  .exam-top .who { flex: 1; }
  .exam-top .who img { width: 30px; height: 30px; }
  .exam-top .who strong { font-size: 13.5px; }
  .exam-top .spacer { display: none; }
  .tool-group button { padding: .35rem .5rem; min-width: 32px; font-size: 13px; }
  .net { padding: .38rem .5rem; }
}

.back-btn { font-weight: 600; color: var(--ink-2); padding-left: .65rem; padding-right: .8rem; }
.back-btn i { color: var(--navy-600); transition: transform .15s; }
.back-btn:hover i { transform: translateX(-2px); }
.auth-main .auth-box .back-btn { display: inline-flex; }

/* admission numbers */
.adm-no { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .08em; color: var(--navy-700); background: var(--navy-50); border-radius: 5px; padding: .05rem .35rem; font-size: .95em; }
.adm-no-lg { font-size: 20px; padding: .15rem .6rem; letter-spacing: .16em; }

/* landing hero: bureau seal */
.hero-seal { width: 340px; height: 340px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.16), rgba(255,255,255,.04) 70%); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 18px rgba(255,255,255,.04), 0 30px 80px rgba(0,0,0,.35); display: grid; place-items: center; }
.hero-seal img { width: 250px; height: 250px; border-radius: 50%; background: #fff; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
/* search boxes in toolbars take the remaining width */
.toolbar .input-icon.grow { flex: 1 1 260px; }
.toolbar .input-icon.grow .form-control { width: 100%; min-width: 0; }

/* Countdown to a scheduled session */
.countdown { display: inline-flex; align-items: center; gap: .4rem; background: var(--navy-50); color: var(--navy-700); border: 1px solid #d7e2f3; border-radius: 999px; padding: .25rem .75rem; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.countdown strong { font-weight: 800; font-size: 1.08em; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.countdown.soon { background: var(--gold-100); border-color: #f3d27d; color: #7a5a00; }
.countdown.soon strong { color: #6b4e00; }
.countdown.due { background: var(--success-bg); border-color: #b7ebd5; color: var(--success); }
.countdown.due strong { color: var(--success); }
.countdown-lg { font-size: 15.5px; padding: .45rem 1rem; }

/* Candidates added to an allocation after its draw */
.tag-new { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; line-height: 1; padding: .22rem .45rem; border-radius: 6px; background: var(--gold-400); color: var(--navy-900, #0a1a30); vertical-align: middle; }
.row-new td { background-color: rgba(246, 185, 40, .07); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='44'%3E%3Ctext x='60' y='30' text-anchor='middle' transform='rotate(-12 60 22)' font-family='Arial,sans-serif' font-size='22' font-weight='900' letter-spacing='4' fill='%23f6b928' fill-opacity='.22'%3ENEW%3C/text%3E%3C/svg%3E"); background-repeat: repeat-x; background-position: center; }
.row-new td:first-child { box-shadow: inset 3px 0 0 var(--gold-400); }
@media print { .row-new td, .tag-new { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
