/* ============================================================
   QUANT LAB — shared design system
   Theme: deep ink ledger. Numbers carry the story here, so the
   type system leans on Space Grotesk (display/numerals),
   Inter (body/UI) and IBM Plex Mono (data: roll no, timers,
   scores, question index).
   ============================================================ */

/* Google Fonts are loaded NON-blocking via <link> in each page (an @import here blocked first paint). */

:root {
  --ink: #0E1420;
  --surface: #16202F;
  --surface-raised: #1C2839;
  --hairline: #2A3648;
  --text: #E9EEF5;
  --text-muted: #8B98AC;
  --amber: #E8A33D;
  --amber-dim: #6b5527;
  --teal: #3FBDB6;
  --red: #E2586B;
  --green: #59C27C;
  --radius: 10px;
  --easy: #59C27C;
  --medium: #E8A33D;
  --hard: #E2586B;
}

[data-theme="light"] {
  --ink: #F3F1EC;
  --surface: #FFFFFF;
  --surface-raised: #FBF9F4;
  --hairline: #DDD6C8;
  --text: #1C1A16;
  --text-muted: #6B6558;
  --amber: #C8791F;
  --amber-dim: #E9C48F;
  --teal: #1A8F87;
  --red: #C23A50;
  --green: #2E9457;
  --easy: #2E9457;
  --medium: #C8791F;
  --hard: #C23A50;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(63,189,182,0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(232,163,61,0.08), transparent 60%);
  pointer-events: none;
}

.hero-graphic { display: flex; justify-content: center; margin: 10px 0 24px; }
.btn-icon { padding: 9px 14px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Icon system ---------- */
.icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon-lg { width: 22px; height: 22px; }

/* ---------- Brand mark ---------- */
.brand .mark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(120deg, var(--amber), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-icon {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--amber), var(--teal));
  color: #17130A;
  margin-right: 4px;
}

/* ---------- Card elevation refinement ---------- */
.card {
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 8px 24px -12px rgba(0,0,0,0.25);
}
[data-theme="light"] .card {
  box-shadow: 0 1px 2px rgba(30,25,15,0.05), 0 8px 24px -14px rgba(30,25,15,0.12);
}

/* ---------- Hero landing (login screen) ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 64px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; min-height: auto; padding-top: 20px; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal);
  background: rgba(63,189,182,0.1);
  border: 1px solid var(--teal);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 42px;
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--amber), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 640px) { .hero-title { font-size: 30px; } }
.hero-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; max-width: 480px; line-height: 1.6; }
.hero-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.hero-feature { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; }
.hero-feature .feat-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  color: var(--teal);
}
.hero-feature strong { display: block; margin-bottom: 2px; }
.hero-feature span.desc { color: var(--text-muted); font-size: 13px; }

.signin-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 20px 50px -20px rgba(0,0,0,0.35);
}

.card-link { transition: border-color 0.15s ease, transform 0.1s ease; }
.card-link:hover { border-color: var(--teal); transform: translateY(-2px); }

/* ---------- No-select during active quiz ---------- */
body.quiz-active-noselect #screen-quiz {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-touch-callout: none;
}

/* ---------- No-select during proctored exam (incl. iOS long-press callout) ---------- */
#screen-exam {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-touch-callout: none;
}

/* ---------- Printable report card ---------- */
@media print {
  body.print-report-mode .topbar,
  body.print-report-mode #admin-search-panel,
  body.print-report-mode #dashboard-title,
  body.print-report-mode #dash-masthead,
  body.print-report-mode #btn-export-student,
  body.print-report-mode #btn-print-report {
    display: none !important;
  }
  body.print-report-mode #report-panel {
    display: block !important;
    box-shadow: none;
    border: none;
  }

  /* Printing is blocked entirely during an active quiz -- the whole page
     is replaced with a plain notice instead of a printable copy of the
     question/options. Ctrl+P/Cmd+P itself can't be intercepted as a
     keystroke in every browser, so this is the real backstop. */
  body.quiz-active-noselect * { visibility: hidden !important; }
  body.quiz-active-noselect::before {
    content: "Printing is disabled during an active practice attempt.";
    visibility: visible !important;
    position: fixed; top: 40%; left: 0; right: 0;
    text-align: center; font-size: 20px; font-family: sans-serif; color: #000;
  }
  body.print-report-mode { background: #fff; color: #111; }
}

/* ---------- Gamification zone (independent unit, distinct look) ---------- */
:root {
  --game-violet: #8B6FE8;
  --game-violet-dim: rgba(139, 111, 232, 0.12);
}
.game-zone {
  background: linear-gradient(160deg, rgba(139,111,232,0.10), rgba(139,111,232,0.02));
  border: 1px solid var(--game-violet);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.game-zone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.game-zone-header .badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--game-violet);
  border: 1px solid var(--game-violet);
  padding: 3px 8px;
  border-radius: 999px;
}
.game-zone h3 { color: var(--game-violet); font-size: 15px; }
.game-stat-row { display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.game-stat { display: flex; flex-direction: column; }
.game-stat .val { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; color: var(--game-violet); }
.game-stat .lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.game-xp-bar { height: 8px; border-radius: 999px; background: var(--surface-raised); overflow: hidden; margin-bottom: 4px; }
.game-xp-bar-fill { height: 100%; background: linear-gradient(90deg, var(--game-violet), #B79CFF); border-radius: 999px; transition: width 0.4s ease; }
.btn-game {
  background: var(--game-violet);
  color: #fff;
  border: 1px solid var(--game-violet);
  font-weight: 600;
}
.btn-game:hover { filter: brightness(1.1); border-color: var(--game-violet); }

/* Quick Math Sprint modal */
.game-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center; z-index: 200;
}
.game-modal {
  background: var(--surface);
  border: 2px solid var(--game-violet);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
}
.game-timer-ring {
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 5px solid var(--game-violet-dim);
  border-top-color: var(--game-violet);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--game-violet);
  margin: 0 auto 16px;
  animation: spin-ring 1s linear infinite;
}
@keyframes spin-ring { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.game-question { font-size: 32px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin-bottom: 20px; }
.game-answer-input {
  width: 100%; text-align: center; font-size: 24px;
  padding: 14px; border-radius: 10px; border: 2px solid var(--game-violet);
  background: var(--ink); color: var(--text); margin-bottom: 16px;
  font-family: 'IBM Plex Mono', monospace;
}

html, body { width: 100%; max-width: 100%; }
body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
body {
  min-height: 100vh;
  background-image:
    linear-gradient(180deg, rgba(63,189,182,0.04), transparent 300px);
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

a { color: var(--teal); }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
.wrap.wrap-collapsed { padding: 0; min-height: 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(22,32,47,0.6);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand .mark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--amber);
}
.brand .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
}

/* Notice board: deliberately distinct from generic .card so it reads as
   "important, look here" instead of blending into the rest of the Home tab. */
.notice-board-card {
  position: relative;
  background: linear-gradient(135deg, rgba(232, 163, 61, 0.10), rgba(232, 163, 61, 0.03) 60%), var(--surface-raised);
  border: 1px solid var(--amber-dim);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 20px 24px 24px;
  box-shadow: 0 4px 18px rgba(232, 163, 61, 0.08);
}
[data-theme="light"] .notice-board-card {
  background: linear-gradient(135deg, rgba(200, 121, 31, 0.08), rgba(200, 121, 31, 0.02) 60%), var(--surface-raised);
  box-shadow: 0 4px 18px rgba(200, 121, 31, 0.10);
}
.notice-board-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.notice-board-pin {
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(232, 163, 61, 0.5));
}
.notice-board-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--amber);
  text-transform: uppercase;
}
.notice-board-tabs { margin-bottom: 14px; }
.notice-board-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.notice-board-item:last-child { margin-bottom: 0; }
.notice-board-item-title { font-weight: 600; font-size: 14px; }
.notice-board-item-body { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.notice-board-item-meta { font-size: 12px; color: var(--amber); margin-top: 6px; font-weight: 600; }
.notice-board-item-by { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.05s ease;
}
.btn:hover { border-color: var(--teal); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.btn-primary {
  background: var(--amber);
  color: #17130A;
  border-color: var(--amber);
}
.btn-primary:hover { border-color: var(--amber); filter: brightness(1.06); }

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #fff;
}

input, select {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background: var(--ink);
  border: 1px solid var(--hairline);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  width: 100%;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--teal);
}
label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 6px;
}
.field { margin-bottom: 16px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--text-muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.easy { background: var(--easy); }
.dot.medium { background: var(--medium); }
.dot.hard { background: var(--hard); }

.grid {
  display: grid;
  gap: 14px;
}
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Mentor dashboard top row: interaction rings card (wider) + 2 KPI cards, in one line */
.mentor-dash-row {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 800px) {
  .mentor-dash-row { grid-template-columns: 1fr; }
}

.topic-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.topic-card:hover { border-color: var(--teal); background: var(--surface-raised); }
.topic-card.selected { border-color: var(--amber); background: var(--surface-raised); }
.topic-card-disabled { opacity: 0.55; }
.topic-card-disabled:hover { border-color: var(--hairline); background: none; cursor: not-allowed; }
.topic-card-disabled .meta { color: var(--hard); }
.topic-card h3 { font-size: 15px; margin-bottom: 6px; }
.topic-card .meta { font-size: 12px; color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; }

.diff-row { display: flex; gap: 10px; flex-wrap: wrap; }
.diff-choice {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}
.diff-choice.easy.on { border-color: var(--easy); background: rgba(89,194,124,0.12); color: var(--easy); }
.diff-choice.medium.on { border-color: var(--medium); background: rgba(232,163,61,0.12); color: var(--medium); }
.diff-choice.hard.on { border-color: var(--hard); background: rgba(226,88,107,0.12); color: var(--hard); }
.diff-choice[data-classtype], .diff-choice[data-audience] {
  min-width: 140px;
  letter-spacing: 0.02em;
}
.diff-choice[data-classtype].on, .diff-choice[data-audience].on {
  border-color: var(--teal); background: rgba(63,189,182,0.12); color: var(--teal);
}
@media (max-width: 480px) {
  .diff-choice[data-classtype], .diff-choice[data-audience] { min-width: 100%; font-size: 12px; }
}

/* ---------- Quiz layout: ledger rail signature element ---------- */
.quiz-layout {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 780px) {
  .quiz-layout { grid-template-columns: 1fr; }
  .ledger-rail { position: static; top: auto; }
  .ledger-ticks { max-height: 140px; }
}

.ledger-rail {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px;
}
.ledger-rail .score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 28px;
  color: var(--amber);
  margin-bottom: 2px;
}
.ledger-rail .score-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.ledger-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: flex-start;
  align-content: flex-start;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}
.tick-row-label {
  flex-basis: 100%;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 8px;
  margin-bottom: 2px;
}
.ledger-ticks::-webkit-scrollbar { width: 6px; }
.ledger-ticks::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 3px; }
.tick {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tick.easy { border-color: var(--easy); }
.tick.medium { border-color: var(--medium); }
.tick.hard { border-color: var(--hard); }
.tick.answered.easy { background: var(--easy); }
.tick.answered.medium { background: var(--medium); }
.tick.answered.hard { background: var(--hard); }
.tick.current { outline: 2px solid var(--teal); outline-offset: 1px; }
.tick .tick-num {
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-muted);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.12s ease, transform 0.12s ease;
  pointer-events: none;
}
.tick.answered .tick-num { color: rgba(0,0,0,0.55); }
.tick:hover {
  transform: scale(1.25);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 2;
}
.tick:hover .tick-num,
.tick.current .tick-num {
  opacity: 1;
  transform: scale(1);
}
.tick.current .tick-num { color: var(--teal); }

.q-index {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 10px;
}
.q-text {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}
.option:hover { border-color: var(--teal); }
.option.selected { border-color: var(--amber); background: rgba(232,163,61,0.08); }
.option .key {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--text-muted);
  font-size: 12px;
  width: 18px;
}
.option.correct { border-color: var(--green); background: rgba(89,194,124,0.1); }
.option.incorrect { border-color: var(--red); background: rgba(226,88,107,0.1); }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.quiz-nav #btn-submit { order: 2; }
.quiz-nav #btn-next { order: 3; }
@media (max-width: 480px) {
  .quiz-nav { flex-wrap: wrap; }
  .quiz-nav button { flex: 1 1 auto; min-width: 0; padding-left: 10px; padding-right: 10px; font-size: 13px; }
}

.warn-banner {
  background: rgba(226,88,107,0.12);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  font-family: 'IBM Plex Mono', monospace;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
@media (max-width: 700px) {
  table.data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  table.data-table thead, table.data-table tbody, table.data-table tr { display: table; width: auto; min-width: 100%; }
}
/* ---- "table-stack" tables (My Analysis & Progress) become a list of
   cards on phones instead of a wide scrolling table -- nothing gets cut
   off and there's nothing to swipe sideways to find. Each cell shows its
   column name (from the data-label attribute) next to its value. ---- */
@media (max-width: 640px) {
  table.data-table.table-stack { display: block; overflow-x: visible; white-space: normal; }
  table.data-table.table-stack thead { display: none; }
  table.data-table.table-stack tbody, table.data-table.table-stack tr { display: block; width: 100%; min-width: 0; }
  table.data-table.table-stack tr {
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 4px 14px;
    margin-bottom: 10px;
  }
  table.data-table.table-stack td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    white-space: normal;
    text-align: right;
  }
  table.data-table.table-stack td::before {
    content: attr(data-label);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 500;
    text-align: left;
  }
}
table.data-table th, table.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
}
table.data-table th {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
table.data-table tr:hover td { background: var(--surface-raised); }

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-block .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
}
.stat-block .lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.footer-note {
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  margin-top: 40px;
}

/* ---------- Screen transitions ---------- */
html { scroll-behavior: smooth; }
.screen, .tab-pane, .bc-pane, .stab, #stab-bootcamp { animation: screenIn 0.25s ease; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.card { animation: cardIn 0.2s ease; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.q-fade-anim { animation: cardIn 0.18s ease; }
.btn {
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.btn:active:not(:disabled) { transform: translateY(0) scale(0.97); box-shadow: none; }
.card-link, .bc-topic-card, .side-link { transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.card-link:hover, .bc-topic-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.10); }
input, select, textarea { transition: border-color 0.15s ease, box-shadow 0.15s ease; }

/* ---------- Skeleton loaders ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-raised) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-card { height: 90px; }

/* ---------- Topic cards with icon ---------- */
.topic-card .icon { font-size: 22px; margin-bottom: 6px; display: block; }
.suggestion-tag {
  margin-top: 6px;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--teal);
}

/* ---------- Progress ring ---------- */
.progress-ring-wrap { display: inline-flex; align-items: center; gap: 14px; }
.progress-ring-wrap .ring-label { display: flex; flex-direction: column; }
.progress-ring-wrap .ring-num { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; }
.progress-ring-wrap .ring-lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Heatmap cells ---------- */
.heat-cell {
  display: inline-block;
  min-width: 52px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
}
.heat-low    { background: rgba(226,88,107,0.18); color: var(--hard); }
.heat-mid    { background: rgba(232,163,61,0.18); color: var(--medium); }
.heat-high   { background: rgba(89,194,124,0.18); color: var(--easy); }

/* ---------- Streak badge ---------- */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,163,61,0.12);
  border: 1px solid var(--amber);
  color: var(--amber);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  margin-bottom: 16px;
}

/* ---------- Bookmark toggle ---------- */
.bookmark-toggle {
  cursor: pointer;
  font-size: 18px;
  margin-left: auto;
  opacity: 0.4;
  transition: opacity 0.15s ease, transform 0.1s ease;
  user-select: none;
}
.bookmark-toggle:hover { opacity: 0.8; }
.bookmark-toggle.active { opacity: 1; }
.bookmark-toggle.active:active { transform: scale(1.2); }
.q-header-row { display: flex; align-items: center; }

/* ---------- Score count-up ---------- */
.score-countup { font-variant-numeric: tabular-nums; }

/* ---------- Confetti ---------- */
.confetti-piece {
  position: fixed;
  top: -10px;
  width: 8px;
  height: 14px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 999;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(360deg); opacity: 0.2; }
}

/* ---------- Leaderboard ---------- */
.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
}
.leaderboard-rank {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  width: 26px;
  color: var(--text-muted);
}
.leaderboard-row.rank-1 .leaderboard-rank { color: var(--amber); }
.leaderboard-row.rank-2 .leaderboard-rank { color: var(--teal); }
.leaderboard-row.rank-3 .leaderboard-rank { color: var(--medium); }
/* Flex items don't shrink below their content's natural width by default,
   so a long name or long topic/university label was pushing the score
   value out of the card, breaking the row layout on narrow cards/mobile.
   min-width: 0 lets it actually shrink; the rest truncates with an
   ellipsis instead of overflowing or wrapping awkwardly. */
.leaderboard-row-name {
  min-width: 0;
  overflow: hidden;
}
.leaderboard-row-name > div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leaderboard-row-value {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---------- Segmented nav control ---------- */
.nav-segment {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 5px;
}
.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active {
  background: var(--amber);
  color: #17130A;
}
.seg-btn.seg-link { border-left: 1px solid var(--hairline); border-radius: 8px 8px 8px 8px; margin-left: 4px; padding-left: 18px; }

@media (max-width: 640px) {
  .nav-segment { width: 100%; justify-content: center; }
  .seg-btn { padding: 8px 12px; font-size: 13px; flex: 1 1 auto; justify-content: center; }
  .seg-btn.seg-link { border-left: none; margin-left: 0; padding-left: 12px; }
}

/* ---------- Admin sidebar shell ---------- */
.admin-layout {
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
  min-height: calc(100vh - 65px);
}
.admin-layout.bc-practice-mode, .student-dash-layout.bc-practice-mode { grid-template-columns: 1fr !important; max-width: 100% !important; padding: 0 !important; }
.bc-practice-mode .admin-sidebar, .bc-practice-mode .admin-rail { display: none !important; }
.bc-practice-mode .admin-main { padding: 24px 32px !important; max-width: 1200px; margin: 0 auto; width: 100%; box-sizing: border-box; }
body.bc-practice-mode-active .topbar { display: none; }
body.bc-practice-mode-active .mobile-nav-toggle { display: none !important; }
@media (max-width: 860px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .admin-sidebar { border-right: none; border-bottom: 1px solid var(--hairline); }
}
.admin-sidebar {
  border-right: 1px solid var(--hairline);
  padding: 24px 16px;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.side-link:hover { background: var(--surface-raised); color: var(--text); }
.side-link.active { background: var(--surface-raised); color: var(--amber); font-weight: 600; }
.admin-main { padding: 28px 32px; min-width: 0; max-width: 100%; box-sizing: border-box; }
@media (max-width: 640px) { .admin-main { padding: 20px 16px; } }

/* ---------- AI Progress Dashboard (shared: analysis tab, dashboard page) ---------- */
.insight-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
}
.insight-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.insight-panel-badge {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, var(--amber), var(--teal));
}
.insight-panel-head h3 {
  margin: 0 0 2px; font-size: 16px; font-family: 'Space Grotesk', sans-serif;
}
.insight-panel-head p {
  margin: 0; font-size: 12px; color: var(--text-muted);
}
.insight-band-pill {
  margin-left: auto;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
@media (max-width: 640px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.kpi-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 12px 14px;
}
.kpi-tile-icon { font-size: 18px; line-height: 1; }
.kpi-tile-value { font-size: 20px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; line-height: 1.1; }
.kpi-tile-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

.insight-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
@media (max-width: 720px) { .insight-split { grid-template-columns: 1fr; } }
.insight-block {
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 16px;
}
.insight-block-title {
  font-size: 11px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: 12px; font-weight: 600;
}
.radar-wrap { position: relative; height: 210px; }

.weak-topic-list { display: flex; flex-direction: column; gap: 12px; }
.weak-topic-row { display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: 10px; }
.weak-topic-name { font-size: 12.5px; }
.weak-topic-pct { font-size: 12.5px; font-weight: 600; width: 38px; text-align: right; }
.progress-track { height: 8px; border-radius: 5px; background: var(--hairline); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 5px; transition: width 0.4s ease; }

.insight-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .insight-notes { grid-template-columns: 1fr; } }
.insight-note {
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 14px 16px;
}
.insight-note-title { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.insight-note p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text); }

/* compact teaser card for the Practice/home tab */
.insight-summary-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 20px;
  flex-wrap: wrap;
}
.insight-summary-ring {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--ring-color) 0 100%, var(--hairline) 0 0);
  position: relative;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600;
}
.insight-summary-ring::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface);
}
.insight-summary-ring span { position: relative; z-index: 1; color: var(--ring-color); }
.insight-summary-body { flex: 1; min-width: 200px; }
.insight-summary-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.insight-summary-text { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.insight-summary-btn { white-space: nowrap; }

/* ---------- Mini student profile card (sidebar, left pane) ---------- */
.mini-profile {
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
}
.mini-profile-avatar {
  width: 44px; height: 44px; margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; color: #17130A;
}
.mini-profile-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.mini-profile-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.mini-profile-uni { font-size: 11px; color: var(--teal); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Aptitude Sectors console (ported reference look, self-contained theme) ---------- */
.gs-console {
  --gs-bg:#0b1220; --gs-panel:#101a2c; --gs-panel-2:#16223a; --gs-grid-cell:#1c2c4a;
  --gs-line:#26365a; --gs-amber:#ffb648; --gs-cyan:#4fd8e8; --gs-green:#5fd98a; --gs-red:#ff6b6b;
  --gs-text:#e7edf7; --gs-text-dim:#8ba0c4;
  max-width: 780px;
  background: radial-gradient(circle at 20% -10%, rgba(79,216,232,0.08), transparent 45%),
              radial-gradient(circle at 100% 10%, rgba(255,182,72,0.06), transparent 40%), var(--gs-bg);
  color: var(--gs-text);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  border-radius: 18px;
  padding: 20px 16px 30px;
}
.gs-console * { box-sizing: border-box; }
.gs-hud { display:flex; align-items:center; justify-content:space-between; gap:14px;
  background:var(--gs-panel); border:1px solid var(--gs-line); border-radius:14px; padding:14px 18px; margin-bottom:14px; }
.gs-hud-id { font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:0.14em; color:var(--gs-text-dim); text-transform:uppercase; }
.gs-hud-id b { color:var(--gs-cyan); font-weight:600; }
.gs-hud-mid { display:flex; align-items:center; gap:16px; }
.gs-stat { display:flex; flex-direction:column; align-items:center; min-width:48px; }
.gs-stat-val { font-family:'IBM Plex Mono',monospace; font-size:18px; font-weight:600; }
.gs-stat-label { font-size:9px; letter-spacing:0.12em; color:var(--gs-text-dim); text-transform:uppercase; margin-top:2px; }
#gs-streakVal { color:var(--gs-amber); } #gs-levelVal { color:var(--gs-cyan); } #gs-xpVal { color:var(--gs-green); }
.gs-xp-track { height:6px; background:var(--gs-line); border-radius:4px; overflow:hidden; margin-bottom:16px; }
.gs-xp-fill { height:100%; width:0%; background:linear-gradient(90deg, var(--gs-cyan), var(--gs-green)); transition:width 0.5s ease; }

.gs-panel { background:var(--gs-panel); border:1px solid var(--gs-line); border-radius:16px; padding:24px; position:relative; overflow:hidden; }
.gs-panel::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg, var(--gs-cyan), var(--gs-amber)); }
.gs-q-eyebrow { font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:0.14em; color:var(--gs-amber); text-transform:uppercase;
  display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.gs-q-eyebrow .gs-dot { width:6px; height:6px; border-radius:50%; background:var(--gs-amber); }
.gs-q-instr { font-size:13px; color:var(--gs-text-dim); background:var(--gs-panel-2); border:1px solid var(--gs-line);
  border-radius:9px; padding:10px 14px; margin-bottom:18px; line-height:1.5; }
.gs-q-instr b { color:var(--gs-text); }

.gs-grid4 { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; max-width:320px; margin:0 auto 22px; }
.gs-grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; max-width:180px; margin:0 auto; }
.gs-cell { aspect-ratio:1; background:var(--gs-grid-cell); border-radius:9px; display:flex; align-items:center; justify-content:center;
  font-size:24px; border:1px solid transparent; transition:all 0.15s; }
.gs-cell.gs-small { font-size:16px; border-radius:6px; }
.gs-cell.gs-target { border:2px dashed var(--gs-amber); background:rgba(255,182,72,0.08); }
.gs-cell.gs-target.gs-correct { border-color:var(--gs-green); background:rgba(95,217,138,0.15); animation:gs-pop .35s ease; }
.gs-cell.gs-target.gs-wrong { border-color:var(--gs-red); background:rgba(255,107,107,0.15); animation:gs-shake .4s ease; }
@keyframes gs-pop { 0%{transform:scale(1)} 50%{transform:scale(1.12)} 100%{transform:scale(1)} }
@keyframes gs-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

.gs-tray-label { font-family:'IBM Plex Mono',monospace; font-size:10px; letter-spacing:0.12em; color:var(--gs-text-dim);
  text-transform:uppercase; text-align:center; margin-bottom:10px; }
.gs-tray { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.gs-opt { width:54px; height:54px; background:var(--gs-panel-2); border:1px solid var(--gs-line); border-radius:10px;
  display:flex; align-items:center; justify-content:center; font-size:22px; cursor:pointer; transition:all .15s; }
.gs-opt:hover { border-color:var(--gs-cyan); transform:translateY(-2px); }

.gs-equation-row { display:flex; align-items:center; justify-content:center; gap:8px; font-family:'IBM Plex Mono',monospace;
  font-size:24px; font-weight:600; margin:8px 0 24px; flex-wrap:wrap; }
.gs-eq-result { color:var(--gs-text-dim); font-size:20px; }
.gs-digit-bank { display:flex; justify-content:center; gap:8px; flex-wrap:wrap; }
.gs-digit { width:42px; height:42px; background:var(--gs-panel-2); border:1px solid var(--gs-line); border-radius:8px;
  font-family:'IBM Plex Mono',monospace; font-size:16px; font-weight:600; display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:all .15s; }
.gs-digit:hover { border-color:var(--gs-cyan); transform:translateY(-2px); }
.gs-digit.gs-used { opacity:.25; pointer-events:none; }

.gs-refpair { display:flex; justify-content:center; gap:18px; margin-bottom:18px; }
.gs-candidates { display:grid; grid-template-columns:1fr 1fr; gap:14px; max-width:420px; margin:0 auto; }
.gs-cand-card { background:var(--gs-panel-2); border:2px solid var(--gs-line); border-radius:12px; padding:10px; cursor:pointer; transition:all .15s; }
.gs-cand-card:hover { border-color:var(--gs-cyan); }
.gs-cand-card.gs-correct { border-color:var(--gs-green); background:rgba(95,217,138,.12); }
.gs-cand-card.gs-wrong { border-color:var(--gs-red); background:rgba(255,107,107,.12); }
.gs-cand-label { text-align:center; font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--gs-text-dim); margin-top:6px; }

.gs-row-shapes { display:flex; justify-content:center; gap:14px; margin:20px 0 26px; }
.gs-row-cell { width:64px; height:64px; background:var(--gs-grid-cell); border-radius:12px; font-size:28px;
  display:flex; align-items:center; justify-content:center; cursor:pointer; border:2px solid transparent; transition:all .15s; }
.gs-row-cell:hover { border-color:var(--gs-cyan); transform:translateY(-2px); }
.gs-row-cell.gs-correct { border-color:var(--gs-green); background:rgba(95,217,138,.15); }
.gs-row-cell.gs-wrong { border-color:var(--gs-red); background:rgba(255,107,107,.15); }

.gs-series-row { display:flex; justify-content:center; align-items:center; gap:10px; margin:20px 0 26px; flex-wrap:wrap; }
.gs-series-cell { width:54px; height:54px; background:var(--gs-grid-cell); border-radius:10px; font-size:22px;
  display:flex; align-items:center; justify-content:center; }
.gs-series-cell.gs-q { border:2px dashed var(--gs-amber); color:var(--gs-amber); font-weight:700; }
.gs-series-arrow { color:var(--gs-text-dim); }

.gs-actions { display:flex; justify-content:space-between; align-items:center; margin-top:22px; gap:10px; flex-wrap:wrap; }
.gs-btn { font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:13px; padding:10px 18px; border-radius:9px;
  border:1px solid var(--gs-line); background:var(--gs-panel-2); color:var(--gs-text); cursor:pointer; transition:all .15s; }
.gs-btn:hover { border-color:var(--gs-cyan); }
.gs-btn.gs-primary { background:var(--gs-cyan); color:#08141f; border-color:var(--gs-cyan); }
.gs-btn.gs-primary:hover { filter:brightness(1.08); }
.gs-btn:disabled { opacity:.35; pointer-events:none; }
.gs-feedback { font-family:'IBM Plex Mono',monospace; font-size:13px; text-align:center; min-height:18px; margin-top:2px; }
.gs-feedback.gs-ok { color:var(--gs-green); } .gs-feedback.gs-no { color:var(--gs-red); }

.gs-streak-pop { position:fixed; top:20px; left:50%; transform:translateX(-50%) translateY(-10px);
  background:var(--gs-amber); color:#231400; font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:13px;
  padding:8px 16px; border-radius:20px; opacity:0; pointer-events:none; transition:all .4s ease; z-index:999; }
.gs-streak-pop.show { opacity:1; transform:translateX(-50%) translateY(0); }

.gs-home-title { font-size:24px; font-weight:700; margin:0 0 4px; }
.gs-home-sub { color:var(--gs-text-dim); font-size:13px; margin:0 0 22px; font-family:'IBM Plex Mono',monospace; }
.gs-sector-card { background:var(--gs-panel-2); border:1px solid var(--gs-line); border-radius:12px; padding:16px 18px;
  margin-bottom:12px; cursor:pointer; transition:all .15s; }
.gs-sector-card:hover { border-color:var(--gs-cyan); transform:translateX(2px); }
.gs-sector-name { font-weight:600; font-size:15px; margin-bottom:4px; }
.gs-sector-desc { font-size:12.5px; color:var(--gs-text-dim); line-height:1.5; }
.gs-sector-count { font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--gs-cyan); margin-top:6px; }
.gs-end-panel { text-align:center; padding:36px 20px; }
.gs-end-panel h2 { font-size:21px; margin-bottom:6px; }
.gs-end-panel p { color:var(--gs-text-dim); font-family:'IBM Plex Mono',monospace; font-size:13px; }

/* ---- Quick-Fire Math (ordering bubbles) ---- */
.gs-bub-timer { position:relative; height:22px; background:var(--gs-line); border-radius:11px; overflow:hidden; margin:0 auto 18px; max-width:340px; }
.gs-bub-timer-fill { height:100%; width:100%; background:linear-gradient(90deg, var(--gs-cyan), var(--gs-green)); transition:width .1s linear; }
.gs-bub-timer-fill.gs-low { background:linear-gradient(90deg, var(--gs-amber), var(--gs-red)); }
.gs-bub-timer span { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:'IBM Plex Mono',monospace; font-size:12px; font-weight:700; color:#fff; }
.gs-bubbles { display:flex; flex-wrap:wrap; justify-content:center; gap:16px; max-width:310px; margin:0 auto 18px; }
.gs-bub { position:relative; width:clamp(100px,38vw,130px); aspect-ratio:1; border-radius:50%; border:3px solid var(--gs-text); background:var(--gs-panel-2); color:var(--gs-text);
  display:flex; flex-direction:column; align-items:center; justify-content:center; font:600 20px 'Space Grotesk',sans-serif; cursor:pointer; padding:0; transition:transform .12s, border-color .15s, background .15s; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.gs-bub:hover { transform:scale(1.04); border-color:var(--gs-cyan); }
.gs-bub-lbl { text-align:center; line-height:1.2; padding:0 8px; }
.gs-bub-lbl.gs-bub-long { font-size:15.5px; }
.gs-resume-row { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.gs-resume-row .gs-btn { padding:7px 14px; font-size:13px; }
.gs-bub-val { font-size:12px; font-weight:500; color:var(--gs-text-dim); min-height:14px; }
.gs-bub-ord { position:absolute; top:-6px; right:-6px; width:26px; height:26px; border-radius:50%; background:var(--gs-amber); color:#111; font-size:13px; font-weight:700; display:none; align-items:center; justify-content:center; }
.gs-bub.gs-picked { border-color:var(--gs-green); background:rgba(95,217,138,0.15); animation:gs-pop .3s ease; }
.gs-bub.gs-picked .gs-bub-ord, .gs-bub.gs-bub-shown .gs-bub-ord { display:flex; }
.gs-bub.gs-bub-wrong { border-color:var(--gs-red); background:rgba(255,107,107,0.15); animation:gs-shake .4s ease; }
.gs-bub.gs-bub-shown:not(.gs-picked):not(.gs-bub-wrong) { border-color:var(--gs-line); }

/* ---- Memory Maze ---- */
.gs-mz-title { text-align:center; font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.1em; color:var(--gs-text-dim); text-transform:uppercase; margin-bottom:10px; }
.gs-mz-grid { position:relative; display:grid; grid-template-columns:repeat(var(--n),1fr); width:100%; max-width:420px; aspect-ratio:1; margin:0 auto; border:2px solid var(--gs-text-dim); border-radius:14px; overflow:visible; background:var(--gs-panel-2); }
.gs-mz-cell { border:1px solid var(--gs-line); display:flex; align-items:center; justify-content:center; font-size:clamp(24px,8vw,44px); user-select:none; }
.gs-mz-cell:first-child { border-top-left-radius:12px; } .gs-mz-doorcell { background:rgba(255,255,255,0.06); }
.gs-mz-player { background:#0a0f1a; box-shadow:inset 0 0 0 2px var(--gs-amber); }
.gs-mz-arrow { position:absolute; transform:translate(-50%,-50%); width:38px; height:38px; border-radius:9px; border:0; background:rgba(20,26,40,.92); color:#fff; font-size:22px; line-height:1; cursor:pointer; z-index:2; display:flex; align-items:center; justify-content:center; touch-action:manipulation; -webkit-tap-highlight-color:transparent; box-shadow:0 2px 8px rgba(0,0,0,.4); }
.gs-mz-arrow:active { background:var(--gs-cyan); color:#001; }
.gs-mz-shake { animation:gs-shake .4s ease; }
.gs-mz-bar { display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; margin-top:16px; padding-top:12px; border-top:1px solid var(--gs-line); font-size:13px; color:var(--gs-text-dim); }
.gs-mz-clock { min-width:56px; height:56px; border-radius:50%; border:3px solid var(--gs-text-dim); display:flex; align-items:center; justify-content:center; font:700 13px 'IBM Plex Mono',monospace; color:var(--gs-text); }
.gs-mz-goal b, .gs-mz-att b { color:var(--gs-text); }
.gs-mz-toast { text-align:center; min-height:20px; margin-top:8px; font-size:13px; color:var(--gs-amber); }
.gs-mz-intro { max-width:420px; margin:10px auto 0; text-align:center; }
.gs-mz-card { background:var(--gs-panel-2); border:1px solid var(--gs-line); border-radius:14px; padding:26px 22px; font-size:15px; line-height:1.65; color:var(--gs-text); min-height:110px; display:flex; align-items:center; justify-content:center; text-align:center; }
.gs-mz-dots { display:flex; justify-content:center; gap:7px; margin:14px 0; }
.gs-mz-dots span { width:8px; height:8px; border-radius:50%; border:1px solid var(--gs-text-dim); } .gs-mz-dots span.on { background:var(--gs-text); }
.gs-mz-table { margin:16px auto 0; border-collapse:collapse; font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--gs-text); }
.gs-mz-table th, .gs-mz-table td { padding:5px 14px; border-bottom:1px solid var(--gs-line); text-align:center; } .gs-mz-table th { color:var(--gs-text-dim); font-weight:500; }

@media (max-width:480px) {
  .gs-hud { flex-wrap:wrap; } .gs-hud-mid { gap:10px; } .gs-stat { min-width:42px; }
  .gs-candidates { grid-template-columns:1fr; }
}

/* ============================================================
   VISUAL POLISH PASS — hero bands, greeting headers, performance
   tints, quiz progress dots, mini in-cell bar charts, sidebar
   active state, typography/spacing refinement.
   ============================================================ */

/* ---------- Typography hierarchy ---------- */
h1 { font-size: 26px; line-height: 1.25; }
h2 { font-size: 20px; line-height: 1.3; }
h3 { font-size: 15px; line-height: 1.35; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }

/* ---------- Hero / gradient bands ---------- */
.hero-band {
  border-radius: 16px;
  padding: 28px 26px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(63,189,182,0.12), rgba(63,189,182,0.02));
  border: 1px solid rgba(63,189,182,0.18);
}
.hero-band.hero-band-red {
  background: linear-gradient(135deg, rgba(225,29,72,0.14), rgba(225,29,72,0.02));
  border-color: rgba(225,29,72,0.20);
}
.hero-greeting { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.hero-subline { font-size: 13.5px; color: var(--text-muted); }

/* ---------- Login page micro-interactions ---------- */
.login-choice-card { transition: transform 0.15s ease, box-shadow 0.15s ease; cursor: pointer; }
.login-choice-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.login-choice-card .icon { transition: transform 0.2s ease; }
.login-choice-card:hover .icon { transform: scale(1.12) rotate(-4deg); }

/* ---------- Performance-tinted cards (accuracy-based) ---------- */
.perf-strong { border-left: 4px solid #22c55e !important; }
.perf-mid { border-left: 4px solid #eab308 !important; }
.perf-weak { border-left: 4px solid #ef4444 !important; }

/* ---------- Quiz progress dots ---------- */
.quiz-progress-dots { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 14px; }
.quiz-progress-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border, #e2e2e2);
  transition: background 0.2s ease, transform 0.2s ease;
}
.quiz-progress-dots .dot.current { background: var(--teal, #3fbdb6); transform: scale(1.3); }
.quiz-progress-dots .dot.answered { background: #94a3b8; }

/* ---------- Stopwatch styling ---------- */
.stopwatch {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 600;
  padding: 4px 10px; border-radius: 8px; background: var(--surface-raised, #f2f2f2);
}

/* ---------- Selected quiz option state ---------- */
.quiz-option { position: relative; padding-left: 36px !important; }
.quiz-option.selected { border-color: var(--teal, #3fbdb6) !important; background: rgba(63,189,182,0.08); font-weight: 600; }
.quiz-option.selected::before {
  content: "✓"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--teal, #3fbdb6); font-weight: 700;
}
.quiz-option.selected.bc-selected { border-color: #64748b !important; background: rgba(100,116,139,0.1); }
.quiz-option.selected.bc-selected::before { color: #64748b; }

/* ---------- Boot Camp: reveal correct answer on selection ---------- */
.quiz-option.bc-opt-correct { border-color: #10b981 !important; background: rgba(16,185,129,0.12) !important; font-weight: 600; }
.quiz-option.bc-opt-correct::before { content: "✓"; color: #10b981 !important; }
.quiz-option.bc-opt-wrong-selected { border-color: #ef4444 !important; background: rgba(239,68,68,0.08) !important; }
.quiz-option.bc-opt-wrong-selected::before { content: "✕"; color: #ef4444 !important; }

/* ---------- Mini in-cell bar chart (admin tables) ---------- */
.mini-bar-cell { display: flex; align-items: center; gap: 8px; }
.mini-bar-track { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-raised, #eee); overflow: hidden; min-width: 60px; }
.mini-bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.mini-bar-fill.good { background: #22c55e; }
.mini-bar-fill.mid { background: #eab308; }
.mini-bar-fill.bad { background: #ef4444; }

/* ---------- Sidebar active-state indicator ---------- */
.side-link { position: relative; border-left: 3px solid transparent; transition: border-color 0.15s ease, background 0.15s ease; }
.side-link.active { border-left-color: var(--teal, #3fbdb6); background: rgba(63,189,182,0.08); font-weight: 600; }
.side-link[data-tab="bootcamp"].active,
#side-link-bootcamp.active { border-left-color: #fff; }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 32px 20px; color: var(--text-muted); }
.empty-state .emoji { font-size: 30px; margin-bottom: 8px; }
.empty-state p { font-size: 13.5px; }

/* ---------- Spacing consistency ---------- */
.card { padding: 18px; }
.grid { gap: 14px; }

/* ---------- Landing page: staggered entrance, trust row, stats strip, quotes ---------- */
.lp-fade { opacity: 0; animation: lpFadeIn 0.6s ease forwards; }
.lp-d1 { animation-delay: 0.05s; }
.lp-d2 { animation-delay: 0.15s; }
.lp-d3 { animation-delay: 0.28s; }
.lp-d4 { animation-delay: 0.40s; }
.lp-d5 { animation-delay: 0.52s; }
@keyframes lpFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.lp-trust-row { display: flex; justify-content: center; gap: 10px; margin: 14px 0 22px; flex-wrap: wrap; }
.lp-trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  padding: 6px 12px; border-radius: 20px;
  background: var(--surface-raised, #f2f2f2); color: var(--text-muted);
  border: 1px solid var(--border, #e2e2e2);
}

.lp-stats-strip {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin: 6px auto 8px; padding: 16px 24px; max-width: 460px;
  border-radius: 14px; background: var(--surface-raised, #f7f7f7);
  border: 1px solid var(--border, #eee);
}
.lp-stat { display: flex; flex-direction: column; align-items: center; }
.lp-stat strong { font-family: 'Space Grotesk', sans-serif; font-size: 20px; line-height: 1.1; }
.lp-stat span { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.lp-stat-sep { width: 1px; height: 28px; background: var(--border, #ddd); }
@media (max-width: 480px) {
  .lp-stats-strip { gap: 12px; padding: 14px 12px; }
  .lp-stat strong { font-size: 17px; }
}

.lp-quote-strip { margin: 34px auto 6px; max-width: 560px; min-height: 44px; }
.lp-quote-strip p {
  font-size: 13.5px; font-style: italic; color: var(--text-muted);
  transition: opacity 0.4s ease; opacity: 1; margin: 0;
}
.lp-quote-by { font-style: normal; font-weight: 600; opacity: 0.8; }

/* ---------- Boot Camp full-screen practice layout ---------- */
.bc-fullscreen-practice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: start;
  min-height: 70vh;
  width: 100%;
}
.bc-practice-main { width: 100%; min-width: 0; }
.bc-practice-main .card { max-width: 100%; width: 100%; box-sizing: border-box; }
.bc-q-card { max-width: 820px; }
.bc-q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 10px; flex-wrap: wrap; }
.bc-q-nav-right { display: flex; gap: 10px; flex-wrap: wrap; }
.bc-practice-topbar { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.bc-practice-sidebar {
  position: sticky; top: 16px;
  border-left: 1px solid var(--border, #eee);
  padding-left: 20px;
}
.bc-qn-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 4px;
}
.bc-qn-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border, #ddd);
  background: var(--surface-raised, #f7f7f7); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
}
.bc-qn-btn:hover { transform: translateY(-1px); }
.bc-qn-btn.bc-qn-current { background: #e11d48; color: #fff; border-color: #e11d48; }
.bc-qn-btn.bc-qn-answered { background: rgba(34,197,94,0.18); border-color: #22c55e; color: #16803c; }
.bc-qn-btn.bc-qn-unanswered { background: var(--surface-raised, #f7f7f7); }
.bc-qn-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 11px; color: var(--text-muted); }
.bc-qn-legend span { display: flex; align-items: center; gap: 6px; }
.bc-qn-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bc-qn-swatch.bc-qn-current { background: #e11d48; }
.bc-qn-swatch.bc-qn-answered { background: #22c55e; }
.bc-qn-swatch.bc-qn-unanswered { background: var(--surface-raised, #ddd); border: 1px solid var(--border, #ccc); }

/* DI image: always scales to fit its container, width AND height,
   regardless of the source image's raw pixel dimensions -- never clipped. */
.bc-di-img-wrap {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  border: 1px solid var(--border, #eee);
  border-radius: 8px;
  background: var(--surface-raised, #fafafa);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bc-di-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  cursor: zoom-in;
}
@media (max-width: 640px) {
  .bc-di-img-wrap { max-height: 260px; }
  .bc-di-img { max-height: 260px; }
}

/* Fit-to-screen zoomable lightbox for viewing the DI image full size */
.bc-img-lightbox-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.bc-img-lightbox-scroll {
  width: 100%; height: 100%;
  overflow: auto;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
.bc-img-lightbox-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  border-radius: 4px;
}
.bc-img-lightbox-img-zoomed {
  max-width: none; max-height: none;
  width: auto; height: auto;
  cursor: zoom-out;
}
.bc-img-lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  font-size: 28px; line-height: 1; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; z-index: 401;
}
.bc-img-lightbox-hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 12px; text-align: center; margin: 0;
}

@media (max-width: 820px) {
  .bc-fullscreen-practice { grid-template-columns: 1fr; }
  .bc-practice-sidebar { border-left: none; border-top: 1px solid var(--border, #eee); padding-left: 0; padding-top: 16px; }
  .bc-qn-grid { grid-template-columns: repeat(8, 1fr); max-height: 140px; }
}

/* ---------- Boot Camp monitoring warning toast ---------- */
.bc-warning-toast {
  position: fixed; bottom: 20px; top: auto; left: 50%; transform: translateX(-50%) translateY(20px);
  max-width: 90vw; width: 480px;
  background: #17130A; color: #fff;
  padding: 12px 18px; border-radius: 10px;
  font-size: 13px; line-height: 1.4; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}
.bc-warning-toast.bc-warning-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.bc-warning-toast.bc-warning-toast-violation { background: #e11d48; }

/* ---------- Boot Camp: blocking full-screen-exit modal ---------- */
.bc-fs-modal-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(15,15,20,0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.bc-fs-modal-card {
  background: var(--surface, #fff); color: var(--text, #17130A);
  max-width: 440px; width: 100%;
  border-radius: 14px; padding: 28px 26px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  border-top: 5px solid #e11d48;
}
.bc-fs-modal-title { font-size: 17px; font-weight: 700; margin: 0 0 12px; color: #e11d48; }
.bc-fs-modal-msg { font-size: 14px; line-height: 1.55; color: var(--text-muted, #555); margin: 0 0 22px; }
.bc-fs-modal-ok { min-width: 160px; }

/* ---------- Student dashboard: wide 2-pane layout (sidebar + main) ---------- */
.student-dash-layout {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  gap: 0;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
  min-height: calc(100vh - 65px);
  position: relative;
}
.student-dash-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--hairline) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 860px) {
  .student-dash-layout { grid-template-columns: 1fr !important; }
  .student-dash-layout .admin-main { grid-column: 1 / -1; }
}


/* ---------------- MASTER FORMULA HANDBOOK ---------------- */
.handbook-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.handbook-header .btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.handbook-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 860px) {
  .handbook-layout { grid-template-columns: 1fr; }
}
.handbook-index {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 10px;
}
.handbook-index-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  padding: 4px 8px 10px;
}
.handbook-index-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 13px;
  padding: 8px 8px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.3;
}
.handbook-index-item:hover { background: var(--surface-raised); }
.handbook-index-item.active { background: rgba(63,189,182,0.14); color: var(--teal); font-weight: 600; }
.handbook-index-num {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--text-muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.handbook-index-item.active .handbook-index-num { background: var(--teal); color: #06231f; }
.handbook-viewer {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scroll-behavior: smooth;
}
.handbook-page-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  scroll-margin-top: 12px;
}
.handbook-page-canvas {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* ---------------- Boot Camp Topic Sheets ---------------- */
.ts-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 420px; }
@media (max-width: 760px) { .ts-layout { grid-template-columns: 1fr; } }
.ts-index {
  border-right: 1px solid var(--hairline, #eee);
  padding: 10px;
  max-height: 560px;
  overflow-y: auto;
}
@media (max-width: 760px) { .ts-index { border-right: none; border-bottom: 1px solid var(--hairline,#eee); max-height: none; } }
.ts-index-item {
  display: flex; flex-direction: column; gap: 2px;
  width: 100%; text-align: left; background: transparent; border: none;
  color: var(--text); font-size: 12.5px; padding: 9px 10px; border-radius: 8px;
  cursor: pointer; line-height: 1.35; margin-bottom: 2px;
}
.ts-index-item:hover { background: var(--surface-raised); }
.ts-index-item.active { background: rgba(225,29,72,0.12); color: #e11d48; font-weight: 600; }
.ts-index-day { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.ts-index-item.active .ts-index-day { color: #e11d48; opacity: 0.8; }
.ts-content { padding: 16px 18px; }
.ts-content-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ts-content-header .btn { text-decoration: none; }
.ts-inline-viewer { max-height: 520px; overflow-y: auto; background: var(--ink); border-radius: 8px; padding: 12px; }
.ts-pdf-canvas { display: block; max-width: 100%; height: auto; margin: 0 auto 14px; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,0.25); }

.ts-fullview-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink); display: flex; flex-direction: column;
}
.ts-fullview-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; border-bottom: 1px solid var(--hairline, #333);
  background: var(--surface);
}
.ts-fullview-topbar .btn { text-decoration: none; }
.ts-fullview-body { flex: 1; overflow-y: auto; padding: 20px; }
.ts-fullview-body .ts-pdf-canvas { max-width: 900px; }

/* =====================================================================
   MOBILE PASS — student-facing pages only (student.html + index.html).
   Admin/Super Admin screens intentionally left untouched.
   ===================================================================== */

/* ---- Topbar: single line on narrow phones (no wrap, icon-only actions) ---- */
@media (max-width: 640px) {
  .topbar { flex-wrap: nowrap; padding: 10px 12px; gap: 6px; }
  .topbar > div:first-child { flex-wrap: nowrap; min-width: 0; }
  .topbar > div:first-child .brand { min-width: 0; overflow: hidden; }
  .topbar #btn-home-icon,
  .topbar > div:first-child > a.btn-icon { flex: 0 0 auto; padding: 8px; }
  .brand .mark { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .topbar > div:last-child { display: flex; flex-wrap: nowrap; gap: 4px; flex: 0 0 auto; }
  .topbar > div:last-child .btn-icon {
    padding: 8px; gap: 0; margin-right: 0 !important;
  }
  .topbar > div:last-child .btn-icon .btn-label { display: none; }
}
@media (max-width: 480px) {
  .topbar { padding: 10px 10px; gap: 6px; }
  .brand .tag { display: none; }
  .brand .mark { font-size: 15px; max-width: 34vw; }
  .brand-icon { width: 28px; height: 28px; }
  #btn-install-pwa { padding: 7px; }
}
/* Close the gap between the topbar and the mobile Menu button */
@media (max-width: 860px) {
  .mobile-nav-toggle { margin: 10px 16px 0; }
}
/* ---- Topic-card icon overlap fix (tall emoji glyphs like Number Systems' spilling into title) ---- */
@media (max-width: 780px) {
  .topic-card .icon { line-height: 1.3; margin-bottom: 10px; }
}

/* ---- Student sidebar -> slide-in drawer under 860px ---- */
.mobile-nav-toggle {
  display: none;
  align-items: center; gap: 8px;
  margin: 14px 16px 0;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  color: var(--text);
  font-weight: 600; font-size: 13.5px;
  cursor: pointer;
}
.mobile-nav-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.mobile-nav-backdrop-show { opacity: 1; pointer-events: auto; }

@media (max-width: 860px) {
  .mobile-nav-toggle { display: inline-flex; }
  .mobile-nav-backdrop { display: block; }

  .student-dash-layout { grid-template-columns: 1fr !important; padding: 0 !important; }
  .student-dash-layout .admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 95;
    width: 82vw; max-width: 300px;
    background: var(--surface);
    border-right: 1px solid var(--hairline);
    padding: 18px 16px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 0 0 30px rgba(0,0,0,0.35);
  }
  .student-dash-layout .admin-sidebar.mobile-nav-open { transform: translateX(0); }
  .student-dash-layout .admin-main { padding: 16px !important; }
}

/* ---- Boot Camp fullscreen practice: tighter padding + smaller jump-grid on phones ---- */
@media (max-width: 640px) {
  .bc-practice-mode .admin-main { padding: 14px !important; }
  .bc-q-card { padding: 16px !important; }
  .bc-qn-grid { grid-template-columns: repeat(6, 1fr); gap: 5px; max-height: 130px; }
  .bc-qn-btn { width: 100%; height: 32px; font-size: 11.5px; }
  .bc-q-nav { flex-direction: column; align-items: stretch; }
  .bc-q-nav-right { justify-content: stretch; }
  .bc-q-nav-right .btn, .bc-q-nav .btn { flex: 1; text-align: center; }
}

/* ---- Topic Sheets / Handbook: full-view overlay usable on phones ---- */
@media (max-width: 640px) {
  .ts-fullview-topbar, .handbook-header { flex-direction: column; align-items: stretch; gap: 8px; }
  .ts-fullview-topbar > div, .handbook-header > div { display: flex; gap: 8px; }
  .ts-fullview-body { padding: 10px; }
}

/* ---- General tap-target + readability polish on phones ---- */
@media (max-width: 480px) {
  .btn { padding: 10px 14px; font-size: 13.5px; }
  .card { padding: 16px; }
  h1, .hero-title { font-size: 24px !important; }
}

/* ---------------- Pre-quiz instructions gate ---------------- */
.qi-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  overflow-y: auto;
  padding: 32px 16px;
}
.qi-overlay.qi-visible { display: flex; align-items: flex-start; justify-content: center; }
.qi-card {
  max-width: 620px; width: 100%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 28px;
  margin: auto;
}
.qi-card h3 { margin: 0 0 18px; font-size: 20px; color: var(--text); }
.qi-groups { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.qi-group h4 { margin: 0 0 8px; font-size: 14px; color: var(--amber); text-transform: uppercase; letter-spacing: 0.04em; }
.qi-group ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.qi-group li { font-size: 14px; line-height: 1.5; color: var(--text); }
.qi-card #qi-start-btn { width: 100%; padding: 14px; font-size: 16px; }
.qi-card #qi-start-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Content Library (topic material + workbooks) ---------- */
.cl-content-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cl-content-card-title { font-weight: 700; font-size: 14px; color: var(--text); }
.cl-content-card-body { display: flex; flex-direction: column; gap: 8px; }
.cl-file-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--ink); border: 1px solid var(--hairline); border-radius: 8px;
  padding: 8px 10px;
}
.cl-file-label { font-size: 12.5px; color: var(--text); font-weight: 600; }
[data-theme="light"] .cl-file-row { background: var(--surface); }

.cl-preview-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.cl-preview-card {
  width: 100%; max-width: 980px; height: 88vh;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden;
}
.cl-preview-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--hairline);
}
.cl-preview-name { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-preview-frame { flex: 1; width: 100%; border: none; background: #fff; }
@media (max-width: 640px) {
  .cl-preview-card { height: 92vh; }
  .cl-preview-name { max-width: 140px; }
}

/* ---------- Placement News: scrollable box + card polish ---------- */
.news-scroll-box {
  position: relative;
  max-height: 70vh;
  overflow-y: auto;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  scrollbar-width: thin;
  scrollbar-color: var(--teal) transparent;
}
.news-scroll-box::-webkit-scrollbar { width: 8px; }
.news-scroll-box::-webkit-scrollbar-track { background: transparent; }
.news-scroll-box::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 8px;
  opacity: 0.5;
}
.news-scroll-box::-webkit-scrollbar-thumb:hover { background: var(--amber); }

/* Fade hints at top/bottom to signal there's more to scroll */
.news-scroll-wrap { position: relative; }
.news-scroll-wrap::before, .news-scroll-wrap::after {
  content: "";
  position: absolute;
  left: 1px; right: 1px;
  height: 22px;
  pointer-events: none;
  z-index: 2;
}
.news-scroll-wrap::before {
  top: 1px;
  background: linear-gradient(to bottom, var(--surface), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
}
.news-scroll-wrap::after {
  bottom: 1px;
  background: linear-gradient(to top, var(--surface), transparent);
  border-radius: 0 0 var(--radius) var(--radius);
}

.news-card {
  position: relative;
  display: block;
  padding: 14px 16px 14px 18px;
  margin: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.news-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}
.news-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
}
.news-card-title {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text);
}
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.news-card-source {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--amber-dim);
  color: var(--amber);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.02em;
}
[data-theme="light"] .news-card-source { color: #8a5a12; }

/* ---------- Buddy Peer Group ---------- */
.buddy-track-card:hover, .buddy-exam-card:hover, .buddy-idea-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  transition: all 0.15s ease;
}
#buddy-chat-messages, #buddy-roster { scrollbar-width: thin; }

/* ============================================================
   AI MOCK INTERVIEW (Soft Skills) — public/js/ai-interview.js
   ============================================================ */
.aiint-hero { background: linear-gradient(135deg, rgba(83,74,183,.14), rgba(63,189,182,.10)); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px 24px; margin-bottom: 20px; }
.aiint-shell { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.aiint-q-badge { display: inline-block; padding: 3px 11px; border-radius: 14px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 10px; }
.aiint-badge-hr { background: rgba(63,189,182,.16); color: var(--teal); border: 1px solid rgba(63,189,182,.35); }
.aiint-badge-technical { background: rgba(83,74,183,.16); color: #9d95ff; border: 1px solid rgba(83,74,183,.35); }
.aiint-badge-personal { background: rgba(232,163,61,.16); color: var(--amber); border: 1px solid rgba(232,163,61,.35); }
.aiint-badge-situational { background: rgba(226,88,107,.14); color: var(--red); border: 1px solid rgba(226,88,107,.35); }
.aiint-q-counter { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.aiint-q-text { font-size: 18px; font-weight: 600; line-height: 1.5; margin-bottom: 4px; }

.aiint-countdown-wrap { text-align: center; padding: 50px 20px; }
.aiint-countdown-num { font-family: 'IBM Plex Mono', monospace; font-size: 64px; font-weight: 700; color: var(--teal); line-height: 1; margin: 18px 0; }

.aiint-timer-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.aiint-timer-badge { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 14px; background: var(--surface-raised); color: var(--text-muted); }
.aiint-timer-badge.warn { background: rgba(232,163,61,.18); color: var(--amber); }
.aiint-timer-badge.danger { background: rgba(226,88,107,.18); color: var(--red); animation: aiintPulse 1s infinite; }
@keyframes aiintPulse { 0%,100%{opacity:1} 50%{opacity:.55} }
.aiint-timer-track { flex: 1; height: 5px; border-radius: 3px; background: var(--hairline); overflow: hidden; }
.aiint-timer-fill { height: 100%; border-radius: 3px; background: var(--teal); transition: width 1s linear, background .3s; }

.aiint-mic-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.aiint-mic-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--hairline); flex-shrink: 0; }
.aiint-mic-dot.live { background: var(--red); box-shadow: 0 0 0 0 rgba(226,88,107,.6); animation: aiintMicPulse 1.4s infinite; }
@keyframes aiintMicPulse { 0%{box-shadow:0 0 0 0 rgba(226,88,107,.5)} 70%{box-shadow:0 0 0 10px rgba(226,88,107,0)} 100%{box-shadow:0 0 0 0 rgba(226,88,107,0)} }
.aiint-mic-status { font-size: 13px; color: var(--text-muted); }

.aiint-transcript-box { min-height: 90px; max-height: 220px; overflow-y: auto; background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: 8px; padding: 12px 14px; font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
.aiint-filler-word { background: rgba(232,163,61,.25); color: var(--amber); border-radius: 3px; padding: 0 2px; }
.aiint-interim { opacity: .55; font-style: italic; }

.aiint-meter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.aiint-meter-chip { font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 14px; background: var(--surface-raised); border: 1px solid var(--hairline); color: var(--text-muted); }
.aiint-meter-chip.good { color: var(--green); border-color: rgba(89,194,124,.35); background: rgba(89,194,124,.12); }
.aiint-meter-chip.warn { color: var(--amber); border-color: rgba(232,163,61,.35); background: rgba(232,163,61,.12); }
.aiint-meter-chip.bad { color: var(--red); border-color: rgba(226,88,107,.35); background: rgba(226,88,107,.12); }

.aiint-conf-track { height: 8px; border-radius: 5px; background: var(--hairline); overflow: hidden; margin-top: 4px; }
.aiint-conf-fill { height: 100%; border-radius: 5px; transition: width .4s ease, background .4s ease; }

.aiint-progress-dots { display: flex; gap: 5px; margin-bottom: 16px; }
.aiint-dot { flex: 1; height: 4px; border-radius: 2px; background: var(--hairline); }
.aiint-dot.done { background: var(--teal); }
.aiint-dot.active { background: var(--amber); }

.aiint-tier-badge { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.aiint-tier-Weak { background: rgba(226,88,107,.16); color: var(--red); }
.aiint-tier-Average { background: rgba(232,163,61,.16); color: var(--amber); }
.aiint-tier-Good { background: rgba(63,189,182,.16); color: var(--teal); }
.aiint-tier-Best { background: rgba(89,194,124,.16); color: var(--green); }

.aiint-report-q { border-left: 3px solid var(--hairline); padding: 4px 0 4px 14px; margin-bottom: 18px; }
.aiint-score-pill { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 13px; padding: 2px 9px; border-radius: 12px; }

/* ---------------- Continue Practice card (dashboard) ---------------- */
.continue-practice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, var(--amber), var(--teal)) border-box;
  border: 1px solid transparent;
  overflow: hidden;
  flex-wrap: wrap;
}
.continue-practice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(232,163,61,.10), rgba(63,189,182,.10));
  pointer-events: none;
}
.cpc-icon {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, var(--amber), var(--teal));
  box-shadow: 0 4px 14px rgba(63,189,182,.25);
}
.cpc-body { position: relative; flex: 1; min-width: 180px; }
.cpc-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 3px;
}
.cpc-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 rgba(232,163,61,.6);
  animation: cpc-pulse 1.8s infinite;
}
@keyframes cpc-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232,163,61,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(232,163,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,163,61,0); }
}
.cpc-topic {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
}
.cpc-progress-row { display: flex; align-items: center; gap: 10px; }
.cpc-track {
  flex: 1;
  max-width: 220px;
  height: 6px;
  border-radius: 4px;
  background: var(--hairline);
  overflow: hidden;
}
.cpc-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  transition: width .5s ease;
}
.cpc-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.cpc-btn {
  position: relative;
  flex-shrink: 0;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 13px;
  color: #12181F;
  background: linear-gradient(120deg, var(--amber), var(--teal));
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 14px rgba(63,189,182,.25);
}
.cpc-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(63,189,182,.35); }
.cpc-btn:active { transform: translateY(0); }
.cpc-btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ---------------- AI Interview: topbar controls ---------------- */
.aiint-topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.aiint-topbar .aiint-progress-dots { flex: 1; margin-bottom: 0; }
.aiint-topbar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.aiint-icon-btn {
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--hairline); background: var(--surface-raised); color: var(--text-muted);
  cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.aiint-icon-btn:hover { border-color: var(--teal); color: var(--teal); }
.aiint-icon-btn-danger:hover { border-color: var(--red); color: var(--red); }

/* ---------------- AI Interview: customize filter chips ---------------- */
.aiint-filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.aiint-filter-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 7px 13px; border-radius: 20px; border: 1px solid var(--hairline);
  background: var(--surface-raised); color: var(--text-muted); cursor: pointer;
  transition: all .15s ease; user-select: none;
}
.aiint-filter-chip input { accent-color: var(--teal); }
.aiint-filter-chip:has(input:checked) { border-color: var(--teal); color: var(--teal); background: rgba(63,189,182,.10); }
.aiint-filter-chip-easy:has(input:checked) { border-color: var(--green); color: var(--green); background: rgba(89,194,124,.10); }
.aiint-filter-chip-medium:has(input:checked) { border-color: var(--amber); color: var(--amber); background: rgba(232,163,61,.10); }
.aiint-filter-chip-hard:has(input:checked) { border-color: var(--red); color: var(--red); background: rgba(226,88,107,.10); }

.aiint-level-badge-easy { background: rgba(89,194,124,.16); color: var(--green); border: 1px solid rgba(89,194,124,.35); margin-left: 6px; }
.aiint-level-badge-medium { background: rgba(232,163,61,.16); color: var(--amber); border: 1px solid rgba(232,163,61,.35); margin-left: 6px; }
.aiint-level-badge-hard { background: rgba(226,88,107,.16); color: var(--red); border: 1px solid rgba(226,88,107,.35); margin-left: 6px; }

/* ---------------- AI Interview: circular gauge (resume %, live confidence) ---------------- */
.aiint-gauge {
  --pct: 0;
  position: relative;
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--teal) calc(var(--pct) * 1%), var(--hairline) 0);
  display: flex; align-items: center; justify-content: center;
  transition: background .5s ease;
}
.aiint-gauge::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface);
}
.aiint-gauge-inner {
  position: relative; font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 15px; color: var(--text);
}
.aiint-gauge-sm { width: 54px; height: 54px; }
.aiint-gauge-sm .aiint-gauge-inner { font-size: 12px; }

/* ---------------- AI Interview: resume card ---------------- */
.aiint-resume-card { max-width: 560px; border-color: var(--amber); }
.aiint-resume-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.aiint-resume-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.aiint-resume-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 3px; }
.aiint-resume-sub { font-size: 13px; color: var(--text-muted); }
.aiint-resume-meta { margin-top: 12px; font-size: 12px; color: var(--text-muted); }

/* ---------------- Leaderboard: scope cards, badges ---------------- */
.lb-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.lb-scope-card { padding: 16px; }
.lb-scope-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.lb-scope-card-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lb-scope-card-rank { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; color: var(--teal); background: rgba(63,189,182,.10); padding: 3px 9px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
/* Chart.js with maintainAspectRatio:false fills whatever height its
   parent gives it -- without an explicit, fixed-height parent, the
   canvas has nothing to bound it and can render enormously tall (an
   empty-looking, huge blank card) instead of the compact chart it's
   meant to be. This wrapper is that fixed-height parent. */
.lb-chart-wrap { position: relative; height: 160px; width: 100%; }
.lb-chart-wrap canvas { max-width: 100%; }

.lb-badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.lb-badge {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: 10px; border: 1px solid var(--hairline);
  background: var(--surface-raised); opacity: .55; text-align: center;
}
.lb-badge-won {
  opacity: 1; border-color: var(--amber);
  background: linear-gradient(160deg, rgba(232,163,61,.14), rgba(63,189,182,.08));
  box-shadow: 0 3px 12px rgba(232,163,61,.15);
}
.lb-badge-icon { font-size: 22px; }
.lb-badge-label { font-size: 11px; font-weight: 600; color: var(--text-muted); line-height: 1.3; }
.lb-badge-won .lb-badge-label { color: var(--text); }


/* ---------- Side menu toggle + Examinations full-page mode ---------- */
body.side-hidden .admin-layout,
body.exam-focus .admin-layout { grid-template-columns: minmax(0, 1fr) !important; }
body.side-hidden .admin-sidebar,
body.exam-focus .admin-sidebar { display: none; }
body.exam-focus.side-overlay-open .admin-sidebar {
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 260px;
  z-index: 60;
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--hairline);
  box-shadow: 6px 0 24px rgba(0,0,0,0.35);
}


/* Student Performance Ledger: edge-to-edge, menu hidden (same full-page mode as Examinations) */
body.ledger-mode .admin-main { padding: 0 !important; max-width: 100% !important; }

/* ---------- Exam Results: on-screen marks table with conditional formatting ---------- */
.erm-summary{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.erm-stat{border:1px solid var(--hairline);background:var(--surface-raised);border-radius:10px;padding:8px 14px;font-size:12px;color:var(--text-muted)}
.erm-stat b{display:block;font-size:17px;color:var(--text)}
.erm-legend{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.erm-chip{font-size:12px;padding:4px 10px;border-radius:999px;border:1px solid var(--hairline);color:var(--text)}
.erm-wrap{overflow:auto;max-height:62vh;border:1px solid var(--hairline);border-radius:10px}
table.erm-table{width:100%;border-collapse:collapse;font-size:13px;margin:0}
table.erm-table th{position:sticky;top:0;z-index:2;background:var(--surface);cursor:pointer;white-space:nowrap;user-select:none}
table.erm-table th:hover{color:var(--teal)}
table.erm-table td{white-space:nowrap}
table.erm-table td.erm-c{text-align:center;font-weight:600}
.erm-b5{background:rgba(34,197,94,.38)}
.erm-b4{background:rgba(132,204,22,.32)}
.erm-b3{background:rgba(250,204,21,.30)}
.erm-b2{background:rgba(249,115,22,.32)}
.erm-b1{background:rgba(239,68,68,.36)}
.erm-b0{color:var(--text-muted)}

/* Long brand name (LMS rename): keep topbar tidy on small screens */
.brand .mark { line-height: 1.2; }
@media (max-width: 720px) {
  .brand .mark { font-size: 14px; }
  .brand .tag { display: none; }
}

/* ---------------- Terms & Conditions ---------------- */
label.terms-check { display:flex; flex-direction:row; align-items:flex-start; gap:12px; width:100%; box-sizing:border-box; margin:16px 0 8px; padding:12px 14px; background:var(--ink); border:1px solid var(--hairline); border-radius:10px; font-size:13px; line-height:1.55; color:var(--text); text-transform:none; letter-spacing:0; cursor:pointer; }
label.terms-check input[type=checkbox] { flex:0 0 18px; width:18px; min-width:18px; height:18px; margin:2px 0 0; padding:0; accent-color:var(--amber); cursor:pointer; }
label.terms-check > span { flex:1 1 auto; min-width:0; text-transform:none; letter-spacing:0; word-break:normal; overflow-wrap:break-word; }
.terms-link { display:inline; color:var(--amber); background:none; border:none; padding:0; margin:0; font:inherit; font-weight:600; text-transform:none; letter-spacing:0; text-decoration:underline; cursor:pointer; white-space:normal; text-align:left; }
.terms-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.65); z-index:2147483100; align-items:center; justify-content:center; padding:16px; }
.terms-modal { background:var(--surface); color:var(--text); border:1px solid var(--hairline); border-radius:var(--radius); width:100%; max-width:680px; max-height:88vh; display:flex; flex-direction:column; box-shadow:0 20px 60px rgba(0,0,0,0.5); }
.terms-head { display:flex; justify-content:space-between; align-items:flex-start; padding:16px 20px; border-bottom:1px solid var(--hairline); }
.terms-head h3 { margin:0; font-size:18px; }
.terms-ver { font-size:12px; color:var(--text-muted); }
.terms-x { background:none; border:none; color:var(--text-muted); font-size:26px; line-height:1; cursor:pointer; }
.terms-body { padding:16px 20px; overflow-y:auto; font-size:13px; line-height:1.6; }
.terms-body h4 { margin:18px 0 8px; font-size:15px; color:var(--amber); }
.terms-body h5 { margin:14px 0 4px; font-size:13.5px; }
.terms-body ul { margin:0 0 4px 18px; padding:0; }
.terms-body li { margin-bottom:4px; color:var(--text-muted); }
.terms-body li strong, .terms-intro strong { color:var(--text); }
.terms-foot { padding:12px 20px; border-top:1px solid var(--hairline); display:flex; justify-content:flex-end; }
.terms-gate-foot { flex-direction:column; align-items:stretch; }
.terms-gate-btns { display:flex; justify-content:flex-end; gap:10px; margin-top:10px; }
button[type=submit]:disabled, .btn:disabled { opacity:0.5; cursor:not-allowed; }

/* ================= Student home v2 (phone-first) ================= */
#stab-home { max-width: 100%; overflow-x: hidden; }
.home-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 18px; margin-bottom: 14px; border-radius: 16px;
  border: 1px solid var(--hairline);
  background: linear-gradient(135deg, rgba(232,163,61,.14), rgba(63,189,182,.08) 60%, transparent);
}
.home-hero-text { min-width: 0; flex: 1; }
.home-hero-hi { font-size: 12px; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
.home-hero-name { font-size: 26px; font-weight: 800; line-height: 1.15; margin: 2px 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.home-chip { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--text-muted); background: rgba(255,255,255,.03); }
.home-chip.hot { color: #ffb257; border-color: rgba(255,178,87,.5); background: rgba(255,178,87,.1); font-weight: 700; }
.home-ring { position: relative; width: 84px; height: 84px; flex-shrink: 0; padding: 0; border: 0; background: none; cursor: pointer; color: var(--text); }
.home-ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; pointer-events: none; }
.home-ring-num b { font-size: 21px; }
.home-ring-num small { font-size: 10px; color: var(--text-muted); }

.home-section-title { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin: 6px 2px 8px; font-weight: 700; }

.home-news-banner {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  padding: 10px 12px; margin-bottom: 14px; border-radius: 12px; color: var(--text); font: inherit;
  border: 1px solid rgba(63,189,182,.45); background: rgba(63,189,182,.08);
}
.home-news-badge { font-size: 12px; font-weight: 700; color: var(--teal); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.home-news-text { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-news-cta { font-size: 12px; color: var(--teal); white-space: nowrap; }
.home-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; margin-right: 6px; vertical-align: middle; }
.home-news-badge .home-dot { margin-right: 0; }

.home-today-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.home-today-grid > div:empty { display: none; }
.home-today-grid .card { margin-bottom: 0 !important; height: 100%; }
.home-step { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.home-step-eyebrow { font-size: 12px; color: var(--teal); text-transform: uppercase; letter-spacing: .05em; }
.home-step-title { font-size: 15px; font-weight: 700; }
.home-step-sub { font-size: 12.5px; color: var(--text-muted); margin-bottom: 4px; }

.home-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.home-tile {
  display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; font: inherit; color: var(--text);
  padding: 14px 12px; border-radius: 14px; border: 1px solid var(--hairline); border-left: 4px solid var(--tc, var(--amber));
  background: linear-gradient(135deg, color-mix(in srgb, var(--tc, #e8a33d) 14%, transparent), transparent);
}
.home-tile:active { transform: scale(.98); }
.home-tile-ico { font-size: 24px; }
.home-tile-txt { display: flex; flex-direction: column; min-width: 0; }
.home-tile-txt b { font-size: 14px; }
.home-tile-txt small { font-size: 11.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.home-tip { padding: 14px 16px; margin-bottom: 16px; border-radius: 14px; border: 1px dashed rgba(232,163,61,.5); background: rgba(232,163,61,.06); }
.home-tip-eyebrow { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.home-tip-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.home-tip-body { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.home-news-item { display: block; width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; border: 1px solid var(--hairline); background: rgba(255,255,255,.02); }
.home-news-item-title { font-size: 13.5px; font-weight: 700; }
.home-news-item-sum { font-size: 12.5px; color: var(--text-muted); margin: 4px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-news-item-meta { font-size: 11.5px; color: var(--text-muted); }

.home-modal-backdrop { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.6); padding: 12px; }
.home-modal { width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto; padding: 18px; border-radius: 16px; border: 1px solid var(--hairline); background: var(--surface, #111827); }
.home-modal-meta { font-size: 12px; color: var(--teal); margin-bottom: 6px; }
.home-modal-title { font-size: 18px; line-height: 1.3; margin: 0 0 10px; }
.home-modal-body { font-size: 14px; line-height: 1.6; color: var(--text); margin-bottom: 16px; white-space: pre-wrap; }
.home-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.lb-refresh-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.lb-updated-note { font-size: 12px; color: var(--text-muted); flex: 1; min-width: 200px; }

/* the avatar circle is no longer shown in the student sidebar */
#student-mini-profile .mini-profile-avatar { display: none; }

@media (min-width: 700px) {
  .home-tiles { grid-template-columns: repeat(4, 1fr); }
  .home-modal-backdrop { align-items: center; }
  .home-hero-name { font-size: 30px; }
}
@media (max-width: 420px) {
  .home-hero { padding: 14px; }
  .home-hero-name { font-size: 22px; }
  .home-ring, .home-ring svg { width: 72px; height: 72px; }
  .home-ring-num b { font-size: 18px; }
}

/* student name / roll number / class details are always shown in CAPITALS */
.mini-profile-name, .mini-profile-meta, .mini-profile-uni, .home-hero-name,
#profile-name, #profile-roll, #edit-profile-name, #edit-profile-roll { text-transform: uppercase; }

/* several news rows under the notice board */
#home-news-banner .home-news-banner { margin-bottom: 8px; }
#home-news-banner { margin-bottom: 8px; }

/* ============================================================
   AI MOCK INTERVIEW v2  (aii2-*)
   ============================================================ */
.aii2-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; background: linear-gradient(135deg, rgba(83,74,183,.18), rgba(63,189,182,.10)); border:1px solid var(--hairline); border-radius:var(--radius); padding:22px 24px; margin-bottom:16px; overflow:hidden; }
.aii2-hero h2 { margin:0 0 6px; }
.aii2-hero p { margin:0; color:var(--text-muted); font-size:14px; max-width:520px; }
.aii2-hero-ecg, .aii2-analyze-ecg { width:200px; height:50px; }
.aii2-hero-ecg path, .aii2-analyze-ecg path { fill:none; stroke:var(--teal); stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:420; stroke-dashoffset:420; animation:aii2-draw 2.6s linear infinite; filter:drop-shadow(0 0 4px var(--teal)); }
@keyframes aii2-draw { to { stroke-dashoffset:-420; } }

.aii2-card { margin-bottom:16px; }
.aii2-step { display:flex; align-items:center; gap:10px; font-weight:700; font-size:15px; margin-bottom:14px; }
.aii2-step span { width:24px; height:24px; border-radius:50%; background:var(--teal); color:#06201f; display:inline-flex; align-items:center; justify-content:center; font-size:13px; }
.aii2-h { font-size:14px; margin:0 0 4px; }
.aii2-sub { font-size:12px; color:var(--text-muted); margin:0 0 10px; }

.aii2-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:10px; }
.aii2-stats div { background:var(--surface-raised); border-radius:10px; padding:10px; text-align:center; }
.aii2-stats b { display:block; font-size:20px; }
.aii2-stats span { font-size:11px; color:var(--text-muted); }

/* resume */
.aii2-resume { display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:12px; background:var(--surface-raised); border:1px solid var(--hairline); }
.aii2-resume.ok { border-color:rgba(89,194,124,.45); background:rgba(89,194,124,.08); }
.aii2-resume.warn { border-color:rgba(232,163,61,.45); background:rgba(232,163,61,.08); }
.aii2-r-ico { font-size:22px; }
.aii2-r-body { flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; }
.aii2-r-body b { font-size:14px; }
.aii2-r-body span { font-size:12px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; }
.aii2-r-note { font-size:12px; color:var(--text-muted); margin:8px 2px 0; }
.aii2-r-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.aii2-upload-btn { cursor:pointer; display:inline-flex; align-items:center; }
.aii2-link { display:inline-block; margin-top:8px; font-size:12px; color:var(--teal); cursor:pointer; text-decoration:underline; }
.aii2-err { color:var(--red); font-size:12px; margin:8px 0 0; }
.aii2-switch { position:relative; width:46px; height:26px; flex:none; cursor:pointer; }
.aii2-switch input { opacity:0; width:0; height:0; position:absolute; }
.aii2-switch i { position:absolute; inset:0; background:var(--hairline); border-radius:20px; transition:.2s; }
.aii2-switch i::after { content:""; position:absolute; width:20px; height:20px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; }
.aii2-switch input:checked + i { background:var(--teal); }
.aii2-switch input:checked + i::after { transform:translateX(20px); }

/* mode cards */
.aii2-modes { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.aii2-mode { display:flex; flex-direction:column; align-items:flex-start; gap:4px; text-align:left; padding:14px; border-radius:12px; background:var(--surface-raised); border:1.5px solid var(--hairline); color:var(--text); cursor:pointer; transition:.15s; font-family:inherit; }
.aii2-mode:hover:not(.disabled) { border-color:var(--teal); transform:translateY(-1px); }
.aii2-mode.active { border-color:var(--teal); background:rgba(63,189,182,.12); box-shadow:0 0 0 3px rgba(63,189,182,.12); }
.aii2-mode.disabled { opacity:.45; cursor:not-allowed; }
.aii2-mode-ico { font-size:22px; }
.aii2-mode-title { font-weight:700; font-size:14px; }
.aii2-mode-sub { font-size:11px; color:var(--text-muted); }
.aii2-opts { margin-top:14px; font-size:13px; color:var(--text-muted); }
.aii2-opts p { margin:0 0 10px; }
.aii2-chiplabel { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; margin:10px 0 6px; }
.aii2-co { padding:6px 13px; border-radius:18px; border:1.5px solid var(--hairline); background:transparent; color:var(--text); font-size:12px; font-weight:600; cursor:pointer; font-family:inherit; }
.aii2-co.active { border-color:var(--teal); background:rgba(63,189,182,.14); color:var(--teal); }
.aii2-co-input { margin-top:10px; width:100%; max-width:260px; padding:8px 12px; border-radius:10px; border:1.5px solid var(--hairline); background:var(--surface-raised); color:var(--text); font-family:inherit; font-size:13px; }
.aii2-weaklist { margin:0; padding-left:18px; line-height:1.7; }
.aii2-summary { font-size:14px; padding:12px 14px; border-radius:10px; background:var(--surface-raised); margin-bottom:12px; }
.aii2-summary span { color:var(--text-muted); }
.aii2-tips { font-size:13px; color:var(--text-muted); line-height:1.9; padding-left:18px; margin:0 0 16px; }

/* prep / analysing */
.aii2-prep { max-width:480px; text-align:center; padding:40px 24px; margin:0 auto; }
.aii2-prep h3 { margin:14px 0 6px; } .aii2-prep p { color:var(--text-muted); font-size:13px; margin:0; }
.aii2-orb.big { width:74px; height:74px; margin:0 auto; position:relative; display:flex; align-items:center; justify-content:center; font-size:30px; }
.aii2-orb.big i { position:absolute; inset:0; border-radius:50%; border:2px solid var(--teal); animation:aii2-pulse 1.6s ease-out infinite; }
.aii2-orb.big b { font-weight:400; }
@keyframes aii2-pulse { from { transform:scale(.7); opacity:.9; } to { transform:scale(1.5); opacity:0; } }

/* topbar */
.aii2-topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.aii2-segs { display:flex; gap:5px; flex:1; min-width:140px; }
.aii2-seg { height:6px; flex:1; border-radius:4px; background:var(--hairline); max-width:46px; }
.aii2-seg.done { background:var(--teal); } .aii2-seg.active { background:var(--amber); }
.aii2-top-actions { display:flex; gap:8px; }
.aii2-notice { font-size:12px; padding:10px 14px; border-radius:10px; background:rgba(232,163,61,.10); border:1px solid rgba(232,163,61,.35); margin-bottom:12px; }

/* studio */
.aii2-studio { display:grid; grid-template-columns:minmax(260px,.85fr) 1.4fr; gap:16px; align-items:start; }
.aii2-left { display:flex; flex-direction:column; gap:14px; }
.aii2-interviewer { background:var(--surface); border:1px solid var(--hairline); border-radius:var(--radius); padding:20px 16px; display:flex; flex-direction:column; align-items:center; gap:8px; }
.aii2-avatar { --hue:#3FBDB6; position:relative; width:96px; height:96px; display:flex; align-items:center; justify-content:center; }
.aii2-avatar .orb { position:relative; z-index:2; width:76px; height:76px; border-radius:50%; background:radial-gradient(circle at 35% 30%, #fff3, transparent 55%), var(--hue); display:flex; align-items:center; justify-content:center; font-size:32px; font-weight:800; color:#0b1220; box-shadow:0 6px 22px -6px var(--hue); }
.aii2-avatar .ring { position:absolute; inset:8px; border-radius:50%; border:2px solid var(--hue); opacity:0; }
.aii2-avatar.speaking .ring { animation:aii2-pulse 1.8s ease-out infinite; }
.aii2-avatar.speaking .r2 { animation-delay:.6s; } .aii2-avatar.speaking .r3 { animation-delay:1.2s; }
.aii2-avatar.listening .ring { animation:aii2-pulse 2.8s ease-out infinite; border-style:dashed; }
.aii2-avatar.listening .r2 { animation-delay:.9s; } .aii2-avatar.listening .r3 { animation-delay:1.8s; }
.aii2-persona { text-align:center; display:flex; flex-direction:column; }
.aii2-persona b { font-size:15px; } .aii2-persona span { font-size:12px; color:var(--text-muted); }
.aii2-eq { display:flex; align-items:flex-end; gap:3px; height:18px; opacity:.25; }
.aii2-eq i { width:4px; height:5px; background:var(--amber); border-radius:2px; }
.aii2-eq.on { opacity:1; }
.aii2-eq.on i { animation:aii2-eq .7s ease-in-out infinite; }
.aii2-eq.on i:nth-child(2){animation-delay:.1s}.aii2-eq.on i:nth-child(3){animation-delay:.2s}.aii2-eq.on i:nth-child(4){animation-delay:.3s}.aii2-eq.on i:nth-child(5){animation-delay:.4s}
@keyframes aii2-eq { 0%,100%{height:4px} 50%{height:18px} }
.aii2-status { font-size:12px; color:var(--text-muted); min-height:16px; }

.aii2-qcard { background:var(--surface); border:1px solid var(--hairline); border-radius:var(--radius); padding:18px; }
.aii2-qmeta { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); margin-bottom:8px; }
.aii2-tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:6px; }
.aii2-tags .aiint-q-badge { margin-bottom:0; }
.aii2-tag { display:inline-block; padding:3px 10px; border-radius:14px; font-size:11px; font-weight:700; }
.aii2-tag.resume { background:rgba(89,194,124,.16); color:var(--green); border:1px solid rgba(89,194,124,.35); }
.aii2-tag.fu { background:rgba(232,163,61,.16); color:var(--amber); border:1px solid rgba(232,163,61,.35); }
.aii2-tag.co { background:rgba(83,74,183,.18); color:#9d95ff; border:1px solid rgba(83,74,183,.4); }
.aii2-qtext { font-size:18px; line-height:1.5; font-weight:600; }

/* recording panel */
.aii2-rec { background:var(--surface); border:1px solid var(--hairline); border-radius:var(--radius); padding:16px; transition:border-color .2s, box-shadow .2s; }
.aii2-rec:not(.dim) { border-color:rgba(226,88,107,.55); box-shadow:0 0 0 3px rgba(226,88,107,.08); }
.aii2-rec-head { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.aii2-rec-tag { display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:800; letter-spacing:.08em; padding:4px 11px; border-radius:14px; background:var(--surface-raised); color:var(--text-muted); }
.aii2-rec-dot { width:9px; height:9px; border-radius:50%; background:var(--text-muted); }
.aii2-rec:not(.dim) .aii2-rec-tag { background:rgba(226,88,107,.14); color:var(--red); }
.aii2-rec:not(.dim) .aii2-rec-tag:not(.paused) .aii2-rec-dot { background:var(--red); animation:aii2-blink 1s steps(2,jump-none) infinite; }
@keyframes aii2-blink { 0%{opacity:1} 100%{opacity:.15} }
.aii2-clock { font-family:var(--mono, ui-monospace, monospace); font-size:15px; font-weight:700; }
.aii2-timeleft { margin-left:auto; font-size:12px; color:var(--text-muted); }
.aii2-ecg-wrap { position:relative; height:120px; border-radius:12px; overflow:hidden; background:#07121a; border:1px solid rgba(63,189,182,.25);
  background-image:linear-gradient(rgba(63,189,182,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(63,189,182,.10) 1px, transparent 1px); background-size:24px 24px; margin-bottom:10px; }
[data-theme="light"] .aii2-ecg-wrap { background-color:#0c1b24; }
.aii2-ecg-wrap canvas { width:100%; height:100%; display:block; }
.aii2-banner { position:absolute; inset:0; display:none; align-items:center; justify-content:center; gap:14px; background:rgba(7,18,26,.72); color:#e9eef5; font-size:14px; font-weight:600; backdrop-filter:blur(2px); }
.aii2-banner.show { display:flex; }
.aii2-banner button { background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.25); border-radius:14px; padding:4px 12px; font-size:12px; cursor:pointer; font-family:inherit; }
.aii2-count { font-size:44px; font-weight:800; color:var(--amber); line-height:1; }
.aii2-rec .aiint-transcript-box { margin:12px 0; max-height:120px; overflow:auto; }

/* needle gauges */
.aii2-gauges { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin:6px 0 2px; }
.aii2-gauge { text-align:center; }
.aii2-gauge svg { width:100%; max-width:150px; height:auto; display:block; margin:0 auto; overflow:visible; }
.aii2-g-track { fill:none; stroke:var(--hairline); stroke-width:9; stroke-linecap:round; }
.aii2-g-arc { fill:none; stroke-width:9; opacity:.9; }
.aii2-g-needle { transform-origin:60px 62px; transform-box:view-box; transition:transform .7s cubic-bezier(.25,1.5,.5,1); }
.aii2-g-needle line { stroke:var(--text); stroke-width:2.6; stroke-linecap:round; }
.aii2-g-hub { fill:var(--text); }
.aii2-g-val { font-size:17px; font-weight:800; margin-top:-2px; }
.aii2-g-label { font-size:11px; color:var(--text-muted); }
.aii2-mini { text-align:center; font-size:12px; color:var(--text-muted); margin:6px 0 12px; }

/* follow-up thinking */
.aii2-thinking { max-width:420px; margin:40px auto; text-align:center; }
.aii2-thinking .aii2-avatar { margin:0 auto 12px; }
.aii2-thinking p { color:var(--text-muted); font-size:13px; margin:0 0 12px; }
.aii2-dots { display:flex; gap:7px; justify-content:center; }
.aii2-dots i { width:9px; height:9px; border-radius:50%; background:var(--teal); animation:aii2-bounce 1s ease-in-out infinite; }
.aii2-dots i:nth-child(2){animation-delay:.15s}.aii2-dots i:nth-child(3){animation-delay:.3s}
@keyframes aii2-bounce { 0%,100%{transform:translateY(0);opacity:.4} 50%{transform:translateY(-7px);opacity:1} }

/* report */
.aii2-report-hero { display:flex; align-items:center; gap:24px; flex-wrap:wrap; background:linear-gradient(135deg, rgba(83,74,183,.16), rgba(63,189,182,.10)); border:1px solid var(--hairline); border-radius:var(--radius); padding:22px 24px; margin-bottom:16px; }
.aii2-scorering { position:relative; width:140px; height:140px; flex:none; }
.aii2-scorering svg { width:100%; height:100%; transform:rotate(-90deg); }
.aii2-scorering circle { fill:none; stroke-width:9; }
.aii2-scorering .bg { stroke:var(--hairline); }
.aii2-scorering .fg { stroke-linecap:round; transition:stroke-dasharray 1.2s cubic-bezier(.2,.8,.2,1); }
.aii2-scorering .fg.ready { stroke:var(--green); } .aii2-scorering .fg.almost { stroke:var(--amber); } .aii2-scorering .fg.needs { stroke:var(--red); }
.aii2-scorering .num { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:2px; }
.aii2-scorering .num b { font-size:38px; } .aii2-scorering .num span { font-size:13px; color:var(--text-muted); margin-top:12px; }
.aii2-report-meta { flex:1; min-width:220px; display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.aii2-report-meta p { margin:0; font-size:14px; color:var(--text-muted); }
.aii2-ready { font-weight:800; font-size:15px; }
.aii2-ready.ready { color:var(--green); } .aii2-ready.almost { color:var(--amber); } .aii2-ready.needs { color:var(--red); }
.aii2-delta { font-size:12px; font-weight:700; padding:3px 10px; border-radius:12px; }
.aii2-delta.up { background:rgba(89,194,124,.16); color:var(--green); } .aii2-delta.down { background:rgba(226,88,107,.14); color:var(--red); }
.aii2-gauges.report { max-width:520px; margin:0 auto; }
.aii2-bar { display:flex; align-items:center; gap:10px; margin:9px 0; font-size:13px; }
.aii2-bar span { width:68px; } .aii2-bar b { width:40px; text-align:right; }
.aii2-bar .track { flex:1; height:9px; background:var(--hairline); border-radius:6px; overflow:hidden; }
.aii2-bar .fill { height:100%; width:0; border-radius:6px; transition:width 1s ease; }
.aii2-bar .fill.g { background:var(--green); } .aii2-bar .fill.a { background:var(--amber); } .aii2-bar .fill.r { background:var(--red); }
.aii2-qchips { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.aii2-star-row { display:inline-flex; gap:4px; margin-right:4px; }
.aii2-star { width:22px; height:22px; border-radius:6px; display:inline-flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; background:var(--surface-raised); color:var(--text-muted); border:1px solid var(--hairline); }
.aii2-star.on { background:rgba(89,194,124,.2); color:var(--green); border-color:rgba(89,194,124,.5); }
.aii2-actions { display:flex; gap:10px; flex-wrap:wrap; margin:20px 0; }

/* chart */
.aii2-chart { width:100%; height:auto; display:block; }
.aii2-grid { stroke:var(--hairline); stroke-width:1; }
.aii2-ready-line { stroke:var(--green); stroke-width:1; stroke-dasharray:4 4; opacity:.6; }
.aii2-axis { font-size:10px; fill:var(--text-muted); }
.aii2-chart-line { fill:none; stroke:var(--teal); stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round; }
.aii2-chart-dot { fill:var(--surface); stroke:var(--teal); stroke-width:2.2; }
.aii2-chart-dot.last { fill:var(--teal); }

@media (max-width: 860px) {
  .aii2-studio { grid-template-columns:1fr; }
  .aii2-modes { grid-template-columns:repeat(2,1fr); }
  .aii2-stats { grid-template-columns:repeat(2,1fr); }
  .aii2-qtext { font-size:16px; }
  .aii2-hero-ecg { display:none; }
}

.aii2-rec.dim .aii2-gauges, .aii2-rec.dim .aiint-transcript-box, .aii2-rec.dim .aii2-mini { opacity:.5; }

/* ============================================================
   PHONE MENU (student + admin) — smooth slide-in drawer
   The "☰ Menu" button only exists on phones (<= 860px); on bigger
   screens the left menu stays visible exactly as before.
   ============================================================ */
@media (max-width: 860px) {
  .mobile-nav-toggle {
    display: inline-flex;
    position: sticky; top: var(--topbar-h, 56px); z-index: 80;
    margin: 8px 12px 4px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--teal);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease, background .15s ease;
  }
  .mobile-nav-toggle:active { transform: scale(.96); }
  .mobile-nav-backdrop { display: block; background: rgba(0,0,0,.55); transition: opacity .3s ease; }

  .student-dash-layout .admin-sidebar,
  #admin-sidebar {
    display: block;                         /* beats the desktop "hide menu" rules */
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 95;
    width: min(280px, 80vw); max-width: none;
    padding: 18px 14px;
    background: var(--surface);
    border-right: 1px solid var(--hairline); border-bottom: none;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    transform: translateX(-105%); visibility: hidden; box-shadow: none;
    transition: transform .3s cubic-bezier(.32,.72,0,1), box-shadow .3s ease, visibility 0s linear .3s;
  }
  .student-dash-layout .admin-sidebar.mobile-nav-open,
  #admin-sidebar.mobile-nav-open {
    transform: none; visibility: visible;
    box-shadow: 10px 0 36px rgba(0,0,0,.5);
    transition: transform .3s cubic-bezier(.32,.72,0,1), box-shadow .3s ease, visibility 0s;
  }
  body.mnav-open { overflow: hidden; }

  /* admin: use the whole screen width; the old Hide/Show menu button isn't needed on phones */
  .admin-layout { padding: 0 !important; }
  #btn-side-toggle { display: none !important; }
}

/* ============================================================
   GAMIFICATION — full-page layout (phone = edge to edge)
   ============================================================ */
.games-page .game-zone { max-width: none; }
.gs-console { max-width: 1100px; }
.gs-sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.gs-sector-grid .gs-sector-card { margin: 0; }
.gs-sector-grid .gs-sector-card:hover { transform: translateY(-2px); }

@media (max-width: 860px) {
  /* cancel the page padding so the games touch both screen edges */
  .games-page { margin: 0 -16px; }
  .games-page > h2, .games-page > h3, .games-page > p { padding: 0 16px; }
  .games-page .game-zone { border-left: 0; border-right: 0; border-radius: 0; padding: 18px 16px; }
  .games-page .gs-console { max-width: none; border-radius: 0; padding: 18px 14px 28px; }
  .gs-sector-grid { grid-template-columns: 1fr; }
}

/* While a sector is being played on a phone: hide menu + top bar so the game owns the whole screen.
   "End sector" returns to the sector list and brings everything back. */
@media (max-width: 860px) {
  body.gs-playing .topbar,
  body.gs-playing .mobile-nav-toggle { display: none !important; }
  body.gs-playing .student-dash-layout { padding: 0 !important; }
  body.gs-playing .student-dash-layout .admin-main { padding: 0 !important; }
  body.gs-playing .games-page { margin: 0; }
  body.gs-playing .games-page > :not(#game-sectors-zone) { display: none; }
  body.gs-playing .games-page .gs-console { min-height: 100vh; min-height: 100dvh; padding: 14px 12px 28px; }
  body.gs-playing .gs-grid4 { max-width: min(340px, 86vw); }
}

/* Exam builder: each section box gets its own pastel (follows section number, max 7) */
#e-sections-builder > .card.es-pastel-1 { background:#FDE8EF; border-color:#F4B6CB; }
#e-sections-builder > .card.es-pastel-2 { background:#E6F0FD; border-color:#B3CFF3; }
#e-sections-builder > .card.es-pastel-3 { background:#E7F7EC; border-color:#B2E0C1; }
#e-sections-builder > .card.es-pastel-4 { background:#FFF4DB; border-color:#F2DC9C; }
#e-sections-builder > .card.es-pastel-5 { background:#EFE8FB; border-color:#CDBBF0; }
#e-sections-builder > .card.es-pastel-6 { background:#E1F6F5; border-color:#A8DCD9; }
#e-sections-builder > .card.es-pastel-7 { background:#FDEBDD; border-color:#F4C9A6; }
/* dark theme (default): same hues as soft tints so text stays readable */
:root:not([data-theme="light"]) #e-sections-builder > .card.es-pastel-1 { background:color-mix(in srgb, #F4B6CB 14%, var(--surface, #151D2B)); border-color:color-mix(in srgb, #F4B6CB 40%, transparent); }
:root:not([data-theme="light"]) #e-sections-builder > .card.es-pastel-2 { background:color-mix(in srgb, #B3CFF3 14%, var(--surface, #151D2B)); border-color:color-mix(in srgb, #B3CFF3 40%, transparent); }
:root:not([data-theme="light"]) #e-sections-builder > .card.es-pastel-3 { background:color-mix(in srgb, #B2E0C1 14%, var(--surface, #151D2B)); border-color:color-mix(in srgb, #B2E0C1 40%, transparent); }
:root:not([data-theme="light"]) #e-sections-builder > .card.es-pastel-4 { background:color-mix(in srgb, #F2DC9C 14%, var(--surface, #151D2B)); border-color:color-mix(in srgb, #F2DC9C 40%, transparent); }
:root:not([data-theme="light"]) #e-sections-builder > .card.es-pastel-5 { background:color-mix(in srgb, #CDBBF0 14%, var(--surface, #151D2B)); border-color:color-mix(in srgb, #CDBBF0 40%, transparent); }
:root:not([data-theme="light"]) #e-sections-builder > .card.es-pastel-6 { background:color-mix(in srgb, #A8DCD9 14%, var(--surface, #151D2B)); border-color:color-mix(in srgb, #A8DCD9 40%, transparent); }
:root:not([data-theme="light"]) #e-sections-builder > .card.es-pastel-7 { background:color-mix(in srgb, #F4C9A6 14%, var(--surface, #151D2B)); border-color:color-mix(in srgb, #F4C9A6 40%, transparent); }
#e-sections-builder > .card[class*="es-pastel-"] .es-di, #e-sections-builder > .card[class*="es-pastel-"] .es-rc { background:rgba(255,255,255,.35); }
:root:not([data-theme="light"]) #e-sections-builder > .card[class*="es-pastel-"] .es-di, :root:not([data-theme="light"]) #e-sections-builder > .card[class*="es-pastel-"] .es-rc { background:rgba(255,255,255,.04); }


/* Dashboard: placement news of the day (5 fixed stories + Read more) */
.home-news-card { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(63,189,182,.45); background: rgba(63,189,182,.08); }
.home-news-card-head { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--teal); margin-bottom: 8px; }
.home-news-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--hairline); color: var(--text); text-decoration: none; font-size: 13px; }
.home-news-row:first-of-type { border-top: 0; }
a.home-news-row:hover .home-news-row-title { text-decoration: underline; }
.home-news-row-title { flex: 1; min-width: 0; }
.home-news-row-src { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; max-width: 34%; overflow: hidden; text-overflow: ellipsis; }
.home-news-more { margin-top: 8px; font-size: 12.5px; padding: 6px 12px; }
@media (max-width: 560px) { .home-news-row { flex-direction: column; gap: 2px; } .home-news-row-src { max-width: 100%; } }

/* ===== Home: live company tile (one tile, below tip of the day) ===== */
.sct{--k:#7C5CFF;position:relative;width:100%;max-width:500px;height:400px;display:flex;flex-direction:column;overflow:hidden;margin-bottom:20px;border-radius:16px;background:linear-gradient(160deg,var(--surface-raised),var(--surface));border:1px solid color-mix(in srgb,var(--k) 45%,var(--hairline));box-shadow:0 0 40px -18px var(--k)}
.sct:before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,var(--k),var(--teal));z-index:2}
.sct .cin{display:flex;flex-direction:column;height:100%;opacity:0;transform:translateY(10px) scale(.985);transition:opacity .7s ease,transform .7s ease}
.sct.on .cin{opacity:1;transform:none}.sct.off .cin{opacity:0;transform:translateY(-8px) scale(.985)}
.sct .ch{padding:22px 24px 14px;border-bottom:1px solid var(--hairline);position:relative;z-index:1;text-align:center;background:linear-gradient(180deg,color-mix(in srgb,var(--k) 10%,transparent),transparent)}
.sct .ch h3{margin:0;font:700 26px/1.15 'Sora','Inter',system-ui,sans-serif}
.sct .ch h3 b{font-weight:700;background:linear-gradient(100deg,var(--text) 0%,var(--text) 35%,var(--k) 45%,var(--teal) 50%,#FF5C93 55%,var(--text) 65%,var(--text) 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:sctname 4.5s ease-in-out infinite alternate}
@keyframes sctname{from{background-position:100% 0}to{background-position:0 0}}
.sct .ch span{display:inline-block;margin-top:8px;font:600 12px 'Inter',sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--k);border:1px solid var(--k);border-radius:99px;padding:3px 11px}
.sct .cb{flex:1;overflow:hidden;position:relative;padding:0 24px;-webkit-mask-image:linear-gradient(180deg,transparent,#000 9%,#000 88%,transparent);mask-image:linear-gradient(180deg,transparent,#000 9%,#000 88%,transparent)}
.sct .cm{position:absolute;left:24px;right:24px;top:0;will-change:transform}
.sct .cm h5{margin:18px 0 4px;font:700 12px 'Inter',sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--teal)}
.sct .cm p{margin:0;font-size:14.5px;line-height:1.55;color:var(--text)}
.sct .cm .pk{font:700 22px/1.2 'Sora','Inter',sans-serif;background:linear-gradient(90deg,var(--amber),#FF5C93);-webkit-background-clip:text;background-clip:text;color:transparent}
.sct .cm small{display:block;color:var(--text-muted);font-size:13px;margin-top:3px}
.sct .cm ol{margin:0;padding-left:20px}.sct .cm li{margin:3px 0;font-size:14.5px;line-height:1.5}
.sct.rm .cb{overflow-y:auto}.sct.rm .cm{position:static}
@media(max-width:700px){.sct{height:380px;max-width:100%}.sct .ch h3{font-size:22px}}
@media(prefers-reduced-motion:reduce){.sct .ch h3 b{animation:none}}

/* ===== Notice Board: polished dark-mode redesign (overrides earlier rules) ===== */
.notice-board-card{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.07);border-left:0;border-radius:18px;padding:22px 24px 24px;
  background:radial-gradient(520px 220px at 100% 0%,rgba(63,189,182,.14),transparent 70%),radial-gradient(420px 220px at 0% 0%,rgba(232,163,61,.16),transparent 70%),linear-gradient(160deg,#1d2a3f,#121b29);
  box-shadow:0 18px 40px -22px rgba(0,0,0,.8),inset 0 1px 0 rgba(255,255,255,.06)}
.notice-board-card:before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--amber),#FF8A4C,var(--teal))}
.notice-board-header{gap:12px;margin-bottom:16px}
.notice-board-pin{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;font-size:18px;filter:none;background:linear-gradient(135deg,rgba(232,163,61,.28),rgba(232,163,61,.08));border:1px solid rgba(232,163,61,.4);box-shadow:0 0 18px rgba(232,163,61,.25)}
.notice-board-title{font:800 17px 'Sora','Inter',sans-serif;letter-spacing:.01em;text-transform:none;color:var(--text);background:none}
.notice-board-header:after{content:"LIVE";margin-left:auto;display:inline-flex;align-items:center;gap:6px;font:700 10.5px 'Inter',sans-serif;letter-spacing:.14em;color:#59C27C;background:rgba(89,194,124,.12);border:1px solid rgba(89,194,124,.35);padding:4px 10px 4px 20px;border-radius:99px;background-image:radial-gradient(circle,#59C27C 0 3px,transparent 3.5px);background-repeat:no-repeat;background-position:8px 50%;animation:nbLive 2s ease-in-out infinite}
@keyframes nbLive{50%{box-shadow:0 0 0 4px rgba(89,194,124,.12)}}
.notice-board-tabs{display:inline-flex;gap:4px;padding:4px;margin-bottom:16px;border-radius:12px;background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.06)}
.notice-board-tabs .seg-btn{border:0;border-radius:9px;padding:8px 16px;font-weight:600;font-size:13px;color:var(--text-muted);background:transparent;transition:all .2s}
.notice-board-tabs .seg-btn:hover{color:var(--text)}
.notice-board-tabs .seg-btn.active{color:#1b1200;background:linear-gradient(120deg,var(--amber),#F3C06A);box-shadow:0 4px 14px rgba(232,163,61,.4)}
.notice-board-item{position:relative;padding:14px 16px 14px 20px;margin-bottom:10px;border-radius:12px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);transition:transform .2s,border-color .2s,background .2s}
.notice-board-item:before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:3px;background:linear-gradient(180deg,var(--amber),var(--teal))}
.notice-board-item:hover{transform:translateY(-2px);background:rgba(255,255,255,.06);border-color:rgba(232,163,61,.4)}
.notice-board-item-title{font-weight:700;font-size:14.5px;color:var(--text)}
.notice-board-item-body{font-size:13.5px;line-height:1.55;color:#aeb9cb;margin-top:5px}
.notice-board-item-meta{display:inline-block;margin-top:8px;padding:3px 10px;border-radius:99px;background:rgba(232,163,61,.12);font-size:12px}
[data-theme="light"] .notice-board-card{background:radial-gradient(520px 220px at 0% 0%,rgba(200,121,31,.14),transparent 70%),linear-gradient(160deg,#fff,#FBF4E6);border:1px solid var(--hairline);box-shadow:0 12px 30px -18px rgba(120,80,20,.35)}
[data-theme="light"] .notice-board-tabs{background:rgba(0,0,0,.05);border-color:var(--hairline)}
[data-theme="light"] .notice-board-item{background:#fff;border-color:var(--hairline)}
[data-theme="light"] .notice-board-item-body{color:var(--text-muted)}
@media(max-width:600px){.notice-board-card{padding:18px 16px 18px}.notice-board-tabs{display:flex}.notice-board-tabs .seg-btn{flex:1}}
