@charset "UTF-8";
:root {
  --paper: #f8f9fc;
  --white: #ffffff;
  --ink: #202838;
  --muted: #697386;
  --line: #e2e7f0;
  --accent: #002fa7;
  --wash: #eef2fc;
  --orange: #a75b32;
  --serif: Georgia, "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--accent);
}
button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 17px;
  background: var(--white);
  color: var(--ink);
  transition: background 0.15s;
}
button:hover {
  background: var(--wash);
}
button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
button.primary:hover {
  background: #002787;
}
button.ghost {
  background: transparent;
  border-color: transparent;
}
button.danger {
  color: #9a4436;
}
button.small {
  padding: 7px 11px;
  font-size: 13px;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  border-radius: 7px;
  max-width: 100%;
}
textarea {
  width: 100%;
  min-height: 150px;
  line-height: 1.8;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  text-wrap: balance;
}
h1 {
  font-size: 36px;
  line-height: 1.4;
  margin-bottom: 12px;
}
h2 {
  font-size: 25px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.8;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 15px;
}
.loading {
  padding: 40px;
}
.small-text {
  font-size: 12px;
  line-height: 1.7;
}
.stack {
  display: grid;
  gap: 18px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.spacer {
  flex: 1;
}
.rule {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.badge {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
  color: var(--muted);
}
.badge.accent {
  color: var(--accent);
  background: var(--wash);
  border-color: var(--wash);
}
.badge.amber {
  color: var(--orange);
  background: #f5ece0;
  border-color: #f5ece0;
}
.notice {
  padding: 14px 18px;
  border-left: 3px solid #9aaee1;
  background: #f3f5fb;
  font-size: 13px;
  line-height: 1.9;
}
.error {
  color: #9a4436;
  background: #f8eae4;
  padding: 14px;
  border-radius: 6px;
  white-space: pre-wrap;
}
.text-block {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.95;
  font-size: 16px;
}
.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 27px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #202838;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 40px #0002;
  z-index: 20;
  max-width: 90vw;
  display: none;
}
#toast.show {
  display: block;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.login-art {
  background: #f4f6fc;
  color: #202838;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-art .eyebrow {
  color: #002fa7;
}
.login-art h1 {
  font-size: 55px;
  max-width: 450px;
  z-index: 1;
}
.login-art p {
  color: #697386;
  max-width: 360px;
}
.gear-art {
  width: 280px;
  height: 280px;
  border: 1px solid #a6b6df;
  border-radius: 50%;
  position: absolute;
  right: -50px;
  top: 32%;
  opacity: 0.35;
  box-shadow:
    0 0 0 30px #f4f6fc,
    0 0 0 31px #a6b6df,
    0 0 0 70px #f4f6fc,
    0 0 0 71px #a6b6df;
}
.gear-art:before,
.gear-art:after {
  content: "";
  width: 450px;
  height: 1px;
  background: #a6b6df;
  position: absolute;
  top: 50%;
  left: -85px;
  transform: rotate(35deg);
}
.gear-art:after {
  transform: rotate(-55deg);
}
.login-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-box {
  width: 360px;
}
.login-box h2 {
  font-size: 32px;
}
.login-box form {
  display: grid;
  gap: 22px;
  margin: 30px 0;
}
.login-box button {
  margin-top: 6px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 2px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  margin-right: 10px;
  font-family: Georgia;
  letter-spacing: 0;
  font-size: 18px;
}
.shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  font-size: 19px;
}
.sidebar .brand-mark {
  width: 28px;
  height: 28px;
  font-size: 15px;
}
.sidebar .eyebrow {
  font-size: 9px;
  margin: 10px 0 38px 40px;
  letter-spacing: 1px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 13px 14px;
  font-size: 14px;
}
.nav button.active {
  background: var(--wash);
  color: var(--accent);
  font-weight: 600;
}
.nav button .nav-symbol {
  display: inline-block;
  width: 28px;
  font-size: 18px;
}
.sidebar-footer {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  padding: 20px 8px 0;
  line-height: 1.9;
}
.sidebar-footer .status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #002fa7;
  border-radius: 50%;
  margin-right: 8px;
}
.workspace {
  padding: 0 46px 60px;
  max-width: 1500px;
  width: 100%;
  margin: auto;
}
.topbar {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 35px;
}
.page-head {
  margin: 8px 0 26px;
}
.page-head p {
  color: var(--muted);
  font-size: 14px;
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
}
.hero {
  padding: 32px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}
.hero h2 {
  font-size: 30px;
  line-height: 1.5;
  max-width: 450px;
}
.hero .row {
  margin-top: 28px;
}
.hero .eyebrow {
  color: #002fa7;
}
.today {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.today .big {
  font: 54px Georgia;
  color: var(--accent);
}
.today .counts {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 25px 0;
}
.metric {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.metric .number {
  font: 32px Georgia;
  margin: 10px 0;
}
.metric .label {
  font-size: 12px;
  color: var(--muted);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 34px 0 18px;
}
.section-head h2 {
  margin: 0;
  font-size: 23px;
}
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.chapter {
  padding: 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 110px;
}
.chapter .num {
  font: 11px Georgia;
  color: var(--muted);
  letter-spacing: 1px;
}
.chapter .title {
  font-size: 14px;
}
.chapter .sub {
  font-size: 11px;
  color: var(--muted);
}
.filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}
.filter-panel .search {
  grid-column: span 2;
}
.filter-panel .filter-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 6px;
}
.list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.question-row {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.question-row .index {
  font: 13px Georgia;
  color: var(--muted);
  min-width: 22px;
}
.question-row .summary {
  flex: 1;
  min-width: 0;
}
.question-row .summary p {
  font-size: 15px;
  margin: 0 0 8px;
  line-height: 1.7;
}
.question-row .summary .row {
  gap: 8px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  margin-top: 25px;
  font-size: 13px;
}
.study-wrap {
  max-width: 880px;
  margin: 0 auto;
}
.study-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.progress-track {
  height: 3px;
  background: var(--line);
  margin-bottom: 28px;
}
.progress-track progress {
  appearance: none;
  border: 0;
  width: 100%;
  height: 3px;
  display: block;
}
.progress-track progress::-webkit-progress-bar {
  background: var(--line);
}
.progress-track progress::-webkit-progress-value {
  background: var(--accent);
}
.card {
  padding: 38px 42px;
  box-shadow: 0 6px 24px #182a5307;
}
.card .stem {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.85;
  white-space: pre-wrap;
  margin: 27px 0;
}
.options {
  display: grid;
  gap: 12px;
}
.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}
.option:has(input:checked) {
  background: var(--wash);
  border-color: #829bd8;
}
.option input {
  margin-top: 7px;
  accent-color: var(--accent);
}
.option .key {
  color: var(--muted);
  font-family: Georgia;
}
.blanks {
  display: grid;
  gap: 15px;
}
.blanks label {
  font-size: 14px;
}
.card-actions {
  margin-top: 28px;
}
.answer {
  margin-top: 28px;
  border-top: 1px dashed #c7d1e8;
  padding-top: 25px;
}
.answer h3 {
  color: var(--accent);
  margin: 25px 0 12px;
}
.answer .score {
  display: inline-block;
  background: var(--wash);
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 14px;
}
.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.review-actions button {
  flex: 1;
  min-width: 120px;
}
.review-actions small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  opacity: 0.65;
}
.details {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 13px;
}
.details summary {
  cursor: pointer;
  color: var(--muted);
}
.details p {
  margin-top: 15px;
}
.below-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}
.coverage-list {
  display: grid;
  gap: 12px;
}
.coverage-list details {
  background: var(--white);
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.coverage-list summary {
  cursor: pointer;
  line-height: 1.8;
}
.coverage-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 13px;
}
.coverage-row:first-of-type {
  margin-top: 15px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}
.admin-grid pre {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
  max-height: 400px;
  overflow: auto;
}
.history-row {
  border-top: 1px solid var(--line);
  padding: 15px 0;
  font-size: 13px;
  display: grid;
  gap: 8px;
}
.file-input {
  width: 100%;
  font-size: 13px;
}
.hidden {
  display: none !important;
}
@media (min-width: 1600px) {
  .workspace {
    padding-left: 65px;
    padding-right: 65px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    padding: 28px 15px;
  }
  .shell {
    grid-template-columns: 195px 1fr;
  }
  .workspace {
    padding: 0 25px 40px;
  }
  .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  .today {
    display: none;
  }
  .filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .filter-panel .search {
    grid-column: span 3;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  h1 {
    font-size: 28px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }
  .sidebar .eyebrow,
  .sidebar-footer {
    display: none;
  }
  .nav {
    display: flex;
    overflow: auto;
    gap: 3px;
    margin-top: 16px;
  }
  .nav button {
    font-size: 12px;
    padding: 9px 11px;
    white-space: nowrap;
  }
  .nav-symbol {
    display: none !important;
  }
  .workspace {
    padding: 0 17px 30px;
  }
  .topbar {
    height: 62px;
    margin-bottom: 24px;
  }
  .hero {
    padding: 24px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chapter {
    padding: 14px;
  }
  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 17px;
  }
  .filter-panel .search {
    grid-column: span 2;
  }
  .question-row {
    padding: 16px 13px;
    gap: 10px;
  }
  .question-row .index {
    display: none;
  }
  .question-row button {
    padding: 9px;
  }
  .question-row .summary p {
    font-size: 14px;
  }
  .card {
    padding: 23px 20px;
  }
  .card .stem {
    font-size: 21px;
  }
  .panel {
    border-radius: 9px;
  }
  .login-layout {
    display: block;
  }
  .login-art {
    padding: 26px 30px;
    min-height: 220px;
  }
  .login-art h1 {
    font-size: 30px;
    margin: 18px 0 8px;
  }
  .login-art p,
  .login-art .footer-note {
    display: none;
  }
  .login-form-area {
    padding: 32px 25px;
  }
  .login-box h2 {
    font-size: 27px;
  }
  .gear-art {
    width: 130px;
    height: 130px;
    right: -30px;
    top: 20%;
  }
  .admin-grid .panel {
    padding: 19px;
  }
  .text-block {
    font-size: 15px;
  }
  .review-actions {
    gap: 7px;
  }
  .review-actions button {
    min-width: 80px;
    padding: 10px;
  }
  .topbar .small-text {
    display: none;
  }
}
.today {
  gap: 12px;
}
@media (max-width: 1100px) {
  .today {
    display: flex;
  }
  .welcome-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}
@media (max-width: 720px) {
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  .today {
    padding: 20px;
  }
  .today .big {
    font-size: 40px;
  }
  .today p {
    margin-bottom: 0;
  }
}

/* White space leads; Klein blue is reserved for focused accents. */
.sidebar,
.login-form-area {
  background: var(--white);
}
.brand-mark {
  color: var(--accent);
}
.hero {
  border-top: 2px solid var(--accent);
}
.login-art {
  border-right: 1px solid var(--line);
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
}
.today .big {
  color: var(--ink);
}
@media (max-width: 720px) {
  .login-art {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
