/* Marketing App — "Day Ledger, calmer" (UI/UX overhaul, 2026-09-29).
   Loaded after tokens.css and app.css. Same palette and fonts; this layer changes
   type scale, spacing, tap targets and page anatomy, and adds the shared
   components every page is built from. Approved mockups:
   plans/2026-09-29-uiux-overhaul/mockups/. */

:root { --r: 10px; --rail-w: 232px; --gap: 24px; }

body { font: 400 16px/1.55 var(--sans); }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
code { font: 400 .9em/1.4 var(--mono); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { left: 8px; }

/* ---------- shell ---------- */

.shell { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
.rail { padding: 20px 14px; gap: 4px; background: var(--paper); }
.rail .wordmark { padding: 4px 10px 12px; font: 600 16px/1.1 var(--display); }
.org-switch { border: 0; margin: 0 0 14px; position: relative; }
.org-switch > summary {
  font: 500 14px/1.2 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink);
  border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 10px 12px;
  justify-content: space-between;
}
.org-switch > summary:hover { border-color: var(--ink); }
.org-switch .org-menu { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); margin-top: 6px; padding: 6px; }
.org-menu a, .org-menu .org-item { border-radius: 6px; padding: 10px 12px; font-size: 14px; }
.org-menu .org-item[aria-current="true"] { border-left: 0; padding-left: 12px; font-weight: 600; }
.org-menu .org-item[aria-current="true"]::after { content: " ✓"; }
.rail a.nav, .rail button.nav {
  display: flex; align-items: center; gap: 10px; width: 100%;
  font: 500 15px/1.2 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted);
  padding: 10px 12px; border: 0; border-radius: 8px; background: none; text-decoration: none; cursor: pointer; text-align: left;
}
.rail a.nav svg, .rail button.nav svg { width: 18px; height: 18px; flex: none; }
.rail a.nav:hover, .rail button.nav:hover { background: var(--panel-dim); color: var(--ink); }
.rail a.nav[aria-current="page"] { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); border: 0; }
.rail a.nav .count { margin-left: auto; background: var(--attn); color: var(--paper); border-radius: 999px; font: 600 12px/1 var(--sans); padding: 3px 8px; }
.rail .sep { height: 1px; background: var(--line-soft); margin: 10px 4px; }
.rail .rail-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.rail .rail-bottom a.nav, .rail .rail-bottom button.nav { font-size: 14px; padding: 8px 12px; }
.rail .me { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--line-soft); margin-top: 8px;
  font: 400 13px/1.4 var(--sans); color: var(--muted); }
.rail .me b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
.rail .me .signout { display: inline; margin: 0; }
.rail .me .signout button { font: inherit; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.rail .me .signout button:hover { color: var(--ink); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--panel-dim); border: 1px solid var(--line);
  display: grid; place-items: center; font: 600 12px/1 var(--sans); color: var(--ink); flex: none; }
.theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: inline; }

.main { padding: 0 40px 80px; max-width: 1180px; width: 100%; }
.daybar { border-bottom: 0; padding: 20px 0 8px; font: 400 13px/1.3 var(--sans); align-items: center; }
.daybar .mode { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 5px 12px; background: var(--panel);
  letter-spacing: 0; color: var(--ink); text-decoration: none; }
.daybar .mode::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.daybar .mode.so::before { background: var(--attn); }
a.mode:hover { border-color: var(--ink); }

/* mobile shell: top bar + bottom tab bar + "More" sheet */
.mbar, .tabbar, .more-sheet { display: none; }

/* ---------- page anatomy ---------- */

.crumbs { font: 400 14px/1.4 var(--sans); color: var(--muted); margin: 18px 0 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; flex-wrap: wrap; margin: 18px 0 28px; }
.crumbs + .page-head { margin-top: 0; }
.page-head h1, h1.page { font: 600 34px/1.15 var(--display); letter-spacing: -.01em; margin: 0 0 6px; }
.page-head .purpose, .page-sub { color: var(--muted); font-size: 17px; margin: 0; max-width: 62ch; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
h1.page { margin-top: 18px; }
h1.page + .page-sub { margin-bottom: 28px; }
.page-head h1 .pill { vertical-align: middle; margin-left: 6px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.section-head h2, .panel > h2, .card > h2 { font: 600 20px/1.25 var(--display); margin: 0; }
.section-head .sub, .panel .sub { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
h2.h { font: 600 20px/1.25 var(--display); margin: 0 0 4px; }
h3.h { font: 600 16px/1.3 var(--sans); margin: 0 0 4px; }

.brief { font-weight: 600; margin-top: 18px; }

/* panels become cards: softer border, rounder, roomier */
.panel, .card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px 24px; }
.panel + .panel { margin-top: var(--gap); }
.panel.attn, .card.attn { border-color: var(--attn); }
.stack { gap: var(--gap); }
.cols { gap: var(--gap); }
.cols.side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 980px) { .cols.side { grid-template-columns: 1fr; } }

.eyebrow { font-size: 12px; letter-spacing: .08em; }

/* tabs (one style for every tab bar) and sub-navigation pills */
.tabs, .subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 28px; overflow-x: auto; scrollbar-width: none; background: none; }
.tabs a, .subtabs a { font: 500 15px/1.2 var(--sans); letter-spacing: 0; text-transform: none; padding: 10px 14px; color: var(--muted);
  text-decoration: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; background: none; border-radius: 0; }
.tabs a:hover, .subtabs a:hover { color: var(--ink); background: none; }
.tabs a[aria-current="page"], .subtabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); background: none; box-shadow: none; }
.tabs .count, .subtabs .count, .tabs .n { color: var(--faint); font: 400 14px/1 var(--sans); margin-left: 4px; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: -8px 0 24px; }
.subnav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font: 500 14px/1.2 var(--sans); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.subnav a:hover:not([aria-current]) { background: var(--panel-dim); color: var(--ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.chips a { font: 400 14px/1.2 var(--sans); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); background: var(--panel); }
.chips a[aria-current] { border-color: var(--ink); color: var(--ink); font-weight: 500; }
.chips .n { color: var(--faint); margin-left: 4px; }

/* ---------- buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  font: 500 15px/1 var(--sans); border-radius: 8px; white-space: nowrap; }
.btn.ghost, .btn.secondary { background: var(--panel); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--muted); padding: 0 10px; }
.btn.quiet:hover { color: var(--ink); background: transparent; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.danger:hover { background: var(--err-bg); }
.btn-row { gap: 10px; }
button.linky, .linky { font-size: 14px; }

/* ---------- status pills: sentence case, dot + word ---------- */

.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--sans); letter-spacing: 0; text-transform: none;
  padding: 5px 10px; border-radius: 999px; border: 0; background: var(--panel-dim); color: var(--ink); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.pill.attn { background: var(--attn-bg); color: var(--attn); } .pill.attn::before { background: var(--attn); }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.ok::before { background: var(--ok); }
.pill.err { background: var(--err-bg); color: var(--err); } .pill.err::before { background: var(--err); }
.pill.plain::before { display: none; }

/* ---------- lists ---------- */

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.list > li:first-child { border-top: 0; padding-top: 4px; }
.list .main-col { flex: 1; min-width: 0; }
.list .title { font-weight: 500; text-decoration: none; color: var(--ink); }
a.title:hover { text-decoration: underline; }
.list .meta, .rows .meta { color: var(--muted); font: 400 14px/1.45 var(--sans); }
.list .end { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rows .title { font-weight: 500; }

/* ---------- tables: readable, and cards on phones ---------- */

table.grid { font-size: 15px; }
table.grid th { font: 500 13px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); padding: 8px 12px 8px 0; }
table.grid td { padding: 13px 12px 13px 0; }
.table-wrap { overflow-x: auto; }

/* ---------- forms ---------- */

.field { margin-bottom: 20px; }
label.f, fieldset.plain > legend { font: 500 15px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0 0 6px; }
.field label.f { display: block; }
.req-note { color: var(--muted); font-weight: 400; font-size: 13px; }
input[type="text"], input[type="email"], input[type="url"], input[type="date"], input[type="number"], input[type="password"],
input[type="datetime-local"], input[type="time"], input[type="search"], input[type="tel"], select, textarea {
  min-height: 46px; font: 400 16px/1.4 var(--sans); border-radius: 8px; padding: 10px 12px; }
textarea { min-height: 110px; }
.hint { font: 400 14px/1.5 var(--sans); }
.errorlist { color: var(--err); font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.form-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 8px; }
.form-narrow { max-width: 720px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
  background: var(--panel); cursor: pointer; margin-top: 8px; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.choice b { display: block; font-weight: 500; }
.choice span { color: var(--muted); font-size: 14px; }

/* ---------- notices: tinted, thin — never a thick side bar ---------- */

.notice { border: 1px solid var(--line-soft); border-left-width: 1px; border-radius: var(--r); background: var(--panel-dim); padding: 14px 18px; font-size: 15px; }
.notice.attn, .messages .notice.warning { border-color: color-mix(in srgb, var(--attn) 40%, transparent); background: var(--attn-bg); border-left-color: color-mix(in srgb, var(--attn) 40%, transparent); }
.notice.err, .messages .notice.error { border-color: color-mix(in srgb, var(--err) 40%, transparent); background: var(--err-bg); border-left-color: color-mix(in srgb, var(--err) 40%, transparent); }
.notice.ok, .messages .notice.success { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-bg); border-left-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.notice .fix { font: 400 14px/1.5 var(--sans); }
.messages { margin: 12px 0 0; }

/* "what happens next" hint */
.next-step { display: flex; gap: 12px; align-items: flex-start; background: var(--panel-dim); border-radius: var(--r); padding: 16px 18px; font-size: 15px; }
.next-step::before { content: "→"; font-weight: 600; }
.next-step b { display: block; }

/* numbered steps (first-use, flows) */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps > li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps > li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font: 600 13px/1 var(--sans); background: var(--panel); }
.steps > li.done::before { content: "✓"; background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.steps > li.now::before { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.flow { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 24px; }
.flow > li { flex: 1 1 170px; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 12px 14px; background: var(--panel); font-size: 14px; color: var(--muted); }
.flow > li b { display: block; color: var(--ink); font-size: 15px; font-weight: 500; }
.flow > li.done { border-color: var(--ok); }
.flow > li[aria-current="step"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* "Technical details": everything technical lives here, closed by default */
details.tech { border: 1px dashed var(--line); border-radius: var(--r); padding: 0 18px; margin-top: var(--gap); }
details.tech > summary { cursor: pointer; padding: 14px 0; font: 500 15px/1.2 var(--sans); color: var(--muted); list-style: none; display: flex; align-items: center; gap: 8px; }
details.tech > summary::-webkit-details-marker { display: none; }
details.tech > summary::before { content: "▸"; transition: transform .15s; }
details.tech[open] > summary::before { transform: rotate(90deg); }
details.tech[open] { padding-bottom: 16px; }
details.tech > summary:hover { color: var(--ink); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font: 400 13px/1.5 var(--mono); overflow-wrap: anywhere; }

/* empty states */
.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 48px 24px; }
.empty .lede, .empty h2 { font: 600 20px/1.3 var(--display); color: var(--ink); margin: 0 0 6px; }
.empty p { max-width: 50ch; margin-left: auto; margin-right: auto; }

/* confirm dialog (<dialog>) — confirm pages keep working without JS */
dialog.confirm { border: 0; border-radius: 14px; padding: 24px; max-width: 520px; width: calc(100% - 32px); background: var(--panel); color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
dialog.confirm::backdrop { background: rgba(20, 24, 20, .45); }
dialog.confirm h2 { font: 600 22px/1.25 var(--display); margin: 0 0 10px; }
.confirm-page { max-width: 640px; }

/* actor marks and links: keep glyph + word, calmer type */
.actor { font: 400 14px/1.5 var(--sans); letter-spacing: 0; text-transform: none; }
.ledger .what .by { font: 400 13px/1.4 var(--sans); text-transform: none; letter-spacing: 0; color: var(--muted); }
.ledger .t { color: var(--muted); }
a.extlink { font: 500 13px/1 var(--sans); padding: 4px 8px; border-radius: 6px; }

/* kept dashboard components, more legible labels */
.chan { border-radius: 6px; }
.chan .grp { font-size: 10.5px; color: var(--muted); }
.chan .stats .sk { font-size: 10px; color: var(--muted); }
.chan .foot { font-size: 12px; color: var(--muted); }
.metric .k { font-size: 11px; color: var(--ink); }
.metric .d { font-size: 12px; color: var(--muted); }
.seg { border-radius: 6px; }
.seg a { font-size: 11px; padding: 8px 11px; }

/* quick-action tiles (campaign "Add to this campaign", settings hub) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tiles.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tile { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line-soft); background: var(--panel); border-radius: var(--r); padding: 16px 18px; }
a.tile:hover { border-color: var(--ink); }
.tile b, .tile h3 { display: block; font: 600 16px/1.3 var(--sans); margin: 0 0 4px; }
.tile span, .tile p { color: var(--muted); font-size: 14px; margin: 0; }
.tile .pill { margin-top: 10px; }
.group-label { margin: 30px 0 12px; font: 500 13px/1 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.progress { height: 8px; border-radius: 99px; background: var(--panel-dim); overflow: hidden; margin: 10px 0 6px; }
.progress > i { display: block; height: 100%; background: var(--ok); }

.small { font-size: 14px; }
.hide-desktop { display: none; }

/* ---------- phones ---------- */

@media (max-width: 880px) {
  .shell { display: block; }
  .rail { display: none; }
  .main { padding: 0 16px 110px; }
  .mbar { display: flex; position: sticky; top: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
  .mbar .wordmark { font: 600 16px/1 var(--display); padding: 0; }
  .mbar .wordmark a { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
  .mbar .org-switch { margin: 0; max-width: 58vw; }
  .mbar .org-switch > summary { padding: 7px 10px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar .org-switch .org-menu { position: absolute; right: 0; min-width: 220px; z-index: 30; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--panel); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font: 500 11.5px/1.1 var(--sans);
    color: var(--muted); text-decoration: none; padding: 6px 2px; background: none; border: 0; position: relative; min-height: 48px; cursor: pointer; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar [aria-current="page"] { color: var(--ink); }
  .tabbar .count { position: absolute; top: 1px; left: calc(50% + 6px); background: var(--attn); color: var(--paper); border-radius: 999px; font-size: 11px; padding: 2px 6px; }
  .more-sheet[open] { display: block; position: fixed; inset: auto 0 0 0; z-index: 30; background: var(--panel); border-radius: 16px 16px 0 0;
    padding: 12px 16px calc(84px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); border: 0; width: 100%; max-width: none; margin: 0; }
  .more-sheet a.nav, .more-sheet button.nav { display: flex; align-items: center; gap: 10px; width: 100%; font: 500 16px/1.2 var(--sans); padding: 14px 12px;
    color: var(--ink); text-decoration: none; background: none; border: 0; border-radius: 8px; text-align: left; cursor: pointer; }
  .more-sheet svg { width: 18px; height: 18px; }
  .more-sheet .signout { margin: 0; }
  /* no JS: "More" is a plain list at the foot of the page, reached by its link */
  html:not(.js) .main { padding-bottom: 16px; }
  html:not(.js) .more-sheet { display: block; margin: 0 16px; padding: 8px 0 calc(84px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); }
  html:not(.js) .more-sheet .theme-toggle { display: none; }
  .daybar { display: none; }
  /* the approval mode, short, in the phone top bar (the day bar is hidden) */
  .mbar .mode { display: inline-flex; align-items: center; gap: 6px; flex: none; border: 1px solid var(--line); border-radius: 999px;
    padding: 5px 10px; min-height: 32px; background: var(--panel); color: var(--ink); text-decoration: none; font: 500 12.5px/1 var(--sans); white-space: nowrap; }
  .mbar .mode::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
  .mbar .mode.so::before { background: var(--attn); }
  .mbar .org-switch { margin-left: auto; }
}
@media (max-width: 480px) {
  /* room for the mode pill: the logo alone links Home (the link keeps its name) */
  .mbar .wordmark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .page-head h1, h1.page { font-size: 27px; }
  .page-head .purpose, .page-sub { font-size: 16px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn:not(.ghost):not(.quiet):not(.danger) { flex: 1; }
  .panel, .card { padding: 18px 16px; }
  .list > li { flex-wrap: wrap; gap: 8px 12px; }
  .list .end { width: 100%; }
  .hide-phone { display: none; }
  .hide-desktop { display: block; }
  /* data tables become stacked cards; th text comes from data-label */
  table.grid.stack-sm thead { display: none; }
  table.grid.stack-sm, table.grid.stack-sm tbody, table.grid.stack-sm tr, table.grid.stack-sm td { display: block; width: 100%; }
  table.grid.stack-sm tr { border-bottom: 1px solid var(--line-soft); padding: 12px 0; }
  table.grid.stack-sm td { border: 0; padding: 3px 0; text-align: left !important; }
  table.grid.stack-sm td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
}

/* the old 24px square theme toggle becomes a menu row */
.rail .theme-toggle, .more-sheet .theme-toggle { width: 100%; height: auto; border: 0; }
html:not(.js) .theme-toggle { display: none; }

/* links inside notices inherit the notice colour; buttons keep their own */
.notice a.btn { color: var(--paper); text-decoration: none; }
.notice a.btn.ghost, .notice a.btn.quiet, .notice a.btn.danger { color: var(--ink); }
.notice a.btn.danger { color: var(--err); }
.count-soft { color: var(--faint); font-weight: 400; margin-left: 4px; }

/* "a · b · c" from separate spans, so an empty first part never leaves a stray dot */
.dots > span + span::before { content: "· "; }
