/* © 2026 Cromulent, Inc. All Rights Reserved.
   tag.css - tag's own look: a street mosaic set into a concrete wall. Panels are edged in tile; the boards (tiles.js,
   mosaic.js) lay the rest.
   System fonts, no fetches. */
@import url("/_cromulent/topnav.css");

:root {
  --concrete: #2f2e2c;
  --panel: rgba(24, 23, 22, 0.9);
  --bone: #ece6da;
  --bone-soft: #c8c1b4;
  --lead: #edc81e;
  --lead-deep: #c4a601;   /* the lead, gold since 2026-11-20 (the house set); buttons carry ink on the lead, not white */
  --terracotta: #d0805e;
  --ochre: #edc81e;
  --verdigris: #6fbfa8;
  --lapis: #8db0e8;
  --amethyst: #b39ad8;
  --ink: #1b1a17;
  --ink-soft: #4a4640;
  --good: #1b6f46;
  --wait: #8a5a00;
  --bad: #b3261e;
  --bad-on-dark: #ffb3c4;
  /* a panel's edge: one row of grey stone tesserae in dark grout, repeated round it (border-image) */
  --tile-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Crect width='30' height='30' fill='%233a3936'/%3E%3Cg fill='%23948d80'%3E%3Crect x='0.6' y='0.6' width='8.8' height='8.8' rx='0.8'/%3E%3Crect x='10.6' y='0.6' width='8.8' height='8.8' rx='0.8'/%3E%3Crect x='20.6' y='0.6' width='8.8' height='8.8' rx='0.8'/%3E%3Crect x='0.6' y='10.6' width='8.8' height='8.8' rx='0.8'/%3E%3Crect x='20.6' y='10.6' width='8.8' height='8.8' rx='0.8'/%3E%3Crect x='0.6' y='20.6' width='8.8' height='8.8' rx='0.8'/%3E%3Crect x='10.6' y='20.6' width='8.8' height='8.8' rx='0.8'/%3E%3Crect x='20.6' y='20.6' width='8.8' height='8.8' rx='0.8'/%3E%3C/g%3E%3C/svg%3E");
  --display: "Avenir Next", "Futura", "Century Gothic", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* the ground: poured concrete, drawn here as two layers of noise. Fine grain (dark specks, the aggregate) over slow,
   wide mottling (where the pour dried unevenly). Rendered once and tiled; no animation, no fetch. */
html {
  background-color: var(--concrete);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 -0.42'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.16 -0.05'/%3E%3C/filter%3E%3Crect width='900' height='900' filter='url(%23m)'/%3E%3C/svg%3E");

}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--bone);
}

/* the light falling off the wall's edges, fixed to the screen so a long page has no seam */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 88%);
}

a { color: var(--lapis); }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: var(--ochre); color: var(--ink); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------------------------------------------------------------- the boards (tiles.js) */

.mosaic-hero.class-mosaic { aspect-ratio: 16 / 9; height: auto; border-radius: 4px; overflow: hidden; }
.tile-board { position: relative; background: #4a4844; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); }
.tile-canvas { position: absolute; left: 0; top: 0; display: block; pointer-events: none; }
.tile-host { position: relative; }
.tile-mark { position: absolute; inset: -9px; pointer-events: none; z-index: 1; }
.tile-mark canvas { display: block; }

/* ---------------------------------------------------------------- the hero and the header */

header.top { padding: 18px 0 8px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mark { display: inline-block; text-decoration: none; line-height: 0; }
.mark svg { width: 96px; height: auto; display: block; }
/* THE LANDING, LAID OUT LIKE SPAWN'S (wchesher, 2026-11-12: "rip out the control panel" / "and make the layout like
   spawn"). The first screen is one splash: the motto and the way in across the top, the mosaic as the logo, the line,
   a lede and two calls to action, each size held to the viewport's height as well as its width so it fits a
   Chromebook's 1366 x 768. Under it: sign-in, how it works as one grid of cells, and a closing row. tag's own look
   (concrete, tile, bone, rose); spawn's layout only. */
.hero { text-align: center; }
.splash { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden;
  border-bottom: 1px solid rgba(236, 230, 218, 0.1);
  background:
    radial-gradient(34% 30% at 50% 36%, rgba(237, 200, 30, 0.20), transparent 72%),
    radial-gradient(60% 52% at 50% 40%, rgba(208, 128, 94, 0.07), transparent 76%),
    linear-gradient(180deg, #0f0e0d, #141312 70%, #171614); }
.land-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(16px, 4vw, 56px); }
.motto { display: flex; align-items: center; gap: 14px; margin: 0; white-space: nowrap; font: 500 11px/1 var(--mono); letter-spacing: 0.3em; text-transform: uppercase; color: #8f897f; }
.motto a { color: inherit; text-decoration: none; }
.motto::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--lead)); }
.land-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px clamp(14px, 2.4vw, 28px); font-size: 15px; }
.land-nav a:not(.button) { color: var(--bone); text-decoration: none; }
.land-nav a:not(.button):hover { color: #fff; }
.land-nav .button { padding: 6px 14px; min-height: 36px; font-size: 14px; }
.splash-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 clamp(16px, 4vw, 56px) clamp(32px, 7vh, 88px); }
/* the lockup (hero.js): "tag." in tile, floating; the light behind it is the splash's own */
.mosaic-hero { display: block; width: min(640px, 92vw, 92vh); margin: 0 auto; line-height: 0;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(237, 200, 30, 0.14)); }
.mosaic-board { display: block; width: 100%; height: auto; aspect-ratio: 640 / 360; background: transparent; }
.hero h1.line {
  margin: clamp(4px, 1.5vh, 16px) 0 0; font: 700 min(clamp(26px, 2.9vw, 42px), 8vw, 5.4vh)/1.1 var(--display);
  letter-spacing: -0.03em; color: var(--bone); text-wrap: balance;
}
.hero h1.line .accent { background: linear-gradient(90deg, #f6d45d, var(--lead) 45%, #e0905e); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.splash .lede { margin: clamp(12px, 2.2vh, 22px) 0 0; max-width: 34em; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; color: #b8b1a6; text-wrap: balance; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: clamp(22px, 4.5vh, 48px); }
.landing .ctas .button { font-size: 15px; padding: 9px 18px; min-height: 42px; }
/* THE DOOR, as claim's: the student ID box lit in rose, a small mono PIN box, the button, and a mono line under it */
.join { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
/* after .join, whose margin: 0 had been taking the splash's room above the button (it sat on the lede) */
.join-door { margin-top: clamp(24px, 4.5vh, 48px); }
.join label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.landing .join input[type="text"], .landing .join input[type="password"] { height: 44px; margin: 0; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--hair-2); background: rgba(16, 15, 14, 0.85); color: var(--bone); font-size: 16px; }
.join input::placeholder { color: #8f897f; }
.landing .join input:focus { outline: none; border-color: var(--bone-soft); }
.landing .join #student-id { width: 300px; border: 1.5px solid var(--lead); box-shadow: 0 0 0 3px rgba(237, 200, 30, 0.12); }
.landing .join #pin { width: 96px; text-align: center; font-family: var(--mono); letter-spacing: 0.2em; }
.join button { height: 44px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--lead); color: var(--ink);
  font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(237, 200, 30, 0.25); }
.join button:hover { background: #ac930d; }
/* the splash's one way in: the form lives on /login, the one sign-in page (2026-11-21) */
/* .landing .join: the landing's quiet bone .button (below) had been outranking it, so the splash's way in was the one
   CTA in the suite not in its product's lead */
.join .go, .landing .join .go { display: inline-flex; align-items: center; height: 52px; padding: 0 36px; border-radius: 10px; background: var(--lead);
  color: var(--ink); font: 700 18px var(--body); text-decoration: none; border: 0; }
.landing .join .go:hover { background: #f5d84a; }
.join .go:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.join-hint { flex-basis: 100%; margin: 6px 0 0; text-align: center; font: 400 12px/1.4 var(--mono); letter-spacing: 0.04em; color: #8f897f; }
#signin-error:not(:empty) { margin-top: 10px; }


/* ---------------------------------------------------------------- the landing under the splash
   Restraint, like spawn's (wchesher, 2026-11-12, of the first pass: "this is legitimately terrible and nonelegant"):
   no tile-edged boxes here, hairline rules, room, one accent (rose) and quiet bone buttons. The tile belongs to the
   mosaic; the page around it stays out of its way. Everything is scoped to body.landing. */

.landing { --hair: rgba(236, 230, 218, 0.12); --hair-2: rgba(236, 230, 218, 0.22); --quiet: #a39d92; }
/* the landing's ground is quiet: one even dark with a soft light behind the mosaic, so the tile is the only texture */
body.landing { background: #171614; }
body.landing::before { display: none; }
.landing .button { background: var(--bone); color: var(--ink); border: 1px solid var(--bone); border-radius: 8px; font-weight: 600; }
.landing .button:hover { background: #fff; }
.landing .button.quiet { background: transparent; color: var(--bone); border-color: var(--hair-2); }
.landing .button.quiet:hover { border-color: var(--bone-soft); background: transparent; }
.landing .button.big { font-size: 16px; padding: 12px 22px; min-height: 48px; }

.landing main { padding: clamp(40px, 6vw, 80px) 16px; }
#home { max-width: 1100px; margin: 0 auto; }

.band { padding: clamp(56px, 7vw, 104px) clamp(16px, 4vw, 56px); max-width: 1100px; margin: 0 auto; border-top: 1px solid var(--hair); }
.band h2, .band h1 { margin: 0 0 36px; max-width: 16em; font: 700 clamp(28px, 3.2vw, 40px)/1.08 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.eyebrow { margin: 0 0 14px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--quiet); }
.bento { display: grid; gap: 1px; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--hair);
  border: 1px solid var(--hair); border-radius: 14px; overflow: hidden;
  grid-template-areas: "record tagit held held" "call call held held" "wall wall wall wall"; }
.bento .steps { display: contents; }   /* role=list keeps it a list to a screen reader */
.steps > li { list-style: none; }
.cell { position: relative; min-width: 0; padding: 28px 28px 30px; background: #1a1917; }
.steps .record { grid-area: record; --c: var(--lead); }
.steps .tagit { grid-area: tagit; --c: var(--ochre); }
.steps .call { grid-area: call; --c: var(--verdigris); }
.steps .wall { grid-area: wall; --c: var(--lapis); }
.bento .held { grid-area: held; --c: var(--lead); background: #1e1c1a; display: flex; flex-direction: column; justify-content: flex-end; }
.cell .n { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 500 11px var(--mono); letter-spacing: 0.18em;
  color: var(--quiet); }
.cell .n::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.cell h3 { margin: 0 0 8px; font: 700 22px/1.2 var(--display); letter-spacing: -0.015em; }
.cell .say { margin: 0; color: var(--bone-soft); max-width: 32em; text-wrap: pretty; }
.held h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; max-width: 12em; margin-bottom: 14px; }
.held .say { margin-bottom: 20px; }
.kinds { margin: 18px 0 0; font: 12px/1.6 var(--mono); color: var(--quiet); }
.quiet-link { font-size: 14px; color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--hair-2); padding-bottom: 1px; align-self: flex-start; }
.quiet-link:hover { border-color: var(--bone); }
@media (max-width: 860px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "record" "tagit" "held" "call" "wall"; }
  .bento .held { justify-content: flex-start; }
}
.land-foot { border-top: 1px solid var(--hair); }
.land-foot .in { max-width: 1100px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 56px) 36px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 12px 32px; color: var(--quiet); font-size: 14px; }
.land-foot p { margin: 0; }
.land-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* THE RESEARCH, AND HOW IT CONVERGES: eight findings, each a row (the figure, what was found with its source, and the
   decision it set with the step it lands on and whether it is built), then the lines that run from the eight into
   the loop's steps, then what the research does not settle. Hairlines and type only, as the band above; the mosaic
   stays the only tile. */
.research-link .button { margin-top: 8px; }
.research h2, .research h1 { max-width: 20em; margin-bottom: 20px; }
.research-lede { margin: 0 0 48px; max-width: 40em; color: var(--bone-soft); font-size: 18px; text-wrap: pretty; }
.research a { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--hair-2); }
.research a:hover { border-color: var(--bone); }
.findings { margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.finding { list-style: none; display: grid; grid-template-columns: 13rem minmax(0, 1fr) minmax(0, 1fr); gap: 12px 40px;
  padding: 28px 0 30px; border-bottom: 1px solid var(--hair); }
.finding p { margin: 0; }
.finding .figure { font: 700 clamp(24px, 2.4vw, 30px)/1.1 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.finding .k { display: block; margin-bottom: 10px; font: 500 11px var(--mono); letter-spacing: 0.18em; color: var(--quiet); }
.found { color: var(--bone-soft); text-wrap: pretty; }
.found .src { margin-top: 12px; font: 12px/1.6 var(--mono); color: var(--quiet); }
.so { padding-left: 24px; border-left: 2px solid var(--lead); text-wrap: pretty; }
.so .lands { margin-bottom: 8px; font: 700 18px/1.2 var(--display); }
.progress { display: inline-block; margin-top: 14px !important; font: 500 12px/1.5 var(--mono); letter-spacing: 0.02em;
  color: var(--quiet); }
.progress::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%;
  vertical-align: middle; border: 1px solid var(--quiet); }
.progress.built { color: var(--verdigris); }
.progress.built::before { background: var(--verdigris); border-color: var(--verdigris); }
.progress.partly { color: var(--ochre); }
.progress.partly::before { background: linear-gradient(90deg, var(--ochre) 50%, transparent 50%); border-color: var(--ochre); }
@media (max-width: 960px) {
  .finding { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 600px) { .so { padding-left: 16px; } }

nav.links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
nav.links a, nav.links button {
  font: 600 15px var(--body); color: var(--bone); background: rgba(14, 14, 16, 0.7); border: 2px solid rgba(239, 235, 227, 0.4);
  border-radius: 999px; padding: 6px 14px; text-decoration: none; cursor: pointer;
}
nav.links a[aria-current="page"] { border-color: var(--ochre); color: var(--ochre); }

/* ---------------------------------------------------------------- panels on the wall, edged in tile */

main { padding: 8px 0 40px; }

.sheet, .paste {
  position: relative;
  background: var(--panel) padding-box;
  color: var(--bone);
  border: 9px solid transparent;
  border-image: var(--tile-edge) 10 / 9px / 0 round;
  padding: 8px 10px;
  margin: 14px 0;
}
.sheet h1, .sheet h2, .paste h2, .paste h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 8px; font-weight: 700; }
.sheet h1 { font-size: clamp(28px, 4.5vw, 38px); }
.sheet h2 { font-size: 25px; }
.sheet p, .paste p { margin: 0 0 10px; }
.lean-left, .lean-right { transform: none; }

.wall-title {
  font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 12px 0 4px;
  color: var(--bone); text-shadow: 0 1px 2px #000, 0 0 18px rgba(0, 0, 0, 0.85);
}
.on-wall { color: var(--bone); background: rgba(14, 14, 16, 0.7); padding: 10px 14px; border-radius: 6px; }
.on-wall .hint, .on-wall.hint { color: var(--bone-soft); }
.lead { font-family: var(--display); font-size: clamp(20px, 3vw, 26px); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; align-items: start; }
.grid .paste { margin: 4px 0; }
.paste.locked { text-align: center; color: var(--bone-soft); }

/* the mosaic: one cell a shown piece, laid tile by tile. Decoration: the pieces below are the real list. */
.mosaic { height: clamp(240px, 40vw, 440px); margin: 14px 0; cursor: pointer; }
.present .mosaic { height: 72vh; }

.who { font-weight: 700; }
.meta { color: var(--bone-soft); font-size: 14px; }
.state { display: inline-block; font: 700 13px var(--body); border-radius: 999px; padding: 2px 10px; margin: 0 6px 6px 0; }
.state.waiting, .state.processing { background: #fff1c2; color: var(--wait); }
.state.shown { background: #d9f2e4; color: var(--good); }
.state.hidden, .state.failed { background: #fbe0de; color: var(--bad); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; padding: 0; list-style: none; }
.chip {
  font: 600 14px var(--mono); border: 2px solid rgba(239, 235, 227, 0.55); border-radius: 999px; padding: 2px 10px;
  background: transparent; color: var(--bone);
}
button.chip { cursor: pointer; }
button.chip[aria-pressed="true"] { background: var(--ochre); color: var(--ink); border-color: var(--ochre); }
.filters .chip { background: rgba(14, 14, 16, 0.7); }
.filters .chip[aria-pressed="true"] { background: var(--ochre); color: var(--ink); border-color: var(--ochre); }

.media { width: 100%; max-height: 70vh; background: #000; border-radius: 3px; display: block; }
audio.media { background: transparent; }
img.media { object-fit: contain; }

.chapters { list-style: none; margin: 8px 0; padding: 0; }
.chapters li { margin: 4px 0; }
.chapters button { font: 600 14px var(--body); background: none; border: none; color: var(--lapis); cursor: pointer; text-align: left; padding: 2px 0; }
.chapters .time { font-family: var(--mono); color: var(--bone-soft); margin-right: 6px; }

.reactions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.reactions button {
  font: 600 14px var(--body); border: 2px solid rgba(239, 235, 227, 0.55); background: transparent; color: var(--bone);
  border-radius: 6px; padding: 3px 8px; cursor: pointer;
}
.reactions button[aria-pressed="true"] { background: var(--verdigris); color: var(--ink); border-color: var(--verdigris); }

.replies { border-top: 1px dashed rgba(239, 235, 227, 0.4); margin-top: 10px; padding-top: 8px; }
.replies p { margin: 4px 0; }

.answer-of { border-left: 5px solid var(--lead); margin: 10px 0 0; padding: 8px 12px; background: rgba(255, 255, 255, 0.05); }

/* ---------------------------------------------------------------- controls */

button, .button, input, select, textarea { font: inherit; }
.button, button.primary, button.quiet, button.danger {
  display: inline-block; font: 700 16px var(--body); border-radius: 6px; padding: 10px 18px; cursor: pointer;
  border: 2px solid var(--bone); text-decoration: none; min-height: 44px;
}
.button, button.primary { background: var(--ochre); color: var(--ink); border-color: var(--ochre); }
button.quiet, .button.quiet { background: transparent; color: var(--bone); border-color: rgba(239, 235, 227, 0.7); }
button.danger { background: transparent; color: var(--bad-on-dark); border-color: var(--bad-on-dark); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0; }

label { font-weight: 700; display: block; margin: 12px 0 4px; }
label.inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin: 6px 12px 6px 0; }
input[type="text"], input[type="password"], input[type="number"], input[type="url"], input[type="datetime-local"],
select, textarea {
  width: 100%; max-width: 100%; padding: 10px 12px; border: 2px solid var(--bone-soft); border-radius: 6px; background: #f7f4ee;
  color: var(--ink); min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; accent-color: var(--verdigris); }
.hint { font-size: 14px; color: var(--bone-soft); margin: 4px 0 0; }
.count { font: 13px var(--mono); color: var(--bone-soft); text-align: right; }

.notice { border: 2px solid var(--bone); background: #fff8d6; color: var(--ink); padding: 12px 14px; border-radius: 6px; margin: 10px 0; }
.notice.strong { background: var(--ochre); }
.notice a { color: #005f73; }
.error { border-color: var(--bad); background: #fde8e6; color: var(--bad); }
.ok { border-color: var(--good); background: #e2f5ea; color: var(--good); }
[role="status"]:empty, [role="alert"]:empty { display: none; }

.its { border-image: none; border: 3px solid var(--lead); border-radius: 8px; }
.its h2 { color: var(--lead); }

/* the recorder */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.tabs button {
  font: 700 15px var(--body); border: 2px solid rgba(239, 235, 227, 0.7); background: transparent; color: var(--bone);
  border-radius: 6px 6px 0 0; padding: 8px 14px; cursor: pointer; min-height: 44px;
}
.tabs button[aria-selected="true"] { background: var(--ochre); color: var(--ink); border-color: var(--ochre); }
.clock { font: 700 28px var(--mono); }
.rec-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #ff6b8a; margin-right: 6px; vertical-align: middle; }
.preview { width: 100%; max-height: 50vh; background: #000; border-radius: 3px; }
.highlight-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin: 6px 0; }
.highlight-row .time { font: 600 14px var(--mono); }
.pip-body { margin: 0; padding: 10px; font-family: var(--body); background: var(--concrete); color: var(--bone); }
.pip-body .row { margin: 6px 0; }

/* admin */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(239, 235, 227, 0.22); vertical-align: top; }
th { font-family: var(--display); }
.tablewrap { overflow-x: auto; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-nav a {
  font: 700 15px var(--body); color: var(--bone); background: rgba(14, 14, 16, 0.7); padding: 6px 14px; border-radius: 6px;
  text-decoration: none; border: 2px solid transparent;
}
.admin-nav a[aria-current="page"] { border-color: var(--ochre); color: var(--ochre); }

/* THE ADMIN DOOR, quiet like the landing (wchesher, 2026-11-16, of the tile-edged door: "this is legit terrible";
   "elegant and smooth"). One narrow card, hairline edge, rose the one accent, the form dark like the landing's join. */
.door { position: relative; max-width: 420px; margin: clamp(28px, 9vh, 112px) auto 0; padding: 34px 32px 30px;
  background: #1a1917; border: 1px solid rgba(236, 230, 218, 0.12); border-radius: 16px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: door-rise 0.7s cubic-bezier(0.22, 0.8, 0.24, 1) both; }
.door::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lead), rgba(224, 144, 94, 0.7), transparent); }
@keyframes door-rise { from { opacity: 0; transform: translateY(10px); } }
.door .eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 500 11px/1 var(--mono);
  letter-spacing: 0.26em; text-transform: uppercase; color: #8f897f; }
.door .eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--lead)); }
.door h1 { margin: 0 0 6px; font: 700 clamp(25px, 3vw, 30px)/1.12 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.door-lede { margin: 0 0 24px; color: #a39d92; }
.door-setup { margin: 18px 0 24px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(237, 200, 30, 0.28);
  background: linear-gradient(180deg, rgba(237, 200, 30, 0.08), rgba(237, 200, 30, 0.03)); color: var(--bone-soft); font-size: 15px; }
.door-setup p { margin: 0; }
.door-setup .door-setup-head { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; font-weight: 700; color: var(--ochre); }
.door-setup .door-setup-head::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ochre); }
.door-setup code { font: 13px var(--mono); color: var(--bone); background: rgba(0, 0, 0, 0.35); padding: 2px 6px; border-radius: 5px; }
.door label { margin: 0 0 8px; font: 500 13px var(--body); color: #a39d92; }
.door input[type="password"] { height: 48px; margin: 0 0 16px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(236, 230, 218, 0.22);
  background: rgba(16, 15, 14, 0.85); color: var(--bone); font-size: 16px; letter-spacing: 0.08em;
  transition: border-color 0.25s, box-shadow 0.25s; }
.door input[type="password"]:focus { outline: none; border-color: var(--lead); box-shadow: 0 0 0 4px rgba(237, 200, 30, 0.16); }
.door button.primary { width: 100%; height: 48px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--lead); color: var(--ink);
  box-shadow: 0 10px 26px -10px rgba(237, 200, 30, 0.6); transition: background 0.2s, transform 0.25s, box-shadow 0.25s; }
.door button.primary:hover:not(:disabled) { background: #ac930d; transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(237, 200, 30, 0.7); }
.door button.primary:active:not(:disabled) { transform: none; }
.door input:disabled, .door button:disabled { opacity: 0.4; box-shadow: none; }
.door .notice.error { margin: 16px 0 0; border: 1px solid rgba(255, 179, 196, 0.3); border-radius: 10px; background: rgba(237, 200, 30, 0.1);
  color: var(--bad-on-dark); font-size: 15px; }
body.at-admin footer.bottom { padding-top: 28px; }
body.at-admin footer.bottom .wrap { gap: 8px 24px; }
body.at-admin footer.bottom a { background: none; padding: 0 0 1px; border-radius: 0; color: #8f897f; font-size: 14px; text-decoration: none;
  border-bottom: 1px solid rgba(236, 230, 218, 0.18); transition: color 0.2s, border-color 0.2s; }
body.at-admin footer.bottom a:hover { color: var(--bone); border-color: var(--bone-soft); }
@media (max-width: 600px) { .door { padding: 28px 20px 24px; margin-top: 20px; } }
@media (prefers-reduced-motion: reduce) { .door { animation: none; } .door * { transition: none !important; } }

/* the projector */
.present .grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.present .paste { font-size: 20px; }
.spotlight { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 5; }
.spotlight .paste { max-width: 1100px; width: 100%; max-height: 92vh; overflow: auto; font-size: 22px; background-color: rgba(14, 14, 16, 0.97); }

footer.bottom { padding: 20px 0 30px; }
footer.bottom .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
footer.bottom a { color: var(--bone); background: rgba(14, 14, 16, 0.7); padding: 4px 10px; border-radius: 4px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .sheet, .paste { padding: 6px; }
  /* the phone's header: the motto on one line and Sign in beside it; "What tag keeps" stays in the closing row */
  .motto { letter-spacing: 0.2em; gap: 10px; }
  .motto::before { width: 18px; }
  .land-nav a:not(.topnav-in) { display: none; }
  .landing .join #student-id { width: 100%; }
  .landing .join #pin { flex: 1; }
}

@media print {
  html, body { background: #fff; color: #000; }
  body::before { display: none; }
  .sheet, .paste { border: 1px solid #000; border-image: none; background: #fff; color: #000; }
  header.top, footer.bottom, .tile-board, .tile-mark, .mosaic, .mosaic-hero, .land-head, .ctas, .land-foot { display: none; }
}

/* the layers: the rift's line, a place, the reel's caption, a piece a walk link found */
.rift-line {
  position: relative; height: 56px; margin: 18px 8px 8px; border-bottom: 4px solid var(--bone);
  background: linear-gradient(90deg, rgba(248, 225, 158, 0.16), rgba(169, 210, 236, 0.16));
}
.rift-line .pole { position: absolute; bottom: -34px; font: 700 14px var(--mono); }
.rift-line .pole.left { left: 0; }
.rift-line .pole.right { right: 0; }
.rift-mark {
  position: absolute; bottom: -12px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: var(--ochre); border: 3px solid var(--concrete);
}
.rift-list { margin: 40px 0 0; }
.chip.place { border-style: dashed; }
.filters .label { color: var(--bone); font-weight: 700; align-self: center; text-shadow: 0 1px 2px #000; }
.place-heading { grid-column: 1 / -1; font-size: clamp(24px, 3.5vw, 36px); }
.reel-caption { min-height: 1.5em; font-weight: 600; margin: 8px 0; }
.paste.found { outline: 4px solid var(--ochre); outline-offset: 4px; }
.nudges button { border-style: dashed; }
input[type="range"] { width: 100%; accent-color: var(--verdigris); min-height: 44px; }

/* the walk: the codes, black on white, one per card, a card never split across two printed pages */
.walk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.walk-card { text-align: center; background: #fff padding-box; color: var(--ink); }
.walk-card a { color: #005f73; }
.walk-card svg.qr { width: 100%; max-width: 240px; height: auto; display: block; margin: 0 auto 10px; }
.walk-card .link { word-break: break-all; font-family: var(--mono); font-size: 12px; }

@media print {
  .no-print, .skip, #status { display: none !important; }
  .walk .wall-title { color: #000; text-shadow: none; }
  .walk .on-wall { background: none; color: #000; text-shadow: none; }
  .walk-grid { grid-template-columns: repeat(2, 1fr); }
  .walk-card { break-inside: avoid; page-break-inside: avoid; }
}

/* the oral defense: an "I don't know" on My pieces, and what the student found */
.gap { border-top: 1px solid var(--ink-soft); margin: 10px 0 0; padding: 8px 0 0; }
.gap textarea { width: 100%; }

/* "You're it" on an explain wall: one question at a moment, and its answer */
.questions { border-top: 1px solid var(--ink-soft); margin: 10px 0 0; padding: 8px 0 0; }
.questions .answer-line { margin-left: 16px; }
.questions .spoken audio, .answer-form audio { display: block; width: 100%; max-width: 420px; margin: 6px 0; }
.answer-form .row { align-items: center; }
.questions form.ask input[type=text] { width: 100%; }

/* the teacher's review: the oral defense in 90 seconds, each moment a button that plays from there */
.review-box { border-top: 1px solid var(--ink-soft); margin: 10px 0; padding: 8px 0 0; }
.review { margin: 6px 0; padding-left: 20px; }
.review li { margin: 4px 0; }
.review li.strong { color: var(--ochre); font-weight: 600; }

/* the admin storage meter (admin.js storage) */
#storage meter { display: block; width: 100%; height: 1rem; }

/* "Bring it": where the piece's work lives */
.made { margin: 4px 0; font-size: 14px; }
.made a { color: inherit; display: inline-block; min-height: 24px; padding: 3px 0; }   /* a 24-pixel target (WCAG 2.5.8) */

/* one "more", collapsed: what a step can do but does not need (the explain wall's tag suggestion) */
details.more { margin: 12px 0; }
details.more > summary { cursor: pointer; font-weight: 700; min-height: 32px; padding: 6px 0; color: var(--bone-soft); }
details.more > summary:hover, details.more[open] > summary { color: var(--bone); }

/* the research page: the suite's research block (sfhsbta/research/research.css) takes tag's own type */
.research-page { --disp: var(--display); display: block; padding: 0 clamp(12px, 3vw, 32px); }
.research-page .rs { max-width: 1240px; margin: 8px auto 0; }
