/* Tutoring Board: the look of the approved mockup (2026-12-03).
   No outside fonts or files: the pages load nothing but their own. */
:root {
  --ground: #F7F5FA;
  --paper: #FFFFFF;
  --line: #E4DFEA;
  --line-strong: #CFC7D8;
  --ink: #1E1B24;
  --quiet: #5B5566;
  --brand: #3B0A45;
  --brand-soft: #F3E8F7;
  --tutor: #1D4ED8;
  --student: #9A3412;
  --student-soft: #FFEDD5;
  --student-deep: #7C2D12;
  --ok: #166534;
  --ok-soft: #DCFCE7;
  --ok-dot: #16A34A;
  --warn: #9A3412;
  --bad: #B91C1C;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: Inter, system-ui, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; font-size: 14px;
}
button, select, input { font-family: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 3px solid #7C3AED; outline-offset: 2px; }
[hidden] { display: none !important; }
.grow { flex: 1; }
.quiet { color: var(--quiet); }
.small { font-size: 12px; line-height: 1.5; }
.linkish { border: 0; background: none; padding: 0; color: var(--brand); text-decoration: underline; font-size: inherit; }

.plain {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--paper); color: var(--ink); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.solid {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--brand); color: #FFFFFF;
  font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center;
}
.brand-line { border-color: var(--brand); color: var(--brand); font-weight: 500; }
.small-btn { min-height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 13px; }
.big { min-height: 52px; font-size: 16px; width: 100%; }

/* ---------- the board page ---------- */
body.board { display: flex; flex-direction: column; overflow: hidden; height: 100vh; height: 100dvh; }
.top {
  flex: none; min-height: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 6px 16px;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.brand { font-size: 16px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.sub { font-size: 14px; color: var(--quiet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.here { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--quiet); white-space: nowrap; }
.here .dot { width: 10px; height: 10px; border-radius: 50%; background: #B8B1C2; }
.here.in { color: var(--ok); }
.here.in .dot { background: var(--ok-dot); }
.link { font-size: 13px; color: var(--warn); }
#sideBtn { display: none; }

.body { flex: 1; min-height: 0; display: flex; }
.side {
  width: 220px; flex: none; overflow-y: auto; padding: 14px 12px; background: var(--paper); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.side-h { margin: 6px 0 6px 6px; font-size: 12px; font-weight: 600; color: var(--quiet); }
.side-h + .side-h, .boards + .side-link + .side-h { margin-top: 18px; }
.board-link {
  display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 10px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 14px;
}
.board-link.current { background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.live-tag { font-size: 12px; color: var(--ok); font-weight: 400; }
.side-link { margin: 4px 0 0 10px; font-size: 13px; color: var(--brand); }
.tray { display: flex; flex-direction: column; gap: 8px; padding: 0 2px; }
.tray-card { display: grid; grid-template-columns: 48px 1fr; gap: 2px 10px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.tray-card img { grid-row: span 3; width: 48px; height: 62px; object-fit: cover; border-radius: 4px; background: #EDE9F2; border: 1px solid var(--line-strong); }
.tray-name { font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.tray-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
#trayAll { margin: 8px 2px 0; }

.work { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tools {
  flex: none; min-height: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 14px;
  background: #FBFAFC; border-bottom: 1px solid var(--line);
}
.toolset { display: flex; flex-wrap: wrap; gap: 4px; }
.tool {
  min-height: 44px; padding: 0 13px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--ink); font-size: 15px;
}
.tool[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 500; }
body.student .tool[aria-pressed="true"] { border-color: var(--student); background: var(--student-soft); color: var(--student-deep); }
.sep { width: 1px; height: 28px; background: var(--line); margin: 0 4px; }
.opts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.opt-btn { min-height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 13px; }
.opt-btn[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.swatch { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.swatch[aria-pressed="true"] i { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px currentColor; }
.keys { display: none; align-items: center; gap: 6px; }
/* The quick keys are for typing: shown with the Type tool or a typing box, so the tools stay on one row on a tablet. */
body.typing-tool .keys, body.text-open .keys { display: flex; }
.keys-label { font-size: 13px; color: var(--quiet); }
.key { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 17px; }
#penOnly[aria-pressed="true"] { border-color: var(--ok); color: var(--ok); }

.desk { flex: 1; min-height: 0; position: relative; overflow: hidden; touch-action: none; }
.sheet {
  position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0;
  background-color: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: crosshair;
}
body.typing-tool .sheet { cursor: text; }
body[data-tool="move"] .sheet { cursor: move; }
body[data-tool="point"] .sheet { cursor: default; }

/* paper */
.pv[data-paper="dots"] { background-image: radial-gradient(#BFB6CB 1.7px, transparent 1.7px); background-size: 32px 32px; background-position: 16px 16px; }
.pv[data-paper="graph"] {
  background-image: linear-gradient(#BFD3F2 1.5px, transparent 1.5px), linear-gradient(90deg, #BFD3F2 1.5px, transparent 1.5px),
    linear-gradient(#E3ECFA 1px, transparent 1px), linear-gradient(90deg, #E3ECFA 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
}
.pv[data-paper="lined"] { background-image: linear-gradient(transparent 47px, #C7D7F3 47px, #C7D7F3 49px); background-size: 100% 49px; }
.pv[data-paper="blank"] { background-image: none; }

.pv-pics, .pv-texts, .pv-live { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; }
.pv-live { pointer-events: none; }
.pv-ink { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; pointer-events: none; overflow: visible; }
.pv-hl { mix-blend-mode: multiply; }
.pic { position: absolute; overflow: hidden; background: #FFFFFF; }
.pic img { display: block; width: 100%; height: 100%; -webkit-user-drag: none; }
.pic.locked { box-shadow: 0 0 0 1px var(--line-strong); }
.pic:not(.locked) { box-shadow: 0 4px 16px rgba(30, 27, 36, .16); border-radius: 6px; }
.pic.missing { display: grid; place-items: center; color: var(--quiet); font-size: 22px; background: #F7F5FA; }
.txt {
  position: absolute; margin: 0; padding: 4px 8px; border-radius: 6px; font-size: 30px; line-height: 1.3;
  white-space: pre-wrap; overflow-wrap: anywhere; border: 2px solid transparent;
}
body.typing-tool .txt.mine { cursor: pointer; }
body.typing-tool .txt.mine:hover { border-color: var(--line-strong); }
.txt.editing { visibility: hidden; }
.ghost {
  position: absolute; margin: 0; padding: 4px 8px; border: 2px dashed currentColor; border-radius: 6px;
  font-size: 30px; line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 60px; min-height: 48px;
}
.ghost-tag {
  position: absolute; left: 8px; top: -34px; padding: 2px 12px; border-radius: 14px; white-space: nowrap;
  background: var(--student-soft); color: var(--student-deep); font-size: 17px; line-height: 1.5;
}
.ghost.by-t .ghost-tag { background: #DBEAFE; color: #1E3A8A; }
.ring { fill: rgba(255, 255, 255, .35); stroke: #7C3AED; }
.band { fill: rgba(124, 58, 237, .06); stroke: #7C3AED; stroke-dasharray: 6 4; }
.selbox { fill: none; stroke: #7C3AED; stroke-dasharray: 8 5; }

/* pointers: a dot with two rings that fade */
.pointer { position: absolute; width: 0; height: 0; }
.pointer i { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.pointer i:nth-child(1) { width: 64px; height: 64px; background: rgba(194, 65, 12, .14); }
.pointer i:nth-child(2) { width: 32px; height: 32px; background: rgba(194, 65, 12, .32); }
.pointer i:nth-child(3) { width: 14px; height: 14px; background: #C2410C; }
.pointer.by-t i:nth-child(1) { background: rgba(29, 78, 216, .14); }
.pointer.by-t i:nth-child(2) { background: rgba(29, 78, 216, .32); }
.pointer.by-t i:nth-child(3) { background: #1D4ED8; }
.pointer.fade { animation: fade 2.6s ease-in forwards; }
@keyframes fade { 0%, 55% { opacity: 1; } 100% { opacity: 0; } }

/* questions on the page */
.ask {
  position: absolute; min-width: 300px; max-width: 900px; padding: 14px 18px 16px; background: #FFFFFF; border: 2px solid var(--line-strong);
  border-radius: 14px; box-shadow: 0 4px 18px rgba(30, 27, 36, .08); user-select: none;
}
.ask-head { margin: 0 0 10px; font-size: 20px; font-weight: 600; color: var(--quiet); }
.ask-opts { display: flex; gap: 14px; flex-wrap: wrap; }
.ask .opt {
  width: 84px; height: 84px; border-radius: 14px; border: 3px solid var(--line-strong); background: #FFFFFF;
  font-size: 38px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.ask .opt:disabled { opacity: 1; cursor: default; }
.ask .opt.picked { border-color: var(--student); background: var(--student-soft); color: var(--student-deep); }
.ask .opt.before { box-shadow: inset 0 -6px 0 #FED7AA; }
.ask .opt.key { outline: 4px solid var(--ok-dot); outline-offset: 3px; }
.ask .opt.right { border-color: var(--ok-dot); background: var(--ok-soft); color: var(--ok); }
.ask .opt.wrong { border-color: var(--bad); background: #FEE2E2; color: var(--bad); text-decoration: line-through; }
.ask-note { margin: 10px 0 0; font-size: 19px; line-height: 1.4; color: var(--quiet); }
.ask-ctl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ask-ctl .small-btn { min-height: 52px; padding: 0 18px; font-size: 19px; border-radius: 10px; }
.ask-ctl [aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.ask.response { width: 640px; }
.ask-in { display: block; width: 100%; min-height: 110px; padding: 10px 12px; border: 2px solid var(--line-strong); border-radius: 10px; font-family: ui-monospace, Consolas, monospace; font-size: 24px; resize: vertical; user-select: text; }
.ask-reply { margin: 8px 0 0; min-height: 40px; font-size: 28px; line-height: 1.35; color: var(--student); white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-reply.typing { border-left: 4px solid var(--student); padding-left: 10px; }

/* the typing box */
.editor {
  position: absolute; width: min(460px, calc(100% - 16px)); background: var(--paper); border: 2px solid var(--brand); border-radius: 10px;
  box-shadow: 0 8px 28px rgba(30, 27, 36, .18); z-index: 3;
}
body.student .editor { border-color: var(--student); }
.ed-out { margin: 0; padding: 10px 12px 8px; min-height: 44px; font-size: 20px; line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere; }
.ed-out.empty { color: #6F677B; font-size: 15px; padding-top: 12px; }
.ed-label { display: block; padding: 8px 12px 4px; border-top: 1px solid var(--line); background: #FBFAFC; font-size: 13px; color: var(--quiet); }
.ed-in {
  display: block; width: calc(100% - 24px); margin: 0 12px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 6px;
  font-family: ui-monospace, Consolas, "Roboto Mono", monospace; font-size: 17px; line-height: 1.3; color: var(--ink); background: #FFFFFF; resize: none; overflow: hidden;
}
.ed-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #FBFAFC; border-radius: 0 0 8px 8px; }
.ed-hint { flex: 1; font-size: 12px; line-height: 1.4; color: var(--quiet); }
.small { height: auto; }
.ed-row .small { min-height: 44px; }

.banner { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: 10px 18px; border-radius: 10px; background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E3A8A; font-size: 15px; z-index: 2; }
.fit { position: absolute; right: 14px; top: 14px; z-index: 2; }

.shelf { position: absolute; right: 14px; bottom: 14px; width: 236px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; z-index: 2; box-shadow: 0 2px 10px rgba(30, 27, 36, .06); }
.shelf-head { width: 100%; min-height: 44px; border: 0; background: none; text-align: left; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--quiet); }
.shelf-head::after { content: " ▾"; }
.shelf-head[aria-expanded="true"]::after { content: " ▴"; }
.shelf-body { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 12px; max-height: 60vh; overflow-y: auto; }
.shelf-btn { min-height: 40px; display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #FFFFFF; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left; flex: 1; }
.shelf-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.shelf-row select { min-height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 6px; }
.paper-btn { min-height: 36px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: #FFFFFF; font-size: 13px; }
.paper-btn[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.shelf-none { margin: 2px 2px 4px; }
.shelf-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shelf-page { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: #FFFFFF; font-size: 13px; }
.shelf-page img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: contain; background: #F7F5FA; }

/* the page strip (his side) */
.strip { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--paper); border-top: 1px solid var(--line); min-height: 80px; }
.cards { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; padding: 2px; }
.strip-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.card {
  flex: none; min-width: 104px; max-width: 160px; min-height: 58px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: #FFFFFF; color: var(--ink); text-align: left; display: flex; flex-direction: column; gap: 2px; font-size: 12px; position: relative;
}
.card.hidden-page { border-style: dashed; border-color: #8A8296; color: var(--quiet); }
.card.current { border: 2px solid var(--brand); background: var(--brand-soft); color: var(--brand); }
body.student .card.current { border-color: var(--student); background: var(--student-soft); color: var(--student-deep); }
.card-n { font-size: 12px; }
.card-t { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.card-here { font-size: 11px; color: var(--warn); }
.card-input { flex: none; width: 160px; min-height: 58px; padding: 0 10px; border: 2px solid var(--brand); border-radius: 8px; font-size: 14px; }

/* the student's side */
.aside { width: 220px; flex: none; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px 0; overflow-y: auto; }
.spages { display: flex; flex-direction: column; gap: 8px; }
.spages .card { max-width: none; min-height: 60px; font-size: 13px; }
.scrap { padding: 12px; background: #FFFFFF; border: 1px dashed #8A8296; border-radius: 8px; }
.scrap-h { margin: 0 0 6px; font-size: 13px; font-weight: 500; }
.scrap canvas { display: block; width: 100%; aspect-ratio: 2 / 1; border: 1px solid var(--line); border-radius: 6px; touch-action: none; background: #FFFFFF; }
.scrap p { margin: 6px 0 0; }

/* panels and the toast */
.overlay { position: fixed; inset: 0; background: rgba(30, 27, 36, .45); display: grid; place-items: center; z-index: 10; padding: 16px; }
.panel { width: min(1360px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); border-radius: 12px; padding: 16px 20px 20px; }
.panel-head { display: flex; align-items: center; gap: 12px; }
.panel-head h2 { flex: 1; margin: 0; font-size: 18px; color: var(--brand); }
.panel-body p { font-size: 15px; line-height: 1.5; }
.pair { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.pair figure { margin: 0; }
.pair figcaption { text-align: center; margin-top: 6px; font-size: 14px; color: var(--quiet); }
.still { position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: #FFFFFF; }
.still-sheet { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; background-color: #FFFFFF; }
.summary { width: 100%; border-collapse: collapse; font-size: 14px; }
.summary th, .summary td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary th { font-size: 12px; color: var(--quiet); }
.code-line { font-family: ui-monospace, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; background: #F1EEF5; padding: 8px 10px; border-radius: 6px; user-select: all; }
.qr { display: block; width: 240px; height: 240px; margin: 8px auto; image-rendering: pixelated; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); max-width: min(640px, calc(100vw - 32px)); margin: 0; padding: 10px 16px; background: var(--ink); color: #FFFFFF; border-radius: 10px; font-size: 14px; line-height: 1.4; z-index: 11; }

.lost { max-width: 560px; margin: 80px auto; padding: 0 24px; }
.lost h1 { font-size: 22px; color: var(--brand); }
body.lost-page > :not(.lost) { display: none !important; }

/* who sees what */
body.tutor .only-s, body.student .only-t, body:not(.phone) .only-phone, body.phone .not-phone { display: none !important; }

/* ---------- a tablet held upright, or a narrow window (his side) ---------- */
@media (max-width: 900px) {
  .side { display: none; position: absolute; z-index: 5; top: 0; bottom: 0; box-shadow: 4px 0 18px rgba(30, 27, 36, .15); }
  body.side-open .side { display: flex; }
  .body { position: relative; }
  #sideBtn { display: inline-flex; }
  .sub { max-width: 140px; }
  .keys-label, .ed-hint { display: none; }
  .strip { flex-wrap: wrap; }
  .strip-acts { width: 100%; justify-content: flex-start; }
  .aside { width: 170px; }
}

/* ---------- the student's phone (mockup screen 4) ---------- */
body.phone .top { min-height: 0; padding: 12px 16px 6px; border: 0; }
body.phone .brand { font-size: 17px; }
body.phone .work { padding: 0 0 8px; }
.phone-top { flex: none; padding: 0 16px 8px; background: var(--paper); border-bottom: 1px solid var(--line); }
.phone-where { margin: 0 0 8px; font-size: 13px; color: var(--quiet); }
.phone-map-row { display: flex; gap: 12px; align-items: center; }
.phone-map { position: relative; width: 128px; flex: none; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 6px; background: #FFFFFF; }
.map-sheet { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; pointer-events: none; }
.map-box { position: absolute; border: 2px solid var(--student); border-radius: 3px; touch-action: none; cursor: grab; background: rgba(194, 65, 12, .06); }
body.phone .desk { margin: 10px 12px 0; border: 1px solid var(--line-strong); border-radius: 12px; background: #FFFFFF; }
body.phone .sheet { border: 0; border-radius: 0; }
.phone-bottom { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 0; }
.phone-row { display: flex; gap: 10px; }
.phone-row .plain { flex: 1; }
#phErase[aria-pressed="true"] { border-color: var(--student); background: var(--student-soft); color: var(--student-deep); }
body.phone .toast { bottom: 24px; }

/* ---------- Save as PDF ---------- */
.print { display: none; }
@media print {
  @page { size: landscape; margin: 10mm; }
  body.printing { display: block !important; height: auto; overflow: visible; background: #FFFFFF; }
  body.printing > :not(.print) { display: none !important; }
  body.printing .print { display: block; }
  .print-page { page-break-after: always; break-after: page; border: 1px solid #CFC7D8; margin: 0 auto; }
}

/* ---------- his home page ---------- */
body.home { padding: 32px 20px; }
.card-box { max-width: 860px; margin: 0 auto 18px; padding: 24px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.card-box h1 { margin: 0 0 4px; font-size: 24px; color: var(--brand); }
.card-box h2 { margin: 0 0 10px; font-size: 17px; }
.card-box p, .card-box li { font-size: 15px; line-height: 1.55; }
.warn { padding: 12px 14px; border-radius: 8px; background: var(--student-soft); color: var(--student-deep); }
.home-board { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.home-board:first-child { border-top: 0; }
.home-board .hb-name { font-size: 16px; font-weight: 600; }
.home-board .hb-meta { font-size: 13px; color: var(--quiet); }
.hb-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.home-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.home-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--quiet); }
.home-form input { min-height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 15px; color: var(--ink); }
.danger { border-color: var(--bad); color: var(--bad); }
code { font-family: ui-monospace, Consolas, monospace; font-size: .95em; background: #F1EEF5; padding: 1px 5px; border-radius: 4px; }
.gap-top { margin-top: 18px !important; }

/* ---------- a tablet held flat (about 1024 to 1152 CSS px wide): the tools on one row ---------- */
@media (max-width: 1100px) {
  .tool { padding: 0 9px; font-size: 14px; }
  .swatch { width: 38px; }
  .sep { display: none; }
  .side { width: 196px; }
  .tools { padding: 6px 10px; gap: 4px; }
}
