:root {
  --bg: #1a1f26;
  --panel: #232a33;
  --panel-2: #2b343f;
  --line: #36424f;
  --text: #ecf0f4;
  --muted: #9aa7b5;
  --link: #7cb8ff;
  --live: #e5443a;
  --amber: #f3b33d;
  --green: #3ec27f;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); color: var(--text); }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  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: 650; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; color: var(--muted); font-weight: 600; }

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

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.topbar .brand { font-weight: 700; letter-spacing: .01em; }
.topbar nav { display: flex; gap: 16px; align-items: center; }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 16px;
}

label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }

input[type="text"], input[type="date"], input[type="time"], input[type="number"], input[type="password"],
select, textarea {
  width: 100%; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--link); outline-offset: 1px;
}
input[type="color"] { width: 48px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
textarea { min-height: 120px; resize: vertical; }

.grid { display: grid; gap: 12px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
button:hover, .btn:hover { filter: brightness(1.1); text-decoration: none; }
button:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-primary { background: var(--link); color: #0b1620; border-color: transparent; }
.btn-danger { background: transparent; color: var(--live); border-color: var(--live); }
.btn-quiet { background: transparent; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono, .tnum { font-variant-numeric: tabular-nums; }
.err { color: var(--live); font-weight: 600; }
.ok { color: var(--green); font-weight: 600; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--panel-2); color: var(--muted);
}
.badge.live { background: var(--live); color: #fff; }
.badge.amber { background: var(--amber); color: #201600; }
.badge.green { background: var(--green); color: #052012; }

.url-list { display: grid; gap: 8px; }
.url-list .url {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
}
.url-list code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.toast.show { opacity: 1; }
.toast.err { border-color: var(--live); }

/* ---------- control page ---------- */

.control { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; padding: 16px; max-width: 1500px; margin: 0 auto; }
@media (max-width: 900px) { .control { grid-template-columns: 1fr; } }

.clockbar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.clockbar .clock { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.clockbar .late { font-weight: 700; }
.clockbar .late.behind { color: var(--live); }
.clockbar .late.ahead { color: var(--green); }

.now-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .now-next { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-height: 130px; }
.card.now { border-color: var(--live); }
.card .kicker { font-size: .8rem; font-weight: 700; color: var(--muted); }
.card.now .kicker { color: var(--live); }
.card .title { font-size: 1.25rem; font-weight: 700; margin: 4px 0; }
.card .meta { color: var(--muted); font-variant-numeric: tabular-nums; }
.card .count { font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }

.bigbtns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
@media (max-width: 700px) { .bigbtns { grid-template-columns: repeat(2, 1fr); } }
.bigbtns .clock { background: var(--panel-2); border-color: var(--link); color: var(--link); }
.bigbtns button { min-height: 68px; font-size: 1.1rem; }
.bigbtns .take { background: var(--green); color: #052012; border-color: transparent; }
.bigbtns .hold { background: var(--amber); color: #201600; border-color: transparent; }
.bigbtns .hold.active { box-shadow: inset 0 0 0 3px #fff; }
.bigbtns .ripple { background: var(--panel-2); }

.items { list-style: none; margin: 0; padding: 0; }
.items li {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.items li.done { opacity: .5; }
.items li.current { background: rgba(229, 68, 58, .12); border-left: 3px solid var(--live); }
.items li .t { font-variant-numeric: tabular-nums; color: var(--muted); }
.items li .type { font-size: .75rem; color: var(--muted); }
.items li button { padding: 5px 10px; font-size: .85rem; }

.queue { display: grid; gap: 8px; }
.queue button {
  display: grid; grid-template-columns: 1fr auto; text-align: left; padding: 10px 12px; min-height: 52px;
}
.queue button .n { font-weight: 700; }
.queue button .r { color: var(--muted); font-weight: 500; font-size: .9rem; }
.queue button.blocked { border-color: var(--amber); }
.queue button.onair { border-color: var(--live); box-shadow: inset 0 0 0 2px var(--live); }

.daytabs { display: flex; gap: 6px; flex-wrap: wrap; }
.daytabs button { padding: 5px 10px; font-size: .85rem; }
.daytabs button.active { background: var(--link); color: #0b1620; border-color: transparent; }

.rehearsal-on { outline: 4px solid var(--amber); outline-offset: -4px; }

.bigbtns.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .bigbtns.three { grid-template-columns: 1fr; } }
.drift { display: inline-flex; align-items: center; gap: 4px; }
.drift button { padding: 4px 9px; font-size: .85rem; }
.drift #sched { min-width: 120px; text-align: center; font-weight: 700; }
.suggest { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin: 0 0 8px; border: 1px solid var(--amber); border-radius: 8px; background: rgba(243,179,61,.08); }
.items li .pin { padding: 1px 8px; font-size: .75rem; border-radius: 999px; background: transparent; color: var(--muted); }
.items li .pin.on { color: var(--amber); border-color: var(--amber); }

.banner { background: rgba(243,179,61,.12); border-bottom: 1px solid var(--amber); color: var(--amber); padding: 8px 16px; font-weight: 600; }
.idle { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.chg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
details.panel > summary { cursor: pointer; }
.rooms-table td { vertical-align: middle; }

.rundown.no-rooms .c-room { display: none; }
.rundown .w-room { width: 110px; }

.room-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.room-tabs button { padding: 8px 16px; font-size: 1rem; }
.room-tabs button.active { background: var(--link); color: #0b1620; border-color: transparent; }

/* hosts and moderators: their own colour in the queue, crew-only (on air they look like any lower third) */
:root { --host: #b48cff; }
.queue button.host { border-color: color-mix(in oklab, var(--host) 70%, transparent); background: color-mix(in oklab, var(--host) 12%, var(--panel, transparent)); }
.queue button.host .badge { background: var(--host); color: #160c28; }
.queue button.host.off { opacity: .55; }
.queue button.host.off .badge { background: transparent; color: var(--muted); border: 1px solid var(--muted); }
.queue button.host.onair { border-color: var(--live); box-shadow: inset 0 0 0 2px var(--live); }
.warnbox { border: 1px solid var(--amber); border-radius: 8px; padding: 8px 12px; margin: 8px 0 12px; display: grid; gap: 4px; }
.warnbox > div { color: var(--text, inherit); }
.chip.host { border-color: var(--host); }

.hosts-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--panel-2); color: var(--text); cursor: pointer; font-weight: 500; }
.chip.blocked { border-color: var(--amber); }
.host-editor { display: grid; grid-template-columns: 2fr 2fr 1.6fr 1.4fr .8fr .8fr 1.2fr auto; gap: 8px; padding: 12px; margin-bottom: 12px; border: 1px solid var(--host); border-radius: 10px; }
@media (max-width: 1100px) { .host-editor { grid-template-columns: 1fr 1fr 1fr; } }

.msg-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 10px; }
.msg-presets button { text-align: left; padding: 10px 12px; }
.msg-presets button .n { font-weight: 700; }
.msg-presets button .r { color: var(--muted); font-size: .85rem; font-weight: 500; margin-top: 2px; }
.msg-presets button.onair { border-color: var(--live); box-shadow: inset 0 0 0 2px var(--live); }
.interact { display: grid; grid-template-columns: 1fr 1.2fr 1.6fr auto; gap: 8px; }
@media (max-width: 700px) { .interact { grid-template-columns: 1fr 1fr; } }

/* ---------- global: hidden always means hidden ---------- */
[hidden] { display: none !important; }

/* =========================================================
   Settings and look (v0.3): sections, swatches, logo slots,
   switches, a sticky live preview and a save bar.
   ========================================================= */
.settings-panel { padding-bottom: 0; }
.client-line { gap: 8px; padding: 6px 10px; background: var(--bg); border-radius: 8px; font-size: .92rem; }
.set-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 1150px) { .set-layout { grid-template-columns: 1fr; } .set-preview { position: static !important; } }
.set-sec { padding: 18px 0; border-top: 1px solid var(--line); }
.set-sec:first-child { border-top: 0; padding-top: 4px; }
.set-sec h3 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.set-grid4 { display: grid; grid-template-columns: 1.7fr 1.2fr 1fr 1fr; gap: 12px; }
.set-grid3 { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 12px; }
.set-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) { .set-grid4, .set-grid3, .set-grid2 { grid-template-columns: 1fr; } }
.set-details { margin-top: 10px; }
.set-details summary { cursor: pointer; color: var(--link); font-size: .92rem; }
.set-details[open] summary { margin-bottom: 8px; }

/* preset tiles */
.preset-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 800px) { .preset-tiles { grid-template-columns: repeat(2, 1fr); } }
.preset-tile { display: grid; grid-template-columns: 1fr; gap: 2px; justify-items: start; text-align: left; white-space: normal;
  padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; }
.preset-tile:hover { border-color: color-mix(in oklab, var(--link) 50%, var(--line)); }
.preset-tile.active { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); background: color-mix(in oklab, var(--link) 10%, var(--panel-2)); }
.preset-tile strong { font-size: .95rem; margin-top: 6px; }
.preset-tile small { color: var(--muted); font-size: .78rem; line-height: 1.25; font-weight: 500; }
.pt-sample { width: 100%; height: 38px; border-radius: 6px; position: relative; overflow: hidden; background: #111820; }
.pt-sample i, .pt-sample b { position: absolute; display: block; }
.pt-classic .pt-sample i { left: 0; right: 0; bottom: 0; height: 8px; background: #2f7bf6; }
.pt-classic .pt-sample b { left: 8px; top: 10px; width: 46%; height: 5px; background: #cfd8e3; border-radius: 1px; }
.pt-glass .pt-sample { background: linear-gradient(135deg, #2b4b6e, #152233); }
.pt-glass .pt-sample i { inset: 8px 14px; border-radius: 6px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); }
.pt-bold .pt-sample i { left: 0; top: 0; bottom: 0; width: 24%; background: #2f7bf6; }
.pt-bold .pt-sample b { left: 28%; right: 8px; top: 9px; height: 18px; background: #1c2633; }
.pt-paper .pt-sample { background: #e9e2d4; }
.pt-paper .pt-sample i { left: 0; top: 0; bottom: 0; width: 4px; background: #b4553a; }
.pt-paper .pt-sample b { left: 12px; top: 12px; width: 50%; height: 5px; background: #3a332c; border-radius: 1px; }
.pt-terminal .pt-sample { background: #07090c; border: 1px solid #2b3640; }
.pt-terminal .pt-sample i { left: 8px; top: 13px; width: 5px; height: 9px; background: #4fd1a5; }
.pt-terminal .pt-sample b { left: 18px; top: 16px; width: 50%; height: 4px; background: #9fb0bc; }
.pt-neon .pt-sample { background: #070a16; }
.pt-neon .pt-sample i { inset: 8px 14px; border-radius: 6px; border: 2px solid #3ae0ff; box-shadow: 0 0 8px #3ae0ff, inset 0 0 6px rgba(58,224,255,.4); }

/* colour swatches */
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .swatches { grid-template-columns: 1fr; } }
.cswatch { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.cswatch input[type=color] { width: 46px; height: 46px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.cswatch input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.cswatch input[type=color]::-webkit-color-swatch { border: 0; border-radius: 7px; }
.cswatch > div { display: grid; min-width: 0; }
.cswatch strong { font-size: .92rem; }
.cswatch small { color: var(--muted); font-size: .76rem; line-height: 1.25; margin-bottom: 4px; }
.cswatch .hex { padding: 3px 6px; font: 500 .85rem ui-monospace, Consolas, monospace; width: 100%; }

/* logo slots */
.logo-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) { .logo-slots { grid-template-columns: 1fr; } }
.logo-slot { display: grid; grid-template-columns: 1fr;  gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.logo-stage { height: 76px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.logo-stage.dark { background: #16202b; } .logo-stage.light { background: #f5f0e7; }
.logo-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-stage .no-logo { font-size: .8rem; color: #8894a2; }
.logo-stage.light .no-logo { color: #8a8175; }
.logo-stage img:not([hidden]) + .no-logo { display: none; }
.logo-meta { display: grid; gap: 4px; }
.logo-meta small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
label.btn { display: inline-flex; align-items: center; cursor: pointer; }

/* switches */
.switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
@media (max-width: 900px) { .switches { grid-template-columns: 1fr; } }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); margin: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .knob { flex: none; width: 40px; height: 22px; border-radius: 999px; background: #3a4552; 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(--link); 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; }
.set-sec > .switch { max-width: 520px; }

/* live preview */
.set-preview { position: sticky; top: 16px; display: grid; gap: 10px; }
.pv-head { display: flex; justify-content: space-between; align-items: baseline; }
.pv-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.pv-tabs button { padding: 4px 10px; font-size: .82rem; }
.pv-tabs button.active { background: var(--link); color: #0b1620; border-color: transparent; }
.pv-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #3a4b58 0%, #1c252d 45%, #52463a 100%); }
.pv-frame::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 68% 38%, rgba(255,225,190,.28), transparent 42%), radial-gradient(circle at 22% 62%, rgba(140,180,220,.22), transparent 48%); }
.pv-frame iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: top left; background: transparent; pointer-events: none; }

/* save bar: stays in view while you work in settings */
.save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 10px; margin: 8px -16px 0; padding: 12px 16px;
  background: color-mix(in oklab, var(--panel) 94%, transparent); border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.save-bar .dirty-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.save-bar.dirty .dirty-dot { background: var(--amber); box-shadow: 0 0 0 4px color-mix(in oklab, var(--amber) 25%, transparent); }
.save-bar #save-note { color: var(--muted); font-size: .9rem; }
.save-bar.dirty #save-note { color: var(--text); font-weight: 600; }
.save-bar:not(.dirty) #save-btn { opacity: .55; }

.switch strong, .switch small { color: var(--text); }
.switch small { color: var(--muted); }
.preset-tile .pt-sample { border: 1px solid rgba(255,255,255,.06); }
/* See-through outputs inside this dark page: tell the browser both agree, so it doesn't paint an opaque backdrop */
iframe { color-scheme: normal; }

/* control page: one-tap message buttons lay out as small cards */
.msg-presets button { display: block; white-space: normal; text-align: left; min-width: 0; }
.msg-presets button .r { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* the pin toggle on free items is a faint clock, still tappable */
.pin:not(.on) { opacity: .35; }
.pin:not(.on):hover { opacity: .9; }
details.panel > summary { cursor: pointer; }

/* programme table: no Date column on single-day events, day headers on multi-day ones */
.rundown.single-day th:first-child, .rundown.single-day td:first-child { display: none; }
.rundown tr.dayhead td { padding: 16px 4px 6px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.ingest-head { align-items: flex-start; }

/* ---------- QPTGFX: quiet branding. Two tally lamps and a wordmark. ---------- */
.qpt-mark { display: inline-flex; gap: .16em; align-items: center; vertical-align: middle; }
.qpt-mark i { width: .62em; height: .62em; border-radius: 50%; background: #e5443a; position: relative; display: block; }
.qpt-mark i::after { content: ""; position: absolute; width: 22%; height: 22%; border-radius: 50%; background: #ffd9d4; top: 50%; }
.qpt-mark i:first-child::after { left: 52%; } .qpt-mark i:last-child::after { left: 26%; }
.qpt-word { font-family: "Montserrat", system-ui, sans-serif; font-weight: 800; letter-spacing: .03em; color: var(--text); }
.qpt-word b { font-weight: 800; color: var(--muted); }
/* front page: slightly clear */
.brand-home { display: inline-flex; align-items: center; gap: .45em; font-size: 1.35rem; }
.brand-home .qpt-mark { font-size: 1.15em; }
/* login */
.brand-login { display: flex; align-items: center; justify-content: center; gap: .4em; font-size: 2rem; margin-bottom: 18px; }
/* event, clients, test card: small and muted until hovered */
.brand-small { display: inline-flex; align-items: center; gap: .35em; font-size: .82rem; opacity: .7; text-decoration: none !important; }
.brand-small:hover { opacity: 1; }
.brand-small .qpt-word, .brand-small .qpt-word b { color: var(--muted); font-weight: 700; }
.crumb-sep { color: var(--muted); margin: 0 .2em; }
/* control page: just the two lamps, very small */
.brand-tiny { display: inline-flex; align-items: center; font-size: .8rem; opacity: .45; margin-left: 10px; text-decoration: none !important; }
.brand-tiny:hover { opacity: 1; }

/* control page: what a delay just did, with a one-tap correction */
.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--link); background: color-mix(in oklab, var(--link) 10%, var(--panel)); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }

/* what the programme was built from */
.sources { display: grid; gap: 2px; margin-top: 8px; font-size: .84rem; }
.src { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.src-kind { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.src-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

/* evidence under a proposed change, and a crop of the photo it came from */
.evidence { display: flex; gap: 10px; align-items: center; margin-top: 4px; font-size: .84rem; }
.evidence .crop { display: inline-block; width: 240px; flex: none; border-radius: 6px; border: 1px solid var(--line); background-repeat: no-repeat; }
details.merged { margin-top: 2px; }
