/* ---------------------------------------------------------------
   O’Malley Peak — private task workspace.

   The marketing page is a held drone shot and a condensed wordmark.
   This is a tool people use for an hour at a time, so it stays quiet —
   but quiet is not the same as characterless, which is what the first
   pass drifted into. The rules here:

   - Colour is earned. A card carries colour only when something is
     wrong or due; everything else is greyscale and spacing. Four
     equally-bright chips on every card is the same as no chips.
   - Structure is typographic. Barlow Condensed, already loaded for the
     wordmark, carries every structural label, so the board is tied to
     the brand without a single decorative element.
   - Depth is nearly flat. One soft shadow, lifted slightly on hover.
   --------------------------------------------------------------- */

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* The public page's body face, Barlow 300, is deliberately NOT loaded here.
   At 300 it is too light for 13px UI text, so it could only be used at
   display sizes — a 22KB download for one subtitle, on a tool people open
   every day. The condensed face is already paying for itself on every
   structural label; the system stack does the rest and costs nothing. */

:root {
  --peak: #2f3a42;
  /* Brand ink for text and accents: flips lighter in dark mode. */
  --brand: #2f3a42;
  --ink: #1b2126;
  --muted: #5e6972;
  --faint: #8d969c;
  --line: #e2e7ea;
  --hair: #edf1f3;
  --panel: #ffffff;
  --page: #eef1f3;
  --sunk: #eceff1;
  --ok: #2f6b4f;
  --info: #2d6a8f;
  --warn: #9a5b12;
  --late: #a3281f;
  --shadow-1: 0 1px 2px rgba(27, 33, 38, .05), 0 1px 1px rgba(27, 33, 38, .04);
  --shadow-2: 0 2px 4px rgba(27, 33, 38, .06), 0 8px 20px rgba(27, 33, 38, .08);
  --radius: 12px;
  --ease: cubic-bezier(.3, .7, .4, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e9eef1; --muted: #9aa5ad; --faint: #78838a;
    --line: #2d353b; --hair: #252c32; --panel: #1e252a; --page: #11161a; --sunk: #232b30;
    --brand: #a6bcc9; --ok: #74c39b; --info: #74aed0; --warn: #e0a85c; --late: #ef8278;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 10px 26px rgba(0, 0, 0, .35);
  }
}

/* An explicit choice, for when the OS says one thing and the person wants
   the other. Same palette as the media query above — it used to carry a
   warm scheme borrowed from El Monty that nothing ever set. */
:root[data-theme="dark"] {
  --ink: #e9eef1; --muted: #9aa5ad; --faint: #78838a;
  --line: #2d353b; --hair: #252c32; --panel: #1e252a; --page: #11161a; --sunk: #232b30;
  --brand: #a6bcc9; --ok: #74c39b; --info: #74aed0; --warn: #e0a85c; --late: #ef8278;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 10px 26px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.booting { padding: 3rem 1rem; text-align: center; color: var(--muted); }

button, input, select, textarea { font: inherit; color: inherit; }

/* Every structural label on the page. */
.brand, .col h2, .drawer h3, .signin h1, th, .stat {
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .055em;
}

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

/* The band is the one piece of the marketing page that comes across: the
   same slate the drone shot sits on, with the wordmark reversed out of it.
   It costs nothing functionally and it is the difference between this
   looking like our tool and looking like any board. */
.top {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px;
  background: var(--peak);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  position: sticky; top: 0; z-index: 20;
  flex-wrap: wrap;
}
.brand { font-size: 22px; line-height: 1; text-decoration: none; white-space: nowrap; }
.top .brand { color: #fff; }
.top .sep { color: rgba(255, 255, 255, .3); font-weight: 300; }
.top .here { color: rgba(255, 255, 255, .62); font-size: 14px; }
.top .spacer { flex: 1 1 auto; }

/* Controls sitting on the band invert: the dark pill that reads as
   "primary" on a white page disappears into a slate one. */
.top .btn.ghost { color: rgba(255, 255, 255, .72); }
.top .btn.ghost:hover { background: rgba(255, 255, 255, .11); color: #fff; }
.top .btn.primary { background: #fff; border-color: #fff; color: var(--peak); }
.top .btn.primary:hover { filter: none; background: rgba(255, 255, 255, .88); }
.top .who { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }

.wrap { max-width: 1420px; margin: 0 auto; padding: 22px 20px 60px; }

/* --- controls --------------------------------------------------- */

.btn {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 8px; padding: 7px 14px; cursor: pointer; font-weight: 500;
  transition: border-color 120ms var(--ease), background 120ms var(--ease), box-shadow 120ms var(--ease);
}
.btn:hover { border-color: var(--faint); box-shadow: var(--shadow-1); }
.btn.primary {
  background: var(--peak); border-color: var(--peak); color: #fff;
  box-shadow: var(--shadow-1);
}
.btn.primary:hover { filter: brightness(1.14); box-shadow: var(--shadow-2); }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); box-shadow: none; }
.btn.ghost:hover { background: var(--sunk); color: var(--ink); box-shadow: none; }
.btn.danger { color: var(--late); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 11px; width: 100%;
  transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
textarea { resize: vertical; min-height: 84px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* A chevron, so a select stops looking like raw browser chrome. */
select {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238d969c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

label.field { display: block; margin-bottom: 12px; }
/* Field labels share the condensed micro-label of the column heads and
   section heads, so the whole interface uses one voice for "this is what
   that is" rather than three. */
label.field > span {
  display: block; margin-bottom: 5px;
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  font-size: 12.5px; color: var(--muted);
}
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* A checkbox and its label on one line — the stacked `label.field` layout is
   for controls that fill the width, which a checkbox does not. */
label.check { display: flex; align-items: center; gap: 9px; margin: -2px 0 14px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
label.check input { width: auto; flex: none; accent-color: var(--warn); }
label.check:hover { color: var(--ink); }
.row > .grow { flex: 1 1 180px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.filters select { width: auto; min-width: 136px; }

/* The ventures, as buckets. The whole set is always on screen with counts,
   so you can see what exists before clicking — which a removable pill could
   never do, since it only appeared once you had already filtered.

   The selected one inverts to the page's own ink rather than taking a brand
   tint, so it reads as firmly chosen in both themes without a second colour. */
.buckets { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px; }
.bucket {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  border-radius: 99px; padding: 6px 14px; cursor: pointer;
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 13.5px;
  transition: border-color 120ms var(--ease), color 120ms var(--ease), background 120ms var(--ease);
}
.bucket:hover { border-color: var(--faint); color: var(--ink); }
.bucket .n {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600; font-size: 11px; letter-spacing: 0; font-variant-numeric: tabular-nums;
  color: var(--faint); background: var(--sunk); border-radius: 99px; padding: 1px 7px;
}
.bucket.on { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.bucket.on .n { background: color-mix(in srgb, var(--panel) 24%, transparent); color: var(--panel); }
/* A venture with nothing in it right now is still worth seeing, quietly.
   Named `zero` rather than `empty`: `.empty` is the "Nothing here." block,
   and a chip carrying both picked up its centred padding and its mountain
   watermark as a 40px pseudo-element inside the pill. */
.bucket.zero { opacity: .55; }
.bucket.zero:hover { opacity: 1; }

/* A single-glyph button, sized so it does not read as a word. */
.btn.icon { padding: 7px 10px; font-size: 15px; line-height: 1.1; }

/* One project in Settings: its own card, so the reorder and remove controls
   plainly belong to the fields under them rather than to the list. */
.project-row { border: 1px solid var(--hair); border-radius: 10px; padding: 12px 12px 2px; margin-bottom: 12px; }
.project-row .held { margin: -4px 0 10px; font-size: 12px; color: var(--faint); }
.btn.ghost.icon.danger:hover { background: color-mix(in srgb, var(--late) 12%, transparent); color: var(--late); }
/* The search field carries a magnifier and takes the slack, so the bar
   reads as one control group rather than three loose boxes. */
.filters input[type=text] {
  width: auto; flex: 1 1 200px; max-width: 320px;
  padding-left: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='6' cy='6' r='4.4' fill='none' stroke='%238d969c' stroke-width='1.5'/%3E%3Cpath d='M9.4 9.4L13 13' stroke='%238d969c' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 10px center;
}

/* --- board ------------------------------------------------------ */

.columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }

/* The column is a region, not a container: a hairline and a header rule
   rather than a grey tub, so the cards carry the structure and four
   empty columns do not read as four empty boxes. */
.col {
  border-radius: var(--radius);
  padding: 0 8px 10px;
  min-height: 90px;
  border: 1px solid transparent;
  transition: background 140ms var(--ease), border-color 140ms var(--ease);
}
.col.over {
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
}
.col h2 {
  margin: 0 2px 12px; padding: 0 0 9px;
  font-size: 14.5px; letter-spacing: .07em; color: var(--ink);
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  border-bottom: 2px solid var(--line);
}
.col h2 .count {
  font-variant-numeric: tabular-nums;
  color: var(--faint); font-size: 12px; letter-spacing: .02em;
}
/* The one place colour is used for navigation rather than alarm: the rule
   under each heading says which column you are reading at a glance. */
.col[data-status="doing"] h2 { border-bottom-color: color-mix(in srgb, var(--info) 55%, var(--line)); }
.col[data-status="done"] h2 { border-bottom-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }

/* With the board grouped, each column carries its projects as quiet headings
   — the same condensed micro-label as everything else that names a thing.
   The first in a column needs no rule above it: the column head is the rule. */
.col .lane-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  border-radius: 6px;
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  font-size: 11.5px; color: var(--muted);
  margin: 15px 2px 7px; padding-top: 11px;
  border-top: 1px solid var(--hair);
}
.col h2 + .lane-head { margin-top: 0; padding-top: 0; border-top: 0; }
.col .lane-head.none { color: var(--faint); }
/* It is a filter, so it has to look pressable and look pressed. The tint
   bleeds past the text so the whole heading reads as the target. */
.col .lane-head:hover { color: var(--ink); background: var(--sunk); box-shadow: 0 0 0 5px var(--sunk); }
.col .lane-head.on { color: var(--brand); }
.col .lane-head.on:hover { background: none; box-shadow: none; }
.col .lane-head.on > span:first-child::after { content: " ✕"; font-size: 10px; opacity: .7; }
.col .lane-head .count { font-variant-numeric: tabular-nums; font-size: 11px; color: var(--faint); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; margin-bottom: 8px; box-shadow: var(--shadow-1);
  cursor: pointer; display: block; width: 100%; text-align: left;
  transition: transform 130ms var(--ease), box-shadow 130ms var(--ease), border-color 130ms var(--ease);
}
.card:hover { border-color: var(--faint); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.card:active { transform: translateY(0); box-shadow: var(--shadow-1); }
.card.dragging { opacity: .4; transform: scale(.98); }
/* Priority reads as an edge, not a badge — it is a property of the card,
   and it leaves the meta row for things that change. */
.card.urgent { box-shadow: inset 3px 0 0 var(--late), var(--shadow-1); }
.card.urgent:hover { box-shadow: inset 3px 0 0 var(--late), var(--shadow-2); }
.card .title { font-weight: 550; line-height: 1.38; letter-spacing: -.003em; }
.card .meta { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-top: 9px; }

.chip {
  font-size: 11.5px; padding: 2px 8px; border-radius: 99px;
  background: var(--sunk); color: var(--muted); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* Only a date that is actually pressing gets colour. */
.chip.due { background: color-mix(in srgb, var(--warn) 13%, transparent); color: var(--warn); }
.chip.late { background: color-mix(in srgb, var(--late) 13%, transparent); color: var(--late); font-weight: 600; }
.chip.soon { background: none; padding-left: 0; padding-right: 0; color: var(--muted); }
/* Stuck is the one card state that earns colour with no date behind it:
   nobody can move it, which is worth interrupting a scan for. It stays a
   chip rather than an edge so it does not fight the high-priority edge on a
   card that is both. */
.chip.stuck { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); font-weight: 600; }
/* Provenance and chatter are facts about the card, not states of it. */
.chip.email, .chip.note, .chip.board { background: none; padding: 0; color: var(--faint); font-size: 11.5px; }

.who {
  width: 23px; height: 23px; border-radius: 99px; display: grid; place-items: center;
  background: var(--peak); color: #fff; font-size: 10.5px; font-weight: 600; flex: none;
  letter-spacing: .02em;
}
.who.none { background: none; color: var(--faint); border: 1px dashed var(--line); }

.empty { color: var(--faint); font-size: 13px; padding: 8px 6px 18px; margin: 0; text-align: center; }

/* The ridges as a watermark, not as content. The first attempt sat at .55
   and became the loudest thing on the page — solid mountains filling the
   emptiest columns, which is exactly backwards. It belongs at the weight of
   a blind emboss: present when you look for it, gone when you are working,
   and on its own layer so the label keeps its own contrast.

   A mask rather than a background image, so the ridges take the theme's own
   ink. `currentColor` inside a data: URI does not inherit — the SVG is its
   own document — so a background image would have meant hardcoding a grey
   and watching it fail in dark mode. The two ridges differ in alpha, which
   the mask carries through as the overlap. */
.empty::before {
  content: "";
  display: block;
  height: 40px;
  margin-bottom: 12px;
  background-color: var(--faint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 340'%3E%3Cpath d='M150 300 L330 60 L486 300 Z' fill='%23fff' fill-opacity='0.45'/%3E%3Cpath d='M26 300 L214 34 L402 300 Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center bottom / 52px auto;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 340'%3E%3Cpath d='M150 300 L330 60 L486 300 Z' fill='%23fff' fill-opacity='0.45'/%3E%3Cpath d='M26 300 L214 34 L402 300 Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center bottom / 52px auto;
  opacity: .42;
}

/* --- drawer ----------------------------------------------------- */

.scrim {
  position: fixed; inset: 0; background: rgba(16, 20, 23, .44); z-index: 40;
  backdrop-filter: blur(1.5px);
  animation: fade 150ms var(--ease);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(540px, 100%);
  background: var(--panel); border-left: 1px solid var(--line); z-index: 41;
  overflow-y: auto; padding: 20px 22px 48px;
  box-shadow: -8px 0 40px rgba(16, 20, 23, .1);
  animation: slide 220ms var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(14px); opacity: .4; } }
.drawer header { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 18px; }
.drawer header h2 { margin: 0; font-size: 18px; line-height: 1.3; flex: 1; }

/* The task name is a heading that happens to be editable, not a form field.
   Bordered like an input it truncated mid-word and read as data entry; left
   seamless it reads as the title, and the hover tint is what tells you it
   can be clicked into. */
.drawer header .task-title {
  flex: 1; min-width: 0;
  font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em;
  border-color: transparent; background: none;
  padding: 4px 8px; margin: -4px 0 0 -8px;
  text-overflow: ellipsis;
}
.drawer header .task-title:hover { background: var(--sunk); border-color: transparent; }
.drawer header .task-title:focus { background: var(--panel); border-color: var(--line); text-overflow: clip; }
.drawer .section { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.drawer h3 { font-size: 12.5px; color: var(--muted); margin: 0 0 11px; }

/* A timeline, not a stack of paragraphs. The rail runs between the entries
   and stops at the last one, so the thread has a visible beginning and end
   instead of trailing off into the Add-a-note box. */
.activity { list-style: none; margin: 0 0 18px; padding: 0; }
.activity li { position: relative; border-left: 2px solid var(--line); padding: 0 0 18px 17px; margin: 0; }
.activity li:last-child { border-left-color: transparent; padding-bottom: 6px; }

/* The node on the rail. The ring is the panel colour rather than a hole, so
   it stays clean over the rail in either theme. */
.activity li::before {
  content: ""; position: absolute; left: -5px; top: 5px;
  width: 8px; height: 8px; border-radius: 99px;
  background: var(--faint); box-shadow: 0 0 0 3px var(--panel);
}
.activity li.is-note::before { background: var(--line); box-shadow: 0 0 0 3px var(--panel), inset 0 0 0 1px var(--faint); }
.activity li.is-sent::before { background: var(--brand); }

/* Who first, then when — the old order led with a timestamp, so every entry
   opened with the least interesting thing on it. */
.activity .head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.activity .from { font-size: 13px; font-weight: 600; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity li.is-sent .from { color: var(--brand); }
.activity .when { margin-left: auto; flex: none; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Direction, as a call log shows it: in or out, readable before the words. */
.activity li.is-email .from::before { content: "↓"; margin-right: 5px; font-weight: 400; color: var(--faint); }
.activity li.is-sent .from::before { content: "↑"; color: var(--brand); }

.activity .body { white-space: pre-wrap; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
/* A quoted email is thousands of characters and would push the rest of the
   drawer off the screen. */
.activity .body.clamped {
  display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6;
  -webkit-box-orient: vertical; overflow: hidden;
}
.activity .more {
  background: none; border: 0; padding: 3px 0 0; margin: 0;
  color: var(--brand); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.activity .more:hover { text-decoration: underline; }

/* --- sign in ---------------------------------------------------- */

.signin { max-width: 390px; margin: 9vh auto; padding: 0 20px; }
/* height:auto is load-bearing: without it the img's height attribute applies as
   a presentational hint and the mark renders 120x532 instead of 120x89. */
.signin .mark { display: block; width: 120px; height: auto; margin: 0 auto 24px; border-radius: 16px; box-shadow: var(--shadow-2); }
.signin h1 { text-align: center; font-size: 34px; margin: 0 0 6px; line-height: 1; }
.signin p.sub { text-align: center; color: var(--muted); margin: 0 0 26px; font-size: 14.5px; }
.signin form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-2); }

.notice { border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; font-size: 14px; }
.notice.bad { background: color-mix(in srgb, var(--late) 12%, transparent); color: var(--late); }
.notice.good { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.notice.warn { background: color-mix(in srgb, var(--warn) 13%, transparent); color: var(--warn); }

/* --- admin ------------------------------------------------------ */

/* Settings is a column of forms, not a board: capped at a readable measure
   so a time-zone field stops being 1300px wide on a wide screen. */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-1);
  max-width: 880px;
}
.panel h2 { margin: 0 0 14px; font-size: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); }
code.token { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--sunk); padding: 3px 7px; border-radius: 6px; word-break: break-all; }

/* --- narrow ----------------------------------------------------- */

@media (max-width: 1000px) {
  .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 560px) {
  .columns { grid-template-columns: 1fr; }
  .wrap { padding: 16px 12px 40px; }
  /* The band wraps to two rows on a phone; tighten it so it costs less of
     the screen than the first card does. */
  .top { padding: 9px 12px; gap: 8px; }
  .top .btn { padding: 6px 10px; }
  .top .brand { font-size: 20px; }
  .filters input[type=text] { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* --- folded panels ---------------------------------------------- */

details.panel > summary { list-style: none; cursor: pointer; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::before {
  content: "▸";
  display: inline-block;
  width: 1.1em;
  color: var(--faint);
  transition: transform 120ms var(--ease);
}
details.panel[open] > summary::before { transform: rotate(90deg); }
details.panel > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
