/* QPTOOLS suite base - operator pages of every product (docs/BLUEPRINT.md).
   THE MASTER IS shared/qpt.css (+ shared/qpt.js, shared/fonts/). Each product serves IDENTICAL copies next to each other,
   qpt.css loaded FIRST, then its own CSS on top: qptcaddy/public/, qptgfx/public/static/css/, soliprompter/app/,
   qptwavez/app/, qptndc/public/, home/. Change them here, then copy: sh tools/suite-check.sh --sync
   (the check refuses a release while a copy differs).
   LIGHT/DARK (Martin, 14 Oct 2026): the person picks it on tools.videoforweb.no/settings; no "follow the device", nothing
   forced dark. qpt.js puts <html data-theme="light|dark"> from that choice before the page paints. Dark = no choice yet.
   No product writes a hex for a suite colour: use these names (a product colour of its own gets its own name). */
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url(fonts/archivo-400.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url(fonts/archivo-600.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url(fonts/archivo-800.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-mono-600.woff2) format("woff2"); }

:root {
  /* surfaces */
  --bg: #1a1f26; --panel: #232a33; --panel-2: #2b343f; --line: #36424f; --bar: #161b21; --rule: #ecf0f4; --sep: #55636f;
  /* words */
  --text: #ecf0f4; --muted: #9aa7b5; --link: #7cb8ff; --bad-text: #ff8a93; /* red for WORDS; --live for marks and borders */
  /* meaning: red = now or a real problem, amber = soon, green = done/ok */
  --live: #e5443a; --amber: #f3b33d; --green: #3ec27f; --now: var(--live);
  /* actions: one main button colour, one ink on it; selected = inverted */
  --pri: #7cb8ff; --pri-ink: #0b1620; --sel: #ecf0f4; --sel-ink: #0b0f14; --focus: #7cb8ff;
  --field: #1a1f26; --field-line: #36424f; --shadow: rgba(0,0,0,.4);
  /* product accents (the line under the bar, marks, card tops) */
  --acc-caddy: #3ec27f; --acc-gfx: #e5443a; --acc-tunes: #ff5ad6; --acc-prompter: #ffb547; --acc-wavez: #b26bff;
  --acc-ndc: #b5e655; --acc-viz: #4fd1ff; --acc-pulze: #ff8a3d; --acc-clips: #ffd23f; --acc-inbox: #6b8cff;
  --acc-showtime: #b98cf5; --acc-mcmats: #e8c547; --acc-roadhouse: #d9b46a;
  /* QPTCADDY tool accents */
  --acc-willy: #3ec27f; --acc-nag: #f3b33d; --acc-book: #b26bff; --acc-rec: #2fa8ff; --acc-man: #3ad1c8;
  /* shape, space, type - the same in both modes */
  --radius: 10px; --radius-s: 6px; --radius-l: 14px; --pill: 999px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --fs-s: .85rem; --fs-0: 1rem; --fs-1: 1.15rem; --fs-2: 1.5rem; --fs-3: 2rem;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bar-h: 56px; --bar-h-phone: 52px; /* phone = max-width 700px, desk = min-width 1000px (media queries use the numbers) */
  color-scheme: dark;
}
/* Swiss Paper (10 Oct). Words-colours darkened to pass 4.5:1 on paper; marks and the bar line keep the raw product colour. */
:root[data-theme="light"] {
  --bg: #f6f5f1; --panel: #ffffff; --panel-2: #efede6; --line: #dedbd2; --bar: #fbfaf7; --rule: #111111; --sep: #a3a39b;
  --text: #111111; --muted: #555b61; --link: #0b57d0; --bad-text: #b8261a;
  --live: #e5321f; --amber: #8a5600; --green: #156f44;
  --pri: #111111; --pri-ink: #f6f5f1; --sel: #111111; --sel-ink: #f6f5f1; --focus: #0b57d0;
  --field: #ffffff; --field-line: #c9c6bc; --shadow: rgba(17,17,17,.14);
  --acc-caddy: #156f44; --acc-gfx: #c8281d; --acc-tunes: #b3178a; --acc-prompter: #8a5600; --acc-wavez: #7a3fd1;
  --acc-ndc: #4a6e00; --acc-viz: #0a6fb8; --acc-pulze: #b84a00; --acc-clips: #7a5a00; --acc-inbox: #3b52c4;
  --acc-showtime: #7746b9; --acc-mcmats: #7a5a00; --acc-roadhouse: #7d5a14; /* on paper 5.7 / 5.9 / 5.8 : 1 (b552, 27 Oct) */
  --acc-willy: #156f44; --acc-nag: #8a5600; --acc-book: #7a3fd1; --acc-rec: #0a6fb8; --acc-man: #0e7a74;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; font-weight: 600; }
code, kbd, .mono { font-family: var(--font-mono); }
.muted { color: var(--muted); } .small { font-size: var(--fs-s); } .tnum { font-variant-numeric: tabular-nums; }
.err { color: var(--bad-text); font-weight: 600; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); }

/* buttons: one look everywhere. .btn-primary = the one main action; .btn-quiet = no box; .btn-danger = deletes */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer;
  text-decoration: none !important; white-space: nowrap;
}
button:hover, .btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--pri); color: var(--pri-ink); border-color: transparent; }
.btn-primary:hover:not(:disabled) { border-color: transparent; filter: brightness(1.08); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn-quiet:hover:not(:disabled) { color: var(--text); border-color: var(--line); }
/* THE red (b476, 27 Nov 2026): --live for a mark, a border or a fill, --bad-text for words - never a hex of a product's own */
.btn-danger { background: transparent; color: var(--bad-text); border-color: var(--live); }
.btn-danger:hover:not(:disabled) { border-color: var(--live); background: color-mix(in oklab, var(--live) 12%, transparent); }
/* a button that cannot be pressed yet: a grey box, muted words, still readable (5.1:1; a fade to .45 was 2.9:1 - QPTCADDY's
   since 8 Nov, the suite's since b476). The same for every kind: main, danger, plain; a quiet one stays without a box. */
button:disabled, .btn:disabled, .btn[aria-disabled="true"] { opacity: 1; background: var(--panel-2); color: var(--muted);
  border-color: var(--line); filter: none; cursor: not-allowed; }
.btn-quiet:disabled, .btn-quiet[aria-disabled="true"] { background: transparent; border-color: transparent; }
/* working: a pressed button that waits for its answer shows the one spinner before its words (qpt.busy(button, promise));
   <button aria-busy="true">Saving</button> */
button[aria-busy="true"]::before, .btn[aria-busy="true"]::before { content: ""; display: inline-block; width: 1em; height: 1em; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: qpt-spin 1.2s linear infinite; }
button[aria-busy="true"], .btn[aria-busy="true"] { cursor: progress; }

/* fields: one look; disabled = faded, a wrong one = the red border (aria-invalid="true") */
input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="tel"], input[type="password"],
input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], input:not([type]), select, textarea {
  padding: 9px 10px; border-radius: 8px; border: 1px solid var(--field-line);
  background: var(--field); color: var(--text); font: inherit; max-width: 100%;
}
input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
[aria-invalid="true"]:is(input, select, textarea) { border-color: var(--live); }
/* the hint in an empty box: the browser's own grey is 3.6:1 on the field; muted is 6.8:1 (light 6.9:1) */
::placeholder { color: var(--muted); opacity: 1; }
/* THE focus ring: anything that can be tapped, from the keyboard; a box to type in also when clicked (legibility, from
   QPTCADDY 8 Nov) - the person sees where the typing goes */
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible,
:where([role="button"], [tabindex]:not([tabindex="-1"])):focus-visible,
input:where([type="text"], [type="search"], [type="email"], [type="url"], [type="tel"], [type="password"], [type="number"],
  [type="date"], [type="time"], [type="datetime-local"], :not([type])):focus, select:focus, textarea:focus {
  outline: 2px solid var(--focus); outline-offset: 2px; }

/* one segmented control: <div class="seg"><button aria-pressed="true">Me</button><button>All</button></div> */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg > * { border: 0; border-radius: 0; background: transparent; color: var(--muted); padding: 7px 12px; }
.seg > * + * { border-left: 1px solid var(--line); }
.seg > [aria-pressed="true"], .seg > .on { background: var(--sel); color: var(--sel-ink); }

/* one spinner, one empty state, one badge, one toast */
.spin { display: inline-block; width: 1em; height: 1em; border: 2px solid var(--line); border-top-color: var(--text);
  border-radius: 50%; animation: qpt-spin 1.2s linear infinite; vertical-align: -.15em; }
@keyframes qpt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin, button[aria-busy="true"]::before, .btn[aria-busy="true"]::before, .loading::before { animation-duration: 4s; } }
/* the one "working..." line while a page or a part of it loads: the spinner comes by itself.
   <p class="loading">Loading the agenda…</p> */
.loading { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); color: var(--muted); padding: var(--sp-5) var(--sp-4); }
.loading::before { content: ""; flex: none; width: 1em; height: 1em; border: 2px solid var(--line); border-top-color: var(--text);
  border-radius: 50%; animation: qpt-spin 1.2s linear infinite; }
.loading.line { justify-content: flex-start; padding: var(--sp-2) 0; }
/* the one empty state, and the one "could not load" state (.empty.err, role="alert") with its Try again button:
   <div class="empty">No talks yet.</div>   <div class="empty err" role="alert"><p>Couldn't load the agenda.</p><button>Try again</button></div>
   .line = one short line in a list ("Nothing waits on you."), left-aligned */
.empty { text-align: center; color: var(--muted); padding: var(--sp-5) var(--sp-4); }
.empty > p { margin: 0 0 var(--sp-3); }
.empty > p:last-child { margin-bottom: 0; }
.empty.err { color: var(--bad-text); }
.empty.err > :is(button, .btn) { color: var(--text); }
.empty.line { text-align: left; padding: var(--sp-2) 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: var(--pill); font-size: .74rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; background: var(--panel-2); color: var(--muted); }
.badge.green { background: var(--green); color: var(--pri-ink); }
.badge.live { background: var(--live); color: #fff; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px); background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
.toast.show { opacity: 1; }
.toast.err { border-color: var(--live); }
/* qpt.toast() moves it up under the bar when at the foot it would lie over the control just pressed (17 Oct look review) */
.toast.top { bottom: auto; top: calc(var(--bar-h) + 12px + env(safe-area-inset-top, 0px)); }
@media (max-width: 700px) { .toast.top { top: calc(var(--bar-h-phone) + 12px + env(safe-area-inset-top, 0px)); } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
/* badges for a state word: solid .green / .live / .amber; soft (tinted) .ok / .warn / .bad.
   <span class="badge warn">Checking</span> */
.badge.amber { background: var(--amber); color: var(--pri-ink); }
.badge.ok { background: color-mix(in oklab, var(--green) 18%, transparent); color: var(--green); }
.badge.warn { background: color-mix(in oklab, var(--amber) 18%, transparent); color: var(--amber); }
.badge.bad { background: color-mix(in oklab, var(--live) 18%, transparent); color: var(--bad-text); }

/* SHARED PARTS (15 Oct 2026): one name each. --c is "this thing's colour" wherever a part takes one. */

/* a wrapping row of choices, one picked (days, rooms, presets). Two to four fixed choices: use .seg instead.
   <div class="tabs"><button class="on">Mon 12</button><button>Tue 13</button></div>  (picked = .on or aria-pressed/-selected) */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs > button, .tabs > .btn { padding: 6px 12px; }
.tabs > .on, .tabs > [aria-pressed="true"], .tabs > [aria-selected="true"] { background: var(--sel); color: var(--sel-ink); border-color: transparent; }

/* a count on a tab, a button or a heading; empty = hidden. .bad (red: act now) .warn (amber: due) .info (blue)
   <button>Leads <span class="num warn">3</span></button> */
.num { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .4em; margin-left: 4px; border-radius: var(--pill);
  font-size: .75rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; background: var(--c, var(--panel-2)); color: var(--c-ink, var(--text)); }
.num:empty { display: none; }
.num.bad { --c: var(--live); --c-ink: #fff; }
.num.warn { --c: var(--amber); --c-ink: var(--pri-ink); }
.num.info { --c: var(--link); --c-ink: var(--pri-ink); }

/* a rounded chip: a person, a filter, a file, a tag to tap. Picked = .on or aria-pressed="true".
   <button class="chip" aria-pressed="true"><span class="dot" style="--c: var(--acc-willy)"></span>Kari</button> */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--pill); }
.chip.on, .chip[aria-pressed="true"] { background: var(--sel); color: var(--sel-ink); border-color: transparent; }

/* a colour dot: a person, a state. .ok / .warn / .bad, or style="--c: ..."; .glow = a soft halo in its colour.
   <span class="dot ok"></span> */
.dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--muted)); }
.dot.ok { --c: var(--green); } .dot.warn { --c: var(--amber); } .dot.bad { --c: var(--live); }
.dot.glow { box-shadow: 0 0 8px var(--c, transparent); }

/* a notice box: something to see now, in a colour that means something. .info (blue, the default) .warn .bad .ok;
   .demo = the striped amber strip for made-up data or practice mode; .split = words left, buttons right.
   <div class="notice warn split"><span>Event moved 10 min</span><button>Undo</button></div> */
.notice { --c: var(--link); margin: var(--sp-2) 0; padding: 8px 12px; border-radius: 8px; color: var(--text);
  border: 1px solid color-mix(in oklab, var(--c) 50%, transparent); background: color-mix(in oklab, var(--c) 10%, var(--panel)); }
.notice.warn, .notice.demo { --c: var(--amber); }
.notice.bad { --c: var(--live); }
.notice.ok { --c: var(--green); }
.notice.demo { color: var(--c); font-weight: 600;
  background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--c) 16%, transparent) 0 12px, color-mix(in oklab, var(--c) 7%, transparent) 12px 24px); }
.notice.split { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }

/* a plain table. .nums = numbers right-aligned (the first column stays left).
   <table class="tbl"><thead><tr><th>Room</th>...</tr></thead><tbody>...</tbody></table> */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; font-size: var(--fs-s); }
.tbl.nums { font-variant-numeric: tabular-nums; }
.tbl.nums th, .tbl.nums td { text-align: right; }
.tbl.nums th:first-child, .tbl.nums td:first-child { text-align: left; }

/* stays in view just under the bar while the page scrolls; --stick-gap adds air under the bar.
   <aside class="stick" style="--stick-gap: 16px"> */
.stick { position: sticky; top: calc(var(--bar-h) + var(--stick-gap, 0px)); }
@media (max-width: 700px) { .stick { top: calc(var(--bar-h-phone) + var(--stick-gap, 0px)); } }

/* an on/off switch (a checkbox underneath):
   <label class="switch"><input type="checkbox"><span class="knob"></span><span><strong>Logo bug</strong><small>Top right</small></span></label> */
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 10px 12px; margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); color: var(--text); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .knob { flex: none; width: 40px; height: 22px; border-radius: var(--pill); background: var(--sep); position: relative; transition: background .2s; }
.switch .knob::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .knob { background: var(--link); }
.switch input:checked + .knob::after { transform: translateX(18px); }
.switch input:focus-visible + .knob { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch > span:last-child { display: grid; }
.switch strong { font-size: .92rem; font-weight: 600; }
.switch small { color: var(--muted); font-size: .78rem; line-height: 1.25; }
@media (prefers-reduced-motion: reduce) { .switch .knob, .switch .knob::after { transition: none; } }

/* hub cards, one per tool, a thin line in the tool's colour on top (hubs only; strong colour belongs there).
   <div class="toolcards"><a class="toolcard" href="/willy" style="--c: var(--acc-willy)"><h2>Willy</h2><p>Who is where</p><span class="go">Open</span></a></div>
   .toolcard.small = a smaller second row without the line; .toolcard.soon = not built yet (dashed) */
.toolcards { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.toolcard { --c: var(--muted); position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); color: inherit; text-decoration: none !important; }
.toolcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
a.toolcard { transition: border-color .15s, transform .15s; }
a.toolcard:hover, a.toolcard:focus-visible { border-color: var(--c); transform: translateY(-2px); }
.toolcard .go { margin-top: auto; font-weight: 700; color: var(--c); }
.toolcard.soon { background: transparent; border-style: dashed; }
.toolcard.soon::before { opacity: .45; }
.toolcard.small { padding: 14px 16px; gap: 6px; border-radius: var(--radius); }
.toolcard.small::before { display: none; }
a.toolcard.small:hover { border-color: var(--muted); }
@media (prefers-reduced-motion: reduce) { a.toolcard { transition: none; } a.toolcard:hover { transform: none; } }

/* the small status line at the foot of a page (data age, version), with a button if one belongs there.
   <footer class="qpt-foot"><span>Planning read at 14:02</span><button>Recheck</button></footer> */
.qpt-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 24px 0 40px; color: var(--muted); font-size: var(--fs-s); }

/* the product word mark: QPT<b>GFX</b>, SOLI<b>PROMPTER</b> */
.qpt-word { font-family: var(--font); font-weight: 800; letter-spacing: .03em; color: var(--text); }
.qpt-word b { font-weight: 800; color: var(--muted); }

/* the way back to the suite front page, before every product mark:
   <span class="brandline"><a class="suite-link" href="https://tools.videoforweb.no/">QPTOOLS</a><span class="suite-sep" aria-hidden="true">/</span>(product mark)</span> */
.brandline { display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; }
.brandline > a:not(.suite-link) { display: inline-flex; align-items: center; gap: .4em; color: inherit; text-decoration: none !important; }
.suite-link { font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); text-decoration: none !important;
  padding: 8px 2px; }
.suite-link:hover { color: var(--text); }
.suite-sep { color: var(--sep); font-size: .85rem; }
@media (max-width: 760px) { .suite-link { letter-spacing: .04em; } .brandline { gap: .3em; } }

/* THE BAR - the top of every operator page (Martin's taps, 14 Oct 2026; docs/BLUEPRINT.md B4):
   <header class="qpt-bar" style="--acc: var(--acc-PRODUCT)">
     <span class="brandline">QPTOOLS link / mark + word</span> <span class="qpt-tool">Willy</span>
     <div class="qpt-mid">the page's own controls</div> <span class="qpt-you"></span></header>
   The product colour is a thin "where am I" line under the bar, nothing more (strong colour only on the front page/hubs).
   .qpt-you: plain name + ONE Sign out (no menu). Left empty, qpt.js fills it from the suite sign-in.
   Phone: one row; the page's controls wrap under it; the word mark hides behind its mark; <span class="qpt-long"> in the
   tool name hides (full chain on desktop, short on phone).
   Sides: the notch's room on an iPhone turned sideways, on a page whose viewport tag says viewport-fit=cover (Willy, b720); 0 elsewhere. */
.qpt-bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3);
  min-height: var(--bar-h); padding: env(safe-area-inset-top, 0) max(var(--sp-4), env(safe-area-inset-right, 0px)) 0 max(var(--sp-4), env(safe-area-inset-left, 0px)); background: var(--bar);
  border-bottom: 1px solid var(--line); box-shadow: inset 0 -2px 0 var(--acc, transparent); }
.qpt-bar .brandline svg, .qpt-bar .brandline img { width: 22px; height: 22px; flex: none; }
.qpt-bar .brandline .qpt-word { font-size: 1.05rem; }
.qpt-bar .qpt-tool { font-weight: 800; font-size: var(--fs-1); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qpt-bar .qpt-tool::before { content: "/"; color: var(--sep); font-weight: 400; margin-right: .5em; }
.qpt-bar .qpt-tool a { color: inherit; }
.qpt-bar .qpt-tool .crumb-sep { margin: 0 .4em; font-weight: 400; color: var(--sep); }  /* Event / Rooms */
/* a tool's own mark before its name, and the way up to its parent tool:
   <span class="qpt-tool"><a class="tool-up" href="/plan">ADMIN</a> / <img class="tool-mark" src="tool-sub.svg" alt="">Sub-tool</span> */
.qpt-bar .qpt-tool .tool-mark { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.17em; margin-right: .3em; }
.qpt-bar .qpt-tool .tool-up { color: var(--muted); font-weight: 600; }
.qpt-bar .qpt-tool .tool-up:hover { color: var(--text); }
/* on a phone the way back up stays, cut short so the page name fits: "Eks… / Rooms" */
@media (max-width: 700px) { .qpt-bar .qpt-tool .tool-mark { display: none; }
  .qpt-bar .qpt-tool .tool-up { display: inline-block; max-width: 4.5em; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; vertical-align: bottom; } }
/* Never wider than the screen, nothing on top of the name or Sign out (25 Nov 2026: QPTGFX's test card was 21 px wider than a
   tablet and its button lay over Sign out; ADMIN's week arrow and QPTGFX's event buttons lay under the name at 768 px). As on a
   phone: the tool's name takes the room first and shortens with "…" (to about 7em), the page's controls go to a second row when
   their row does not fit beside it (the name + Sign out with them, at the right), never past the edge or under each other. A page
   whose controls do not fit beside the name + Sign out on any row gets .qpt-stack from qpt.js (2c): the controls take the second
   row by themselves, as on a phone, and the name + Sign out stay on the first (never alone on a row). Checked at 320-1280 px on every page with this bar
   (the check names the ones it could not measure): BARS=1 sh tools/shots/shots.sh <outdir>. */
.qpt-bar .qpt-mid { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; flex: 1; }
@media (min-width: 701px) {
  .qpt-bar > .qpt-tool { flex: 1000 1 7em; max-width: max-content; }
  .qpt-bar > .qpt-mid { flex: 1 1 auto; }
  .qpt-bar.qpt-stack > .qpt-mid { order: 9; flex-basis: 100%; }   /* qpt.js 2c: the name + Sign out would be alone on a row */
}
.qpt-bar .qpt-mid button, .qpt-bar .qpt-mid .btn { padding: 6px 12px; }
.qpt-bar .qpt-you { margin-left: auto; display: inline-flex; align-items: center; gap: var(--sp-3); white-space: nowrap;
  font-size: var(--fs-s); color: var(--muted); }
.qpt-you .qpt-name { color: var(--text); font-weight: 600; }
.qpt-you .qpt-out { color: var(--muted); }
.qpt-you .qpt-out:hover { color: var(--text); }
@media (max-width: 700px) {
  .qpt-bar { min-height: var(--bar-h-phone); padding: env(safe-area-inset-top, 0) max(var(--sp-3), env(safe-area-inset-right, 0px)) 0 max(var(--sp-3), env(safe-area-inset-left, 0px)); gap: var(--sp-2); flex-wrap: wrap; }
  .qpt-bar .brandline .qpt-word { display: none; }
  .qpt-bar .qpt-tool { flex: 1 1 0; }
  .qpt-bar .qpt-tool .qpt-long { display: none; }
  .qpt-bar .qpt-mid { flex-basis: 100%; order: 9; padding-bottom: var(--sp-2); min-width: 0; }   /* as before 25 Nov: a long status shortens */
}
@media (max-width: 380px) { .qpt-you .qpt-name { display: none; } }

/* the "?": help a first-time user may need (docs/tone.md rule 12). Opens on tap, and on hover where there is a mouse.
   <details class="qhelp"><summary aria-label="Help">?</summary><p>One or two short sentences.</p></details>
   .qhelp.end opens to the left (a "?" near the right edge). On a phone it opens as a strip at the bottom of the screen. */
.qhelp { position: relative; display: inline-block; vertical-align: middle; margin-left: 6px; font-size: .8rem; font-weight: 400;
  letter-spacing: 0; text-transform: none; line-height: 1.4; }
.qhelp > summary { list-style: none; cursor: pointer; width: 1.6em; height: 1.6em; line-height: 1.5em; text-align: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font-weight: 800; user-select: none; }
.qhelp > summary::-webkit-details-marker { display: none; }
.qhelp[open] > summary, .qhelp > summary:hover { color: var(--text); border-color: var(--muted); }
.qhelp > :not(summary) { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; width: max-content; max-width: 320px; margin: 0;
  padding: 8px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text);
  box-shadow: 0 6px 20px var(--shadow); text-align: left; white-space: normal; }
.qhelp > ul { padding-left: 26px; }
.qhelp.end > :not(summary) { left: auto; right: 0; }
@media (hover: hover) { .qhelp:hover::details-content { content-visibility: visible; } }
@media (max-width: 760px) { .qhelp > :not(summary) { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; max-width: none; } }

/* "Report a bug" (Martin, 15 Oct 2026; docs/BLUEPRINT.md B21). qpt.js adds the link at the foot of every page with the bar
   and builds the sheet on the first tap: <footer class="qpt-bugline"><button class="qpt-buglink">Report a bug</button></footer>
   A page hides it with data-qpt-bug="off" on <html> or <body> (or its own rule, e.g. SOLIPrompter's Show mode). */
.qpt-bugline { display: flex; justify-content: center; padding: var(--sp-4) var(--sp-4) calc(var(--sp-5) + env(safe-area-inset-bottom, 0px)); }
.qpt-bugline .qpt-buglink { background: transparent; border-color: transparent; color: var(--muted); font-size: var(--fs-s); font-weight: 400;
  padding: 6px 10px; opacity: .8; }
.qpt-bugline .qpt-buglink:hover { color: var(--text); opacity: 1; border-color: var(--line); }
.qpt-bugsheet { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto;
  border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--panel); color: var(--text); box-shadow: 0 20px 60px var(--shadow); }
.qpt-bugsheet::backdrop { background: rgba(0, 0, 0, .55); }
.qpt-bugsheet form { display: grid; gap: var(--sp-3); padding: 18px; }
.qpt-bugsheet h2 { display: flex; align-items: center; margin: 0; font-size: var(--fs-1); }
.qpt-bugsheet .qpt-bugform { display: grid; gap: var(--sp-2); }
.qpt-bugsheet .qpt-bugform[hidden] { display: none; }
.qpt-bugsheet label[for] { font-weight: 600; }
.qpt-bugsheet textarea { width: 100%; min-height: 7.5em; resize: vertical; }
.qpt-bugsheet .qpt-bugpic { display: flex; align-items: center; gap: var(--sp-2) var(--sp-3); flex-wrap: wrap; }
.qpt-bugsheet .qpt-bugpic img { width: 84px; height: 56px; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--line); }
.qpt-bugsheet .qpt-bugpic [hidden] { display: none; }
.qpt-bugsheet .qpt-bugmsg { margin: 0; }
.qpt-bugsheet .qpt-bugmsg:empty { display: none; }
.qpt-bugsheet .qpt-bugact { display: flex; justify-content: flex-end; gap: var(--sp-2); }
.qpt-bugsheet .qpt-bugact [hidden] { display: none; }
@media (max-width: 700px) {
  .qpt-bugsheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--radius-l) var(--radius-l) 0 0; border-width: 1px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@media print { .qpt-bugline { display: none; } }
