/* ClickNote dashboard. Every colour, radius, space and type size here is a token from the design
   system (tokens.json): paper ground, white surfaces separated by hairlines (no shadows on cards),
   the marker-orange stamp on the one primary action, and mono for anything that came from the DOM.
   Fonts are self-hosted (copied from @fontsource by scripts/build-widget.mjs), so the dashboard
   makes no third-party requests and the CSP stays default-src 'self'.

   Layout: a sidebar beside the page on a wide screen; under 961px a slim bar with a menu, and
   everything in one column. Nothing on a page may be wider than the window: long strings wrap or
   scroll inside their own box, and tables people act on become stacked rows on a phone. */

@font-face { font-family: "Bricolage Grotesque"; src: url("bricolage-grotesque-v5.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("schibsted-grotesk-v5.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("martian-mono-v5.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f2f1ec;
  --surface: #ffffff;
  --surface-sunk: #e8e7e1;
  --line: #d9d8d1;
  --line-strong: #8a8983;
  --ink: #15171a;
  --ink-muted: #585a5f;
  --marker: #ff5b1f;
  --on-marker: #15171a;
  --marker-ink: #b8370a;
  --marker-tint: #ffe2d4;
  /* Data marks (the operator's charts, the bar of a project's notes): a step chosen for each theme. */
  --chart: #b8370a;
  --chart-track: #ffe2d4;
  --bar-progress: #2b44d6;
  --bar-done: #1b5e3e;
  --highlight: #d4ff3a;
  --on-highlight: #15171a;
  --chrome: #15171a;
  --on-chrome: #f2f1ec;
  --chrome-hover: #2e3136;
  --chrome-muted: #a3a6ab;
  --pin-ring: #ffffff;
  --pin-edge: #15171a;
  --focus: #2b44d6;
  --open-bg: var(--marker-tint);
  --open-ink: #9a2e06;
  --progress-bg: #dfe5ff;
  --progress-ink: #1f3bb3;
  --done-bg: #d9eee1;
  --done-ink: #1b5e3e;
  --danger: #a8102b;
  --danger-bg: #fde4e7;
  --shadow-stamp: 3px 3px 0 #15171a;
  --shadow-stamp-sm: 2px 2px 0 #15171a;
  --shadow-float: 0 12px 32px rgba(21, 23, 26, 0.18);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-notch: 2px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --font-display: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, sans-serif;
  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* The least a control may measure where a finger presses it. */
  --touch: 44px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #111214;
    --surface: #1b1d21;
    --surface-sunk: #0b0c0e;
    --line: #2c2f34;
    --line-strong: #6c7077;
    --ink: #f2f1ec;
    --ink-muted: #a3a6ab;
    --marker: #ff6d33;
    --marker-ink: #ff8a5c;
    --marker-tint: #3a1c10;
    --chart: #f05a22;
    --chart-track: #3a1c10;
    --bar-progress: #8ea0ff;
    --bar-done: #94d9b2;
    --chrome: #2a2d32;
    --chrome-hover: #3d4147;
    --chrome-muted: #b4b7bc;
    --pin-edge: #000000;
    --focus: #8ea0ff;
    --open-ink: #ffb08f;
    --progress-bg: #1a2246;
    --progress-ink: #b3c0ff;
    --done-bg: #12291d;
    --done-ink: #94d9b2;
    --danger: #ff8796;
    --danger-bg: #3b1218;
    --shadow-stamp: 3px 3px 0 #5c1d06;
    --shadow-stamp-sm: 2px 2px 0 #000000;
    --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.55);
  }
  /* On dark grounds the mark is its reversed form: no ink edge, no shadow. */
  .mark__shadow { display: none; }
  .mark__body { fill: #ff6d33; stroke: none; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body { font: 400 15px/22px var(--font-sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: var(--marker-ink); text-underline-offset: 2px; }
h1 { font: 700 28px/32px var(--font-display); letter-spacing: -0.02em; margin: 0; }
h2 { font: 700 20px/26px var(--font-display); letter-spacing: -0.01em; margin: 0 0 var(--space-3); }
h3 { font: 600 15px/22px var(--font-sans); margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-3); }
img, svg { max-width: 100%; }
code, .mono, pre { font-family: var(--font-mono); font-size: 12px; line-height: 20px; }
code { overflow-wrap: anywhere; }
pre.code { background: var(--surface-sunk); border-radius: var(--radius-sm); padding: var(--space-3) 14px; overflow: auto; white-space: pre-wrap; word-break: break-all; margin: 0; }
.muted { color: var(--ink-muted); }
.small { font-size: 13px; line-height: 18px; }
.mt { margin-top: var(--space-3); }
.wrap { word-break: break-all; }
.eyebrow { font: 600 11px/14px var(--font-sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--marker-ink); margin: 0; }
.eyebrow a { color: inherit; }
.eyebrow--quiet { color: var(--ink-muted); }
.label { display: block; font: 600 14px/18px var(--font-sans); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: var(--space-2); top: -80px; z-index: 50; display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 var(--space-4); background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-sm); font: 600 14px/18px var(--font-sans); }
.skip:focus { top: var(--space-2); }

/* Brand */
.mark { flex: none; display: block; }
.wordmark { font: 800 19px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }

/* ---------------------------------------------------------------- The frame */
/* The sidebar is as wide as the design draws it on a big screen (320px at 1440) and narrower on a smaller one. */
.shell { display: grid; grid-template-columns: clamp(232px, 22.2vw, 320px) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.bar { display: none; }
.nav { background: var(--surface); border-right: 1px solid var(--line); min-width: 0; }
.nav__in { padding: 20px var(--space-3) var(--space-4); display: flex; flex-direction: column; gap: var(--space-1); position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
.nav__brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; padding: 0 var(--space-2) var(--space-4); }
/* The workspace and where it stands */
.ws { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px var(--space-3); margin-bottom: var(--space-4); min-width: 0; }
a.ws:hover { border-color: var(--line-strong); }
.ws__name { font: 600 14px/18px var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws__line { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.ws__state--alert { color: var(--danger); font-weight: 600; }
/* The links */
.nav__links { display: flex; flex-direction: column; gap: var(--space-1); flex: 1 0 auto; }
.nav__in > *, .flyout__body > * { flex-shrink: 0; }
.nav__head { margin: 0; padding: 0 var(--space-3) var(--space-1); font: 600 11px/14px var(--font-sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-muted); }
.nav__link { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font: 600 14px/18px var(--font-sans); }
.nav__link:hover { background: var(--surface-sunk); }
.nav__link.is-active { background: var(--marker); color: var(--on-marker); }
.nav__link--sub { font-weight: 500; min-height: 36px; }
.nav__link--button { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; }
.nav__count { flex: none; font: 600 11px/16px var(--font-mono); }
.nav__count--loud { background: var(--ink); color: var(--paper); border-radius: var(--radius-pill); padding: 1px var(--space-2); }
.nav__link.is-active .nav__count--loud { background: var(--on-marker); color: #f2f1ec; }
.nav__group { margin: var(--space-4) 0 0; padding: var(--space-3) 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-1); }
.nav__foot { margin-top: auto; padding: var(--space-3) 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.nav__group + .nav__foot { margin-top: auto; }
.nav__links > .nav__foot { margin-top: auto; }
/* The project you are in, and the way to another */
.switch { margin-bottom: var(--space-1); }
.switch__btn { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); min-height: 44px; padding: var(--space-1) var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; list-style: none; }
.switch__btn::-webkit-details-marker { display: none; }
.switch__btn:hover { background: var(--surface-sunk); }
.switch__now { display: flex; flex-direction: column; min-width: 0; }
.switch__name { font: 600 14px/18px var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch__host { font: 400 12px/16px var(--font-sans); color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch__do { flex: none; font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.switch[open] .switch__btn { border-color: var(--ink); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.switch__list { display: flex; flex-direction: column; padding: var(--space-1); border: 1px solid var(--ink); border-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); max-height: 320px; overflow-y: auto; background: var(--surface); }
.switch__item { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); min-height: 36px; padding: 0 var(--space-2); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font: 500 14px/18px var(--font-sans); }
.switch__item:hover { background: var(--surface-sunk); }
.switch__item--all { color: var(--ink-muted); font-size: 13px; }
/* The person */
.who { margin-top: 10px; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.who__id { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.who__avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font: 800 15px/1 var(--font-display); }
.who__text { display: flex; flex-direction: column; min-width: 0; }
.who__name { font: 600 14px/18px var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who__role { font: 400 12px/16px var(--font-sans); color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who__acts { display: flex; gap: 6px; }
.who__acts > * { flex: 1 1 0; min-width: 0; margin: 0; }
.who__acts .btn { width: 100%; padding: 0 var(--space-2); }

.content { padding: 20px var(--space-8) var(--space-12); width: 100%; max-width: 1440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.shell--wide .content { max-width: none; }
.content > * { margin-top: 0; margin-bottom: 0; }
/* The pages of the place you are in, across the top of the page: a narrow screen only. */
.strip { display: none; }

/* Signed-out pages: one card, the mark above it */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; gap: var(--space-6); padding: var(--space-12) var(--space-4); padding-left: max(var(--space-4), env(safe-area-inset-left)); padding-right: max(var(--space-4), env(safe-area-inset-right)); }
.auth__brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.auth__foot { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------------------------------------------------------------- A page: breadcrumb, head, sections */
.crumbs { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); }
.crumbs__here { color: var(--ink); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; }
.page-head__text { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; flex: 1 1 320px; }
.page-head__lead, .page-head p.muted { margin: 0; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.page-head__lead strong { color: var(--done-ink); font-weight: 600; }
.page-head__lead .is-off { color: var(--ink-muted); font-weight: 600; }
.actions { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }
.actions--end { justify-content: flex-end; }
.push { margin-left: auto; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); min-width: 0; }
.card > :last-child { margin-bottom: 0; }
.card--auth { width: 100%; max-width: 420px; padding: 28px; display: flex; flex-direction: column; gap: var(--space-4); }
.card--auth > * { margin: 0; }
.card--auth h1 { font: 700 20px/26px var(--font-display); letter-spacing: -0.01em; }
.card--auth form { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; }
.card--auth .actions form { display: block; }
.card.empty { text-align: center; padding: var(--space-12) var(--space-6); background: var(--surface-sunk); border: 0; border-radius: var(--radius-md); }
.card.empty h2 { margin-bottom: var(--space-1); }
.card--guide { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-notch); border-color: var(--ink); }
.card--quiet { background: var(--paper); padding: var(--space-4); }
.card--form { display: flex; flex-direction: column; gap: 18px; max-width: 680px; }
.card--form > * { margin: 0; }
.card--bar { padding: var(--space-4); }
.cols { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: flex-start; }
.cols > .cols__main { flex: 999 1 480px; min-width: 0; }
.cols > .cols__side { flex: 1 1 260px; max-width: 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cols__side > div, .cols__side > section { display: flex; flex-direction: column; gap: var(--space-2); }
.cols__side p, .cols__side ol, .cols__side ul { margin: 0; }
.sticky { position: sticky; top: 20px; }

/* A section: a lead (heading and a line) beside its body, a rule above. */
.secs { display: flex; flex-direction: column; }
.sec { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); padding: 28px 0; border-top: 1px solid var(--line); min-width: 0; }
.sec__lead { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sec__lead h2, .sec__lead h3 { margin: 0; font: 600 15px/22px var(--font-sans); letter-spacing: 0; }
.sec__lead p { margin: 0; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.sec--danger .sec__lead h2, .sec--danger .sec__lead h3 { color: var(--danger); }
.sec__body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); margin: 0; }
.sec__body > * { margin-top: 0; margin-bottom: 0; }
.secs__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding-top: 20px; border-top: 1px solid var(--line); }

/* Banners: the workspace's state, above every page */
.banner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-3) var(--space-4); background: var(--marker-tint); color: var(--ink); border-radius: var(--radius-md); font-size: 14px; line-height: 20px; }
.banner > span { flex: 1 1 260px; min-width: 0; }
.banner form { margin: 0; }
.banner a:not(.btn) { color: inherit; }
.banner--chrome { background: var(--chrome); color: var(--on-chrome); }
.banner--chrome .btn:not(.btn--primary) { background: transparent; color: var(--on-chrome); border-color: var(--chrome-muted); }
.banner--chrome .btn:not(.btn--primary):hover { background: var(--chrome-hover); }
.banner--chrome .btn--primary { box-shadow: 3px 3px 0 #000; }
.banner--alert { background: var(--danger-bg); color: var(--danger); }
.banner--alert .btn { color: var(--ink); }
.banner--notice { background: var(--surface); border: 1px solid var(--ink); }

/* What a form had to say, and anything else worth a coloured line */
.alert { display: block; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--marker-tint); color: var(--ink); font-size: 14px; line-height: 20px; margin: 0; min-width: 0; }
.alert p { margin: 0 0 var(--space-2); }
.alert p:last-child { margin-bottom: 0; }
.alert a:not(.btn) { color: inherit; }
.alert--error { background: var(--danger-bg); color: var(--danger); }
.alert--ok { background: var(--done-bg); color: var(--done-ink); }
.alert--chrome { background: var(--chrome); color: var(--on-chrome); }
.alert--plain { background: var(--surface); border: 1px solid var(--line); }
.alert--row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }
.alert--row > span, .alert--row > p { flex: 1 1 240px; min-width: 0; margin: 0; }
.alert--row form { margin: 0; }
.alert .btn { color: var(--ink); }
.alert--chrome .list { color: var(--on-chrome); }

/* ---------------------------------------------------------------- Forms */
label { display: flex; flex-direction: column; gap: 6px; font: 600 14px/18px var(--font-sans); min-width: 0; }
label > .muted, .hint { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.hint { display: block; }
.hint--inline { display: inline; }
label > input, label > select, label > textarea { width: 100%; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="date"], input[type="number"], input[type="tel"], select, textarea {
  min-height: 44px; padding: 10px var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 400 15px/22px var(--font-sans); max-width: 100%; min-width: 0;
}
select { padding-right: var(--space-6); }
input::placeholder, textarea::placeholder { color: var(--ink-muted); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
input:disabled, select:disabled, button:disabled { opacity: .5; cursor: not-allowed; }
input[readonly] { background: var(--paper); }
textarea { min-height: 88px; resize: vertical; line-height: 22px; }
input.mono, textarea.mono { font-family: var(--font-mono); font-size: 13px; }
input[type="color"] { width: 44px; height: 44px; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); flex: none; cursor: pointer; }
input[type="file"] { font: 400 14px/20px var(--font-sans); max-width: 100%; min-height: 44px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack > * { margin-top: 0; margin-bottom: 0; }
.stack.narrow, .narrow { max-width: 560px; }
.short { max-width: 360px; }
.stack--tight { gap: var(--space-2); }
.btn--block { display: flex; width: 100%; }
/* "or" between the provider buttons and the form: a hairline with the word in the middle */
.or { display: flex; align-items: center; gap: var(--space-3); margin: 0; color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.row { display: flex; gap: var(--space-3); align-items: flex-end; flex-wrap: wrap; }
.row > label { flex: 1 1 200px; }
.row--tight { gap: var(--space-2); }
.row--tight > label { flex: 0 1 auto; }
.row--tight select { min-height: 36px; padding: 4px var(--space-6) 4px var(--space-2); font-size: 14px; }
.row--center { align-items: center; }
.row--split { justify-content: space-between; }
.row .grow, .grow { flex: 1 1 auto; }
.check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font: 400 15px/22px var(--font-sans); }
.check > span { min-width: 0; }
/* "Add a person": a name, a surname and, twice as wide, the address. */
.person-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); align-items: end; }
.person-fields__email { grid-column: span 2; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
fieldset.stack { gap: var(--space-4); }
legend { padding: 0; margin: 0 0 var(--space-2); font: 600 14px/18px var(--font-sans); }
/* A choice drawn as a card: the whole card is the label, and the chosen one has the ink edge. */
.opt { display: flex; flex-direction: row; gap: var(--space-3); align-items: flex-start; padding: 14px var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font: 400 15px/22px var(--font-sans); min-width: 0; }
label.opt { cursor: pointer; }
.opt:has(> input:checked), .opt.is-on { border: 2px solid var(--ink); padding: 13px 15px; }
.opt:has(> input:disabled) { opacity: .6; cursor: not-allowed; }
.opt__text { display: block; min-width: 0; flex: 1 1 auto; }
.opt__text > strong { font-weight: 600; }
.opt--row { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.opt--row form { margin: 0; }
.opt--danger { border-color: var(--danger); }
.opt--stack { flex-direction: column; gap: 6px; }
.opt__more { display: flex; flex-direction: column; gap: var(--space-3); width: 100%; margin-top: var(--space-3); }
.opt__more > * { margin-top: 0; margin-bottom: 0; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.opts--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.opts--five .opt { flex-direction: column; gap: 6px; font: 600 13px/18px var(--font-sans); }
.opts--col { grid-template-columns: minmax(0, 1fr); }
.opt:has(> .check > input:checked) { border: 2px solid var(--ink); padding: 13px 15px; }
.opt--stack > .check { width: 100%; }
.opt--stack > .row, .opt--stack > label:not(.check), .opt--stack > .mail-fields { padding-left: 28px; width: 100%; }
/* A field whose label shares its line with a link (the password, and "Forgotten your password?"). */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.field__top a { font-weight: 400; }
.field__under { align-self: flex-start; font-weight: 400; }
.card--auth h1, .card--auth p { overflow-wrap: anywhere; }
/* What is shown at some widths only (a page's main button: beside its title on a wide screen, at the
   end of its form on a narrow one). "Narrow" is the width the sidebar becomes a bar at; a "phone"
   is narrower still. Each is hidden where it does not belong and left as it is where it does. */
@media (min-width: 961px) { .only-narrow { display: none !important; } }
@media (min-width: 721px) { .only-phone { display: none !important; } }
@media (max-width: 720px) { .not-phone { display: none !important; } }
/* On a narrow screen: the button that shows or hides what follows it (layout.ts, fold). */
.fold { display: none; }
/* A button that opens what sits under it: no script, a <details>. */
.reveal > summary { list-style: none; cursor: pointer; }
.reveal > summary::-webkit-details-marker { display: none; }
.reveal[open] > summary { margin-bottom: var(--space-3); }
details > summary { cursor: pointer; font: 600 13px/18px var(--font-sans); }
details > summary + * { margin-top: 10px; }

/* Buttons: primary stamps onto the page, the rest stay quiet */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 14px/18px var(--font-sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .08s ease, box-shadow .08s ease, background-color .12s ease; }
.btn:hover { background: var(--surface-sunk); }
.btn--primary { background: var(--marker); color: var(--on-marker); border: 2px solid var(--on-marker); box-shadow: var(--shadow-stamp); }
.btn--primary:hover { background: var(--marker); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--on-marker); }
.btn--primary:active { transform: translate(3px, 3px); box-shadow: none; }
.btn--dark { background: var(--ink); color: var(--paper); border: 2px solid var(--ink); }
.btn--dark:hover { background: var(--ink); opacity: .88; }
.btn--ghost { border-color: transparent; background: transparent; }
.btn--danger { color: var(--danger); border-color: var(--danger); }
.btn--small { min-height: 36px; padding: 0 var(--space-3); font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn--primary:hover, .btn--primary:active { transform: none; } }
button.link { padding: 0; border: 0; background: none; color: var(--marker-ink); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.copied { color: var(--done-ink); }

/* A row of choices where one is on: status, period, which kind */
.seg { display: inline-flex; flex-wrap: wrap; gap: var(--space-1); background: var(--surface-sunk); border-radius: 8px; padding: var(--space-1); max-width: 100%; }
.seg__item { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 36px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); font: 600 13px/18px var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.seg__item:hover { color: var(--ink); }
.seg__item.is-on, .seg__item[aria-pressed="true"], .seg__item[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.seg__n { font: 600 11px/16px var(--font-mono); }

/* Tables */
/* (position: relative, so that a visually hidden heading in a wide table scrolls with the table and cannot widen the page.) */
.table-wrap { position: relative; overflow-x: auto; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.table th, .table td { text-align: left; padding: var(--space-3) 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { padding-block: 10px; font: 600 11px/14px var(--font-sans); text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-muted); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td form { margin: 0; }
.table .num { width: 44px; }
.table td.end, .table th.end { text-align: right; }
.table td.end .actions { justify-content: flex-end; }
.table td .actions--row, .table td .row--tight { flex-wrap: nowrap; }
.table--dns { width: 100%; }
.table--dns td { overflow-wrap: anywhere; word-break: break-word; }
.table--dns th, .table--dns td { padding-inline: var(--space-3); }
.table--compact th, .table--compact td { padding-block: 4px; font-size: 13px; }
.table a.name { color: var(--ink); font-weight: 600; text-decoration: none; }
.table a.name:hover { text-decoration: underline; }

/* Status tags: the colour and the word together */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px var(--space-2); border-radius: var(--radius-sm); font: 600 12px/16px var(--font-sans); white-space: nowrap; background: var(--surface-sunk); color: var(--ink); }
.tag--open, .tag--warn { background: var(--open-bg); color: var(--open-ink); }
.tag--in_progress, .tag--info { background: var(--progress-bg); color: var(--progress-ink); }
.tag--done, .tag--good { background: var(--done-bg); color: var(--done-ink); }
.tag--bad { background: var(--danger-bg); color: var(--danger); }
.tag--pick { background: var(--highlight); color: var(--on-highlight); border: 1px solid var(--on-highlight); }
.tag--wrap { white-space: normal; }
.pill { display: inline-block; font: 600 12px/16px var(--font-sans); padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--surface-sunk); color: var(--ink); white-space: nowrap; }
.pill--mobile, .pill--tablet, .pill--replies { background: var(--progress-bg); color: var(--progress-ink); }
.pill--page { background: var(--surface-sunk); color: var(--ink); }
.pill--plain { background: none; padding: 0; font-weight: 400; color: var(--ink-muted); }

/* The pin: the note's number, exactly as it sits on the client's site */
.pin { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 4px; border-radius: 14px 14px 14px var(--radius-notch); background: var(--marker); color: var(--on-marker); border: 2px solid var(--pin-edge); box-shadow: 2px 2px 0 var(--pin-edge); font: 600 11px/1 var(--font-mono); flex: none; }
.pin--in_progress { background: var(--progress-bg); color: var(--progress-ink); }
.pin--done { background: var(--done-bg); color: var(--done-ink); }
.pin--deleted, .pin--none { background: var(--surface-sunk); color: var(--ink-muted); border: 1px solid var(--line); box-shadow: none; }
.pin--big { min-width: 32px; height: 32px; border-radius: 16px 16px 16px var(--radius-notch); font-size: 12px; }
/* The selector tag: the string that names the element, the same on the site and here */
.sel { display: inline-block; max-width: 100%; padding: 1px 6px; background: var(--highlight); color: var(--on-highlight); border: 1px solid var(--on-highlight); border-radius: var(--radius-sm) var(--radius-sm) var(--radius-sm) var(--radius-notch); font: 500 11px/16px var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.swatch { vertical-align: -3px; }

/* A figure in a tile */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.stats--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat, .tile { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.stat b, .tile__n { font: 800 32px/34px var(--font-display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.stat span, .tile__l { color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.tiles--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tiles--six .tile__n { font-size: 28px; line-height: 32px; }

/* ---------------------------------------------------------------- Projects */
.attn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.attn__card { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
a.attn__card:hover { border-color: var(--line-strong); }
.attn__card--loud { background: var(--marker); border: 2px solid var(--on-marker); color: var(--on-marker); padding: 15px; }
a.attn__card--loud:hover { border-color: var(--on-marker); }
.attn__n { font: 800 36px/36px var(--font-display); letter-spacing: -0.03em; }
.attn__what { font: 600 14px/20px var(--font-sans); }
.attn__name { font: 600 15px/22px var(--font-sans); }
.attn__more { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.attn__card--loud .attn__more { color: var(--on-marker); }
.find { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: 0; }
.find__q { display: flex; flex-direction: row; gap: var(--space-2); flex: 0 1 380px; min-width: 0; }
.find__q input { flex: 1 1 auto; min-width: 0; min-height: 40px; padding-block: 6px; font-size: 14px; }
.find__sort { flex-direction: row; align-items: center; gap: var(--space-2); font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.find__sort select, .find select { min-height: 36px; padding: 4px var(--space-6) 4px var(--space-2); font: 600 13px/18px var(--font-sans); }
.table--projects td { padding: 14px var(--space-4); }
.table--projects th { padding: var(--space-3) var(--space-4); }
.proj { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); min-width: 0; }
.proj__text { display: flex; flex-direction: column; min-width: 0; }
.proj__name { font: 600 15px/22px var(--font-sans); }
.proj:hover .proj__name { text-decoration: underline; }
.proj__where { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); overflow-wrap: anywhere; }
.mix { display: flex; flex-direction: column; gap: 6px; min-width: 160px; }
.mix__bar { display: block; width: 100%; height: 8px; border-radius: var(--radius-pill); background: var(--surface-sunk); }
.mix__open { fill: var(--marker); }
.mix__progress { fill: var(--bar-progress); }
.mix__done { fill: var(--bar-done); }
.mix__text, .latest span { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.table--projects .col-notes { width: 260px; }
.table--projects td:first-child { width: 32%; min-width: 220px; }
.table--projects .col-end { width: 1%; white-space: nowrap; }
.latest { display: flex; flex-direction: column; font: 400 13px/18px var(--font-sans); }
.latest span { overflow-wrap: anywhere; }

/* Numbered steps, each number a pin */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.steps li { counter-increment: step; position: relative; padding-left: 44px; min-height: 28px; min-width: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 14px 14px 14px var(--radius-notch); background: var(--marker); color: var(--on-marker); border: 2px solid var(--pin-edge); box-shadow: 2px 2px 0 var(--pin-edge); font: 600 11px/1 var(--font-mono); }
.steps li > label, .steps li > .table-wrap, .steps li > details, .steps li > p { margin-top: var(--space-2); }
.steps li > p { margin-bottom: 0; }
.steps--check li > h3 { margin: 0 0 var(--space-1); font: 600 15px/22px var(--font-sans); }
.steps--check li > p { margin: 0 0 var(--space-2); }
.steps--check li > pre.code { margin-bottom: var(--space-2); }
.steps--check li.is-done::before { content: "\2713"; background: var(--done-bg); color: var(--done-ink); font: 700 14px/1 var(--font-sans); }
.plain-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 18px; }
.guides { margin: 0; }
.seen { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.seen--yes { color: var(--done-ink); font-weight: 600; }
.seen__mark { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 2px; border-radius: 50%; background: var(--done-bg); font-size: 12px; line-height: 1; }
.card--guide > .actions { margin-top: var(--space-3); }
.card--guide > .eyebrow { margin-bottom: var(--space-1); }
.card--guide .steps { margin-bottom: 0; }

/* ---------------------------------------------------------------- Notes: one toolbar, the list, the note */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.filters { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; flex: 1 1 auto; min-width: 0; }
.filters label { flex-direction: row; align-items: center; font-size: 13px; }
.filters select { min-height: 36px; padding: 4px var(--space-6) 4px var(--space-3); max-width: 150px; font: 600 13px/18px var(--font-sans); }
/* On a wide screen a filter in the row is as wide as what is chosen in it (where the browser can size a select by its content), so the row fits beside the statuses. */
@media (min-width: 961px) { .filters > label > select { field-sizing: content; } }
.filters .check { align-items: center; min-height: 36px; font-size: 13px; gap: 6px; }
.filters .check input { margin: 0; }
.filters .menu__list { left: 0; right: auto; padding: var(--space-3); gap: var(--space-2); min-width: 240px; border-radius: var(--radius-notch) var(--radius-md) var(--radius-md) var(--radius-md); }
.filters .menu__list select { max-width: none; width: 100%; }
/* The line above a page's head: where it is, and (on a project's notes) the search. */
.topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.search { display: flex; flex-direction: row; align-items: center; gap: var(--space-2); margin: 0; flex: 0 1 280px; min-width: 0; }
.search label { flex: 1 1 auto; }
.search input { width: 100%; min-height: 40px; padding-block: 6px; font-size: 14px; }
.toolbar__out { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary + * { margin-top: 0; }
.menu__list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 6; min-width: 200px; display: flex; flex-direction: column; padding: var(--space-1); background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius-md) var(--radius-notch) var(--radius-md) var(--radius-md); box-shadow: var(--shadow-float); }
.menu__list a, .menu__list button { display: flex; align-items: center; min-height: 40px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); text-decoration: none; font: 600 13px/18px var(--font-sans); text-align: left; cursor: pointer; white-space: nowrap; }
.menu__list a:hover, .menu__list button:hover { background: var(--surface-sunk); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.split--wide-first { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.split--notes { grid-template-columns: minmax(0, 1fr) clamp(380px, 36%, 460px); }
.notes { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.notes__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 10px var(--space-4); border-bottom: 1px solid var(--line); font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.note { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); background: var(--surface); border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.note:last-child { border-bottom: 0; }
.note:hover { background: var(--paper); }
.note.is-selected { background: var(--marker-tint); box-shadow: inset 0 0 0 2px var(--ink); }
.note:focus-visible { outline-offset: -2px; }
.note.is-deleted { opacity: .6; }
.note__body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.note__top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.note__page { font: 400 12px/16px var(--font-sans); color: var(--ink-muted); overflow-wrap: anywhere; min-width: 0; }
.note__text { margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note__meta { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow-wrap: anywhere; }
.note__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.notes > .card.empty { margin: var(--space-4); }
/* Grouped by page: one slim line over each page's notes, with the page's title, its path and how many. */
.notes__group { display: flex; align-items: baseline; gap: var(--space-2); margin: 0; padding: var(--space-2) var(--space-4); background: var(--paper); border-bottom: 1px solid var(--line); font: 600 13px/18px var(--font-sans); letter-spacing: 0; color: var(--ink); min-width: 0; }
.notes__group-title, .notes__group-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notes__group-title { flex: 0 1 auto; }
.notes__group-path { flex: 0 1 auto; font-weight: 400; color: var(--ink-muted); }
.notes__group-n { flex: none; margin-left: auto; font-weight: 400; color: var(--ink-muted); white-space: nowrap; }

.detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); position: sticky; top: var(--space-4); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; min-width: 0; }
.detail > p { margin: 0; padding: 20px; }
.detail__bar { display: none; }
.detail__head { padding: var(--space-4) 20px var(--space-3); }
.detail__status { display: flex; flex-direction: column; gap: var(--space-3); padding: 0 20px var(--space-4); border-bottom: 1px solid var(--line); }
.detail__title { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.detail h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.detail__tools { display: flex; gap: 6px; align-items: center; }
.detail__main { display: flex; flex-direction: column; gap: 14px; padding: var(--space-4) 20px; }
.detail__main > * { margin: 0; }
.detail .hint { font-size: 12px; line-height: 16px; margin: 0; }
.detail .quote { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-sunk); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-notch); margin: 0; }
.shot-box { position: relative; margin: 0; background: var(--surface-sunk); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.shot-box img.shot { display: block; width: 100%; height: auto; }
.shot-box__open { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; min-height: 28px; background: var(--chrome); color: var(--on-chrome); font: 600 12px/16px var(--font-sans); text-decoration: none; padding: 4px 10px; border-radius: var(--radius-sm); }
.shot-box figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); display: flex; }
.shot-box figcaption .sel { box-shadow: 2px 2px 0 var(--on-highlight); }
.detail dl, .facts { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px var(--space-3); margin: 0; font-size: 14px; line-height: 20px; }
.facts { grid-template-columns: 160px minmax(0, 1fr); }
/* On the narrow card that asks whether to allow an app, the labels are short: the answers get the room. */
.facts--connect { grid-template-columns: 132px minmax(0, 1fr); }
.detail dt, .facts dt { color: var(--ink-muted); }
.detail dd, .facts dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.detail pre.code { max-height: 180px; }
.detail .saved { color: var(--done-ink); font-size: 13px; }
.status-set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-1); background: var(--surface-sunk); border-radius: 8px; padding: var(--space-1); margin: 0; }
.status-set__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 var(--space-2); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); font: 600 13px/18px var(--font-sans); cursor: pointer; }
.status-set__btn:hover { color: var(--ink); }
.status-set__btn[aria-pressed="true"] { cursor: default; }
.status-set__btn--open[aria-pressed="true"] { background: var(--open-bg); color: var(--open-ink); box-shadow: 0 0 0 1px var(--open-ink); }
.status-set__btn--in_progress[aria-pressed="true"] { background: var(--progress-bg); color: var(--progress-ink); box-shadow: 0 0 0 1px var(--progress-ink); }
.status-set__btn--done[aria-pressed="true"] { background: var(--done-bg); color: var(--done-ink); box-shadow: 0 0 0 1px var(--done-ink); }
.dtabs { display: flex; gap: var(--space-1); padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.dtabs__tab { flex: none; min-height: 44px; padding: 0 10px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--ink-muted); font: 600 14px/18px var(--font-sans); margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.dtabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--marker); }
.dpanel { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4) 20px 20px; }
.dpanel > * { margin: 0; }
.dpanel h3 { font: 600 14px/18px var(--font-sans); }
.detail__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding: var(--space-2) 20px; border-top: 1px solid var(--line); background: var(--paper); font-size: 13px; line-height: 18px; }
.detail__foot button { background: transparent; border: 0; min-height: 36px; padding: 0 var(--space-1); font: 600 13px/18px var(--font-sans); color: var(--ink); cursor: pointer; }
.detail__foot button:disabled { color: var(--ink-muted); }

/* Threads */
.thread { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.reply { display: flex; flex-direction: column; gap: var(--space-1); padding: 10px var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); margin: 0; }
.reply--agency { background: var(--surface); }
.reply__meta { margin: 0; font-size: 13px; line-height: 18px; }
.reply__body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#thread-list { display: flex; flex-direction: column; gap: var(--space-3); }
#thread-list > p { margin: 0; }
.mention-tag { color: var(--marker-ink); font-weight: 600; }
.mention { position: relative; margin: 0; }
.mention textarea { width: 100%; }
.mention-list { position: absolute; left: 0; right: 0; bottom: 100%; z-index: 5; list-style: none; margin: 0 0 4px; padding: 4px; background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius-md); box-shadow: var(--shadow-float); }
.mention-list li { padding: 10px var(--space-2); border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; }
.mention-list li.is-active, .mention-list li:hover { background: var(--marker-tint); }
.events { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 18px; }
.events li { display: flex; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.events li:last-child { border-bottom: 0; }
.events__when { flex: 0 0 132px; color: var(--ink-muted); }
.events__what { min-width: 0; overflow-wrap: anywhere; }
.qr { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 4px; }

/* ---------------------------------------------------------------- Settings: the pages down the side */
.settings { display: flex; flex-wrap: wrap; gap: var(--space-6) 40px; align-items: flex-start; }
.tabs { flex: 1 1 180px; max-width: 200px; display: flex; flex-direction: column; gap: 2px; margin: 0; min-width: 0; }
.tabs__head { margin: 0; padding: 0 var(--space-3) 6px; font: 600 11px/14px var(--font-sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-muted); }
.tabs__head + .tabs__tab ~ .tabs__head { padding-top: 18px; }
.tabs__tab { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font: 500 14px/18px var(--font-sans); }
.tabs__tab:hover { background: var(--surface-sunk); }
.tabs__tab.is-active { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.tabs__count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--marker); color: var(--on-marker); font: 700 11px/1 var(--font-sans); }
.settings__page { flex: 999 1 560px; min-width: 0; max-width: 960px; display: flex; flex-direction: column; gap: var(--space-4); }
.settings__page > * { margin-top: 0; margin-bottom: 0; }
.settings__page > .secs { margin-top: calc(-1 * var(--space-2)); }
.sub-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); }
.sub-head > :first-child { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.sub-head h2 { margin: 0; }
.sub-head p { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
/* A list of things, each a row with what it is and what you can do to it */
.rows { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); min-width: 0; }
.rows__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); padding: var(--space-3) 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.rows__item:last-child { border-bottom: 0; }
.rows__what { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }
.rows__what span { font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow-wrap: anywhere; }
.rows__item form { margin: 0; }
.rows__item > details { flex: 0 1 auto; }
.rows__item > details[open] { flex: 1 1 100%; }
.rows__more { flex: 1 1 100%; }

/* Brands */
.brand-row { display: flex; gap: var(--space-4); align-items: center; padding: 18px 20px; text-decoration: none; color: var(--ink); flex-wrap: wrap; }
a.brand-row:hover { border-color: var(--line-strong); }
.brand-row__text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.brand-row__text span { font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow-wrap: anywhere; }
.brand-row__end { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.brand-tile { flex: none; width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font: 800 18px/1 var(--font-display); overflow: hidden; }
.brand-tile--logo { background: #ffffff; border: 1px solid var(--line); padding: 6px; }
.brand-tile img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.brand-tile--big { width: 64px; height: 64px; font-size: 22px; }
.brand-logo { vertical-align: middle; margin-right: 6px; background: #fff; border-radius: 2px; }
.logo-previews { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: stretch; }
.logo-previews > p { margin: 0; }
.logo-previews figure { margin: 0; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #ffffff; color: #585a5f; display: flex; flex-direction: column; gap: var(--space-2); justify-content: space-between; min-width: 0; }
.logo-previews figure img { display: block; max-width: 100%; height: auto; }
.logo-previews figure img[height="18"] { height: 18px; width: auto; }
.logo-previews__dark { background: #1e1e1e !important; color: #cccccc !important; }
.logo-previews figcaption { font-size: 12px; }
.dns { background: var(--surface-sunk); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); }
.dns p:last-child { margin-bottom: 0; }
[data-widget-colour-fields].is-off { opacity: .5; }
.colour { flex-direction: row; align-items: center; gap: var(--space-3); }
.colour__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.widget-preview { --w-accent: #ff5b1f; --w-on-accent: #15171a; --w-wash: #ff5b1f1f; --w-button: #ff5b1f; --w-on-button: #15171a; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); padding: var(--space-4); background: var(--surface-sunk); border: 1px solid var(--line); border-radius: var(--radius-md); color: #15171a; }
.widget-preview__pin { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50% 50% 50% 2px; background: var(--w-accent); color: var(--w-on-accent); border: 2px solid #fff; box-shadow: 2px 2px 0 #15171a; font: 700 12px/1 var(--font-sans); }
.widget-preview__outline { padding: 6px 10px; outline: 2px dashed var(--w-accent); outline-offset: 1px; border-radius: 2px; background-color: #fff; background-image: linear-gradient(var(--w-wash), var(--w-wash)); font: 600 14px/20px var(--font-sans); }
.widget-preview__button, .widget-preview__toggle { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 6px; font: 600 14px/1 var(--font-sans); }
.widget-preview__button { background: var(--w-button); color: var(--w-on-button); border: 1.5px solid #15171a; box-shadow: 3px 3px 0 #15171a; }
.widget-preview__toggle { background: var(--w-accent); color: var(--w-on-accent); border: 1.5px solid var(--w-accent); outline: 6px solid #15171a; }
/* Each email service's fields sit under its choice. Hidden by admin.js when another is chosen. */
.mail-fields { display: flex; flex-direction: column; gap: var(--space-3); }
.mail-fields > * { margin: 0; }
.mail-fields[hidden] { display: none; }

/* The review tools as a client sees them: a small picture beside the form */
.preview { display: flex; flex-direction: column; gap: 10px; }
.cols > .preview { flex-basis: 340px; max-width: 420px; }
.preview p { margin: 0; }
.preview__frame { display: block; width: 100%; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.preview__page { fill: var(--surface); }
.preview__chrome { fill: var(--surface-sunk); }
.preview__dot { fill: var(--line-strong); }
.preview__line { fill: var(--surface-sunk); }
.preview__block { fill: var(--line); }
.preview__url { fill: var(--surface); }
.preview__urltext { font: 400 10px/1 var(--font-sans); fill: var(--ink-muted); }
.preview__label { font: 600 11px/1 var(--font-sans); }
.preview__num { font: 600 10px/1 var(--font-mono); }

/* ---------------------------------------------------------------- Plans and billing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan > * { margin: 0; }
.plan--featured { border: 2px solid var(--ink); box-shadow: var(--shadow-stamp); }
.plan.is-current { border-color: var(--done-ink); }
.plan h3 { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); margin: 0; font: 700 20px/26px var(--font-display); letter-spacing: -0.01em; }
.plan p { margin: 0; }
.plan > .tag { align-self: flex-start; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.plan__amount { font: 800 40px/40px var(--font-display); letter-spacing: -0.03em; }
.plan__or { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.plan__blurb { min-height: 36px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.plan__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); font-size: 13px; line-height: 18px; }
.plan__list li { position: relative; padding-left: 20px; }
.plan__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--done-ink); font-weight: 700; }
.plan .actions .btn, .plan > form .btn, .plan .actions form { flex: 1 1 auto; }
.plan .actions form .btn, .plan > form .btn { width: 100%; }
.plan-now { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); align-items: center; justify-content: space-between; padding: 20px var(--space-6); }
.plan-now__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.plan-now__text h2, .plan-now__text p { margin: 0; }
.plan-now__text p:not(.eyebrow) { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.usage { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: var(--space-6); margin: 0; }
.usage div { display: flex; flex-direction: column; }
.usage dt { order: 2; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.usage dd { margin: 0; font: 800 24px/28px var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.usage dd small { font: 400 13px/18px var(--font-sans); letter-spacing: 0; color: var(--ink-muted); }
/* The offer, on the billing page, and a price that has something off it. */
.offer { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4) var(--space-6); background: var(--highlight); color: var(--on-highlight); border: 2px solid var(--on-highlight); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-notch); box-shadow: var(--shadow-stamp); }
.offer p { margin: 0; }
.offer__name { font: 700 11px/14px var(--font-sans); letter-spacing: .09em; text-transform: uppercase; }
.offer__text { font-size: 16px; line-height: 24px; }
s.was { color: var(--ink-muted); font-weight: 400; text-decoration-thickness: 1.5px; }
.plan__amount s.was { font-size: 0.6em; letter-spacing: 0; }
/* Over a discounted price: the offer's name and what it takes off THAT price. */
.plan__offer { width: fit-content; padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--highlight); color: var(--on-highlight); font: 700 12px/18px var(--font-sans); }
.manage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.manage > div { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; padding: 14px var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); min-width: 0; }
.manage h3 { margin: 0; font: 600 15px/22px var(--font-sans); }
.manage p { margin: 0; flex: 1; }
.manage form { margin: 0; }
/* One way to pay at a time */
.choice { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.choice__opt { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: 600 14px/18px var(--font-sans); text-decoration: none; }
.choice__opt::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 50%; flex: none; }
.choice__opt:hover { background: var(--surface-sunk); }
.choice__opt.is-on { border: 2px solid var(--ink); padding: 0 15px; }
.choice__opt.is-on::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px var(--surface); }

/* ---------------------------------------------------------------- Operator pages, Help */
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: var(--space-2); }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); font-size: 13px; line-height: 18px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.log li { padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; padding-top: 0; }
.log li p { margin: 0 0 var(--space-1); }
.log__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.log__meta form { margin: 0; }
.sent { display: flex; flex-direction: column; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.sent li { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.sent__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); align-items: center; font: 600 13px/18px var(--font-sans); }
.sent__when { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.tickets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-notch); padding: var(--space-4) var(--space-6); min-width: 0; }
.ticket__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.ticket__head h3 { margin: 0; }
.ticket p { margin: var(--space-2) 0; }
.row-actions { position: relative; }
.charts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.chart { margin: 0; min-width: 0; }
.chart figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-1); }
.chart__title { font: 600 13px/18px var(--font-sans); color: var(--ink-muted); }
.chart__total { font: 800 24px/26px var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.chart__svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__bar { fill: var(--chart); }
.chart__base { stroke: var(--line-strong); stroke-width: 1; }
.chart__hit { fill: transparent; }
.chart__day:hover .chart__hit { fill: var(--surface-sunk); }
.chart__day:hover .chart__bar { fill: var(--ink); }
.chart__tick { font: 400 10px/1 var(--font-sans); fill: var(--ink-muted); }
.chart__value { font: 700 10px/1 var(--font-sans); fill: var(--ink); }
.meters { display: flex; flex-direction: column; gap: var(--space-3); }
.meter { display: grid; grid-template-columns: 140px minmax(0, 1fr) 76px; align-items: center; gap: var(--space-3); font-size: 14px; line-height: 20px; }
.meter__bar { display: block; width: 100%; height: 12px; border-radius: 0 4px 4px 0; }
.meter__track { fill: var(--chart-track); }
.meter__fill { fill: var(--chart); }
.meter__value { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.meter__value .muted { font-weight: 400; }
/* Editing an email's wording: the variables, and how the email reads. */
.vars { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-2) var(--space-3); margin: 0; align-items: baseline; font-size: 14px; line-height: 20px; }
.vars dt, .vars dd { margin: 0; }
.vars dd { color: var(--ink-muted); }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 2px var(--space-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-sunk); color: var(--ink); font: 500 12px/18px var(--font-mono); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.mail-preview { margin-top: var(--space-3); padding: var(--space-4); background: var(--surface-sunk); border-radius: var(--radius-md) var(--radius-md) var(--radius-md) var(--radius-notch); font-size: 14px; line-height: 22px; }
/* A small form that sits in a line of text (a Disconnect button beside what it disconnects). */
.inline { display: inline-block; margin-left: var(--space-2); vertical-align: middle; }
/* The agents an MCP key can be given to: one set of instructions showing at a time, no script. */
.agents { display: flex; flex-direction: column; gap: 14px; }
.agents > * { margin: 0; }
.agents__pick { align-self: flex-start; }
.agents__radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.agents__panel { display: none; flex-direction: column; gap: var(--space-3); }
.agents__panel > * { margin: 0; }
#agent-0:checked ~ .agents__pick label[for="agent-0"],
#agent-1:checked ~ .agents__pick label[for="agent-1"],
#agent-2:checked ~ .agents__pick label[for="agent-2"],
#agent-3:checked ~ .agents__pick label[for="agent-3"],
#agent-4:checked ~ .agents__pick label[for="agent-4"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
#agent-0:focus-visible ~ .agents__pick label[for="agent-0"],
#agent-1:focus-visible ~ .agents__pick label[for="agent-1"],
#agent-2:focus-visible ~ .agents__pick label[for="agent-2"],
#agent-3:focus-visible ~ .agents__pick label[for="agent-3"],
#agent-4:focus-visible ~ .agents__pick label[for="agent-4"] { outline: 2px solid var(--focus); outline-offset: 2px; }
#agent-0:checked ~ #agent-panel-0,
#agent-1:checked ~ #agent-panel-1,
#agent-2:checked ~ #agent-panel-2,
#agent-3:checked ~ #agent-panel-3,
#agent-4:checked ~ #agent-panel-4 { display: flex; }
/* A destination for notifications: what it is, what it hears, how it is doing, and (opened) its form. */
.dest { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border-bottom: 1px solid var(--line); min-width: 0; }
.dest:last-child { border-bottom: 0; }
.dest > * { margin: 0; }
.dest__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.dest__name { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }
.dest__name h2 { margin: 0; font: 600 15px/22px var(--font-sans); letter-spacing: 0; overflow-wrap: anywhere; }
.dest__name p, .dest__events { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dest__events { flex: 1 1 180px; color: var(--ink); }
.dest__row form { margin: 0; }
.dest__edit[open] { padding: var(--space-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); }
.dest__edit > summary { display: inline-flex; }
/* Which service's "where to find the address" line shows: the chosen one's, where the browser can tell. */
.kind-hint { display: block; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); margin: 0; }
@supports selector(:has(*)) {
  #add .kind-hint { display: none; }
  #add:has(input[name="kind"][value="slack"]:checked) .kind-hint--slack,
  #add:has(input[name="kind"][value="teams"]:checked) .kind-hint--teams,
  #add:has(input[name="kind"][value="discord"]:checked) .kind-hint--discord,
  #add:has(input[name="kind"][value="google_chat"]:checked) .kind-hint--google_chat,
  #add:has(input[name="kind"][value="webhook"]:checked) .kind-hint--webhook { display: block; }
}

/* ---------------------------------------------------------------- "How it works" tutorial */
.tour { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: var(--space-6); border: 2px solid var(--ink); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-notch); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-stamp); }
.tour::backdrop { background: rgba(21, 23, 26, .45); }
.tour__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-3); }
.tour__head .eyebrow { margin: 0; }
.tour__step { min-height: 148px; }
.tour__step h2 { margin: 0 0 var(--space-2); }
.tour__step p { margin: 0; font: 400 16px/24px var(--font-sans); }
.tour__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-6); flex-wrap: wrap; }
.tour__dots { display: flex; gap: 6px; }
.tour__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.tour__dots span.is-on { background: var(--marker); }

/* ---------------------------------------------------------------- The menu on a narrow screen: a fly-out */
/* "Menu" opens it as a modal dialog (admin.js). Without scripts the link's #menu target shows it. */
.flyout { position: fixed; inset: 0 0 0 auto; width: min(340px, 90vw); height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-left: 2px solid var(--ink); background: var(--surface); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; z-index: 30; }
.flyout[open], .flyout:target { display: flex; flex-direction: column; }
.flyout[open] { animation: flyout-in .18s ease-out; }
.flyout::backdrop { background: rgba(21, 23, 26, .55); }
@keyframes flyout-in { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .flyout[open] { animation: none; } }
.flyout__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 56px; padding: var(--space-1) var(--space-2) var(--space-1) var(--space-4); padding-top: max(var(--space-1), env(safe-area-inset-top)); border-bottom: 1px solid var(--line); flex: none; }
.flyout__brand { display: flex; align-items: center; gap: var(--space-2); }
.flyout__close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm); color: var(--ink); }
.flyout__close:hover { background: var(--surface-sunk); }
.flyout__body { display: flex; flex-direction: column; gap: var(--space-1); flex: 1 1 auto; padding: var(--space-4) var(--space-3); padding-right: max(var(--space-3), env(safe-area-inset-right)); padding-bottom: max(var(--space-4), env(safe-area-inset-bottom)); }
.flyout .nav__link, .flyout .switch__item { min-height: var(--touch); font-size: 15px; }
.flyout .who__acts .btn { min-height: var(--touch); }
@media (min-width: 961px) { .flyout:target { display: none; } }

/* ---------------------------------------------------------------- Wide, but not that wide */
@media (max-width: 1280px) {
  .stats--six, .tiles--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opts--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* The note beside its list needs room: under this it opens over the page instead (admin.js uses the same width). */
@media (max-width: 1180px) {
  .split--notes { grid-template-columns: minmax(0, 1fr); }
  .split--notes .detail { display: none; }
  body.has-note { overflow: hidden; }
  body.has-note::before { content: ""; position: fixed; inset: 0; z-index: 19; background: rgba(21, 23, 26, .55); }
  body.has-note .split--notes .detail { display: flex; flex-direction: column; position: fixed; inset: 0 0 0 auto; z-index: 20; width: min(560px, 100%); height: 100vh; height: 100dvh; max-height: none; margin: 0; border: 0; border-left: 2px solid var(--ink); border-radius: 0; overflow-y: auto; overscroll-behavior: contain; scroll-padding-bottom: 96px; padding-right: env(safe-area-inset-right); }
  .detail__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); position: sticky; top: 0; z-index: 2; padding: var(--space-2) var(--space-4); padding-top: max(var(--space-2), env(safe-area-inset-top)); background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
  .detail__bar .btn { min-height: var(--touch); }
  /* The status of the note stays within reach of a thumb: along the foot of the sheet. */
  body.has-note .split--notes .detail > * { flex: none; }
  body.has-note .detail__head { border-bottom: 1px solid var(--line); padding-bottom: var(--space-4); }
  body.has-note .detail__status { order: 90; position: sticky; bottom: 0; z-index: 2; margin-top: auto; padding: var(--space-2) var(--space-4); padding-bottom: max(var(--space-2), env(safe-area-inset-bottom)); background: var(--surface); border-bottom: 0; border-top: 1px solid var(--line); gap: 6px; }
  body.has-note .detail__status .hint { display: none; }
  body.has-note .detail__foot { order: 80; }
  body.has-note .status-set__btn { min-height: var(--touch); }
}

/* ---------------------------------------------------------------- A narrow screen: the bar, one column, room for a finger */
@media (max-width: 960px) {
  html { scroll-padding-top: 72px; }
  .shell { display: block; }
  .nav { display: none; }
  .bar { display: flex; align-items: center; gap: var(--space-3); position: sticky; top: 0; z-index: 15; min-height: 56px; padding: 6px var(--space-4); padding-top: max(6px, env(safe-area-inset-top)); padding-left: max(var(--space-4), env(safe-area-inset-left)); padding-right: max(var(--space-4), env(safe-area-inset-right)); background: var(--surface); border-bottom: 1px solid var(--line); }
  .bar__brand { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--touch); height: var(--touch); margin-left: -9px; border-radius: var(--radius-sm); }
  .bar__title { flex: 1 1 auto; min-width: 0; margin: 0; font: 600 15px/20px var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bar .nav__menu { flex: none; min-height: var(--touch); gap: var(--space-2); }
  .content { padding: var(--space-4) var(--space-4) 40px; padding-left: max(var(--space-4), env(safe-area-inset-left)); padding-right: max(var(--space-4), env(safe-area-inset-right)); padding-bottom: max(40px, env(safe-area-inset-bottom)); gap: var(--space-4); }
  /* The pages of this project (or of the operator's pages): a row that scrolls sideways inside itself. */
  .strip, .tabs { position: relative; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 6px; max-width: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(-1 * var(--space-4)); padding: 2px var(--space-4); flex: none; }
  .strip::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
  .strip__link, .tabs__tab { flex: none; display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--touch); padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 600 14px/18px var(--font-sans); text-decoration: none; white-space: nowrap; }
  .strip__link.is-active { background: var(--marker); border-color: var(--on-marker); color: var(--on-marker); }
  .strip__link.is-active .nav__count--loud { background: var(--on-marker); color: #f2f1ec; }
  .tabs__tab.is-active { box-shadow: none; border-color: var(--ink); background: var(--ink); color: var(--paper); }
  .tabs__head { display: none; }
  .settings { display: flex; flex-direction: column; flex-wrap: nowrap; gap: var(--space-4); align-items: stretch; }
  .settings__page { flex: 1 1 auto; max-width: none; }
  .crumbs, .topline { display: none; }
  .only-wide { display: none !important; }
  /* The state of the workspace: a slim line, with what to do about it as a link at its end. The
     link is as tall as a finger needs; the margins keep that from pushing the lines apart. */
  .banner { display: block; align-content: center; min-height: var(--touch); padding: 6px var(--space-3); border-radius: var(--radius-sm); font-size: 13px; line-height: 18px; }
  .banner > span { display: inline; }
  .banner form { display: inline; }
  .banner .btn.btn--small, .banner .btn.btn--small:hover, .banner .btn.btn--small:active { display: inline-flex; vertical-align: baseline; min-height: var(--touch); min-width: var(--touch); margin: -13px 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; color: inherit; font: 700 13px/18px var(--font-sans); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
  /* The button that shows or hides what follows it: a list's search, filters and sort order. */
  .fold { display: block; min-width: 0; }
  .fold > summary { display: flex; width: 100%; list-style: none; cursor: pointer; }
  .fold > summary::-webkit-details-marker { display: none; }
  .fold[open] > summary { background: var(--surface-sunk); }
  .fold[open] .fold__mark { transform: rotate(180deg); }
  .fold__n { padding: 1px var(--space-2); border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); font: 600 11px/16px var(--font-mono); }
  .fold:not([open]) ~ .filters, .fold:not([open]) ~ .find__q, .fold:not([open]) ~ .find__sort, .fold:not([open]) ~ .find__go { display: none; }
  .opt--stack > .row, .opt--stack > label:not(.check), .opt--stack > .mail-fields { padding-left: 0; }
  .proj { min-height: var(--touch); }
  /* Sections: the lead on top of its body. */
  .sec { flex-direction: column; flex-wrap: nowrap; gap: var(--space-3); padding: var(--space-6) 0; }
  .sec__lead { max-width: none; flex: none; }
  .sec__body { flex: none; }
  .cols { flex-direction: column; gap: var(--space-6); }
  .cols > .cols__main, .cols > .cols__side { flex: none; width: 100%; max-width: none; }
  .sticky { position: static; }
  .card--form { max-width: none; }
  .split, .split--wide-first, .plans { grid-template-columns: minmax(0, 1fr); }
  /* What needs someone: a short row each, so the list of projects is not a screen away. */
  .attn { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .attn__card { flex-direction: row; flex-wrap: wrap; align-items: baseline; align-content: center; gap: 0 var(--space-2); min-height: var(--touch); padding: 10px var(--space-3); }
  .attn__card--loud { padding: 9px 11px; }
  .attn__n { font-size: 24px; line-height: 24px; }
  .attn__more { flex: 1 1 100%; }
  .stats--four, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dd { margin-bottom: var(--space-2); }
  .plan__blurb { min-height: 0; }
  /* Anything pressed is at least 44px, and a field's text is 16px so a phone does not zoom in on it. */
  .btn--small, .seg__item, .chip, .status-set__btn, .switch__item, .nav__link, .nav__link--sub, .menu__list a, .menu__list button, .detail__foot button, .shot-box__open, .choice__opt, .dtabs__tab { min-height: var(--touch); }
  .btn--small { padding: 0 14px; min-width: var(--touch); }
  .filters .check { min-height: var(--touch); }
  .auth__brand { min-height: var(--touch); }
  .who__id { min-height: var(--touch); }
  input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="date"], input[type="number"], input[type="tel"], select, textarea, input.mono, textarea.mono,
  .filters select, .find__q input, .find select, .find__sort select, .row--tight select { font-size: 16px; min-height: var(--touch); }
  details > summary { display: flex; align-items: center; min-height: var(--touch); }
  .reveal > summary, .menu > summary, .dest__edit > summary { display: inline-flex; }
  /* The line over the list holds a link ("Group by page") tall enough for a finger: its own padding makes way for it. */
  .notes__head { padding-top: 0; padding-bottom: 0; min-height: var(--touch); }
  button.link, .crumbs a, .links a, a.name, .tap { display: inline-flex; align-items: center; min-height: var(--touch); min-width: var(--touch); }
  .check, .opt { min-height: var(--touch); align-items: center; }
  .check > input, .opt > input { margin: 0; }
  .check:has(.hint), .opt:has(.hint) { align-items: flex-start; }
  .check:has(.hint) > input, .opt:has(.hint) > input { margin-top: 2px; }
  input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; }
  .who__acts .btn { min-height: var(--touch); }
  /* A project's notes: the statuses stay in view, then one row (the search and the filters behind
     their button, and the exports), then the filters themselves when that button is open. */
  .toolbar { padding: var(--space-2); gap: var(--space-2); }
  .toolbar .seg { order: 1; display: flex; flex: 1 1 100%; }
  .toolbar .seg__item { flex: 1 1 auto; padding: 0 var(--space-2); }
  .toolbar .fold { order: 2; flex: 1 1 auto; }
  .toolbar__out { order: 3; flex: 0 0 auto; margin-left: 0; gap: var(--space-2); }
  .filters { order: 4; flex: 1 1 100%; gap: var(--space-2); }
  .filters > label:not(.check) { flex: 1 1 140px; }
  .filters > label.filters__q { flex: 1 1 100%; }
  .filters__q input { width: 100%; }
  .filters select { width: 100%; max-width: none; }
  .filters > .menu { flex: 1 1 100%; }
  .filters > .menu > summary { width: 100%; }
  .filters .menu__list { position: static; margin-top: var(--space-2); box-shadow: none; }
  .filters > .btn { flex: 1 1 auto; }
  .menu__list { left: 0; right: auto; border-radius: var(--radius-notch) var(--radius-md) var(--radius-md) var(--radius-md); }
  .toolbar__out .menu__list { left: auto; right: 0; border-radius: var(--radius-md) var(--radius-notch) var(--radius-md) var(--radius-md); }
  /* The list of projects: Active or Archived stays in view, the search and the sort order wait behind their button. */
  .find { gap: var(--space-2); }
  .find .seg { order: 1; display: flex; flex: 1 1 auto; }
  .find .seg__item { flex: 1 1 auto; }
  .find .fold { order: 2; flex: 1 1 auto; }
  .find__q { order: 3; flex: 1 1 100%; }
  .find__sort { order: 4; flex: 1 1 auto; }
  .find__sort select { flex: 1 1 auto; }
  .find__go { order: 5; flex: 0 0 auto; }
  .push { margin-left: 0; }
  .events__when { flex-basis: 108px; }
}

/* ---------------------------------------------------------------- A phone */
@media (max-width: 720px) {
  h1 { font-size: 24px; line-height: 28px; }
  .card { padding: var(--space-4); }
  .card--auth { padding: 20px; }
  .card.empty { padding: var(--space-8) var(--space-4); }
  .auth { padding-top: var(--space-8); padding-bottom: var(--space-8); }
  /* A page's own actions: a row under its title, two side by side where there are two. */
  .page-head { align-items: stretch; gap: var(--space-3); }
  .page-head__text { flex-basis: 100%; }
  .page-head__actions { width: 100%; }
  .page-head__actions > * { flex: 1 1 130px; min-width: 0; }
  .page-head__actions > .btn { padding-inline: var(--space-2); }
  .page-head__actions form .btn { width: 100%; }
  /* One short action stays beside the title, and drops under it only when the two do not fit. */
  .page-head--row { align-items: center; }
  .page-head--row .page-head__text { flex: 1 1 140px; }
  .page-head--row .page-head__actions { width: auto; flex: 0 1 auto; }
  .page-head--row .page-head__actions > * { flex: 0 1 auto; }
  .page-head--row .page-head__actions > .btn { padding-inline: var(--space-4); }
  .attn__card:not(.attn__card--loud) .attn__more { display: none; }
  /* A button's words may run to a second line before the button is wider than the screen. */
  .btn { white-space: normal; text-align: center; max-width: 100%; padding-block: 6px; }
  /* A form's fields each take the whole width, and its buttons fill the row. */
  .row { flex-direction: column; align-items: stretch; }
  .row > label, .row > .btn, .row > form, .row > button { flex: 0 0 auto; width: 100%; }
  .row--tight { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .row--tight > label, .row--tight > .btn, .row--tight > button { width: auto; flex: 1 1 auto; }
  .row--tight select { width: 100%; }
  .actions > .btn, .actions > button, .actions > form, .actions > details { flex: 1 1 auto; }
  .actions > form > .btn, .actions > form > button { width: 100%; }
  .secs__foot > .btn, .secs__foot > form, .secs__foot > button { flex: 1 1 100%; }
  .opts, .opts--five, .manage, .person-fields { grid-template-columns: minmax(0, 1fr); }
  .person-fields__email { grid-column: auto; }
  .stats--four, .tiles, .stats--pair, .stats--six, .tiles--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { gap: var(--space-2); }
  .stat, .tile { padding: var(--space-3); }
  .opts--five .opt { flex-direction: row; align-items: center; }
  .charts { grid-template-columns: minmax(0, 1fr); }
  .meter { grid-template-columns: 96px minmax(0, 1fr) 60px; }
  .usage { gap: var(--space-4); grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .plan-now { padding: var(--space-4); }
  .offer { padding: var(--space-4); }
  .ticket { padding: var(--space-4); }
  .stat b, .tile__n { font-size: 26px; line-height: 30px; }
  .vars { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .vars dd { margin-bottom: var(--space-2); }
  .tour { padding: var(--space-4); }
  .tour__step { min-height: 0; }
  .tour__foot .actions { flex: 1 1 100%; }
  .tour__foot .actions .btn { flex: 1 1 0; }
  /* A note in the list: its status and type drop under its words. */
  .note { padding: 14px var(--space-4); flex-wrap: wrap; }
  .note__body { flex-basis: calc(100% - 44px); }
  .note__side { flex-direction: row; align-items: center; flex: 1 1 100%; padding-left: 40px; }
  .notes__head { flex-wrap: wrap; }
  /* The note itself: the whole screen. */
  body.has-note .split--notes .detail { width: 100%; border-left: 0; padding-left: env(safe-area-inset-left); }
  .detail__head, .detail__main, .dpanel { padding-left: var(--space-4); padding-right: var(--space-4); }
  .dtabs { padding: 0 var(--space-4); }
  .detail__foot { padding: var(--space-1) var(--space-4); }
  .detail__foot .hint { display: none; }
  /* A table people act on becomes a list: each row a block, each cell named. (By the screen's
     width here; by the width of the table's own box further down, where the browser can tell.) */
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .table--stack tr { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td, .table--projects.table--stack td { padding: var(--space-1) 0; border: 0; text-align: left; }
  .table--stack td:empty { display: none; }
  .table--stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 11px/14px var(--font-sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-muted); }
  .table--stack td.end { padding-top: var(--space-2); }
  .table--stack td.end .actions, .table--stack td .actions--row, .table--stack td .row--tight { justify-content: flex-start; flex-wrap: wrap; }
  .table--stack td.end .btn, .table--stack td.end form { flex: 1 1 auto; }
  .table--stack td.end form .btn { width: 100%; }
  /* A button with no edge reads as stray words in a list: there it gets one. */
  .table--stack .btn--ghost { border-color: var(--line-strong); }
  .table--stack .mix { min-width: 0; }
  /* A table with many short cells: two to a row under the first, so a row is not a column of ten. */
  .table--pairs tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1) var(--space-4); }
  .table--pairs td { width: auto; }
  .table--pairs td:first-child, .table--pairs td.end, .table--pairs td.wide { grid-column: 1 / -1; width: auto; min-width: 0; }
  .table--projects.table--pairs td:nth-child(2) { grid-column: 1 / -1; }
  .rows__item .btn--ghost { border-color: var(--line-strong); }
  .rows__what { flex-basis: 100%; }
  /* A table that is only read scrolls inside its own box; the page never does. */
  .table-wrap > .table:not(.table--stack) { min-width: 560px; }
  .table-wrap > .table--dns:not(.table--stack) { min-width: 0; }
  .brand-row { padding: var(--space-4); }
  .brand-row__end { flex: 1 1 100%; }
  .rows__item > .btn, .rows__item > form, .rows__item > details:not([open]) { flex: 1 1 auto; }
  .rows__item > form .btn, .rows__item > details > summary { width: 100%; }
  .dest__row > .btn, .dest__row > form { flex: 1 1 auto; }
  .dest__row > form .btn { width: 100%; }
  .events li { flex-direction: column; gap: 2px; }
  .events__when { flex: none; }
  .widget-preview { gap: var(--space-3); }
}
@media (max-width: 400px) {
  .usage { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .usage div { flex-direction: row; align-items: baseline; gap: var(--space-2); }
  .usage dt { order: 0; }
  .wordmark { font-size: 18px; }
  /* The narrowest phones: "Search and filters", with its count, and "Export" still share their row. */
  .toolbar .fold > summary { padding-inline: var(--space-2); }
  .toolbar__out .btn { padding-inline: 10px; }
}
/* A table stacks when its own box is too narrow for its columns, wherever that box is (beside the
   sidebar on a small laptop, in a section's body): the same rules as on a phone, asked of the box. */
.table-wrap { container-type: inline-size; }
@container (max-width: 560px) {
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .table--stack tr { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td, .table--projects.table--stack td { padding: var(--space-1) 0; border: 0; text-align: left; }
  .table--stack td:empty { display: none; }
  .table--stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 11px/14px var(--font-sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-muted); }
  .table--stack td.end { padding-top: var(--space-2); }
  .table--stack td.end .actions, .table--stack td .actions--row, .table--stack td .row--tight { justify-content: flex-start; flex-wrap: wrap; }
  .table--stack td.end .btn, .table--stack td.end form { flex: 1 1 auto; }
  .table--stack td.end form .btn { width: 100%; }
  /* A button with no edge reads as stray words in a list: there it gets one. */
  .table--stack .btn--ghost { border-color: var(--line-strong); }
  .table--stack .mix { min-width: 0; }
  .table--pairs tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1) var(--space-4); }
  .table--pairs td { width: auto; }
  .table--pairs td:first-child, .table--pairs td.end, .table--pairs td.wide { grid-column: 1 / -1; width: auto; min-width: 0; }
  .table--projects.table--pairs td:nth-child(2) { grid-column: 1 / -1; }
}
@container (max-width: 860px) {
  .table--wide, .table--wide tbody, .table--wide tr, .table--wide td { display: block; width: 100%; }
  .table--wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .table--wide tr { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
  .table--wide tbody tr:last-child { border-bottom: 0; }
  .table--wide td, .table--projects.table--wide td { padding: var(--space-1) 0; border: 0; text-align: left; }
  .table--wide td:empty { display: none; }
  .table--wide td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 11px/14px var(--font-sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-muted); }
  .table--wide td.end { padding-top: var(--space-2); }
  .table--wide td.end .actions, .table--wide td .actions--row, .table--wide td .row--tight { justify-content: flex-start; flex-wrap: wrap; }
  .table--wide td.end .btn, .table--wide td.end form { flex: 1 1 auto; }
  .table--wide td.end form .btn { width: 100%; }
  /* A button with no edge reads as stray words in a list: there it gets one. */
  .table--wide .btn--ghost { border-color: var(--line-strong); }
  .table--wide .mix { min-width: 0; }
  /* A table with many short cells: two to a row under the first, so a row is not a column of ten. */
  .table--wide tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1) var(--space-4); }
  .table--wide td { width: auto; }
  .table--wide td:first-child, .table--wide td.end, .table--wide td.wide { grid-column: 1 / -1; width: auto; min-width: 0; }
  .table--projects.table--wide td:nth-child(2) { grid-column: 1 / -1; }
}
/* A phone on its side has little height: the bar scrolls away with the page. */
@media (max-height: 480px) and (max-width: 960px) {
  .bar { position: static; }
  html { scroll-padding-top: 0; }
}
/* On a touch screen of any width, anything pressed like a button is at least 44px tall. */
@media (pointer: coarse) {
  .btn--small, .seg__item, .chip, .status-set__btn, .switch__item, .nav__link, .nav__link--sub, .tabs__tab, .menu__list a, .menu__list button, .detail__foot button, .dtabs__tab, .filters select, .row--tight select, .find select, .find__q input, .search input { min-height: var(--touch); }
  details > summary { display: flex; align-items: center; min-height: var(--touch); }
  .reveal > summary, .menu > summary, .dest__edit > summary { display: inline-flex; }
  input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="date"], input[type="number"], input[type="tel"], select, textarea { font-size: 16px; }
  .filters .check { min-height: var(--touch); }
  button.link { min-height: var(--touch); }
}
@media print {
  .nav, .bar, .strip, .flyout, .skip { display: none !important; }
  .shell { display: block; }
}
