* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #eef1f5; color: #1c2530; }
h1 { font-size: 22px; margin: 4px 0 2px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #5b6b7c; margin: 22px 0 8px; }
.muted { color: #8090a0; }
.link { color: #1f6feb; text-decoration: none; font-size: 13px; }

/* ---- app shell ---- */
.shell { display: flex; min-height: 100vh; }
.navtoggle, .scrim { display: none; }
.sidebar { width: 210px; flex: 0 0 210px; background: #fff; border-right: 1px solid #e2e8f0;
  padding: 16px 12px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; padding: 4px 8px 14px; }
.brand .logo { font-size: 20px; }
.navgrp { font-size: 11px; letter-spacing: .06em; color: #9aa7b5; padding: 12px 8px 4px; text-transform: uppercase; }
.navitem { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  color: #47566a; text-decoration: none; font-size: 14px; }
.navitem span { width: 20px; text-align: center; }
.navitem:hover { background: #f0f4f8; }
.navitem.active { background: #e6f1fb; color: #1f6feb; font-weight: 500; }
.signout { margin-top: auto; padding: 9px 10px; color: #8090a0; text-decoration: none; font-size: 13px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff;
  border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 5; }
.hamburger { display: none; font-size: 20px; cursor: pointer; line-height: 1; }
.topbar-title { font-weight: 500; }
.content { padding: 18px 20px; max-width: 780px; width: 100%; }

/* ---- cards / metrics / schedule ---- */
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; margin: 8px 0; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; }
.sched-row { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 5px 0; }
.sched-row .t { margin-left: auto; color: #8090a0; font-size: 13px; }
.badge { font-size: 11px; background: #1f6feb; color: #fff; padding: 2px 8px; border-radius: 20px; }
.next-badge { background: #8090a0; } .muted-badge { background: #c2ccd6; }
.hw { font-size: 10px; background: #ffe3b3; color: #8a5a00; padding: 1px 6px; border-radius: 10px; margin-left: 6px; }

.countdown { border-radius: 12px; padding: 18px 20px; margin: 8px 0 16px; color: #fff; }
.countdown .cd-now { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; opacity: .92; min-height: 14px; }
.countdown .cd-when { font-size: 30px; font-weight: 700; line-height: 1.1; margin: 3px 0; }
.countdown .cd-class { font-size: 15px; opacity: .96; }
.cd-green { background: #1a9d4a; }
.cd-red { background: #d23b3b; }
.cd-none { background: #8090a0; }
.cd-yellow { background: #f2a900; color: #3d2c00; }
.cd-lunch { background: #3730a3; }
.cd-break { background: #0e7490; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0; }
.metric { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px;
  text-decoration: none; color: inherit; }
.metric .l { font-size: 12px; color: #5b6b7c; }
.metric .v { font-size: 24px; font-weight: 600; margin-top: 2px; }
.plus { color: #1a9d4a; } .minus { color: #d23b3b; }

.periods { list-style: none; padding: 0; margin: 0; }
.periods li { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 9px 12px; margin: 6px 0; }
.periods .time { color: #1f6feb; font-weight: 600; margin-right: 10px; font-variant-numeric: tabular-nums; }
.recent { list-style: none; padding: 0; font-size: 14px; }
.recent li { padding: 6px 0; border-bottom: 1px solid #e6ecf2; }

/* ---- class tiles ---- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: #1f6feb; color: #fff; text-decoration: none; padding: 22px; border-radius: 12px; }
.tile-name { font-size: 22px; font-weight: 700; }
.tile-sub { font-size: 12px; opacity: .85; }

/* ---- students ---- */
.students { list-style: none; padding: 0; margin: 0; }
.students li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
.students .sname { flex: 1; font-weight: 500; color: #1c2530; text-decoration: none; }
.students .sname:hover { color: #1f6feb; }
.students .score { font-weight: 700; min-width: 26px; text-align: center; }
.counts { font-size: 12px; color: #8090a0; white-space: nowrap; }
.btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; text-decoration: none; font-size: 22px; font-weight: 700; color: #fff; }
.btn.pos { background: #1a9d4a; } .btn.neg { background: #d23b3b; }
.btn.big { width: auto; flex: 1; font-size: 15px; gap: 6px; }

/* ---- student detail ---- */
.back { display: inline-block; color: #8090a0; text-decoration: none; font-size: 13px; margin-bottom: 6px; }
.quick-log { display: flex; gap: 10px; margin: 12px 0; }
.timeline { list-style: none; padding: 0; }
.timeline li { padding: 8px 0; border-bottom: 1px solid #e6ecf2; font-size: 14px; }
.timeline .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.timeline .dot.plus { background: #1a9d4a; } .timeline .dot.minus { background: #d23b3b; }

/* ---- log form ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip { background: #fff; border: 1px solid #cdd7e2; border-radius: 20px; padding: 9px 14px; cursor: pointer; }
.chip input { display: none; }
.chip.pos:has(input:checked) { background: #1a9d4a; color: #fff; border-color: #1a9d4a; }
.chip.neg:has(input:checked) { background: #d23b3b; color: #fff; border-color: #d23b3b; }
textarea { width: 100%; min-height: 72px; border: 1px solid #cdd7e2; border-radius: 8px; padding: 10px;
  font-family: inherit; font-size: 15px; }
.submit { display: block; width: 100%; border: 0; border-radius: 8px; padding: 14px; color: #fff;
  font-size: 16px; font-weight: 600; margin-top: 12px; cursor: pointer; }
.submit.pos { background: #1a9d4a; } .submit.neg { background: #d23b3b; }
.cancel { display: block; text-align: center; margin-top: 10px; color: #8090a0; text-decoration: none; }
.note { color: #5b6b7c; font-style: italic; font-size: 13px; margin-top: 2px; }
.flash { background: #dff5e6; color: #1a6d38; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }

/* ---- stubs / settings ---- */
.stub { max-width: 560px; }
.stub p { line-height: 1.55; }
.pill { display: inline-block; background: #e6f1fb; color: #1f6feb; font-size: 12px; font-weight: 500;
  padding: 4px 12px; border-radius: 20px; }
.feature-list { line-height: 1.7; }
.setting { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eef2f6; font-size: 14px; }
.setting:last-child { border-bottom: none; }
.setting .ok { color: #1a9d4a; } .setting .warn { color: #c98a00; }

/* ---- schedule (week) ---- */
.periods + h2 { margin-top: 22px; }

/* ---- login ---- */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login { width: 320px; max-width: 90vw; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; }
.login .brand { justify-content: center; margin-bottom: 16px; }
.login input { width: 100%; padding: 12px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 16px; margin-bottom: 12px; }
.login-error { background: #fde2e2; color: #b02a2a; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }

/* ---- reports ---- */
.report-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.report-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 14px 16px; text-decoration: none; color: inherit; }
.report-card:hover { border-color: #1f6feb; }
.report-card.disabled { opacity: .55; }
.rc-icon { font-size: 24px; }
.rc-body { display: flex; flex-direction: column; flex: 1; }
.rc-title { font-weight: 600; }
.rc-sub { font-size: 13px; color: #8090a0; }
.rc-go { font-size: 22px; color: #b0bccb; }

.filters { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 14px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pip { font-size: 13px; padding: 6px 12px; border-radius: 20px; background: #fff; border: 1px solid #cdd7e2;
  color: #47566a; text-decoration: none; }
.pip.on { background: #1f6feb; border-color: #1f6feb; color: #fff; }

.report-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0 14px; }
.report-summary.cols-3 { grid-template-columns: repeat(3, 1fr); }
.rs { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; }
.rs .l { font-size: 12px; color: #5b6b7c; }
.rs .v { font-size: 22px; font-weight: 600; margin-top: 2px; }

.report-rows { display: flex; flex-direction: column; gap: 6px; }
.brow { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 9px 12px; text-decoration: none; color: inherit; }
.brow:hover { border-color: #1f6feb; }
.dotp { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.dot-good { background: #1a9d4a; } .dot-watch { background: #e0a020; } .dot-concern { background: #d23b3b; }
.bname { flex: 1; font-weight: 500; }
.bcounts { font-size: 13px; white-space: nowrap; }
.bnet { font-weight: 700; min-width: 30px; text-align: right; }

.pill { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.pill-good { background: #e6f6ec; color: #1a7d3f; }
.pill-watch { background: #fdf1da; color: #a6720b; }
.pill-concern { background: #fde3e3; color: #b02a2a; }

/* pupil report document */
.report-actions { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.print-btn { background: #1f6feb; color: #fff; border: 0; border-radius: 8px; padding: 9px 14px;
  font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block; }
.doc { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 2px solid #1f6feb; padding-bottom: 12px; }
.doc-title { font-size: 20px; font-weight: 700; }
.doc-sub { font-size: 13px; color: #5b6b7c; margin-top: 2px; }
.doc-meta { text-align: right; font-size: 13px; }
.doc-pupil { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; }
.dp-name { font-size: 18px; font-weight: 600; }
.doc-section { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #5b6b7c;
  margin: 18px 0 8px; border-bottom: 1px solid #e6ecf2; padding-bottom: 4px; }
.breakdown { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-item { background: #f4f7fa; border-radius: 8px; padding: 6px 12px; font-size: 13px; }
.bd-item.plus { background: #e6f6ec; } .bd-item.minus { background: #fde3e3; }
.bd-count { font-weight: 700; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc-table th { text-align: left; color: #5b6b7c; font-weight: 500; font-size: 12px;
  border-bottom: 1px solid #e2e8f0; padding: 6px 8px; }
.doc-table td { padding: 7px 8px; border-bottom: 1px solid #eef2f6; }
.doc-table .ta-r { text-align: right; }

/* ---- lesson prep ---- */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; margin-top: 12px; }
.shelf-book { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.shelf-book img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; border: 1px solid #e2e8f0; }
.shelf-nocover { width: 100%; aspect-ratio: 3/4; border-radius: 8px; background: #1f6feb; color: #fff;
  display: flex; align-items: center; justify-content: center; padding: 8px; text-align: center; font-size: 13px; }
.shelf-title { font-weight: 500; font-size: 13px; margin-top: 6px; }
.shelf-sub { font-size: 11px; color: #8090a0; }
.shelf-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  aspect-ratio: 3/4; border: 1px dashed #cdd7e2; border-radius: 8px; color: #8090a0; text-decoration: none; font-size: 24px; }
.shelf-add span { font-size: 12px; }

.shelf-item { position: relative; }
.shelf-del { position: absolute; top: 5px; right: 5px; margin: 0; }
.shelf-del button { border: 0; background: rgba(0,0,0,.55); color: #fff; width: 28px; height: 28px;
  border-radius: 50%; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; }
.shelf-del button:hover { background: #d23b3b; }
.pagethumb .pdel { position: absolute; top: 3px; left: 4px; border: 0; background: rgba(210,59,59,.92);
  color: #fff; width: 22px; height: 22px; border-radius: 50%; font-size: 15px; line-height: 1; cursor: pointer;
  padding: 0; display: flex; align-items: center; justify-content: center; }
.btn-danger { background: #d23b3b; color: #fff; border: 0; border-radius: 8px; padding: 10px 16px;
  font-size: 14px; cursor: pointer; }

.lp-head { display: flex; gap: 14px; align-items: flex-start; margin: 6px 0 14px; }
.lp-cover { width: 70px; height: 93px; object-fit: cover; border-radius: 6px; border: 1px solid #e2e8f0; }
.lp-range { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; font-size: 13px; color: #5b6b7c; }
.lp-range input { padding: 6px 8px; border: 1px solid #cdd7e2; border-radius: 6px; }

.pagegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.pagethumb { position: relative; cursor: pointer; display: block; }
.pagethumb input { position: absolute; opacity: 0; width: 0; height: 0; }
.pagethumb img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border: 2px solid #e2e8f0; border-radius: 6px; }
.pagethumb input:checked + img { border-color: #1f6feb; box-shadow: 0 0 0 2px #cfe0f7; }
.pagethumb .pnum { position: absolute; bottom: 3px; right: 4px; background: rgba(0,0,0,.6); color: #fff;
  font-size: 10px; padding: 0 5px; border-radius: 8px; }
.pagethumb input:checked ~ .pnum { background: #1f6feb; }

.lp-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 10px 12px;
  background: #e6f1fb; border-radius: 8px; position: sticky; bottom: 0; }

.addform { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.addform label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #5b6b7c; }
.addform input { padding: 9px 10px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 15px; }

.pack.doc h1 { font-size: 20px; }
.pack.doc h2 { text-transform: none; letter-spacing: 0; font-size: 17px; color: #1c2530;
  border-bottom: 1px solid #e6ecf2; padding-bottom: 4px; margin-top: 20px; }
.pack.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.pack.doc th, .pack.doc td { border: 1px solid #e2e8f0; padding: 6px 8px; text-align: left; }
.pack.doc code { background: #f4f7fa; padding: 1px 4px; border-radius: 4px; }

.gen-status { max-width: 460px; margin: 24px auto; text-align: center; }
.gen-bar { height: 10px; background: #e2e8f0; border-radius: 6px; overflow: hidden; margin: 18px 0 10px; }
.gen-bar-fill { height: 100%; width: 0; background: #1f6feb; transition: width .4s ease; }
.gen-stage { font-weight: 500; font-size: 15px; }

.or-divider { display: flex; align-items: center; gap: 10px; margin: 22px 0 6px; color: #8090a0; font-size: 13px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }

/* ---- cadence editor ---- */
.cec-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; margin: 12px 0; background: #fff;
  display: flex; flex-direction: column; gap: 8px; }
.cec-card.add { border-style: dashed; }
.cec-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cec-row label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #5b6b7c; flex: 1; min-width: 120px; }
.cec-row label.cec-sm { flex: 0 0 80px; min-width: 70px; }
.cec-row input { padding: 8px 10px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 14px; }
.cec-term { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12px; color: #5b6b7c; }
.cec-tn { font-weight: 700; color: #1f6feb; width: 26px; }
.cec-term label { display: flex; align-items: center; gap: 3px; }
.cec-term input { width: 58px; padding: 6px 7px; border: 1px solid #cdd7e2; border-radius: 6px; font-size: 13px; }
.cec-actions { display: flex; gap: 8px; margin-top: 4px; }
.cec-actions .btn-danger { padding: 8px 12px; font-size: 13px; }

/* ---- cadence ---- */
.cad-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cad-head-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.cad-card { border: 1px solid #e2e8f0; border-left: 4px solid #cbd5e1; border-radius: 12px; padding: 14px 15px; background: #fff; }
.cad-card.state-green { border-left-color: #2fa860; }
.cad-card.state-amber { border-left-color: #e0a92e; }
.cad-card.state-red   { border-left-color: #d23b3b; }
.cad-card.state-unset { border-left-color: #cbd5e1; }
.cad-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cad-name { font-weight: 600; font-size: 15px; }
.cad-sec { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: #5b6b7c;
  background: #eef2f6; padding: 1px 7px; border-radius: 10px; vertical-align: middle; }
.cad-badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.cad-badge.green { background: #e6f6ec; color: #1c7a45; }
.cad-badge.amber { background: #fcf1d8; color: #8a6412; }
.cad-badge.red   { background: #fde3e3; color: #a52222; }
.cad-badge.unset { background: #eef2f6; color: #6b7a8c; }
.cad-bar { height: 7px; background: #eef2f6; border-radius: 5px; overflow: hidden; margin: 12px 0 5px; }
.cad-bar span { display: block; height: 100%; background: #1f6feb; }
.cad-termline { font-size: 12px; }
.cad-figs { display: flex; gap: 10px; margin: 12px 0 10px; }
.cad-fig { flex: 1; background: #f7f9fb; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; }
.cad-fig.should { background: #eef4fc; }
.cad-lab { font-size: 11px; color: #6b7a8c; text-transform: uppercase; letter-spacing: .03em; }
.cad-pg { font-size: 19px; font-weight: 700; color: #1c2530; }
.cad-pg.none { font-size: 14px; font-weight: 500; color: #8090a0; }
.cad-2nd { font-size: 12px; color: #5b6b7c; }
.cad-set { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #eef2f6; padding-top: 12px; }
.cad-set label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #5b6b7c; }
.cad-set input { padding: 10px 12px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 16px; width: 100%; }
.cad-savebtn { width: 100%; margin: 0; padding: 11px; font-size: 15px; }
.cad-foot { margin-top: 16px; font-size: 12px; }

.cal-form { max-width: 560px; }
.cal-terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.cal-terms label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #5b6b7c; }
.cal-terms input { padding: 8px 10px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 14px; }
.cal-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #cdd7e2; border-radius: 8px;
  font-family: ui-monospace, monospace; font-size: 13px; line-height: 1.5; resize: vertical; }
.cal-form h2 { font-size: 15px; margin: 20px 0 8px; }

/* ---- per-page help ---- */
.pagehelp { border: 1px solid #d7e3f2; background: #f4f8fd; border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.pagehelp-head { width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; padding: 10px 14px; font-size: 13px; font-weight: 600; color: #1f4e8f; cursor: pointer; }
.pagehelp-caret { color: #7ea3d0; }
.pagehelp-body { padding: 0 14px 12px; font-size: 13px; color: #3d5068; line-height: 1.55; }
.pagehelp-body p { margin: 0 0 6px; }
.pagehelp-body strong { color: #1f4e8f; }
.pagehelp-body .tip { color: #5b6b7c; font-size: 12px; }

/* ---- onboarding wizard ---- */
.setup-banner { display: block; background: #eef4fc; border: 1px solid #cfe0f7; color: #1f4e8f;
  border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; text-decoration: none; font-weight: 600; }
.wiz { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.wiz-step { display: flex; align-items: center; gap: 14px; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 14px 16px; background: #fff; text-decoration: none; color: inherit; }
.wiz-step.done { border-color: #b7e4c7; background: #f2fbf5; }
.wiz-step.muted-step { opacity: .6; }
.wiz-tick { width: 34px; height: 34px; border-radius: 50%; background: #eef2f6; color: #5b6b7c;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.wiz-step.done .wiz-tick { background: #2fa860; color: #fff; }
.wiz-step.optional .wiz-tick { background: #fcf1d8; color: #8a6412; }
.wiz-body { display: flex; flex-direction: column; flex: 1; }
.wiz-title { font-weight: 600; font-size: 15px; }
.wiz-sub { font-size: 12px; margin-top: 1px; }
.wiz-go { color: #b0b8c4; font-size: 20px; }
.wiz-done { margin-top: 8px; }
.wiz-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* ---- import names ---- */
.imp-row { display: flex; align-items: center; gap: 10px; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 8px 12px; margin: 6px 0; background: #fff; }
.imp-chk { display: flex; }
.imp-cur { color: #8090a0; min-width: 110px; font-size: 14px; }
.imp-arrow { color: #b0b8c4; }
.imp-new { flex: 1; padding: 9px 11px; border: 1px solid #1f6feb; border-radius: 8px; font-size: 15px; }

/* ---- timetable editor ---- */
.tt-schooldays { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 18px; }
.daychip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 5px 10px;
  border: 1px solid #cdd7e2; border-radius: 8px; cursor: pointer; background: #fff; color: #5b6b7c; }
.daychip input { margin: 0; }
.daychip.on { background: #e6f1fb; border-color: #9dc2ef; color: #1f4e8f; }
.daychip.sm { font-size: 12px; padding: 3px 8px; }
.daychip.hw.on { background: #fcf1d8; border-color: #e6cd8f; color: #8a6412; }
.tt-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; margin: 10px 0; background: #fff;
  display: flex; flex-direction: column; gap: 8px; }
.tt-card.add { border-style: dashed; }
.tt-line1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tt-line1 input[type=time] { padding: 8px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 14px; }
.tt-line1 select, .tt-line1 input[name=subject] { padding: 8px 10px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 14px; }
.tt-line1 input[name=subject] { flex: 1; min-width: 110px; }
.tt-line2 { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.tt-lab { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #8090a0; width: 34px; }
.tt-actions { display: flex; gap: 8px; }
.tt-break { display: flex; align-items: center; gap: 8px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 12px; margin: 6px 0; background: #fff; }
.tt-btime { color: #1f6feb; font-weight: 600; font-variant-numeric: tabular-nums; }
.tt-breakadd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tt-breakadd input[type=time], .tt-breakadd input[name=label] { padding: 8px 10px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 14px; }

/* ---- class (section) editor ---- */
.cls-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.cls-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; background: #fff; }
.cls-edit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cls-name { padding: 8px 10px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 15px; font-weight: 600; width: 150px; }
.cls-grade { font-size: 12px; color: #5b6b7c; display: flex; align-items: center; gap: 4px; }
.cls-grade input { width: 54px; padding: 7px 8px; border: 1px solid #cdd7e2; border-radius: 8px; }
.cls-count { font-size: 12px; }
.cls-del { padding: 7px 12px; font-size: 13px; }
.empty-note { border: 1px dashed #cdd7e2; border-radius: 12px; padding: 22px; text-align: center; margin-top: 14px; color: #5b6b7c; }
.empty-note p { margin-bottom: 12px; }
.cls-actions { display: flex; align-items: center; gap: 8px; }

.ros-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.ros-row { display: flex; align-items: center; gap: 8px; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 12px; background: #fff; }
.ros-edit { display: flex; align-items: center; gap: 8px; flex: 1; }
.ros-name { flex: 1; padding: 9px 11px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 15px; }
.addform textarea { padding: 10px 12px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 15px;
  font-family: inherit; line-height: 1.5; resize: vertical; }

/* ---- assessments ---- */
.test-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.test-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; background: #fff; text-decoration: none; color: inherit; }
.tr-title { font-weight: 600; font-size: 15px; }
.tr-sub { font-size: 12px; margin-top: 2px; }
.tr-count { font-size: 12px; color: #5b6b7c; white-space: nowrap; }
.sub-status { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 9px; text-transform: capitalize; }
.sub-status.s-new { background: #eef2f6; color: #6b7a8c; }
.sub-status.s-scoring { background: #fcf1d8; color: #8a6412; }
.sub-status.s-scored { background: #e6f1fb; color: #1f6feb; }
.sub-status.s-reviewed { background: #e6f6ec; color: #1c7a45; }
.pdel-lite { border: 0; background: none; color: #b91c1c; font-size: 18px; cursor: pointer; padding: 0 4px; }

.key-q { border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; margin: 10px 0; background: #fff; }
.key-q-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.key-n { font-weight: 700; color: #1f6feb; }
.key-max input { width: 56px; padding: 5px 8px; border: 1px solid #cdd7e2; border-radius: 6px; }
.key-q textarea, .key-note textarea { width: 100%; padding: 8px 10px; border: 1px solid #cdd7e2;
  border-radius: 8px; font-size: 14px; margin: 3px 0; font-family: inherit; resize: vertical; }
.key-note { display: block; margin-top: 12px; font-size: 13px; color: #5b6b7c; }

.rev-pages { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; }
.rev-pages img { height: 130px; border: 1px solid #e2e8f0; border-radius: 8px; }
.rev-q { border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; margin: 12px 0; background: #fff; }
.rev-q-top { display: flex; align-items: center; justify-content: space-between; }
.rev-qn { font-weight: 700; color: #1f6feb; font-size: 15px; }
.rev-conf { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 9px; text-transform: uppercase; }
.rev-conf.conf-high { background: #e6f6ec; color: #1c7a45; }
.rev-conf.conf-med { background: #fcf1d8; color: #8a6412; }
.rev-conf.conf-low { background: #fde3e3; color: #a52222; }
.rev-question { font-size: 13px; color: #5b6b7c; margin: 6px 0; }
.rev-answer { background: #f7f9fb; border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.5;
  white-space: pre-wrap; border: 1px solid #eef2f6; }
.rev-crit { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 5px; }
.rev-crit li { display: grid; grid-template-columns: 18px 1fr; gap: 6px 8px; align-items: start;
  font-size: 13px; padding: 6px 9px; border-radius: 8px; background: #f7f9fb; }
.rev-crit li.crit-yes { background: #eafaf0; }
.rev-crit li.crit-partial { background: #fdf6e3; }
.rev-crit li.crit-no { background: #fdeeee; }
.crit-mark { font-weight: 800; text-align: center; }
.crit-yes .crit-mark { color: #1c7a45; } .crit-partial .crit-mark { color: #8a6412; } .crit-no .crit-mark { color: #a52222; }
.crit-point { color: #33414f; }
.crit-quote { grid-column: 2; color: #5b6b7c; font-style: italic; font-size: 12px; }

.rev-reason { font-size: 13px; color: #46566a; margin: 8px 0; }
.rev-mark { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid #eef2f6; padding-top: 10px; }
.rev-ai { font-size: 13px; color: #5b6b7c; }
.rev-mark label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #5b6b7c; }
.rev-final { width: 62px; padding: 8px 10px; border: 1px solid #1f6feb; border-radius: 8px; font-size: 17px;
  font-weight: 700; text-align: center; }
.rev-total { font-size: 16px; font-weight: 700; }

/* ---- print masthead (branded header that actually prints) ---- */
.pack-masthead { display: none; align-items: center; gap: 12px;
  border-bottom: 2px solid #1f6feb; padding-bottom: 12px; margin-bottom: 18px; }
.pack-logo { font-size: 30px; line-height: 1; }
.pack-brand { font-size: 20px; font-weight: 800; color: #1f6feb; letter-spacing: -.01em; }
.pack-sub { font-size: 13px; color: #5b6b7c; margin-top: 1px; }

/* ---- print ---- */
@page { margin: 0; }           /* margin:0 is what drops the browser's own URL/title/date banner; we re-add the whitespace as content padding below so text isn't at the paper edge */
@media print {
  .sidebar, .topbar, .no-print, .report-actions { display: none !important; }
  body { background: #fff; }
  .shell { display: block; }
  .content { max-width: none; padding: 14mm; }
  .doc { border: none; border-radius: 0; padding: 0; }
  .pack-masthead { display: flex; }
  .pill, .bd-item, .dot-good, .dot-watch, .dot-concern, .cad-badge, .cad-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cad-report-table .cad-badge { border: 1px solid rgba(0,0,0,.12); }
}
.doc-note { margin-top: 14px; font-size: 12px; line-height: 1.5; }
.cad-report-table td { vertical-align: middle; }

/* ---- attendance ---- */
.att-datepick label { font-size: 13px; color: #5b6b7c; display: flex; flex-direction: column; gap: 4px; }
.att-datepick input { padding: 8px 10px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 14px; }
.att-card { text-decoration: none; color: inherit; display: block; }
.att-cardsub { margin-top: 8px; font-size: 13px; }
.att-head { margin-bottom: 10px; }
.att-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; position: sticky; top: 0;
  background: #f7f9fb; padding: 8px 0; z-index: 2; }
.att-counts .ac { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 10px; background: #eef2f6; color: #5b6b7c; }
.att-counts .ac.present { background: #e6f6ec; color: #1c7a45; }
.att-counts .ac.absent { background: #fde3e3; color: #a52222; }
.att-counts .ac.late { background: #fcf1d8; color: #8a6412; }
.att-counts .ac.excused { background: #e7eefc; color: #2a52a0; }
.att-list { display: flex; flex-direction: column; gap: 6px; }
.att-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; border: 1px solid #e2e8f0; border-left: 5px solid #cbd5e1;
  border-radius: 10px; padding: 12px 14px; background: #fff; font-size: 15px; cursor: pointer; }
.att-name { font-weight: 500; }
.att-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 10px; white-space: nowrap; }
.att-row.status-present { border-left-color: #2fa860; } .att-row.status-present .att-badge { background: #e6f6ec; color: #1c7a45; }
.att-row.status-absent  { border-left-color: #d23b3b; background: #fdf6f6; } .att-row.status-absent .att-badge { background: #fde3e3; color: #a52222; }
.att-row.status-late    { border-left-color: #e0a92e; background: #fefaf1; } .att-row.status-late .att-badge { background: #fcf1d8; color: #8a6412; }
.att-row.status-excused { border-left-color: #3a6fd0; background: #f5f8fe; } .att-row.status-excused .att-badge { background: #e7eefc; color: #2a52a0; }
.att-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px;
  position: sticky; bottom: 0; background: #f7f9fb; padding: 10px 0; }

.rep-controls { display: flex; align-items: center; gap: 10px; }
.rep-filter { display: flex; gap: 8px; }
.rep-filter select { padding: 7px 10px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 13px; }

.dash-reg { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 9px; text-decoration: none; }
.dash-reg.done { background: #e6f6ec; color: #1c7a45; }
.dash-reg.todo { background: #eef4fc; color: #1f6feb; }

/* ---- auth pages (login / gate / onboard) ---- */
.login-lab { display: block; font-size: 12px; color: #5b6b7c; margin-bottom: 8px; text-align: left; }
.login-lab select { width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid #cdd7e2;
  border-radius: 10px; font-size: 16px; background: #fff; }
.login-h { font-size: 17px; margin: 4px 0 2px; }
.login-alt { display: inline-block; margin-top: 14px; font-size: 14px; color: #1f6feb; text-decoration: none; }
.login-create { display: block; text-decoration: none; text-align: center; margin-top: 8px; }

/* ---- who's signed in (sidebar) ---- */
.whoami { margin-top: auto; padding: 10px 12px; font-size: 12px; color: #8090a0; border-top: 1px solid #223;
  display: flex; flex-direction: column; gap: 3px; }
.whoami .name { color: #cbd5e1; font-weight: 600; }
.whoami .ver { font-size: 11px; color: #64748b; letter-spacing: .02em; }

/* ---- settings: telegram pairing ---- */
.set-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; margin: 12px 0; max-width: 520px; }
.set-card h2 { font-size: 15px; margin: 0 0 8px; }
.pair-code { font-family: ui-monospace, monospace; font-size: 26px; font-weight: 700; letter-spacing: 4px;
  background: #eef4fc; color: #1f6feb; padding: 10px 16px; border-radius: 10px; display: inline-block; margin: 8px 0; }
.set-card form { margin: 6px 0; }
.set-card input { padding: 9px 11px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 15px; margin: 3px 0; width: 100%; max-width: 260px; }

/* ---- mobile ---- */
@media (max-width: 768px) {
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 20;
    transform: translateX(-100%); transition: transform .2s; }
  .navtoggle:checked ~ .sidebar { transform: translateX(0); }
  .navtoggle:checked ~ .scrim { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(0,0,0,.35); }
  .hamburger { display: block; }
  .content { padding: 14px; }
  .metrics { grid-template-columns: 1fr 1fr; }
}

/* ---- assessment report ---- */
.rep-h { font-size: 15px; font-weight: 700; color: #1f2d3d; margin: 26px 0 8px; }
.rep-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 14px 0 4px; }
.rep-tile { background: #f7f9fb; border: 1px solid #e8eef4; border-radius: 12px; padding: 12px 10px; text-align: center; }
.rt-n { display: block; font-size: 22px; font-weight: 800; color: #1f6feb; letter-spacing: -.02em; }
.rt-of { font-size: 13px; font-weight: 600; color: #8a99aa; }
.rt-l { display: block; font-size: 11px; color: #5b6b7c; margin-top: 3px; }
.small { font-size: 12px; }

.ia-list { display: flex; flex-direction: column; gap: 8px; }
.ia-row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 10px 12px; border: 1px solid #e8eef4;
  border-left: 4px solid #cbd5e1; border-radius: 10px; background: #fff; }
.ia-row.weak { border-left-color: #e0a92e; background: #fffdf8; }
.ia-q { font-size: 13px; color: #2b3a4b; }
.ia-qn { font-weight: 700; color: #1f6feb; margin-right: 4px; }
.ia-track { height: 8px; background: #eef2f6; border-radius: 5px; overflow: hidden; }
.ia-fill { display: block; height: 100%; background: #2fa860; border-radius: 5px; }
.ia-fill.weak { background: #e0a92e; }
.ia-pct { font-size: 12px; font-weight: 700; color: #2b3a4b; }
.ia-key { color: #8a6412; font-weight: 600; }

.mc-panel { display: flex; flex-direction: column; gap: 10px; }
.mc-card { border: 1px solid #e8eef4; border-left: 4px solid #1f6feb; border-radius: 10px; padding: 11px 13px; background: #fbfcfe; }
.mc-q { font-size: 11px; font-weight: 700; color: #1f6feb; text-transform: uppercase; letter-spacing: .03em; }
.mc-mis { font-size: 14px; font-weight: 600; color: #1f2d3d; margin-top: 3px; }
.mc-why { font-size: 12px; margin-top: 3px; }
.mc-fix { font-size: 13px; color: #1c7a45; margin-top: 6px; font-weight: 500; }

.reteach-actions { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.reteach-pack { border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px 22px; background: #fff; font-size: 14px; line-height: 1.55; }
.reteach-pack h1 { font-size: 19px; color: #1f6feb; margin: 0 0 10px; }
.reteach-pack h2 { font-size: 15px; color: #1f2d3d; margin: 18px 0 6px; border-bottom: 1px solid #eef2f6; padding-bottom: 4px; }
.reteach-pack ul, .reteach-pack ol { padding-left: 20px; }
.reteach-pack li { margin: 3px 0; }
.reteach-pack table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 13px; }
.reteach-pack th, .reteach-pack td { border: 1px solid #e2e8f0; padding: 6px 8px; text-align: left; }

@media (max-width: 720px) {
  .rep-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ---- filler bank ---- */
.fb-wrap { max-width: 680px; margin: 0 auto; }
.fb-context { font-size: 14px; color: #2b3a4b; margin: 4px 0 14px; }
.fb-toggle-link { background: none; border: none; color: #1f6feb; font-size: 13px; cursor: pointer; padding: 0 4px; }
.fb-controls { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 14px;
  padding: 12px 14px; background: #f7f9fb; border: 1px solid #e8eef4; border-radius: 12px; }
.fb-controls label { font-size: 12px; color: #5b6b7c; display: flex; flex-direction: column; gap: 4px; }
.fb-controls select { padding: 8px 10px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 14px; }
.fb-favonly { flex-direction: row !important; align-items: center; gap: 6px !important; margin-top: 14px; }

.fb-card { min-height: 180px; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px 24px;
  background: #fff; box-shadow: 0 2px 10px rgba(31,111,235,.05); display: flex; flex-direction: column;
  justify-content: center; transition: opacity .12s; }
.fb-card.loading { opacity: .4; }
.fb-empty { text-align: center; margin: 0; }
.fb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.fb-mins { font-size: 13px; font-weight: 700; color: #1f6feb; }
.fb-tag { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 10px; background: #eef2f6; color: #5b6b7c; }
.fb-tag.noprep { background: #e6f6ec; color: #1c7a45; }
.fb-tag.prep { background: #fcf1d8; color: #8a6412; }
.fb-tag.type { text-transform: capitalize; }
.fb-tag.ai { background: #efe7fc; color: #6b3fc0; }
.fb-marks { margin-left: auto; display: flex; gap: 4px; }
.fb-mark { background: none; border: 1px solid transparent; border-radius: 8px; font-size: 18px; cursor: pointer;
  padding: 2px 6px; filter: grayscale(1) opacity(.5); }
.fb-mark.on, .fb-mark:hover { filter: none; }
.fb-title { font-size: 24px; font-weight: 800; color: #1f2d3d; margin: 2px 0 10px; letter-spacing: -.01em; }
.fb-script { font-size: 17px; line-height: 1.55; color: #2b3a4b; margin: 0; }

.fb-actions { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 18px 0 10px; }
.fb-big { width: auto; font-size: 17px; padding: 14px 28px; }
.fb-ai { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.fb-ai input { flex: 1; min-width: 200px; padding: 10px 12px; border: 1px solid #cdd7e2; border-radius: 9px; font-size: 14px; }

@media (max-width: 720px) {
  .fb-title { font-size: 21px; }
  .fb-script { font-size: 16px; }
}

/* ---- games ---- */
.game-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 14px 0 8px; }
.game-card { border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 18px; background: #fff; }
.gc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gc-name { font-size: 16px; font-weight: 800; color: #1f2d3d; }
.gc-grades { font-size: 11px; font-weight: 600; color: #5b6b7c; background: #eef2f6; padding: 2px 8px; border-radius: 9px; }
.gc-desc { font-size: 13px; margin: 6px 0 12px; }
.gc-form { display: flex; flex-direction: column; gap: 10px; }
.gc-param { font-size: 12px; color: #5b6b7c; display: flex; flex-direction: column; gap: 4px; }
.gc-param select, .gc-param input { padding: 8px 10px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 14px; }
.gc-go { width: auto; margin-top: 4px; }

.gset-row .tr-main { text-decoration: none; color: inherit; flex: 1; }
.gset-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; }
.gset-rename { display: flex; gap: 6px; }
.gset-rename input { padding: 7px 10px; border: 1px solid #cdd7e2; border-radius: 8px; font-size: 14px; }

.gset-h { font-size: 16px; font-weight: 700; color: #1f2d3d; margin: 22px 0 8px; }
.gset-rules { background: #f7f9fb; border: 1px solid #e8eef4; border-radius: 12px; padding: 12px 16px; }
.gset-rule { font-size: 13px; line-height: 1.5; margin: 5px 0; }
.gset-round { border: 1px solid #e8eef4; border-radius: 12px; margin-bottom: 10px; padding: 4px 14px; background: #fff; }
.gset-round > summary { cursor: pointer; padding: 10px 0; font-size: 15px; list-style: none; }
.gset-round > summary::-webkit-details-marker { display: none; }
.gset-rn { font-weight: 700; color: #1f6feb; margin-right: 8px; }
.gset-rack-mini { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: 2px; font-weight: 700; }
.gset-rackbig { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 40px; font-weight: 800;
  letter-spacing: 8px; text-align: center; color: #1f2d3d; margin: 8px 0 10px; }
.gset-reveal { margin-bottom: 6px; letter-spacing: .5px; }
.gset-best { margin-bottom: 10px; color: #1c7a45; }
.gset-words td { vertical-align: top; }
.gset-len { font-weight: 700; color: #1f6feb; width: 42px; }
.gset-con .gset-scramble { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 18px;
  font-weight: 800; letter-spacing: 4px; }

@media (max-width: 720px) {
  .gset-rackbig { font-size: 30px; letter-spacing: 5px; }
  .gset-controls { gap: 8px; }
}

.lp-ans { font-size: 13px; display: flex; align-items: center; gap: 6px; margin-right: auto; cursor: pointer; }
.lp-ans input { width: 16px; height: 16px; }
