/* Shared dark-theme system for authenticated app pages (teacher/student CRUD, auth pages) — reuses hoahoc's design tokens from style.css. */

body.dash-body { background: var(--bg); min-height: 100vh; }
/* Reserve the fixed navigation height even when this role has no stats bar. */
body.dash-has-nav { padding-top: var(--header-h); }
.dash-has-nav > .stats-bar { margin-top: 0; }

[x-cloak] { display: none !important; }

/* ---------- Nav (dashboard variant of the homepage navbar) ---------- */
.dash-nav { background: rgba(6, 10, 31, 0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.dash-nav .navbar-inner { height: var(--header-h); }
.dash-nav-left { display: flex; align-items: center; gap: 40px; }
.nav-links a.is-active { color: var(--text); }

.dash-nav .nav-links,
.dash-nav .nav-user { display: none; }
.dash-nav .nav-toggle { display: flex; }
@media (min-width: 641px) {
  .dash-nav .nav-links { display: flex; }
  .dash-nav .nav-user { display: flex; align-items: center; }
  .dash-nav .nav-toggle { display: none; }
}
.mobile-nav-links { display: none; }

/* ---------- Persistent stats bar (below nav, every teacher/student page) ---------- */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  margin-top: var(--header-h); /* .navbar is position:fixed, so clear it explicitly */
  position: sticky;
  top: var(--header-h);
  z-index: 90; /* below .navbar's z-index:100 */
}
.stats-bar-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 22px 24px;
}
.stats-bar-item { text-align: center; min-width: 84px; }
.stats-bar-item .stat-num { font-size: 30px; }
.stats-bar-sep { width: 1px; align-self: stretch; min-height: 64px; background: var(--border); }
.stats-bar-rings { display: flex; align-items: flex-start; gap: 28px; flex-wrap: wrap; }

.stat-ring { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stat-ring svg { display: block; }
.stat-ring-label { font-size: 12.5px; color: var(--text-dimmer); text-align: center; max-width: 96px; line-height: 1.3; }

@media (max-width: 640px) {
  .stats-bar-inner { padding: 16px; gap: 20px; }
  .stats-bar-sep { display: none; }
}

.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}
.nav-user-btn:hover { background: var(--surface-hover); }
.nav-dropdown {
  background: #0d1333;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  padding: 6px;
  min-width: 180px;
}
.nav-dropdown a, .nav-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
}
.nav-dropdown a:hover, .nav-dropdown button:hover { background: var(--surface-hover); color: var(--text); }

.mobile-nav-links {
  background: rgba(6, 10, 31, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 20px;
}
.mobile-nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.mobile-nav-links a:last-child { border-bottom: none; }

/* ---------- Layout ---------- */
.dash-main { padding: 32px 0 60px; }
.dash-main .container { max-width: 1680px; } /* wider ceiling than style.css's 1180px (landing page)
  so app pages can use more of a desktop screen — individual pages still cap their own content
  width narrower where that's the right call (forms), see per-view inline max-width. */
.dash-header { margin-bottom: 28px; }
.dash-header h2 { font-size: 24px; margin: 0; }

/* ---------- Quiz library ---------- */
.quiz-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.quiz-page-heading h2 { margin: 4px 0 0; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.035em; }
.quiz-page-heading p { margin: 8px 0 0; color: var(--text-dimmer); font-size: 14.5px; }
.quiz-page-eyebrow {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.quiz-page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.quiz-page-count { display: inline-flex; align-items: center; gap: 9px; color: var(--text-dimmer); font-size: 13px; font-weight: 600; }
.quiz-page-count-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(52, 224, 161, 0.1); }
.quiz-create-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; box-shadow: 0 8px 24px rgba(34, 211, 238, 0.16); }
.quiz-create-button span { font-size: 20px; line-height: 0.8; font-weight: 400; }
.quiz-filter-panel {
  margin-bottom: 22px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}
.quiz-category-tabs { display: flex; gap: 5px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: thin; }
.quiz-category-tab {
  flex: none;
  padding: 8px 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-dimmer);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.quiz-category-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.quiz-category-tab.is-active { color: var(--cyan); background: rgba(34, 211, 238, 0.1); }
.quiz-filter-fields { margin-top: 0; }
.student-quiz-filter-row { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr) minmax(140px, .85fr) minmax(140px, .85fr) auto; align-items: end; gap: 8px; }
.student-quiz-filter-row > div { min-width: 0; }
.student-quiz-filter-buttons { min-width: 118px; }
@media (max-width: 1000px) {
  .student-quiz-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-quiz-filter-search { grid-column: 1 / -1; }
}
.quiz-filter-label { display: block; margin: 0 0 6px; color: var(--text-dimmer); font-size: 11px; font-weight: 800; letter-spacing: 0.065em; text-transform: uppercase; }
.quiz-search-field { position: relative; display: block; }
.quiz-search-field svg { position: absolute; left: 13px; top: 50%; z-index: 1; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: var(--text-dimmer); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; transition: stroke 0.2s ease, transform 0.2s ease; }
.quiz-search-field input,
.quiz-filter-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: rgba(4, 7, 24, 0.45);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.quiz-search-field input { padding: 10px 13px 10px 39px; background: transparent; }
.quiz-search-field input:hover {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.025);
  box-shadow: 0 8px 20px rgba(14, 116, 144, 0.1);
  transform: translateY(-2px);
}
.quiz-search-field:hover svg { stroke: var(--cyan); transform: translateY(calc(-50% - 2px)); }
.quiz-filter-select { padding: 9px 32px 9px 12px; background: transparent; }
.quiz-filter-select:hover {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.025);
  box-shadow: 0 8px 20px rgba(14, 116, 144, 0.1);
  transform: translateY(-2px);
}
.quiz-search-field input:focus { border-color: rgba(34, 211, 238, 0.7); background: rgba(34, 211, 238, 0.04); box-shadow: 0 10px 24px rgba(14, 116, 144, 0.14), 0 0 0 3px rgba(34, 211, 238, 0.1); transform: translateY(-2px); }
.quiz-filter-select:focus { border-color: rgba(34, 211, 238, 0.7); background: rgba(34, 211, 238, 0.04); box-shadow: 0 10px 24px rgba(14, 116, 144, 0.14), 0 0 0 3px rgba(34, 211, 238, 0.1); transform: translateY(-2px); }
.quiz-search-field input::placeholder { color: var(--text-dimmer); }
.quiz-filter-submit { min-height: 42px; padding: 9px 17px; white-space: nowrap; }
.quiz-filter-reset { display: inline-grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, 0.025); color: var(--text-dimmer); font-size: 22px; line-height: 1; white-space: nowrap; }
.quiz-filter-reset:hover { color: #fb7185; border-color: rgba(251, 113, 133, 0.35); background: rgba(251, 113, 133, 0.08); }
.quiz-filter-empty { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.quiz-filter-empty strong { color: var(--text); font-size: 15px; }
.quiz-filter-empty span { font-size: 13px; }

/* Student quiz groups: class assignments stay open; less relevant libraries collapse. */
.student-quiz-sections { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.student-quiz-section {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--surface);
  box-shadow: 0 10px 28px rgba(1, 4, 18, 0.14);
}
.student-quiz-section-primary { border-color: rgba(34, 211, 238, 0.24); }
.student-quiz-section-summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .18s ease, color .18s ease;
}
.student-quiz-section-summary::-webkit-details-marker { display: none; }
.student-quiz-section-summary:hover { background: rgba(34, 211, 238, 0.045); }
.student-quiz-section-summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }
.student-quiz-section-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--cyan); background: rgba(34, 211, 238, 0.1); }
.student-quiz-section-icon svg { width: 21px; height: 21px; }
.student-quiz-section-icon-personal { color: var(--purple); background: rgba(167, 139, 250, 0.11); }
.student-quiz-section-icon-public { color: var(--green); background: rgba(52, 224, 161, 0.1); }
.student-quiz-section-heading { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.student-quiz-section-heading strong { color: var(--text); font-size: 17px; line-height: 1.3; }
.student-quiz-section-heading small { overflow: hidden; color: var(--text-dimmer); font-size: 12.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.student-quiz-section-count { padding: 5px 10px; border-radius: 999px; color: var(--text-dim); background: rgba(255, 255, 255, 0.055); font-size: 12px; font-weight: 700; white-space: nowrap; }
.student-quiz-section-chevron { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--border); border-radius: 9px; color: var(--text-dimmer); transition: transform .2s ease, color .2s ease, background .2s ease; }
.student-quiz-section-chevron svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.student-quiz-section[open] > .student-quiz-section-summary { border-bottom: 1px solid var(--border); }
.student-quiz-section[open] > .student-quiz-section-summary .student-quiz-section-chevron { color: var(--cyan); background: rgba(34, 211, 238, 0.08); transform: rotate(180deg); }
.student-quiz-section-content { padding: 18px; }
.student-quiz-section-content .pagination { margin-bottom: 0; }

.quiz-card-grid { gap: 16px; }
.quiz-card {
  position: relative;
  isolation: isolate;
  min-height: 180px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.085);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--surface);
  box-shadow: 0 10px 28px rgba(1, 4, 18, 0.16);
}
.quiz-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 130px;
  height: 130px;
  top: -70px;
  right: -55px;
  border-radius: 50%;
  background: rgba(52, 224, 161, 0.09);
  filter: blur(2px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.quiz-card-batch::after { background: rgba(167, 139, 250, 0.12); }
.quiz-card:hover::after { transform: scale(1.25); opacity: 0.9; }
.quiz-card .tile-icon { background: linear-gradient(145deg, rgba(52, 224, 161, 0.16), rgba(34, 211, 238, 0.06)); border: 1px solid rgba(52, 224, 161, 0.18); }
.quiz-card-batch .tile-icon { color: var(--purple); background: linear-gradient(145deg, rgba(167, 139, 250, 0.18), rgba(34, 211, 238, 0.05)); border-color: rgba(167, 139, 250, 0.2); }
.quiz-card .tile-title { font-size: 16px; line-height: 1.45; }
.quiz-card .tile-meta { margin-top: 7px; line-height: 1.6; }
.quiz-card .tile-actions { gap: 7px; }
.quiz-card .tile-actions a,
.quiz-card .tile-actions button {
  padding: 6px 9px;
  border-radius: 7px;
  transition: color 0.15s ease, background 0.15s ease;
}
.quiz-card .tile-actions .link-action:hover { color: #baf8ff; background: rgba(34, 211, 238, 0.09); }
.quiz-card .tile-actions .link-danger:hover { background: rgba(251, 113, 133, 0.09); }

.resource-search-panel { padding-top: 14px; }
.resource-card { min-height: 150px; }
.resource-card-cyan::after { background: rgba(34, 211, 238, 0.1); }
.resource-card-purple::after { background: rgba(167, 139, 250, 0.12); }
.teacher-resource-card::after, .teacher-create-card::after { background: rgba(251, 191, 36, 0.11); }
.teacher-resource-card .tile-icon { color: var(--amber); background: linear-gradient(145deg, rgba(251, 191, 36, 0.16), rgba(167, 139, 250, 0.05)); border-color: rgba(251, 191, 36, 0.2); }
.teacher-create-card { min-height: 0; }
.resource-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ---------- Dashboard overview ---------- */
.dashboard-page { max-width: 1280px; }
.dashboard-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.dashboard-stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 20px;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)), var(--surface);
  box-shadow: 0 10px 28px rgba(1, 4, 18, 0.16);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
a.dashboard-stat-card:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .35); box-shadow: 0 14px 32px rgba(1, 4, 18, .24); }
.dashboard-stat-card::after { content: ""; position: absolute; width: 100px; height: 100px; right: -45px; top: -45px; border-radius: 50%; opacity: .12; background: currentColor; }
.dashboard-stat-card .tile-icon { flex: 0 0 auto; }
.dashboard-stat-card .stat-num { line-height: 1.05; }
.dashboard-stat-card .stat-label { margin-top: 7px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .045em; }
.dashboard-stat-green { color: var(--green); }
.dashboard-stat-purple { color: var(--purple); }
.dashboard-stat-cyan { color: var(--cyan); }
.dashboard-stat-amber { color: var(--amber); }
.dashboard-stat-card .stat-num { color: var(--text); }
.dashboard-panel { margin-bottom: 24px; padding: 0; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--surface); }
.dashboard-panel + .dashboard-panel { margin-top: 0; }
.dashboard-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.dashboard-panel-heading h3 { margin: 3px 0 0; font-size: 19px; color: var(--text); }
.dashboard-panel-subtitle { margin: 5px 0 0; color: var(--text-dimmer); font-size: 12.5px; }
.dashboard-panel-hint { margin: 0; padding: 14px 22px; border-bottom: 1px solid var(--border); }
.dashboard-inline-filter { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.012); }
.dashboard-filter-search { flex: 1 1 360px; }
.dashboard-filter-select { flex: 0 1 220px; min-width: 180px; }
.dashboard-table-wrap { overflow-x: auto; }
.dashboard-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dashboard-table th { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text-dimmer); font-size: 11.5px; text-align: left; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.dashboard-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.dashboard-table .is-number { text-align: center; }
.dashboard-table tbody tr:last-child td { border-bottom: 0; }
.dashboard-table tbody tr { transition: background .15s ease; }
.dashboard-table tbody tr:hover { background: rgba(34, 211, 238, .035); }
.dashboard-panel-pagination { padding: 14px 20px; border-top: 1px solid var(--border); }

/* ---------- Student dashboard ---------- */
.student-dashboard { display: flex; max-width: 1280px; flex-direction: column; gap: 20px; }
.student-dashboard-hero {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: 240px; padding: 34px 42px; overflow: hidden; border: 1px solid rgba(14, 116, 144, .16);
  border-radius: 24px; color: #fff; background: linear-gradient(125deg, #15275d 0%, #0e6177 64%, #118064 100%);
  box-shadow: 0 18px 45px rgba(15, 48, 86, .2);
}
.student-dashboard-hero::before, .student-dashboard-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.student-dashboard-hero::before { width: 330px; height: 330px; right: -80px; top: -170px; background: rgba(255,255,255,.08); }
.student-dashboard-hero::after { width: 180px; height: 180px; left: 42%; bottom: -140px; border: 35px solid rgba(255,255,255,.045); }
.student-dashboard-hero-copy { position: relative; z-index: 1; max-width: 680px; }
.student-dashboard-kicker { display: block; color: var(--cyan); font-size: 10.5px; font-weight: 800; letter-spacing: .15em; }
.student-dashboard-hero .student-dashboard-kicker { color: #9cebf4; }
.student-dashboard-hero h3 { margin: 9px 0 7px; color: #fff; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; letter-spacing: -.025em; }
.student-dashboard-hero p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; }
.student-dashboard-hero-actions { display: flex; gap: 10px; margin-top: 24px; }
.student-dashboard-hero .btn-primary { border-color: transparent; background: #fff; color: #0e6177; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.student-dashboard-hero .btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.08); }
.student-dashboard-ring { --progress: 0; position: relative; z-index: 1; display: grid; flex: 0 0 148px; width: 148px; height: 148px; place-items: center; border-radius: 50%; background: conic-gradient(#67e8c5 calc(var(--progress) * 1%), rgba(255,255,255,.14) 0); box-shadow: 0 12px 35px rgba(0,0,0,.16); }
.student-dashboard-ring::before { content: ""; position: absolute; inset: 11px; border-radius: inherit; background: #135568; box-shadow: inset 0 0 22px rgba(255,255,255,.05); }
.student-dashboard-ring div { position: relative; display: flex; flex-direction: column; align-items: center; }
.student-dashboard-ring strong { color: #fff; font-size: 28px; line-height: 1; }
.student-dashboard-ring span { margin-top: 6px; color: rgba(255,255,255,.68); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.student-dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.student-dashboard-metric { display: flex; align-items: center; gap: 14px; min-height: 102px; padding: 18px; border: 1px solid var(--border); border-radius: 17px; color: var(--text); background: var(--surface); box-shadow: 0 8px 24px rgba(20,24,50,.055); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.student-dashboard-metric:hover { transform: translateY(-3px); border-color: currentColor; box-shadow: 0 13px 28px rgba(20,24,50,.1); }
.student-dashboard-metric-icon { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: color-mix(in srgb, currentColor 11%, transparent); }
.student-dashboard-metric > div { min-width: 0; }
.student-dashboard-metric strong { display: block; color: var(--text); font-size: 24px; line-height: 1.1; }
.student-dashboard-metric span:last-child { display: block; margin-top: 5px; color: var(--text-dimmer); font-size: 12.5px; }
.metric-purple { color: var(--purple); } .metric-cyan { color: var(--cyan); } .metric-amber { color: var(--amber); } .metric-green { color: var(--green); }
.student-dashboard-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 20px; }
.student-dashboard-card { padding: 22px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: 0 10px 28px rgba(20,24,50,.055); }
.student-dashboard-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.student-dashboard-card-head h3 { margin: 5px 0 0; color: var(--text); font-size: 19px; }
.student-dashboard-card-head p { margin: 6px 0 0; color: var(--text-dimmer); font-size: 12.5px; }
.student-kind-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.student-kind-card { padding: 17px; border: 1px solid var(--border); border-radius: 16px; background: #f8f9fc; }
.student-kind-title { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.student-kind-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--cyan); background: rgba(14,116,144,.09); }
.student-kind-homework .student-kind-icon { color: var(--purple); background: rgba(109,40,217,.08); }
.student-kind-title strong { display: block; color: var(--text); font-size: 14px; }
.student-kind-title span { display: block; margin-top: 3px; color: var(--text-dimmer); font-size: 11.5px; }
.student-kind-title b { color: var(--text); font-size: 17px; }
.student-progress-track, .student-ability-track { height: 7px; margin-top: 16px; overflow: hidden; border-radius: 999px; background: #e8eaf2; }
.student-progress-track span, .student-ability-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), #23b998); }
.student-kind-homework .student-progress-track span { background: linear-gradient(90deg, var(--purple), #a78bfa); }
.student-kind-stats { display: flex; justify-content: space-between; gap: 10px; margin-top: 13px; color: var(--text-dimmer); font-size: 11.5px; }
.student-kind-stats strong { margin-left: 3px; color: var(--text); }
.student-dashboard-shortcuts nav { display: flex; flex-direction: column; gap: 8px; }
.student-dashboard-shortcuts nav a { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px; border-radius: 13px; color: var(--text); text-decoration: none; transition: background .16s ease, transform .16s ease; }
.student-dashboard-shortcuts nav a:hover { background: rgba(14,116,144,.055); transform: translateX(3px); }
.shortcut-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--cyan); background: rgba(14,116,144,.08); }
.student-dashboard-shortcuts strong, .student-dashboard-shortcuts small { display: block; }
.student-dashboard-shortcuts strong { font-size: 13.5px; }
.student-dashboard-shortcuts small { margin-top: 3px; color: var(--text-dimmer); font-size: 11.5px; }
.student-dashboard-shortcuts b { color: var(--text-dimmer); font-size: 15px; }
.student-dashboard-ability { margin-bottom: 8px; }
.student-ability-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.student-ability-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-dim); font-size: 12.5px; font-weight: 700; }
.student-ability-head strong { color: var(--text); font-size: 16px; }
.student-ability-track { margin-top: 10px; }
.student-ability-item:nth-child(2) .student-ability-track span { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.student-ability-item:nth-child(3) .student-ability-track span { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.student-ability-item:nth-child(4) .student-ability-track span { background: linear-gradient(90deg, #b45309, #fbbf24); }
.student-ability-item small { display: block; margin-top: 7px; color: var(--text-dimmer); font-size: 11.5px; }

/* ---------- Teacher dashboard ---------- */
.teacher-dashboard-hero { background: linear-gradient(125deg, #172554 0%, #1d4f70 52%, #116466 100%); }
.teacher-dashboard-hero .student-dashboard-ring::before { background: #164f63; }
.teacher-dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.teacher-dashboard .dashboard-panel { margin-bottom: 0; border-radius: 20px; }
.dashboard-student-class { display: block; margin-top: 3px; color: var(--text-dimmer); font-size: 11.5px; font-weight: 400; }
.dashboard-score { font-weight: 800; color: var(--text); }
.dashboard-score.is-low { display: inline-block; padding: 3px 8px; border-radius: 999px; color: #b91c1c; background: rgba(220,38,38,.08); }

@media (max-width: 900px) {
  .student-dashboard-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .teacher-dashboard-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .student-dashboard-layout { grid-template-columns: 1fr; }
  .student-ability-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .student-dashboard { gap: 14px; }
  .student-dashboard-hero { min-height: 0; padding: 24px 20px; border-radius: 19px; }
  .student-dashboard-ring { flex-basis: 110px; width: 110px; height: 110px; }
  .student-dashboard-ring strong { font-size: 22px; }
  .student-dashboard-hero-actions { flex-wrap: wrap; }
  .student-dashboard-metrics { gap: 10px; }
  .student-dashboard-metric { min-height: 86px; padding: 13px; gap: 10px; }
  .student-dashboard-metric-icon { flex-basis: 36px; width: 36px; height: 36px; }
  .student-dashboard-metric strong { font-size: 19px; }
  .student-dashboard-card { padding: 17px; border-radius: 17px; }
  .student-kind-list { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .student-dashboard-hero { align-items: flex-start; flex-direction: column; }
  .student-dashboard-ring { position: absolute; right: 16px; top: 16px; width: 76px; height: 76px; }
  .student-dashboard-ring::before { inset: 7px; }
  .student-dashboard-ring strong { font-size: 16px; }
  .student-dashboard-ring span { display: none; }
  .student-dashboard-hero-copy { padding-right: 64px; }
  .student-dashboard-hero-copy p, .student-dashboard-hero-actions { margin-right: -64px; }
  .student-dashboard-metrics { grid-template-columns: 1fr 1fr; }
  .student-dashboard-metric { align-items: flex-start; flex-direction: column; }
  .teacher-dashboard-metrics { grid-template-columns: 1fr 1fr; }
  .student-ability-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 900px) { .dashboard-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .dashboard-stat-grid { grid-template-columns: 1fr; gap: 10px; }
  .dashboard-stat-card { min-height: 96px; padding: 16px; }
  .dashboard-panel-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-inline-filter { align-items: stretch; flex-direction: column; }
  .dashboard-filter-search, .dashboard-filter-select { flex-basis: auto; width: 100%; }
  .dashboard-inline-filter .quiz-filter-reset { align-self: flex-end; }
}

.student-quiz-page { max-width: 920px; }
.student-quiz-count { margin-bottom: 16px; }
.student-quiz-list { border-radius: 18px; background: transparent; overflow: visible; display: flex; flex-direction: column; gap: 12px; border: 0; }
.student-quiz-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.student-quiz-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.085); }
.student-quiz-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, var(--cyan), var(--green)); opacity: 0; transition: opacity 0.18s ease; }
.student-quiz-row:hover,
.student-quiz-row:focus-visible {
  background: rgba(34, 211, 238, 0.035);
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 14px 32px rgba(14, 116, 144, 0.14), 0 0 0 1px rgba(34, 211, 238, 0.08);
  outline: none;
}
.student-quiz-row:hover::before, .student-quiz-row:focus-visible::before { opacity: 1; }
.student-quiz-index { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--cyan); background: rgba(34, 211, 238, 0.08); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.student-quiz-content { min-width: 0; }
.student-quiz-row .list-row-title { font-size: 15.5px; }
.student-quiz-row .list-row-meta { margin-top: 6px; line-height: 1.5; }
.student-quiz-open { flex: none; color: var(--cyan); font-size: 13px; font-weight: 700; white-space: nowrap; }
.student-quiz-open span { display: inline-block; margin-left: 5px; transition: transform 0.18s ease; }
.student-quiz-row:hover .student-quiz-open span, .student-quiz-row:focus-visible .student-quiz-open span { transform: translateX(3px); }

@media (max-width: 640px) {
  .quiz-page-heading p { font-size: 13.5px; }
  .quiz-page-toolbar { align-items: stretch; flex-direction: column; }
  .quiz-create-button { justify-content: center; }
  .resource-toolbar-actions { width: 100%; }
  .resource-toolbar-actions .btn { flex: 1 1 100%; }
  .quiz-filter-panel { padding: 8px; }
  .student-quiz-filter-row { grid-template-columns: 1fr; }
  .quiz-filter-submit { width: 100%; }
  .quiz-card { min-height: 160px; }
  .student-quiz-sections { gap: 10px; margin-top: 18px; }
  .student-quiz-section-summary { grid-template-columns: 38px minmax(0, 1fr) 30px; gap: 10px; min-height: 68px; padding: 13px; }
  .student-quiz-section-icon { width: 38px; height: 38px; }
  .student-quiz-section-heading strong { font-size: 15px; }
  .student-quiz-section-heading small { font-size: 11.5px; }
  .student-quiz-section-count { grid-column: 2; justify-self: start; margin-top: -4px; padding: 3px 8px; }
  .student-quiz-section-chevron { grid-column: 3; grid-row: 1 / span 2; }
  .student-quiz-section-content { padding: 13px; }
  .student-quiz-row { grid-template-columns: 38px minmax(0, 1fr); padding: 15px; align-items: start; }
  .student-quiz-index { width: 32px; height: 32px; }
  .student-quiz-open { grid-column: 2; margin-top: 9px; }
}

/* ---------- Tile grid (Môn học / Lớp học / Giáo viên / Đề thi / Chuyên đề / Kết quả) ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.tile-grid-wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.tile:hover, .tile:has(> .tile-actions):hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 14px 30px rgba(20, 24, 50, 0.1);
}
.tile-top { display: flex; align-items: flex-start; gap: 14px; }
.tile-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-hover);
}
.tile-icon-cyan { color: var(--cyan); }
.tile-icon-purple { color: var(--purple); }
.tile-icon-amber { color: var(--amber); }
.tile-icon-green { color: var(--green); }
.tile-body { min-width: 0; }
.tile-title { font-weight: 700; font-size: 15.5px; color: var(--text); line-height: 1.35; word-break: break-word; }
.tile-meta { font-size: 13px; color: var(--text-dimmer); margin-top: 3px; }
.tile-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.tile-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: var(--text-dimmer);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

@media (max-width: 640px) {
  .tile-grid, .tile-grid-wide { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px; border-radius: 14px; gap: 8px; }
  .tile-icon { width: 36px; height: 36px; border-radius: 10px; }
  .tile-icon svg { width: 18px; height: 18px; }
  .tile-title { font-size: 14px; }
  .tile-meta { font-size: 12px; }
  .tile-actions { gap: 10px; font-size: 12.5px; padding-top: 10px; }
}
@media (max-width: 420px) {
  .tile-grid, .tile-grid-wide { grid-template-columns: 1fr; }
}

/* ---------- Stat grid (results summary) ---------- */
/* ---------- Online exam rooms ---------- */
/* ---------- Question bank ---------- */
.bank-page { max-width: 1500px; }
.bank-header-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.bank-import-warning { border: 1px solid rgba(251,191,36,.3); background: rgba(251,191,36,.09); color: var(--amber); }
.bank-import-warning ul { margin: 8px 0 0 18px; }
.bank-overview { display: grid; grid-template-columns: repeat(4,minmax(130px,1fr)); gap: 10px; margin-bottom: 18px; }
.bank-overview > div { padding: 15px 17px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.015)); }
.bank-overview strong, .bank-overview span { display: block; }
.bank-overview strong { color: var(--text); font-size: 25px; line-height: 1.1; }
.bank-overview > div:first-child strong { color: var(--cyan); }
.bank-overview span { margin-top: 5px; color: var(--text-dimmer); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .055em; }
.bank-filter-panel {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 20;
  padding: 14px;
  border-color: rgba(34,211,238,.26);
  backdrop-filter: blur(16px);
  background:
    radial-gradient(circle at 8% 0%, rgba(34,211,238,.14), transparent 34%),
    linear-gradient(135deg, rgba(20,31,68,.97), rgba(12,19,48,.97));
  box-shadow: 0 14px 36px rgba(1,4,18,.32), 0 0 0 1px rgba(34,211,238,.04) inset;
}
.bank-filter-panel .quiz-filter-label { color: #b9c8e8; }
.bank-filter-panel .quiz-search-field input,
.bank-filter-panel .quiz-filter-select {
  border-color: rgba(148,181,224,.3);
  background: rgba(24,38,78,.82);
  color: #eef6ff;
  color-scheme: dark;
  box-shadow: 0 4px 12px rgba(1,4,18,.16) inset;
}
.bank-filter-panel .quiz-filter-select option {
  background: #18264e;
  color: #eef6ff;
}
.bank-filter-panel .quiz-filter-select option:checked { background: #164e63; color: #fff; }
.bank-filter-panel .quiz-search-field input { border-color: rgba(34,211,238,.48); background: rgba(18,48,82,.9); }
.bank-filter-panel .quiz-search-field input::placeholder { color: #91a6c9; }
.bank-filter-panel .quiz-search-field svg { stroke: #67e8f9; }
.bank-filter-panel .quiz-search-field input:hover,
.bank-filter-panel .quiz-search-field input:focus {
  border-color: #22d3ee;
  background: rgba(18,55,91,.98);
  box-shadow: 0 10px 26px rgba(6,182,212,.16), 0 0 0 3px rgba(34,211,238,.13);
}
.bank-filter-panel .quiz-filter-select:hover,
.bank-filter-panel .quiz-filter-select:focus { background: rgba(29,47,91,.98); }
.bank-filter-row { display: grid; grid-template-columns: minmax(260px,1.5fr) minmax(170px,.8fr) minmax(150px,.65fr) minmax(155px,.7fr) auto; align-items: end; gap: 8px; }
.bank-filter-row > div { min-width: 0; }
.bank-filter-actions { display: flex; gap: 7px; }
.bank-topic-summary { margin-bottom: 18px; padding: 0; overflow: hidden; }
.bank-topic-summary summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 18px; cursor: pointer; list-style: none; }
.bank-topic-summary summary::-webkit-details-marker { display: none; }
.bank-topic-summary summary:hover { background: rgba(255,255,255,.025); }
.bank-topic-summary summary b, .bank-topic-summary summary small { display: block; }
.bank-topic-summary summary small { margin-top: 3px; color: var(--text-dimmer); font-weight: 400; }
.bank-summary-chevron { color: var(--cyan); font-size: 22px; transition: transform .2s; }
.bank-topic-summary[open] .bank-summary-chevron { transform: rotate(180deg); }
.bank-topic-table-wrap { max-height: 330px; overflow: auto; border-top: 1px solid var(--border); }
.bank-topic-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bank-topic-table th { position: sticky; top: 0; z-index: 1; padding: 9px 12px; background: #0d1230; color: var(--text-dimmer); font-size: 10px; text-align: center; text-transform: uppercase; letter-spacing: .045em; }
.bank-topic-table th:first-child, .bank-topic-table td:first-child { text-align: left; }
.bank-topic-table td { padding: 9px 12px; border-top: 1px solid var(--border); color: var(--text-dim); text-align: center; }
.bank-topic-table tbody tr:hover { background: rgba(34,211,238,.025); }
.bank-list-heading { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 10px; color: var(--text-dimmer); font-size: 12px; }
.bank-question-list { padding: 0; overflow: hidden; }
.bank-question-head, .bank-question-row { display: grid; grid-template-columns: minmax(360px,1.7fr) minmax(250px,1fr) 70px 92px; align-items: center; gap: 16px; }
.bank-question-head { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text-dimmer); background: rgba(255,255,255,.02); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.bank-question-row { min-height: 78px; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: background .15s; }
.bank-question-row:last-child { border-bottom: 0; }
.bank-question-row:hover { background: rgba(34,211,238,.025); }
.bank-question-main { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.bank-question-number { flex: 0 0 30px; display: grid; height: 30px; place-items: center; border: 1px solid var(--border); border-radius: 8px; color: var(--text-dimmer); background: rgba(255,255,255,.025); font-size: 11px; font-weight: 800; }
.bank-question-title { display: -webkit-box; overflow: hidden; color: var(--text); font-size: 13.5px; font-weight: 650; line-height: 1.45; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bank-question-title:hover { color: var(--cyan); }
.bank-question-topic { margin-top: 5px; overflow: hidden; color: var(--text-dimmer); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.bank-question-tags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.bank-tag { padding: 3px 7px; border: 1px solid transparent; border-radius: 99px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.bank-tag.is-recognition { color: #67e8f9; background: rgba(34,211,238,.09); border-color: rgba(34,211,238,.15); }
.bank-tag.is-understanding { color: #c4b5fd; background: rgba(167,139,250,.1); border-color: rgba(167,139,250,.16); }
.bank-tag.is-application { color: #fcd34d; background: rgba(251,191,36,.09); border-color: rgba(251,191,36,.15); }
.bank-tag.is-advanced { color: #fda4af; background: rgba(251,113,133,.09); border-color: rgba(251,113,133,.15); }
.bank-tag.is-type { color: var(--text-dim); background: rgba(255,255,255,.045); border-color: var(--border); }
.bank-tag.is-used { color: #fbbf24; background: rgba(251,191,36,.08); }
.bank-question-points { color: var(--text); font-size: 15px; font-weight: 800; }
.bank-question-points small { display: block; color: var(--text-dimmer); font-size: 9px; font-weight: 600; text-transform: uppercase; }
.bank-question-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 12px; }
@media (max-width: 1120px) { .bank-filter-row { grid-template-columns: 1fr 1fr 1fr; } .bank-filter-search { grid-column: 1 / -1; } .bank-question-head { display: none; } .bank-question-row { grid-template-columns: minmax(300px,1fr) minmax(220px,.8fr) 60px 80px; } }
@media (max-width: 760px) { .bank-overview { grid-template-columns: 1fr 1fr; } .bank-filter-panel { position: static; } .bank-filter-row { grid-template-columns: 1fr 1fr; } .bank-filter-search { grid-column: 1 / -1; } .bank-filter-actions { grid-column: 1 / -1; } .bank-filter-actions .btn { flex: 1; } .bank-question-row { grid-template-columns: 1fr auto; gap: 9px 12px; } .bank-question-main { grid-column: 1 / -1; } .bank-question-tags { grid-column: 1; } .bank-question-points { grid-column: 2; grid-row: 2; text-align: right; } .bank-question-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 42px; } }
@media (max-width: 520px) { .bank-header-actions { width: 100%; } .bank-header-actions .btn { flex: 1; } .bank-filter-row { grid-template-columns: 1fr; } .bank-filter-search, .bank-filter-actions { grid-column: auto; } .bank-question-row { padding: 12px; } }

/* ---------- Question assignment history ---------- */
.assignment-page { max-width: 1280px; margin: 0 auto; }
.assignment-page-heading { align-items: center; }
.assignment-page-heading > div:first-child { max-width: 720px; }
.assignment-page svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.assignment-back-button { padding: 10px 17px; font-size: 13px; }
.assignment-back-button svg,.assignment-alert svg { width: 19px; height: 19px; }
.assignment-alert { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.assignment-alert svg { flex: 0 0 auto; }
.assignment-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.assignment-stat { position: relative; display: flex; align-items: center; gap: 15px; overflow: hidden; min-height: 105px; padding: 19px 20px; border: 1px solid var(--border); border-radius: 17px; background: linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.014)); box-shadow: 0 12px 30px rgba(1,4,18,.12); }
.assignment-stat::after { position: absolute; right: -28px; bottom: -46px; width: 105px; height: 105px; border-radius: 50%; content: ""; background: currentColor; opacity: .055; }
.assignment-stat-icon { display: grid; flex: 0 0 48px; height: 48px; place-items: center; border: 1px solid currentColor; border-radius: 14px; background: color-mix(in srgb,currentColor 10%,transparent); }
.assignment-stat-icon svg { width: 21px; height: 21px; }
.assignment-stat strong,.assignment-stat span { display: block; }
.assignment-stat strong { color: var(--text); font-size: 28px; line-height: 1; letter-spacing: -.025em; }
.assignment-stat div > span { margin-top: 7px; color: var(--text-dimmer); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.assignment-stat--cyan { color: #22d3ee; border-color: rgba(34,211,238,.22); }
.assignment-stat--violet { color: #a78bfa; border-color: rgba(167,139,250,.2); }
.assignment-stat--amber { color: #fbbf24; border-color: rgba(251,191,36,.2); }
.assignment-info { display: grid; grid-template-columns: auto minmax(0,1fr) minmax(270px,.75fr); align-items: center; gap: 15px; margin-bottom: 20px; padding: 16px 18px; border: 1px solid rgba(34,211,238,.18); border-radius: 16px; background: linear-gradient(110deg,rgba(34,211,238,.075),rgba(34,211,238,.02)); }
.assignment-info-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--cyan); background: rgba(34,211,238,.1); }
.assignment-info-icon svg { width: 20px; height: 20px; }
.assignment-info h3 { margin: 0 0 4px; color: var(--text); font-size: 14px; }
.assignment-info p { margin: 0; color: var(--text-dimmer); font-size: 12.5px; line-height: 1.55; }
.assignment-info-note { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-left: 1px solid var(--border); color: var(--text-dim); font-size: 11.5px; line-height: 1.45; }
.assignment-info-note svg { flex: 0 0 18px; width: 18px; height: 18px; color: #fbbf24; }
.assignment-info-note strong { color: #86efac; }
.assignment-content-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: 16px; }
.assignment-class-panel,.assignment-danger-zone { border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg,rgba(255,255,255,.038),rgba(255,255,255,.012)); }
.assignment-class-panel { overflow: hidden; }
.assignment-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 21px 17px; }
.assignment-section-kicker { color: var(--text-dimmer); font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.assignment-panel-header h3,.assignment-danger-zone h3,.assignment-empty h3 { margin: 5px 0 0; color: var(--text); font-size: 17px; }
.assignment-class-count { padding: 5px 10px; border: 1px solid rgba(34,211,238,.16); border-radius: 99px; color: var(--cyan); background: rgba(34,211,238,.07); font-size: 10.5px; font-weight: 700; }
.assignment-class-list { border-top: 1px solid var(--border); }
.assignment-class-head,.assignment-class-row { display: grid; grid-template-columns: minmax(210px,1fr) 100px 105px 122px; align-items: center; gap: 12px; }
.assignment-class-head { padding: 9px 18px; color: var(--text-dimmer); background: rgba(255,255,255,.018); font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.assignment-class-head span:not(:first-child) { text-align: center; }
.assignment-class-row { min-height: 75px; padding: 12px 18px; border-top: 1px solid var(--border); transition: background .15s ease; }
.assignment-class-row:hover { background: rgba(34,211,238,.025); }
.assignment-class-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.assignment-class-avatar { display: grid; flex: 0 0 37px; height: 37px; place-items: center; border: 1px solid rgba(34,211,238,.2); border-radius: 11px; color: var(--cyan); background: rgba(34,211,238,.07); font-size: 14px; font-weight: 800; }
.assignment-class-name strong,.assignment-class-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assignment-class-name strong { color: var(--text); font-size: 13px; }
.assignment-class-name small { margin-top: 3px; color: var(--text-dimmer); font-size: 10.5px; }
.assignment-class-metric { text-align: center; }
.assignment-class-metric span { display: none; color: var(--text-dimmer); font-size: 9px; text-transform: uppercase; }
.assignment-class-metric strong { color: var(--text-dim); font-size: 14px; }
.assignment-class-row form { margin: 0; text-align: right; }
.assignment-delete-class { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid transparent; border-radius: 9px; color: #fda4af; background: transparent; font: inherit; font-size: 10.5px; font-weight: 700; cursor: pointer; transition: background .15s,border-color .15s; }
.assignment-delete-class svg { width: 15px; height: 15px; }
.assignment-delete-class:hover { border-color: rgba(251,113,133,.2); background: rgba(251,113,133,.08); }
.assignment-danger-zone { padding: 21px; border-color: rgba(251,113,133,.21); background: linear-gradient(145deg,rgba(251,113,133,.07),rgba(251,113,133,.012)); }
.assignment-danger-icon { display: grid; width: 42px; height: 42px; margin-bottom: 15px; place-items: center; border: 1px solid rgba(251,113,133,.22); border-radius: 12px; color: #fda4af; background: rgba(251,113,133,.09); }
.assignment-danger-icon svg { width: 20px; height: 20px; }
.assignment-danger-zone h3 { font-size: 16px; }
.assignment-danger-zone > p { min-height: 57px; margin: 8px 0 15px; color: var(--text-dimmer); font-size: 12px; line-height: 1.55; }
.assignment-danger-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; padding: 10px 0; border-top: 1px solid rgba(251,113,133,.12); border-bottom: 1px solid rgba(251,113,133,.12); }
.assignment-danger-total span { color: var(--text-dimmer); font-size: 11px; }
.assignment-danger-total strong { color: #fda4af; font-size: 17px; }
.assignment-delete-all { width: 100%; padding: 10px 14px; border: 1px solid rgba(251,113,133,.35); border-radius: 11px; color: #fecdd3; background: rgba(225,29,72,.14); font-size: 11.5px; box-shadow: none; }
.assignment-delete-all svg { width: 16px; height: 16px; }
.assignment-delete-all:hover { transform: none; border-color: rgba(251,113,133,.55); background: rgba(225,29,72,.23); box-shadow: none; }
.assignment-danger-zone > small { display: block; margin-top: 9px; color: var(--text-dimmer); font-size: 9.5px; text-align: center; }
.assignment-inline-empty { padding: 45px 20px; border-top: 1px solid var(--border); color: var(--text-dimmer); text-align: center; font-size: 13px; }
.assignment-empty { padding: 58px 24px; border: 1px solid var(--border); border-radius: 19px; background: linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.01)); text-align: center; }
.assignment-empty-icon { display: grid; width: 62px; height: 62px; margin: 0 auto 15px; place-items: center; border: 1px solid rgba(34,211,238,.2); border-radius: 18px; color: var(--cyan); background: rgba(34,211,238,.07); }
.assignment-empty-icon svg { width: 28px; height: 28px; }
.assignment-empty p { max-width: 480px; margin: 8px auto 20px; color: var(--text-dimmer); font-size: 13px; }
.assignment-empty .btn { padding: 10px 18px; font-size: 12px; }
@media (max-width: 980px) { .assignment-content-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .assignment-summary { grid-template-columns: 1fr; gap: 9px; } .assignment-stat { min-height: 82px; padding: 14px 16px; } .assignment-stat-icon { flex-basis: 42px; height: 42px; } .assignment-info { grid-template-columns: auto 1fr; } .assignment-info-note { grid-column: 1 / -1; padding: 10px 0 0; border-top: 1px solid var(--border); border-left: 0; } .assignment-class-head { display: none; } .assignment-class-row { grid-template-columns: 1fr auto auto; gap: 10px; } .assignment-class-row form { grid-column: 1 / -1; } .assignment-delete-class { width: 100%; justify-content: center; border-color: rgba(251,113,133,.14); } .assignment-class-metric span { display: block; margin-bottom: 3px; } }
@media (max-width: 520px) { .assignment-page-heading { align-items: flex-start; } .assignment-stat strong { font-size: 24px; } .assignment-panel-header { padding: 17px 15px 14px; } .assignment-class-row { padding: 13px 15px; } .assignment-class-name small { display: none; } .assignment-class-avatar { flex-basis: 33px; height: 33px; } }

.exam-room-grid { align-items: stretch; }
.exam-room-card { position: relative; overflow: hidden; border-top: 1px solid var(--border); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.exam-room-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; content: ""; background: #fbbf24; }
.exam-room-card--active::before { background: var(--green); box-shadow: 0 0 18px rgba(52,224,161,.5); }
.exam-room-card--ended::before { background: #64748b; }
.exam-room-card:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.28); box-shadow: 0 16px 35px rgba(0,0,0,.18); }
.exam-room-icon { flex: 0 0 auto; background: rgba(34,211,238,.1); color: var(--cyan); }
.exam-room-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.exam-room-status { margin-left: 6px; vertical-align: 2px; }
.exam-room-code { color: var(--cyan); letter-spacing: 2px; }

.exam-room-create-layout { display: grid; grid-template-columns: minmax(0,720px) minmax(260px,360px); align-items: start; gap: 20px; }
.exam-room-form { padding: 24px; }
.exam-room-form-section { margin-bottom: 22px; }
.exam-room-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 7px; }
.exam-room-choice-grid label { padding: 13px 14px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.025); cursor: pointer; }
.exam-room-form-actions { display: flex; gap: 8px; padding-top: 4px; }
.exam-room-create-help { position: sticky; top: 150px; padding: 22px; }
.exam-room-create-help h3 { margin: 7px 0 18px; }
.exam-room-create-help ol { margin: 0; padding: 0; list-style: none; counter-reset: room-step; }
.exam-room-create-help li { position: relative; min-height: 54px; padding: 0 0 18px 46px; counter-increment: room-step; }
.exam-room-create-help li::before { position: absolute; left: 0; top: 0; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; content: counter(room-step); color: var(--cyan); background: rgba(34,211,238,.1); font-weight: 800; }
.exam-room-create-help li:not(:last-child)::after { position: absolute; left: 15px; top: 34px; bottom: 2px; width: 1px; content: ""; background: var(--border); }
.exam-room-create-help li b, .exam-room-create-help li span { display: block; }
.exam-room-create-help li span { margin-top: 3px; color: var(--text-dimmer); font-size: 12.5px; line-height: 1.45; }

.exam-room-console { max-width: 1080px; margin: 0 auto; }
.exam-room-join-panel { padding: 28px; margin-bottom: 20px; border-color: rgba(34,211,238,.22); background: radial-gradient(circle at 20% 0,rgba(34,211,238,.08),transparent 45%),rgba(255,255,255,.025); }
.exam-room-join-panel code { border: 1px solid var(--border); background: rgba(4,7,24,.55) !important; color: var(--text); overflow-wrap: anywhere; }
.exam-room-join-code { margin: 8px 0; color: var(--cyan); font-size: clamp(2.5rem,6vw,4rem); font-weight: 850; line-height: 1; letter-spacing: .18em; text-shadow: 0 0 28px rgba(34,211,238,.2); }
.exam-room-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.exam-room-roster { margin-top: 16px; padding: 0; overflow: hidden; }
.exam-room-roster-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.exam-room-roster-head h3 { margin: 5px 0 0; font-size: 18px; }
.exam-room-auto { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dimmer); font-size: 12px; }
.exam-room-auto i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(52,224,161,.09); }
.exam-room-table-wrap { overflow-x: auto; padding: 0 12px 12px; }
@media (max-width: 900px) { .exam-room-create-layout { grid-template-columns: 1fr; } .exam-room-create-help { position: static; } }
@media (max-width: 640px) { .exam-room-choice-grid { grid-template-columns: 1fr; } .exam-room-form, .exam-room-join-panel { padding: 18px; } .exam-room-toolbar-actions { width: 100%; } .exam-room-toolbar-actions > * { flex: 1 1 100%; } .exam-room-toolbar-actions .btn { width: 100%; } .exam-room-roster-head { align-items: flex-start; flex-direction: column; } }

.results-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, .7fr)) minmax(300px, 1.5fr);
  gap: 12px;
  margin-bottom: 24px;
}
.results-kpi, .results-distribution {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  padding: 18px;
}
.results-kpi { display: flex; min-height: 138px; flex-direction: column; justify-content: center; }
.results-kpi strong { margin: 8px 0 4px; color: var(--text); font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.results-kpi small, .results-distribution small { color: var(--text-dimmer); }
.results-kpi-label { color: var(--text-dim); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.results-kpi--primary { border-color: rgba(34,211,238,.28); box-shadow: inset 0 1px rgba(34,211,238,.08); }
.results-kpi--primary strong { color: var(--cyan); }
.results-kpi--warning strong { color: #fbbf24; }
.results-distribution-head, .results-band { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.results-distribution-head { margin-bottom: 12px; font-weight: 800; }
.results-band { margin-top: 9px; color: var(--text-dim); font-size: 11.5px; }
.results-band > span { width: 102px; }
.results-band > div { flex: 1; height: 6px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.results-band i { display: block; height: 100%; min-width: 2px; border-radius: inherit; }
.results-band b { width: 22px; color: var(--text); text-align: right; }
@media (max-width: 1100px) { .results-overview { grid-template-columns: repeat(3, 1fr); } .results-distribution { grid-column: 1 / -1; } }
@media (max-width: 680px) { .results-overview { grid-template-columns: 1fr 1fr; } .results-distribution { grid-column: 1 / -1; } .results-kpi { min-height: 112px; padding: 14px; } }
@media (max-width: 420px) { .results-overview { grid-template-columns: 1fr; } .results-distribution { grid-column: auto; } }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 16px; text-align: center; }
.stat-num { font-size: 24px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-dimmer); margin-top: 2px; }

.answer-review { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.answer-review li { padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--text-dim); }
.answer-review li.is-correct { background: rgba(52, 224, 161, 0.1); color: var(--green); }
.answer-review li.is-wrong { background: rgba(251, 113, 133, 0.1); color: #fb7185; }

/* ---------- Two-column layout (desktop only — stacks on narrow screens) ---------- */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 800px) {
  .two-col-grid { grid-template-columns: 1fr; }
}

/* ---------- Question image (results review) ---------- */
.question-image { display: block; max-width: 100%; max-height: 320px; width: auto; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 10px; }

/* ---------- Card & list ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card + .card { margin-top: 20px; }

.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.list-row:last-child { border-bottom: none; }
a.list-row { transition: background 0.15s ease; }
a.list-row:hover { background: var(--surface-hover); }
.list-row-title { font-weight: 600; color: var(--text); }
.list-row-meta { font-size: 13.5px; color: var(--text-dimmer); margin-top: 3px; }
.list-empty { padding: 40px 20px; text-align: center; color: var(--text-dimmer); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field-label,
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field textarea,
.field select,
input.field-input,
select.field-input,
textarea.field-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus,
input.field-input:focus, select.field-input:focus, textarea.field-input:focus { border-color: var(--cyan); }
.field-error { color: #fb7185; font-size: 13px; margin-top: 6px; }
.field-hint { color: var(--text-dimmer); font-size: 12.5px; margin-top: 6px; }
.field-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.answer-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.answer-row { display: flex; align-items: center; gap: 10px; }
.answer-row .field-input { flex: 1; }

/* ---------- Buttons ---------- */
.btn-danger { background: rgba(251, 113, 133, 0.12); border: 1px solid rgba(251, 113, 133, 0.35); color: #fb7185; }
.btn-danger:hover { background: rgba(251, 113, 133, 0.2); }
.btn-sm { padding: 7px 16px; font-size: 13.5px; }
.link-danger { color: #fb7185; background: none; border: none; cursor: pointer; font-size: inherit; padding: 0; }
.link-action { color: var(--cyan); background: none; border: none; cursor: pointer; font-size: inherit; padding: 0; }

/* ---------- Feedback ---------- */
.alert { padding: 13px 18px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.alert-success { background: rgba(52, 224, 161, 0.1); border: 1px solid rgba(52, 224, 161, 0.3); color: var(--green); }
.alert-error { background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.3); color: #fb7185; }
.badge-danger { background: rgba(251, 113, 133, 0.12); color: #fb7185; border: 1px solid rgba(251, 113, 133, 0.3); }
.badge-warn { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-strong { background: rgba(251, 113, 133, 0.25); color: #fecdd3; font-weight: 700; }
.badge-flags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge-flags span, .badge-danger, .badge-warn, .badge-strong { font-size: 12px; padding: 3px 10px; border-radius: 999px; }

/* ---------- Auth pages ---------- */
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-logo { margin-bottom: 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .card { padding: 32px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
}
.pagination a:hover { background: var(--surface-hover); color: var(--text); }
.pagination .is-active { background: var(--gradient-main); color: #060a1f; border-color: transparent; font-weight: 700; }
.pagination .is-disabled { opacity: 0.35; }

/* ---------- Modal (account deletion confirm, etc.) ---------- */
.modal-overlay { background: rgba(4, 6, 20, 0.78); backdrop-filter: blur(2px); }
.modal-panel { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); }
.modal-panel h2 { color: var(--text); }
.modal-panel p { color: var(--text-dim); }

/* ---------- Light theme for the app (dashboard + auth pages) ----------
   The landing page loads style.css directly and keeps its original dark
   theme untouched — this override only applies inside body.dash-body, so
   the app reads as a clearly distinct, brighter workspace. */
body.dash-body {
  --bg: #f5f6fb;
  --bg-alt: #eceefa;
  --surface: #ffffff;
  --surface-hover: #f0f2fa;
  --border: #e1e4f0;
  --text: #1a1f36;
  --text-dim: #565d78;
  --text-dimmer: #8890a8;
  --cyan: #0e7490;
  --green: #15803d;
  --purple: #6d28d9;
  --amber: #b45309;
  --shadow-glow: 0 0 40px rgba(14, 116, 144, 0.1);
}

body.dash-body .dash-nav { background: rgba(255, 255, 255, 0.92); }
body.dash-body .nav-dropdown { background: #ffffff; box-shadow: 0 20px 40px rgba(20, 24, 50, 0.14); }

body.dash-body .answer-review li.is-wrong { background: rgba(220, 38, 38, 0.08); color: #b91c1c; }
body.dash-body .field-error { color: #b91c1c; }
body.dash-body .btn-danger { background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.3); color: #b91c1c; }
body.dash-body .btn-danger:hover { background: rgba(220, 38, 38, 0.14); }
body.dash-body .link-danger { color: #b91c1c; }
body.dash-body .alert-error { background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.25); color: #b91c1c; }
body.dash-body .badge-danger { background: rgba(220, 38, 38, 0.1); color: #b91c1c; border-color: rgba(220, 38, 38, 0.25); }
body.dash-body .badge-strong { background: rgba(220, 38, 38, 0.14); color: #991b1b; }
body.dash-body .pagination .is-active { color: #ffffff; }

/* Help widget (teacher FAQ chat) — no AI, canned Q&A loaded once from /teacher/help/topics
   and filtered client-side; see resources/views/components/help-chat-widget.blade.php */
.help-widget-btn {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gradient-main); color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow), 0 6px 18px rgba(0, 0, 0, 0.18);
}
.help-widget-panel {
  position: fixed; right: 24px; bottom: 88px; z-index: 60;
  width: min(360px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 140px));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(20, 24, 50, 0.2);
  display: none; flex-direction: column; overflow: hidden;
}
.help-widget-panel.is-open { display: flex; }
.help-widget-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text);
  flex: none;
}
.help-widget-close { background: none; border: none; cursor: pointer; color: var(--text-dimmer); font-size: 18px; line-height: 1; }
.help-widget-search { padding: 10px 14px; border-bottom: 1px solid var(--border); flex: none; }
.help-widget-search input.field-input { margin: 0; }
.help-widget-body { overflow-y: auto; padding: 8px 10px; flex: 1 1 auto; }
.help-widget-category { border: none; margin-bottom: 4px; }
.help-widget-category > summary {
  cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--text-dimmer); text-transform: uppercase; padding: 8px 6px 4px;
}
.help-widget-category > summary::-webkit-details-marker { display: none; }
.help-widget-q { border: none; border-bottom: 1px solid var(--border); padding: 2px 6px; }
.help-widget-q:last-child { border-bottom: none; }
.help-widget-q > summary {
  cursor: pointer; list-style: none; padding: 9px 4px; font-size: 14px; color: var(--text);
  display: flex; gap: 8px; align-items: baseline;
}
.help-widget-q > summary::before { content: '?'; color: var(--cyan); font-weight: 700; flex: none; }
.help-widget-q > summary::-webkit-details-marker { display: none; }
.help-widget-a { padding: 0 4px 12px 22px; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.help-widget-empty { padding: 30px 16px; text-align: center; color: var(--text-dimmer); font-size: 13.5px; }
