/* Street Camera
   Night street by default, daylight pavement when the system asks for light.
   One loud colour: postbox yellow. It marks where you are, the counting line,
   and the notice sign. Red is kept for alerts only. */
:root {
  --bg: #131a22;
  --surface: #1a232e;
  --raised: #222d3a;
  --line: #2f3c4c;
  --text: #e8edf2;
  --muted: #94a2b3;
  --yellow: #ffcc00;
  --on-yellow: #1b1500;
  --alert: #ff7466;
  --alert-bg: #3a1f1f;
  --ok: #5fd3a0;
  --dir-a: #6bb1ff;
  --dir-b: #d99cf5;
  --focus: #ffcc00;
  --radius: 10px;
  --rail: 208px;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eceeed;
    --surface: #ffffff;
    --raised: #f3f5f4;
    --line: #d3d8d6;
    --text: #17202a;
    --muted: #586472;
    --alert: #c2301d;
    --alert-bg: #fbe6e2;
    --ok: #1c7a53;
    --dir-a: #1f6fd0;
    --dir-b: #9340c4;
    --focus: #17202a;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.35rem; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; font-weight: 650; }
h3 { font-size: .93rem; font-weight: 600; }
a { color: inherit; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.num { font-variant-numeric: tabular-nums; }
.boot { padding: 40px; color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- controls ---------- */
button, select, input, textarea { font: inherit; color: inherit; }
.btn { background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 7px 13px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--alert); border-color: color-mix(in srgb, var(--alert) 55%, var(--line)); }
.btn.quiet { background: none; border-color: transparent; padding-inline: 8px; }
.btn.quiet:hover { background: var(--raised); }
.btn svg { width: 17px; height: 17px; flex: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=date], input[type=time],
select, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
  width: 100%; min-width: 0; }
textarea { resize: vertical; min-height: 76px; }
input[type=range] { width: 100%; accent-color: var(--yellow); }
input[type=checkbox], input[type=radio] { accent-color: var(--yellow); width: 17px; height: 17px; flex: none; margin: 2px 0 0; }
label.field { display: grid; gap: 5px; }
label.field > span, .field-label { font-size: .87rem; color: var(--muted); }
label.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
label.check small { display: block; color: var(--muted); font-size: .87rem; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 6px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed=true] { background: var(--raised); color: var(--text); box-shadow: inset 0 -2px 0 var(--yellow); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.end { justify-content: flex-end; }
.spread { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.stack { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; padding: 0 8px 16px; }
.brand img { width: 26px; height: 26px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; text-decoration: none;
  color: var(--muted); position: relative; }
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current=page] { color: var(--text); background: var(--surface); }
/* the counting line, reused as the "you are here" mark */
.nav a[aria-current=page]::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px;
  background: var(--yellow); border-radius: 0 3px 3px 0; }
.badge { margin-left: auto; background: var(--alert); color: #fff; border-radius: 99px; font-size: .78rem; font-weight: 650;
  min-width: 20px; padding: 0 6px; text-align: center; line-height: 20px; }
.rail-foot { margin-top: auto; display: grid; gap: 6px; padding: 0 8px; font-size: .87rem; color: var(--muted); }
.main { min-width: 0; padding: 20px 26px 60px; }
.pagehead { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: .87rem; padding: 3px 10px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.chip.ok { color: var(--text); } .chip.ok::before { background: var(--ok); }
.chip.warn { color: var(--text); } .chip.warn::before { background: var(--yellow); }
.chip.bad { color: var(--alert); } .chip.bad::before { background: var(--alert); }
.chip.plain::before { display: none; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.panel > h2 { margin-bottom: 12px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.notice { border-left: 3px solid var(--yellow); background: var(--raised); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.notice.bad { border-color: var(--alert); }
.empty { color: var(--muted); padding: 28px 12px; text-align: center; }
.empty strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }

/* ---------- live ---------- */
.live-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(290px, 1fr); gap: 16px; align-items: start; }
.video { background: #000; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.video img { width: 100%; height: 100%; object-fit: contain; display: block; }
.video .offline { position: absolute; inset: 0; display: grid; place-items: center; color: #cbd3dc; background: #0b0f14; text-align: center; padding: 20px; }
.controls { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 14px; }
.pad { display: grid; grid-template-columns: repeat(3, 42px); grid-template-rows: repeat(3, 36px); gap: 4px; }
.pad .btn { padding: 0; justify-content: center; }
.pad .up { grid-area: 1 / 2; } .pad .left { grid-area: 2 / 1; } .pad .home { grid-area: 2 / 2; }
.pad .right { grid-area: 2 / 3; } .pad .down { grid-area: 3 / 2; }
.today-total { font-size: 2.6rem; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dirs { display: grid; gap: 8px; margin-top: 14px; }
.dir { display: grid; grid-template-columns: minmax(90px, auto) 1fr auto; gap: 10px; align-items: center; font-size: .93rem; }
.dir .bar { height: 8px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.dir .bar i { display: block; height: 100%; border-radius: 4px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.chart { display: block; overflow: visible; max-width: 100%; }
.chart-holder { width: 100%; min-width: 0; overflow: hidden; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .axis { stroke: var(--line); }
.readout { min-height: 1.4em; font-size: .87rem; color: var(--muted); margin-top: 4px; }
.alert-list { list-style: none; margin: 0; padding: 0; }
.alert-list li + li { border-top: 1px solid var(--line); }
.alert-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; align-items: center; padding: 9px 6px; width: 100%;
  text-align: left; background: none; border: 0; border-radius: 8px; cursor: pointer; text-decoration: none; }
.alert-item:hover, .alert-item[aria-current=true] { background: var(--raised); }
.alert-item img, .alert-item .noimg { width: 84px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; background: #000; display: block; }
.status { font-size: .8rem; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.status.new { color: var(--alert); border-color: currentColor; background: var(--alert-bg); }
.status.confirmed { color: var(--text); border-color: var(--yellow); }

/* ---------- alerts ---------- */
.inbox { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.inbox .list { padding: 8px; max-height: calc(100vh - 150px); overflow: auto; }
.detail img.evidence { width: 100%; border-radius: 8px; background: #000; display: block; aspect-ratio: 16 / 9; object-fit: contain;
  max-height: min(56vh, 600px); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }

/* ---------- captures ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.card { background: var(--raised); border: 1px solid transparent; border-radius: 8px; overflow: hidden; padding: 0; text-align: left; cursor: pointer; }
.card:hover { border-color: var(--muted); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #000; }
.card .cap { padding: 7px 9px; font-size: .87rem; display: flex; justify-content: space-between; gap: 8px; }
.card .cap > :last-child { white-space: nowrap; }
.tag.loiter { color: var(--alert); font-weight: 600; }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 0; width: min(1000px, 94vw); }
dialog::backdrop { background: rgba(5, 9, 14, .72); }
dialog.small { width: min(430px, 92vw); padding: 20px; }
dialog .bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 14px; align-items: center; }
dialog img.full { width: 100%; display: block; background: #000; }

/* ---------- statistics ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .v { font-size: 1.7rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tile .l { color: var(--muted); font-size: .87rem; }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; font-size: .78rem; color: var(--muted); }
.heat .cell { aspect-ratio: 1; border-radius: 3px; background: var(--raised); min-width: 0; }
.heat .hr { text-align: center; }
.heat .wd { display: flex; align-items: center; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .87rem; color: var(--muted); align-items: center; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); }
table.data th, table.data td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.num, table.data th.num { text-align: right; }
.scroll-x { overflow-x: auto; }

/* ---------- zones editor ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.stage { position: relative; background: #000; border-radius: 8px; overflow: hidden; touch-action: none; user-select: none; }
.stage img { width: 100%; display: block; }
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .shape { fill-opacity: .16; stroke-width: 2; vector-effect: non-scaling-stroke; cursor: move; }
.stage .shape.zone { fill: #fff; stroke: #fff; }
.stage .shape.mask { fill: #000; fill-opacity: .72; stroke: #9aa7b6; stroke-dasharray: 6 4; }
.stage .shape.line { stroke: #ffcc00; stroke-width: 3; fill: none; cursor: move; }
.stage .shape.sel { stroke: #ffcc00; stroke-width: 3; }
.stage .handle { fill: #ffcc00; stroke: #17202a; stroke-width: 2; vector-effect: non-scaling-stroke; cursor: grab; }
.stage .handle.picked { fill: #fff; }
.stage text { fill: #fff; font-size: 26px; font-weight: 600; paint-order: stroke; stroke: rgba(0, 0, 0, .75); stroke-width: 5px; pointer-events: none; }
.shape-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.shape-list button { width: 100%; text-align: left; background: none; border: 0; padding: 7px 9px; border-radius: 7px; cursor: pointer;
  display: flex; gap: 9px; align-items: center; }
.shape-list button:hover, .shape-list button[aria-pressed=true] { background: var(--raised); }
.shape-list button[aria-pressed=true] { box-shadow: inset 3px 0 0 var(--yellow); }
.shape-list .k { width: 12px; height: 12px; border-radius: 3px; border: 2px solid #fff; flex: none; }
.shape-list .k.line { border-color: var(--yellow); height: 3px; border-width: 0; background: var(--yellow); }
.shape-list .k.mask { background: #000; border-style: dashed; border-color: #9aa7b6; }

/* ---------- settings ---------- */
.settings { display: grid; gap: 16px; max-width: 860px; }
.mode-opts { display: grid; gap: 8px; }
.mode-opts label { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.mode-opts label:has(input:checked) { border-color: var(--yellow); background: var(--raised); }
.meter { height: 8px; background: var(--raised); border-radius: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--dir-a); border-radius: 4px; }

/* ---------- privacy ---------- */
.privacy { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.privacy .wide { grid-column: 1 / -1; }
/* the enamel notice sign: the one place the yellow is allowed to shout */
.sign { background: #ffcc00; color: #17202a; border-radius: 14px; padding: 26px 28px; border: 6px solid #17202a;
  outline: 3px solid #ffcc00; margin: 3px; max-width: 520px; }
.sign h3 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; margin: 10px 0 12px; }
.sign svg { width: 64px; height: 64px; }
.sign p { margin: 6px 0; font-size: 1rem; }
.sign p strong { font-weight: 700; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.twocol ul, ol.steps { margin: 6px 0 0; padding-left: 20px; }
ol.steps li + li, .twocol li + li { margin-top: 6px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login form { width: min(380px, 100%); display: grid; gap: 16px; }
.login .brand { padding: 0; font-size: 1.2rem; }

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 50; }
.toast { background: var(--text); color: var(--bg); padding: 9px 14px; border-radius: 8px; max-width: 340px; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
.toast.bad { background: var(--alert); color: #fff; }

/* ---------- small screens ---------- */
@media (max-width: 1000px) {
  .live-grid, .inbox, .editor, .privacy { grid-template-columns: minmax(0, 1fr); }
  .inbox .list { max-height: 340px; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; inset: auto 0 0 0; height: auto; flex-direction: row; padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--line); background: var(--bg); z-index: 20; overflow-x: auto; }
  .brand, .rail-foot { display: none; }
  .nav { flex-direction: row; gap: 0; width: 100%; justify-content: space-between; }
  .nav a { flex-direction: column; gap: 2px; font-size: .72rem; padding: 6px 8px; min-width: 58px; }
  .nav a[aria-current=page]::before { left: 12px; right: 12px; top: -4px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .badge { position: absolute; top: 2px; right: 6px; margin: 0; }
  .main { padding: 14px 16px 96px; }
  .twocol { grid-template-columns: 1fr; }
  #toasts { bottom: 84px; right: 12px; left: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: rise .18s ease-out; }
  @keyframes rise { from { transform: translateY(8px); opacity: 0; } }
}

/* ---------- print: the sign or the record, nothing else ---------- */
@media print {
  body { background: #fff; color: #000; }
  .rail, .pagehead, #toasts, .no-print { display: none !important; }
  .shell { display: block; } .main { padding: 0; }
  body.print-sign .privacy > :not(.print-sign-target), body.print-record .privacy > :not(.print-record-target) { display: none; }
  .panel { border: 0; padding: 0; background: none; }
  .sign { max-width: none; margin: 8mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sign h3 { font-size: 34pt; } .sign p { font-size: 15pt; } .sign svg { width: 34mm; height: 34mm; }
  table.data th, table.data td { border-color: #999; }
  input, textarea { border: 0 !important; background: none !important; padding: 0 !important; color: #000 !important; }
}

/* ---------- setup guide, server link, live states (Setup and link UI stream) ---------- */
a.chip { text-decoration: none; }
a.chip:hover { border-color: var(--muted); }

/* live: why there is no picture. The picture area is dark in both themes, so are these. */
.video .veil { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  background: #0b0f14; color: #cbd3dc; overflow: auto; }
.video .veil > div { max-width: 48ch; display: grid; gap: 8px; justify-items: center; }
.video .veil strong { color: #fff; font-size: 1.05rem; font-weight: 600; }
.video .veil p { font-size: .93rem; }
.video .veil .btn { background: #222d3a; border-color: #3a4859; color: #e8edf2; margin-top: 4px; }
.setup-note { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* setup guide: a real sequence, so the steps are numbered */
.setup-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 900px; counter-reset: step; }
.setup-steps > li { counter-increment: step; min-width: 0; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: var(--radius); }
.step > summary::-webkit-details-marker { display: none; }
.step > summary::before { content: counter(step); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--raised); border: 1px solid var(--line); font-weight: 650; font-variant-numeric: tabular-nums; }
.step > summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); margin: -4px 4px 0 2px; }
.step[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.step-title { display: grid; gap: 1px; flex: 1; min-width: 0; }
.step-name { font-weight: 650; font-size: 1.05rem; }
.step-state { flex: none; font-size: .8rem; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.step-state.done { color: var(--ok); border-color: currentColor; }
.step-state.attn { color: var(--alert); border-color: currentColor; background: var(--alert-bg); }
.step-state.todo { color: var(--text); border-color: var(--yellow); }
.step-body { padding: 4px 16px 18px 58px; }
.setup-preview { width: 100%; max-width: 520px; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border-radius: 8px; display: block; }
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cam-card { background: var(--raised); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cam-card img, .cam-noshot { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #000; }
.cam-noshot { display: grid; place-items: center; text-align: center; padding: 12px; color: #cbd3dc; }
.cam-info { display: grid; gap: 10px; justify-items: start; padding: 10px 12px; }
.move-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.test-row { display: grid; grid-template-columns: minmax(120px, 1fr) auto; gap: 6px 12px; align-items: center; }
.test-row > :last-child { grid-column: 1 / -1; min-height: 1.3em; }
.opt-list { display: grid; gap: 8px; }
.opt { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.opt.current { border-color: var(--yellow); background: var(--raised); }
details.more > summary { cursor: pointer; color: var(--muted); }
details.more[open] > summary { color: var(--text); }

/* server link and camera boxes */
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.plain legend { padding: 0; font-size: .87rem; color: var(--muted); margin-bottom: 8px; }
.field-like { display: grid; gap: 5px; min-width: 0; }
.copy-row { display: flex; gap: 6px; }
.copy-row input { flex: 1; }
.device-list { list-style: none; margin: 0; padding: 0; }
.device-list li { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 0; }
.device-list li + li { border-top: 1px solid var(--line); }
.device-main { display: grid; gap: 3px; min-width: 0; }
.state-ok { color: var(--ok); }
.state-off { color: var(--alert); }
@media (max-width: 760px) {
  /* eight sections now: share the bottom bar evenly instead of scrolling Settings and Privacy out of sight */
  .nav a { min-width: 0; flex: 1 1 0; padding: 6px 1px; font-size: .66rem; }
  .nav a > span:not(.badge) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .step > summary { gap: 10px; padding: 12px; }
  .step-body { padding: 4px 14px 16px; }
  .move-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print { .setup-note { display: none; } }
