/* Sticky Board — shared styles for the wall (tv.html), the phone (mobile.html), the manage page,
   the join page and the static pages. Floor: Chromium 49 (Fire TV Silk, older smart TVs):
   margins instead of flex gap, a plain fallback before every clamp(), no position: sticky. */
/* Atkinson Hyperlegible (OFL), self-hosted so the wall's font survives the page's own-origin security policy. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-400.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-hyperlegible-700.woff2) format("woff2"); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  --bg: #eceeef;
  --ink: #15171a;
  --muted: #5d636b;
  --line: #d5d9dd;
  --panel: #ffffff;
  --card: #ffffff;
  --card-ink: #1f1e1b;
  --card-muted: #6b665c;
  --card-shadow: 0 1px 2px rgba(20, 16, 8, 0.1);
  --head-bg: #15171a;
  --head-ink: #ffffff;
  --head-muted: #9aa0a6;
  --chip: #e9e6df;
  --amber: #9a5300;
  --red: #b3261e;
  --green: #3e7c4f;
  --c-held: #e6e3dc;
  --accent: #1f1e1b;
  --accent-ink: #f3f1ec;
  --wall: #d6d7d2;
  --frame: #c3c4bf;
  --frame-edge: #b0b1ab;
  --rule: #2a2a2a;
  --rule-dash: #b9bab4;
  --now-bg: #fff4f2;
}
:root[data-theme="dark"] {
  --bg: #141618;
  --ink: #f1f2f3;
  --muted: #a3a8ae;
  --line: #2d3136;
  --panel: #1f2226;
  --card: #f6f4ee;
  --card-ink: #1f1e1b;
  --card-muted: #6b665c;
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  --head-bg: #0c0d0f;
  --head-ink: #f1f2f3;
  --head-muted: #8e949b;
  --chip: #e9e6df;
  --amber: #f5b73b;
  --red: #ef5350;
  --green: #8fd19e;
  --c-held: #3a3833;
  --accent: #f0a030;
  --accent-ink: #1f1e1b;
  --wall: #0f1012;
  --frame: #2d3135;
  --frame-edge: #3a3f45;
  --rule: #4a4f55;
  --rule-dash: #4a4f55;
  --now-bg: #2a1517;
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #f4f1e8;
  background: var(--bg);
  color: #2b2620;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  line-height: 1.35;
}
a { color: inherit; }
button { font: inherit; }
.product { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: #7a7263; color: var(--muted); }

/* ---------- note card (shared): a light card with a solid color edge for its column ---------- */
.note {
  background: #ffffff;
  background: var(--card);
  color: #1f1e1b;
  color: var(--card-ink);
  border-radius: 2px;
  padding: 12px 14px 10px;
  box-shadow: 0 1px 2px rgba(20, 16, 8, 0.1);
  box-shadow: var(--card-shadow);
  font-size: 1.1rem;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: relative;
  touch-action: manipulation;
  border-left: 8px solid #8f8678;
}
.note .note-top { margin-bottom: 4px; }
.note .note-top .chip + .chip { margin-left: 6px; }
.chip {
  display: inline-block;
  font-size: 0.72em;
  line-height: 1.2;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(43, 38, 32, 0.08);
  color: #2b2620;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
  white-space: nowrap;
}
.chip.seq { font-variant-numeric: tabular-nums; background: transparent; padding-left: 0; font-weight: 800; font-size: 0.95em; letter-spacing: 0; }
.chip.pin { background: #2b2620; color: #f9de7b; }
.chip.label { background: rgba(43, 38, 32, 0.85); color: #fff; }
.chip.label-group { background: #3e5f7c; }
.chip.label-asset { background: #5c4b7c; }
.chip.due { background: rgba(43, 38, 32, 0.12); }
.chip.due.today { background: #b26a00; color: #fff; }
.chip.due.overdue { background: #a8452f; color: #fff; }
.chip.file { text-decoration: none; }
.chip.about { background: transparent; border: 2px solid #5c4b7c; color: #5c4b7c; padding-top: 1px; padding-bottom: 1px; }
.note .note-text { white-space: pre-wrap; }
.note .note-link { color: #1d4f7a; text-decoration: underline; }
.note .note-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.note .age { font-size: 0.72em; color: #6b665c; color: var(--card-muted); font-variant-numeric: tabular-nums; }
.note .held-tag { font-size: 0.68em; letter-spacing: 0.08em; text-transform: uppercase; color: #8a7f68; margin-left: 8px; }
.note.age-amber .age { color: #b26a00; font-weight: 700; }
.note.age-amber { box-shadow: inset 0 -4px 0 #b26a00, 0 1px 3px rgba(20, 16, 8, 0.14); }
.note.age-red .age { color: #a8452f; font-weight: 700; }
.note.age-red { box-shadow: inset 0 -4px 0 #a8452f, 0 1px 3px rgba(20, 16, 8, 0.14); }
.note .bar {
  display: flex; align-items: center; justify-content: space-between;
  margin: -12px -14px 8px; padding: 6px 14px;
  border-radius: 3px 3px 0 0;
  font-size: 0.74em; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: #2b2620; color: #ffffff;
}
.note .bar.bar-group { background: #3e5f7c; }
.note .bar.bar-asset { background: #5c4b7c; }
.note .bar.bar-today { background: #b26a00; }
.note .bar.bar-urgent, .note .bar.bar-overdue { background: #a8452f; }
.note .bar .bar-who { margin-left: auto; }
.note.urgent { box-shadow: 0 0 0 3px #a8452f, 0 1px 3px rgba(20, 16, 8, 0.14); }
.note.urgent .bar { margin: -12px -14px 8px; }
.note.urgent.age-amber, .note.urgent.age-red { box-shadow: 0 0 0 3px #a8452f, 0 1px 3px rgba(20, 16, 8, 0.14); }
.note.done { opacity: 0.55; }
.note.done .note-text { text-decoration: line-through; }
.note.held, .note.pending { background: #e6e3dc; border: 1px dashed #a89f8c; border-left-width: 8px; }
.note.miss .note-text::before { content: "did not match a note: "; font-size: 0.72em; letter-spacing: 0.06em; text-transform: uppercase; color: #8a7f68; display: block; }
.note.new { animation: pop-in 10s ease-out 1; }
@keyframes pop-in {
  0% { box-shadow: 0 0 0 4px #2b2620, 0 2px 6px rgba(50, 40, 10, 0.18); }
  70% { box-shadow: 0 0 0 4px #2b2620, 0 2px 6px rgba(50, 40, 10, 0.18); }
  100% { box-shadow: 0 2px 6px rgba(50, 40, 10, 0.18); }
}
.thumbs { margin-top: 8px; }
.thumbs a + a { margin-left: 6px; }
.thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; vertical-align: top; background: rgba(0,0,0,0.05); }

/* ---------- wall: the whiteboard, typed (TV, computer window, tablet landscape) ----------
   A framed board. A red NOW strip across the top holds urgent, overdue and due-today cards; below it
   every list has its own ruled column, in the manage-page order, with numbered entries. Everything
   scales from the body font size (1.5vw). Chromium 49: flex, no grid, margins instead of gap. */
body[data-mode="tv"] {
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0.7vw 1vw;
  font-size: 19px;
  font-size: 1.5vw;
  font-family: "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  background: #d6d7d2;
  background: var(--wall);
}
body[data-mode="tv"].dense { font-size: 17px; font-size: 1.3vw; }
body[data-mode="tv"].denser { font-size: 15px; font-size: 1.15vw; }
.tv-frame {
  flex: 1; display: flex; flex-direction: column; min-height: 0;
  background: #ffffff;
  background: var(--panel);
  border: 0.55vw solid #c3c4bf;
  border-color: var(--frame);
  border-bottom-width: 1vw;
  box-shadow: inset 0 0 0 1px #b0b1ab, 0 0.4vw 1vw rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px var(--frame-edge), 0 0.4vw 1vw rgba(0, 0, 0, 0.22);
}
.tv-header { display: flex; align-items: center; padding: 0.55em 1.1em 0.15em; flex-shrink: 0; color: #15171a; color: var(--ink); }
.tv-header > * + * { margin-left: 1.1em; }
.tv-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-title h1 {
  display: inline-block; margin: 0; vertical-align: middle;
  background: #141414; background: var(--ink); color: #ffffff; color: var(--panel);
  font-size: 1em; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.25em 0.75em; border-radius: 0.1em;
}
.tv-header .product { font-size: 0.6em; letter-spacing: 0.22em; color: #5d636b; color: var(--muted); margin-left: 0.9em; vertical-align: middle; }
.tv-number { font-size: 1.3em; color: #5d636b; color: var(--muted); white-space: nowrap; font-size-adjust: none; }
.tv-number b { color: #15171a; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700; }
.tv-qr { width: 2.7em; height: 2.7em; background: #fff; padding: 0.1em; border: 1px solid #d5d9dd; border-color: var(--line); }
.tv-clock { text-align: right; white-space: nowrap; }
.tv-clock .clock { display: block; font-size: 1.3em; font-variant-numeric: tabular-nums; font-weight: 700; }
.tv-clock .status { display: block; font-size: 0.55em; letter-spacing: 0.08em; color: #5d636b; color: var(--muted); }
.tv-clock .offline-since { display: block; font-size: 0.6em; color: #b3261e; color: var(--red); font-weight: 700; }
.tv-board { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0.35em 1.1em 0; }
.now { flex-shrink: 0; border: 3px solid #c8102e; border-color: var(--red); background: #fff4f2; background: var(--now-bg); margin-bottom: 0.55em; }
.now-h { display: flex; background: #c8102e; background: var(--red); color: #fff; font-size: 0.62em; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; padding: 0.3em 1.3em; }
.now-h .n { margin-left: auto; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.now-row { display: flex; align-items: center; padding: 0.28em 0.9em; font-size: 1.25em; font-weight: 700; color: #c8102e; color: var(--red); border-top: 1px solid rgba(200, 16, 46, 0.2); }
.now-h + .now-row { border-top: 0; }
.now-row .seq {
  flex-shrink: 0; width: 1.5em; height: 1.5em; border-radius: 50%; margin-right: 0.6em;
  background: #c8102e; background: var(--red); color: #fff; font-size: 0.68em; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.now-row .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-row .meta { display: flex; align-items: center; margin-left: 1em; white-space: nowrap; font-size: 0.52em; letter-spacing: 0.1em; text-transform: uppercase; color: #5d636b; color: var(--muted); font-weight: 700; }
.now-row .meta > * + * { margin-left: 1.1em; }
.now-row.today { color: #9a5300; color: var(--amber); }
.now-row.today .seq { background: #9a5300; background: var(--amber); }
.flag { color: #c8102e; color: var(--red); }
.today .flag { color: #9a5300; color: var(--amber); }
.tv-cols { flex: 1; display: flex; min-height: 0; }
.col { flex: 1; min-width: 0; overflow: hidden; padding: 0 0.7em; border-left: 2px solid #2a2a2a; border-left-color: var(--rule); }
.col:first-child { border-left: 0; padding-left: 0; }
.col:last-child { padding-right: 0; }
.col-h { display: flex; align-items: baseline; font-size: 0.92em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 0.2em solid currentColor; padding-bottom: 0.12em; margin-bottom: 0.6em; white-space: nowrap; overflow: hidden; }
.col-h .col-name { overflow: hidden; text-overflow: ellipsis; }
.col-h .n { margin-left: auto; padding-left: 0.5em; color: #5d636b; color: var(--muted); font-weight: 400; font-size: 0.85em; }
.item { display: flex; align-items: flex-start; margin-bottom: 0.65em; }
.item .seq {
  flex-shrink: 0; width: 1.55em; height: 1.55em; border-radius: 50%; margin: 0.12em 0.5em 0 0;
  background: #8f8678; color: #fff; font-size: 0.7em; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.item .body { flex: 1; min-width: 0; }
.item .txt { font-size: 1.05em; line-height: 1.2; word-wrap: break-word; overflow-wrap: break-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.item .meta { margin-top: 0.15em; display: flex; flex-wrap: wrap; align-items: center; font-size: 0.6em; letter-spacing: 0.1em; text-transform: uppercase; color: #5d636b; color: var(--muted); }
.item .meta > * { margin: 0.15em 0.7em 0.15em 0; }
.pill.who { background: #15171a; background: var(--ink); color: #ffffff; color: var(--panel); font-weight: 800; padding: 0.1em 0.55em; border-radius: 0.15em; font-size: 1.1em; }
.pill.who-group { background: #3e5f7c; color: #fff; }
.pill.who-asset { background: #5c4b7c; color: #fff; }
.pill.about { border: 2px solid #5c4b7c; color: #5c4b7c; padding: 0.02em 0.45em; border-radius: 0.15em; font-weight: 700; font-size: 1.05em; }
:root[data-theme="dark"] .pill.about { border-color: #a797d8; color: #c3b6ea; }
.item .due { color: #15171a; color: var(--ink); font-weight: 700; }
.item .age { font-variant-numeric: tabular-nums; }
.item.age-amber .age { color: #9a5300; color: var(--amber); font-weight: 800; }
.item.age-red .age { color: #b3261e; color: var(--red); font-weight: 800; }
.item .photo { border: 1px solid currentColor; padding: 0 0.4em; border-radius: 0.2em; }
.item.new .txt { text-decoration: underline; text-decoration-color: rgba(0, 0, 0, 0.25); }
.more-row { font-size: 0.6em; letter-spacing: 0.08em; text-transform: uppercase; color: #5d636b; color: var(--muted); }
.cleared-strip {
  flex-shrink: 0;
  margin-top: 0.3em;
  padding: 0.45em 0 0.4em;
  border-top: 2px dashed #b9bab4;
  border-top-color: var(--rule-dash);
  white-space: nowrap;
  overflow: hidden;
  font-size: 0.62em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5d636b;
  color: var(--muted);
}
.cleared-strip .cleared-item { text-transform: none; letter-spacing: 0; font-size: 1.3em; margin-left: 1.8em; }
.cleared-strip .cleared-item .chip { font-size: 0.75em; color: inherit; padding: 0; background: transparent; }
.cleared-strip .cleared-text { text-decoration: line-through; margin-left: 0.35em; }
body[data-mode="tv"] .empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #5d636b; color: var(--muted); }
body[data-mode="tv"] .empty-title { font-size: 2em; font-weight: 700; color: #15171a; color: var(--ink); }
body[data-mode="tv"] .empty-number { font-size: 1.1em; margin-top: 0.3em; }
body[data-mode="tv"] .empty-qr { width: 6em; margin-top: 0.8em; background: #fff; padding: 0.3em; border-radius: 0.2em; }
body.offline .tv-frame { -webkit-filter: grayscale(0.85) opacity(0.6); filter: grayscale(0.85) opacity(0.6); }

/* ---------- phone ---------- */
body[data-mode="mobile"] { padding: 12px 14px 150px; max-width: 600px; margin: 0 auto; }
.m-header { padding: 2px 2px 8px; }
.m-title h1 { margin: 0; font-size: 1.35rem; display: inline; }
.m-title .product { display: block; }
.m-number { display: block; font-size: 0.95rem; color: #7a7263; color: var(--muted); margin-top: 2px; }
.m-number b { color: #2b2620; color: var(--ink); font-variant-numeric: tabular-nums; }
.m-tools { display: flex; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.m-tools > * + * { margin-left: 10px; }
.m-tools .status { font-size: 0.75rem; color: #7a7263; color: var(--muted); margin-left: auto; }
.m-tools .status.error { color: #a8452f; }
.tool {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #ddd6c6;
  border-color: var(--line);
  background: #ffffff;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.tool[aria-pressed="true"] { background: #1f1e1b; background: var(--accent); color: #f3f1ec; color: var(--accent-ink); }
.m-section-title {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a7263;
  color: var(--muted);
  margin: 18px 2px 8px;
  display: flex;
  justify-content: space-between;
}
.m-section-title.urgent { color: #a8452f; }
.m-list .note + .note { margin-top: 6px; }
body[data-mode="mobile"] .note { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.note .more {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 6px;
  color: rgba(43, 38, 32, 0.6);
  cursor: pointer;
  touch-action: manipulation;
}
.note .undo-btn, .note .menu button {
  border: 1px solid rgba(43, 38, 32, 0.25);
  background: rgba(255, 255, 255, 0.85);
  color: #2b2620;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  touch-action: manipulation;
}
.note .menu { margin-top: 8px; }
.note .menu-row { display: flex; flex-wrap: wrap; }
.note .menu-row button { margin: 0 8px 8px 0; }
.note .menu button.quiet { opacity: 0.8; }
.note .menu button.label-group { background: #3e5f7c; color: #fff; border-color: transparent; }
.note .menu button.label-asset { background: #5c4b7c; color: #fff; border-color: transparent; }
.note .menu button.label-person { background: #2b2620; color: #fff; border-color: transparent; }
.note .confirm {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(43, 38, 32, 0.92); color: #fff; border-radius: 4px; font-weight: 600; z-index: 2;
}
.note .confirm button { font: inherit; border: 0; border-radius: 8px; padding: 10px 20px; cursor: pointer; touch-action: manipulation; min-width: 44px; min-height: 44px; }
.note .confirm button + button { margin-left: 12px; }
.note .confirm .yes { background: #3e7c4f; color: #fff; }
.note .confirm .no { background: transparent; color: #cfc8b8; }

.composer {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex;
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(236, 235, 230, 0.97);
  border-top: 1px solid #cfcbc2;
  max-width: 600px;
  margin: 0 auto;
}
:root[data-theme="dark"] .composer { background: rgba(31, 30, 27, 0.97); border-top-color: rgba(255,255,255,0.14); }
.composer input { flex: 1; font: inherit; font-size: 1rem; padding: 12px; border: 1px solid #cfc8b6; border-radius: 10px; background: #fff; color: #2b2620; min-height: 44px; }
.composer button { font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 10px 18px; margin-left: 8px; background: #2b2620; background: var(--accent); color: #f4f1e8; color: var(--accent-ink); cursor: pointer; touch-action: manipulation; min-width: 44px; }
.composer button[disabled] { opacity: 0.5; }
.howto { font-size: 0.82rem; color: #7a7263; color: var(--muted); margin: 26px 2px 0; line-height: 1.5; }
.howto b { color: #2b2620; color: var(--ink); font-weight: 600; }

.toast {
  position: fixed; bottom: 76px; bottom: calc(76px + env(safe-area-inset-bottom)); left: 50%;
  transform: translateX(-50%);
  background: #2b2620; color: #f4f1e8; padding: 12px 18px; border-radius: 999px;
  display: flex; align-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  font-size: 0.95rem; z-index: 10; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis;
}
.toast button { font: inherit; font-weight: 700; background: none; border: 0; color: #f9de7b; cursor: pointer; padding: 6px 0 6px 14px; touch-action: manipulation; }

.empty { text-align: center; color: #7a7263; color: var(--muted); padding: 40px 12px; font-size: 1rem; }
.empty .empty-title { font-size: 1.3rem; font-weight: 700; color: #2b2620; color: var(--ink); margin-bottom: 6px; }
.error-banner { background: #a8452f; color: #fff; padding: 10px 14px; font-size: 0.9rem; text-align: center; }

/* ---------- manage, join and static pages ---------- */
body[data-mode="page"] { padding: 18px 16px 60px; max-width: 760px; margin: 0 auto; }
body[data-mode="page"] h1 { font-size: 1.6rem; margin: 6px 0 4px; }
body[data-mode="page"] h2 { font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; color: #7a7263; color: var(--muted); margin: 0 0 12px; }
body[data-mode="page"] h3 { font-size: 1rem; margin: 18px 0 6px; }
body[data-mode="page"] p, body[data-mode="page"] li { font-size: 1rem; line-height: 1.55; }
.card { background: #ffffff; background: var(--panel); border: 1px solid #ddd6c6; border-color: var(--line); border-radius: 12px; padding: 16px; margin: 14px 0; }
.card .hint { font-size: 0.85rem; color: #7a7263; color: var(--muted); margin: 6px 0 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; }
.row > * { margin: 0 8px 8px 0; }
.big-number { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 0.95rem;
  border: 1px solid #2b2620; border-color: var(--accent); background: #2b2620; background: var(--accent); color: #f4f1e8; color: var(--accent-ink);
  border-radius: 10px; padding: 10px 16px; cursor: pointer; text-decoration: none; min-height: 44px; touch-action: manipulation;
}
.btn.secondary { background: transparent; color: inherit; border-color: #ddd6c6; border-color: var(--line); }
.btn.danger { background: #a8452f; border-color: #a8452f; color: #fff; }
.btn.small { padding: 6px 10px; font-size: 0.85rem; min-height: 36px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
label.field { display: block; font-size: 0.85rem; color: #7a7263; color: var(--muted); margin: 10px 0 4px; }
input[type="text"], input[type="tel"], input[type="number"], select, textarea {
  font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #cfc8b6; border-radius: 10px; background: #fff; color: #2b2620; width: 100%; min-height: 44px;
}
input[type="color"] { width: 44px; height: 44px; padding: 2px; border: 1px solid #cfc8b6; border-radius: 8px; background: #fff; }
input[type="checkbox"] { width: 22px; height: 22px; vertical-align: middle; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 0; border-top: 1px solid #ddd6c6; border-top-color: var(--line); }
.list li:first-child { border-top: 0; }
.muted { color: #7a7263; color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; word-break: break-all; }
.qr-box { width: 180px; height: 180px; background: #fff; padding: 8px; border-radius: 8px; }
.qr-box img, .qr-box svg { width: 100%; height: 100%; }
.stat-grid { display: flex; flex-wrap: wrap; }
.stat { flex: 1 1 120px; margin: 0 10px 10px 0; padding: 10px 12px; border-radius: 10px; background: rgba(43, 38, 32, 0.05); }
:root[data-theme="dark"] .stat { background: rgba(255,255,255,0.08); }
.stat b { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.78rem; color: #7a7263; color: var(--muted); }
.ok { color: #3e7c4f; } .warn { color: #b26a00; } .bad { color: #a8452f; }
.col-editor .col-row { border-top: 1px solid #ddd6c6; border-top-color: var(--line); padding: 10px 0; }
.col-editor .col-row:first-child { border-top: 0; }
.col-editor .grid { display: flex; flex-wrap: wrap; align-items: flex-end; }
.col-editor .grid > div { margin: 0 8px 8px 0; }
.col-editor .grid .w-label { flex: 1 1 140px; }
.col-editor .grid .w-words { flex: 2 1 220px; }
.nav { font-size: 0.9rem; margin-bottom: 10px; }
.nav a + a { margin-left: 14px; }
footer.site { margin-top: 36px; font-size: 0.85rem; color: #7a7263; color: var(--muted); }
footer.site a + a { margin-left: 12px; }
footer.site span { display: block; margin-top: 10px; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; padding-left: 44px; margin: 12px 0; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #e8731a; color: #ffffff; font-weight: 800; text-align: center; line-height: 30px; }
.demo-note { display: inline-block; background: #ffffff; color: #1f1e1b; padding: 10px 14px; border-radius: 3px; border-left: 6px solid #e8731a; box-shadow: 0 1px 3px rgba(20,16,8,0.14); margin: 6px 8px 6px 0; font-size: 1rem; }
.demo-note + .demo-note { border-left-color: #3f6f9f; }
.demo-note + .demo-note + .demo-note { border-left-color: #6d5c8a; }

@media (max-width: 760px) {
  body[data-mode="tv"] { font-size: 14px; padding: 6px; }
  .tv-qr { display: none; }
  .tv-cols { display: block; overflow: auto; }
  .col { border-left: 0; padding: 0; margin-bottom: 1em; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media print {
  .composer, .toast, .m-tools, .btn { display: none !important; }
}
