/* wheel.css: staging styles for the wheel view. The section shell supplies tokens and the page frame. */
.wv-notes { min-height: 1.5em; margin: 6px 0; color: #5a3b00; }
.wv-stage { display: flex; justify-content: center; margin: 16px 0 12px; }
.wv-wheel { position: relative; max-width: 100%; border-radius: 50%; cursor: pointer; line-height: 0; }
.wv-wheel:focus-visible { outline: 3px solid var(--acc,#1b4fd8); outline-offset: 3px; }
.wv-wheel canvas { max-width: 100%; display: block; }
.wv-fx { position: absolute; left: 0; top: 0; pointer-events: none; }
/* t70: a phone on its side: the wheel scales to the screen height, so Spin stays on the screen */
@media (max-height: 520px) and (orientation: landscape) { .wv-wheel { width: min(100%, 50vh); } .wv-wheel canvas { width: 100% !important; height: auto !important; aspect-ratio: 1; } .wv-root textarea { height: 4rem; min-height: 0; } .wv-stage { margin: 8px 0; } }
.wv-pointer { position: absolute; left: 50%; top: -16px; transform: translateX(-50%); width: 0; height: 0; /* the tip only just enters the wheel, so it never covers a label */
  border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 24px solid var(--tx, #111); }
.wv-wheel[aria-disabled="true"] { cursor: default; }
textarea { width: 100%; box-sizing: border-box; font: inherit; }
.wv-spin, .wv-panel button { min-height: 48px; min-width: 48px; padding: 0 20px; font: inherit; }
.wv-live { min-height: 2em; font-weight: 600; margin: 8px 0; overflow-wrap: anywhere; }
.wv-panel { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.wv-panel[hidden] { display: none; }
.wv-settings { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 12px 0; }
.wv-settings input[type=number] { width: 4em; min-height: 36px; }
.wv-results { overflow-wrap: anywhere; padding-left: 1.5em; }
@media (prefers-reduced-motion: reduce) { .wv-wheel { scroll-behavior: auto; } }

/* B11: sharing, saves, settings (staging styles; the section shell supplies tokens) */
.sh-bar { margin: 8px 0; padding: 10px 12px; border: 2px solid var(--acc,#1b4fd8); border-radius: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.sh-bar[role="alert"] { border-color: #b42318; }
.sh-bar button, .sh-btn, .sh-export, .sv-save, .sv-open, .sv-rename, .sv-dup, .sv-del, .sv-export, .se-clear, .fr-run, .wp-present, .wp-exit { min-height: 44px; min-width: 44px; padding: 0 16px; font: inherit; }
.sh-note, .sv-msg, .se-msg { min-height: 1.5em; margin: 6px 0; overflow-wrap: anywhere; }
.sh-url { width: 100%; box-sizing: border-box; min-height: 44px; font: inherit; }
.sh-url[hidden], .sh-export[hidden] { display: none; }
.sv-wrap, .se-wrap { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.sv-wrap input[type=text], .sv-wrap select { min-height: 44px; font: inherit; max-width: 100%; }
.fr-run { margin-left: 8px; }
.fr-chart { width: 100%; height: 160px; display: block; margin: 12px 0; background: var(--pn2, #f4f6fb); border-radius: 6px; }
.fr-chart[hidden] { display: none; }
.fr-text, .fr-detail { max-width: 60ch; }
html[data-shared-view] .adslot, html[data-shared-view] [data-adslot], html[data-shared-view] ins.adsbygoogle { display: none !important; }

/* B12/B11 presentation: only the wheel, the pointer, the winner big. No editing UI, no ad element (present.js detaches them). */
.wv-root.tm-present { background: #fff; color: #111; padding: 12px; overflow: auto; display: flex; flex-direction: column; align-items: center; min-height: 100vh; box-sizing: border-box; }
html[data-theme="dark"] .wv-root.tm-present { background: #10131a; color: #fff; }
.wv-root.tm-present > label, .wv-root.tm-present > textarea, .wv-root.tm-present > .wv-notes, .wv-root.tm-present > .wv-settings, .wv-root.tm-present > .wv-panel { display: none; }
.wv-root.tm-present .wv-live { font-size: clamp(28px, 7vw, 64px); text-align: center; }
.wv-root.tm-present .wv-results { font-size: clamp(16px, 2.4vw, 28px); }
.wv-root:not(.tm-present) .wp-exit { display: none; }
.wv-root.tm-present .wp-exit { position: fixed; top: 8px; right: 8px; z-index: 5; }
.wv-root.tm-present .wp-exit[hidden] { display: none; }

/* B3 preset wheels (preset-view.js): own controls, message with the number-generator link, tally and color legend */
.pv-wrap { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 4px 0 0; }
.pv-check, .pv-num { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.pv-check input { width: 22px; height: 22px; margin: 0; }
.pv-num input { width: 5em; min-height: 44px; font: inherit; box-sizing: border-box; }
.pv-set { border: 1px solid var(--ln, #6b7280); border-radius: 8px; padding: 4px 10px; margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 0 16px; }
.pv-set legend { font-weight: 700; padding: 0 4px; }
.pv-msg:empty { display: none; }
.pv-msg { flex-basis: 100%; min-height: 1.5em; color: #b42318; font-weight: 600; overflow-wrap: anywhere; }
.pv-msg a { color: var(--acc,#1b4fd8); display: inline-block; min-height: 44px; line-height: 44px; }
.pv-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-btns button { min-height: 44px; min-width: 44px; padding: 0 12px; font: inherit; }
.pv-extra { flex-basis: 100%; }
.pv-extra:has(.pv-tally) { flex-basis: auto; }  /* buttons and tally share one row */
.pv-tally { font-weight: 600; margin: 0; }
.pv-legend { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pv-legend li { display: inline-flex; align-items: center; gap: 6px; }
.pv-swatch { width: 20px; height: 20px; border: 1px solid #444; border-radius: 4px; display: inline-block; }
.pv-wrap input:focus-visible, .pv-wrap button:focus-visible, .pv-wrap a:focus-visible, .wv-spin:focus-visible, .wv-root button:focus-visible { outline: 3px solid var(--acc,#1b4fd8); outline-offset: 2px; }
html[data-theme="dark"] .pv-msg { color: #ff8a80; }
html[data-theme="dark"] .pv-msg a { color: #9db8ff; }

/* timer.css: staging styles for the timer views (countdown, classroom, stopwatch). The section shell supplies the page
   frame and tokens; the dark stage and its colors are fixed here so contrast is tested (test/timer-settings.test.js). */
.tm { --tm-accent: #5b8cff; --tm-warn: #ff6b5a; --tm-bg: #10131a; --tm-ink: #ffffff; max-width: 720px; margin: 0 auto; }
.tm button { min-height: 48px; min-width: 48px; padding: 0 18px; font: inherit; cursor: pointer; }
.tm button:focus-visible, .tm input:focus-visible, .tm select:focus-visible { outline: 3px solid var(--acc,#1b4fd8); outline-offset: 2px; }
.tm-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tm-presets button[aria-pressed="true"] { font-weight: 700; outline: 2px solid var(--acc,#1b4fd8); }
.tm-custom { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 8px 0; }
.tm-custom input { width: 4.5em; min-height: 44px; font: inherit; }
.tm-note { min-height: 1.5em; margin: 6px 0; color: #5a3b00; }
.tm-stage { background: var(--tm-bg); color: var(--tm-ink); border-radius: 12px; padding: 16px; text-align: center; margin: 8px 0; }
.tm-time { font: 700 clamp(48px, 18vw, 120px)/1.05 ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tm-status, .tm-message { min-height: 1.5em; font-size: 1.1rem; overflow-wrap: anywhere; }
.tm-message { font-weight: 600; }
.tm-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tm-start { min-width: 120px; font-weight: 700; }
.tm-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tm-settings { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 12px 0; }
.tm-settings input[type=text] { flex: 1 1 14em; min-height: 40px; font: inherit; }
.tm-hint { font-size: .9rem; color: var(--mu, #444); }
.tm[data-state="ended"] .tm-time, .tm.tm-warn .tm-time { color: var(--tm-warn); }
.tm[data-state="ended"] .tm-stage { outline: 4px solid var(--tm-warn); outline-offset: -4px; }
.tm-flash .tm-stage { animation: tm-flash 1s steps(1) infinite; }
@keyframes tm-flash { 50% { background: #2a1a1a; } }

/* classroom: disc and bar */
.tm-classroom .tm-figure { display: none; }
.tm-classroom[data-style="disc"] .tm-disc { display: block; }
.tm-classroom[data-style="bar"] .tm-bar { display: block; }
.tm-classroom[data-style="disc"] .tm-figure, .tm-classroom[data-style="bar"] .tm-figure { display: block; margin: 0 auto 8px; }
.tm-disc { display: none; width: min(34vw, 24vh, 240px); height: auto; margin: 0 auto; }
.tm-disc-bg { fill: #1f2532; stroke: #3a4256; stroke-width: 1; }
.tm-disc-fg { fill: var(--tm-accent); }
.tm.tm-warn .tm-disc-fg, .tm[data-state="ended"] .tm-disc-fg { fill: var(--tm-warn); }
.tm-bar { display: none; height: 28px; background: #1f2532; border-radius: 14px; overflow: hidden; }
.tm-bar-fill { height: 100%; width: 100%; background: var(--tm-accent); }
.tm.tm-warn .tm-bar-fill, .tm[data-state="ended"] .tm-bar-fill { background: var(--tm-warn); }

/* presentation (real full screen, or the in-page view where the Fullscreen API is missing) */
.tm.tm-present { position: fixed; inset: 0; z-index: 2147483000; max-width: none; margin: 0; background: var(--tm-bg); color: var(--tm-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2vh 2vw; box-sizing: border-box; }
.tm.tm-present .tm-chrome { display: none; }
.tm.tm-present .tm-stage { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; background: transparent; padding: 0; }
.tm.tm-present .tm-time { font-size: min(40vh, 24vw); line-height: 1; }
.tm.tm-present[data-style="disc"] .tm-time, .tm.tm-present[data-style="bar"] .tm-time { font-size: min(34vh, 22vw); }
.tm.tm-present .tm-disc { width: auto; height: 34vh; max-width: 60vw; }
.tm.tm-present .tm-bar { width: min(90vw, 1400px); height: 8vh; border-radius: 4vh; }
.tm.tm-present .tm-status, .tm.tm-present .tm-message { font-size: min(5vh, 6vw); }
.tm.tm-present .tm-controls { opacity: .85; justify-content: center; }
html.tm-presenting { overflow: hidden; }
.tm-stopwatch .tm-stage { padding: 20px 8px; }
.tm-laps-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tm-laps-head[hidden], .tm-laps[hidden] { display: none; }
.tm-laps { list-style: none; padding: 0; margin: 0; max-height: 50vh; overflow: auto; font-variant-numeric: tabular-nums; }
.tm-lap-row { display: flex; justify-content: space-between; padding: 6px 4px; border-bottom: 1px solid var(--ln, #d5d9e0); font-family: ui-monospace, Menlo, Consolas, monospace; }
.tm-scratch { display: none; width: 100%; min-height: 6em; }
@media (prefers-reduced-motion: reduce) { .tm-flash .tm-stage { animation: none; background: #2a1a1a; } }

/* pomodoro */
.tm-pomodoro .tm-stage { padding: 16px 8px; }
.tm-phase { font-size: 1.25rem; font-weight: 700; }
.tm-pomodoro[data-phase="short"], .tm-pomodoro[data-phase="long"] { --tm-accent: #3ecf8e; }
.tm-pomodoro[data-phase="short"] .tm-phase, .tm-pomodoro[data-phase="long"] .tm-phase { color: var(--tm-accent); }
.tm-pomodoro[data-phase="focus"] .tm-phase { color: #8fb0ff; }
.tm-next { min-height: 1.5em; opacity: .85; }
.tm-dots { display: flex; gap: 10px; justify-content: center; margin-top: 8px; min-height: 14px; }
.tm-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #8a93a6; box-sizing: border-box; }
.tm-dot-now { border-color: var(--tm-accent); }
.tm-dot-done { background: var(--tm-accent); border-color: var(--tm-accent); }
.tm-today-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.tm-today { margin: 4px 0; }
.tm-settings input[type=number] { width: 4.5em; min-height: 44px; font: inherit; }
.tm-pomodoro .tm-settings { display: block; }
.tm-field { display: flex; align-items: center; gap: 8px 12px; min-height: 44px; margin: 6px 0; }
.tm-field input[type=checkbox] { width: 22px; height: 22px; margin: 0; flex: none; }
.tm-field input[type=range] { flex: 1 1 8em; max-width: 16em; }
.tm-field > label:first-child { flex: 0 1 22em; }
.tm-field > select { min-height: 44px; font: inherit; }
.tm.tm-present.tm-pomodoro .tm-phase { font-size: min(6vh, 7vw); }
.tm.tm-present.tm-pomodoro .tm-dot { width: 3vh; height: 3vh; }
.tm.tm-present.tm-pomodoro .tm-next { font-size: min(4vh, 5vw); }

/* lists.css: staging styles for the name picker, team generator and number generator. Light surface, WCAG AA:
   ink #1d2330 on #fff (15:1), notes #5a3b00 (10:1), errors #b42318 (6.5:1), white on the var(--acc,#1b4fd8) button (6.6:1). */
.lt { max-width: 720px; margin: 0 auto; color: var(--tx, #1d2330); overflow-wrap: anywhere; }
.lt *, .lt *::before { box-sizing: border-box; }
.lt textarea { width: 100%; font: inherit; min-height: 8em; padding: 8px; }
.lt button, .lt input, .lt select { font: inherit; }
.lt button { min-height: 48px; min-width: 48px; padding: 0 18px; cursor: pointer; }
.lt .lt-go { background: var(--acc,#1b4fd8); color: #fff; border: 2px solid var(--acc,#1b4fd8); border-radius: 6px; font-weight: 700; }
.lt :focus-visible { outline: 3px solid var(--acc,#1b4fd8); outline-offset: 2px; }
.lt .lt-go:focus-visible { outline-color: #1d2330; }
.lt-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin: 10px 0; }
.lt-row[hidden], .lt [hidden] { display: none; }
.lt-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lt-field > label { font-weight: 600; }
.lt-row .lt-field input, .lt-row .lt-field select { min-height: 44px; width: 8em; max-width: 100%; padding: 0 8px; }
.lt-row .lt-field select { width: auto; }
.lt-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.lt-check input { width: 22px; height: 22px; margin: 0; }
.lt .lt-hint { margin: 4px 0; color: #3d4452; } /* .lt wins over the shell's ".tslot p" colour, which is light in dark mode and unreadable on this white surface */
.lt .lt-notes { min-height: 1.5em; margin: 6px 0; color: #5a3b00; }
.lt .lt-error { margin: 6px 0; color: #b42318; font-weight: 600; }
.lt-error:empty, .lt-notes:empty { margin: 0; min-height: 0; }
.lt-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lt-result { font-size: 1.25rem; font-weight: 700; padding-left: 1.6em; }
.lt-h { font-size: 1.1rem; margin: 16px 0 4px; }
.lt .lt-history { padding-left: 1.6em; color: #3d4452; }
.lt-scratch { min-height: 5em; }

/* teams */
.lt-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 12px 0; }
.lt-team { border: 1px solid #c5cad3; border-radius: 8px; padding: 10px 12px; background: #f4f6fb; break-inside: avoid; page-break-inside: avoid; }
.lt-team h3 { margin: 0 0 6px; font-size: 1.05rem; }
.lt-team ul { margin: 0; padding-left: 1.2em; }
.lt-leader { font-weight: 700; }
.lt .lt-tag { font-weight: 400; color: #3d4452; }

/* numbers */
.lt-nums { display: block; max-height: 40vh; overflow: auto; font: 600 1.25rem/1.5 ui-monospace, Menlo, Consolas, monospace; margin: 8px 0; }
.lt-big { font: 800 clamp(72px, 30vw, 180px)/1 ui-monospace, Menlo, Consolas, monospace; text-align: center; padding: 16px 0; font-variant-numeric: tabular-nums; }
.lt-pop { animation: lt-pop .35s ease-out; }
@keyframes lt-pop { from { transform: scale(.6); opacity: .2; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lt-pop { animation: none; } }

/* print: only the teams (everything that neither holds nor sits inside the team list is hidden) */
@media print {
  body :not(:has(.lt-teams)):not(.lt-teams):not(.lt-teams *) { display: none !important; }
  body, body :has(.lt-teams) { margin: 0 !important; padding: 0 !important; border: 0 !important; background: #fff !important; }
  .lt-team { background: #fff; border-color: #000; color: #000; }
}

/* dicecoin.css: staging styles for the dice roller and the coin flip (B6, B7). The section shell supplies tokens and the page frame. */
.dv, .cv { max-width: 720px; overflow-wrap: anywhere; }
.dv button, .cv button { min-height: 48px; min-width: 48px; padding: 0 16px; font: inherit; cursor: pointer; }
.dv button:focus-visible, .cv button:focus-visible, .dv input:focus-visible, .cv input:focus-visible { outline: 3px solid var(--acc,#1b4fd8); outline-offset: 2px; }
.dv input[type=number], .cv input[type=number] { width: 5em; min-height: 44px; font: inherit; box-sizing: border-box; }
.cv input[type=text] { min-height: 44px; font: inherit; width: 14em; max-width: 100%; box-sizing: border-box; }
.dv-note, .cv-note, .cv-lnote { min-height: 1.5em; margin: 6px 0; color: #5a3b00; }
.cv-lnote { color: #b42318; font-weight: 600; }

/* dice */
.dv-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.dv-kinds button[aria-pressed="true"] { font-weight: 700; background: var(--acc,#1b4fd8); color: #fff; border: 2px solid #0f2f8a; }
.dv-mode { border: 2px solid #1d2330; border-radius: 10px; margin: 8px 0; padding: 8px 10px 4px; min-width: 0; }
.dv-mode[hidden] { display: none; }
.dv-mode legend { font-weight: 700; padding: 0 4px; }
.dv-d20 .dv-mode legend { font-size: 1.15rem; }
.dv-seg { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px 0 8px; margin: 0 6px 6px 0; border: 1px solid #6b7280; border-radius: 8px; }
.dv-seg:has(input:checked) { border: 2px solid var(--acc,#1b4fd8); background: color-mix(in srgb, var(--acc,#1b4fd8) 14%, var(--pn2, #fff)); font-weight: 700; }
.dv-seg input { width: 22px; height: 22px; margin: 0; }
.dv-seg label { cursor: pointer; padding: 12px 0; }
.dv-seg input:focus-visible { outline: 3px solid var(--acc,#1b4fd8); outline-offset: 2px; }
.dv-hint { margin: 4px 0; font-size: .95rem; color: #374151; }
.dv-fields { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 8px 0; }
.dv-field { display: inline-flex; align-items: center; gap: 8px; }
.dv-roll { font-weight: 700; min-width: 160px; }
.dv-dice { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; min-height: 8px; }
.dv-die { display: flex; flex-direction: column; align-items: center; width: 76px; }
.dv-face { width: 64px; height: 64px; }
.dv-face rect, .dv-face polygon, .dv-face circle:not(.dv-pip) { fill: #ffffff; stroke: #1d2330; stroke-width: 4; }
.dv-face text { fill: #1d2330; font-weight: 700; font-family: system-ui, sans-serif; }
.dv-pip { fill: #1d2330; }
.dv-kept .dv-face rect, .dv-kept .dv-face polygon { stroke: var(--acc,#1b4fd8); stroke-width: 7; }
.dv-dropped .dv-face { opacity: .45; }
.dv-dropped .dv-val { text-decoration: line-through; text-decoration-thickness: 2px; }
.dv-cap { display: flex; flex-direction: column; align-items: center; font-size: .95rem; text-align: center; }
.dv-val { font-weight: 700; font-size: 1.1rem; }
.dv-tag { font-size: .85rem; color: #1d2330; }
.dv-nat { font-weight: 700; color: #0f2f8a; }
.dv-total { font-size: clamp(28px, 8vw, 44px); font-weight: 700; margin: 4px 0; }
.dv-detail { margin: 4px 0 12px; }
.dv-hlbl { font-weight: 700; margin: 12px 0 4px; }
.dv-history { padding-left: 1.6em; margin: 0; }
.dv-rolling .dv-face { animation: dv-shake .45s ease-out; }
@keyframes dv-shake { 0% { transform: rotate(-25deg) scale(.85); } 60% { transform: rotate(10deg); } 100% { transform: none; } }

/* coin: a 2D turn (scaleX); data-face picks the side colour, the name on the coin carries the meaning */
.cv-stage { display: flex; justify-content: center; margin: 12px 0; }
.cv-coin { width: 168px; height: 168px; max-width: 70vw; max-height: 70vw; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #f2c94c; border: 6px solid #8a6d1a; box-sizing: border-box; padding: 14px; text-align: center; will-change: transform; }
.cv-coin[data-face="1"] { background: #d9dde3; border-color: #4b5563; }
.cv-face { font-weight: 700; font-size: 1.2rem; color: #1d2330; overflow-wrap: anywhere; line-height: 1.2; }
.cv-out { min-height: 2.4em; text-align: center; margin: 4px 0; }
.cv-res { font-size: clamp(26px, 7vw, 40px); }
.cv-n { color: #374151; font-size: .95rem; }
.cv-flip { font-weight: 700; display: block; margin: 0 auto 12px; min-width: 180px; }
.cv-many, .cv-labels { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 8px 0; }
.cv-field { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; max-width: 100%; }
.cv-tallybox { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 8px 0; }
.cv-tally { margin: 0; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { .dv-rolling .dv-face { animation: none; } }
html[data-reduced-motion] .dv-rolling .dv-face { animation: none; }
html[data-theme="dark"] .dv-hint, html[data-theme="dark"] .cv-n, html[data-theme="dark"] .dv-tag { color: #d1d5db; }
html[data-theme="dark"] .dv-nat { color: #9db8ff; }

/* without JS the settings panels are empty shells: hide them */
@media (scripting:none){.tt-settings{display:none}}
/* the header is sticky (about 76 px with its margin): anything scrolled or focused into view must stop below it */
[data-tt-tool], .wv-wheel, .wv-spin, .tm-stage, .tslot { scroll-margin-top: 96px; }

/* buttons.css: one button look for every tool of the section (UI review TOOL-527). Loaded last, so it wins over the per-tool rules.
   Primary action = the "Get a pass" blue with white 600 text, 48 px high. Everything else is a grey secondary button with an 8 px radius.
   A pressed choice (aria-pressed) keeps its own blue state from the tool's CSS. */
.wv-spin.wv-spin, .tm .tm-start, .dv .dv-roll, .cv .cv-flip, .lt .lt-go {
  min-height: 48px; padding: 0 22px; background: var(--acc, var(--acc,#1b4fd8)); color: var(--on, #fff); border: 0; border-radius: var(--r, 8px); font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1; }
:where(.wv-root, .tm, .lt, .dv, .cv, .pv-wrap, .sh-bar, .tt-settings) button:not(.wv-spin, .tm-start, .dv-roll, .cv-flip, .lt-go, [aria-pressed="true"]) {
  min-height: 48px; background: #e9ecf2; color: #1d2330; border: 1px solid #b9c0cc; border-radius: 8px; font: inherit; }
:where(.wv-root, .tm, .lt, .dv, .cv, .pv-wrap, .sh-bar, .tt-settings) button:disabled { opacity: .55; cursor: not-allowed; }
.tm .tm-start:hover, .wv-spin.wv-spin:hover, .dv .dv-roll:hover, .cv .cv-flip:hover, .lt .lt-go:hover { filter: brightness(1.08); }

/* hub, lead 15-11 (the owner about the name picker: "one weird white area, make this look normal"): the list tools (name picker,
   team generator) stood as a 720 px column in the middle of a 1184 px card. They use the card's width now: on a wide screen the list
   stands left, and the note, the settings, the action and the result stand right of it; narrow screens keep one column.
   Checkboxes of the section take the theme's field look (they were the browser's white box). */
.lt { max-width: none; margin: 0; }
@media (min-width: 900px) {
  .lt:has(.lt-form textarea) { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 32px; align-items: start; align-content: start; }
  .lt:has(.lt-form textarea) > .lt-form { display: contents; }
  .lt:has(.lt-form textarea) > .lt-form > .lt-field:first-child { grid-column: 1; grid-row: 1 / span 30; }
  .lt:has(.lt-form textarea) > .lt-form > .lt-field:first-child textarea { min-height: 17em; }
  .lt:has(.lt-form textarea) > :not(.lt-form), .lt:has(.lt-form textarea) > .lt-form > :not(.lt-field:first-child) { grid-column: 2; }
  .lt:has(.lt-form textarea) > .lt-form > .lt-hint { margin-top: 27px; }
}
:where(.lt, .tm, .dv, .cv, .wv-root, .tt-settings) input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex: none;
  border: 1.5px solid color-mix(in srgb, currentColor 45%, transparent); border-radius: 6px; background: var(--pn2, #ebebe6); display: inline-grid; place-content: center; cursor: pointer; }
:where(.lt, .tm, .dv, .cv, .wv-root, .tt-settings) input[type=checkbox]:checked { background: var(--acc, #1b4fd8); border-color: var(--acc, #1b4fd8); }
:where(.lt, .tm, .dv, .cv, .wv-root, .tt-settings) input[type=checkbox]:checked::before { content: ""; width: 6px; height: 11px; border: solid var(--on, #fff); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
