﻿:root {
  --blue: #0b63ce;
  --blue-dark: #073f88;
  --blue-soft: #dcecff;
  --sky: #eaf4ff;
  --ink: #102033;
  --muted: #5a6a7f;
  --line: #d8e3f0;
  --card: #ffffff;
  --soft: #f5f8fc;
  --success: #0f7b4f;
  --danger: #b3261e;
  --warning: #8a5a00;
  --shadow: 0 18px 48px rgba(16, 32, 51, 0.10);
  --shadow-soft: 0 8px 24px rgba(16, 32, 51, 0.07);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(234, 244, 255, 0.85) 0, rgba(245, 248, 252, 0.96) 360px, var(--soft) 100%);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  letter-spacing: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-menu a,
.link-button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
}

.nav-menu a:hover,
.link-button:hover {
  background: var(--sky);
  color: var(--blue-dark);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 1.35rem;
  padding: 7px 12px;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.lang-btn {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 7px 10px;
}

.lang-btn.active {
  background: var(--blue);
  color: #fff;
}

.section-band {
  background: linear-gradient(180deg, #ffffff 0%, #edf6ff 100%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 34px;
  align-items: center;
  padding: 72px max(16px, calc((100% - 1120px) / 2)) 56px;
  min-height: 520px;
}

.hero h1 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(2.05rem, 4.5vw, 4.05rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.hero p { color: var(--muted); font-size: 1.08rem; }

.compact-hero {
  min-height: 390px;
  padding-top: 54px;
  padding-bottom: 46px;
}

.home-hub {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin-top: 28px;
  padding: 34px;
}

.home-hub .section-heading,
.home-hub .search-box,
.home-hub .section-launcher,
.home-hub .home-job-list {
  width: min(100%, 1060px);
  margin-left: auto;
  margin-right: auto;
}

.home-sections a {
  justify-content: flex-start;
}

.home-job-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.home-job-card {
  display: grid;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-dark);
  min-height: 112px;
  padding: 20px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.home-job-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.home-job-card::after {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  margin-top: 4px;
}

.home-job-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-panel,
.guide-panel,
.info-card,
.post-card,
.auth-card,
.admin-form,
.post-detail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  border-top: 4px solid var(--blue);
  padding: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 16px;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.btn.primary { background: var(--blue); color: #fff; }
.btn.secondary { background: #fff; border-color: var(--line); color: var(--blue-dark); }
.btn.small { min-height: 36px; padding: 8px 12px; font-size: 0.9rem; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }

.hero-actions,
.button-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.controls {
  display: grid;
  gap: 16px;
  padding: 28px 0 8px;
}

.search-box span,
label {
  color: var(--blue-dark);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  margin-top: 6px;
  padding: 12px 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 99, 206, 0.12);
  outline: 0;
}

textarea { resize: vertical; }

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  padding: 9px 14px;
}

.filter-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

section.wrap,
.section-band .wrap {
  padding: 54px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2,
.guide-panel h2,
.post-detail h1 {
  margin: 0 0 8px;
  color: var(--blue-dark);
  line-height: 1.2;
}

.card-grid,
.exam-grid,
.detail-grid {
  display: grid;
  gap: 18px;
}

.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.exam-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.post-card,
.info-card,
.syllabus-card,
.guide-panel {
  padding: 22px;
}

.exam-search {
  display: block;
  margin-bottom: 18px;
}

.exam-directory {
  display: grid;
  gap: 18px;
}

.exam-detail-card {
  display: grid;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.exam-detail-card h3 {
  color: var(--blue-dark);
  font-size: 1.45rem;
  margin: 0 0 8px;
}

.exam-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.exam-detail-grid div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.exam-detail-grid strong,
.exam-detail-card strong {
  color: var(--blue-dark);
}

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 292px;
}

.post-card h3,
.info-card h3,
.syllabus-card h3 {
  margin: 0 0 8px;
  color: var(--blue-dark);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.badge {
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 9px;
}

.post-card p { color: var(--muted); }
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.syllabus-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

ul { padding-left: 20px; }

.warning {
  border-left: 4px solid var(--warning);
  background: #fff7e6;
  color: #684200;
  font-weight: 800;
  padding: 10px 12px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.official-links {
  display: grid;
  gap: 10px;
}

.official-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sky);
  color: var(--blue-dark);
  font-weight: 800;
  padding: 12px;
  text-decoration: none;
}

.official-links.compact {
  margin-top: 16px;
}

.official-links.compact a {
  padding: 10px 12px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}

summary {
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 800;
}

.footer {
  background: var(--blue-dark);
  color: #dcecff;
  padding: 42px 0;
}

.footer h2,
.footer h3 { color: #fff; margin-top: 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 22px;
}

.post-page { padding: 42px 0; }
.post-detail { padding: 28px; margin-bottom: 34px; }
.post-content { white-space: pre-line; }
.loading { color: var(--muted); }

.hidden { display: none !important; }

.content-section.collapsed {
  display: none;
}

.section-launcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 0 8px;
}

.section-launcher button,
.section-launcher a {
  justify-content: flex-start;
  min-height: 54px;
  padding-left: 18px;
  padding-right: 18px;
}

.admin-body { background: #eef5fc; }
.admin-layout { min-height: calc(100vh - 67px); }
.auth-panel {
  display: grid;
  min-height: calc(100vh - 67px);
  place-items: center;
  padding: 24px;
}
.auth-card { width: min(520px, 100%); padding: 26px; }
.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 54px;
}
.admin-sidebar {
  position: sticky;
  top: 82px;
  height: fit-content;
  background: var(--blue-dark);
  border-radius: 8px;
  color: #fff;
  padding: 20px;
}
.admin-sidebar a {
  display: block;
  border-radius: 8px;
  color: #dcecff;
  font-weight: 800;
  padding: 10px;
  text-decoration: none;
}
.admin-sidebar a:hover { background: rgba(255, 255, 255, 0.12); }
.admin-main { display: grid; gap: 22px; }
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.dashboard-cards article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.dashboard-cards span {
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 900;
}
.admin-helper {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sky);
  color: var(--blue-dark);
  margin-top: 16px;
  padding: 12px;
}
.admin-helper p {
  margin: 0 0 6px;
}
.admin-helper p:last-child {
  margin-bottom: 0;
}
.admin-helper code {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}
.admin-quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.admin-quick-links h2 {
  color: var(--blue-dark);
  margin: 0 0 6px;
}
.admin-form { padding: 24px; }
.form-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.form-message { min-height: 24px; font-weight: 800; }
.form-message.success { color: var(--success); }
.form-message.error { color: var(--danger); }
.admin-post-list { display: grid; gap: 12px; }
.admin-post-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.admin-post-item h3 { margin: 0 0 4px; color: var(--blue-dark); }
.admin-actions { display: flex; gap: 8px; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .nav-menu {
    position: absolute;
    top: 68px;
    right: 16px;
    display: none;
    width: min(320px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 8px;
  }
  .nav-menu.open,
  .nav-menu.always-open {
    display: flex;
    position: absolute;
    flex-direction: column;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px;
  }
  .language-switch {
    grid-column: 1 / -1;
    width: fit-content;
    justify-self: stretch;
    justify-content: center;
  }
  .hero,
  .two-col,
  .dashboard {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 44px; min-height: auto; }
  .card-grid,
  .exam-grid,
  .detail-grid,
  .exam-detail-grid,
  .section-launcher,
  .home-job-list,
  .dashboard-cards,
  .admin-quick-links,
  .form-grid.two,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .admin-sidebar { position: static; }
}

@media (max-width: 520px) {
  .site-header { padding: 10px 16px; gap: 10px; }
  .brand { font-size: 0.98rem; }
  .brand-mark { width: 40px; height: 40px; }
  .hero { padding-left: 16px; padding-right: 16px; gap: 20px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .home-hub {
    width: min(100% - 24px, 1120px);
    padding: 20px 16px;
  }
  .home-job-card {
    padding: 18px;
  }
  .language-switch {
    width: 100%;
  }
  .lang-btn {
    flex: 1;
  }
  .post-card,
  .info-card,
  .syllabus-card,
  .guide-panel,
  .post-detail,
  .admin-form {
    padding: 18px;
  }
  .form-title-row,
  .admin-post-item {
    grid-template-columns: 1fr;
    display: grid;
  }
  .post-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-left: -2px;
    margin-right: -2px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .post-actions .btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .post-actions .btn.small {
    min-height: 40px;
    padding: 9px 12px;
  }
}


.notes-workspace { display: grid; gap: 22px; }
.notes-toolbar { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 16px; align-items: end; }
.notes-select-box select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; font: inherit; color: var(--blue-dark); background: #fff; }
.notes-chip-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.notes-chip { border: 1px solid var(--line); background: #fff; color: var(--blue-dark); border-radius: 999px; padding: 10px 14px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.notes-chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.notes-pdf-viewer { background: #dfe8f4; border: 1px solid var(--line); border-radius: 8px; padding: 18px; max-height: 780px; overflow: auto; box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.pdf-topbar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #0f4c97; color: #fff; border-radius: 8px; padding: 12px 14px; margin-bottom: 18px; }
.pdf-topbar div { display: grid; gap: 2px; }
.pdf-topbar span { font-size: .85rem; opacity: .9; }
.notes-page { max-width: 760px; min-height: 520px; margin: 0 auto 18px; background: #fff; color: #172033; border-radius: 4px; box-shadow: 0 12px 30px rgba(15, 38, 66, .16); padding: 34px 42px; }
.notes-page-head { display: flex; justify-content: space-between; gap: 12px; color: #667085; border-bottom: 1px solid #d9e2ef; padding-bottom: 10px; margin-bottom: 22px; font-size: .86rem; }
.notes-page h3 { color: var(--blue-dark); margin-bottom: 16px; }
.notes-page li { margin-bottom: 12px; line-height: 1.7; }
@media (max-width: 760px) { .notes-toolbar { grid-template-columns: 1fr; } .notes-pdf-viewer { padding: 10px; max-height: none; } .notes-page { min-height: auto; padding: 24px 20px; } .pdf-topbar { align-items: flex-start; flex-direction: column; } }
.notes-intro { background: #eef6ff; border-left: 4px solid var(--blue); padding: 12px 14px; border-radius: 4px; line-height: 1.7; }
.notes-topic-block { border: 1px solid #d9e2ef; border-radius: 8px; padding: 16px 18px; margin: 16px 0; background: #fbfdff; }
.notes-topic-block h4 { margin-bottom: 10px; color: var(--blue-dark); }
.notes-remember { background: #f7fbef; border: 1px solid #d7e9b8; color: #35550d; border-radius: 8px; padding: 12px 14px; margin-top: 16px; line-height: 1.6; }

/* Mock test page */
.nav-menu a.active-link { background: var(--sky); color: var(--blue-dark); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost { background: #fff; color: var(--blue-dark); border: 1px dashed var(--line); }
.mock-body { user-select: none; }
.mock-hero { background: radial-gradient(circle at 78% 22%, rgba(11,99,206,.15), transparent 32%), linear-gradient(180deg, #fff 0%, #eaf4ff 100%); padding: 58px 0 36px; }
.mock-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .75fr); gap: 28px; align-items: center; }
.mock-hero h1 { color: var(--blue-dark); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.12; margin: 0 0 12px; }
.mock-hero p { color: var(--muted); font-size: 1.05rem; }
.mock-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.mock-stats-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 18px; }
.mock-stats-card div { background: var(--sky); border-radius: 8px; padding: 16px 12px; text-align: center; }
.mock-stats-card strong { display: block; color: var(--blue-dark); font-size: 2rem; line-height: 1; }
.mock-stats-card span { color: var(--muted); font-weight: 800; font-size: .86rem; }
.mock-app { padding: 32px 0 48px; }
.mock-panel { background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-soft); padding: 24px; }
.compact-heading { margin-bottom: 18px; }
.mock-exam-grid, .mock-test-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mock-exam-card, .mock-test-card, .instruction-card, .question-card, .review-card, .score-grid article { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-soft); }
.mock-exam-card, .mock-test-card { display: flex; flex-direction: column; gap: 12px; min-height: 245px; padding: 18px; }
.mock-exam-card h3, .mock-test-card h3 { color: var(--blue-dark); margin: 0; }
.mock-exam-card p, .mock-test-card p { color: var(--muted); margin: 0; }
.mock-card-top, .test-meta-row { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .85rem; font-weight: 800; }
.subject-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.subject-pills span { background: var(--sky); border: 1px solid var(--line); border-radius: 999px; color: var(--blue-dark); font-size: .78rem; font-weight: 800; padding: 5px 8px; }
.mock-toolbar, .result-summary, .question-topbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 18px; }
.mock-toolbar h2, .result-summary h2, .question-topbar h2 { color: var(--blue-dark); margin: 0; }
.instruction-card { max-width: 760px; margin: 0 auto; padding: 26px; }
.instruction-card h2 { color: var(--blue-dark); margin-top: 0; }
.test-shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; }
.test-sidebar { align-self: start; position: sticky; top: 86px; display: grid; gap: 14px; }
.timer-card { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; border-radius: 8px; padding: 18px; text-align: center; box-shadow: var(--shadow-soft); }
.timer-card span { display: block; font-weight: 800; opacity: .85; }
.timer-card strong { display: block; font-size: 2rem; letter-spacing: .04em; }
.mini-score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-score-grid div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; }
.mini-score-grid strong { display: block; color: var(--blue-dark); font-size: 1.25rem; }
.mini-score-grid span { color: var(--muted); font-size: .75rem; font-weight: 800; }
.question-palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-height: 390px; overflow: auto; padding-right: 4px; }
.palette-btn { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--blue-dark); cursor: pointer; font-weight: 900; min-height: 38px; }
.palette-btn.current { border-color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.palette-btn.answered { background: #eaf8f1; border-color: #a6d9bf; color: var(--success); }
.question-stage { min-width: 0; }
.question-card { min-height: 390px; padding: 26px; }
.question-subject { display: inline-flex; background: var(--sky); border-radius: 999px; color: var(--blue-dark); font-weight: 900; padding: 6px 12px; margin-bottom: 14px; }
.question-card h3 { color: var(--ink); font-size: 1.2rem; line-height: 1.55; margin-top: 0; }
.option-list { display: grid; gap: 12px; margin-top: 22px; }
.option-item { display: grid; grid-template-columns: auto 38px 1fr; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; padding: 13px 14px; }
.option-item:hover, .option-item.selected { border-color: var(--blue); background: #f2f8ff; }
.option-item input { width: 18px; height: 18px; }
.option-item span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 900; }
.option-item strong { font-weight: 750; color: var(--ink); }
.question-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.score-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 24px; }
.score-grid article { padding: 18px; text-align: center; }
.score-grid strong { display: block; color: var(--blue-dark); font-size: 1.9rem; line-height: 1; }
.score-grid span { color: var(--muted); font-weight: 900; }
.review-head { margin: 10px 0 16px; }
.review-head h2 { color: var(--blue-dark); margin: 0; }
.review-list { display: grid; gap: 14px; }
.review-card { border-left-width: 5px; padding: 18px; }
.review-card.correct { border-left-color: var(--success); }
.review-card.wrong { border-left-color: var(--danger); }
.review-card.left { border-left-color: var(--warning); }
.review-title { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-weight: 900; }
.review-title span, .review-title em { background: var(--sky); border-radius: 999px; color: var(--blue-dark); font-style: normal; padding: 4px 9px; }
.review-card h3 { color: var(--ink); margin-bottom: 8px; }
@media (max-width: 980px) { .mock-exam-grid, .mock-test-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .test-shell { grid-template-columns: 1fr; } .test-sidebar { position: static; order: 2; } .question-stage { order: 1; } .score-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .mock-hero-grid, .mock-stats-card, .mock-exam-grid, .mock-test-grid, .score-grid { grid-template-columns: 1fr; } .mock-panel { padding: 16px; } .mock-toolbar, .result-summary, .question-topbar, .question-actions { align-items: stretch; flex-direction: column; } .question-card { min-height: auto; padding: 18px; } .option-item { grid-template-columns: auto 32px 1fr; padding: 12px; } .question-palette { grid-template-columns: repeat(8, 1fr); max-height: 190px; } .timer-card strong { font-size: 1.7rem; } }
.review-locked { background: #fff7e6; border-left: 4px solid var(--warning); border-radius: 6px; color: #684200; font-weight: 800; padding: 10px 12px; }
