:root {
  --navy: #1B4D6B;
  --sky: #C5DCEA;
  --powder: #E8F2F8;
  --teal: #2E8B9B;
  --teal-dark: #23707D;
  --gold: #E9A23B;
  --sage: #7FA88B;
  --rose: #D98E8E;
  --amber-soft: #FBEBD0;
  --white: #FFFFFF;
  --muted: #5E7F93;
  --line: #D6E6F0;
  --shadow: 0 4px 16px rgba(27, 77, 107, 0.08);
  --shadow-lift: 0 8px 28px rgba(27, 77, 107, 0.16);
  --radius: 18px;
  --radius-sm: 14px;
  --head: 'Quicksand', 'Baloo 2', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--navy);
  background-color: var(--powder);
  /* Gingham at ~5% — echoes the Canvas homepage. */
  background-image:
    linear-gradient(90deg, rgba(46, 139, 155, 0.05) 50%, transparent 50%),
    linear-gradient(rgba(46, 139, 155, 0.05) 50%, transparent 50%);
  background-size: 28px 28px;
  min-height: 100vh;
}
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0 0 0.5em; line-height: 1.2; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.75em; }
a { color: var(--teal); }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Layout ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.topbar .brand { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 1.1rem; color: inherit; text-decoration: none; }
.topbar a.brand:hover .brand-logo { transform: scale(1.06); }
.brand-logo { transition: transform .15s; }
.topbar .brand svg { width: 34px; height: 34px; }
.brand-logo { height: 34px; width: auto; max-width: 64px; object-fit: contain; }
.topbar .spacer { flex: 1; }
.topbar .brand, .topbar .btn { white-space: nowrap; }
@media (max-width: 520px) { #fund-total { display: none; } }
main { max-width: 1080px; margin: 0 auto; padding: 16px 16px 140px; }

.tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 0; max-width: 1080px; margin: 0 auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 0; background: transparent; padding: 9px 14px; border-radius: 999px;
  font-family: var(--head); font-weight: 700; color: var(--muted); cursor: pointer; position: relative;
}
.tab[aria-selected="true"] { background: var(--white); color: var(--navy); box-shadow: var(--shadow); }
/* Dropdown menus (top bar). */
.menu-bar { flex-wrap: wrap; overflow: visible; position: relative; z-index: 15; justify-content: center; }
.menu-group { position: relative; }
.menu-btn {
  flex: none; border: 0; background: transparent; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  font-family: var(--head); font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 2px;
}
.menu-btn:hover, .menu-group.open > .menu-btn { color: var(--navy); background: rgba(255, 255, 255, 0.6); }
.menu-group.active > .menu-btn, .menu-btn[aria-selected="true"] { background: var(--white); color: var(--navy); box-shadow: var(--shadow); }
.menu-btn .caret { font-size: 0.7rem; margin-left: 4px; transition: transform .15s; }
.menu-group.open .caret { transform: rotate(180deg); }
.menu-panel {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; max-width: calc(100vw - 24px);
  background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift); padding: 6px; z-index: 30;
  flex-direction: column; gap: 2px;
}
.menu-group.open .menu-panel { display: flex; }
.menu-panel .menu-link { display: block; padding: 10px 12px; border-radius: 10px; font-family: var(--head); font-weight: 700; color: var(--teal-dark); text-decoration: none; border-top: 1px solid var(--line); margin-top: 2px; }
.menu-panel .menu-link:hover, .menu-panel .menu-link:focus-visible { background: var(--powder); outline: none; }
.menu-panel .tab { text-align: left; border-radius: 10px; padding: 10px 12px; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.menu-panel .tab:hover, .menu-panel .tab:focus-visible { background: var(--powder); outline: none; }
.menu-panel .tab[aria-selected="true"] { background: var(--powder); box-shadow: inset 3px 0 0 var(--teal); }
@media (max-width: 520px) {
  .menu-bar { gap: 4px; padding: 10px 10px 0; }
  .menu-btn { padding: 8px 11px; font-size: 0.92rem; }
}
.badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 999px; background: var(--gold); color: var(--white); font-size: 0.78rem; font-weight: 800; margin-left: 6px;
}
.badge.quiet { background: var(--sky); color: var(--navy); }

.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px;
}
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }

/* ── Buttons & fields ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm); border: 2px solid transparent;
  background: var(--teal); color: var(--white); font-weight: 800; cursor: pointer; text-decoration: none;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--teal-dark); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.approve { background: var(--sage); }
.btn.approve:hover { background: #6B957A; }
.btn.deny { background: var(--white); color: #A85757; border-color: var(--rose); }
.btn.deny:hover { background: #FBEFEF; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { background: var(--powder); }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #DD9530; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 0.9rem; }
.btn.block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--line); background: var(--white);
  font-size: 1.05rem; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn.ok { color: #4F7E5E; }
.icon-btn.ok:hover { background: #EEF5F0; border-color: var(--sage); }
.icon-btn.no { color: #A85757; }
.icon-btn.no:hover { background: #FBEFEF; border-color: var(--rose); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--white);
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; }
textarea { min-height: 80px; resize: vertical; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--teal); cursor: pointer; flex: none; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.error { color: #A85757; font-weight: 700; min-height: 1.4em; }

/* ── Clearance queue ────────────────────────────────────── */
.queue-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.queue-head h1 { margin: 0; }
.filters { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.filters label.field { margin: 0; }
@media (min-width: 900px) { .filters { grid-template-columns: repeat(6, 1fr); } }
.select-bar {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 12px 16px; margin: 12px 0;
  background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.select-bar select { width: auto; min-height: 38px; padding: 4px 10px; }

.qrow {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 10px;
  border: 2px solid transparent; transition: border-color 0.12s ease, background 0.12s ease;
}
.qrow.selected { border-color: var(--teal); background: #F4FAFC; }
.qrow.stale { background: var(--amber-soft); }
.qrow.stale.selected { background: #FCF2E0; }
.qrow .who { font-weight: 800; }
.qrow .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.85rem; color: var(--muted); }
.qrow .desc { margin: 2px 0; }
.qrow .amount { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.qrow .amount.in { color: #B27515; }
.qrow .amount.out { color: var(--navy); }
.qrow .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.qrow .quick { display: flex; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 800;
  background: var(--powder); color: var(--navy);
}
.chip.type-purchase, .chip.type-gift, .chip.type-trade, .chip.type-donation { background: #EAF0F5; }
.chip.type-earn, .chip.type-bonus, .chip.type-streak, .chip.type-refund { background: #FCF0DC; color: #8A5A10; }
.chip.stale { background: var(--gold); color: var(--white); }
.chip.warn { background: #F8E6E6; color: #A85757; }
.chip.ok { background: #E6F0E9; color: #47705A; }
.chip.gold { background: #FCF0DC; color: #8A5A10; }
.chip.auto { background: var(--sky); }
@media (min-width: 760px) {
  .qrow { grid-template-columns: auto minmax(0, 1fr) auto; padding: 12px 18px; }
}

.action-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, calc(100% + 40px)); z-index: 30; visibility: hidden;
  width: min(760px, calc(100% - 24px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between;
  padding: 12px 14px; border-radius: var(--radius); background: var(--navy); color: var(--white); box-shadow: var(--shadow-lift);
  transition: transform 0.2s ease, visibility 0.2s;
}
.action-bar.show { transform: translate(-50%, 0); visibility: visible; }
.action-bar .summary { font-weight: 800; font-size: 1.02rem; }
.action-bar .summary .total { color: var(--gold); }
.action-bar .buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.action-bar .btn.ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.action-bar .btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.action-bar .btn.deny { background: transparent; color: #F4C4C4; border-color: var(--rose); }
@media (max-width: 520px) {
  .action-bar .buttons { width: 100%; }
  .action-bar .buttons .btn { flex: 1; padding: 10px; }
}

/* ── Toasts & modal ─────────────────────────────────────── */
.toasts {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column-reverse; gap: 8px;
  width: min(520px, calc(100% - 24px)); pointer-events: none; transition: bottom 0.2s ease;
}
.toasts > * { pointer-events: auto; }
body.bar-open .toasts { bottom: 104px; }
@media (max-width: 520px) { body.bar-open .toasts { bottom: 150px; } }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--white); box-shadow: var(--shadow-lift); border-left: 6px solid var(--sage);
  animation: drop 0.2s ease;
}
.toast.warn { border-left-color: var(--rose); }
.toast .msg { flex: 1; }
.toast .count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.85rem; }
@keyframes drop { from { opacity: 0; transform: translateY(8px); } }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(27, 77, 107, 0.35);
  display: flex; align-items: flex-end; justify-content: center; padding: 12px;
}
@media (min-width: 640px) { .modal-backdrop { align-items: center; } }
.modal {
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lift); width: min(560px, 100%);
  max-height: calc(100vh - 24px); display: flex; flex-direction: column; overflow: hidden;
}
.modal header { padding: 18px 20px 6px; }
.modal .body { padding: 6px 20px; overflow-y: auto; }
.modal footer { padding: 14px 20px 18px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal ul.list { list-style: none; padding: 0; margin: 8px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.modal ul.list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.modal ul.list li:first-child { border-top: 0; }
.modal .why { background: var(--powder); border-radius: 12px; padding: 8px 12px; font-size: 0.9rem; }

/* ── Tables (teacher lists) ─────────────────────────────── */
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { text-align: left; font-size: 0.8rem; color: var(--muted); font-weight: 800; padding: 6px 10px; }
.table td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.table-wrap { overflow-x: auto; }

/* ── Student-facing ─────────────────────────────────────── */
.balance-card { text-align: center; padding: 26px 18px; }
.balance-card .coin { width: 72px; height: 72px; margin: 0 auto 4px; display: block; }
.balance { font-family: var(--body); font-weight: 900; font-size: clamp(2.8rem, 12vw, 4rem); color: var(--gold); line-height: 1; letter-spacing: -0.02em; }
.ledger-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ledger-item:first-child { border-top: 0; }
.ledger-item .math { font-size: 0.82rem; color: var(--muted); }
.item-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.item-card:first-child { border-top: 0; }
.price { font-weight: 900; color: var(--gold); white-space: nowrap; }

.empty { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 12px; color: var(--muted); }
.empty p { margin: 0; }
.empty svg, .empty .kraken-img { width: auto; height: 34px; max-width: 52px; opacity: 0.85; object-fit: contain; }
.loading { display: flex; justify-content: center; padding: 60px 0; }
.loading svg, .loading .kraken-img { width: auto; height: 72px; max-width: 120px; object-fit: contain; animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }

.login-wrap { max-width: 420px; margin: 0 auto; padding: 40px 16px; }
.login-wrap .logo { height: 130px; width: auto; max-width: 100%; object-fit: contain; display: block; margin: 0 auto 8px; }
.login-wrap h1 { text-align: center; }
.seg { display: flex; background: var(--powder); padding: 4px; border-radius: 999px; margin-bottom: 18px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 999px; font-weight: 800; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--navy); box-shadow: var(--shadow); }

/* Login slips: cut-apart cards. */
.slips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 14px; }
.slip { background: var(--white); border: 2px dashed var(--sky); border-radius: 14px; padding: 12px 14px; break-inside: avoid; }
.slip-head { display: flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 700; color: var(--teal-dark); }
.slip-name { font-size: 1.15rem; font-weight: 900; margin: 4px 0; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace; letter-spacing: .02em; }
/* Master login list prints cleanly (teacher-only view). */
@media print {
  body { background: none; }
  .topbar, .tabs, .no-print, .action-bar, .toasts { display: none !important; }
  main { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .print-section { break-inside: avoid; margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── Seating (teacher) ──────────────────────────────────── */
:root {
  --lvl-hard: #C46A6A; --lvl-teacher: #E9A23B; --lvl-prize: #9B7CC4; --lvl-monitor: #6FA8C9; --lvl-must_pair: #7FA88B;
}
.seat-layout { display: grid; gap: 16px; }
@media (min-width: 1000px) { .seat-layout { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: start; } }
.room-card { overflow-x: auto; }
.room {
  display: grid; min-width: 560px; gap: 6px;
  grid-template-columns: 1fr 1fr 18px 1fr 1fr 18px 1fr 1fr 14px 1fr;
  grid-template-rows: auto repeat(8, 34px) auto auto;
}
.room .feature {
  display: flex; align-items: center; justify-content: center; text-align: center; font-size: 0.78rem; font-weight: 800;
  color: var(--muted); background: var(--powder); border-radius: 12px; padding: 6px; min-height: 30px;
}
.room .feature.desk { background: #EEE6D8; color: #7A6440; }
.seat {
  position: relative; border: 2px solid var(--line); background: var(--white); border-radius: 12px; padding: 4px 6px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; cursor: pointer;
  font-size: 0.82rem; line-height: 1.15; min-width: 0;
}
.seat .num { font-size: 0.68rem; font-weight: 800; color: var(--muted); }
.seat .who { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.seat .marks { position: absolute; top: 2px; right: 4px; font-size: 0.7rem; }
.seat.empty { background: transparent; border-style: dashed; color: var(--muted); }
.seat.sel { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27, 77, 107, 0.2); }
.seat.rel-hard { border-color: var(--lvl-hard); background: #F8E6E6; }
.seat.rel-teacher { border-color: var(--lvl-teacher); background: #FCF0DC; }
.seat.rel-prize { border-color: var(--lvl-prize); background: #EFE8F8; }
.seat.rel-monitor { border-color: var(--lvl-monitor); background: #E6F1F8; }
.seat.rel-must_pair { border-color: var(--lvl-must_pair); background: #E6F0E9; }
.unseated { font-size: 0.85rem; padding-top: 6px; }
.lvl { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; }
.lvl-hard { background: var(--lvl-hard); } .lvl-teacher { background: var(--lvl-teacher); } .lvl-prize { background: var(--lvl-prize); }
.lvl-monitor { background: var(--lvl-monitor); } .lvl-must_pair { background: var(--lvl-must_pair); }
.chip.lvl-chip-hard { background: var(--lvl-hard); color: #fff; }
.chip.lvl-chip-teacher { background: var(--lvl-teacher); color: var(--navy); }
.chip.lvl-chip-prize { background: var(--lvl-prize); color: #fff; }
.chip.lvl-chip-monitor { background: var(--lvl-monitor); color: #fff; }
.chip.lvl-chip-must_pair { background: var(--lvl-must_pair); color: #fff; }

/* ── Student seat card & bingo ──────────────────────────── */
.seat-card { display: flex; align-items: center; gap: 14px; }
.seat-card .seat-num {
  flex: none; width: 64px; height: 64px; border-radius: 18px; background: var(--teal); color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 900; font-size: 1.7rem; font-family: var(--body);
}
.bingo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bingo .sq {
  min-height: 96px; min-width: 0; overflow-wrap: anywhere; hyphens: auto; border-radius: 14px; background: var(--powder); border: 2px solid var(--line); padding: 6px; font-size: 0.72rem;
  display: flex; flex-direction: column; justify-content: space-between; text-align: left; line-height: 1.15; cursor: default;
}
.bingo .sq .k { font-weight: 900; color: #B27515; font-size: 0.85rem; margin-top: 4px; }
@media (max-width: 420px) { .bingo { gap: 4px; } .bingo .sq { font-size: 0.66rem; padding: 5px; border-radius: 10px; } }
.bingo .sq.claimed { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.bingo .sq.claimed .k { color: var(--navy); }
.bingo .sq.pending { background: #FCF0DC; border-color: var(--gold); border-style: dashed; }
button.sq { cursor: pointer; font: inherit; color: inherit; }
@media (min-width: 640px) { .bingo .sq { font-size: 0.82rem; } }
.thermo { height: 22px; border-radius: 999px; background: var(--powder); overflow: hidden; border: 2px solid var(--line); }
.thermo > div { height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 999px; transition: width 0.4s ease; }
.notice { border-left: 6px solid var(--gold); }
.copy-block { white-space: pre-wrap; font-family: var(--body); background: var(--powder); border-radius: 14px; padding: 14px; font-size: 0.92rem; }
.quick-find { position: relative; flex: 0 1 240px; min-width: 0; }
.quick-find input { min-height: 38px; padding: 6px 12px; }
.quick-results {
  position: absolute; top: 44px; right: 0; width: min(340px, 90vw); background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift); padding: 6px; z-index: 40;
}
.quick-results .qr { padding: 8px 10px; border-radius: 10px; }
.quick-results .qr + .qr { border-top: 1px solid var(--line); }
.quick-results .qr-seat { float: right; font-weight: 900; color: var(--teal); }
.quick-results { width: min(400px, 92vw); max-height: 70vh; overflow-y: auto; }
.quick-results button.qr { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.quick-results .qr.on, .quick-results button.qr:hover { background: #F4FAFC; }
.quick-results .qr-head { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 6px 10px 2px; }
.quick-results .qr-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
#view .card, #view h1, #view h2 { scroll-margin-top: 84px; }
.quick-results .qr-links .chip { cursor: pointer; border: 0; font: inherit; font-size: 0.8rem; justify-content: center; text-align: center; }
.quick-results .qr-ask { color: var(--teal); }
.finder-help { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(340px, calc(100vw - 32px)); background: var(--white);
  border-left: 6px solid var(--gold); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift); padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: start; }
.finder-help .small { grid-column: 1 / -1; }
.flash { animation: flash 2.4s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px var(--gold); } 100% { box-shadow: none; } }
@media (max-width: 520px) {
  body.teacher .topbar .brand span, body.teacher .topbar .spacer { display: none; }
  .quick-find { flex: 1 1 auto; }
  .quick-find input { width: 100%; }
  .topbar .btn { flex: none; }
}
.privacy-banner { max-width: 1080px; margin: 10px auto 0; padding: 10px 16px; border-radius: var(--radius-sm); background: #EFE8F8; color: var(--navy); font-size: 0.92rem; }
.privacy-banner a { font-weight: 800; }
.big-choice { border: 2px dashed var(--teal); text-align: center; padding: 28px 18px; }

/* Challenges & leaderboards */
.chip-btn { border: 1.5px solid var(--sky); background: var(--white); color: var(--navy); border-radius: 999px; padding: 5px 11px; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.chip-btn:hover { border-color: var(--teal); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; max-height: 50vh; overflow: auto; }
.hard-card { border-left: 6px solid var(--gold); }
.board { margin: 0; padding: 0; list-style: none; }
.board li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line); }
.board li:first-child { border-top: 0; }
.board .place { width: 30px; text-align: center; font-weight: 900; font-size: 1.05rem; }
.board .who { flex: 1; font-weight: 700; }
.board .val { font-weight: 900; color: var(--teal-dark); white-space: nowrap; }
.board li.me { background: var(--amber-soft); border-radius: 10px; }
.my-place { margin: 8px 0 0; padding: 8px 10px; background: var(--powder); border-radius: 10px; font-weight: 700; }
.match-ok { color: var(--teal-dark); font-weight: 800; }
.paste { width: 100%; min-height: 160px; font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; }

/* Public home page */
.home-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 10px 16px 0; max-width: 1080px; margin: 0 auto; }
.home-nav a { text-decoration: none; font-family: var(--head); font-weight: 700; color: var(--navy); background: rgba(255,255,255,.7); padding: 7px 13px; border-radius: 999px; }
.home-nav a:hover { background: var(--white); box-shadow: var(--shadow); }
.home-main section { margin-top: 26px; scroll-margin-top: 80px; }
.hero { display: grid; grid-template-columns: minmax(200px, 380px) 1fr; gap: 24px; align-items: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.hero-logo { width: 100%; height: auto; max-height: 260px; object-fit: contain; }
.hero h1 { font-size: 2.2rem; margin-bottom: 2px; }
.hero-sub { color: var(--muted); font-weight: 800; }
@media (max-width: 700px) { .hero { grid-template-columns: 1fr; text-align: center; } .hero .inline { justify-content: center; } .hero-logo { max-height: 200px; } }
.sec-title { font-size: 1.45rem; margin: 0 0 10px; }
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 14px; }
.spot-grid .spot { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 12px 14px; border-top: 0; }
.spot { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.card .spot:first-of-type { border-top: 0; }
.spot-emoji { font-size: 1.6rem; line-height: 1; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.board-grid .card { margin: 0; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
/* Kraken Bucks fills the rest of the last row, next to “It’s really about learning” (9 cards + this one). */
.how-grid .how-kb { grid-column: span 3; background: #FFF8EC; border: 2px solid #F3D9A6; }
@media (max-width: 999px) { .how-grid { grid-template-columns: repeat(3, 1fr); } .how-grid .how-kb { grid-column: 1 / -1; } }
@media (max-width: 699px) { .how-grid { grid-template-columns: repeat(2, 1fr); } .how-grid .how-kb { grid-column: span 1; } }
@media (max-width: 479px) { .how-grid { grid-template-columns: 1fr; } .how-grid .how-kb { grid-column: auto; } }
.how-grid .card { margin: 0; }
.how-emoji { font-size: 1.8rem; }
.contact-card .btn { text-decoration: none; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
body.home .topbar .btn { white-space: nowrap; }
@media (max-width: 420px) { body.home .topbar .brand span { display: none; } }
.picker { display: grid; gap: 8px; margin-bottom: 12px; }
.grade-chips { gap: 6px; }
.chip-btn.on { background: var(--teal); border-color: var(--teal); color: var(--white); }

.paste.drop { outline: 3px dashed var(--teal); background: var(--powder); }

/* Store & Prizes */
.prize-row { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.class-toggles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.class-toggles .chip-btn { padding: 2px 8px; font-size: 0.75rem; }
.class-toggles .chip-btn:not(.on) { background: #F8E6E6; border-color: var(--rose); color: #8A4545; text-decoration: line-through; }

.linkish { background: none; border: 0; padding: 0; color: var(--teal-dark); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* Seating chart printout for a substitute */
.sub-sheet { display: none; }
@media print {
  body.printing-sub > *:not(.sub-sheet) { display: none !important; }
  body.printing-sub .sub-sheet { display: block; color: #000; }
  body.printing-sub .sub-sheet .room { min-width: 0; }
  body.printing-sub .sub-sheet .seat { border: 1px solid #555; background: #fff; }
  body.printing-sub .sub-sheet .unseated { display: none; }
}

/* Advisory gradebook */
.ci-table td, .ci-table th { text-align: center; padding: 6px; }
.ci-table td:first-child, .ci-table th:first-child { text-align: left; }
.ci { width: 36px; height: 32px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--white); font-weight: 900; cursor: pointer; }
.ci.dirty { outline: 3px solid var(--gold); }
.ci-completed { background: #E6F0E9; border-color: var(--sage); color: #3E6B4C; }
.ci-partial { background: #FCF0DC; border-color: var(--gold); color: #8A5A10; }
.ci-missing { background: #F8E6E6; border-color: var(--rose); color: #8A4545; }
.ci-absent, .ci-excused, .ci-unavailable, .ci-not_yet_due, .ci-exempt { background: var(--powder); color: var(--muted); }

/* Teacher Home */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tile { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 14px 16px; color: inherit; text-decoration: none; display: block; }
.tile-label { font-size: 0.8rem; font-weight: 800; color: var(--muted); }
.tile-value { font-size: 1.6rem; font-weight: 900; color: var(--navy); }
.dash-classes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 700px) { .dash-classes { grid-template-columns: 1fr; } }
.dash-classes .card { margin: 0; }
.todo-list { display: flex; flex-wrap: wrap; gap: 8px; }
.todo { background: var(--amber-soft); color: #7A4E0E; border-radius: 999px; padding: 6px 12px; font-weight: 800; text-decoration: none; font-size: 0.9rem; }

/* Student Home */
.page-title { margin: 6px 0 10px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.dash-grid .card { margin: 0; }
.dash-grid .balance-card .coin { width: 48px; height: 48px; }
.dash-grid .balance { font-size: 2.2rem; }

/* Gradebook */
.g-missing { color: var(--rose); font-weight: 900; }
.g-wrap { max-height: 70vh; overflow: auto; }
.g-table th, .g-table td { white-space: nowrap; text-align: center; }
.g-table th:first-child, .g-table td:first-child { text-align: left; position: sticky; left: 0; background: var(--white); z-index: 1; }
/* The assignment row stays at the top while scrolling down the students (the corner cell stays above both). */
.g-table thead th { position: sticky; top: 0; background: var(--white); z-index: 2; box-shadow: 0 2px 0 #D5E0E8; vertical-align: bottom; }
.g-table thead th:first-child { z-index: 3; }
/* 📊 Their grade, always in view at the right end */
.g-table .g-pct { position: sticky; right: 0; background: var(--white); z-index: 1; box-shadow: -2px 0 0 #D5E0E8; min-width: 92px; }
.g-table thead th.g-pct { z-index: 3; white-space: normal; font-size: .8rem; }
.g-table .g-name { color: inherit; text-decoration: none; font: inherit; text-align: left; }
.g-table .g-short { display: none; }
/* 📱 Phones: a narrow name column (long names trimmed — tap one to see all their scores), a slim grade column
   and tighter cells, so several assignments fit across the screen. */
@media (max-width: 640px) {
  .g-wrap { max-height: 78vh; }
  .g-table th, .g-table td { padding: 5px 5px; font-size: .74rem; }
  .g-table .g-name { display: inline-block; max-width: 24vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; text-decoration: underline dotted; font-size: .76rem; }
  .g-table .g-full { display: none; }
  .g-table .g-short { display: inline; }
  .g-table td:first-child .chip { display: none; }
  .g-table .g-pct { min-width: 0; width: 14vw; padding: 5px 3px; font-size: .74rem; }
  .g-table thead th.g-pct { font-size: .68rem; }
  .g-table thead th { font-size: .68rem; }
  .g-table thead th .linkish { max-width: 22vw; display: inline-block; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
  .g-answers { font-size: .7rem; padding: 2px 5px; max-width: 19vw; overflow: hidden; text-overflow: ellipsis; }
  .g-table thead th .small { max-width: 19vw; overflow: hidden; text-overflow: ellipsis; margin: 0 auto; }
  .g-table thead th .linkish { max-width: 19vw; }
}
.g-low { color: #B4232A; }
.g-cell { border: 0; background: transparent; min-width: 38px; min-height: 30px; border-radius: 8px; cursor: pointer; font: inherit; color: inherit; }
.g-cell:hover { background: var(--powder); }
.std-pick { margin: 8px 0; }
.std-pick label.chip-btn { cursor: pointer; }
.missing-list li { margin-bottom: 4px; }
.home-nav a.on { background: var(--navy); color: var(--white); }

.chip.type-reset { background: #FBE4E4; color: #9A2B2B; }

/* ⚙️ Account & settings panel (teacher top bar) */
.acct { position: relative; }
.acct-btn { font-size: 1.15rem; width: 40px; height: 40px; }
.acct-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, 86vw); background: var(--white); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(24, 48, 72, .18); padding: 12px; z-index: 60; }
.acct-head { display: flex; flex-direction: column; padding-bottom: 8px; border-bottom: 1px solid var(--powder); margin-bottom: 6px; }
.acct-row { margin: 6px 0; }
.acct-links { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--powder); margin-top: 8px; padding-top: 6px; }
.acct-links .menu-link { text-align: left; width: 100%; background: none; border: 0; font: inherit; cursor: pointer; }
.acct-links .menu-link { display: block; padding: 9px 10px; border-radius: 10px; font-family: var(--head); font-weight: 700; color: var(--teal-dark); text-decoration: none; }
.acct-links .menu-link:hover, .acct-links .menu-link:focus-visible { background: var(--powder); outline: none; }

/* My Pay */
.pay-today { background: var(--powder); border-radius: 14px; padding: 10px 12px; margin: 10px 0; }
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .pay-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pay-grid > div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.pay-grid .big { font-size: 1.2rem; display: block; margin: 2px 0; }
.pay-days { margin-top: 10px; }
.pay-days summary { cursor: pointer; }

/* Jobs */
.job-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 720px) { .job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.job-card { background: var(--white); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.job-card .inline:last-child { margin-top: auto; padding-top: 8px; }
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }

/* Student Home: money strip, wide progress panel, even grids */
.money-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (min-width: 860px) { .money-strip { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.ms-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ms-balance { flex-direction: row; align-items: center; gap: 10px; }
.ms-balance .coin { width: 56px; height: 56px; flex: none; }
.ms-balance .coin svg, .ms-balance .coin .kraken-img { width: 84px; height: 56px; object-fit: contain; }
.ms-balance .coin { width: 84px; }
.money-strip .balance { font-size: 2rem; line-height: 1.1; }
.dash-grid.two-col { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .dash-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-grid .span-2 { grid-column: 1 / -1; } }
.progress-wide { margin-bottom: 16px; }
.pw-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.pw-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 760px) { .pw-body { grid-template-columns: minmax(260px, 1fr) minmax(0, 1.3fr); align-items: center; } }
.pw-chart { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex: none; }
.donut circle[data-slice] { cursor: pointer; transition: stroke-width .15s; }
.donut circle[data-slice]:hover, .donut circle[data-slice]:focus { stroke-width: 24; outline: none; }
.donut-big { font: 900 26px var(--head, sans-serif); fill: var(--navy); }
.donut-small { font: 700 11px sans-serif; fill: var(--muted); }
.pw-legend { display: flex; flex-direction: column; gap: 4px; }
.pw-key { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 6px; border-radius: 8px; font: inherit; cursor: pointer; text-align: left; color: inherit; }
.pw-key:hover:not(:disabled) { background: var(--powder); }
.pw-key:disabled { opacity: .45; cursor: default; }
.pw-key b { margin-left: auto; padding-left: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.pbar { margin-bottom: 10px; }
.pbar-top { display: flex; justify-content: space-between; font-weight: 700; }
.pbar-track { height: 12px; background: var(--powder); border-radius: 999px; overflow: hidden; margin: 4px 0 2px; }
.pbar-track > div { height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 999px; }
.pw-alert { background: var(--amber-soft); border-radius: 12px; padding: 8px 12px; margin: 6px 0 0; }
.pw-ok { margin: 6px 0 0; }
.pw-detail { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }

.kraken-img { display: block; object-fit: contain; }
.coin .kraken-img { width: 100%; height: 100%; }
.balance-card .coin { width: 120px; height: 80px; }
.brand-logo { width: auto; object-fit: contain; }
.ff-list { margin: 0; padding-left: 4px; list-style: none; } .ff-list li { margin: 6px 0; }

/* Trade Post, chat, checkbook practice */
.integrity { background: var(--powder); border-radius: 12px; padding: 8px 12px; margin-top: 8px; font-size: .92rem; }
.chat-log { max-height: 46vh; min-height: 120px; overflow: auto; background: var(--powder); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.chat-msg { background: var(--white); border-radius: 12px; padding: 6px 10px; max-width: 80%; align-self: flex-start; }
.chat-msg.me { align-self: flex-end; background: #E3F2F4; }
.cb-words { display: flex; flex-wrap: wrap; gap: 6px; }

/* Family portal */
.fam-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (min-width: 720px) { .fam-hero { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.fam-hero .big { font-size: 1.6rem; display: block; }
.todo-row { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 4px; font: inherit; cursor: pointer; color: inherit; }
.todo-row:hover { background: var(--powder); }
.todo-row:last-child { border-bottom: 0; }

/* Payroll roll: completed / incomplete / absent */
.att-seg { display: flex; gap: 4px; margin-top: 6px; }
.att-seg label { flex: 1; cursor: pointer; }
.att-seg input { position: absolute; opacity: 0; pointer-events: none; }
.att-seg span { display: block; text-align: center; font-size: .74rem; font-weight: 800; padding: 5px 2px; border-radius: 8px; border: 1.5px solid var(--line, #d9e2ea); color: var(--muted); }
.att-seg input:focus-visible + span { outline: 3px solid var(--sky); }
.att-seg input[value="completed"]:checked + span { background: #E6F0E9; border-color: #47705A; color: #2F5A43; }
.att-seg input[value="incomplete"]:checked + span { background: #FCF0DC; border-color: #B27515; color: #8A5A10; }
.att-seg input[value="absent"]:checked + span { background: #F8E6E6; border-color: #A85757; color: #A85757; }

/* Jobs: voting poll */
.poll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 12px; }
.poll-row { padding: 8px 0; border-top: 1px solid var(--line); }
.poll-row:first-of-type { border-top: 0; }
.poll-row.hired b { color: var(--teal-dark); }
.poll-bar { position: relative; height: 22px; background: #EEF4F8; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.poll-bar > div { height: 100%; background: #BFD9E6; border-radius: 999px; transition: width .4s; }
.poll-bar > div.lead { background: var(--gold); }
.poll-bar span { position: absolute; inset: 0; display: flex; align-items: center; padding-left: 10px; font-size: .75rem; font-weight: 800; color: var(--navy); }
/* Jobs: postings */
.job-pick { text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; transition: transform .12s, box-shadow .12s; }
.job-pick:hover, .job-pick:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20, 60, 90, .12); }
.post-steps { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.post-steps button { flex: 1; min-width: 110px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 6px 8px; font: inherit; font-size: .78rem; font-weight: 800; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.post-steps button span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #EEF4F8; flex: none; }
.post-steps button.done { color: var(--teal-dark); }
.post-steps button.done span { background: #E6F0E9; }
.post-steps button.on { border-color: var(--teal); color: var(--navy); background: #F2F9FB; }
.post-steps button.on span { background: var(--teal); color: #fff; }
.post-hero { display: flex; gap: 14px; align-items: center; }
.post-icon { font-size: 2.6rem; width: 70px; height: 70px; display: grid; place-items: center; background: #F2F9FB; border-radius: 18px; }
.post-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.post-facts > div { background: #F6FAFC; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.post-timeline { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.post-timeline li { counter-increment: step; position: relative; padding: 8px 0 14px 44px; border-left: 3px solid var(--line); margin-left: 15px; }
.post-timeline li:last-child { border-left-color: transparent; }
.post-timeline li::before { content: counter(step); position: absolute; left: -17px; top: 4px; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 900; display: grid; place-items: center; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 4px 0; }
.post-list.fired li { color: #8A4A4A; }
.warn-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.warn-steps > div { background: #FFF8EC; border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.app-form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 12px; margin: 0 0 12px; }
.app-form legend { font-family: var(--head); font-weight: 800; color: var(--navy); padding: 0 6px; }
/* Jobs: history boxes */
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 12px; }
.history-box { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.history-box.current { border-color: var(--gold); box-shadow: 0 4px 14px rgba(178, 117, 21, .15); }
.history-box.done { border-color: #A9CBB6; }
.history-box.never { background: #FAFCFD; border-style: dashed; }
.history-box.never .history-icon { filter: grayscale(1); opacity: .6; }
.history-icon { font-size: 1.8rem; }
.history-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; text-align: center; }
.history-stats div { background: #F6FAFC; border-radius: 10px; padding: 6px 2px; display: flex; flex-direction: column; }
.history-stats b { font-size: 1.25rem; color: var(--navy); }
.history-stats span { font-size: .68rem; color: var(--muted); line-height: 1.15; }

/* Family "This Week" checklist */
.week-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; background: #fff; }
.week-item.done span { text-decoration: line-through; color: var(--muted); }
.week-item input { width: 20px; height: 20px; flex: none; }

/* About Your Class: class cards, grading donuts, class pages */
.class-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 14px; }
.class-grid .card { margin: 0; }
.class-card { display: block; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; border-top: 6px solid var(--teal); }
.class-card:hover, .class-card:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(20, 60, 90, .14); }
.class-emoji { font-size: 2.2rem; }
.class-emoji.big { font-size: 3.4rem; width: 84px; height: 84px; display: grid; place-items: center; background: #F2F9FB; border-radius: 22px; flex: none; }
.class-more { color: var(--teal-dark); font-weight: 800; }
.class-hero { display: flex; gap: 16px; align-items: center; }
.g-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.g-donut { border-radius: 50%; position: relative; flex: none; }
.g-donut span { position: absolute; inset: 22%; background: #fff; border-radius: 50%; }
.g-legend { list-style: none; padding: 0; margin: 0; flex: 1; min-width: 180px; }
.g-legend li { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; }
.g-legend i { width: 12px; height: 12px; border-radius: 3px; margin-top: 5px; flex: none; }
/* Leaderboards with Students of the Week */
.lb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.lb-side .card { position: sticky; top: 12px; }
@media (max-width: 820px) { .lb-layout { grid-template-columns: 1fr; } .lb-side .card { position: static; } }
.sotw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sotw { margin: 0; display: flex; gap: 12px; align-items: center; border: 2px solid #F3D9A6; background: linear-gradient(135deg, #FFFDF6, #FFF3D6); }
.sotw-star { font-size: 2.2rem; }
.sotw-name { font-size: 1.15rem; }
.past-week { padding: 8px 0; border-top: 1px solid var(--line); }
.past-week:first-of-type { border-top: 0; }

/* Certificates: only the certificate layer prints */
#cert-print { display: none; }
.cert-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 8px; max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
@media print {
  @page { size: letter landscape; margin: 0.4in; }
  body.printing-certs > *:not(#cert-print) { display: none !important; }
  body.printing-certs { background: #fff !important; }
  body.printing-certs #cert-print { display: block; }
  .cert-page { page-break-after: always; break-after: page; height: 7.6in; display: flex; }
  .cert-page:last-child { page-break-after: auto; break-after: auto; }
}
.cert { flex: 1; border: 10px double #1B4D6B; border-radius: 18px; padding: 10px; font-family: 'Quicksand', 'Nunito', system-ui, sans-serif; color: #1B4D6B; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cert-inner { height: 100%; border: 2px solid #E9A23B; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px 40px; background: radial-gradient(circle at top, #FFF8EC, #fff 60%); }
.cert-logo { height: 80px; width: auto; object-fit: contain; }
.cert-kicker { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: #2E8B9B; margin-top: 6px; }
.cert-title { font-size: 40px; font-weight: 900; margin: 10px 0 6px; }
.cert-presented { font-size: 16px; color: #4A6B80; }
.cert-name { font-size: 46px; font-weight: 900; margin: 8px 0; padding: 0 30px 4px; border-bottom: 3px solid #E9A23B; min-width: 55%; }
.cert-why { font-size: 18px; margin-top: 6px; max-width: 80%; }
.cert-class { font-size: 13px; color: #4A6B80; margin-top: 4px; font-weight: 800; }
.cert-sigs { display: flex; gap: 40px; justify-content: center; width: 100%; margin-top: 34px; font-size: 14px; font-weight: 700; }
.cert-sigs > div { flex: 0 1 240px; }
.cert-line { border-bottom: 2px solid #1B4D6B; height: 34px; margin-bottom: 4px; display: flex; align-items: flex-end; justify-content: center; font-weight: 600; }
.cert-role { font-size: 12px; color: #4A6B80; font-weight: 600; }

/* ── 📺 Class Display (projector) ── sized by the screen so it reads from the back row */
.display-body { margin: 0; min-height: 100vh; background: linear-gradient(160deg, #0F3550, #1B4D6B 55%, #2E8B9B); color: #fff; overflow: hidden; font-family: var(--body, 'Nunito', system-ui, sans-serif); }
.display-body .modal { padding: 18px 20px; gap: 8px; color: var(--navy); }
.display-body .modal input { font-size: 1.1rem; }
.display-body main.screen { max-width: none; margin: 0; width: 100%; }
.screen { min-height: 100vh; box-sizing: border-box; padding: 2.2vh 2.4vw; display: flex; flex-direction: column; gap: 1.8vh; }
.screen-lock { position: fixed; right: 12px; bottom: 10px; background: rgba(255, 255, 255, .12); border: 0; color: #fff; border-radius: 50%; width: 40px; height: 40px; font-size: 18px; cursor: pointer; opacity: .45; }
.screen-lock:hover, .screen-lock:focus-visible { opacity: 1; }
.screen-connect { margin: auto; text-align: center; max-width: min(560px, calc(100vw - 24px)); box-sizing: border-box; background: rgba(255, 255, 255, .08); border-radius: 24px; padding: clamp(16px, 5vw, 32px); }
.screen-connect-logo { height: 110px; }
.screen-connect form { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.screen-connect input { font-size: 2rem; letter-spacing: .2em; text-align: center; width: min(260px, 52vw); text-transform: uppercase; border-radius: 14px; border: 0; padding: 8px; }
.screen-error { color: #FFD3D3; font-weight: 800; }
.screen-start { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; background: none; border: 0; color: #fff; font: inherit; font-size: 2rem; font-weight: 900; cursor: pointer; }
.screen-start img { height: 30vh; animation: bob 1.4s ease-in-out infinite; }
.screen-top { display: flex; align-items: center; gap: 1.6vw; }
.screen-logo { height: 9vh; width: auto; }
.screen-class { font-family: var(--head); font-size: 5.2vh; font-weight: 800; line-height: 1; }
.screen-date { font-size: 2.6vh; opacity: .85; margin-top: .6vh; }
.screen-clock { margin-left: auto; font-size: 6vh; font-weight: 900; font-variant-numeric: tabular-nums; }
.screen-banner { background: #E9A23B; color: #1B2B38; border-radius: 16px; padding: 1.4vh 1.6vw; font-size: 3.6vh; font-weight: 900; }
.screen-grid { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1.6vw; min-height: 0; }
.screen-card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 22px; padding: 2.2vh 1.6vw; overflow: hidden; }
.screen-card h2 { font-size: 3vh; margin: 0 0 1vh; color: #FCE3B4; }
.screen-word { font-size: 9vh; font-weight: 900; line-height: 1.05; word-break: break-word; }
.screen-small { font-size: 2.3vh; opacity: .9; margin: .6vh 0 1.4vh; }
.screen-big { font-size: 6vh; font-weight: 900; }
.screen-star { font-size: 3.4vh; font-weight: 900; }
.screen-board { list-style: none; margin: 0; padding: 0; }
.screen-board li { display: grid; grid-template-columns: 6vh 1fr auto; align-items: center; gap: 1vw; font-size: 3.4vh; padding: 1vh 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.screen-board li span { font-size: 4vh; text-align: center; }
.screen-board li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-board li em { font-style: normal; font-weight: 900; color: #FCE3B4; }
.screen-thermo { height: 2.6vh; background: rgba(255, 255, 255, .18); border-radius: 999px; overflow: hidden; margin: .8vh 0; }
.screen-thermo div { height: 100%; background: linear-gradient(90deg, #E9A23B, #FCE3B4); border-radius: 999px; transition: width .6s; }
.screen-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1vw; margin-top: 1vh; }
.screen-split div { background: rgba(0, 0, 0, .15); border-radius: 14px; padding: 1vh .8vw; display: flex; flex-direction: column; }
.screen-split span { font-size: 1.9vh; opacity: .85; line-height: 1.2; }
.screen-split b { font-size: 3.6vh; }
.screen-crew { display: flex; flex-wrap: wrap; gap: .8vh .8vw; font-size: 2.1vh; }
.screen-crew span { background: rgba(255, 255, 255, .1); border-radius: 999px; padding: .6vh 1vw; }
.screen-crew b { color: #FCE3B4; margin-right: .4vw; }
.screen-empty { margin: auto; font-size: 5vh; opacity: .85; }
.screen-message { margin: auto; text-align: center; font-size: 9vh; font-weight: 900; line-height: 1.15; max-width: 90vw; white-space: pre-wrap; }
.screen-curtain { margin: auto; text-align: center; }
.screen-curtain img { height: 32vh; }
.screen-curtain h1 { font-size: 10vh; margin: 2vh 0 0; color: #fff; }
.screen-curtain p { font-size: 3.6vh; opacity: .85; }
/* The timer ring */
.screen-timer { display: flex; flex-direction: column; align-items: center; }
.screen-timer .ring { --p: 360deg; width: 34vh; height: 34vh; border-radius: 50%; background: conic-gradient(#E9A23B var(--p), rgba(255, 255, 255, .15) 0); display: grid; place-items: center; transition: background .25s; }
.screen-timer .ring-in { width: 86%; height: 86%; border-radius: 50%; background: #164560; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.screen-timer .t-time { font-size: 10vh; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.screen-timer .t-time.long { font-size: 6.5vh; }
/* The caption sits under the circle so nothing covers the countdown. */
.screen-timer .t-sub { margin-top: 1.2vh; font-size: 2.4vh; font-weight: 800; min-height: 2.8vh; text-align: center; opacity: .9; }
.screen-timer.big { margin: auto; }
.screen-timer.big .ring { width: 72vh; height: 72vh; }
.screen-timer.big .t-time { font-size: 24vh; }
.screen-timer.big .t-time.long { font-size: 15vh; }
.screen-timer.big .t-sub { font-size: 4vh; min-height: 4.6vh; }
.screen-timer.paused .t-time { opacity: .6; }
.screen-timer.done .ring { background: #E46A6A; animation: timer-flash 1s ease-in-out infinite; }
@keyframes timer-flash { 50% { filter: brightness(1.35); } }
@media (prefers-reduced-motion: reduce) { .screen-timer.done .ring, .screen-start img { animation: none; } }
@media (max-aspect-ratio: 4/3) { .screen-grid { grid-template-columns: 1fr; overflow: auto; } .display-body { overflow: auto; } }

/* Teacher remote (phone) */
.remote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.remote-grid .btn { min-height: 48px; }
.remote-grid.two { grid-template-columns: 1fr 1fr; }
.remote-time { font-size: 2.6rem; font-weight: 900; font-variant-numeric: tabular-nums; text-align: center; color: var(--navy); }
.remote-status { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #9AA9B4; margin-right: 4px; }
.live-dot.on { background: #3BA55C; box-shadow: 0 0 0 3px rgba(59, 165, 92, .25); }
.code-big { font-family: ui-monospace, monospace; font-size: 2rem; font-weight: 900; letter-spacing: .15em; color: var(--navy); }

/* Classroom Dashboard v2 */
.screen-lockchip { font-size: 3vh; vertical-align: middle; opacity: .8; }
.screen-tabs { display: flex; gap: .6vw; margin-left: auto; }
.screen-tabs button { font: inherit; font-size: 2.2vh; font-weight: 800; border: 2px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: inherit; border-radius: 999px; padding: .7vh 1.2vw; cursor: pointer; }
.screen-tabs button.on { background: #E9A23B; border-color: #E9A23B; color: #1B2B38; }
.screen-tabs + .screen-clock { margin-left: 1.4vw; }
.screen-agenda { margin: 0 0 1vh; padding-left: 3.4vh; font-size: 2.9vh; line-height: 1.35; }
.screen-agenda li { padding: .3vh 0; }
.screen-agenda li::marker { font-weight: 900; color: #FCE3B4; }
.screen-thermo.slim { height: 1.6vh; margin: 0; flex: 1; }
.screen-pollrow { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr auto; align-items: center; gap: .8vw; font-size: 2.2vh; margin: .6vh 0; }
.screen-pollrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-roster { display: flex; flex-wrap: wrap; gap: .6vh .5vw; align-items: center; font-size: 2.1vh; background: rgba(0, 0, 0, .18); border-radius: 16px; padding: 1vh 1vw; }
.screen-roster b { margin-right: .6vw; }
.screen-roster span { background: rgba(255, 255, 255, .14); border-radius: 999px; padding: .4vh .9vw; }
.screen-roster span i { font-style: normal; font-weight: 900; margin-right: .4vw; }
.screen-roster span.absent { opacity: .55; text-decoration: line-through; }
.screen-roster span.present i { color: #8FE3A8; }
.screen-donow { flex: 1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.6vw; min-height: 0; }
.screen-donow-main { background: rgba(255, 255, 255, .1); border-radius: 22px; padding: 3vh 2.4vw; overflow: auto; }
.screen-donow-main h2 { font-size: 4.4vh; margin: 0 0 1.6vh; color: #FCE3B4; }
.screen-donow-text { font-size: 5vh; font-weight: 800; line-height: 1.3; white-space: pre-wrap; }
.screen-donow-text.dim { opacity: .6; font-size: 3.4vh; }
.screen-answer { margin-top: 2.4vh; background: rgba(143, 227, 168, .18); border-left: 8px solid #8FE3A8; border-radius: 14px; padding: 1.6vh 1.4vw; font-size: 3.4vh; white-space: pre-wrap; }
.screen-donow-side { display: flex; flex-direction: column; gap: 1.6vh; align-items: stretch; }

/* 7th grade: light blues */
body[data-theme="light"] { background: linear-gradient(160deg, #EAF6FB, #CFE8F3 55%, #B5DCEC); color: #16384F; }
body[data-theme="light"] .screen-card, body[data-theme="light"] .screen-donow-main { background: rgba(255, 255, 255, .78); border-color: rgba(27, 77, 107, .12); box-shadow: 0 6px 20px rgba(27, 77, 107, .08); }
body[data-theme="light"] .screen-card h2, body[data-theme="light"] .screen-donow-main h2 { color: #2E8B9B; }
body[data-theme="light"] .screen-agenda li::marker { color: #2E8B9B; }
body[data-theme="light"] .screen-thermo { background: rgba(27, 77, 107, .12); }
body[data-theme="light"] .screen-split div { background: rgba(46, 139, 155, .1); }
body[data-theme="light"] .screen-crew span, body[data-theme="light"] .screen-roster span { background: rgba(255, 255, 255, .8); }
body[data-theme="light"] .screen-roster { background: rgba(255, 255, 255, .5); }
body[data-theme="light"] .screen-crew b { color: #1B4D6B; }
body[data-theme="light"] .screen-tabs button { border-color: rgba(27, 77, 107, .25); background: rgba(255, 255, 255, .6); }
body[data-theme="light"] .screen-timer .ring { background: conic-gradient(#2E8B9B var(--p), rgba(27, 77, 107, .12) 0); }
body[data-theme="light"] .screen-timer .ring-in { background: #fff; }
body[data-theme="light"] .screen-timer.done .ring { background: #E46A6A; }
body[data-theme="light"] .screen-answer { background: rgba(71, 112, 90, .12); border-left-color: #47705A; }
body[data-theme="light"] .screen-lock { background: rgba(27, 77, 107, .12); color: #16384F; }

/* 📬 Inbox */
.inbox-btn { position: relative; margin-right: 6px; }
.inbox-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #D9534F; color: #fff; font-size: 11px; font-weight: 900; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.inbox-badge.hidden { display: none; }
.inbox-btn.ring { animation: inbox-ring 1.2s ease-in-out 3; }
@keyframes inbox-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .inbox-btn.ring { animation: none; } }
.inbox-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #D9534F; color: #fff; font-size: 11px; font-weight: 900; margin-left: 4px; }
.inbox-row { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 4px; cursor: pointer; }
.inbox-row:hover, .inbox-row:focus-visible { background: #F6FAFC; }
.inbox-row.unread { background: #FFF8EC; }
.inbox-row.unread .inbox-row-top > b::before { content: '● '; color: #D9534F; }
.inbox-row-top { display: flex; gap: 6px; align-items: center; }
.inbox-log { max-height: 55vh; }

/* Job crew names and colors */
.crew-title { font-family: var(--head); }
.crew-real { font-size: .8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 1px; }
.crew-pitch { background: #F2F9FB; border-radius: 12px; padding: 8px 12px; font-weight: 700; color: var(--navy); }
.job-colored { border-top: 6px solid var(--job, var(--teal)); }
.job-swatch { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 800; color: var(--navy); }
.job-swatch i { width: 12px; height: 12px; border-radius: 4px; background: var(--job); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.history-box { border-color: color-mix(in srgb, var(--job, #ccc) 35%, #E3ECF1); }
.history-box.done, .history-box.current { background: color-mix(in srgb, var(--job) 13%, #fff); border-color: var(--job); }
.history-box.current { box-shadow: 0 0 0 3px color-mix(in srgb, var(--job) 30%, transparent), 0 4px 14px rgba(0, 0, 0, .08); }
.history-box.never { border-left: 6px solid var(--job); }
.choice-desc { margin-top: 4px; }
.job-bank { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #FAFCFD; }
.job-bank > summary { cursor: pointer; }
.job-bank-item { border-top: 0; border-left: 5px solid var(--job); background: #fff; border-radius: 10px; padding: 6px 10px; margin-top: 6px; }
.job-bank-item summary { cursor: pointer; }
.job-color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.job-color { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.job-color i { width: 28px; height: 28px; border-radius: 8px; background: var(--job); flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
/* Home: Students of the Week beside Words of the Week */
.home-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .home-split { grid-template-columns: 1fr; } }
.home-split .spot-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.home-word { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.home-word b { font-size: 1.25rem; color: var(--navy); }
.home-grow { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--navy); background: linear-gradient(135deg, #F2FBF5, #E6F4EC); border-left: 6px solid var(--sage, #6FA785); margin-top: 12px; }
.job-pick { border: 1px solid var(--line); border-top: 6px solid var(--job, var(--teal)); background: #fff; }
.job-head .chip { white-space: nowrap; }

/* Classroom Dashboard v3: class + timer left, Do Now center, slim sidebar right */
.screen-bar { display: flex; align-items: center; gap: .8vw; font-size: 2vh; }
.screen-bar-logo { height: 5vh; width: auto; }
.screen-bar-name { font-family: var(--head); font-weight: 800; font-size: 2.4vh; opacity: .9; }
.screen-bar .screen-lockchip { font-size: 1.7vh; font-weight: 800; background: rgba(255, 255, 255, .12); padding: .4vh .9vw; border-radius: 999px; }
.screen-bar .screen-tabs { margin-left: auto; }
.screen-bar-clock { font-size: 3.6vh; font-weight: 900; font-variant-numeric: tabular-nums; margin-left: 1vw; }
.screen-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr) minmax(0, .9fr); gap: 1.4vw; min-height: 0; }
.screen-main.donow-only { grid-template-columns: minmax(0, 1fr) minmax(0, 2.65fr); }
.screen-left { display: flex; flex-direction: column; gap: 1.6vh; align-items: stretch; min-height: 0; }
.screen-head { text-align: center; }
.screen-classpill { display: inline-block; font-family: var(--head); font-weight: 900; font-size: 6vh; line-height: 1; padding: 1vh 2.2vw; border-radius: 999px; background: linear-gradient(135deg, #E9A23B, #F6C76E); color: #1B2B38; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.screen-period { margin-top: 1.2vh; font-size: 2.4vh; font-weight: 800; color: #FCE3B4; }
.screen-day { font-size: 4vh; font-weight: 900; margin-top: .6vh; line-height: 1.1; }
.screen-datel { font-size: 2.2vh; opacity: .9; }
.screen-left .screen-timer .ring { width: 30vh; height: 30vh; margin: 0 auto; }
.screen-left .screen-timer .t-time { font-size: 8.5vh; }
.screen-left .screen-timer .t-time.long { font-size: 5.5vh; }
.screen-timer.period .ring { background: conic-gradient(#7BC6DE var(--p), rgba(255, 255, 255, .15) 0); }
.screen-timer.idle .t-time { font-size: 6vh; }
.screen-card.slim { padding: 1.6vh 1.2vw; }
.screen-card.slim h2 { font-size: 2.4vh; }
.screen-card.slim .screen-agenda { font-size: 2.3vh; }
.screen-center { display: flex; min-height: 0; }
.screen-paper { flex: 1; position: relative; background: #FFFDF6; color: #1E2A33; border-radius: 22px; padding: 6vh 2.6vw 3vh; box-shadow: 0 12px 34px rgba(0, 0, 0, .25);
  background-image: repeating-linear-gradient(transparent 0, transparent calc(6.2vh - 2px), #DCE8F2 calc(6.2vh - 2px), #DCE8F2 6.2vh); background-position: 0 4.6vh; overflow: auto; border-left: 10px solid #E46A6A; }
.paper-tag { position: absolute; top: 1.4vh; left: 2.4vw; font-family: var(--head); font-weight: 900; font-size: 2.6vh; letter-spacing: .1em; color: #C0392B; }
.work-head { font-family: var(--head); font-weight: 900; font-size: 2.6vh; letter-spacing: .1em; color: #1F6F8B; margin: 2.2vh 0 .6vh; padding-top: 1.2vh; border-top: 2px dashed rgba(31, 111, 139, .35); }
.paper-text { font-size: 4.6vh; font-weight: 800; line-height: 6.2vh; white-space: pre-wrap; }
.paper-text.dim { opacity: .55; font-size: 3vh; }
.dn-line { white-space: normal; overflow-wrap: anywhere; }
.dn-line > .dn-t, .dn-line > .es-line { display: block; white-space: normal; text-wrap: pretty; }
.dn-line.list > .dn-t, .dn-line.list > .es-line { padding-left: 1.4em; text-indent: -1.4em; }
.dn-line > .es-line { margin-top: 0; }
.paper-word { font-size: 12vh; font-weight: 900; line-height: 1.1; margin: 2vh 0; color: #1B4D6B; word-break: break-word; }
.screen-paper.big .paper-text { font-size: 5.4vh; line-height: 7vh; }
.screen-paper .screen-answer { color: #1E2A33; background: #EAF6EE; }
.screen-side { display: flex; flex-direction: column; gap: 1.1vh; min-height: 0; overflow: hidden; }
.side-card { display: flex; gap: .8vw; align-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 1.1vh .9vw; }
.side-card.col { flex-direction: column; align-items: stretch; gap: .5vh; }
.side-row { display: flex; gap: .8vw; align-items: center; }
.side-ic { width: 4.6vh; height: 4.6vh; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-size: 2.6vh; flex: none; }
.side-card span { font-size: 1.9vh; font-weight: 800; opacity: .9; display: block; }
.side-card b { font-size: 2.6vh; }
.side-card small { font-size: 1.7vh; opacity: .85; }
.side-word { font-size: 3.6vh !important; display: block; line-height: 1.1; }
.side-star { font-size: 2.4vh !important; }
.side-card .screen-thermo { height: 1.6vh; margin: .5vh 0; }
.side-card .screen-pollrow { font-size: 1.8vh; margin: .2vh 0; }
.side-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6vw; }
.side-pair div { background: rgba(0, 0, 0, .15); border-radius: 14px; padding: 1vh .7vw; display: flex; flex-direction: column; }
.side-pair span { font-size: 1.6vh; opacity: .85; line-height: 1.2; }
.side-pair b { font-size: 2.8vh; }
.screen-picker { padding: 18px 20px; gap: 8px; max-width: 620px; }
.screen-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 8px; }
.screen-picker-grid .btn { min-height: 56px; font-size: 1.1rem; }
body[data-theme="light"] .side-card { background: rgba(255, 255, 255, .8); border-color: rgba(27, 77, 107, .12); }
body[data-theme="light"] .side-ic { background: #E3F2F8; }
body[data-theme="light"] .side-pair div { background: rgba(46, 139, 155, .12); }
body[data-theme="light"] .screen-period { color: #2E8B9B; }
body[data-theme="light"] .screen-bar .screen-lockchip { background: rgba(27, 77, 107, .1); }
body[data-theme="light"] .screen-timer.period .ring { background: conic-gradient(#7BC6DE var(--p), rgba(27, 77, 107, .12) 0); }
body[data-theme="light"] .screen-tabs button.on { background: #E9A23B; border-color: #E9A23B; color: #1B2B38; }
.screen-timer.idle .t-time { font-size: 5vh; }
.sched-row { padding: 10px 12px; }

/* 🗓️ Lesson Planner */
.table.planner th, .table.planner td { vertical-align: top; min-width: 120px; }
.table.planner thead th.today { background: #FFF8EC; }
.pl-off { color: var(--muted); text-align: center; background: #F6F8FA; }
.pl-open { text-align: center; }
.pl-chip { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; font: inherit; cursor: pointer; border: 1px solid var(--line); border-left: 6px solid var(--cat); border-radius: 10px; background: color-mix(in srgb, var(--cat) 10%, #fff); padding: 6px 8px; color: var(--navy); }
.pl-chip span { font-weight: 800; font-size: .85rem; }
.pl-chip small { font-size: .72rem; }
.pl-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--cat); margin: 0 4px 0 10px; vertical-align: middle; }

/* ── 🎞️ Slides (editor, practice view, dashboard) ── */
.slide { container-type: inline-size; position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 14px; overflow: hidden;
  background: linear-gradient(150deg, #0F2B3D, #1B4D6B 60%, #2E8B9B); background-size: cover; background-position: center; color: #fff; }
.slide.on-light { color: #16384F; }
.slide.has-bg.on-dark .slide-inner { text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.slide-inner { position: absolute; inset: 9% 9% 10%; display: flex; flex-direction: column; justify-content: center; gap: 2.4cqw; }
.slide-title { margin: 0; font-family: 'Quicksand', 'Nunito', sans-serif; font-size: max(2.6cqw, calc(5.2cqw * var(--s, 1))); line-height: 1.12; font-weight: 700; }
.slide-title.big { font-size: calc(7.4cqw * var(--s, 1)); text-align: center; }
.slide-title + .slide-sub { text-align: center; }
.slide-sub { margin: 0; font-size: calc(3cqw * var(--s, 1)); font-weight: 700; opacity: .85; }
.slide-list { margin: 0; padding-left: 1.1em; font-size: calc(3.3cqw * var(--s, 1)); line-height: 1.32; font-weight: 700; display: grid; gap: 1.2cqw; }
.slide-list.small { font-size: calc(2.6cqw * var(--s, 1)); }
.slide-list.notes { list-style: decimal; }
.slide-q { font-size: calc(4.4cqw * var(--s, 1)); line-height: 1.25; font-weight: 800; padding: 2.4cqw 3cqw; border-radius: 2cqw; background: rgba(255, 255, 255, .14); }
.slide.on-light .slide-q { background: rgba(255, 255, 255, .72); }
.slide-blank { display: inline-block; width: 9em; border-bottom: .14em solid currentColor; margin: 0 .2em; vertical-align: -.1em; }
.slide-timer-ic { font-size: calc(7cqw * var(--s, 1)); line-height: 1; }
.slide-num { position: absolute; right: 2.2cqw; bottom: 1.6cqw; font-size: 1.6cqw; font-weight: 800; opacity: .7; }

.deck-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #E3ECF1; flex-wrap: wrap; }
.deck-row:last-child { border-bottom: 0; }
.sl-editor { display: grid; gap: 12px; }
.sl-card { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: 12px; align-items: start; }
@media (max-width: 760px) { .sl-card { grid-template-columns: 1fr; } }
.sl-card .slide { box-shadow: 0 4px 14px rgba(15, 43, 61, .18); }
.sl-tools { display: flex; gap: 4px; flex-wrap: wrap; }
.tpl-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.tpl-pages figure { margin: 0; display: grid; gap: 4px; }
.tpl-pages img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid #D5E3EA; }
.tpl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.tpl-pick button { padding: 4px; border-radius: 10px; border: 2px solid transparent; background: #F2F7FA; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 800; }
.tpl-pick button.on { border-color: #2E8B9B; }
.tpl-pick img, .tpl-pick .tpl-none { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; }
.tpl-pick .tpl-none { background: linear-gradient(150deg, #0F2B3D, #1B4D6B 60%, #2E8B9B); }

.sl-practice { position: fixed; inset: 0; z-index: 60; background: #0B1F2C; color: #fff; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 12px 16px; }
.sl-practice-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sl-practice-main { display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); gap: 14px; min-height: 0; }
@media (max-width: 760px) { .sl-practice-main { grid-template-columns: 1fr; overflow: auto; } }
.sl-practice-stage { display: flex; align-items: center; justify-content: center; min-height: 0; }
.sl-practice-stage .slide { max-height: 100%; width: auto; max-width: 100%; height: auto; }
.sl-practice-side { background: rgba(255, 255, 255, .07); border-radius: 14px; padding: 12px; overflow: auto; }
.sl-practice-side h3 { margin: 0 0 6px; font-size: .9rem; color: #9FD7E0; }
.sl-practice-notes { white-space: pre-wrap; font-size: 1.05rem; line-height: 1.45; }
.sl-practice-next { margin-top: 12px; opacity: .8; }
.sl-practice-next .slide { border-radius: 8px; }
.sl-practice-bar { display: flex; align-items: center; justify-content: center; gap: 10px; }
.sl-practice-clock { font-variant-numeric: tabular-nums; font-weight: 900; font-size: 1.3rem; }

.screen-slides { flex: 1; display: flex; align-items: center; justify-content: center; gap: 1.4vw; padding: 1vh 1.4vw 2vh; min-height: 0; }
.screen-slides .slide { width: min(100%, calc((100vh - 12vh) * 16 / 9)); border-radius: 1.4vw; box-shadow: 0 1.4vh 4vh rgba(0, 0, 0, .35); }
.screen-slides .slide-arrow { flex: none; width: 4.2vw; height: 4.2vw; border-radius: 50%; border: 0; font-size: 2vw; cursor: pointer; background: rgba(255, 255, 255, .16); color: inherit; }
.screen-slides .slide-arrow:disabled { opacity: .25; cursor: default; }
body[data-theme="light"] .screen-slides .slide-arrow { background: rgba(27, 77, 107, .12); }
.mode-slides .screen-bar { padding-bottom: 0; }

/* ── 📈 Grades & trends ── */
.g-good { color: #23855A; } .g-ok { color: #2E7C8B; } .g-warn { color: #B07A12; } .g-bad { color: #B84C4C; }
.spark { display: block; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.help-card { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid #F0D5D5; background: #FFF8F8; cursor: pointer; font: inherit; color: inherit; }
.help-card:hover { border-color: #D99; }
.help-grade { font-weight: 900; font-size: 1.15rem; }
.band-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.band { padding: 3px 10px; border-radius: 999px; font-size: .85rem; background: #EEF4F7; }
.band-A { background: #DDF3E7; } .band-B { background: #E2F1F4; } .band-C { background: #FFF3D6; } .band-D { background: #FDE6D3; } .band-F { background: #F9DCDC; }
.show-grid { display: grid; gap: 4px; }
.show-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid #EEF3F6; }
.show-row:last-child { border-bottom: 0; }
.side-note b { font-size: 1.05em; line-height: 1.3; }
.todo-line { display: flex; align-items: center; gap: 8px; }
.todo-line .todo-row { flex: 1; }
.todo-line.done .todo-row { opacity: .55; text-decoration: line-through; }
.req-row { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-top: 1px solid #EEF3F6; }
.req-row.done { opacity: .6; }
.day-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px 12px; max-height: 260px; overflow: auto; }
/* 👀 Test Area preview */
.preview-frames { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.pv-frame { margin: 0; display: grid; gap: 6px; justify-items: center; }
.pv-frame figcaption { font-weight: 800; font-size: .9rem; }
.pv-frame iframe { border: 10px solid #1B2F3D; border-radius: 28px; background: #fff; box-shadow: 0 10px 30px rgba(15, 43, 61, .2); }
.preview-frames.phone iframe { width: 390px; height: 760px; max-width: calc(100vw - 60px); }
.preview-frames.laptop iframe { width: min(100%, 1100px); height: 720px; border-radius: 14px; border-width: 8px; }
.preview-frames.laptop .pv-frame { flex: 1 1 520px; justify-items: stretch; }
.preview-frames.laptop .pv-frame iframe { width: 100%; }
/* Phones: the balance gets its own row so the big number never runs into "This week". */
@media (max-width: 520px) { .money-strip .ms-balance { grid-column: 1 / -1; } }
/* 🙋 All About Me */
.aboutme { max-width: 640px; margin: 0 auto; }
.aboutme fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.aboutme legend { font-weight: 800; margin-bottom: 6px; }
.feel-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.feel { cursor: pointer; }
.feel input { position: absolute; opacity: 0; }
.feel span { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 2px solid var(--line); text-align: center; }
.feel b { font-size: 1.6rem; }
.feel small { font-size: .7rem; line-height: 1.2; }
.feel input:checked + span { border-color: var(--teal); background: #E8F6F7; }
.feel input:focus-visible + span { outline: 3px solid var(--teal); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 10px; }
/* 📋 Attendance = pay: here/absent, today's tasks, exit ticket */
.att-seg input[value="here"]:checked + span { background: #E6F0E9; border-color: #47705A; color: #2F5A43; }
.att-tasks, .att-exit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; }
.att-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6px; margin-top: 6px; }
.att-checks .check { margin: 0; min-height: 0; padding: 2px 0; }
.att-tile.away { opacity: .7; background: #FBF4F4; }
.att-answer { margin-top: 4px; padding: 4px 6px; border-radius: 8px; background: #F2F7FA; max-height: 4.2em; overflow: auto; }
.att-sum { margin-top: 6px; }
.exit-card { border-left: 6px solid var(--gold); }
.pay-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.pw-day { display: grid; gap: 3px; align-content: start; padding: 6px; border-radius: 10px; background: #F4F8FA; border: 1.5px solid transparent; min-width: 0; }
.pw-day.today { border-color: var(--teal); background: #EAF6F7; }
.pw-day.off { opacity: .55; }
.pw-day small { color: var(--muted); font-size: .7rem; }
.pw-day .chip { font-size: .7rem; white-space: normal; }
@media (max-width: 520px) { .pay-week { grid-template-columns: repeat(5, minmax(56px, 1fr)); overflow-x: auto; } }
.wg-in { width: 64px; text-align: center; font-weight: 800; padding: 6px; }
/* Phones: the top bar always fits — the title shortens instead of pushing Sign out off screen. */
@media (max-width: 520px) {
  .topbar { gap: 6px; padding: 8px 10px; }
  .topbar .brand { min-width: 0; flex: 1 1 auto; }
  .topbar .brand span { overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 1rem; }
  .topbar .spacer { display: none; }
  .topbar #logout { padding-left: 10px; padding-right: 10px; }
}
/* Tab bars wrap onto two lines on small screens instead of running off the side. */
.seg { flex-wrap: wrap; }
@media (max-width: 600px) { .seg { border-radius: 18px; } .seg button { flex: 1 1 auto; padding: 8px 10px; } }
/* 💬 Feedback footer at the bottom of every page (not the teacher's or the projector) */
.fb-footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; max-width: 980px; margin: 28px auto 0; padding: 14px 16px; border-top: 2px dashed var(--line); }
.fb-footer .fb-title { font-weight: 900; color: var(--navy); width: 100%; text-align: center; }
.fb-pill { border: 2px solid var(--line); background: var(--white); color: var(--navy); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 800; cursor: pointer; }
.fb-pill:hover { border-color: var(--teal); }
@media print { .fb-footer { display: none; } }
.slip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.slip-grid .slip { display: grid; gap: 4px; }

/* ── Oct 11 review: room at the bottom + phone layout ───────────────────── */
/* Room at the bottom so floating buttons (Feedback, the bar) never cover the last thing on a page. */
body { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
body.display-body { padding-bottom: 0; }
/* Nothing wider than the screen: grid/flex children, fields and forms can shrink. */
.card, .tile, .grid > *, .filters > *, .inline > *, .dash-classes > *, .dash-grid > *, label.field, form { min-width: 0; }
input, select, textarea { max-width: 100%; min-width: 0; }
.card, .tile { overflow-wrap: break-word; }
/* Wide things scroll sideways inside their own box. */
.table-wrap, .room-card, .g-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Seat names wrap to two lines instead of ending in "…". */
.seat .who { white-space: normal; overflow: hidden; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; line-height: 1.1; }
.room { grid-template-rows: auto repeat(8, minmax(34px, auto)) auto auto; }
/* The header: logo and buttons keep their size; long names wrap. */
.topbar .brand { min-width: 0; }
.topbar .brand-logo, .topbar .brand img { flex-shrink: 0; }
.topbar > .btn, .topbar > .icon-btn, .topbar .acct { flex-shrink: 0; }
@media (max-width: 520px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 12px; }
  .tile-value { font-size: clamp(0.95rem, 4.6vw, 1.6rem); white-space: nowrap; }
  .quick-find input { padding: 6px 8px; font-size: 0.9rem; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .topbar .brand span { white-space: normal; line-height: 1.15; }
}
/* Teacher Home class cards: two big numbers */
.class-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.class-nums > div { background: var(--powder); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.class-num { font-size: 1.5rem; font-weight: 900; line-height: 1.15; white-space: nowrap; }
.class-nums .up { color: #3E7A52; font-weight: 800; }
.class-nums .down { color: #A85757; font-weight: 800; }
/* Symmetry: in two-column layouts, an odd last card spans the full row instead of leaving a hole. */
@media (min-width: 701px) { .dash-classes > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 720px) {
  .job-grid > :last-child:nth-child(odd), .dash-grid.two-col > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 760px) { .grid.two > :last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; } }
/* Projector: class purchase pop-up */
.screen-pop { position: fixed; left: 50%; top: 14vh; transform: translateX(-50%); z-index: 80; background: #FFF8EC; color: var(--navy); border: 0.5vh solid var(--gold);
  border-radius: 3vh; padding: 3vh 5vw; text-align: center; box-shadow: 0 2vh 6vh rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 1vh; animation: pop-in .35s ease; max-width: 80vw; }
.screen-pop b { font-family: var(--head); font-size: 6vh; line-height: 1.1; }
.screen-pop span { font-size: 2.6vh; font-weight: 700; color: var(--muted); }
@keyframes pop-in { from { opacity: 0; transform: translate(-50%, -2vh) scale(.95); } }
/* Fun Friday: progress bar with the unlock line */
.ff-bar { position: relative; height: 22px; border-radius: 999px; background: var(--powder); border: 2px solid var(--line); margin: 18px 0 4px; }
.ff-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width .4s ease; }
.ff-line { position: absolute; top: -8px; bottom: -8px; width: 3px; background: var(--navy); border-radius: 2px; transform: translateX(-1px); }
.ff-line span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 800; color: var(--navy); white-space: nowrap; }
.ff-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.ff-settings input[type="range"] { width: 100%; accent-color: var(--teal); }
.ff-roster { max-height: 320px; overflow: auto; }
/* Payroll: was school running? */
.day-card { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; background: var(--powder); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; border-left: 6px solid var(--sky); }
.day-card.ok { border-left-color: var(--sage); }
.day-card.warn { border-left-color: var(--gold); background: var(--amber-soft); }
.att-why { margin-top: 6px; min-height: 36px; padding: 4px 8px; font-size: .85rem; }
.att-note { margin-top: 2px; }
/* Anything hidden stays hidden, even with a display style. */
[hidden] { display: none !important; }
.att-checks .att-note { grid-column: 1 / -1; }
/* Lesson planner: coverage cards, suggestions, reteach tag */
.cov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 640px) { .cov-grid { grid-template-columns: minmax(0, 1fr); } }
.cov-grid .card { margin: 0; }
.cov-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 24px; gap: 8px; align-items: center; font-size: .88rem; margin-top: 6px; }
.cov-bar { height: 10px; background: var(--powder); border-radius: 999px; overflow: hidden; }
.cov-bar > div { height: 100%; border-radius: 999px; }
.cov-types { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.cov-types .muted-chip { opacity: .5; }
.cov-gap { margin: 8px 0 0; background: var(--amber-soft); color: #7A4E0E; border-radius: 10px; padding: 6px 10px; font-weight: 700; }
.suggest-card { margin: 10px 0 0; border-left: 6px solid var(--gold); }
.pl-reteach { font-size: .7rem; background: var(--amber-soft); color: #7A4E0E; border-radius: 6px; padding: 0 5px; }
.inbox-nav { max-width: 680px; margin: 0 auto 16px; }
.test-ctl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .test-ctl-grid { grid-template-columns: minmax(0, 1fr); } }
.test-ctl-grid .card.flat { margin: 0; }
.test-ctl-table { min-width: 640px; }
.test-ctl-table .btn, .test-ctl-table .chip { white-space: nowrap; }
.understudy-pick { display: grid; gap: 4px; min-width: 150px; }
.understudy-pick select { width: 100%; padding: 6px 8px; font-size: .85rem; }
.screen-crew .crew-title { background: none; font-weight: 900; padding-left: 0; }
.screen-crew span.covering { box-shadow: inset 0 0 0 2px #FCE3B4; }
.screen-crew span.needs { opacity: .75; font-style: italic; }
.screen-pop i { font-size: 2vh; color: var(--muted); font-style: normal; }
.cb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .cb-grid { grid-template-columns: minmax(0, 1fr); } }
.cb-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: var(--powder); border-radius: 12px; padding: 6px 10px; }
.cb-row .check { margin: 0; }
.cb-row input[type="number"] { width: 60px; padding: 4px 6px; }
.crew-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.share-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
@media (max-width: 480px) { .share-picks { grid-template-columns: minmax(0, 1fr); } }
.word-blanks { display: flex; justify-content: center; gap: 6px; margin: 10px 0 4px; flex-wrap: wrap; }
.word-blanks span { width: 22px; height: 30px; border-bottom: 4px solid var(--navy); }
.fb-urgent { background: #F8E6E6; color: #8A3B3B; border-radius: 12px; padding: 10px 12px; margin: 10px 0 0; }
.fb-row.urgent { border-left: 4px solid var(--rose); padding-left: 8px; }
.fb-row.done { opacity: .6; }
.acct-btn { position: relative; }
/* 🔒 Privacy switch in the ⚙️ menu */
.privacy-toggle { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 2px solid var(--line); background: var(--powder); color: var(--navy); border-radius: 14px; padding: 8px 10px; margin: 6px 0 4px; font: inherit; cursor: pointer; }
.privacy-toggle .pt-icon { font-size: 1.4rem; }
.privacy-toggle .pt-switch { margin-left: auto; width: 40px; height: 22px; border-radius: 999px; background: var(--navy); position: relative; flex: none; }
.privacy-toggle .pt-switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
.privacy-toggle.open { background: #FCF0DC; border-color: var(--gold); }
.privacy-toggle.open .pt-switch { background: var(--gold); }
.privacy-toggle.open .pt-switch i { left: 21px; }
/* 📅 Calendar icon: A/B letter on the icon, today's details in a panel */
.cal { position: relative; margin-right: 6px; }
.cal-btn { position: relative; }
.cal-letter { position: absolute; bottom: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 900; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.cal-letter.hidden { display: none; }
.cal-panel { width: min(320px, 90vw); }
.cal-head { text-align: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.cal-day { font-family: var(--head); font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.cal-time { font-size: 1.6rem; font-weight: 900; color: var(--teal); font-variant-numeric: tabular-nums; }
.cal-row { margin: 8px 0; }
.cal-bdays { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.cal-bdays li { display: flex; justify-content: space-between; gap: 8px; background: var(--powder); border-radius: 10px; padding: 5px 8px; }
.cal-bdays li.today { background: #FCF0DC; font-weight: 800; }
/* 📊 All About Me class snapshot */
.snap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.snap { background: var(--powder); border-radius: 12px; padding: 10px 12px; }
.snap-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(40px, 1fr) auto; align-items: center; gap: 8px; font-size: .85rem; margin-top: 4px; }
.snap-bar { height: 8px; border-radius: 999px; background: var(--white); overflow: hidden; }
.snap-bar i { display: block; height: 100%; background: var(--teal); }
/* All About Me on phones: two columns of choices so the survey stays short */
@media (max-width: 520px) { .aboutme .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; } .aboutme .pick-grid .check { font-size: .82rem; align-items: flex-start; } }
.bingo .sq span:first-child { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: normal; word-break: normal; }
.bank-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bank-form input[name="def"], .bank-form input[name="sentence"] { grid-column: span 3; }
.bank-form button { grid-column: span 3; justify-self: end; }
@media (max-width: 520px) { .bank-form { grid-template-columns: minmax(0, 1fr); } .bank-form > * { grid-column: auto !important; } }
/* 🏅 Awards & Goals */
.crit-row { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border-radius: 10px; margin-top: 4px; background: var(--powder); }
.crit-row.ok { background: #E6F0E9; }
.acc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .acc-grid { grid-template-columns: minmax(0, 1fr); } }
.acc { background: var(--powder); border-radius: 14px; padding: 10px 12px; border: 2px solid transparent; }
.acc.earned { background: #FCF0DC; border-color: var(--gold); }
.acc-name { font-weight: 900; color: var(--navy); margin-bottom: 2px; }
.cup-rules { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--powder); border-radius: 12px; padding: 8px 12px; margin: 0 0 12px; }
.cup-rules input { width: 64px; padding: 4px 6px; }
.acct-alerts { background: #FCF0DC; border-radius: 12px; padding: 8px 10px; margin: 6px 0; display: grid; gap: 2px; }
.acct-alerts .menu-link { padding: 4px 0; font-size: .9rem; }
.acct-alerts .menu-link.urgent { color: #A85757; font-weight: 900; }
.slip-creds { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: .9rem; }
.slip-creds th { text-align: left; padding: 6px 0 2px; font-size: .85rem; }
.slip-creds td { padding: 3px 6px; border: 1px dashed var(--line); }
.slip-creds td:first-child { width: 42%; color: var(--muted); font-weight: 800; }
.acct-alerts .menu-link { background: none; border: 0; text-align: left; color: var(--navy); font: inherit; font-weight: 800; cursor: pointer; }
.acct-alerts .menu-link:hover { text-decoration: underline; }
/* 🗣️ Word of the Week faces on the projector */
.word-paper .word-hl { background: #FCE3B4; border-radius: .4vh; padding: 0 .4vw; }
.word-photo { display: block; max-width: 100%; max-height: 34vh; border-radius: 2vh; margin: 1vh auto; object-fit: contain; }
.word-forms { display: flex; flex-wrap: wrap; gap: 1vh 1vw; margin: 1vh 0; }
.word-forms span { background: #E6F0E9; border-radius: 999px; padding: .6vh 1.4vw; font-size: 3.4vh; font-weight: 800; }
.word-paper .small-note { font-size: 2.4vh; margin-top: 2vh; }
.side-card .side-def { display: block; font-size: 1.8vh; opacity: .85; font-weight: 600; line-height: 1.25; }
.bank-form input[name="forms"], .bank-form input[name="world"] { grid-column: span 3; }
.bank-photo { grid-column: span 2; display: flex; align-items: center; gap: 6px; }
.seat.dragging { opacity: .45; }
.seat.drop-ok { outline: 3px dashed var(--teal); outline-offset: 2px; }
.seat[draggable="true"] { cursor: grab; }
.home-picks { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.home-picks li { display: flex; justify-content: space-between; gap: 6px; align-items: center; font-size: .9rem; background: var(--powder); border-radius: 10px; padding: 4px 8px; }
/* 📚 Make an assignment + standards side panel */
.assign-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .assign-layout { grid-template-columns: minmax(0, 1fr); } }
.assign-layout .std-card { position: sticky; top: 70px; margin: 0; }
.std-side { display: grid; gap: 8px; }
.std-list { max-height: 55vh; overflow: auto; display: grid; gap: 4px; padding-right: 4px; }
.modal .std-list { max-height: 34vh; }
.std-item { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; padding: 6px 8px; border-radius: 10px; background: var(--powder); cursor: pointer; font-size: .85rem; border: 2px solid transparent; }
.std-item.on { background: #E6F0E9; border-color: var(--sage, #6FA287); }
.std-item b { font-family: ui-monospace, monospace; font-size: .8rem; }
.std-item[hidden] { display: none; }
.std-area { display: block; font-size: .74rem; color: var(--muted, #5c6b7a); font-weight: 700; }
/* 📞 Contact buttons: same size, two per row; an odd one out spans the row */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.contact-grid .btn { width: 100%; justify-content: center; text-align: center; margin: 0; white-space: normal; }
.contact-grid .wide, .contact-grid.has-wide .btn:last-child:nth-child(even), .contact-grid:not(.has-wide) .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 520px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
/* 🧸 Mini-Store inventory + banker reason bank */
.mp-add { display: grid; grid-template-columns: 64px minmax(0, 1fr) 90px 110px auto; gap: 6px; align-items: center; }
@media (max-width: 640px) { .mp-add { grid-template-columns: 64px minmax(0, 1fr); } }
.reason-rows { display: grid; gap: 6px; }
.reason-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 90px auto; gap: 6px; align-items: center; }
@media (max-width: 640px) { .reason-row { grid-template-columns: minmax(0, 1fr) 80px auto; } .reason-row select { grid-column: 1 / -1; } }
/* ⚡ Banker quick-log */
.ql-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.ql-steps span { font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--powder); color: var(--muted); }
.ql-steps span.on { background: var(--teal, #2E8B9A); color: #fff; }
.ql-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ql-grid .btn { margin: 0; width: 100%; justify-content: center; white-space: normal; min-height: 52px; }
.ql-grid .btn.picked { outline: 3px solid var(--gold, #E8A33D); }
.ql-check { background: var(--powder); border-radius: 14px; padding: 12px 14px; }
.mini-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mini-item { border: 2px solid var(--line, #d7e6ee); border-radius: 14px; padding: 10px; text-align: center; background: #fff; }
.mini-item .em { font-size: 1.8rem; display: block; }
.mini-item.out { opacity: .5; }
.lim-form { display: grid; gap: 6px; } .lim-form .field { margin: 0; }
.reason-row { grid-template-columns: 118px minmax(0, 1fr) 70px auto; }
/* 🏦 My Accounts: tiles + cards, two per row */
.acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.acct-grid > .card { margin: 0; }
@media (max-width: 560px) { .acct-grid { grid-template-columns: minmax(0, 1fr); } }
.acct-tile { text-align: center; }
.acct-tile .balance { font-size: 2rem; }
.kcard { border-radius: 18px; padding: 16px 18px; color: #fff; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 6px 18px rgba(20, 50, 80, .18); }
.kcard.debit { background: linear-gradient(135deg, #1F6F8B, #2E8B9A 60%, #59B3C2); }
.kcard.credit { background: linear-gradient(135deg, #2B2B5E, #4B3F8F 60%, #7C68C4); }
.kcard.off { opacity: .55; }
.kc-top, .kc-bot { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; }
.kc-num { font-family: ui-monospace, monospace; font-size: 1.15rem; letter-spacing: .08em; }
.fine-row { grid-template-columns: minmax(0, 1fr) 80px auto auto auto auto; }
.mat-row { grid-template-columns: minmax(0, 1fr) 70px 112px auto auto auto; }
.mat-row select { width: auto; min-width: 0; }
.art-row { grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1.4fr) auto; }
.ci-bulk { display: block; margin: 4px auto 0; font-size: .72rem; padding: 2px 4px; min-height: 0; width: auto; max-width: 92px; }
/* 🐝 Spelling bee on the dashboard */
.screen-paper.bee .bee-blanks { letter-spacing: .25em; }
.bee-say { font: inherit; font-size: .9em; border: 2px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.bee-remote { margin: 10px 0 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge-chip { background: linear-gradient(135deg, #FFF4D6, #FFE3A3); border: 1px solid #E8C25A; border-radius: 999px; padding: 3px 10px; font-size: .85rem; font-weight: 700; }
/* 💼 Job application: tap tiles to rank */
.job-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 8px; }
.job-tile { position: relative; display: grid; gap: 2px; justify-items: center; text-align: center; padding: 10px 8px; border-radius: 14px; border: 2px solid var(--line, #d7e6ee); border-top: 6px solid var(--job, #2E8B9A); background: #fff; cursor: pointer; font: inherit; color: inherit; }
.job-tile.on { border-color: var(--job, #2E8B9A); box-shadow: 0 0 0 3px color-mix(in srgb, var(--job, #2E8B9A) 25%, transparent); }
.job-tile .jt-icon { font-size: 1.5rem; }
.job-tile .jt-rank { position: absolute; top: 4px; left: 6px; font-size: 1.1rem; }
.test-try { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; padding: 8px 10px; background: var(--powder); border-radius: var(--radius-sm); }
/* 🧪 Full-screen Test Area tab */
body.try-page { background: var(--powder); min-height: 100vh; padding-bottom: 80px; }
.try-note { text-align: center; color: var(--muted); margin: 8px 16px; }
body.try-page .preview-frames { padding: 0 16px; }
body.try-page .preview-frames.phone iframe { height: calc(100vh - 210px); min-height: 560px; }
body.try-page .preview-frames.laptop iframe { height: calc(100vh - 210px); min-height: 560px; }
.try-feedback { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 16px; background: var(--white); box-shadow: 0 -4px 16px rgba(15, 43, 61, .12); z-index: 30; }
.try-feedback input { flex: 1; min-width: 0; }
body.test-mode .topbar { box-shadow: inset 0 -5px 0 var(--gold); } body.test-mode .privacy-banner { background: var(--amber-soft, #FCF0DC); }
.og-table input.og-low { border-color: var(--rose); background: #FDF1F1; }
.og-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.og-cell { background: var(--powder); border-radius: var(--radius-sm); padding: 10px 12px; text-align: center; }
.og-cell.low { background: #FDF1F1; box-shadow: inset 0 0 0 2px var(--rose); }
/* Calm "still to turn in" notes: one quiet line, the list folds away when it's long. */
.pw-note { background: var(--powder); border-radius: 12px; padding: 6px 12px; margin: 6px 0 0; font-size: 0.92rem; }
.todo-list { display: block; border-left: 4px solid var(--rose); background: var(--powder); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
.todo-list summary { cursor: pointer; display: list-item; }
.todo-list .ledger-item { display: flex; }
.todo-list[open] summary { margin-bottom: 4px; }
.modal.ideas-modal { width: min(820px, 100%); }
.idea-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 8px; display: grid; gap: 4px; }
/* 🗺️ Skills Map */
.sm-table th, .sm-table td { text-align: center; white-space: nowrap; }
.sm-table td:first-child, .sm-table th:first-child { text-align: left; position: sticky; left: 0; background: var(--white); z-index: 1; }
.sm-table .sm-cat td { background: var(--powder); font-weight: 800; text-align: left; }
.sm-cell { font-size: 0.85rem; line-height: 1.2; }
.sm-hi { background: #E3F2EA; } .sm-mid { background: #FCF0DC; } .sm-lo { background: #FDE8E8; } .sm-taught { background: #E6F1F5; }
.sm-grade { background: var(--powder); }
.sm-key { display: inline-block; padding: 1px 8px; border-radius: 999px; font-weight: 700; }
/* 🧩 Custom dashboard layout */
.screen:has(> .screen-canvas) { height: 100vh; }
.screen-canvas { position: relative; flex: 1; min-height: 0; }
.screen-canvas .dw { position: absolute; box-sizing: border-box; overflow: hidden; display: flex; }
.screen-canvas .dw-in { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.screen-canvas .dw-in > * { flex: 1; min-height: 0; margin: 0; }
.screen-canvas .dw-timer .dw-in, .screen-canvas .dw-clock { align-items: center; justify-content: center; }
.screen-canvas .screen-timer { margin: auto; }
.screen-canvas .dw-in > .side-pair { display: flex; }
.dw-clock { display: flex; align-items: center; justify-content: center; font-size: 9vh; font-weight: 900; font-family: var(--display, 'Quicksand', sans-serif); }
.dw-text { display: flex; align-items: center; justify-content: center; white-space: pre-wrap; font-size: 4vh; font-weight: 800; line-height: 1.2; border-radius: 1.6vh; padding: 1vh 1.2vw; }
.dw-text[style*="text-align:left"] { justify-content: flex-start; } .dw-text[style*="text-align:right"] { justify-content: flex-end; }
.screen-canvas.editing { margin-bottom: 96px; }
.screen-canvas.editing .dw { outline: 2px dashed rgba(255, 255, 255, .35); cursor: move; touch-action: none; border-radius: 1vh; }
.screen-canvas.editing .dw.sel { outline: 3px solid var(--gold, #E9A23B); z-index: 5; background: color-mix(in srgb, var(--paper-bg, #fff) 88%, transparent); box-shadow: 0 8px 28px rgba(0, 0, 0, .35); }
body[data-theme="dark"] .screen-canvas.editing .dw.sel { background: rgba(15, 43, 61, .92); }
.screen-canvas.editing .dw * { pointer-events: none; }
.screen-canvas.editing .dw .dw-h { pointer-events: auto; }
.dw-tag { position: absolute; left: 4px; top: 4px; background: rgba(15, 43, 61, .8); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 6px; pointer-events: none; }
/* Resize handles on every side and corner (big enough to grab; show on the picked box and on hover). */
.dw-h { position: absolute; width: 16px; height: 16px; background: #fff; border: 3px solid var(--gold, #E9A23B); border-radius: 5px; z-index: 6; opacity: 0; transition: opacity .1s; }
.screen-canvas.editing .dw:hover .dw-h, .screen-canvas.editing .dw.sel .dw-h { opacity: 1; }
.dw-h-nw { left: -8px; top: -8px; cursor: nwse-resize; } .dw-h-se { right: -8px; bottom: -8px; cursor: nwse-resize; }
.dw-h-ne { right: -8px; top: -8px; cursor: nesw-resize; } .dw-h-sw { left: -8px; bottom: -8px; cursor: nesw-resize; }
.dw-h-n { left: calc(50% - 8px); top: -8px; cursor: ns-resize; } .dw-h-s { left: calc(50% - 8px); bottom: -8px; cursor: ns-resize; }
.dw-h-e { right: -8px; top: calc(50% - 8px); cursor: ew-resize; } .dw-h-w { left: -8px; top: calc(50% - 8px); cursor: ew-resize; }
.dw-bar button.on { background: var(--navy, #1B4D6B); color: #fff; }
.dw-bar button:disabled { opacity: .45; cursor: default; }
/* ＋ Add a box: every box as a button */
.dw-addpanel { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 8px); display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); max-height: 60vh; overflow: auto; }
.dw-addpanel button { text-align: left; display: flex; flex-direction: column; gap: 2px; }
.dw-addpanel button small { font-weight: 600; opacity: .7; font-size: 11px; }
/* 📋 Boxes on this screen */
.dw-panel { position: fixed; right: 10px; top: 70px; z-index: 55; width: 260px; max-height: calc(100vh - 190px); overflow: auto; background: #fff; color: var(--navy, #1B4D6B); border-radius: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); padding: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.dw-panel small { opacity: .7; margin-bottom: 4px; }
.dw-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 10px; cursor: pointer; border: 1px solid #E2ECF1; }
.dw-row.on { background: #FFF3D6; border-color: var(--gold, #E9A23B); }
.dw-row button { border: 0; background: none; cursor: pointer; font-size: 15px; }
.dw-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-weight: 800; opacity: .75; font-size: 2.2vh; background: rgba(255, 255, 255, .08); border-radius: 1vh; }
.dw-empty small { font-weight: 600; opacity: .8; }
.dw-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 14px; background: #fff; color: var(--navy, #1B4D6B); box-shadow: 0 -4px 18px rgba(0, 0, 0, .25); font-size: 14px; }
.dw-bar button, .dw-bar select { font: inherit; font-weight: 700; border: 1px solid #C9D9E3; background: #F4FAFC; color: inherit; border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.dw-bar .dw-save { background: var(--teal, #2E8B9B); color: #fff; border-color: transparent; }
.dw-bar .dw-spacer { flex: 1; }
.dw-bar .dw-hint { opacity: .7; }
.dw-bar .dw-selname { font-weight: 800; padding-left: 6px; border-left: 2px solid #C9D9E3; }
.dw-flash { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); background: #0F3550; color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 60; font-weight: 700; }
.dw-textform textarea { width: 100%; font: inherit; }
/* The timer and clock fill whatever box you give them. */
.screen-canvas .dw-timer, .screen-canvas .dw-clock-box { container-type: size; }
.screen-canvas .dw-timer .dw-in { zoom: 1 !important; }
.screen-canvas .dw-timer .ring { width: min(92cqw, 78cqh); height: min(92cqw, 78cqh); }
.screen-canvas .dw-timer .t-time { font-size: min(26cqw, 22cqh); }
.screen-canvas .dw-timer .t-time.long { font-size: min(17cqw, 15cqh); }
.screen-canvas .dw-timer .t-sub { font-size: min(7cqw, 6cqh); margin-top: 2cqh; min-height: 0; }
.screen-canvas .dw-clock { container-type: size; font-size: min(28cqw, 70cqh); }
.dw-bar select { width: auto; max-width: 260px; }
/* 📐 Arranging: grid, snap guides, screen switcher, pop-up spot, slides in a box */
.screen-canvas.editing.gridded { background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 5% 5%; }
body[data-theme="light"] .screen-canvas.editing.gridded { background-image: linear-gradient(rgba(27, 77, 107, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 77, 107, .08) 1px, transparent 1px); }
.dw-guide { position: absolute; z-index: 20; pointer-events: none; background: #FF4FA3; }
.dw-guide.v { top: 0; bottom: 0; width: 2px; margin-left: -1px; }
.dw-guide.h { left: 0; right: 0; height: 2px; margin-top: -1px; }
.dw-seg { display: inline-flex; border: 1px solid #C9D9E3; border-radius: 10px; overflow: hidden; }
.dw-bar .dw-seg button { border: 0; border-radius: 0; background: #fff; }
.dw-bar .dw-seg button.on { background: var(--navy, #1B4D6B); color: #fff; }
.dw-gridtoggle { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.screen-canvas:not(.editing) .dw-popup { visibility: hidden; pointer-events: none; }
.dw-popslot { border: 3px dashed var(--gold, #E9A23B); background: rgba(255, 248, 236, .92); color: var(--navy, #1B4D6B); opacity: 1; }
.screen-canvas .dw-slide { container-type: size; }
.screen-canvas .dw-slide .screen-slides { padding: 0; height: 100%; }
.screen-canvas .dw-slide .screen-slides .slide { width: min(100% - 10cqw, calc(100cqh * 16 / 9)); }
.screen-canvas .dw-slide .slide-arrow { width: 4cqw; height: 4cqw; font-size: 2cqw; }
.adv-note { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; background: var(--powder); }
.g-cell.g-flash { background: #FFF3D6; border-radius: 6px; transition: background .5s; }
/* ⛶ Full size test tab: the page exactly as students and families see it. */
body.try-page .preview-frames.full { padding: 0; }
body.try-page .preview-frames.full .pv-frame { width: 100%; }
body.try-page .preview-frames.full figcaption { display: none; }
body.try-page .preview-frames.full iframe { width: 100%; height: calc(100vh - 150px); border: 0; border-radius: 0; box-shadow: none; }
body.try-page main#try-frames { max-width: none; margin: 0; }
/* 💬 Tell Miss Jenkins: follows you down the page, bottom-right. */
.fb-fab { position: fixed; right: 16px; bottom: 16px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fb-fab-btn { display: flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 10px 14px; background: var(--teal); color: #fff; font: inherit; font-weight: 800; box-shadow: var(--shadow-lift); cursor: pointer; }
.fb-fab-btn span { font-size: 0.9rem; }
@media (max-width: 520px) { .fb-fab-btn span { display: none; } .fb-fab-btn { padding: 12px; font-size: 1.2rem; } }
.fb-fab-menu { display: grid; gap: 6px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift); padding: 8px; }
.fb-fab-menu[hidden] { display: none; }
.fb-fab-row { display: flex; gap: 8px; align-items: center; }
.fb-fab-btn.ghost { background: var(--white); color: var(--navy); border: 2px solid var(--line); }
body.pl-arranging .fb-fab { display: none; }
.fb-fab-menu button { border: 1px solid var(--line); background: var(--white); border-radius: 12px; padding: 8px 12px; font: inherit; font-weight: 700; text-align: left; cursor: pointer; color: var(--navy); }
.fb-fab-menu button:hover { background: #F4FAFC; }
body.try-page .fb-fab:not(.try-fab) { display: none; }
body.try-teacher .try-bar, body.try-teacher .try-note, body.try-teacher .try-fab { display: none; }
body.try-teacher { padding-bottom: 0; }
body.try-teacher .preview-frames.full iframe { height: 100vh; }
.try-views { display: flex; gap: 6px; align-items: center; }
.try-views .seg { display: flex; flex-wrap: nowrap; width: auto; }
.try-views .seg button { white-space: nowrap; padding-inline: 10px; }
.try-views .seg button span { display: none; }
body.in-try .topbar .brand span { white-space: nowrap; }
@media print { .fb-fab { display: none; } }
.cbk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 12px; max-height: 50vh; overflow: auto; }
/* 📅 My Pay: one block per day this week */
.pay-weekblocks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
@media (max-width: 760px) { .pay-weekblocks { grid-template-columns: 1fr; } }
.pwb { background: var(--powder); border-radius: var(--radius-sm); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.pwb.today { box-shadow: inset 0 0 0 2px var(--teal); background: #fff; }
.pwb.off { opacity: .65; }
.pwb-head { display: flex; justify-content: space-between; align-items: baseline; }
.pwb-class { display: grid; gap: 3px; }
.pwb-row { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.pwb-bar { height: 6px; background: #DCE8EE; border-radius: 999px; overflow: hidden; }
.pwb-bar > div { height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.pwb-why { color: #A85757; }
.pwb-total { margin-top: auto; border-top: 1px dashed var(--line); padding-top: 4px; font-size: .85rem; display: flex; justify-content: space-between; }
.need-class + .need-class { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.need-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 2px; }
.pay-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 760px) { .pay-split { grid-template-columns: 1fr; } }
.credit-day summary { cursor: pointer; padding: 4px 0; } .credit-day + .credit-day { border-top: 1px solid var(--line); }
.earn-list { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 2px; }
/* 🏦 Accounts: checking, savings, credit — 🔁 moves money top-right */
.acct-box { display: grid; gap: 8px; }
.acct-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.acct-move { border: 1px solid var(--line); background: var(--powder); border-radius: 50%; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; flex: none; }
.acct-move:hover { background: #E3F2F5; }
.why-save { background: #F2FAF5; border-left: 4px solid #6FB58A; border-radius: 10px; padding: 8px 12px; font-size: .92rem; }
.acct-box .kcard { max-width: 380px; }
.credit-scroll { max-height: 360px; overflow-y: auto; padding-right: 4px; }
.reorder { display: inline-flex; gap: 2px; } .reorder .icon-btn { width: 28px; height: 28px; font-size: .9rem; }
.idea-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 8px 0; }
.idea-pick { display: grid; gap: 3px; text-align: left; border: 1px solid var(--line); background: var(--powder); border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.idea-pick:hover { border-color: var(--teal); }
.std-fold { margin-top: 8px; } .std-fold summary { cursor: pointer; padding: 4px 0; } .todo-list { box-shadow: inset 0 0 0 1px var(--rose); }
/* Accounts: words on the left, the card on the right (stacks on phones). */
.acct-box { position: relative; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 18px; align-items: center; }
.acct-box .acct-move { position: absolute; top: 12px; right: 12px; z-index: 1; }
.acct-box .acct-card { padding-top: 34px; }
.acct-box .acct-info { min-width: 0; }
@media (max-width: 700px) { .acct-box { grid-template-columns: 1fr; } .acct-box .acct-card { padding-top: 0; } .acct-box .acct-info { padding-right: 48px; } }
.kcard.savings { background: linear-gradient(135deg, #2F7D5B, #4FA37A 60%, #8BCB9F); }
.kcard.off { filter: grayscale(.8); opacity: .7; }

/* 🎡 Spin-the-wheel (Fun Friday) */
.wheel { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.wheel-disc { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 1.2cqw solid #fff; box-shadow: 0 0 0 0.6cqw var(--navy), 0 2cqw 5cqw rgba(0,0,0,.18); }
.wheel-disc::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9cqw; height: 9cqw; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 0 0 0.6cqw var(--navy); }
.wheel-label { position: absolute; inset: 0; pointer-events: none; }
.wheel-label b { position: absolute; left: 50%; top: 5%; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; max-height: 38%; overflow: hidden;
  font-family: var(--head); font-size: 4cqw; line-height: 1.1; color: #1b2a41; text-shadow: 0 1px 0 rgba(255,255,255,.6); white-space: nowrap; text-overflow: ellipsis; }
.wheel-pointer { position: absolute; left: 50%; top: -2cqw; transform: translateX(-50%); z-index: 2; font-size: 9cqw; line-height: 1; color: var(--navy); text-shadow: 0 1px 0 #fff; }
.wheel-result { text-align: center; font-family: var(--head); font-size: 1.4rem; margin-top: 10px; min-height: 1.6em; }
.ff-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 10px; }
.screen-spin { position: fixed; inset: 0; z-index: 90; background: rgba(15, 30, 50, .82); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vh; }
.screen-spin .wheel { width: 68vh; }
.screen-spin .wheel-result { color: #fff; font-size: 6vh; }
.pay-rate { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: #EAF6EF; border-left: 6px solid #3a9d6a; }
.pay-rate > div:first-child { font-size: 1.1rem; }
.per-job { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border-left: 6px solid var(--job, var(--teal)); background: #F6FAFC; }
.per-job .field { margin: 6px 0 0; }
.mat-pick { cursor: pointer; text-align: center; position: relative; flex-direction: column; gap: 2px; }
.mat-pick input { position: absolute; opacity: 0; pointer-events: none; }
.mat-pick:has(input:checked) { background: var(--teal); color: #fff; border-color: var(--teal); }
.job-checks { border-left: 6px solid var(--job); }
.job-check { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--line, #e3ebf0); }
.job-check.done span { color: var(--muted); text-decoration: line-through; }
.job-check.done .chip { text-decoration: none; }
.red-card { border-left: 6px solid var(--rose, #c0392b); }
.red-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.red-ways > div { background: #FFF6F4; border-radius: 12px; padding: 10px 12px; }
.red-ways p { margin: 4px 0 8px; }
.prize-rules summary { cursor: pointer; font-weight: 800; color: var(--teal-dark, #1B6B7A); }
.prize-rules-box { background: #FFF8EC; border-left: 4px solid var(--gold); border-radius: 10px; padding: 8px 10px; }
/* Fun Friday: side-by-side cards share one height, so there are no ragged gaps. */
.ff-even { align-items: stretch; }
.ff-even > .card { margin-bottom: 0; display: flex; flex-direction: column; }
.ff-even > .card > :last-child { margin-top: auto; }
.ff-even { margin-bottom: 14px; }
.ff-even .bee-list { max-height: 320px; overflow: auto; }
.ff-game { align-items: flex-start; }
.ff-game > span { display: flex; flex-direction: column; line-height: 1.25; }
.ff-game .muted { font-size: 0.78rem; }
/* 🐝 Live spelling bee flip card (projector) */
.bee-tally { margin-left: 1.5vw; font-weight: 800; letter-spacing: 0; }
.bee-card { display: grid; perspective: 1400px; margin: 1vh 0 2vh; }
.bee-card .paper-word { font-size: 8vh; margin: 0; }
.bee-card .bee-blanks { letter-spacing: .12em; }
.bee-face { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh; backface-visibility: hidden;
  transition: transform .7s cubic-bezier(.3,.7,.2,1); border-radius: 2vh; background: rgba(255,255,255,.55); padding: 2vh; text-align: center; }
.bee-back { transform: rotateY(180deg); background: #E8F7EE; }
.bee-card.flipped .bee-front { transform: rotateY(-180deg); }
.bee-card.flipped .bee-back { transform: rotateY(0); }
.bee-def { font-size: 4vh; font-weight: 700; max-width: 90%; }
.bee-status { font-size: 2.8vh; font-weight: 800; }
.bee-card.shake .bee-front { animation: bee-shake .6s; background: #FDECEC; }
@keyframes bee-shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-2.5vh); } 40%,80% { transform: translateX(2.5vh); } }
.bee-remote { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.bee-remote .btn { min-height: 64px; font-size: 1.2rem; }
.try-seg button { white-space: nowrap; }
@media (max-width: 760px) { .try-seg button span { display: none; } }

/* ── ⚓ Nautical dashboard skins (the ship, or a crew role's colors) ─────────
   --sk-a accent · --sk-b second accent · --sk-deep dark sea · --sk-sky light sky */
body.display-body { --sk-a: #E9A23B; --sk-b: #2E8B9B; --sk-deep: #0F3550; --sk-mid: #1B4D6B; --sk-sky: #EAF6FB; --sk-sky2: #B5DCEC; }
body[data-skin="captain"] { --sk-a: #E8C547; --sk-b: #D7263D; --sk-deep: #3A0D12; --sk-mid: #7A1A24; --sk-sky: #FFF6E5; --sk-sky2: #F6D58E; }
body[data-skin="navigator"] { --sk-a: #F08A24; --sk-b: #3BA3D9; --sk-deep: #10304A; --sk-mid: #1D5A80; --sk-sky: #FFF1E2; --sk-sky2: #FFC891; }
body[data-skin="swordsman"] { --sk-a: #9BD35B; --sk-b: #2F7D4F; --sk-deep: #0B1F15; --sk-mid: #1E4A32; --sk-sky: #EEF8EA; --sk-sky2: #B9E2A6; }
body[data-skin="sniper"] { --sk-a: #F5C518; --sk-b: #8A5A2B; --sk-deep: #2B1D0E; --sk-mid: #5C3D1E; --sk-sky: #FFF9E0; --sk-sky2: #F3DD8A; }
body[data-skin="cook"] { --sk-a: #F2C14E; --sk-b: #2B3A67; --sk-deep: #0C1226; --sk-mid: #1F2A4D; --sk-sky: #EEF1FA; --sk-sky2: #BCC6E8; }
body[data-skin="doctor"] { --sk-a: #FF8FB1; --sk-b: #3B6FB6; --sk-deep: #2A1430; --sk-mid: #5B2A63; --sk-sky: #FFF0F5; --sk-sky2: #FFC6D9; }
body[data-skin="archaeologist"] { --sk-a: #C9A7FF; --sk-b: #6A4C93; --sk-deep: #1A1029; --sk-mid: #3B2560; --sk-sky: #F5F0FF; --sk-sky2: #D8C8F5; }
body[data-skin="shipwright"] { --sk-a: #5BD1E8; --sk-b: #2C6E91; --sk-deep: #0A2233; --sk-mid: #1C4A66; --sk-sky: #E8F7FB; --sk-sky2: #A7DCEB; }
body.display-body:not([data-skin="plain"]) { background: radial-gradient(ellipse at 80% -10%, rgba(255,255,255,.12), transparent 50%), linear-gradient(160deg, var(--sk-deep), var(--sk-mid) 60%, var(--sk-b)); }
body.display-body[data-theme="light"]:not([data-skin="plain"]) { background: radial-gradient(ellipse at 80% -10%, #fff, transparent 55%), linear-gradient(160deg, var(--sk-sky), var(--sk-sky2)); }
/* Waves along the bottom and a faint compass rose — the room as a ship's deck. */
body.display-body:not([data-skin="plain"])::before { content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: 14vh; pointer-events: none; z-index: 0; opacity: .22;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q15 0 30 10 T60 10 T90 10 T120 10 V20 H0Z' fill='white'/%3E%3C/svg%3E") repeat-x bottom / 30vh 100%; }
body.display-body:not([data-skin="plain"])::after { content: '✦'; position: fixed; right: 2vw; bottom: 9vh; font-size: 22vh; line-height: 1; color: var(--sk-a); opacity: .07; pointer-events: none; z-index: 0; transform: rotate(22deg); }
body.display-body[data-theme="light"]::before { opacity: .55; filter: hue-rotate(0); }
body.display-body .screen { position: relative; z-index: 1; }
body.display-body:not([data-skin="plain"]) .screen-card h2, body.display-body:not([data-skin="plain"]) .side-card h3 { color: var(--sk-a); }
body.display-body[data-theme="light"]:not([data-skin="plain"]) .screen-card h2 { color: var(--sk-b); }
body.display-body:not([data-skin="plain"]) .screen-paper { border-left-color: var(--sk-b); }
body.display-body:not([data-skin="plain"]) .screen-timer .ring { background: conic-gradient(var(--sk-a) var(--p), rgba(255,255,255,.12) 0); }
body.display-body:not([data-skin="plain"]) .screen-card, body.display-body:not([data-skin="plain"]) .side-card { border: 2px solid color-mix(in srgb, var(--sk-a) 35%, transparent); }
body.display-body:not([data-skin="plain"]) .screen-pop { border-color: var(--sk-a); }
.announce-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.skin-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
@media (max-width: 760px) { .skin-grid { grid-template-columns: repeat(2, 1fr); } }
.pl-narrow .skin-grid { grid-template-columns: repeat(2, 1fr); }
.skin-pick { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line, #dce6ec); border-radius: 12px; background: #fff; padding: 8px 10px; font: inherit; font-weight: 800; cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.skin-pick i { width: 26px; height: 26px; border-radius: 8px; flex: none; background: linear-gradient(135deg, var(--deep) 55%, var(--acc) 55%); }
.skin-pick.on { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46, 139, 155, .2); }

/* 🧩 Page layouts (shared/layouts.js): Miss Jenkins's own design — a 12-column grid, sizes, heights, hidden boxes, text boxes.
   !important so a page's own grid can't override her design. */
.pl-grid { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)) !important; gap: 16px !important; align-items: stretch; grid-auto-flow: row; }
.pl-grid > * { grid-column: 1 / -1 !important; margin-top: 0 !important; margin-bottom: 0 !important; min-width: 0; max-width: none !important; width: auto !important; }
.pl-grid > .pl-blk { grid-column: span var(--pl-span, 12) !important; }
@media (max-width: 760px) { .pl-grid > .pl-blk { grid-column: 1 / -1 !important; } }
.pl-tall { overflow: auto; }
.pl-custom-text { white-space: normal; line-height: 1.5; }
.pl-hidden { display: none !important; }
body.pl-arranging .pl-hidden { display: block !important; opacity: .45; }
.pl-removed, body.pl-arranging .pl-removed { display: none !important; }
.pl-custom-heading { background: none; box-shadow: none; padding: 4px 0; }
.pl-custom-heading h2 { margin: 6px 0; }
.pl-custom-divider { background: none; box-shadow: none; padding: 6px 0; position: relative; text-align: center; }
.pl-custom-divider hr { border: 0; border-top: 2px dashed var(--line); margin: 10px 0; }
.pl-divider-words { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--powder); padding: 0 10px; font-weight: 800; color: var(--muted); }
.pl-custom-link .btn { margin-top: 8px; }
.pl-bar select { width: auto; color: #1B2A41; background: #fff; }
body.pl-arranging .pl-blk { position: relative; outline: 2px dashed #E9A23B; outline-offset: 3px; padding-top: 46px !important; }
body.pl-arranging .pl-blk.pl-drop { outline: 3px solid #FF4FA3; }
.pl-tools { position: absolute; left: 8px; right: 8px; top: 6px; z-index: 30; display: flex; align-items: center; gap: 4px; background: #1B4D6B; color: #fff; border-radius: 10px; padding: 4px 6px; font: 700 13px/1.2 Nunito, system-ui, sans-serif; text-align: left; }
.pl-tools .pl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.pl-tools .pl-grab { cursor: grab; font-size: 18px; padding: 0 4px; user-select: none; }
.pl-tools button, .pl-tools select { font: inherit; border: 0; border-radius: 8px; padding: 3px 7px; background: #E9A23B; color: #1B2A41; cursor: pointer; white-space: nowrap; width: auto; min-height: 0; }
.pl-rs { position: absolute; z-index: 31; background: #E9A23B; opacity: .85; }
.pl-rs-x { top: 50%; right: -9px; width: 12px; height: 46px; margin-top: -23px; border-radius: 6px; cursor: ew-resize; }
.pl-rs-y { left: 50%; bottom: -9px; width: 46px; height: 12px; margin-left: -23px; border-radius: 6px; cursor: ns-resize; }
.pl-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 99999; background: #1B4D6B; color: #fff; padding: 10px 14px; border-radius: 14px;
  font: 700 14px Nunito, system-ui, sans-serif; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; max-width: calc(100vw - 32px); }
.pl-bar button { font: inherit; border: 0; border-radius: 10px; padding: 6px 12px; background: #E9A23B; color: #1B2A41; cursor: pointer; }
/* 👛 Class wallets (money stays in its class) */
.wallet-seg button small { display: block; font-weight: 700; font-size: .78em; opacity: .8; }
.wallet-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.wallet-chips span { background: rgba(255, 255, 255, .7); border: 1px solid var(--line, #dce6ec); border-radius: 999px; padding: 3px 10px; font-size: .85rem; font-weight: 700; }
.ff-ticket { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #FFF8EC; border: 2px dashed var(--gold, #E9A23B); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mini-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.mini-item { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 10px 6px; border-radius: 12px; background: var(--sky, #EAF6FA); }
.mini-item .mini-emoji { font-size: 1.8rem; }
.mini-item.out { opacity: .5; }
.mini-item.mini-ask { font: inherit; color: inherit; cursor: pointer; border: 2px solid #F2B33D; }
.mini-item.mini-ask:hover, .mini-item.mini-ask:focus-visible { background: #FFF4D6; }
/* 📒 Checkbook with the bank's recent activity beside it */
.cb-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.cb-side { position: sticky; top: 12px; }
.cb-activity { max-height: 70vh; overflow: auto; }
details.fold > summary { cursor: pointer; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: '▸ '; } details.fold[open] > summary::before { content: '▾ '; }
@media (max-width: 860px) { .cb-layout { grid-template-columns: 1fr; } .cb-side { position: static; } }
/* 🎮 Games */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.game-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px; border-radius: 16px; border: 2px solid var(--line, #dce6ec); background: var(--white, #fff); cursor: pointer; font: inherit; color: inherit; box-shadow: var(--shadow); }
.game-tile:hover { border-color: var(--teal, #2E8B9B); transform: translateY(-1px); }
.game-tile .game-ic { font-size: 2rem; }
.game-q { font-size: 1.25rem; font-weight: 800; margin: 12px 0 8px; }
.game-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.game-choices .btn { white-space: normal; height: auto; min-height: 44px; }
.game-last { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; }
.game-last.ok { background: #E8F7EE; } .game-last.no { background: #FDEDED; }
.menu-sep { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 12px 2px; border-top: 1px solid var(--line, #dce6ec); margin-top: 4px; }
.crew-board { display: grid; gap: 6px; }
.crew-row, .catchup-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line, #dce6ec); }
body.in-try .topbar { flex-wrap: wrap; row-gap: 6px; }
@media (max-width: 760px) { body.in-try .topbar .brand span, body.in-try #fund-total { display: none; } }
/* 📌 Sticky menu row (wider screens) and ⬆ Back to top. */
@media (min-width: 761px) {
  body.sticky-menus .menu-bar { position: sticky; top: var(--topbar-h, 60px); z-index: 18; max-width: none; padding-bottom: 8px;
    background: rgba(232, 242, 248, 0.96); backdrop-filter: blur(6px); box-shadow: 0 6px 10px -8px rgba(15, 43, 61, .25); }
}
.to-top { position: fixed; right: 20px; bottom: 76px; z-index: 44; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); color: var(--navy);
  font-size: 1.15rem; box-shadow: var(--shadow-lift); cursor: pointer; }
.to-top[hidden] { display: none; }
body.pl-arranging .to-top { display: none; }
@media print { .to-top { display: none; } }

.pl-chip + .pl-chip { margin-top: 4px; }
.pl-more { display: block; margin: 4px auto 0; opacity: .6; }
.pl-more:hover { opacity: 1; }
/* 📄 Planner: lessons from a lesson plan */
.pl-plan-row { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.pl-plan-grid { display: grid; grid-template-columns: 1.5fr .7fr 1.2fr 1.2fr; gap: 0 8px; }
.pl-plan-row textarea { width: 100%; }
@media (max-width: 640px) { .pl-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ⓘ Info icons: a short "how this works" note */
.info-i { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 6px; vertical-align: middle; border-radius: 50%; border: 1.5px solid var(--teal, #2E8B9B); background: transparent; color: var(--teal, #2E8B9B); font: italic 800 12px/1 Georgia, serif; cursor: pointer; padding: 0; flex: none; }
.info-i:hover, .info-i[aria-expanded="true"] { background: var(--teal, #2E8B9B); color: #fff; }
.info-pop { position: absolute; z-index: 9999; background: var(--navy, #1B4D6B); color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.4; padding: 10px 12px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
/* 🎯 Semester goals */
.goal-student { padding: 8px 0; border-top: 1px solid var(--line); }
.goal-student:first-of-type { border-top: 0; }
.goal-row { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0 0 10px; }
/* 🎤 Presenter on the phone remote */
.presenter { border: 2px solid var(--teal); }
/* 🎤 Present mode (phone): one screen, controls in the bottom third */
.pv { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); background: #fff; color: #10202c; }
.pv-status { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.pv-status b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-dot { width: 10px; height: 10px; border-radius: 50%; background: #3BA55C; flex: none; }
.pv-dot.off { background: #F2B33D; }
.pv-timer { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 4px 10px; background: #EAF6FA; color: #10202c; min-width: 64px; }
.pv-handle { font: inherit; font-size: 1.3rem; line-height: 1; border: 0; border-radius: 999px; width: 40px; height: 32px; background: #EAF6FA; color: #10202c; }
.pv-slide { border-radius: 10px; overflow: hidden; touch-action: pan-y; cursor: zoom-in; }
.pv-slide .slide { width: 100%; }
.pv-slide.big { position: fixed; inset: 0; z-index: 1001; background: #000; display: flex; align-items: center; justify-content: center; border-radius: 0; cursor: zoom-out; }
.pv-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: #35505f; }
.pv-upnext { display: flex; align-items: center; gap: 6px; }
.pv-thumb { width: 96px; border-radius: 6px; overflow: hidden; pointer-events: none; }
.pv-thumb .slide { width: 100%; }
.pv-ntitle { font-weight: 800; font-size: .8em; color: #35505f; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.pv-notes { overflow-y: auto; line-height: 1.45; padding: 10px 12px; border-radius: 12px; background: #F6FAFC; color: #0b1720; touch-action: pan-y; }
.pv-notetext { white-space: pre-wrap; }
.pv-notetext.dim { color: #4a6270; }
.pv-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; white-space: normal; }
.pv-lines li { padding-left: 10px; border-left: 3px solid #3BA55C; }
.pv-lines li.ahead { opacity: .5; border-left-color: #b9c6ce; }
.pv-lines em { font-style: normal; font-size: .8em; font-weight: 800; color: #35505f; }
.pv-controls { display: grid; grid-template-columns: 1fr 1.7fr; gap: 10px; }
.pv.lefty .pv-controls { grid-template-columns: 1.7fr 1fr; }
.pv.lefty .pv-go { order: -1; }
.pv-controls button { min-height: 68px; font: inherit; font-weight: 900; font-size: 1.25rem; border: 0; border-radius: 16px; }
.pv-back { background: #EAF0F3; color: #10202c; }
.pv-go { background: #F2B33D; color: #14324a; font-size: 1.45rem !important; }
.pv-controls button:disabled { opacity: .45; }
.pv-sheet { position: fixed; inset: 0; z-index: 1002; background: rgba(10, 20, 30, .45); display: flex; align-items: flex-end; }
.pv-sheet-in { width: 100%; max-height: 80vh; overflow-y: auto; background: #fff; border-radius: 18px 18px 0 0; padding: 6px 14px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.pv-grab { justify-self: center; font: inherit; border: 0; background: #EAF0F3; border-radius: 999px; width: 64px; height: 26px; }
.presenter-slide { margin: 8px 0; border-radius: 10px; overflow: hidden; touch-action: pan-y; }
.presenter-slide .slide { width: 100%; }
/* On the laptop the slide here is just a small preview — the real one is on the dashboard's Slides page. */
.presenter-slide.mini { width: 260px; flex: none; margin: 0; }
.remote-jump { position: sticky; top: 64px; z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 8px 4px; margin: 0 0 8px; background: var(--bg, #EEF6FA); scrollbar-width: none; }
.remote-jump .chip-btn { flex: none; }
#remote .card[id] { scroll-margin-top: 130px; }
.presenter-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; }
.presenter-notes.small-box { flex: 1; min-width: 0; font-size: 1rem; max-height: 9.5em; }
.presenter .presenter-bar .btn { min-height: 48px; font-size: 1.1rem; }
.presenter-notes { white-space: pre-wrap; font-size: 1.1rem; line-height: 1.45; background: #F6FAFC; border-radius: 10px; padding: 10px 12px; max-height: 40vh; overflow-y: auto; }
.presenter-bar { position: sticky; bottom: 8px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 10px; z-index: 5; }
.presenter-bar .btn { min-height: 64px; font-size: 1.3rem; }
@media (max-width: 760px) { body:has(#presenter) .fb-fab { display: none; } }
/* ✓ / ½ / ☐ task buttons on Payroll */
.att-task { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: .85rem; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--navy); }
.att-task span { font-weight: 900; width: 1.1em; text-align: center; }
.att-task[data-state="full"] { background: #E3F2EA; border-color: #8FC7A3; }
.att-task[data-state="half"] { background: #FCF0DC; border-color: #E8C27A; }
.att-task:disabled { opacity: .45; cursor: default; }
.att-late input { min-height: 30px; padding: 2px 6px; }

/* 🎨 Template text area: the box the teacher drew on the page, with an optional card behind the text */
.slide-inner.boxed { overflow: hidden; gap: calc(1.6cqw * var(--s, 1)); }
.slide-inner.panel-light { background: rgba(255, 255, 255, .88); color: #16384F; border-radius: 2cqw; padding: 2cqw 2.6cqw; text-shadow: none !important; }
.slide-inner.panel-dark { background: rgba(15, 43, 61, .82); color: #fff; border-radius: 2cqw; padding: 2cqw 2.6cqw; text-shadow: none !important; }
.tpl-box-stage { position: relative; user-select: none; touch-action: none; cursor: crosshair; }
.tpl-box-stage img { width: 100%; display: block; border-radius: 10px; pointer-events: none; }
.tpl-box-rect { position: absolute; border: 3px dashed #F2A65A; background: rgba(242, 166, 90, .18); border-radius: 6px; pointer-events: none; }
/* ⏱ Word boards: 🔠 Boggle + 🔎 Word Hunt */
.wg-boggle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 320px; margin: 8px auto 0; touch-action: none; user-select: none; }
.wg-die { aspect-ratio: 1; border-radius: 14px; border: 2px solid var(--line, #dce6ec); background: var(--white, #fff); font: 900 1.9rem/1 inherit; font-family: inherit; color: var(--ink, #1d3a4a); cursor: pointer; box-shadow: var(--shadow); }
.wg-die.on { background: var(--teal, #2E8B9B); color: #fff; border-color: var(--teal, #2E8B9B); }
.wg-word { font-size: 1.4rem; letter-spacing: .08em; min-width: 90px; text-align: center; }
.wg-hunt { display: grid; gap: 2px; max-width: 460px; margin: 8px auto 0; user-select: none; }
.wg-cell { aspect-ratio: 1; padding: 0; border: 1px solid var(--line, #dce6ec); border-radius: 6px; background: var(--white, #fff); font: 800 clamp(.8rem, 3.2vw, 1.1rem)/1 inherit; font-family: inherit; color: var(--ink, #1d3a4a); cursor: pointer; }
.wg-cell.pick { background: var(--gold, #E5A93B); color: #fff; }
.wg-cell.f0 { background: #CDEBE3; } .wg-cell.f1 { background: #FCE6B8; } .wg-cell.f2 { background: #D9E4FB; } .wg-cell.f3 { background: #F7D6DF; } .wg-cell.f4 { background: #E3D9F7; } .wg-cell.f5 { background: #D8F0C9; }
.wg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; margin-top: 10px; }
.wg-list > div { padding: 4px 0; border-bottom: 1px dashed var(--line, #dce6ec); }
.wg-list > div.got b { color: var(--teal, #2E8B9B); }
/* 🎞️ Slide Builder v2 — text never goes below the 28pt-at-1080p floor (≈1.95cqw); crowded slides split instead */
.slide-text { display: flex; flex-direction: column; justify-content: center; gap: 2.2cqw; min-width: 0; flex: 1 1 0; }
.slide-list, .slide-list.small, .slide-q, .slide-q.small, .slide-sub, .slide-meta, .slide-stems p, .vocab-card span, .slide-excerpt p, .slide-cols span, .slide-rubric td { font-size: max(1.95cqw, var(--fs, 3.3cqw)); }
.slide-list { --fs: calc(3.3cqw * var(--s, 1)); }
.slide-list.small, .slide-meta, .slide-stems.small p { --fs: calc(2.6cqw * var(--s, 1)); }
.slide-q { --fs: calc(4.4cqw * var(--s, 1)); }
.slide-q.small { --fs: calc(3cqw * var(--s, 1)); }
.slide-sub { --fs: calc(3cqw * var(--s, 1)); }
.slide-sub.big { --fs: calc(4.6cqw * var(--s, 1)); text-align: center; font-weight: 800; }
.slide-meta { margin: 0; font-weight: 700; opacity: .85; text-align: inherit; }
.slide-title.big + .slide-meta, .type-title .slide-meta { text-align: center; }
.slide-kicker { margin: 0; text-align: center; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; font-size: 2.4cqw; opacity: .8; }
.slide .hide { visibility: hidden; }
.sl-card .slide.too-full { outline: 4px solid #B23B3B; outline-offset: 2px; }
.slide .rv-new { animation: rv-fade .22s ease-out; }
/* ✨ Slide transitions (when a new slide comes up) */
.slide.tr-play[data-tr="fade"] { animation: tr-fade .5s ease-out; }
.slide.tr-play[data-tr="slide"] { animation: tr-slide .55s cubic-bezier(.2,.8,.2,1); }
.slide.tr-play[data-tr="push"] { animation: tr-push .55s cubic-bezier(.2,.8,.2,1); }
.slide.tr-play[data-tr="zoom"] { animation: tr-zoom .5s cubic-bezier(.2,.8,.2,1); }
.slide.tr-play[data-tr="flip"] { animation: tr-flip .7s ease-out; transform-origin: center; }
.slide.tr-play[data-tr="spin"] { animation: tr-spin .7s cubic-bezier(.2,.8,.2,1); }
@keyframes tr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tr-slide { from { opacity: 0; transform: translateX(18%); } to { opacity: 1; transform: none; } }
@keyframes tr-push { from { opacity: 0; transform: translateY(20%); } to { opacity: 1; transform: none; } }
@keyframes tr-zoom { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes tr-flip { from { opacity: 0; transform: perspective(1200px) rotateY(-80deg); } to { opacity: 1; transform: none; } }
@keyframes tr-spin { from { opacity: 0; transform: rotate(-12deg) scale(.7); } to { opacity: 1; transform: none; } }
/* 💫 How revealed lines appear */
.slide[data-anim="fly"] .rv-new { animation: an-fly .5s cubic-bezier(.2,.8,.2,1); }
.slide[data-anim="left"] .rv-new { animation: an-left .5s cubic-bezier(.2,.8,.2,1); }
.slide[data-anim="zoom"] .rv-new { animation: an-zoom .45s cubic-bezier(.2,.8,.2,1); }
.slide[data-anim="pop"] .rv-new { animation: an-pop .5s cubic-bezier(.3,1.6,.5,1); }
.slide[data-anim="bounce"] .rv-new { animation: an-bounce .8s ease-out; }
.slide[data-anim="blur"] .rv-new { animation: an-blur .6s ease-out; }
.slide[data-anim="none"] .rv-new { animation: none; }
@keyframes an-fly { from { opacity: 0; transform: translateY(1.2em); } to { opacity: 1; transform: none; } }
@keyframes an-left { from { opacity: 0; transform: translateX(-2.5em); } to { opacity: 1; transform: none; } }
@keyframes an-zoom { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes an-pop { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.08); } 100% { transform: none; } }
@keyframes an-bounce { 0% { opacity: 0; transform: translateY(-1.5em); } 40% { opacity: 1; transform: translateY(0); } 60% { transform: translateY(-.4em); } 80% { transform: translateY(0); } 90% { transform: translateY(-.12em); } 100% { transform: none; } }
@keyframes an-blur { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }
/* ▶ Preview in the editor: every line plays its animation, one after another */
.slide.anim-demo .slide-list li, .slide.anim-demo .slide-stems p, .slide.anim-demo .vocab-card { animation: an-fly .5s both; }
.slide.anim-demo[data-anim="fade"] :is(.slide-list li, .slide-stems p, .vocab-card) { animation-name: rv-fade; }
.slide.anim-demo[data-anim="left"] :is(.slide-list li, .slide-stems p, .vocab-card) { animation-name: an-left; }
.slide.anim-demo[data-anim="zoom"] :is(.slide-list li, .slide-stems p, .vocab-card) { animation-name: an-zoom; }
.slide.anim-demo[data-anim="pop"] :is(.slide-list li, .slide-stems p, .vocab-card) { animation-name: an-pop; }
.slide.anim-demo[data-anim="bounce"] :is(.slide-list li, .slide-stems p, .vocab-card) { animation-name: an-bounce; animation-duration: .8s; }
.slide.anim-demo[data-anim="blur"] :is(.slide-list li, .slide-stems p, .vocab-card) { animation-name: an-blur; }
.slide.anim-demo[data-anim="none"] :is(.slide-list li, .slide-stems p, .vocab-card) { animation: none; }
.slide.anim-demo :is(.slide-list li, .slide-stems p, .vocab-card):nth-child(1) { animation-delay: .55s; }
.slide.anim-demo :is(.slide-list li, .slide-stems p, .vocab-card):nth-child(2) { animation-delay: 1.05s; }
.slide.anim-demo :is(.slide-list li, .slide-stems p, .vocab-card):nth-child(3) { animation-delay: 1.55s; }
.slide.anim-demo :is(.slide-list li, .slide-stems p, .vocab-card):nth-child(4) { animation-delay: 2.05s; }
.slide.anim-demo :is(.slide-list li, .slide-stems p, .vocab-card):nth-child(n+5) { animation-delay: 2.55s; }
/* 💬 The title's own entrance (after the slide's transition) */
.slide.tr-play[data-tanim="fade"] .slide-title { animation: rv-fade .6s .35s both; }
.slide.tr-play[data-tanim="fly"] .slide-title { animation: an-fly .6s .35s both; }
.slide.tr-play[data-tanim="left"] .slide-title { animation: an-left .6s .35s both; }
.slide.tr-play[data-tanim="zoom"] .slide-title { animation: an-zoom .55s .35s both; }
.slide.tr-play[data-tanim="pop"] .slide-title { animation: an-pop .6s .35s both; }
.slide.tr-play[data-tanim="bounce"] .slide-title { animation: an-bounce .9s .35s both; }
.slide.tr-play[data-tanim="blur"] .slide-title { animation: an-blur .7s .35s both; }
@media (prefers-reduced-motion: reduce) { .slide.tr-play, .slide .rv-new, .slide.anim-demo * { animation: none !important; } }
@keyframes rv-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .slide .rv-new { animation: none; } }
.slide-list.check { list-style: none; padding-left: 0; } .slide-list.check li::before { content: '✅ '; }
.slide-list.steps { list-style: decimal; }
.slide-opener { margin: 0; font-size: max(1.95cqw, 2.6cqw); font-weight: 700; opacity: .9; }
.slide-vocab { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6cqw; }
.vocab-card { display: flex; flex-direction: column; gap: .5cqw; padding: 1.6cqw 2cqw; border-radius: 1.6cqw; background: rgba(255, 255, 255, .13); }
.slide.on-light .vocab-card { background: rgba(255, 255, 255, .75); }
.vocab-card b { font-size: 3.6cqw; } .vocab-card span { --fs: 2.4cqw; font-weight: 700; } .vocab-card i { font-size: max(1.95cqw, 2.1cqw); opacity: .85; }
.slide-excerpt { margin: 0; padding: 1.4cqw 2.4cqw; border-left: .7cqw solid currentColor; background: rgba(255, 255, 255, .1); border-radius: 1cqw; counter-reset: ln; font-family: Georgia, 'Times New Roman', serif; }
.slide-excerpt p { --fs: calc(2.7cqw * var(--s, 1)); margin: 0 0 .6em; line-height: 1.4; }
.slide-excerpt.numbered p { counter-increment: ln; position: relative; padding-left: 2.4em; }
.slide-excerpt.numbered p::before { content: counter(ln); position: absolute; left: 0; width: 1.8em; text-align: right; opacity: .55; font-family: inherit; font-size: .8em; }
.slide-mistake, .slide-repair { border-radius: 1.4cqw; padding: 1.2cqw 2cqw; font-size: max(1.95cqw, 3cqw); font-weight: 800; }
.slide-mistake p, .slide-repair p { margin: 0; }
.slide-mistake { background: rgba(214, 69, 69, .25); border: .3cqw solid rgba(214, 69, 69, .8); }
.slide-repair { background: rgba(46, 160, 100, .25); border: .3cqw solid rgba(46, 160, 100, .85); }
.slide-stems { display: grid; gap: 1cqw; }
.slide-stems p { --fs: calc(3cqw * var(--s, 1)); margin: 0; padding: 1cqw 1.6cqw; border: .3cqw dashed currentColor; border-radius: 1.2cqw; font-family: ui-monospace, 'Courier New', monospace; font-weight: 700; }
.slide-cols { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 1.6cqw; }
.slide-cols > div { display: flex; flex-direction: column; gap: .8cqw; padding: 1.4cqw; border-radius: 1.4cqw; background: rgba(255, 255, 255, .12); }
.slide.on-light .slide-cols > div { background: rgba(255, 255, 255, .7); }
.slide-cols b { font-size: 3cqw; text-align: center; } .slide-cols span { --fs: 2.4cqw; font-weight: 700; }
.slide-rubric { border-collapse: collapse; width: 100%; } .slide-rubric th, .slide-rubric td { padding: .9cqw 1.4cqw; border-bottom: .2cqw solid rgba(255, 255, 255, .3); text-align: left; vertical-align: top; }
.slide-rubric th { font-size: 2.8cqw; white-space: nowrap; } .slide-rubric td { --fs: 2.4cqw; font-weight: 700; }
.slide-bigclock { font-size: 16cqw; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; line-height: 1; }
/* badges */
.slide-banner { position: absolute; top: 2.2cqw; left: 50%; transform: translateX(-50%); padding: .6cqw 2cqw; border-radius: 99px; background: #E5A93B; color: #16384F; font-weight: 900; font-size: 2cqw; white-space: nowrap; }
.slide-tbadge { position: absolute; top: 2.2cqw; right: 2.4cqw; padding: .5cqw 1.4cqw; border-radius: 1cqw; background: rgba(0, 0, 0, .35); color: #fff; font-weight: 900; font-size: 2.6cqw; font-variant-numeric: tabular-nums; }
.slide-tbadge.done, .slide-bigclock.done { color: #FF8A80; }
.slide-voice { position: absolute; top: 2.2cqw; left: 2.4cqw; padding: .5cqw 1.2cqw; border-radius: 1cqw; background: rgba(0, 0, 0, .3); color: #fff; font-weight: 800; font-size: 1.8cqw; }
.slide-credits, .slide-asset { position: absolute; bottom: 1.6cqw; left: 2.4cqw; padding: .4cqw 1.2cqw; border-radius: 1cqw; background: rgba(46, 160, 100, .85); color: #fff; font-weight: 800; font-size: 1.7cqw; }
.slide-asset { left: auto; right: 8cqw; background: rgba(0, 0, 0, .3); }
/* layouts */
.slide-pic { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; }
.slide-pic img { max-width: var(--pic, 100%); max-height: 100%; border-radius: 1.4cqw; object-fit: contain; box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .25); }
.slide-pic.pic-wait { visibility: hidden; }
.slide-sticker { position: absolute; right: 3cqw; bottom: 4cqw; width: 34%; height: 40%; display: flex; z-index: 2; pointer-events: none; }
.slide-sticker .slide-pic { justify-content: flex-end; align-items: flex-end; } .slide-sticker .slide-pic img { max-width: calc(var(--pic, 25%) * 4); }
.arr-image_only .slide-pic img { max-height: 100%; }
.arr-text_left_image_right .slide-inner, .arr-image_left_text_right .slide-inner { flex-direction: row; align-items: stretch; gap: 3cqw; }
.arr-image_left_text_right .slide-pic { order: -1; }
.arr-text_top_image_bottom .slide-pic { max-height: 45%; }
.slide-fullpic { position: absolute; inset: 0; } .slide-fullpic .slide-pic, .slide-fullpic img { width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; object-fit: cover; }
.arr-image_full .slide-inner { justify-content: flex-start; } .arr-image_full .slide-text { flex: none; background: rgba(0, 0, 0, .55); color: #fff; padding: 1.4cqw 2.4cqw; border-radius: 1.6cqw; }
.arr-two_column .slide-list, .arr-columns_2 .slide-list { columns: 2; column-gap: 4cqw; display: block; }
.arr-two_column .slide-list li, .arr-columns_2 .slide-list li { break-inside: avoid; margin-bottom: 1cqw; }
.arr-stacked .slide-text { justify-content: flex-start; }
/* built-in themes (when no Canva template) */
.slide.theme-morning { background: linear-gradient(160deg, #FFF6DD, #FFE3B3); color: #4A2C0B; }
.slide.theme-morning .slide-title { color: #C2571A; }
.slide.theme-contrast { background: #101820; color: #FFFFFF; box-shadow: inset 0 0 0 1.4cqw #101820, inset 0 0 0 1.8cqw #F2C14E;
  background-image: repeating-linear-gradient(45deg, rgba(242, 193, 78, .08) 0 1cqw, transparent 1cqw 2cqw); }
.slide.theme-contrast .slide-title { color: #F2C14E; } .slide.theme-contrast .slide-sub, .slide.theme-contrast .slide-kicker { color: #7ED957; }
/* editor */
.sl-checks { margin: 6px 0 0; padding: 0; list-style: none; font-size: .86rem; }
.sl-checks li { padding: 2px 0; } .sl-checks li.block { color: #B23B3B; font-weight: 800; } .sl-checks li.warn { color: #9A6A10; }
.sl-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 10px; margin-top: 6px; }
.sl-more .field { margin: 0; }
/* 👀 Gradebook: every student's answer to one assignment */
.g-answers { display: block; margin: 4px auto 0; padding: 2px 8px; font-size: .78rem; white-space: nowrap; }
.g-answers.has { background: #FFF3D6; border-color: #E8B04B; }
.ga-prompt { white-space: pre-wrap; background: #F1F5F8; border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; font-size: .92rem; max-height: 22vh; overflow: auto; }
.ga-list { display: grid; gap: 6px; max-height: 56vh; overflow: auto; margin-top: 6px; }
.ga-list.ga-only .ga-row.none { display: none; }
.ga-list.ga-hideg .ga-row.graded { display: none; }
.ga-fb { display: block; width: 100%; margin-top: 4px; font-size: .9rem; resize: vertical; border-color: #B9D8E6; background: #F6FBFE; }
.ga-row.graded .ga-who b::before { content: '✓ '; color: #1E7B45; }
.ga-alldone { display: none; }
.ga-list.ga-hideg.ga-only:not(:has(.ga-row:not(.graded):not(.none))) + .ga-alldone, .ga-list.ga-hideg:not(.ga-only):not(:has(.ga-row:not(.graded))) + .ga-alldone { display: block; }
.ga-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 10px; align-items: start; border: 1px solid #D5E0E8; border-radius: 10px; padding: 8px 10px; }
.ga-row.none { opacity: .6; }
.ga-answer { white-space: pre-wrap; }
.ga-box { border: 1px solid #D5E0E8; border-radius: 10px; padding: 8px 10px; background: #F8FAFB; max-height: 30vh; overflow: auto; }
.ga-score { display: flex; align-items: center; gap: 4px; }
.ga-qrow { grid-template-columns: 170px 1fr; }
/* 📷 Photos of paper work; 📄 one assignment for a student / family */
.co-login { display: block; margin-top: 2px; } .co-pw { font-family: ui-monospace, Menlo, monospace; letter-spacing: .03em; }
.es-first { color: #1B4D6B; font-weight: 700; white-space: pre-wrap; }
.ga-en { margin-top: 4px; font-style: italic; color: #1B4D6B; white-space: pre-wrap; }
.jp-list { display: grid; gap: 4px; max-height: 50vh; overflow: auto; margin-top: 6px; }
.jp-q { display: flex; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid #D5E0E8; border-radius: 8px; }
.wv-photos { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.wv-photos img { height: 110px; max-width: 160px; object-fit: cover; border-radius: 8px; border: 1px solid #D5E0E8; display: block; }
.wv-photos.big img { height: 220px; max-width: 320px; }
.wv-box { padding: 8px 12px; border-radius: 10px; background: #F1F5F8; margin: 0 0 10px; }
.wv-box.ok { background: #E8F6EE; } .wv-box.warn { background: #FFF3D6; }
.wv-h { font-size: 1rem; margin: 10px 0 4px; }
.wv-a { white-space: pre-wrap; padding: 6px 10px; background: #F8FAFB; border-radius: 8px; margin-bottom: 6px; }
.wv-dir { margin-top: 10px; } .wv-dir summary { cursor: pointer; } .wv-ol { margin: 4px 0 0; padding-left: 22px; }
.wv-row { cursor: pointer; } .wv-row:hover { background: #F1F5F8; }
.ga-photos { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.ga-photos img { height: 56px; width: 56px; object-fit: cover; border-radius: 6px; border: 1px solid #D5E0E8; display: block; }
.ga-photo { position: relative; } .ga-photo .ga-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #B4232A; color: #fff; font-size: 12px; line-height: 20px; padding: 0; cursor: pointer; }
.ga-bulk { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0 8px; padding: 6px 8px; background: #F7FAFC; border-radius: 10px; }
.ga-note { margin-top: 6px; width: 100%; font-size: .85rem; padding: 4px 8px; background: #FFFBEA; border: 1px dashed #E8C66A; border-radius: 8px; }
.ga-note:placeholder-shown { background: transparent; border-color: #D5E0E8; }
.g-note { font-size: .65rem; margin-left: 1px; }
.ga-qs { display: grid; gap: 8px; }
.ga-q { border-left: 3px solid #D5E0E8; padding-left: 8px; display: grid; gap: 2px; }
.ga-total { margin-top: 4px; font-size: .9rem; }
.sw-q { margin: 8px 0; } .sw-qtext { white-space: pre-wrap; margin-bottom: 4px; } .sw-qsent { margin: 0; color: #4A6577; white-space: pre-wrap; }
@media (max-width: 700px) { .ga-row { grid-template-columns: 1fr; } }
.sw-panel .sw-earlier { margin: 12px 0 -4px; font-size: .85rem; font-weight: 700; color: #9A5B00; }
.dn-popup { margin-top: 10px; padding: 8px 10px; border: 1px solid #D5E0E8; border-radius: 10px; background: #F7FAFC; }
.dn-popup .seg { max-width: none; margin-top: 4px; }
.sw-panel .sw-pay { margin: 0 0 8px; padding: 4px 10px; border-radius: 999px; background: #FFF3D6; display: inline-block; font-size: .92rem; }
.sw-panel .sw-pay.paid { background: #E3F4E9; }
.sl-work { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: #F1F5F8; border: 1px solid #D5E0E8; }
.sl-work.on { background: #E8F6EE; border-color: #8CCBA5; }
.sl-work .switch-row { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin: 0; }
.sl-pic-panel { margin-top: 8px; padding: 8px 10px; border: 1px dashed #C9D6DF; border-radius: 10px; }
.sl-pic-panel .field { margin: 0 0 6px; }
.gf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; max-height: 50vh; overflow: auto; }
.gf-pick { padding: 0; border: 2px solid transparent; border-radius: 8px; background: #EEF3F6; cursor: pointer; overflow: hidden; height: 90px; }
.gf-pick:hover, .gf-pick:focus-visible { border-color: #2B6CB0; } .gf-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpl-none.theme-sw-plain { background: linear-gradient(135deg, #1B4D6B, #0F2B3D); }
.tpl-none.theme-sw-morning { background: linear-gradient(160deg, #FFF6DD, #FFE3B3); }
.tpl-none.theme-sw-contrast { background: #101820; box-shadow: inset 0 0 0 4px #F2C14E; }
/* 🏴‍☠️ Crew color slide themes (one per job) + Easter eggs */
.slide.theme-job { color: #fff; background: radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--job) 60%, transparent), transparent 55%), linear-gradient(150deg, color-mix(in srgb, var(--job) 62%, #0B1A26), #0B1A26 85%);
  box-shadow: inset 0 -1.1cqw 0 var(--job); }
.slide.theme-job .slide-title { color: color-mix(in srgb, var(--job) 40%, #fff); }
.slide.theme-job .slide-kicker, .slide.theme-job .slide-sub { color: color-mix(in srgb, var(--job) 25%, #fff); }
.slide-eggs { position: absolute; right: 7.5cqw; bottom: 1.6cqw; font-size: 3.2cqw; letter-spacing: .35em; opacity: .55; pointer-events: none; }
.slide-num ~ .slide-eggs, .slide .slide-eggs { z-index: 0; }
.slide-egg-hide { position: absolute; font-size: 1.7cqw; opacity: .4; pointer-events: none; transform: rotate(-12deg); }
.tpl-pick.crew .tpl-none { display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
/* 🎮 Games by subject + this month's top two, side by side */
.game-sec-h { margin: 18px 0 8px; font-size: 1.15rem; }
.game-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.game-tile { border-top: 5px solid var(--gc, var(--teal, #2E8B9B)); }
.game-tile.big { padding: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--gc, #2E8B9B) 14%, #fff), #fff); }
.game-tile.big .game-ic { font-size: 2.6rem; } .game-tile.big b { font-size: 1.2rem; }
.game-subjects { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 4px; }
.game-subjects .chip { cursor: pointer; border: 1px solid var(--line, #dce6ec); font: inherit; font-weight: 800; padding: 6px 12px; }
.game-subjects .chip.on { background: var(--teal, #2E8B9B); color: #fff; border-color: var(--teal, #2E8B9B); }
@media (max-width: 420px) { .game-top { gap: 8px; } .game-tile.big { padding: 12px; } .game-tile.big .small.muted { display: none; } }
/* ⏳ Class time left (dashboard card / widget) */
.classleft-time { font-size: 2.4em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.classleft-time.soon { color: #F2B33D; }
/* 📄 Bank statement totals */
.statement-sum { margin: 8px 0; border-top: 1px solid var(--line); padding-top: 6px; }
.statement-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
/* 📋 Today's Plan check-offs */
.screen-agenda li[data-agenda] { cursor: pointer; list-style: none; display: flex; gap: .5em; align-items: baseline; }
.screen-agenda .agenda-box { flex: none; width: 1.05em; height: 1.05em; border: 2px solid currentColor; border-radius: 6px; display: inline-grid; place-items: center; font-size: .9em; line-height: 1; opacity: .8; }
.screen-agenda li.done { opacity: .55; text-decoration: line-through; }
.screen-agenda li.done .agenda-box { background: #3FB57A; border-color: #3FB57A; color: #fff; opacity: 1; }
/* 🎯 Activities screen */
.act-center { display: flex; flex-direction: column; gap: 12px; }
.act-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.act-tabs button, .act-controls button, .act-start { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; background: rgba(255,255,255,.18); color: inherit; }
.act-tabs button.on { background: #F2B33D; color: #14324a; }
.act-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.act-controls button { background: #fff; color: #14324a; font-size: 1.1rem; }
.act-controls button.ghost { background: rgba(255,255,255,.25); color: inherit; }
.act-start { background: #F2B33D; color: #14324a; font-size: 1.6rem; padding: 16px 30px; margin: 18px auto 0; display: block; }
.act-bars { display: grid; gap: 12px; margin: 14px 0; }
.act-bar { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr 3ch; gap: 12px; align-items: center; font-size: 1.4rem; }
.act-bar .screen-thermo { height: 22px; }
.act-bar.win { font-weight: 800; }
.act-winners { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 12px 0; }
.act-win { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(20, 50, 74, .08); font-size: 1.15rem; }
.act-win-ic { font-size: 1.8rem; }
/* 🎮 Class game on the board */
.act-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; max-height: 58vh; overflow-y: auto; padding: 2px 4px 2px 0; }
.act-back { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 8px 16px; margin-top: 10px; cursor: pointer; background: rgba(20, 50, 74, .1); color: inherit; }
.act-games button { font: inherit; font-weight: 800; border: 2px solid rgba(20, 50, 74, .15); border-radius: 14px; padding: 10px; background: #fff; color: #14324a; cursor: pointer; display: grid; gap: 2px; text-align: center; }
.act-games button span { font-size: 1.8rem; }
.act-games button small { font-weight: 600; opacity: .7; }
.screen.with-seats { padding-right: 330px; }
.screen-seatspage { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0 2vw 2vh; }
.seat-room-title { margin: 0 0 1vh; font-size: 4.2vh; }
.seat-room { position: relative; flex: 1; min-height: 0; background: #FFFDF6; color: #1E2A33; border-radius: 22px; box-shadow: 0 12px 34px rgba(0,0,0,.25); }
.seat-room-front { position: absolute; top: 1.2vh; left: 0; right: 0; text-align: center; font-weight: 900; letter-spacing: .08em; color: #8a6d3b; font-size: 2.2vh; }
.seat-card { position: absolute; width: 15%; height: 14%; display: flex; align-items: center; gap: .6vw; padding: 0 .7vw; border-radius: 14px; background: #EAF3FA; border: 2px solid #B9D3E6; overflow: hidden; }
.seat-card.empty { background: transparent; border-style: dashed; opacity: .55; }
.seat-card-no { flex: none; min-width: 5.2vh; height: 5.2vh; border-radius: 50%; background: #1B4D6B; color: #fff; font-weight: 900; font-size: 2.8vh; display: grid; place-items: center; }
.seat-card-name { flex: 1; min-width: 0; font-weight: 800; font-size: 3.4vh; line-height: 1.2; }
.screen-seats { position: fixed; top: 0; right: 0; bottom: 0; width: 310px; z-index: 40; overflow-y: auto; padding: 18px 16px; background: var(--paper, #fffdf6); color: #14324a; box-shadow: -6px 0 24px rgba(0,0,0,.18); }
.seats-head { display: flex; align-items: center; justify-content: space-between; font-size: 1.4rem; margin-bottom: 10px; }
.seats-head button { font: inherit; border: 0; background: rgba(20, 50, 74, .1); border-radius: 999px; width: 34px; height: 34px; cursor: pointer; }
.seats-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.seats-list li { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; padding: 6px 8px; border-radius: 10px; background: rgba(20, 50, 74, .05); }
.seat-no { flex: none; min-width: 2.3em; text-align: center; padding: 2px 6px; border-radius: 8px; background: #F2B33D; color: #14324a; font-weight: 900; }
.seats-empty { font-size: 1.05rem; opacity: .8; }
.game-choices .btn.picked { background: var(--navy, #14324a); color: #fff; border-color: var(--navy, #14324a); }
.game-rules { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(242, 179, 61, .12); }
.game-rules ol { margin: 6px 0 0; padding-left: 1.3em; display: grid; gap: 4px; font-size: .95rem; }
.vote-poll + .vote-poll { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line, #d7e6ee); }
.bee-slots { display: inline-flex; flex-wrap: nowrap; gap: .2em; justify-content: center; white-space: nowrap; max-width: 100%; }
.bee-card .bee-word { white-space: nowrap; word-break: normal; max-width: 100%; }
.bee-slot { display: inline-grid; place-items: center; min-width: 1.15em; height: 1.35em; padding: 0 .08em; border-bottom: .09em solid currentColor; text-transform: lowercase; }
.bee-slot.ok { color: #1f8a4c; }
.bee-slot.bad { color: #fff; background: #d64545; border-radius: .15em; border-bottom-color: #d64545; text-transform: uppercase; }
.bee-keys { display: grid; grid-template-columns: repeat(13, 1fr); gap: 6px; margin: 10px 0; }
.bee-keys button { font: inherit; font-weight: 900; font-size: 1.3rem; padding: 8px 0; border: 0; border-radius: 10px; background: #fff; color: #14324a; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.bee-spellers { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 10px; max-height: 120px; overflow-y: auto; }
.bee-spellers button { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 5px 12px; background: rgba(255,255,255,.7); color: #14324a; cursor: pointer; }
.bee-spellers button.on { background: #F2B33D; }
.bee-pay { text-align: center; font-weight: 900; font-size: 1.4rem; margin: 8px 0; padding: 8px; border-radius: 12px; background: rgba(31, 138, 76, .15); }
.bee-pay.ask { background: rgba(242, 179, 61, .25); }
.bee-keys.small-keys { grid-template-columns: repeat(9, 1fr); gap: 4px; }
.bee-keys.small-keys button { font-size: 1rem; padding: 6px 0; background: var(--sky, #EAF6FA); }
.dw-save.bad { background: #d64545 !important; color: #fff !important; }
.dw-saveerr { flex-basis: 100%; padding: 6px 10px; border-radius: 8px; background: #fdecec; color: #8a1f1f; font-weight: 700; }
.sl-reveal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 8px; }
.sl-groups { flex-basis: 100%; display: grid; gap: 4px; margin-top: 4px; }
.sl-grp { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.sl-grp select { width: auto; padding: 2px 6px; }
.rw-list { display: grid; gap: 8px; margin-top: 10px; }
.rw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: center; padding: 8px; border-radius: 10px; background: var(--sky, #EAF6FA); }
.rw-row > label { grid-column: 1 / -1; }
.rw-row > .small { grid-column: 1 / -1; margin-top: -4px; }
.dw-day { display: grid; grid-template-columns: 110px 1fr 2fr 2fr; gap: 6px; align-items: center; }
@media (max-width: 760px) { .rw-row, .dw-day { grid-template-columns: 1fr; } }
.es-line { display: block; font-size: .72em; font-weight: 600; font-style: italic; opacity: .85; margin-top: .15em; color: inherit; }
.paper-tag .es-line, .side-def .es-line { font-size: .85em; }
.job-pop { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; width: min(460px, calc(100vw - 32px));
  background: #FFF4D6; color: #14324a; border: 3px solid #F2B33D; border-radius: 18px; padding: 14px 18px; box-shadow: 0 10px 34px rgba(0,0,0,.28); }
.job-pop b { font-size: 1.3rem; }
.jobs-board { height: 100%; display: flex; flex-direction: column; gap: .8vh; }
.jobs-board-title { font-weight: 900; font-size: 2.4vh; }
.jobs-board-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(15vw, 1fr)); gap: .8vh .6vw; align-content: start; overflow: hidden; }
.jobs-board-item { display: flex; align-items: center; gap: .6vw; padding: .7vh .7vw; border-radius: 12px; background: rgba(255,255,255,.12); border-left: 8px solid var(--job, #8aa); min-width: 0; }
.jobs-board-item.open { opacity: .6; }
.jb-icon { font-size: 2.8vh; }
.jb-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.15; }
.jb-text b { font-size: 1.9vh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-text small { font-size: 1.3vh; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-who { font-weight: 800; font-size: 1.9vh; text-align: right; white-space: nowrap; }
.cg-count { margin-top: 1.4vh; font-weight: 800; font-size: 2.6vh; color: #1B4D6B; opacity: .8; }
.cg-panel { position: fixed; right: 16px; bottom: 16px; z-index: 70; width: min(420px, calc(100vw - 32px)); background: #fff; color: #14324a; border-radius: 18px; box-shadow: 0 10px 34px rgba(0,0,0,.28); border: 3px solid #F2B33D; padding: 14px 16px; }
.cg-panel h3 { margin: 0 0 6px; font-size: 1rem; padding-right: 28px; }
.cg-panel .cg-q { font-weight: 800; font-size: 1.15rem; margin: 4px 0 10px; }
.cg-panel .cg-choices { display: grid; gap: 6px; }
.cg-panel .cg-choices button { text-align: left; }
/* ✏️ The slide's assignment, answered from the Chromebook (bottom left, so the class game can sit bottom right) */
.sw-panel { right: auto; left: 16px; border-color: #2F8F9D; width: min(480px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; }
.sw-panel .sw-title { margin: 0 0 6px; }
.sw-panel .sw-prompt { white-space: pre-wrap; margin: 0 0 10px; font-size: 1rem; }
.sw-panel .sw-item + .sw-item { border-top: 1px solid #DCE7EE; margin-top: 12px; padding-top: 10px; }
.pv-ask { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.cg-panel .cg-min { position: absolute; top: 8px; right: 10px; }
.cg-panel.min { width: auto; padding: 8px 14px; }
.es-note { position: fixed; left: 50%; bottom: 3vh; transform: translateX(-50%); z-index: 60; max-width: 80vw; font-weight: 800; font-size: 1.1rem; border-radius: 14px; padding: 10px 18px; background: #FFF4D6; color: #14324a; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.es-tap { position: fixed; left: 50%; bottom: 3vh; transform: translateX(-50%); z-index: 60; font: inherit; font-weight: 800; font-size: 1.2rem; border: 0; border-radius: 999px; padding: 12px 22px; background: #F2B33D; color: #14324a; box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; }
.answer-toggle { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 8px 16px; margin-top: 10px; cursor: pointer; background: rgba(20, 50, 74, .1); color: inherit; }
.answer-toggle:hover { background: rgba(20, 50, 74, .18); }
.act-wheel-row { display: grid; grid-template-columns: minmax(220px, 420px) 1fr; gap: 24px; align-items: center; margin-top: 10px; }
.act-wheel-side { display: grid; gap: 8px; text-align: center; }
.act-wheel-pick { font-size: 3rem; }
@media (max-width: 700px) { .act-wheel-row { grid-template-columns: 1fr; } }
.act-q { font-size: 2rem; font-weight: 800; white-space: pre-wrap; }
.act-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.act-choice { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(20, 50, 74, .07); font-size: 1.5rem; }
.act-choice b { flex: none; width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; background: #14324a; color: #fff; }
.act-choice.right { background: #d9f5e5; outline: 3px solid #3FB57A; font-weight: 800; }
.act-choice.dim { opacity: .45; }
.act-answer { font-size: 2.6rem; font-weight: 800; margin: 18px 0; }
/* 🔎 A required answer the student still needs to fill in */
.needs-answer { outline: 3px solid var(--gold, #e0a800); outline-offset: 2px; background: color-mix(in srgb, var(--gold, #e0a800) 10%, transparent); }
.next-interest { margin: 6px 0; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--teal, #1a9c8c) 12%, transparent); }
/* 🪑 Seat picker (VIP seat prizes) */
.seat-pick { position: relative; width: 100%; max-width: 420px; margin: 8px auto; border: 1px dashed var(--line, #ccc); border-radius: 10px; }
.seat-front { position: absolute; top: 4px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--muted, #667); }
.seat-btn { position: absolute; width: 13%; min-width: 34px; height: 34px; border-radius: 8px; border: 2px solid var(--line, #ccc); background: var(--card, #fff); color: inherit; font-weight: 800; cursor: pointer; padding: 0; }
.seat-btn.on { background: var(--gold, #e0a800); border-color: var(--gold, #e0a800); color: #000; }
.seat-btn:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
/* 💵 A class's paycheck waiting for the teacher to send */
.held-pay { margin: 6px 0 10px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--gold, #e0a800) 16%, transparent); border-left: 5px solid var(--gold, #e0a800); }
.act-box { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0; }
.act-center > .act-box { flex: 1; }
.warn-row td { background: #FFF4E5; }
/* ▾ Fold any card (shared/collapse.js) */
.fold-btn { margin-left: 8px; border: 1px solid rgba(20, 50, 74, .18); background: rgba(255, 255, 255, .7); color: inherit; border-radius: 8px; width: 26px; height: 24px; line-height: 1; font-size: 14px; cursor: pointer; vertical-align: middle; padding: 0; }
.fold-btn:hover { background: #fff; }
.card.folded > :not(.fold-head) { display: none !important; }
.card.folded { padding-bottom: 12px; align-self: start; }
.card.folded .fold-head { margin-bottom: 0; }
@media print { .fold-btn { display: none; } .card.folded > :not(.fold-head) { display: revert !important; } }

/* 🧭 Menu pages built from parts of tools (teacher.js PAGES) */
.pg-off, .grid.pg-none { display: none !important; }
.grid.two.pg-one { grid-template-columns: 1fr; }
.pg-mod + .pg-mod > h1, .pg-mod + .pg-mod .queue-head h1 { font-size: 1.4rem; margin-top: 22px; }

.home-points > h1 { font-size: 1.4rem; margin-top: 26px; }

/* 🏠 Home: title + cycle on one line; Clearance inside each class box */
.home-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.home-cycle { font-size: 1rem; font-weight: 600; color: var(--muted, #5b6b78); }
.class-q { margin-top: 10px; border-top: 1px dashed var(--line, #d6e3ea); padding-top: 8px; }
.class-q .qrow { padding: 8px 4px; }
.class-q-head { margin-bottom: 4px; }
.today-bar .day-card { margin: 0; }

/* 🚦 Payroll: days waiting per class */
.gap-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gap { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 12px; padding: 8px 12px; border: 2px solid transparent; font: inherit; cursor: pointer; min-width: 110px; text-align: left; }
.gap span { font-size: .8rem; }
.gap-green { background: #DFF5E4; border-color: #7CCB8D; }
.gap-yellow { background: #FFF6CC; border-color: #F2D14B; }
.gap-orange { background: #FFE3C7; border-color: #F29A3D; }
.gap-red { background: #FFD9D9; border-color: #E05A5A; }
.kp-note { color: var(--ink, #16384F); background: #F5F9FB; border-radius: 8px; padding: 4px 8px; margin-top: 3px; white-space: pre-line; }

/* ⚓ The Crews: every class at a glance · 🗳️ voting schedule */
.crew-grid td, .crew-grid th { white-space: nowrap; font-size: 13px; padding: 6px 8px; }
/* ⚓ The Job column stays put while you scroll sideways through the classes */
.crew-grid th:first-child, .crew-grid td:first-child { position: sticky; left: 0; z-index: 2; background: var(--card, #fff); box-shadow: 2px 0 4px rgba(0,0,0,.08); }
.crew-grid thead th:first-child { z-index: 3; }
.crew-cell { font-weight: 600; text-align: left; }
.crew-cell.here { background: color-mix(in srgb, var(--gold) 30%, transparent); border-radius: 6px; padding: 0 4px; }
.vote-sched { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--teal) 8%, transparent); }

/* 🧰 Job desks */
.lineup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.lineup-grid .btn.done { opacity: .45; }
.paycheck-alert { padding: 8px 10px; border-radius: 10px; margin: 0 0 10px; background: color-mix(in srgb, var(--gold) 22%, transparent); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.doctor-back { border-left: 6px solid #E76BA3; }
.bee-slots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.bee-slots span { min-width: 34px; height: 44px; border-bottom: 3px solid var(--ink, #16384F); font: 700 26px/44px system-ui, sans-serif; text-align: center; text-transform: uppercase; }
.bee-slots span.ok { color: #2e7d32; } .bee-slots span.bad { color: #c62828; }
.bee-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-top: 12px; }

/* 📅 Full calendar */
.month-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, .55fr)); gap: 4px; }
.mg-head { font-weight: 700; font-size: 12px; text-align: center; padding: 4px 0; color: var(--muted, #5b7083); }
.mg-cell { min-height: 92px; background: var(--card, #fff); border: 1px solid color-mix(in srgb, var(--teal) 20%, transparent); border-radius: 10px; padding: 5px 6px; text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.mg-cell.empty { background: transparent; border: 0; cursor: default; }
.mg-cell.wknd { opacity: .6; min-height: 60px; }
.mg-cell.closed { background: color-mix(in srgb, #888 12%, var(--card, #fff)); }
.mg-cell.today { outline: 3px solid var(--gold); }
.mg-cell:hover:not(.empty) { border-color: var(--teal); }
.mg-top { display: flex; gap: 4px; align-items: center; }
.mg-top .chip { padding: 0 6px; font-size: 11px; }
.mg-line { font-size: 11px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-line.warn { color: #b45309; font-weight: 600; }
.mg-line.mine { font-weight: 600; color: var(--teal); }
.mg-line.k-store { color: #7c3aed; } .mg-line.k-no_school { color: #b91c1c; }
@media (max-width: 700px) { .month-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .mg-head:nth-child(n+6), .mg-cell.wknd { display: none; } .mg-line { font-size: 10px; } }

/* 🧲 Arrange freely: each piece sits where it was dragged */
.slide.slide-free { position: relative; }
.slide-free .fx { position: absolute; box-sizing: border-box; }
.slide-free .fx-pic img { width: 100%; height: auto; display: block; border-radius: 1cqw; }
.slide-free .fx-text .slide-text, .slide-free .fx-title .slide-title { margin: 0; }
.sl-card.free-edit .slide-free .fx { min-height: 2.2em; outline: 2px dashed color-mix(in srgb, var(--gold) 80%, transparent); cursor: move; touch-action: none; }
.sl-card.free-edit .slide-free .fx:hover { outline-style: solid; }
.fx-grip { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 4px; background: var(--gold); border: 2px solid #fff; cursor: nwse-resize; touch-action: none; }

/* 📋 Assignments preview */
.modal.modal-wide { width: min(980px, 100%); }
.modal.modal-xwide { width: min(1240px, 100%); }
/* ✏️ Check & fix a worksheet before printing: the parts on the left, the printed page on the right */
.wf-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 12px; }
.wf-list { max-height: 62vh; overflow: auto; display: grid; gap: 6px; padding-right: 4px; }
.wf-row { border: 1px solid #D5E0E8; border-radius: 10px; padding: 6px 8px; background: #fff; display: grid; gap: 4px; }
.wf-row textarea { width: 100%; min-height: 0; resize: vertical; font-size: .92rem; }
.wf-row .wf-es { background: #FFF8E6; }
.wf-row .icon-btn { width: 28px; height: 28px; font-size: .95rem; }
.wf-preview { height: 62vh; overflow: auto; border: 1px solid #D5E0E8; border-radius: 10px; background: #F1F4F6; }
.wf-preview iframe { width: 816px; height: 2400px; border: 0; background: #fff; transform: scale(.5); transform-origin: 0 0; margin-bottom: -1200px; }
@media (max-width: 860px) { .wf-wrap { grid-template-columns: 1fr; } .wf-preview { height: 50vh; } }
.aw-item { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; margin: 0 0 10px; }
.aw-item.off { opacity: .55; }
.aw-item legend { padding: 0 6px; }

/* ✍️ No swipe-to-go-back: a sideways swipe on a touchpad (while selecting text) used to leave the page. */
html, body { overscroll-behavior-x: none; }

/* 🌧️ Indoor recess board (projector) */
.rc-wrap { display: flex; flex-direction: column; gap: 1.4vh; padding: 1.4vh 2vw 2vh; height: calc(100vh - 7vh); box-sizing: border-box; }
.rc-head { display: flex; align-items: center; gap: 2vw; }
.rc-title { font: 800 5.4vh/1 Quicksand, Nunito, sans-serif; color: #fff; flex: 1; }
.rc-voice { display: flex; align-items: center; gap: 1vw; padding: .8vh 1.4vw; border-radius: 2vh; background: rgba(255,255,255,.12); color: #fff; font-size: 2.2vh; }
.rc-voice-ic { font-size: 5vh; }
.rc-voice.v0 { background: #3b4a6b; } .rc-voice.v1 { background: #2e6f8e; } .rc-voice.v2 { background: #2f8f6b; } .rc-voice.v3 { background: #b8732d; }
.rc-ring .screen-timer { transform: scale(.5); transform-origin: right center; margin: -7vh 0; }
.rc-tag { font: 800 1.8vh/1 Nunito, sans-serif; letter-spacing: .08em; color: #6a8191; text-transform: uppercase; }
.rc-main { flex: 1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.6vw; min-height: 0; }
.rc-stations, .rc-board { background: rgba(255,255,255,.96); color: #1b3a52; border-radius: 2.4vh; padding: 1.6vh 1.4vw; display: flex; flex-direction: column; gap: 1vh; min-height: 0; overflow: hidden; }
.rc-stations h3 { margin: 0; font-size: 2.6vh; }
.rc-st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1vh 1vw; flex: 1; min-height: 0; }
.rc-st { border: 2px solid #d8e6ef; border-radius: 1.6vh; padding: 1vh .8vw; display: flex; flex-direction: column; gap: .3vh; overflow: hidden; }
.rc-st-top { display: flex; align-items: center; gap: .6vw; font-size: 2.3vh; } .rc-st-top span { font-size: 3.2vh; }
.rc-st-where { font-size: 1.5vh; color: #6a8191; text-transform: uppercase; letter-spacing: .04em; }
.rc-st-p { font-size: 1.9vh; line-height: 1.25; }
.rc-rules { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4vh 1.4vw; font-size: 1.7vh; color: #2f6b4f; }
.rc-card, .rc-game { flex: 1; display: flex; flex-direction: column; gap: 1.2vh; min-height: 0; }
.rc-text { font: 800 4.4vh/1.2 Nunito, sans-serif; }
.rc-ab { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1vw; align-items: center; }
.rc-a, .rc-b { border-radius: 2vh; padding: 2vh 1.2vw; font: 800 3.4vh/1.2 Nunito, sans-serif; text-align: center; }
.rc-a { background: #e3f1fb; } .rc-b { background: #fde9df; }
.rc-a b, .rc-b b { display: block; font-size: 2.4vh; opacity: .6; }
.rc-or { font-weight: 800; font-size: 2.6vh; color: #7a8b97; }
.rc-answer { font: 800 3.4vh/1.2 Nunito, sans-serif; color: #2f8f6b; }
.rc-how { font-size: 1.9vh; margin: 0; }
.rc-game h2 { margin: 0; font-size: 4.6vh; }
.rc-game ol { margin: 0; padding-left: 3vw; font-size: 2.6vh; line-height: 1.45; }
.rc-decks, .rc-games, .rc-voices { display: flex; flex-wrap: wrap; gap: .6vh .5vw; }
.rc-decks button, .rc-games button, .rc-voices button { border: 2px solid #cfe0ea; background: #fff; border-radius: 99px; padding: .5vh .9vw; font: 700 1.6vh Nunito, sans-serif; color: #1b3a52; cursor: pointer; }
.rc-decks button.on, .rc-games button.on, .rc-voices button.on { background: #1b3a52; color: #fff; border-color: #1b3a52; }
.rc-cleanup { background: #f2b33d; color: #1b2b38; font: 800 3.4vh/1 Nunito, sans-serif; text-align: center; padding: 1.4vh; border-radius: 1.6vh; animation: rcPulse 1.2s ease-in-out infinite alternate; }
@keyframes rcPulse { from { transform: scale(1); } to { transform: scale(1.02); } }

.rc-menu-link { font-size: 1.7vh; color: #1b3a52; background: #e8f3fa; border-radius: 1vh; padding: .6vh .8vw; }
/* 🌧️ Indoor Recess choice menu (/recess) — Kraken Classroom theme */
.rc-menu { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }
.rcm-hero { background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; padding: 22px 26px 22px 112px; border-radius: var(--radius); margin: 18px 0 14px; position: relative; box-shadow: var(--shadow-lift); min-height: 92px; }
.rcm-hero::before { content: ''; position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 72px; height: 72px; background: url('/api/logo') center / contain no-repeat; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.rcm-hero h1 { margin: 4px 0; font: 700 1.9rem/1.15 var(--head); color: #fff; } .rcm-hero p { margin: 4px 0 0; opacity: .92; }
.rcm-hero.small h1 { font-size: 1.6rem; }
.rcm-kicker { font-size: .72rem; letter-spacing: .12em; font-weight: 800; color: var(--amber-soft); }
.rcm-back { position: absolute; right: 22px; top: 22px; background: rgba(255,255,255,.15) !important; color: #fff !important; border-color: rgba(255,255,255,.55) !important; }
.rcm-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.rcm-filters button { border: 2px solid var(--line); background: var(--white); color: var(--navy); border-radius: 999px; padding: 6px 14px; font: 800 .85rem var(--body); cursor: pointer; }
.rcm-filters button.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.rcm-zone { font: 700 1.15rem var(--head); margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 3px solid var(--sky); color: var(--navy); }
.rcm-zone span { font: 600 .85rem var(--body); color: var(--muted); margin-left: 6px; }
.rcm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.rcm-card { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; border-top: 5px solid var(--sky); }
.rcm-card:has(.rcm-play) { border-top-color: var(--teal); }
.rcm-card h3 { margin: 0; font: 700 1.05rem var(--head); } .rcm-play { align-self: flex-start; background: var(--teal); color: #fff; font-size: .66rem; font-weight: 900; letter-spacing: .1em; padding: 2px 8px; border-radius: 999px; }
.rcm-meta { margin: 0; font-size: .84rem; color: var(--muted); } .rcm-meta b { color: var(--teal-dark); }
.rcm-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.rcm-card details summary { cursor: pointer; color: var(--teal-dark); font-weight: 800; font-size: .86rem; } .rcm-card ol { margin: 6px 0 0; padding-left: 18px; font-size: .86rem; }
.rcm-note { background: var(--white); border-radius: var(--radius-sm); border-left: 6px solid var(--gold); box-shadow: var(--shadow); padding: 12px 16px; margin: 20px 0 8px; font-size: .92rem; }
.rcm-bar { background: var(--navy); color: #fff; padding: 10px 16px; font: 700 1.05rem var(--head); border-radius: var(--radius-sm); margin: 18px 0 8px; }
.rcm-list { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 12px 16px 12px 36px; }
.rcm-list li { margin: 6px 0; } .rcm-list li::marker { color: var(--teal); font-weight: 800; }
.rcm-warn { background: #FBEFEF; border-radius: var(--radius-sm); border-left: 6px solid var(--rose); padding: 10px 14px; max-width: 460px; }
.rcm-game { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.rcm-how { margin-top: 10px; } .rcm-how summary { cursor: pointer; font-weight: 800; color: var(--teal-dark); }
.rcm-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.rcm-status { font-weight: 800; font-size: 1.05rem; margin: 6px 0; }
.rcm-scores { display: flex; gap: 10px; flex-wrap: wrap; } .rcm-scores span { padding: 4px 10px; border-radius: 99px; border: 2px solid var(--c, var(--line)); }
.rcm-scores span.on { background: var(--c); color: #fff; } .rcm-scores.big span { font-size: 1.05rem; }
.rcm-svg { width: min(100%, 420px); display: block; margin: 6px auto; touch-action: manipulation; }
.rcm-clock { font: 900 1.6rem Nunito, sans-serif; min-width: 80px; } .rcm-clock.low { color: #D9534F; }
.rcm-prompt, .rcm-cardbig { font: 800 1.5rem/1.3 Nunito, sans-serif; background: var(--powder); border-radius: 10px; padding: 18px; margin: 6px 0; }
.rcm-cardbig.hidden-word { color: var(--muted); text-align: center; }
.rcm-pad { width: 100%; max-width: 900px; border: 2px solid var(--line); border-radius: 8px; touch-action: none; background: #fff; }
.rcm-pens { display: inline-flex; gap: 6px; align-items: center; } .rcm-pens .pen { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #aaa; cursor: pointer; }
.uttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 460px; margin: 8px auto; }
.uttt-b { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 5px; border-radius: 8px; background: #e6edf2; position: relative; }
.uttt-b.live { background: #ffe9a8; box-shadow: 0 0 0 3px #f2b33d; }
.uttt-b[data-won]:not([data-won=""])::after { content: attr(data-won); position: absolute; inset: 0; display: grid; place-items: center; font: 900 4rem Nunito, sans-serif; color: rgba(27,58,82,.55); background: rgba(255,255,255,.55); border-radius: 8px; }
.uttt-b button { aspect-ratio: 1; border: 0; border-radius: 4px; background: #fff; font: 900 1.2rem Nunito, sans-serif; cursor: pointer; }
.uttt-b button.X, .rcm-turn.X { color: var(--teal); } .uttt-b button.O, .rcm-turn.O { color: #D9534F; }
.bs-wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; } .bs-wrap h4 { margin: 4px 0; }
.bs-grid { display: grid; grid-template-columns: 22px repeat(8, 34px); gap: 2px; }
.bs-h { display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: var(--muted); }
.bs-c { width: 34px; height: 34px; border: 0; border-radius: 4px; background: #cfe6f5; display: grid; place-items: center; font-size: .9rem; }
button.bs-c { cursor: pointer; } button.bs-c:hover:not(:disabled) { background: #9fcfee; }
.bs-c.ship { background: #8fa3b1; } .bs-c.miss { background: #eef3f6; color: var(--muted); } .bs-c.hit { background: #ffb3a1; } .bs-c.sunk { background: #D9534F; }
.hm-lives { font-size: 1.4rem; } .hm-word { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.hm-word span { width: 32px; border-bottom: 3px solid var(--navy); text-align: center; font: 900 1.6rem Nunito, sans-serif; min-height: 2rem; }
.hm-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; max-width: 520px; }
.hm-keys button { padding: 8px 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-weight: 800; cursor: pointer; }
.hm-keys button.yes { background: #c9f0d8; } .hm-keys button.no { background: #f6d2cb; }
.cc-letter { width: 70px; height: 70px; border-radius: 12px; background: var(--navy); color: #fff; font: 900 2.6rem/70px Nunito, sans-serif; text-align: center; }
.cc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 16px; padding-left: 20px; }
.cc-list li { display: flex; gap: 8px; align-items: center; } .cc-list span { min-width: 150px; font-weight: 700; font-size: .9rem; } .cc-list input { flex: 1; }
.tv-ch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .tv-ch div { background: var(--powder); border-radius: 8px; padding: 10px 12px; font-weight: 700; }
.tv-ch div.right { background: #c9f0d8; } .tv-ch div.dim { opacity: .45; }
.rcm-two { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; } @media (max-width: 760px) { .rcm-two { grid-template-columns: 1fr; } .rcm-back { position: static; margin-top: 8px; } }
.rcm-plane summary { cursor: pointer; font-weight: 800; padding: 4px 0; }
.rcm-print-all { text-align: center; }

/* 💡 Assignment designer */
.ds-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.ds-kind { display: flex; } .ds-kind input { position: absolute; opacity: 0; }
.ds-kind span { flex: 1; border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; font-weight: 800; font-size: .88rem; cursor: pointer; background: var(--white); }
.ds-kind input:checked + span { border-color: var(--teal); background: #E3F3F5; color: var(--teal-dark); }
.ds-kind input:focus-visible + span { outline: 3px solid var(--gold); }

/* 🐢 Line speed (slide setting) and ⏱ timed lines that wait their turn */
.slide[data-speed="slow"] :is(.rv-new, .slide-title) { animation-duration: 1.3s !important; }
.slide[data-speed="fast"] :is(.rv-new, .slide-title) { animation-duration: .25s !important; }
.slide .rv-new.rv-wait { animation-fill-mode: both; }
.slide[data-anim="none"] .rv-new.rv-wait { animation: rv-appear .01s both; }
@keyframes rv-appear { from { opacity: 0; } to { opacity: 1; } }

/* 🌧️ Indoor recess on the Activities screen; 🎯 name picker and 👥 groups. */
.rc-strip { display: flex; align-items: center; gap: 2vw; justify-content: center; padding: .8vh 2vw; margin: 0 2vw; border-radius: 1.6vh; background: rgba(255,255,255,.1); color: #fff; font-size: 2.2vh; }
.rc-strip .rc-voice { padding: .4vh 1.2vw; font-size: 2vh; }
.rc-strip .rc-voice-ic { font-size: 3vh; }
.rc-strip.cleanup { background: #b8732d; font-size: 3vh; animation: rcPulse 1.2s ease-in-out infinite alternate; }
@keyframes rcPulse { from { opacity: 1; } to { opacity: .75; } }
.act-picked { font-size: clamp(2.4rem, 9vh, 6rem); text-align: center; margin: 3vh 0; }
.act-group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 10px 0; max-height: 58vh; overflow-y: auto; }
.act-group { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.92); color: #14324a; font-size: 1.15rem; }
.act-group b { font-size: 1.25rem; border-bottom: 2px solid rgba(20,50,74,.15); padding-bottom: 4px; margin-bottom: 2px; }
.act-recess .act-games { display: flex; flex-wrap: wrap; gap: 6px; max-height: none; overflow: visible; margin-top: 4px; }
.act-recess .act-games button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .95rem; }
.act-recess .act-games button span { font-size: 1.2rem; }
.act-recess .act-games button.on, .act-controls button.on { outline: 3px solid #F2B544; }
.act-recess .rc-card, .act-recess .rc-game { margin-top: 10px; }

/* 📱 Phones and the home-screen app: one ☰ menu button (sections, then each section's pages in a second
   pop-up), search inside it, Sign out in ⚙️, nothing sitting on top of the page. */
.phone-menu-btn { display: none; }
@media (max-width: 700px) {
  body.teacher nav.menu-bar { display: none; }
  body.teacher .phone-menu-btn { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; max-width: 60vw; border: 2px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--white); font: inherit; font-weight: 800; color: inherit; }
  body.teacher .phone-menu-btn .pm-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.teacher .topbar { gap: 6px; padding: 8px 10px; }
  body.teacher .topbar .brand span, body.teacher .topbar > .quick-find, body.teacher #fund-total, body.teacher #logout, body.teacher .topbar .spacer { display: none; }
  body.teacher .topbar .icon-btn { width: 38px; height: 38px; }
  body.teacher #fb-arrange { display: none; }
  .fb-fab { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); }
  .fb-fab-btn { padding: 9px; font-size: 1rem; opacity: .85; }
  body.teacher main#view { padding-bottom: 96px; }
}
.pm-back { position: fixed; inset: 0; z-index: 60; background: rgba(20, 40, 60, .35); display: flex; align-items: flex-start; justify-content: center; padding: calc(8px + env(safe-area-inset-top)) 8px 8px; }
.pm-sheet { position: relative; width: min(520px, 100%); max-height: calc(100vh - 16px - env(safe-area-inset-top)); overflow: auto; background: var(--white); border-radius: 18px; box-shadow: var(--shadow-lift); }
.pm-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 12px 14px; background: var(--white); border-bottom: 1px solid var(--line); }
.pm-x, .pm-back-btn { border: 0; background: none; font: inherit; font-weight: 800; font-size: 1.1rem; padding: 4px 8px; cursor: pointer; color: inherit; }
.pm-search { padding: 10px 14px 0; }
.pm-search .quick-find { display: block; max-width: none; }
.pm-search .quick-find input { width: 100%; }
.pm-list { display: grid; padding: 6px 8px 10px; }
.pm-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-weight: 800; font-size: 1.08rem; padding: 13px 12px; border-radius: 12px; cursor: pointer; color: inherit; }
.pm-row:hover, .pm-row:focus-visible { background: var(--powder, #EAF4FA); }
.pm-row > span:first-child { flex: 1; }
.pm-more { font-size: 1.4rem; opacity: .5; }
.pm-sub { position: absolute; inset: 0; background: var(--white); border-radius: 18px; overflow: auto; animation: pmIn .15s ease-out; }
@keyframes pmIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
body.pm-open { overflow: hidden; }
/* Running as a home-screen app: keep clear of the notch and the home bar. */
@media (display-mode: standalone) {
  .topbar { padding-top: calc(8px + env(safe-area-inset-top)); }
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* 👩‍🏫 Contact page: a box for each teacher, their classes as tappable chips */
.teacher-card .teacher-classes { display: flex; flex-wrap: wrap; gap: 6px; }
.teacher-card .teacher-classes .chip { text-decoration: none; cursor: pointer; }
.teacher-card .teacher-classes .chip:hover { filter: brightness(0.95); text-decoration: underline; }

/* 📅 Student Home: My day (today's classes; the one happening now highlighted) */
.my-day-row { border-top: 1px solid var(--line); padding: 6px 2px; }
.my-day-row:first-of-type { border-top: 0; }
.my-day-row.now { background: color-mix(in srgb, var(--teal) 10%, transparent); border-radius: 8px; padding: 6px 8px; }
.my-day-row.done .my-day-head { opacity: .6; }
.my-day-head { text-align: left; width: 100%; color: inherit; text-decoration: none; }
.my-day-time { display: inline-block; min-width: 92px; font-variant-numeric: tabular-nums; font-weight: 700; }
.my-day-info { margin: 4px 0 2px 96px; }
@media (max-width: 560px) { .my-day-info { margin-left: 0; } }

/* 🪑 A teacher's room editor: tables they drag into place */
.rm-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.rm-room { position: relative; width: 1080px; height: 560px; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 20px 20px; background-color: #fff; }
.rm-front { position: absolute; left: 0; right: 0; top: 0; text-align: center; font-weight: 800; font-size: .85rem; padding: 4px; background: #EAF4FA; border-bottom: 2px solid var(--teal); }
.rm-table { position: absolute; width: 290px; background: #FFF8E8; border: 2px solid #E9A23B; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.rm-head { display: flex; justify-content: space-between; align-items: center; padding: 3px 8px; font-weight: 800; font-size: .85rem; cursor: grab; touch-action: none; user-select: none; background: #F6D9A0; border-radius: 8px 8px 0 0; }
.rm-seats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; }
.rm-seats select { font-size: .8rem; padding: 3px; min-width: 0; }
.rm-head .rm-label { flex: 1; min-width: 0; margin: 0 6px; padding: 1px 4px; font-weight: 800; font-size: .85rem; border: 1px solid transparent; background: transparent; border-radius: 6px; }
.rm-head .rm-label:hover, .rm-head .rm-label:focus { border-color: #E9A23B; background: #fff; }
.rm-grip { cursor: grab; }
.rm-seat { display: flex; gap: 3px; align-items: center; min-width: 0; }
.rm-seat select { flex: 1; }
.rm-num { width: 34px; padding: 3px 2px; text-align: center; font-weight: 800; font-size: .8rem; border-radius: 6px; border: 1px solid var(--line); }

/* 📚 Teacher Home: "My Classes" heading, the 🍽️ lunch menu and the buttons on one line, with room above the list */
.co-classes-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.co-classes-head h2 { flex: 1 1 auto; }
.co-classes-head .co-midday { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .85rem; white-space: nowrap; }
.co-classes-head .co-midday select { width: auto; margin: 0; padding: 4px 28px 4px 8px; font-size: .85rem; }
.co-classes-head > .inline { margin-left: auto; }

/* 🪑 A teacher's Seating page: each table and who sits there */
.co-room-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.co-room-table { border: 2px solid #E9A23B; background: #FFF8E8; border-radius: 10px; padding: 6px 8px; }

/* 📖 Public pages: a box for each teacher's classes */
.teacher-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.teacher-box .teacher-class { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; border-radius: 8px; }
.teacher-box .teacher-class:first-of-type { border-top: 0; }
.teacher-box .teacher-class:hover { background: #EAF4FA; }
.teacher-box .tc-emoji { font-size: 1.6rem; width: 2rem; text-align: center; }
.teacher-box .teacher-class > span:nth-child(2) { flex: 1; }

/* 📰 Family Snapshot (Progress reports → 📰): one newsletter page per student, Kraken colors, edit in place. */
.fsn-wrap { position: fixed; inset: 0; z-index: 50; background: var(--powder); overflow: auto; padding: 0 16px 40px; }
.fsn-bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 760px; margin: 0 auto; padding: 10px 0; background: var(--powder); }
.fsn-bar select { max-width: 220px; }
.fsn-gap { flex: 1; }
.fsn-tip { max-width: 760px; margin: 0 auto 8px; font-size: 13px; color: var(--muted); }
.fsn { max-width: 760px; margin: 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px; color: var(--navy); font-family: var(--body); }
.fsn-top { background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; border-radius: var(--radius-sm); padding: 18px 20px; margin: -6px -8px 8px; }
.fsn-top .sn-eb { color: #CFE7EE; margin: 0; }
.fsn-top h1 { font-family: var(--head); margin: 4px 0 2px; font-size: 30px; color: #fff; }
.fsn-top .sn-sub { margin: 0; opacity: .9; }
.fsn-top .sn-for { margin: 10px 0 0; font-size: 19px; }
.fsn-top .sn-for span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-right: 6px; }
.sn-eb { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--teal); margin: 18px 0 6px; }
.sn-body { border-radius: 12px; padding: 2px 6px; outline: none; min-height: 1.6em; }
.sn-body:hover, .sn-title:hover { background: #F6FAFC; }
.sn-body:focus, .sn-title:focus { background: #FFFBEF; box-shadow: 0 0 0 2px var(--gold); outline: none; }
.sn-body p { margin: 4px 0; }
.sn-body ul { margin: 4px 0; padding-left: 20px; }
.sn-body li { margin: 3px 0; }
.sn-head { display: flex; gap: 16px; align-items: flex-start; }
.sn-head p { font-size: 16.5px; line-height: 1.5; }
.sn-big { min-width: 104px; text-align: center; background: var(--powder); border-radius: 16px; padding: 10px 8px; }
.sn-big b { display: block; font: 700 46px/1 var(--head); color: var(--navy); }
.sn-big span { display: block; font-weight: 800; font-size: 18px; }
.sn-big i { display: block; font-style: normal; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--teal); margin-top: 2px; }
.sn-big small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.sn-pill { display: inline-block; border: 1.5px solid var(--teal); color: var(--teal-dark); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 800; margin: 2px 0; background: #fff; }
.sn-growth { line-height: 2; }
.sn-bar { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; margin: 5px 0; border-radius: 10px; background: var(--powder); overflow: hidden; }
.sn-bar > div, .sn-bar em { position: relative; z-index: 1; }
.sn-bar span { display: block; font-size: 12px; color: var(--muted); }
.sn-bar em { font-style: normal; font-weight: 800; font-size: 17px; }
.sn-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--sky); opacity: .55; }
.sn-nums { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 8px; }
.sn-nums b { display: block; font: 700 28px/1.1 var(--head); color: var(--navy); }
.sn-nums span { font-size: 12.5px; color: var(--muted); }
.sns-grow .sn-body { border: 1px solid var(--line); padding: 6px 12px; }
.sns-learning .sn-body { background: var(--powder); padding: 8px 12px; }
.sn-small { font-size: 13px; color: var(--muted); }
.sn-q { font-weight: 800; color: var(--teal-dark); }
.sn-login { border: 2px solid var(--gold); background: var(--amber-soft); border-radius: 14px; padding: 10px 14px; }
.sn-code { display: inline-block; font: 700 20px/1.2 ui-monospace, monospace; letter-spacing: .06em; border: 2px dashed var(--teal); border-radius: 10px; padding: 6px 12px; background: #fff; }
.sn-call { text-align: center; font-weight: 800; border: 2px solid var(--teal); border-radius: 14px; padding: 10px; }
.sns-note .sn-body { min-height: 3.2em; border: 1px dashed var(--line); }
.sn-share { margin: 2px 0 0 6px; }
.fsn-foot { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; font-size: 13.5px; color: var(--muted); }
.fsn-foot b { font-family: var(--head); font-size: 16px; color: var(--navy); }
@media (max-width: 640px) { .fsn { padding: 18px 14px; } .sn-head { flex-direction: column; } }
/* ✏️ Tri-fold editor (Reports → ✏️ Edit & print): the printed sheets on screen, click to change words */
.tfx-sheets { width: fit-content; margin: 0 auto; }
.tfx-sheets .kr-sheet { margin: 0 auto 18px; box-shadow: var(--shadow-lift); }
.tfx-sheets [contenteditable]:hover { outline: 1px dashed var(--teal); outline-offset: 1px; }
.tfx-sheets [contenteditable]:focus { outline: 2px solid var(--gold); outline-offset: 1px; background: #FFFBEF; }
.tfx-sheets .kr-typed-note:empty { min-height: 1.4em; outline: 1px dashed var(--line); }
.tfx-sheets .kr-typed-note:empty::before { content: 'Click to type a note…'; color: #9AA8B5; font-style: italic; }
.tfx-wrap .fsn-bar, .tfx-wrap .fsn-tip { max-width: 1056px; }
.help-card.help-overdue { border: 2px solid var(--rose); background: #FFF1F1; }
/* 💬 Family This Week page */
.fw-eb { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--teal); }
.fw-q { background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; }
.fw-q .fw-eb { color: #CFE7EE; }
.fw-q .muted, .fw-q summary { color: #E3F1F5; }
.fw-big { font: 700 1.35rem/1.35 var(--head); margin: 8px 0 0; }
.fw-cq { font-weight: 800; color: var(--teal-dark); margin: 6px 0; }
/* 📰 Snapshot v2 (her example): growth boxes, boxes, simple breakdown rows, "coming up", two columns for Advisory */
.sn-gbox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sn-gc { border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 16px; text-align: center; background: #fff; }
.sn-gc.now { border-color: var(--teal); }
.sn-gc i { display: block; font-style: normal; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.sn-gc b { font: 700 19px/1.2 var(--head); color: var(--navy); }
.sn-arrow { color: var(--muted); font-size: 18px; }
.sn-gbox em { font-style: normal; font-weight: 800; }
.sn-gbox em.up { color: #2E7D4F; } .sn-gbox em.down { color: #A33A3A; }
.sn-box { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.sn-box.sn-none { border-color: var(--teal-dark); }
.sn-score { font: 700 17px/1 var(--head); color: var(--navy); margin: 0 6px; }
.sn-row { display: flex; justify-content: space-between; padding: 6px 10px; }
.sn-row em { font-style: normal; font-weight: 800; color: var(--navy); }
.sn-coming { border-left: 4px solid var(--gold); padding-left: 10px; }
.sn-coming b:first-child { color: #A86A12; text-transform: uppercase; }
.sn-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.sn-sub2 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin: 0; }
.sns-note .sn-body:empty::before { content: 'Write two or three sentences only you could write about this student. This is the part families remember.'; color: #9AA8B5; }
@media (max-width: 640px) { .sn-two { grid-template-columns: 1fr; } }
/* 🧪 Test site button (test.krakenclassroom.org only) */
.ts-btn { position: fixed; left: 14px; bottom: 14px; z-index: 70; border: 2px solid var(--gold); background: #FFF8E8; color: #7A4E07; font: 800 14px/1 var(--head); padding: 9px 13px; border-radius: 999px; box-shadow: var(--shadow); cursor: pointer; }
.ts-btn:hover { background: #FFEFC9; }
.fsn-gap2 { height: 22px; border-bottom: 2px dashed var(--line); margin: 0 0 22px; }
/* 🎮 Jumping to a game leaves room for the sticky top bar and menus */
#game-play { scroll-margin-top: calc(var(--topbar-h, 60px) + 64px); }
