/* Easy Class Tools — shared styles */
:root {
  --paper: #fbfaf6;
  --card: #ffffff;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e4e1d8;
  --green: #2d6a4f;
  --green-soft: #e3f0e8;
  --yellow: #f4c542;
  --yellow-soft: #fdf3d3;
  --red: #b4432f;
  --red-soft: #fbe6e1;
  --blue-soft: #e5eefb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(29, 36, 51, .06), 0 4px 14px rgba(29, 36, 51, .05);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--card); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo-mark { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 18px; font-size: .95rem; }
.site-nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }

/* Type */
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; margin: 28px 0 8px; }
h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 40px 0 10px; }
h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 720px; margin: 0 0 20px; }
.prose p, .prose li { max-width: 720px; }
.small { font-size: .875rem; color: var(--muted); }

/* Buttons & fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: #cfcabd; }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: #245a42; border-color: #245a42; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line); }
.btn-danger { color: var(--red); }
.btn-danger.armed { background: var(--red); color: #fff; border-color: var(--red); }
.btn-sm { padding: 5px 10px; font-size: .84rem; }
.btn-lg { padding: 11px 20px; font-size: 1rem; }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
input[type="text"], input[type="number"], select, textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 10px; font-size: .95rem;
}
textarea { resize: vertical; min-height: 180px; line-height: 1.45; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .seat:focus-visible { outline: 3px solid rgba(45, 106, 79, .3); outline-offset: 1px; border-color: var(--green); }
.row { display: flex; gap: 10px; align-items: end; }
.row > * { flex: 1; }
.row > .shrink { flex: 0 0 auto; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: .92rem; margin: 8px 0; }
.check input { margin-top: 4px; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }

/* Home */
.hero { padding: 24px 0 8px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.tool-card { display: block; padding: 0 20px 20px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(29, 36, 51, .1); }
.tool-card .thumb { display: block; margin: 0 -20px; overflow: hidden; border-bottom: 1px solid var(--line); line-height: 0; }
.tool-card .thumb svg { width: 100%; height: auto; transition: transform .2s; }
@media (prefers-reduced-motion: no-preference) { .tool-card:hover .thumb svg { transform: scale(1.03); } }
.tool-card h3 { margin: 14px 0 4px; font-size: 1.1rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.soon-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.soon-list li { border: 1px dashed #cfcabd; border-radius: 999px; padding: 5px 12px; font-size: .9rem; color: var(--muted); }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 0; list-style: none; }
.feature-list li { padding: 16px; }
.feature-list strong { display: block; margin-bottom: 2px; }

/* Tool layout */
.tool-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; }
.tool-layout > * { min-width: 0; }
@media (max-width: 900px) { .tool-layout { grid-template-columns: 1fr; } }
.panel { padding: 16px; }
.panel + .panel { margin-top: 14px; }
.panel h2 { font-size: 1rem; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.panel h2 .count { font-weight: 500; color: var(--muted); font-size: .88rem; }
.tabs { display: flex; gap: 4px; background: #f1efe8; padding: 4px; border-radius: 10px; margin-bottom: 12px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 7px 6px; border-radius: 7px; font-weight: 600; font-size: .86rem; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Rules */
.rule-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.rule { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 10px; border-radius: 9px; background: #f7f5ef; font-size: .9rem; }
.rule .txt { flex: 1; }
.rule.bad { background: var(--red-soft); }
.rule .tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 5px; }
.tag-apart { background: var(--red-soft); color: var(--red); }
.tag-together { background: var(--green-soft); color: var(--green); }
.tag-front { background: var(--blue-soft); color: #2a5aa8; }
.tag-back { background: var(--yellow-soft); color: #8a6400; }
.rule .x { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 2px 4px; }
.rule .x:hover { color: var(--red); }
.add-rule { display: grid; gap: 8px; padding: 10px; border: 1px dashed #d7d2c4; border-radius: 10px; }

/* Status */
.status { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; font-size: .93rem; display: flex; align-items: center; gap: 8px; }
.status.ok { background: var(--green-soft); color: #1f4d39; }
.status.warn { background: var(--red-soft); color: #7a2c1e; }
.status.info { background: #f1efe8; color: var(--muted); }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar .spacer { flex: 1; }

/* Seating chart */
.room { padding: 18px; overflow-x: auto; }
.front-label { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 2px solid var(--line); border-radius: 8px; padding: 6px; margin: 0 auto 18px; max-width: 360px; background: #f7f5ef; }
.room-grid { display: grid; gap: 10px; justify-content: center; }
.seat-pair { display: flex; gap: 3px; }
.table-group { border: 2px solid var(--line); border-radius: 16px; padding: 10px; display: grid; gap: 6px; background: #faf9f5; }
.table-group .seat { width: 96px; }
.table-group .table-name { grid-column: 1 / -1; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.seat { position: relative; width: 112px; height: 58px; border: 1.5px solid #d9d4c7; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px 8px; font-size: .9rem; font-weight: 600; cursor: pointer; user-select: none; line-height: 1.2; overflow: hidden; }
.seat .nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.seat.empty { background: transparent; border-style: dashed; color: #b0aa9b; font-weight: 500; font-size: .8rem; }
.seat:hover { border-color: var(--green); }
.seat.selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45, 106, 79, .25); background: var(--green-soft); }
.seat.bad { border-color: var(--red); background: var(--red-soft); }
.seat.locked { border-color: #8a6400; background: var(--yellow-soft); }
.seat .lock { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border: 0; background: transparent; padding: 0; cursor: pointer; color: #b0aa9b; opacity: 0; }
.seat:hover .lock, .seat.locked .lock { opacity: 1; }
.seat.locked .lock { color: #8a6400; }
.seat.drag-over { border-color: var(--green); border-style: dashed; }
.chart-title { display: none; }

/* Groups */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.group-card { padding: 12px 14px; }
.group-card h3 { margin: 0 0 6px; font-size: .95rem; display: flex; justify-content: space-between; }
.group-card h3 .lvl { color: var(--muted); font-weight: 500; font-size: .8rem; }
.group-card ul { list-style: none; margin: 0; padding: 0; }
.group-card li { padding: 6px 8px; border-radius: 7px; cursor: pointer; font-weight: 500; }
.group-card li:hover { background: #f4f2ec; }
.group-card li.selected { background: var(--green-soft); }
.group-card li.bad { background: var(--red-soft); }
.group-card li.locked { background: var(--yellow-soft); }
.group-card li .lv { color: var(--muted); font-size: .8rem; margin-left: 4px; }

/* Content under tool */
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .9rem; opacity: 0; transition: .2s; pointer-events: none; z-index: 10; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Print */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .site-header, .site-footer, .no-print, .toast, .tool-layout > aside, .toolbar, .status, .below-tool { display: none !important; }
  .tool-layout { display: block; }
  .card { box-shadow: none; border: 0; }
  .chart-title { display: block; text-align: center; font-size: 1.3rem; margin: 0 0 10px; }
  .seat { border-color: #999 !important; background: #fff !important; box-shadow: none !important; }
  .seat.empty { border-color: #ccc !important; }
  .seat .lock { display: none; }
  .group-card li { background: #fff !important; }
  h1 { display: none; }
  .lede { display: none; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .site-nav { gap: 10px; font-size: .82rem; }
  .site-nav a[href="/about/"] { display: none; }
  .logo { font-size: .95rem; gap: 8px; }
  .logo-mark { width: 26px; height: 26px; }
  .tool-head .lede { font-size: .92rem; }
  .room { padding: 12px; }
}

/* ================= Classroom seating chart ================= */
[hidden] { display: none !important; }
.tool-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 22px 0 4px; }
.tool-head .lede { font-size: 1rem; margin-bottom: 12px; }

.room-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 4px 0 8px; }
.bar-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.class-quick { width: auto; max-width: 200px; font-weight: 650; padding: 6px 30px 6px 10px; }
.layout-pick { display: inline-flex; background: #ece9e1; padding: 3px; border-radius: 10px; gap: 2px; }
.layout-pick button { border: 0; background: transparent; width: 42px; height: 34px; border-radius: 7px; display: grid; place-items: center; color: #8b8577; cursor: pointer; }
.layout-pick button:hover { color: var(--ink); }
.layout-pick button[aria-pressed="true"] { background: #fff; color: var(--green); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.steppers { display: flex; gap: 6px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 9px; overflow: hidden; height: 34px; }
.st-label { padding: 0 6px 0 10px; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.stepper button { border: 0; background: #f6f4ee; width: 30px; height: 100%; font-size: 1.05rem; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: #ebe7dd; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; font-size: .92rem; }
.btn[disabled] { opacity: .45; cursor: default; }
.status-line { font-size: .9rem; color: var(--muted); margin: 0 0 10px; min-height: 1.4em; }
.status-line.ok { color: #1f5a40; }
.status-line.warn { color: #9a3522; font-weight: 550; }
.status-line .hint { color: var(--muted); font-weight: 400; }

.classroom { position: relative; border: 10px solid #dcd5c6; border-radius: 20px; background: #f4f0e7; box-shadow: var(--shadow); }
.front-wall { position: relative; display: flex; justify-content: center; padding: 18px 24px 16px; background: #ebe4d4; border-bottom: 5px solid #d6cbb5; }
.whiteboard { position: relative; width: min(460px, 64%); height: 86px; background: #fff; border: 6px solid #aeb6c2; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 3px 0 #8f98a5; }
.whiteboard::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -14px; height: 6px; background: #9aa3af; border-radius: 0 0 4px 4px; }
#boardText { font-family: "Marker Felt", "Chalkboard SE", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; color: #2a5aa8; font-size: 1.55rem; line-height: 1.1; max-width: 92%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.whiteboard small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #9aa1ab; margin-top: 4px; }
.door { position: absolute; left: -10px; bottom: 34px; width: 10px; height: 74px; background: #a8784b; border-radius: 0 3px 3px 0; }
.floor { position: relative; padding: 30px 24px 38px; overflow-x: auto; background-color: #f4f0e7; background-image: linear-gradient(#e7e0d1 1px, transparent 1px), linear-gradient(90deg, #e7e0d1 1px, transparent 1px); background-size: 52px 52px; }
#room { position: relative; min-height: 360px; }
.room-grid { display: grid; gap: 24px 14px; justify-content: center; width: max-content; margin: 0 auto; }

/* desks */
.desk { position: relative; width: 112px; display: flex; flex-direction: column; align-items: center; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.desk-top { position: relative; width: 100%; height: 58px; padding: 5px 7px; display: flex; align-items: center; justify-content: center; background: linear-gradient(#efd8b3, #e3c495); border: 1.5px solid #c9a06a; border-radius: 6px; box-shadow: 0 3px 0 #c39866, 0 6px 10px rgba(90, 60, 25, .12); transition: transform .12s, box-shadow .12s; }
.tag { background: #fff; border-radius: 4px; padding: 3px 7px; font-weight: 650; font-size: .84rem; line-height: 1.15; text-align: center; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.14); max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.chair { width: 48px; height: 16px; margin-top: 5px; background: #6f93b8; border-radius: 4px 4px 11px 11px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.16); }
.desk.empty { cursor: default; }
.desk.empty .desk-top { opacity: .5; box-shadow: 0 2px 0 #c39866; }
.desk.empty .chair { opacity: .35; }
.desk:not(.empty):hover .desk-top, .desk:focus-visible .desk-top { transform: translateY(-2px); box-shadow: 0 5px 0 #c39866, 0 10px 16px rgba(90, 60, 25, .18); }
.desk.open .desk-top, .desk.picking .desk-top { outline: 3px solid var(--green); outline-offset: 2px; }
.desk.drag-over .desk-top { outline: 3px dashed var(--green); outline-offset: 2px; }
.is-picking .desk:not(.picking) { cursor: crosshair; }
.is-picking .desk:not(.picking):hover .desk-top { outline: 3px dashed var(--green); outline-offset: 2px; opacity: 1; }
.desk.bad .tag { background: var(--red-soft); color: #7a2c1e; box-shadow: 0 0 0 2px var(--red); }
.lock-badge { position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%; background: #8a6400; color: #fff; border: 2px solid #fff; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.lock-badge svg { width: 11px; height: 11px; }
.marks { position: absolute; left: 5px; bottom: 4px; display: flex; gap: 3px; }
.mk { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mk-apart { background: var(--red); }
.mk-together { background: var(--green); }
.mk-front { background: #2a5aa8; }
.mk-back { background: #c08f00; }

.desk-pair { display: flex; }
.desk-pair .desk:first-child .desk-top { border-radius: 6px 0 0 6px; }
.desk-pair .desk:last-child .desk-top { border-radius: 0 6px 6px 0; border-left-color: #d8b583; }

/* tables */
.room-grid.tables { gap: 34px 44px; }
.table-unit { display: grid; justify-items: center; }
.t-row { display: flex; gap: 8px; justify-content: center; }
.t-row.top .desk { flex-direction: column-reverse; }
.t-row.top .chair { margin: 0 0 5px; border-radius: 11px 11px 4px 4px; box-shadow: inset 0 3px 0 rgba(0,0,0,.16); }
.tseat { width: 100px; }
.tseat .desk-top { height: auto; min-height: 40px; background: transparent; border: 0; box-shadow: none; padding: 3px; }
.tseat.empty .desk-top { box-shadow: none; }
.tseat:not(.empty):hover .desk-top { box-shadow: none; }
.t-surface { width: 100%; min-width: 150px; height: 62px; margin: 2px 0; background: linear-gradient(#efd8b3, #e3c495); border: 1.5px solid #c9a06a; border-radius: 14px; box-shadow: 0 3px 0 #c39866, 0 6px 10px rgba(90, 60, 25, .12); display: grid; place-items: center; }
.t-surface span { font-size: .72rem; font-weight: 700; color: #9d7243; letter-spacing: .1em; text-transform: uppercase; }

/* U-shape: one continuous line of desks, students face the middle */
.room-grid.ushape { gap: 0; }
.ushape .desk { width: 92px; }
.ushape .desk-top { height: 54px; border-radius: 0; }
.ushape .u-cell { display: flex; }
.ushape .u-cell-l { justify-self: end; padding-right: 10px; }
.ushape .u-cell-r { justify-self: start; padding-left: 10px; }
.ushape .u-cell-b { padding-top: 10px; }
.ushape .desk.u-l, .ushape .desk.u-r { width: auto; flex-direction: row-reverse; }
.ushape .desk.u-r { flex-direction: row; }
.ushape .desk.u-l .desk-top, .ushape .desk.u-r .desk-top { width: 92px; }
.ushape .desk.u-l .chair, .ushape .desk.u-r .chair { width: 16px; height: 44px; margin: 0 5px 0 0; border-radius: 11px 4px 4px 11px; box-shadow: inset 3px 0 0 rgba(0,0,0,.16); }
.ushape .desk.u-r .chair { margin: 0 0 0 5px; border-radius: 4px 11px 11px 4px; box-shadow: inset -3px 0 0 rgba(0,0,0,.16); }

/* exam seating: spaced desks with seat numbers */
.room-grid.exam { gap: 40px 46px; }
.seat-no { position: absolute; top: 3px; left: 5px; font-size: .68rem; font-weight: 800; color: #9d7243; }
.desk.numbered .desk-top { padding-top: 15px; }

/* notes for a substitute, printed under the chart */
.sub-notes { margin-top: 18px; }
.sub-notes textarea { min-height: 140px; }
.sub-notes-print { white-space: pre-wrap; margin: 18px 0 0; padding: 12px 14px; border: 1px solid #999; border-radius: 6px; font-size: .95rem; }
.sub-notes-print::before { content: "Notes for the substitute"; display: block; font-weight: 750; margin-bottom: 4px; }
@media screen { .sub-notes-print { display: none; } }
@media print { .sub-notes { display: none; } .seat-no { color: #555; } }

/* empty state */
#room.is-empty .room-grid { opacity: .5; filter: saturate(.7); pointer-events: none; }
.empty-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, 94%); background: #fff; border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 16px 44px rgba(29, 36, 51, .2); z-index: 2; }
.empty-card h2 { margin: 0 0 4px; font-size: 1.25rem; }
.empty-card p { margin: 0 0 12px; color: var(--muted); font-size: .93rem; }
.empty-card textarea { min-height: 150px; }
.empty-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

/* pick mode banner */
.pick-banner { position: sticky; left: 0; top: 8px; z-index: 3; display: flex; gap: 12px; align-items: center; width: fit-content; max-width: 100%; margin: -14px auto 16px; padding: 7px 8px 7px 16px; background: var(--ink); color: #fff; border-radius: 999px; font-size: .92rem; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.pick-banner .btn { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }

/* click-a-student menu */
.seat-menu { position: absolute; z-index: 20; width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(29, 36, 51, .2); padding: 6px; }
.menu-head { font-weight: 750; padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.seat-menu button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .92rem; text-align: left; }
.seat-menu button span { flex: 1; }
.seat-menu button:hover, .seat-menu button:focus-visible { background: #f2efe7; outline: none; }
.seat-menu button svg { color: #8a6400; flex: none; }
.seat-menu .mk { width: 10px; height: 10px; margin: 0 2px; }
.seat-menu .mi { font-style: normal; width: 14px; text-align: center; color: var(--muted); }
.seat-menu b { color: var(--green); }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }
.menu-rules { padding: 2px 4px 4px; }
.mr { display: flex; align-items: center; justify-content: space-between; font-size: .84rem; color: var(--muted); padding: 2px 6px; }
.mr button { width: auto; padding: 2px 6px; color: var(--muted); font-size: 1rem; }
.mr button:hover { color: var(--red); }

/* drawers */
.scrim { position: fixed; inset: 0; background: rgba(29, 36, 51, .35); z-index: 25; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(390px, 100%); background: #fff; z-index: 30; box-shadow: -12px 0 40px rgba(0,0,0,.16); padding: 18px 20px; overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-head h2 { margin: 0; font-size: 1.15rem; }

@media (max-width: 700px) {
  .desk { width: 92px; }
  .tseat { width: 86px; }
  .desk-top { height: 52px; padding: 4px 5px; }
  .tag { font-size: .76rem; padding: 2px 5px; }
    .whiteboard { width: 88%; height: 74px; }
  #boardText { font-size: 1.3rem; }
  .floor { padding: 24px 12px 30px; }
  .classroom { border-width: 7px; }
  .room-bar { gap: 8px; }
  .status-line .hint { display: none; }
}

@media print {
  .classroom { border: 0; box-shadow: none; background: #fff; }
  .front-wall { background: #fff; border-bottom: 0; padding-top: 0; }
  .whiteboard { box-shadow: none; border-color: #999; }
  .whiteboard::after, .door { display: none; }
    .floor { background: #fff; padding: 20px 0; overflow: visible; }
  .desk-top, .t-surface { background: #fff !important; border-color: #888 !important; box-shadow: none !important; outline: none !important; }
  .tag { box-shadow: none !important; background: #fff !important; color: #000 !important; }
  .chair, .marks, .lock-badge { display: none; }
  .desk.empty .desk-top { opacity: .4; }
  .tool-head { display: none; }
}

/* student list (+ optional rules) under the classroom */
.under-room { margin-top: 18px; }
.under-room h2 { font-size: 1.1rem; }
.under-room .panel { scroll-margin-top: 16px; }
#studentsPanel #classPanel { display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: 20px; }
#studentsPanel #classPanel > .field:nth-child(1) { grid-column: 1; grid-row: 1; }
#studentsPanel #classPanel > .field:nth-child(2) { grid-column: 1; grid-row: 2; }
#studentsPanel #classPanel > .field:nth-child(3) { grid-column: 2; grid-row: 1 / span 3; margin-bottom: 0; }
#studentsPanel #classPanel > .row { grid-column: 1; grid-row: 3; align-self: start; flex-wrap: wrap; }
#studentsPanel textarea { min-height: 200px; }
.rules-more { margin-top: 10px; padding: 0 4px; scroll-margin-top: 16px; border-radius: 10px; }
.rules-more summary { cursor: pointer; font-weight: 650; padding: 8px 0; color: var(--ink); }
.rules-more summary .count { color: var(--muted); font-weight: 500; }
.rules-more summary .small { font-weight: 400; }
.rules-more[open] { background: var(--card); border: 1px solid var(--line); padding: 4px 16px 14px; }
.rules-more .rule-list { margin-top: 4px; }
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px rgba(45, 106, 79, .45); } 100% { box-shadow: 0 0 0 0 rgba(45, 106, 79, 0); } }
@media (max-width: 800px) {
  #studentsPanel #classPanel { display: block; }
}
@media print { .under-room { display: none; } }
.rules-more .row > *, #studentsPanel #classPanel > .row > * { flex: 0 0 auto; }

/* top menus */
.room-bar { padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; font-size: .93rem; }
.dd-btn:hover { border-color: #cfcabd; background: #fcfbf8; }
.dd-btn[aria-expanded="true"] { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45, 106, 79, .15); }
.dd-label { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dd-value { font-weight: 650; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { color: var(--muted); }
.dd-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 22; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(29, 36, 51, .18); padding: 8px; }
.dd-wide { width: 330px; padding: 10px 12px 12px; }
.dd-title { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 6px 6px; }
.dd-sep { height: 1px; background: var(--line); margin: 6px 0; }
.dd-item { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .93rem; text-align: left; }
.dd-item:hover, .dd-item:focus-visible { background: #f2efe7; outline: none; }
.dd-item .ck { width: 14px; color: var(--green); font-weight: 700; }
.dd-item .nm { flex: 1; font-weight: 550; }
.dd-item.current .nm { font-weight: 700; }
.dd-item .ct { font-size: .8rem; color: var(--muted); }
#newClassBtn, #studentsBtn { color: var(--green); font-weight: 600; }
.layout-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 6px; }
.layout-cards button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; color: #8b8577; }
.layout-cards button span { font-weight: 700; font-size: .9rem; color: var(--ink); margin-top: 4px; }
.layout-cards button small { font-size: .72rem; color: var(--muted); }
.layout-cards button:hover { border-color: #cfcabd; }
.layout-cards button[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green); }
#roomPop .steppers { display: grid; gap: 6px; }
#roomPop .stepper { display: flex; justify-content: space-between; align-items: center; height: auto; border: 0; background: transparent; padding: 2px 4px 2px 6px; overflow: visible; }
#roomPop .st-label { padding: 0; font-size: .92rem; color: var(--ink); }
.st-ctl { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; height: 34px; }
.st-ctl button { border: 0; background: #f6f4ee; width: 34px; height: 100%; font-size: 1.1rem; cursor: pointer; }
.st-ctl button:hover { background: #ebe7dd; }
.st-ctl output { min-width: 34px; text-align: center; font-weight: 700; }
.seat-note { margin: 10px 6px 0; font-size: .84rem; color: var(--muted); }
.seat-note.warn { color: var(--red); }
@media (max-width: 700px) {
  .room-bar .bar-group { width: 100%; }
  .room-bar .bar-group:last-child { justify-content: flex-end; }
  .dd-value { max-width: 120px; }
  .room-bar { position: relative; }
  .room-bar .dd { position: static; }
  .room-bar .dd-pop, .room-bar .dd-wide { left: 8px; right: 8px; width: auto; top: auto; margin-top: 6px; }
}

/* controls live in the classroom frame */
.classroom > .room-bar { margin: -2px -2px 0; padding: 0 0 10px; background: #dcd5c6; border: 0; border-radius: 0; box-shadow: none; }
.room-bar .dd-btn, .room-bar .btn:not(#shuffleBtn) { background: rgba(255, 255, 255, .72); border-color: transparent; color: #3d3a33; }
.room-bar .dd-btn:hover, .room-bar .btn:not(#shuffleBtn):hover { background: #fff; border-color: transparent; }
.room-bar .dd-btn[aria-expanded="true"] { background: #fff; border-color: #2a5aa8; box-shadow: 0 0 0 3px rgba(42, 90, 168, .18); }
.room-bar .dd-label { color: #8b8270; }
.room-bar #undoBtn { background: transparent; }
.room-bar #undoBtn:hover:not([disabled]) { background: rgba(255, 255, 255, .6); }
.room-bar #shuffleBtn { background: #2a5aa8; border-color: #2a5aa8; color: #fff; }
.room-bar #shuffleBtn:hover { background: #224b8d; border-color: #224b8d; }
.room-bar .layout-cards button[aria-pressed="true"] { border-color: #2a5aa8; background: #e8eefa; color: #2a5aa8; }
.room-bar #newClassBtn, .room-bar #studentsBtn { color: #2a5aa8; }
.room-bar .dd-item .ck { color: #2a5aa8; }
.front-wall { border-radius: 4px 4px 0 0; }
.floor { border-radius: 0 0 10px 10px; }
.room-warning { width: fit-content; max-width: 100%; margin: -14px auto 16px; padding: 7px 14px; border-radius: 999px; background: var(--red-soft); color: #7a2c1e; font-size: .9rem; font-weight: 550; border: 1px solid #f1c3b8; }

/* ================= Shared: stages, fullscreen, related links ================= */
.stage-bar { display: flex; align-items: center; gap: 10px; width: 100%; }
.stage-bar .spacer { flex: 1; }
.stage-hint { text-align: center; margin: 10px 0 0; }
.more-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.more-tools a { display: inline-block; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 600; font-size: .92rem; }
.more-tools a:hover { border-color: var(--green); }
.fake-full { position: fixed !important; inset: 0; z-index: 50; border-radius: 0 !important; overflow: auto; }
@media (max-width: 760px) { .site-nav .nav-extra { display: none; } }
@media (max-width: 1100px) { .site-nav .nav-wide { display: none; } }

/* ================= Name picker ================= */
.picker-stage { padding: 14px 16px 16px; display: flex; flex-direction: column; align-items: center; }
.wheel-wrap { position: relative; width: min(100%, 520px); margin: 10px auto 0; }
.wheel-wrap canvas { width: 100%; height: auto; aspect-ratio: 1; cursor: pointer; border-radius: 50%; box-shadow: 0 8px 28px rgba(29, 36, 51, .16); }
.wheel-pointer { position: absolute; left: 50%; top: -8px; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--ink); z-index: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.pick-result { min-height: 3.4rem; margin: 14px 0 4px; font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; text-align: center; line-height: 1.15; color: var(--green); }
.pick-result.show { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.stage-actions { display: flex; gap: 8px; justify-content: center; }
.spin-btn { min-width: 160px; font-size: 1.1rem; }
.picked-panel { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 2px; background: #f4f2ec; border-radius: 999px; padding: 4px 4px 4px 12px; font-weight: 550; font-size: .9rem; }
.chip .x { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 1.05rem; line-height: 1; padding: 2px 6px; border-radius: 50%; }
.chip .x:hover { color: var(--red); background: #fff; }
.picker-stage:fullscreen, .picker-stage.fake-full { background: var(--paper); justify-content: center; padding: 20px; border: 0; }
.picker-stage:fullscreen .wheel-wrap, .picker-stage.fake-full .wheel-wrap { width: min(92vw, calc(100vh - 230px)); }
.picker-stage:fullscreen .pick-result, .picker-stage.fake-full .pick-result { font-size: clamp(2.4rem, 7vw, 5rem); min-height: 1.2em; }

/* ================= EZ grader ================= */
.grade-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.grade-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; font-variant-numeric: tabular-nums; }
.grade-table th { background: #f1efe8; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 8px; text-align: left; }
.grade-table td { padding: 5px 8px; border-top: 1px solid #f0ede5; font-size: .95rem; }
.grade-table td.lt { font-weight: 750; }
.grade-table tr.g-a td.lt { color: var(--green); }
.grade-table tr.g-b td.lt { color: #2a5aa8; }
.grade-table tr.g-c td.lt { color: #8a6400; }
.grade-table tr.g-d td.lt { color: #b0611f; }
.grade-table tr.g-f td.lt { color: var(--red); }
.grade-table tr.hit td { background: var(--yellow-soft); }
.grade-table tr.hit td:first-child { box-shadow: inset 4px 0 0 var(--yellow); }
.quick-result .qr-score { display: flex; align-items: baseline; gap: 12px; }
.qr-pct { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.qr-letter { font-size: 1.6rem; font-weight: 800; padding: 0 10px; border-radius: 8px; background: #f1efe8; }
.qr-score.g-a .qr-letter { background: var(--green-soft); color: var(--green); }
.qr-score.g-b .qr-letter { background: var(--blue-soft); color: #2a5aa8; }
.qr-score.g-c .qr-letter { background: var(--yellow-soft); color: #8a6400; }
.qr-score.g-d .qr-letter, .qr-score.g-f .qr-letter { background: var(--red-soft); color: var(--red); }
.quick-result p { margin: 2px 0 0; }
@media print {
  .grade-tables { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .grade-table { border: 1px solid #bbb !important; break-inside: avoid; }
  .grade-table td { padding: 2px 6px; font-size: .82rem; }
  .grade-table tr.hit td { background: #fff; box-shadow: none; }
}

/* ================= Classroom timer ================= */
.timer-stage { --tc: var(--green); margin-top: 12px; padding: 16px 18px 18px; display: flex; flex-direction: column; align-items: center; transition: background .3s; }
.timer-stage[data-state="mid"] { --tc: #e0a800; }
.timer-stage[data-state="low"] { --tc: var(--red); }
.timer-stage[data-state="done"] { --tc: var(--red); }
.timer-label-input { max-width: 360px; }
.timer-label { font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 700; margin: 12px 0 0; text-align: center; min-height: 1.3em; }
.timer-face { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 10px auto 4px; }
.timer-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke-width: 12; }
.ring-bg { stroke: #ece9e1; }
.ring-fg { stroke: var(--tc); stroke-linecap: round; transition: stroke .3s; }
.timer-digits { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(3rem, 13vw, 6.5rem); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); text-align: center; line-height: 1; }
.timer-stage[data-state="done"] .timer-digits { color: var(--red); font-size: clamp(2.2rem, 8vw, 4rem); animation: blink 1s steps(2) 4; }
@keyframes blink { 50% { opacity: .25; } }
.timer-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.timer-go { min-width: 150px; font-size: 1.1rem; }
.timer-stage .btn-primary { background: var(--tc); border-color: var(--tc); }
.timer-presets { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.timer-presets .btn[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.timer-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; width: 100%; max-width: 640px; }
.timer-custom label.small { margin: 0; font-weight: 600; }
.timer-custom input[type="number"] { width: 70px; }
.timer-custom .check { margin: 0 6px 0 0; }
.timer-stage:fullscreen, .timer-stage.fake-full { background: var(--paper); justify-content: center; border: 0; padding: 24px; }
.timer-stage:fullscreen .timer-face, .timer-stage.fake-full .timer-face { width: min(88vw, calc(100vh - 260px)); }
.timer-stage:fullscreen .timer-digits, .timer-stage.fake-full .timer-digits { font-size: min(22vw, calc((100vh - 260px) * .26)); }
.timer-stage:fullscreen .timer-label, .timer-stage.fake-full .timer-label { font-size: clamp(1.6rem, 4vw, 3rem); }
.timer-stage.is-running:fullscreen .timer-presets, .timer-stage.is-running:fullscreen .timer-custom, .timer-stage.is-running:fullscreen .stage-hint,
.timer-stage.is-running.fake-full .timer-presets, .timer-stage.is-running.fake-full .timer-custom { display: none; }

/* ================= Grading calculators ================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.calc-result { min-height: 120px; }
.calc-result p { margin: 8px 0 0; }
.calc-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.calc-num { font-size: clamp(2.6rem, 7vw, 3.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc-sub { color: var(--muted); font-weight: 600; }
.calc-big.g-a .calc-num { color: var(--green); }
.calc-big.g-b .calc-num { color: #2a5aa8; }
.calc-big.g-c .calc-num { color: #8a6400; }
.calc-big.g-d .calc-num { color: #b0611f; }
.calc-big.g-f .calc-num { color: var(--red); }
.calc-big .qr-letter { font-size: 1.8rem; }
.calc-big.g-a .qr-letter { background: var(--green-soft); color: var(--green); }
.calc-big.g-b .qr-letter { background: var(--blue-soft); color: #2a5aa8; }
.calc-big.g-c .qr-letter { background: var(--yellow-soft); color: #8a6400; }
.calc-big.g-d .qr-letter, .calc-big.g-f .qr-letter { background: var(--red-soft); color: var(--red); }
.calc-h { font-size: 1.05rem; margin: 22px 0 10px; }
.grade-table .na { color: var(--red); font-weight: 600; }
.grade-table .ok { color: var(--green); font-weight: 600; }
.calc-how { font-weight: 550; font-size: .95rem; max-width: 640px; }
.calc-wide { grid-template-columns: minmax(0, 1fr) 320px; }
.calc-wide > aside .card + .card { margin-top: 14px; }
@media (max-width: 900px) { .calc-wide { grid-template-columns: 1fr; } }

.w-table { width: 100%; border-collapse: collapse; }
.w-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 6px 6px; }
.w-table td { padding: 4px 6px; vertical-align: middle; }
.w-table td:nth-child(2) input { max-width: 90px; }
.w-table td:nth-child(3) input { max-width: 140px; }
.w-table .w-pts { color: var(--muted); font-variant-numeric: tabular-nums; width: 70px; }
.w-table tfoot td { padding-top: 10px; border-top: 1px solid var(--line); }
#wSum.ok { color: var(--green); }
#wSum.warn { color: var(--red); }
.w-actions { margin: 12px 0 0; }
@media (max-width: 560px) { .w-table .w-pts { display: none; } .w-table td { padding: 3px 3px; } }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { padding: 10px 14px; display: flex; flex-direction: column; }
.stat b { font-size: 1.6rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.curve-table td.up { color: var(--green); font-weight: 600; }
@media print {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .stat { border: 1px solid #bbb !important; }
  .curve-table { border: 1px solid #bbb !important; }
  .curve-table td { padding: 2px 6px; font-size: .85rem; }
}

/* ================= Printables (shared) ================= */
.sheets { --z: 1; --c: #2d6a4f; --cs: #e3f0e8; --pf: ui-sans-serif, system-ui, sans-serif; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.page { zoom: var(--z); width: 8.5in; padding: .5in; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.sheet { position: relative; width: 7.5in; height: 9.9in; overflow: hidden; color: #1d2433; font-family: var(--pf); display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 1), minmax(0, 1fr)); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sheet.flow { display: block; }
.cut { border: 1px dashed #c4c4c4; margin: 0 -1px -1px 0; min-width: 0; min-height: 0; overflow: hidden; }
.sheet-msg { width: 100%; padding: 40px 20px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed #cfcabd; border-radius: var(--radius); }
.tool-note { font-size: .9rem; color: var(--muted); }
.tool-note.warn { color: #9a3522; font-weight: 550; }
.field-hint { margin: 6px 0 0; }
.supplies { columns: 2 220px; padding-left: 20px; }
.seg { display: flex; gap: 4px; background: #f1efe8; padding: 4px; border-radius: 10px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 7px 6px; border-radius: 7px; font-weight: 600; font-size: .86rem; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wline { display: inline-block; border-bottom: 1.5px solid #555; min-width: 1.5in; flex: 1; }
@media print {
  body:has(.sheets) .wrap { padding: 0; max-width: none; }
  body:has(.sheets) .tool-layout { margin: 0; }
  .sheets { display: block; }
  .page { zoom: 1 !important; width: auto; padding: 0; border: 0; box-shadow: none; break-after: page; }
  .page:last-child { break-after: auto; }
  .cut { border-color: #bbb; }
}

/* ---------- Bingo ---------- */
.bingo-card { display: flex; flex-direction: column; padding: .28in .3in .18in; }
.bc-title { text-align: center; font-weight: 800; font-size: var(--tsz, .3in); color: var(--c); line-height: 1.15; margin-bottom: .08in; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-box { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; }
.bc-grid { --w: min(100cqw, 100cqh * var(--ar)); --cell: calc(var(--w) / var(--n)); width: var(--w); display: grid; grid-template-columns: repeat(var(--n), 1fr); border-top: 3px solid var(--c); border-left: 3px solid var(--c); }
.bc-head { height: calc(var(--cell) * .62); display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 900; font-size: calc(var(--cell) * .42); border-right: 3px solid var(--c); border-bottom: 3px solid var(--c); }
.bc-cell { aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 6%; border-right: 3px solid var(--c); border-bottom: 3px solid var(--c); font-weight: 700; font-size: calc(var(--cell) * .19); line-height: 1.08; overflow: hidden; overflow-wrap: anywhere; hyphens: auto; }
.bc-cell.num { font-size: calc(var(--cell) * .4); font-weight: 750; }
.bc-cell.l0 { font-size: calc(var(--cell) * .26); }
.bc-cell.l2 { font-size: calc(var(--cell) * .15); }
.bc-cell.l3 { font-size: calc(var(--cell) * .115); }
.bc-cell.free { background: var(--cs); color: var(--c); font-weight: 900; font-size: calc(var(--cell) * .2); letter-spacing: .04em; }
.bc-cell.free svg { width: 46%; height: 46%; margin: 0 auto 2px; }
.bc-foot { display: flex; justify-content: space-between; font-size: .11in; color: #777; margin-top: .06in; }
.calls { padding: .1in .05in; }
.calls h2 { margin: 0 0 .04in; font-size: .3in; color: var(--c); }
.calls p { margin: 0 0 .14in; font-size: .13in; color: #666; }
.call-list { columns: var(--cc, 3); column-gap: .3in; margin: 0; padding: 0; list-style: none; font-size: var(--cf, .15in); }
.call-list li { break-inside: avoid; display: flex; gap: .08in; align-items: baseline; padding: .035in 0; border-bottom: 1px solid #e6e6e6; }
.call-list .bx { flex: none; width: .14in; height: .14in; border: 1.5px solid #888; border-radius: 3px; transform: translateY(.02in); }
.call-list .ans { color: #888; font-size: .85em; }
.call-board { display: grid; grid-template-columns: .55in repeat(15, 1fr); border-top: 2px solid var(--c); border-left: 2px solid var(--c); }
.call-board > div { border-right: 2px solid var(--c); border-bottom: 2px solid var(--c); height: .52in; display: grid; place-items: center; font-weight: 700; font-size: .17in; }
.call-board .lt { background: var(--c); color: #fff; font-size: .3in; font-weight: 900; }

/* ---------- Reward / sticker charts ---------- */
.rw { display: flex; flex-direction: column; padding: .3in; gap: .12in; }
.rw-head { display: flex; flex-direction: column; align-items: center; gap: .04in; }
.rw-title { font-size: var(--tsz, .5in); font-weight: 900; color: var(--c); line-height: 1.05; text-align: center; }
.rw-name { display: flex; align-items: baseline; gap: .1in; font-size: .2in; font-weight: 700; width: 70%; }
.rw-name .nm { flex: 1; text-align: center; font-size: .28in; border-bottom: 1.5px solid #555; min-height: .34in; }
.rw-box { flex: 1; min-height: 0; container-type: size; }
.rw-spaces { height: 100%; display: grid; place-content: center; grid-template-columns: repeat(var(--sc), var(--sz)); grid-auto-rows: var(--sz); --sz: min(100cqw / var(--sc), 100cqh / var(--sr)); }
.rw-sp { position: relative; display: grid; place-items: center; }
.rw-sp svg { position: absolute; inset: 7%; width: 86%; height: 86%; overflow: visible; }
.rw-sp svg path, .rw-sp svg circle, .rw-sp svg rect { fill: #fff; stroke: var(--c); stroke-width: 4; }
.rw-sp.last svg path, .rw-sp.last svg circle, .rw-sp.last svg rect { fill: var(--cs); stroke-width: 6; }
.rw-sp span { position: relative; font-weight: 800; color: #b9b9b9; font-size: calc(var(--sz) * .2); }
.rw-sp.last span { color: var(--c); font-size: calc(var(--sz) * .13); transform: translateY(8%); }
.rw-goal { display: flex; align-items: baseline; gap: .1in; font-size: .19in; font-weight: 700; padding: .1in .16in; border: 2px solid var(--c); border-radius: .14in; background: var(--cs); }
.rw-goal .gl { flex: 1; border-bottom: 1.5px solid #555; min-height: .28in; font-weight: 600; text-align: center; }
.rw-wk { flex: 1; min-height: 0; }
.rw-week { height: 100%; width: 100%; border-collapse: collapse; table-layout: fixed; }
.rw-week th { background: var(--c); color: #fff; font-size: .17in; padding: .06in; border: 2px solid var(--c); }
.rw-week th:first-child { width: 32%; }
.rw-week td { border: 2px solid var(--c); font-size: .17in; font-weight: 700; padding: .06in .1in; }
.rw-week td:first-child { background: var(--cs); }
.rw-week.sm th, .rw-week.sm td { font-size: .14in; }

/* ---------- Job chart ---------- */
.jobs-poster { display: flex; flex-direction: column; padding: .1in; }
.jp-title { text-align: center; font-size: .56in; font-weight: 900; color: var(--c); line-height: 1.05; margin: 0; }
.jp-week { text-align: center; font-size: .2in; font-weight: 600; color: #555; margin: .06in 0 .18in; }
.jp-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--jc, 1), 1fr); gap: .25in; }
.jp-list { display: grid; grid-auto-rows: minmax(0, 1fr); gap: .08in; align-content: stretch; max-height: 100%; }
.jp-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; border: 2px solid var(--c); border-radius: .12in; overflow: hidden; min-height: 0; max-height: 1in; }
.jp-job { background: var(--cs); align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: .04in .14in; font-weight: 800; font-size: var(--jf, .22in); line-height: 1.1; }
.jp-job small { font-weight: 500; font-size: .55em; color: #555; margin-top: 2px; }
.jp-who { padding: .04in .14in; font-weight: 700; font-size: var(--jf, .22in); text-align: center; }
.jp-off { margin-top: .14in; font-size: .15in; color: #555; text-align: center; }
.job-card { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: .18in; gap: .08in; }
.job-card .jn { font-size: .36in; font-weight: 900; color: var(--c); line-height: 1.05; }
.job-card .jd { font-size: .15in; color: #555; }
.job-card .jw { width: 80%; font-size: .22in; font-weight: 700; border-bottom: 1.5px solid #555; min-height: .34in; margin-top: .08in; }
.job-card { border-top: .1in solid var(--c); }
.name-card { display: grid; place-items: center; text-align: center; padding: .08in; font-weight: 800; line-height: 1.05; }
.job-ctl { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Desk name plates ---------- */
.plate { display: flex; flex-direction: column; padding: .14in .2in; gap: .08in; }
.plate .pl-main { flex: 1; min-height: 0; display: flex; align-items: center; gap: .12in; border: 3px solid var(--c); border-radius: .16in; padding: 0 .14in; background: #fff; }
.plate .pl-name { flex: 1; text-align: center; font-weight: 800; line-height: 1; white-space: nowrap; overflow: hidden; color: #1d2433; }
.plate .pl-hand { flex: none; width: .62in; height: .62in; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .14in; line-height: 1; text-align: center; }
.plate .pl-hand b { display: block; font-size: .3in; }
.pl-abc { display: grid; grid-template-columns: repeat(26, 1fr); border: 1.5px solid var(--c); border-radius: .06in; overflow: hidden; }
.pl-abc span { text-align: center; font-weight: 700; font-size: .13in; padding: .03in 0; }
.pl-abc span:nth-child(odd) { background: var(--cs); }
.pl-num { position: relative; height: .42in; margin: 0 .06in; }
.pl-num::before { content: ""; position: absolute; left: 0; right: 0; top: .1in; border-top: 2px solid #444; }
.pl-num span { position: absolute; top: .02in; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: .13in; font-weight: 700; }
.pl-num span::before { content: ""; width: 2px; height: .16in; background: #444; margin-bottom: .02in; }
.tent { display: grid; grid-template-rows: 1fr 1fr; }
.tent > .th { display: grid; place-items: center; padding: .2in .3in; border: 3px solid var(--c); margin: .16in .2in; border-radius: .14in; background: var(--cs); }
.tent > .th:first-child { transform: rotate(180deg); }
.tent .pl-name { font-weight: 800; line-height: 1; white-space: nowrap; overflow: hidden; }
.tent .fold { position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed #999; font-size: .1in; color: #999; text-align: center; }
.tent { position: relative; }

/* ---------- Hall passes ---------- */
.pass { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: .22in; position: relative; }
.pass .ps-in { width: 100%; height: 100%; border: 4px solid var(--c); border-radius: .22in; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .08in; padding: .2in; position: relative; }
.pass .hole { position: absolute; top: .16in; left: 50%; width: .26in; height: .26in; margin-left: -.13in; border: 2px dashed #999; border-radius: 50%; }
.pass .ico { width: 1.25in; height: 1.25in; border-radius: 50%; background: var(--cs); color: var(--c); display: grid; place-items: center; }
.pass .ico svg { width: 62%; height: 62%; }
.pass .pn { font-size: var(--pnf, .5in); font-weight: 900; color: var(--c); line-height: 1; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.pass .pk { font-size: .2in; font-weight: 800; letter-spacing: .3em; color: #555; text-transform: uppercase; }
.pass .pt { font-size: .17in; font-weight: 600; color: #333; margin-top: .06in; }
.slip { display: flex; flex-direction: column; padding: .16in .2in; gap: .07in; font-size: .15in; }
.slip .sh { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--c); padding-bottom: .04in; }
.slip .sh b { font-size: .24in; color: var(--c); font-weight: 900; }
.slip .sh span { font-weight: 600; color: #555; }
.slip .fl { display: flex; gap: .08in; align-items: baseline; font-weight: 600; }
.slip .fl .wline { min-width: .6in; }
.slip .to { display: flex; flex-wrap: wrap; gap: .03in .16in; font-weight: 500; }
.slip .to span::before { content: ""; display: inline-block; width: .12in; height: .12in; border: 1.5px solid #666; border-radius: 2px; margin-right: .05in; vertical-align: -1px; }
.log { padding: .05in; }
.log h2 { margin: 0; font-size: .32in; color: var(--c); }
.log p { margin: .02in 0 .14in; font-size: .15in; color: #555; font-weight: 600; }
.log table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.log th { background: var(--c); color: #fff; font-size: .14in; padding: .06in; border: 1.5px solid var(--c); text-align: left; }
.log td { border: 1.5px solid #999; height: var(--rh, .33in); }

/* ================= Shared: sliders ================= */
.slider { display: flex; align-items: center; gap: 8px; font-size: .88rem; margin: 0; white-space: nowrap; }
.slider output { min-width: 1.6em; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.slider input[type="range"] { flex: 1; min-width: 90px; accent-color: var(--green); }

/* ================= Noise meter ================= */
.noise-stage { --nc: #b9b4a6; margin-top: 12px; padding: 16px 18px 18px; display: flex; flex-direction: column; align-items: center; transition: background .35s; }
.noise-stage[data-state="quiet"] { --nc: var(--green); }
.noise-stage[data-state="mid"] { --nc: #e0a800; background: #fffbea; }
.noise-stage[data-state="loud"] { --nc: var(--red); background: #fffbea; }
.noise-stage[data-state="alert"] { --nc: var(--red); background: var(--red-soft); }
.gauge { position: relative; width: min(100%, 520px); margin: 8px auto 0; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.g-track, .g-fill { fill: none; stroke-width: 22; stroke-linecap: round; }
.g-track { stroke: #ece9e1; }
.g-fill { stroke: var(--nc); transition: stroke .3s; }
.g-limit { stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.noise-word { position: absolute; left: 0; right: 0; bottom: 2%; text-align: center; font-size: clamp(1.6rem, 5vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; color: var(--nc); line-height: 1.1; }
.noise-stage[data-state="idle"] .noise-word { color: var(--muted); }
.noise-stage[data-state="alert"] .noise-word { animation: blink 1s steps(2) infinite; }
.noise-sub { text-align: center; min-height: 1.3em; margin: 6px 0 0; }
.noise-hist { width: 100%; max-width: 640px; height: 70px; margin: 10px 0 4px; border-radius: 8px; }
.noise-go { min-width: 200px; }
.noise-stage .btn-primary { background: var(--green); }
.noise-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; width: 100%; max-width: 640px; margin-top: 16px; }
.noise-checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 18px; }
.noise-checks .check { margin: 2px 0; }
.noise-stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 28px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; max-width: 640px; }
.noise-stats > div { display: flex; flex-direction: column; align-items: center; }
.noise-stats strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .noise-settings { grid-template-columns: 1fr; } }
.noise-stage:fullscreen, .noise-stage.fake-full { justify-content: center; border: 0; padding: 24px; background: var(--paper); }
.noise-stage[data-state="mid"]:fullscreen, .noise-stage[data-state="loud"]:fullscreen, .noise-stage.fake-full[data-state="mid"], .noise-stage.fake-full[data-state="loud"] { background: #fffbea; }
.noise-stage[data-state="alert"]:fullscreen, .noise-stage.fake-full[data-state="alert"] { background: var(--red-soft); }
.noise-stage:fullscreen .gauge, .noise-stage.fake-full .gauge { width: min(90vw, calc((100vh - 390px) * 1.75)); }
.noise-stage:fullscreen .noise-word, .noise-stage.fake-full .noise-word { font-size: min(8vw, calc((100vh - 390px) * .15)); }
.noise-stage:fullscreen .noise-hist, .noise-stage.fake-full .noise-hist { max-width: 900px; height: 90px; }
.noise-stage.is-running:fullscreen .noise-settings, .noise-stage.is-running:fullscreen .stage-hint,
.noise-stage.is-running.fake-full .noise-settings, .noise-stage.is-running.fake-full .stage-hint { display: none; }

/* ================= Classroom dashboard ================= */
.dash-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 4px 0 10px; }
.dash-bar .spacer { flex: 1; }
.dash-show-label { font-weight: 600; }
.dash-show { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.dash-show .check { margin: 0; }
.dash { position: relative; display: flex; flex-direction: column; gap: 14px; }
.dash-exit { display: none; position: absolute; top: 0; right: 0; z-index: 3; opacity: .6; }
.dash-exit:hover { opacity: 1; }
.dash-head { display: flex; align-items: center; gap: 12px 28px; padding: 14px 20px; flex-wrap: wrap; }
.dash-time { flex: none; }
.dash-clock { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.dash-date { color: var(--muted); font-weight: 600; margin-top: 4px; }
input.dash-msg { flex: 1; min-width: 220px; border: 0; border-left: 3px solid var(--yellow); border-radius: 0; background: transparent; padding: 4px 0 4px 18px; font-size: clamp(1.2rem, 2.6vw, 1.8rem); font-weight: 700; color: var(--ink); }
input.dash-msg:focus { outline: none; border-left-color: var(--green); background: #fbfaf6; }
.dash-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-grid[data-count="1"] { grid-template-columns: 1fr; }
@media (max-width: 980px) { .dash-grid[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .dash-grid, .dash-grid[data-count="3"] { grid-template-columns: 1fr; } }
.widget { padding: 14px 18px 16px; display: flex; flex-direction: column; min-width: 0; min-height: 250px; transition: background .3s; }
.widget h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.w-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.w-main { min-width: 120px; }
.w-foot { margin: auto 0 0; padding-top: 10px; text-align: center; justify-content: center; }
/* timer */
.w-timer { --tc: var(--green); }
.w-timer[data-state="mid"] { --tc: #e0a800; }
.w-timer[data-state="low"], .w-timer[data-state="done"] { --tc: var(--red); }
.w-timer[data-state="done"] { background: var(--red-soft); }
.w-digits { text-align: center; font-size: clamp(3rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; margin: 4px 0 10px; }
.w-timer[data-state="done"] .w-digits { color: var(--red); animation: blink 1s steps(2) 4; }
.w-progress { height: 10px; border-radius: 999px; background: #ece9e1; overflow: hidden; margin-bottom: 14px; }
.w-progress span { display: block; height: 100%; width: 100%; background: var(--tc); border-radius: inherit; transition: background .3s; }
.w-timer .btn-primary { background: var(--tc); border-color: var(--tc); }
.w-presets { margin-top: 10px; }
.w-presets .btn[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green); }
/* agenda */
input.a-title { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; width: 100%; }
input.a-title:focus { outline: none; color: var(--ink); }
.a-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; counter-reset: a; }
.a-list li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; cursor: pointer; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 600; }
.a-list li:hover { background: #f7f5ef; }
.a-list li.now { background: var(--yellow-soft); box-shadow: inset 4px 0 0 var(--yellow); }
.a-list li.done .a-text { color: #9a9486; text-decoration: line-through; font-weight: 500; }
.a-list li.a-empty { cursor: default; font-weight: 400; }
.a-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.a-check { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #c8c2b3; background: #fff; padding: 0; cursor: pointer; display: grid; place-items: center; }
.a-check[aria-pressed="true"] { background: var(--green); border-color: var(--green); }
.a-check[aria-pressed="true"]::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.a-tools { display: flex; opacity: 0; }
.a-list li:hover .a-tools, .a-list li:focus-within .a-tools { opacity: 1; }
.a-tools .x { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 1rem; padding: 2px 6px; border-radius: 6px; }
.a-tools .x:hover { color: var(--ink); background: #fff; }
.a-tools .x[disabled] { visibility: hidden; }
.a-add { margin-top: auto; flex-wrap: nowrap; }
.a-add input { flex: 1; min-width: 0; }
/* noise */
.w-noise { --nc: #b9b4a6; }
.w-noise[data-state="quiet"] { --nc: var(--green); }
.w-noise[data-state="mid"], .w-noise[data-state="loud"] { --nc: #e0a800; }
.w-noise[data-state="alert"] { --nc: var(--red); background: var(--red-soft); }
.n-word { text-align: center; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; color: var(--nc); margin: 10px 0 14px; line-height: 1.1; }
.w-noise[data-state="idle"] .n-word { color: var(--muted); font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.w-noise[data-state="alert"] .n-word { animation: blink 1s steps(2) infinite; }
.n-meter { position: relative; height: 30px; border-radius: 999px; background: #ece9e1; margin-bottom: 16px; }
.n-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: var(--nc); transition: background .3s; }
.n-limit { position: absolute; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
.n-slider { flex: 1; min-width: 140px; max-width: 240px; color: var(--muted); }
/* picker */
.p-class { width: auto; max-width: 55%; padding: 3px 26px 3px 8px; font-size: .84rem; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink); }
.p-name { flex: 1; display: grid; place-items: center; text-align: center; min-height: 2.6em; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; color: var(--green); line-height: 1.1; cursor: pointer; overflow-wrap: anywhere; margin: 6px 0 12px; }
.p-name.empty { color: #b0aa9b; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.p-name.show { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.dash-class { margin-top: 18px; }
.dash-class summary { cursor: pointer; font-weight: 650; }
.dash-class[open] summary { margin-bottom: 12px; }
.dash-class #classPanel { max-width: 420px; }
/* dashboard fullscreen */
.dash:fullscreen, .dash.fake-full { background: var(--paper); padding: 16px; overflow: auto; }
.dash:fullscreen .dash-exit, .dash.fake-full .dash-exit { display: inline-flex; top: 6px; right: 8px; }
.dash:fullscreen .dash-grid, .dash.fake-full .dash-grid { flex: 1; grid-auto-rows: minmax(0, 1fr); }
.dash:fullscreen .widget, .dash.fake-full .widget { min-height: 0; }
.dash:fullscreen .dash-clock, .dash.fake-full .dash-clock { font-size: clamp(2.6rem, 6vh, 5rem); }
.dash:fullscreen input.dash-msg, .dash.fake-full input.dash-msg { font-size: clamp(1.4rem, 4vh, 2.6rem); }
.dash:fullscreen .w-digits, .dash.fake-full .w-digits { font-size: clamp(3rem, 12vh, 9rem); }
.dash:fullscreen .p-name, .dash.fake-full .p-name { font-size: clamp(2rem, 8vh, 5rem); }
.dash:fullscreen .n-word, .dash.fake-full .n-word { font-size: clamp(1.8rem, 6vh, 3.6rem); }
.dash:fullscreen .a-list li, .dash.fake-full .a-list li { font-size: clamp(1.1rem, 2.8vh, 1.7rem); }
.noise-stage[data-state="idle"] .g-fill { opacity: 0; }
