/* ideae: one quiet system for every app. warm paper, graphite ink, one vermilion seal. */

:root {
  --paper: oklch(98.2% 0.005 85);
  --paper-2: oklch(96.4% 0.007 85);
  --paper-3: oklch(93.6% 0.009 85);
  --rule: oklch(90% 0.009 85);
  --rule-strong: oklch(82% 0.01 85);
  --ink: oklch(21% 0.012 70);
  --ink-2: oklch(42% 0.012 70);
  --ink-3: oklch(50.5% 0.011 70); /* the quietest text still clears 4.5:1 on every paper (wcag aa) */
  --seal: oklch(53.5% 0.175 36); /* deep enough that vermilion text clears 4.5:1, and white on it reads better too */
  --seal-ink: oklch(98.5% 0.008 60);
  --seal-wash: oklch(95% 0.03 45);
  --good: oklch(55% 0.1 155);
  --bad: oklch(56% 0.17 30);
  --fill: oklch(28% 0.012 70);
  --shadow: 0 1px 0 oklch(0% 0 0 / 0.03), 0 12px 32px -12px oklch(25% 0.03 60 / 0.18);
  --sans: "Geist", ui-sans-serif, -apple-system, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --rail: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(17.5% 0.006 70);
    --paper-2: oklch(20.5% 0.007 70);
    --paper-3: oklch(24% 0.008 70);
    --rule: oklch(27.5% 0.008 70);
    --rule-strong: oklch(36% 0.01 70);
    --ink: oklch(93.5% 0.006 85);
    --ink-2: oklch(74% 0.008 85);
    --ink-3: oklch(66% 0.008 85);
    --seal: oklch(68% 0.16 38);
    --seal-ink: oklch(17% 0.02 40);
    --seal-wash: oklch(27% 0.05 40);
    --good: oklch(74% 0.11 155);
    --bad: oklch(70% 0.15 32);
    --fill: oklch(86% 0.008 85);
    --shadow: 0 1px 0 oklch(100% 0 0 / 0.03), 0 16px 40px -12px oklch(0% 0 0 / 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.5 var(--sans);
  letter-spacing: -0.005em;
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; border-radius: 6px; }

/* ---- rail ---- */
.rail {
  position: relative; z-index: 9; /* above the stage, so the rail's labels can sit over the page */
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0 14px; gap: 6px;
}
.mark { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 10px; background: var(--fill); }
.mark svg { width: 20px; height: 20px; fill: var(--seal); stroke: none; }
#rail-apps { display: flex; flex-direction: column; gap: 4px; }
.rail-btn {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; color: var(--ink-3); text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.rail-btn:hover { color: var(--ink); background: var(--paper-3); }
.rail-btn:active { transform: scale(0.96); }
.rail-btn[aria-current="page"] { color: var(--paper); background: var(--fill); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.engine-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.engine-dot[data-state="ready"] { background: var(--good); }
.engine-dot[data-state="offline"], .engine-dot[data-state="unpaired"] { background: var(--seal); }

/* ---- stage ---- */
.stage { display: grid; grid-template-rows: 60px 1fr; min-width: 0; min-height: 0; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--rule); }
.crumbs { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs b { color: var(--ink); font-weight: 500; }
.ask {
  display: flex; align-items: center; gap: 10px; min-width: 300px;
  border: 1px solid var(--rule); background: var(--paper-2); color: var(--ink-3);
  padding: 7px 8px 7px 12px; border-radius: 10px;
  transition: border-color 160ms ease, transform 160ms var(--ease-out);
}
.ask:hover { border-color: var(--rule-strong); color: var(--ink-2); }
.ask:active { transform: scale(0.98); }
.ask span { flex: 1; text-align: left; }
.ask svg { width: 16px; height: 16px; }
kbd { font: 500 11px var(--mono); color: var(--ink-3); border: 1px solid var(--rule); border-radius: 5px; padding: 1px 6px; background: var(--paper); }
.status { justify-self: end; color: var(--ink-3); font-size: 13px; }
.status button { border: 0; background: none; color: var(--seal); padding: 0; text-decoration: underline; text-underline-offset: 3px; }
main { overflow-y: auto; min-height: 0; outline: none; }
main:focus-visible { outline: none; } /* focused by script after navigation, never a control */

/* ---- shared page grammar ---- */
.page { max-width: 1160px; margin: 0 auto; padding: 40px 40px 120px; } /* one width for every app, so the left edge never jumps between them */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
h1 { font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; margin: 0; }
h2 { font-size: 13px; font-weight: 500; color: var(--ink-3); margin: 44px 0 12px; letter-spacing: 0; }
.lede { color: var(--ink-2); margin: 10px 0 0; max-width: 60ch; }
.muted { color: var(--ink-3); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none;
  border: 1px solid var(--rule-strong); background: var(--paper); padding: 7px 14px; border-radius: 9px;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn.solid { background: var(--fill); border-color: var(--fill); color: var(--paper); font-weight: 500; }
.btn.seal { background: var(--seal); border-color: var(--seal); color: var(--seal-ink); font-weight: 500; }
.btn.small { padding: 4px 10px; font-size: 13px; border-radius: 7px; }
.link { border: 0; background: none; color: var(--ink-3); padding: 3px 7px; border-radius: 6px; font-size: 13px; }
.link:hover { color: var(--ink); background: var(--paper-3); }

.tabs { display: flex; gap: 2px; box-shadow: inset 0 -1px var(--rule); margin-bottom: 0; overflow-x: auto; scrollbar-width: none; }
/* the strip scrolls sideways, which clips anything hanging past its edge: both lines are drawn inside the boxes */
.section { padding-top: 28px; }
.section > :first-child { margin-top: 0; }
@media (min-width: 761px) {
  .page-head > div { min-width: 0; }
  .page-head .lede { max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.tabs a {
  text-decoration: none; color: var(--ink-3); padding: 10px 12px;
  white-space: nowrap; transition: color 160ms ease, box-shadow 160ms ease;
}
.tabs a:hover { color: var(--ink); }
.tabs a { position: relative; }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); }
.tabs .num { font-size: 11px; color: var(--ink-3); margin-left: 6px; }

/* ---- home ---- */
.hello { font-size: 44px; line-height: 1.05; letter-spacing: -0.045em; font-weight: 600; margin: 24px 0 0; max-width: 16ch; }
.hello em { font-style: normal; color: var(--ink-3); }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 32px; border-top: 1px solid var(--rule); }
.app-tile {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.app-tile .glyph { width: 40px; height: 40px; border-radius: 11px; background: var(--paper-3); display: grid; place-items: center; }
.app-tile:hover .glyph { background: var(--fill); color: var(--paper); }
.app-tile b { font-weight: 500; display: block; }
.app-tile small { color: var(--ink-3); font-size: 13px; }
.app-tile .go { color: var(--ink-3); }
.app-tile.soon { opacity: 0.55; pointer-events: none; }
.feed { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.feed li { display: grid; grid-template-columns: 96px 56px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.feed li span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.feed li.note { display: block; color: var(--ink-3); }
.voice-tips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { border: 1px solid var(--rule); background: var(--paper-2); color: var(--ink-2); padding: 5px 11px; border-radius: 99px; font-size: 13px; }
.chip:hover { border-color: var(--rule-strong); color: var(--ink); }

/* ---- connect panel ---- */
.connect { border: 1px solid var(--rule); border-radius: 14px; padding: 28px; margin-top: 28px; background: var(--paper-2); max-width: 640px; }
.connect h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.connect ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.connect li { counter-increment: step; display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.connect li::before { content: counter(step); font: 500 12px var(--mono); color: var(--ink-3); border: 1px solid var(--rule-strong); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; }
.connect code { font: 12.5px var(--mono); background: var(--paper-3); padding: 2px 6px; border-radius: 5px; }
.pair-row { display: flex; gap: 8px; margin-top: 8px; }
.pair-row input { width: 140px; font: 500 16px var(--mono); letter-spacing: 0.2em; border: 1px solid var(--rule-strong); background: var(--paper); border-radius: 9px; padding: 6px 10px; }

/* ---- lists (tidy and future apps) ---- */
.group { margin-top: 26px; }
.group-head {
  display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; background: var(--paper); z-index: 1;
}
.group-head label { flex: 1; display: flex; gap: 12px; align-items: center; font-weight: 500; cursor: pointer; }
.group-head .num { color: var(--ink-3); font-size: 12px; }
.row {
  position: relative; display: grid; grid-template-columns: 22px 20px minmax(0, 1fr) auto 92px; gap: 12px; align-items: center;
  margin: 0 -12px; padding: 9px 12px; border-radius: 10px;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}
.row::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 1px; background: var(--rule); transition: opacity 150ms ease; }
.row .n { font-size: 11px; color: var(--ink-3); text-align: right; transition: color 150ms ease; }
.row[data-cursor] { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); }
.row[data-cursor] .n { color: var(--seal); font-weight: 500; }
/* rows a list being spoken will select: outlined until the sentence ends */
.row[data-pending] { background: color-mix(in oklch, var(--seal-wash) 60%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--seal) 45%, transparent); }
.row[data-pending] .n { color: var(--seal); }
.row[data-cursor]::after, .row:has(+ .row[data-cursor])::after { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .row:hover:not([data-cursor]) { background: color-mix(in oklch, var(--paper-2) 75%, transparent); }
  .row:hover::after, .row:has(+ .row:hover)::after { opacity: 0; }
}
.row .name { min-width: 0; }
.row .name b { display: block; font-weight: 450; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .name small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .size { text-align: right; color: var(--ink-2); font-size: 13px; }
.row.big .size { color: var(--ink); font-weight: 500; }
.row .tools { display: flex; gap: 2px; opacity: 0; transition: opacity 120ms ease; }
.row:hover .tools, .row:focus-within .tools { opacity: 1; }
.sub { margin: 0 0 8px 34px; padding-left: 16px; border-left: 1px solid var(--rule-strong); }
input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--seal); }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.metric .value .unit { font-size: 0.62em; margin-left: 3px; color: var(--ink-2); }
.metric { padding: 22px 24px 22px 0; }
.metric + .metric { padding-left: 24px; border-left: 1px solid var(--rule); }
.metric h3 { margin: 0; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.metric .value { font: 500 28px/1.2 var(--mono); letter-spacing: -0.04em; margin-top: 8px; }
.metric .value small { font: 400 13px var(--sans); color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.meter { height: 3px; background: var(--paper-3); border-radius: 2px; margin-top: 14px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--fill); }
.meter i.hot { background: var(--seal); }
.lines { border-top: 1px solid var(--rule); }
.line { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.line p { margin: 2px 0 0; color: var(--ink-3); font-size: 13px; }
.line .num { min-width: 80px; text-align: right; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-weight: 400; color: var(--ink-3); font-size: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
td { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.r { text-align: right; padding-left: 18px; }

.toolbar { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; margin: 6px 0; }
.toolbar select { border: 1px solid var(--rule); background: var(--paper); border-radius: 7px; padding: 3px 6px; }
/* find: one field, then results. the field is the only control on the page */
.find { margin-top: 0; }
.find-box { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--paper); transition: border-color 120ms ease, box-shadow 120ms ease; }
.find-box:focus-within { border-color: var(--ink-3); box-shadow: 0 0 0 4px var(--paper-2); }
.find-box svg { width: 18px; height: 18px; flex: none; stroke: var(--ink-3); }
.find-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 450 16px/1 var(--sans); color: var(--ink); }
.find-box input::placeholder { color: var(--ink-3); }
.find-box input::-webkit-search-cancel-button { display: none; }
.find-meta { min-height: 18px; margin: 12px 0 6px; font-size: 12px; color: var(--ink-3); transition: opacity 120ms ease; }
.find-meta[data-busy] { opacity: 0.5; }
.row.found { grid-template-columns: 22px minmax(0, 1fr) auto 76px 92px; cursor: default; }
/* the shelf: saved searches as square tiles, each in the colour of what it finds */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 18px 0 6px; }
.shelf:empty { display: none; }
.tile {
  position: relative; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; text-align: left;
  padding: 14px; border-radius: 20px; cursor: pointer; font: inherit; color: var(--ink);
  background: color-mix(in oklch, var(--tile, var(--ink-2)) 14%, var(--paper));
  border: 1px solid color-mix(in oklch, var(--tile, var(--ink-2)) 24%, var(--rule));
  box-shadow: inset 0 1px 0 color-mix(in oklch, var(--paper) 70%, transparent);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}
.tile:active { transform: scale(0.97); transition-duration: 100ms; }
.tile[aria-current="true"] { background: color-mix(in oklch, var(--tile) 24%, var(--paper)); border-color: color-mix(in oklch, var(--tile) 45%, var(--rule)); }
.tile-glyph { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--tile); background: color-mix(in oklch, var(--tile) 22%, var(--paper)); }
.tile-glyph svg { width: 19px; height: 19px; }
.tile-count { position: absolute; top: 16px; right: 15px; font-size: 12px; color: var(--ink-3); transition: opacity 150ms ease; }
.tile b { font-size: 14px; font-weight: 550; letter-spacing: -0.01em; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile-name { display: block; padding-right: 20px; }
.tile-name b { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; } /* whole words: no "screen- / shots" */
.tile-star, .find-star { flex: none; display: grid; place-items: center; border: 0; padding: 0; background: none; cursor: pointer; }
.tile-star { position: absolute; right: 8px; bottom: 9px; width: 26px; height: 26px; border-radius: 50%; color: var(--tile); transition: background-color 150ms ease, color 150ms ease; }
.tile-star svg, .find-star svg { width: 17px; height: 17px; }
.tile-star svg { fill: currentColor; }
.find-star { width: 34px; height: 34px; margin-right: -8px; border-radius: 10px; color: var(--ink-3); transition: color 150ms ease, background-color 150ms ease; }
.find-star[hidden] { display: none; }
.find-star[aria-pressed="true"] { color: var(--seal); }
.find-star[aria-pressed="true"] svg { fill: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .tile-star:hover { background: color-mix(in oklch, var(--tile) 18%, transparent); }
  .find-star:hover { color: var(--ink); background: var(--paper-3); }
  .find-star[aria-pressed="true"]:hover { color: var(--seal); }
}

/* pages of results */
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px 0 0; }
.pager:empty { display: none; }
.pager .pages { display: flex; align-items: center; gap: 2px; }
.pager .pages button { min-width: 32px; height: 32px; padding: 0 8px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font-size: 13px; transition: background-color 150ms ease, color 150ms ease, transform 100ms var(--ease-out); }
.pager .pages button:active { transform: scale(0.95); }
.pager .pages button[aria-current="page"] { background: var(--fill); color: var(--paper); }
.pager .gap { color: var(--ink-3); padding: 0 4px; }
.pager .link:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .pager .pages button:not([aria-current]):hover { background: var(--paper-3); color: var(--ink); } }

.row.found .tag { font-size: 11px; color: var(--ink-3); }
.row.found .kind { font-size: 12px; color: var(--ink-3); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.found .when { font-size: 12px; color: var(--ink-2); text-align: right; white-space: nowrap; }
@media (max-width: 640px) {
  .row.found { grid-template-columns: 22px minmax(0, 1fr) 72px; }
  .row.found .tag, .row.found .kind { display: none; }
}

.empty { padding: 56px 0; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.loading { display: flex; align-items: center; gap: 12px; padding: 48px 0; color: var(--ink-3); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--rule-strong); border-top-color: var(--ink); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- action bar ---- */
.actionbar {
  position: fixed; right: 24px; bottom: 20px; z-index: 7; /* above the list rows, which sit on z-index 1 for the gliding highlight */
  display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 18px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 13px; box-shadow: var(--shadow);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.actionbar[data-empty] { opacity: 0; transform: translateY(8px); pointer-events: none; }
.actionbar .what { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.actionbar .what b { color: var(--ink); font-weight: 500; }
.actionbar .what small { display: block; margin-top: 2px; max-width: 380px; white-space: normal; color: var(--ink-3); font-size: 12px; }
.btn.confirm { background: var(--bad); border-color: var(--bad); color: var(--seal-ink); }

/* ---- palette (no open animation: it's used constantly) ---- */
.palette { position: fixed; inset: 0; background: oklch(20% 0.01 70 / 0.18); display: flex; justify-content: center; align-items: flex-start; padding-top: 14vh; z-index: 10; }
.palette[hidden] { display: none; }
.palette-box { width: min(620px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 18px; border-bottom: 1px solid var(--rule); }
.palette-input input { flex: 1; border: 0; background: none; outline: none; font-size: 17px; padding: 12px 0; letter-spacing: -0.01em; }
.voice-hint { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; color: var(--ink-3); font-size: 12px; background: var(--paper-3); }
.voice-hint svg { width: 14px; height: 14px; }
.palette[data-listening] .voice-hint { background: var(--seal); color: var(--seal-ink); }
.palette[data-listening] .voice-hint svg { animation: breathe 1s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.45; } }
.palette-list { list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow-y: auto; }
.palette-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 9px; cursor: pointer; transition: background-color 120ms ease; }
.palette-list li small { color: var(--ink-3); }
.palette-list li[aria-selected="true"] { background: var(--paper-3); }
.palette-reply { margin: 0; padding: 0 18px 14px; color: var(--ink-2); font-size: 13px; min-height: 0; }
.palette-reply:empty { display: none; }

.toast {
  /* top right, under the bar: the bottom belongs to the voice capsule and the trash bar, never covered */
  position: fixed; right: 20px; top: 72px; z-index: 8; max-width: 420px; padding: 11px 16px; border-radius: 11px;
  background: var(--fill); color: var(--paper); font-size: 13px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-8px) scale(0.98); filter: blur(4px); pointer-events: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), filter 220ms var(--ease-out);
}
.toast[data-show] { opacity: 1; transform: none; filter: none; }
.toast[data-kind="bad"] { background: var(--bad); color: var(--seal-ink); }

.settings-grid { display: grid; gap: 0; border-top: 1px solid var(--rule); max-width: 720px; }
.setting { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.setting h3 { margin: 0; font-size: 14px; font-weight: 500; }
.setting p { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }
.setting input[type="password"], .setting input[type="text"] { width: 100%; border: 1px solid var(--rule-strong); background: var(--paper); border-radius: 9px; padding: 7px 10px; }

/* ---- a command just touched this ---- */
.hit { animation: hit 640ms var(--ease-out); }
@keyframes hit { 0% { background-color: var(--seal-wash); } 100% { background-color: transparent; } }
.row[data-cursor].hit { animation-name: hit-cursor; }
@keyframes hit-cursor { 0% { background-color: var(--seal-wash); } 100% { background-color: var(--paper-2); } }

/* ---- voice capsule ---- */
.vox {
  position: fixed; left: calc(var(--rail) + 20px); bottom: 20px; z-index: 6;
  display: flex; align-items: center; gap: 10px; width: min(380px, calc(100vw - var(--rail) - 40px));
  padding: 6px; border-radius: 16px; border: 1px solid color-mix(in oklch, var(--rule-strong) 70%, transparent);
  background: color-mix(in oklch, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: var(--shadow); font-size: 13px;
}
.vox-mic { width: 34px; height: 34px; flex: none; border: 0; border-radius: 11px; background: var(--paper-3); color: var(--ink-2); display: grid; place-items: center; position: relative; transition: background-color 200ms ease, color 200ms ease, transform 120ms var(--ease-out); }
.vox-mic:active { transform: scale(0.94); }
.vox-mic svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .vox-mic:hover { color: var(--ink); } }
.vox[data-state="listening"] .vox-mic { background: var(--seal); color: var(--seal-ink); }
.vox[data-state="listening"] .vox-mic::after { content: ""; position: absolute; inset: -4px; border-radius: 14px; border: 1.5px solid var(--seal); opacity: 0; animation: ring 2.4s var(--ease-out) infinite; }
@keyframes ring { 0% { opacity: 0.45; transform: scale(0.94); } 100% { opacity: 0; transform: scale(1.14); } }
.vox-line { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); }
.vox-said { color: var(--ink-3); }
.vox-live { color: var(--ink); }
.vox[data-state="off"] .vox-live { color: var(--ink-3); }
.vox-confirm { display: flex; gap: 4px; flex: none; }
.vox-confirm[hidden] { display: none; }
/* yes and no: the words you say, on the buttons you'd press */
.vox-confirm button { min-width: 44px; border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink); border-radius: 9px; padding: 5px 12px; font-size: 13px; font-weight: 500; transition: transform 120ms var(--ease-out), background-color 150ms ease; }
.vox-confirm button:active { transform: scale(0.96); }
.vox-confirm [data-yes] { background: var(--seal); border-color: var(--seal); color: var(--seal-ink); }
.vox[data-confirming="warn"] .vox-confirm [data-yes] { background: var(--bad); border-color: var(--bad); }
@media (hover: hover) and (pointer: fine) { .vox-confirm [data-no]:hover { background: color-mix(in oklch, var(--ink) 6%, var(--paper)); } }
.vox-help { width: 28px; height: 28px; flex: none; border-radius: 9px; border: 1px solid var(--rule); background: transparent; color: var(--ink-3); font: 500 13px var(--mono); transition: color 150ms ease, border-color 150ms ease, transform 120ms var(--ease-out); }
.vox-help:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .vox-help:hover { color: var(--ink); border-color: var(--rule-strong); } }
.vox[data-mode="cloud"][data-state="listening"] .vox-line::after { content: " · cloud voice"; color: var(--ink-3); }

/* cues and hints share one spot above the capsule; cues stack in one cell so a new one crossfades over the old */
.vox-cues, .vox-hints { position: fixed; left: calc(var(--rail) + 20px); bottom: 74px; z-index: 6; pointer-events: none; max-width: min(460px, calc(100vw - var(--rail) - 40px)); }
.vox-cues { display: grid; }
.vox-cue {
  grid-area: 1 / 1; justify-self: start; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em;
  color: var(--paper); background: color-mix(in oklch, var(--fill) 92%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.vox-cue::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--seal); flex: none; }
.vox-cue[data-kind="warn"], .vox-cue[data-kind="ask"] { color: var(--ink); background: color-mix(in oklch, var(--paper) 88%, transparent); border: 1px solid var(--rule-strong); font-weight: 450; }
.vox-cue[data-kind="bad"] { color: var(--seal-ink); background: var(--bad); font-weight: 450; }
.vox-cue[data-kind="bad"]::before { background: var(--seal-ink); }
.vox-hints { display: flex; flex-wrap: wrap; gap: 6px; }
.vox-hints span {
  font: 12px var(--mono); color: var(--ink-2); padding: 5px 10px; border-radius: 99px;
  background: color-mix(in oklch, var(--paper) 80%, transparent); border: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(4px); filter: blur(2px);
  transition: opacity 120ms ease, transform 120ms ease, filter 120ms ease;
}
.vox-hints span::before { content: "“"; color: var(--ink-3); }
.vox-hints span::after { content: "”"; color: var(--ink-3); }
.vox-hints[data-show] span {
  opacity: 1; transform: none; filter: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), filter 220ms var(--ease-out);
  transition-delay: calc(var(--i) * 45ms);
}

/* ---- phrase sheet ---- */
.sheet {
  position: fixed; left: calc(var(--rail) + 20px); bottom: 76px; z-index: 7; transform-origin: bottom left;
  width: min(420px, calc(100vw - var(--rail) - 40px)); max-height: min(62vh, 560px); overflow-y: auto;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px 6px;
}
.sheet-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.sheet-head b { font-size: 15px; letter-spacing: -0.02em; }
.sheet-head .link { margin-left: auto; }
.sheet h4 { margin: 14px 0 4px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.sheet li:last-child { border-bottom: 0; }
.sheet .say small { display: block; color: var(--ink-3); font-size: 11.5px; }
.stack { display: grid; gap: 8px; }
.stack p { margin: 0; }
.check { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: 13px; }
.check input { margin-top: 3px; }

@media (max-width: 760px) {
  /* when the trash bar is up, what was heard rises above it instead of covering it */
  body:has(.actionbar:not([data-empty])) .vox-cues { bottom: 200px; }
  .toast { left: 16px; right: 16px; top: 68px; max-width: none; }
  .vox { left: 16px; right: 16px; bottom: 76px; width: auto; min-width: 0; }
  .vox-cues, .vox-hints { left: 16px; right: 16px; bottom: 130px; max-width: none; }
  .sheet { left: 16px; right: 16px; width: auto; bottom: 132px; }
  body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .rail { order: 2; flex-direction: row; border-right: 0; border-top: 1px solid var(--rule); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 0; justify-content: space-between; min-width: 0; }
  #rail-apps { flex-direction: row; flex: 1; min-width: 0; justify-content: space-around; gap: 0; }
  .rail-btn { width: 40px; height: 44px; flex: none; }
  .mark { margin: 0 4px 0 0; flex: none; width: 40px; height: 44px; background: transparent; transition: background-color 160ms ease; }
  .mark[aria-current="page"] { background: var(--fill); } /* in the tab bar the mark is the home tab: filled only when home is open */
  .rail-foot { margin: 0; flex-direction: row; gap: 6px; flex: none; }
  .topbar { grid-template-columns: 1fr auto; padding: 0 16px; }
  .crumbs { display: none; }
  .ask { min-width: 0; }
  .page { padding: 28px 16px 210px; } /* clears the capsule and, when it shows, the trash bar stacked above it */
  .metrics { grid-template-columns: 1fr; }
  .metric + .metric { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .row { grid-template-columns: 20px 20px minmax(0, 1fr) 76px; }
  .row .tools { display: none; }
  .setting { grid-template-columns: 1fr; gap: 10px; }
  .actionbar { left: 16px; right: 16px; bottom: 132px; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; }
  .spin { animation-duration: 2s; }
  .palette[data-listening] .voice-hint svg { animation: none; }
  .hit, .row[data-cursor].hit { animation: none; }
  .vox[data-state="listening"] .vox-mic::after { animation: none; opacity: 0.5; }
  .vox-hints span { transform: none; filter: none; }
  .tile, .tile:hover, .tile:active { transform: none; }
  .toast { transform: none; filter: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .vox, .vox-cue, .vox-hints span { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .vox-cue { background: var(--fill); }
}

/* ==== previews: quiet mock-ups of planned apps. actions live in ⌘k, voice and the legend ==== */
.page-wide { max-width: 1160px; }
.preview-chip { display: inline-block; vertical-align: middle; font: 500 11px var(--mono); letter-spacing: 0; color: var(--ink-3); border: 1px dashed var(--rule-strong); border-radius: 99px; padding: 1px 8px; margin-left: 6px; }
h1 .preview-chip { font-size: 12px; transform: translateY(-4px); }
.rail-btn .pv { position: absolute; right: 7px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--seal); opacity: 0.7; }
[data-fn][hidden] { display: none !important; }
.cdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; vertical-align: middle; }
.say { font: 12.5px var(--mono); color: var(--seal); white-space: nowrap; }
.small { font-size: 13px; }
.pv-meta { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }
.pv-meta b { color: var(--ink); font-weight: 500; }
.pv-label { margin: 22px 0 8px; font-size: 11.5px; color: var(--ink-3); }
.pv-cats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -8px 0 22px; font-size: 13px; color: var(--ink-2); }
.pv-cats > span { display: inline-flex; align-items: center; gap: 6px; }
.pv-cats .num { color: var(--ink-3); font-size: 11.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); border-radius: 99px; padding: 2px 10px; font-size: 12.5px; color: var(--ink-2); }
.chip.mem { border-color: color-mix(in oklch, var(--seal) 35%, transparent); color: var(--seal); background: var(--seal-wash); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mem-text { color: var(--seal); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.kv span { color: var(--ink-3); }
.kv b { font-weight: 500; text-align: right; }
.checks { list-style: none; margin: 0; padding: 0; font-size: 13px; display: grid; gap: 6px; }
.checks li { display: flex; gap: 8px; color: var(--ink-2); }
.checks li::before { content: "✓"; color: var(--good); font-weight: 600; }
.checks li.warn::before { content: "!"; color: var(--bad); }

/* legend: the one control on a preview page */
.legend-toggle { border: 1px solid var(--rule); background: none; border-radius: 99px; padding: 5px 12px; font-size: 13px; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; transition: border-color 160ms ease, color 160ms ease; }
.legend-toggle:hover, .legend-toggle[aria-expanded="true"] { border-color: var(--ink-3); color: var(--ink); }
.legend { transform-origin: top right; position: fixed; right: 24px; top: 76px; bottom: 92px; width: min(380px, calc(100vw - 48px)); z-index: 7; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); }
.legend[hidden] { display: none; }
.legend-tabs { display: flex; gap: 2px; align-items: center; padding: 10px 12px 0; border-bottom: 1px solid var(--rule); }
.legend-tabs [role="tab"] { border: 0; background: none; padding: 8px 10px; margin-bottom: -1px; border-bottom: 1.5px solid transparent; color: var(--ink-3); font-size: 13.5px; }
.legend-tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.legend-tabs .link { margin-left: auto; }
.legend section { flex: 1; overflow-y: auto; padding: 12px 16px; }
.legend-say, .legend-fns, .legend-ideas { list-style: none; margin: 0; padding: 0; }
.legend-say li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.legend-say .say { white-space: normal; }
.legend-say small { grid-column: 1 / -1; color: var(--ink-3); font-size: 12px; }
.legend-help { font-size: 12px; color: var(--ink-3); margin: 10px 0 0; }
.legend-fns li { padding: 8px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.legend-fns label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.legend-fns label input { margin-top: 3px; }
.legend-fns label b { font-weight: 500; font-size: 13.5px; display: block; }
.legend-fns label small { color: var(--ink-3); font-size: 12px; }
.legend-fns li:has(input:not(:checked)) label b { color: var(--ink-3); text-decoration: line-through; }
.legend textarea { width: 100%; border: 1px solid var(--rule); background: var(--paper-2); border-radius: 7px; padding: 5px 8px; font: 12.5px var(--sans); resize: vertical; min-height: 30px; }
.ask { display: flex; gap: 6px; }
.ask input { flex: 1; min-width: 0; border: 1px solid var(--rule-strong); background: var(--paper); border-radius: 9px; padding: 7px 10px; }
.legend-ideas { margin-top: 10px; }
.legend-ideas li { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.legend-foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--rule); }

/* decks */
.deck-quiet { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.deck-quiet.with-details { grid-template-columns: 200px minmax(0, 1fr) 220px; }
.deck-outline { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.deck-outline li { display: flex; gap: 10px; padding: 6px 8px; border-radius: 7px; cursor: pointer; color: var(--ink-3); }
.deck-outline li.on { color: var(--ink); background: var(--paper-3); }
.deck-outline .num { font-size: 11.5px; width: 12px; flex: none; }
.deck-canvas { container-type: inline-size; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.deck-slide {
  --deck-accent: #1F4E79; --deck-gold: #C8963E; --deck-soft: #C9D6E3; --deck-rule: #D9D2C3; --deck-ink: #1E1B18;
  aspect-ratio: 16 / 9; background: #F6F1E7; color: var(--deck-ink); position: relative;
  padding: 6cqw 7cqw; display: flex; flex-direction: column; gap: 3cqw; font-family: var(--sans);
}
.deck-slide h3 { margin: 0; font: 600 4.2cqw/1.1 Georgia, serif; letter-spacing: -0.01em; color: var(--deck-accent); }
.deck-slide.is-title { justify-content: center; background: var(--deck-accent); color: #F6F1E7; }
.deck-slide.is-title h2 { margin: 0; font: 600 8cqw/1 Georgia, serif; letter-spacing: -0.02em; }
.deck-slide.is-title p { margin: 2cqw 0 0; font-size: 2.4cqw; opacity: 0.8; }
.deck-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4cqw; align-items: center; flex: 1; }
.deck-slide ul { margin: 0; padding-left: 2.6cqw; font-size: 2.3cqw; line-height: 1.45; display: grid; gap: 1.2cqw; }
.deck-slide ul.deck-bullets { font-size: 3cqw; }
.deck-chart { width: 100%; height: auto; stroke: none; }
.deck-chart-v { font: 600 11px var(--sans); fill: var(--deck-ink); }
.deck-chart-l { font: 400 10px var(--sans); fill: #6B6358; }
.deck-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqw; flex: 1; align-content: center; }
.deck-steps li { border-top: 0.4cqw solid var(--deck-gold); padding-top: 1.6cqw; display: grid; gap: 0.6cqw; font-size: 2.1cqw; }
.deck-steps b { font-size: 2.6cqw; color: var(--deck-accent); }
.deck-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; flex: 1; align-content: center; }
.deck-cols div { border: 1px solid var(--deck-rule); border-radius: 1.2cqw; padding: 3cqw; display: grid; gap: 1cqw; }
.deck-cols b { font: 600 7cqw/1 Georgia, serif; color: var(--deck-accent); }
.deck-cols span { font-size: 2.2cqw; }
.deck-table { border-collapse: collapse; font-size: 2.6cqw; width: 60%; }
.deck-table td { border-bottom: 1px solid var(--deck-rule); padding: 1.2cqw 0; }
.deck-table td + td { text-align: right; font-variant-numeric: tabular-nums; }
.deck-note { position: absolute; left: 7cqw; bottom: 3.4cqw; margin: 0; font-size: 1.5cqw; color: #6B6358; }
.deck-brand { position: absolute; right: 7cqw; bottom: 3.4cqw; font: 600 1.6cqw Georgia, serif; color: var(--deck-gold); }
.deck-film { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.deck-thumb { container-type: inline-size; border: 1.5px solid transparent; border-radius: 7px; padding: 0; overflow: hidden; background: none; opacity: 0.75; transition: border-color 160ms ease, opacity 160ms ease, transform 160ms var(--ease-out); }
.deck-thumb:hover { opacity: 1; }
.deck-thumb:active { transform: scale(0.97); }
.deck-thumb.on { border-color: var(--seal); opacity: 1; }
.deck-thumb .deck-slide { pointer-events: none; }
.deck-details { font-size: 13px; }
.pv-list { list-style: none; margin: 0 0 18px; padding: 0; max-width: 720px; }
.pv-list li { display: grid; grid-template-columns: 22px 16px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink-3); font-size: 14px; }
.pv-list li.picked { color: var(--ink); }
.pv-list li b { font-weight: 500; }
.pv-list .num { font-size: 11.5px; color: var(--ink-3); }
.pv-list .tick { color: var(--seal); font-weight: 600; }
.pv-list small { color: var(--ink-3); font-size: 12.5px; }

/* mail */
.mail-quiet { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0; border-top: 1px solid var(--rule); }
.mail-list { border-right: 1px solid var(--rule); }
.mrow { display: grid; grid-template-columns: 22px 10px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.mrow.on { background: var(--paper-2); }
.mrow .n { font-size: 11px; color: var(--ink-3); text-align: right; padding-top: 2px; }
.mrow .cdot { margin-top: 6px; }
.mrow-main { min-width: 0; display: grid; }
.mrow-main b { font-weight: 450; }
.mrow.unread .mrow-main b { font-weight: 600; }
.mrow-subj, .mrow small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow small { color: var(--ink-3); font-size: 12.5px; }
.mrow-time { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.mail-read { padding: 18px 0 0 28px; display: grid; gap: 12px; align-content: start; }
.mail-read h3 { margin: 0; font-size: 21px; letter-spacing: -0.025em; }
.mail-read p { margin: 0; }
.why { font-size: 13px; color: var(--ink-2); }
.why .cdot { margin-right: 6px; }
.body-lines { display: grid; gap: 10px; max-width: 60ch; }
.compose-quiet { max-width: 680px; display: grid; gap: 18px; }
.mail-head { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.mail-head p { margin: 0; display: flex; gap: 10px; align-items: center; }
.mail-head .muted { width: 60px; font-size: 12.5px; }
.letter { display: grid; gap: 12px; font-size: 15px; }
.letter p { margin: 0; }
.letter mark { background: var(--seal-wash); color: var(--seal); border-radius: 4px; padding: 0 3px; }
.sig { display: grid; gap: 2px; border-top: 1px solid var(--rule); padding-top: 12px; font-size: 13px; color: var(--ink-2); }
.sig b { color: var(--ink); }
.sig .legal { color: var(--ink-3); font-size: 11px; margin-top: 6px; }
.unsub { font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 10px; }

/* files */
.panes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.fpane { border-top: 1px solid var(--rule); opacity: 0.72; transition: opacity 160ms ease; }
.fpane.active { opacity: 1; border-top-color: var(--ink); }
.fpane-path { margin: 0; padding: 8px 0; font-size: 12px; color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.frow { display: grid; grid-template-columns: 22px minmax(0, 1fr) 10px 64px 76px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.frow .n { font-size: 11px; color: var(--ink-3); text-align: right; }
.frow .fname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow.sel { background: var(--seal-wash); }
.frow.cur .fname { font-weight: 500; }
.frow .num { text-align: right; }

/* people */
.people-quiet { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; align-items: start; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; border-top: 1px solid var(--rule); }
.ptable td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ptable td b { font-weight: 500; display: block; }
.ptable td small { color: var(--ink-3); font-size: 12px; }
.ptable tr[data-cursor] td { background: var(--paper-2); }
.ptable tr[data-row] { cursor: pointer; }
.pstage { display: inline-flex; gap: 6px; align-items: center; }
.people-detail h3 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.people-detail p { margin: 4px 0; }

/* profiles */
.prof-quiet { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.swatches { display: flex; gap: 14px; flex-wrap: wrap; }
.sw { display: grid; gap: 3px; font-size: 12px; }
.sw i { width: 84px; height: 54px; border-radius: 9px; border: 1px solid var(--rule); display: block; }
.sw b { font-weight: 500; }
.sw small { color: var(--ink-3); font-size: 11px; }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; margin-top: 12px; }
.dodont div { border: 1px solid var(--rule); border-radius: 9px; padding: 10px 12px; font-size: 13.5px; }
.dodont small { display: block; font: 500 11px var(--mono); margin-bottom: 4px; }
.dodont .do small { color: var(--good); }
.dodont .dont small { color: var(--bad); }
pre.core { font: 12px/1.6 var(--mono); color: var(--ink-2); margin: 0; white-space: pre-wrap; }

/* tidy check-up */
.checkup-summary { font-size: 22px; letter-spacing: -0.02em; line-height: 1.3; margin: 0 0 22px; max-width: 44ch; text-wrap: balance; color: var(--ink-2); }
.checkup-summary b { color: var(--ink); font-weight: 600; }
.findings { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--rule); max-width: 780px; }
.findings li { display: grid; grid-template-columns: 22px 10px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.findings .num { font-size: 11.5px; color: var(--ink-3); text-align: right; padding-top: 2px; }
.findings .cdot { margin-top: 7px; }
.findings b { font-weight: 500; }
.findings p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); max-width: 64ch; }
.findings .fix { color: var(--ink-3); font-size: 12.5px; }
.healthy { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.week { max-width: 640px; margin-bottom: 18px; }
.week-row { display: grid; grid-template-columns: 140px 160px minmax(0, 1fr); gap: 16px; align-items: center; padding: 6px 0; font-size: 13px; color: var(--ink-2); }
.spark { width: 160px; height: 40px; }

@media (max-width: 1000px) {
  .deck-quiet, .deck-quiet.with-details { grid-template-columns: minmax(0, 1fr); }
  .deck-outline { display: flex; flex-wrap: wrap; gap: 4px; }
  .people-quiet, .prof-quiet { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .mail-quiet, .panes { grid-template-columns: minmax(0, 1fr); }
  .mail-list { border-right: 0; }
  .mail-read { padding-left: 0; }
  .deck-film { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .legend { top: 16px; bottom: 140px; right: 16px; }
  .frow { grid-template-columns: 22px minmax(0, 1fr) 10px 60px; }
  .frow > :last-child { display: none; }
  .week-row { grid-template-columns: minmax(0, 1fr) 120px; }
  .week-row .spark { width: 100%; }
  .week-row small { display: none; }
  .dodont { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .deck-thumb, .fpane, .legend-toggle { transition: none; }
}

/* ==== plan previews (30 oct 2026): triage rows, reading pane, shared filing, later ==== */
.tri { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 0; align-items: start; }
.tri-list { border-right: 1px solid var(--rule); padding-right: 14px; }
.tri-group { display: grid; }
.trow { display: grid; grid-template-columns: 22px 10px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 12px; margin: 0 -12px; border-radius: 10px; font-size: 13.5px; text-decoration: none; color: inherit; cursor: default; position: relative; }
a.trow { cursor: pointer; }
.trow::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 1px; background: var(--rule); transition: opacity 160ms ease; }
.trow .n { font-size: 11px; color: var(--ink-3); text-align: right; padding-top: 2px; transition: color 160ms ease; }
.trow[data-cursor] .n { color: var(--seal); font-weight: 500; }
.trow[data-cursor]::after, .trow:has(+ .trow[data-cursor])::after { opacity: 0; }
.trow .cdot, .trow .app-dot { margin-top: 6px; }
.trow-main { min-width: 0; display: grid; gap: 1px; }
.trow-main b { font-weight: 450; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow.unread .trow-main b { font-weight: 600; }
.trow-main > span, .trow-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow-main small { color: var(--ink-3); font-size: 12.5px; }
.trow-main small.rule { color: var(--seal); }
.trow-time { color: var(--ink-3); font-size: 12px; white-space: nowrap; padding-top: 2px; }
.tag { display: inline-block; font: 500 10.5px var(--mono); color: var(--ink-2); border: 1px solid var(--rule-strong); border-radius: 99px; padding: 0 7px; margin-left: 6px; vertical-align: 1px; }
.tag.replied { color: var(--good); border-color: color-mix(in oklch, var(--good) 40%, transparent); }
.tag.open { color: var(--seal); border-color: color-mix(in oklch, var(--seal) 40%, transparent); }
.read { padding: 18px 0 0 28px; display: grid; gap: 12px; align-content: start; }
.read h3 { margin: 0; font-size: 21px; letter-spacing: -0.025em; font-weight: 600; }
.read p { margin: 0; }
.read.empty { place-content: center; min-height: 240px; }
.say-next { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.say-next .say { font: 12.5px var(--mono); color: var(--seal); }
.sendbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper-2); font-size: 13.5px; }
.sendbar[hidden] { display: none; }
.sendbar i { height: 3px; border-radius: 2px; background: var(--paper-3); overflow: hidden; }
.sendbar i b { display: block; height: 100%; background: var(--seal); transform-origin: left; }
.sendbar .say { font: 12.5px var(--mono); color: var(--seal); }

/* the gliding cursor: one highlight per list, eased between rows */
.glides { position: relative; }
.glides > :not(.glider) { position: relative; z-index: 1; }
.glider { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 10px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); opacity: 0; pointer-events: none;
  transition: transform 190ms var(--ease-out), height 190ms var(--ease-out), width 190ms var(--ease-out), opacity 180ms ease; }
.glider[data-on] { opacity: 1; }
.glides > .row[data-cursor], .glides > .trow[data-cursor] { background: transparent; box-shadow: none; }

/* shared */
.shared { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 36px; align-items: start; }
.folders { position: sticky; top: 8px; display: grid; gap: 2px; font-size: 13px; }
.folders p { margin: 0; display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); }
.folders p:first-child { background: var(--paper-2); color: var(--ink); }
.fglyph { width: 10px; height: 12px; margin-top: 4px; border: 1.3px solid var(--ink-3); border-radius: 2px 4px 2px 2px; }
.fglyph.clock { width: 11px; height: 11px; border-radius: 50%; }
.trow.waiting .trow-time { color: var(--seal); font: 500 11.5px var(--mono); }
.was { color: var(--ink-3); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 60ch; }
.rules li { font-size: 13.5px; color: var(--ink-2); padding-left: 18px; position: relative; }
.rules li::before { content: "→"; position: absolute; left: 0; color: var(--ink-3); }
.empty-line { margin: 4px 0 8px; }
.pipeline { border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; background: var(--paper-2); display: grid; gap: 12px; }
.pipeline[hidden] { display: none; }
.pipe-file { margin: 0; font-size: 13px; color: var(--ink); }
.pipeline ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pipeline li { font: 500 11.5px var(--mono); padding: 3px 9px; border-radius: 99px; border: 1px solid var(--rule); color: var(--ink-3); transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease; }
.pipeline li[data-state="now"] { color: var(--seal-ink); background: var(--seal); border-color: var(--seal); }
.pipeline li[data-state="done"] { color: var(--ink); border-color: var(--rule-strong); }
.pipe-note { margin: 0; font-size: 13px; color: var(--ink-2); min-height: 1.5em; }

/* later */
.later { display: grid; gap: 4px; max-width: 760px; }

/* home */
.home-needs { max-width: 760px; border-top: 1px solid var(--rule); padding-top: 4px; }
.app-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.app-dot[data-app="mail"] { background: oklch(62% 0.15 36); }
.app-dot[data-app="shared"] { background: oklch(60% 0.12 250); }
.app-dot[data-app="later"] { background: oklch(66% 0.13 85); }
.later-line { font-size: 13px; margin: 14px 0 0; }

/* settings: learned words and the keymap */
.learned { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.learned li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.keys-setting { align-items: start; }
.stack-tight { display: flex; gap: 12px; align-items: center; margin: 12px 0 0; font-size: 13px; }
.stack-tight select { border: 1px solid var(--rule); background: var(--paper); border-radius: 7px; padding: 3px 6px; margin-left: 6px; }
.clash { font-size: 12.5px; color: var(--seal); margin: 12px 0 0; }
.keymap { display: grid; gap: 18px; }
.keymap h4 { margin: 0 0 4px; font: 500 11.5px var(--mono); color: var(--ink-3); }
.krow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.krow small { display: block; color: var(--ink-3); font-size: 12px; }
.kk { display: flex; gap: 4px; align-items: center; }
.own { font: 500 10.5px var(--mono); color: var(--seal); }

/* voice: asleep in always-listening mode, awake after "hey idea" */
.vox[data-asleep] .vox-mic { background: var(--seal-wash); color: var(--seal); }
.vox[data-asleep] .vox-mic::after { animation: none; }
.vox[data-asleep] .vox-live { color: var(--ink-3); }

/* page changes crossfade: the old view fades and softens while the new one rises in */
#view { view-transition-name: view; }
::view-transition-group(root), ::view-transition-group(view) { animation-duration: 240ms; animation-timing-function: var(--ease-out); }
::view-transition-old(view) { animation: vt-out 180ms var(--ease-out) both; }
::view-transition-new(view) { animation: vt-in 260ms var(--ease-out) both; }
:root[data-vt="section"]::view-transition-new(view) { animation-name: vt-fade; }
@keyframes vt-out { to { opacity: 0; filter: blur(2px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } }
@keyframes vt-fade { from { opacity: 0; } }
:root[data-vtdir="down"]::view-transition-new(view) { animation-name: vt-in-down; }
:root[data-vtdir="up"]::view-transition-new(view) { animation-name: vt-in-up; }
:root[data-vtdir="down"]::view-transition-old(view) { animation-name: vt-out-down; }
:root[data-vtdir="up"]::view-transition-old(view) { animation-name: vt-out-up; }
@keyframes vt-in-down { from { opacity: 0; transform: translateY(14px); filter: blur(3px); } }
@keyframes vt-in-up { from { opacity: 0; transform: translateY(-14px); filter: blur(3px); } }
@keyframes vt-out-down { to { opacity: 0; transform: translateY(-8px); filter: blur(3px); } }
@keyframes vt-out-up { to { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
@media (max-width: 760px) { /* the rail is a tab bar along the bottom: pages slide sideways */
  @keyframes vt-in-down { from { opacity: 0; transform: translateX(18px); } }
  @keyframes vt-in-up { from { opacity: 0; transform: translateX(-18px); } }
  @keyframes vt-out-down { to { opacity: 0; transform: translateX(-10px); } }
  @keyframes vt-out-up { to { opacity: 0; transform: translateX(10px); } }
}

@media (max-width: 1000px) {
  .tri { grid-template-columns: minmax(0, 1fr); }
  .tri-list { border-right: 0; padding-right: 0; }
  .read { padding-left: 0; padding-top: 24px; }
  .shared { grid-template-columns: minmax(0, 1fr); }
  .folders { position: static; display: flex; flex-wrap: wrap; }
  .folders p { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .glider { transition: opacity 120ms ease; }
  ::view-transition-old(view), ::view-transition-new(view) { animation: none; }
}
/* lenis owns the view's scroll; native smooth scrolling would animate each of its frames again */
#view.lenis-smooth { scroll-behavior: auto !important; }
#view.lenis-stopped { overflow: hidden; }

/* round 2: the mode label in the capsule, writing mode lines */
.vox-mode { flex: none; font: 500 11px var(--mono); color: var(--seal); border: 1px solid color-mix(in oklch, var(--seal) 40%, transparent); background: var(--seal-wash); border-radius: 99px; padding: 2px 8px; }
.vox-mode[hidden] { display: none; }
.vox[data-vmode="writing"] .vox-mic { background: var(--fill); color: var(--paper); }
.draft-lines { display: grid; gap: 12px; }
.draft-lines p { margin: 0; }
.draft-lines .gap { height: 4px; }
.writing-help { line-height: 1.9; }
.writing-help .say { font: 12px var(--mono); color: var(--seal); margin-right: 8px; white-space: nowrap; }
.health-sum { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); }
.health-sum b { color: var(--ink); font-weight: 500; }
.palette-list li small kbd { margin-left: 6px; }
.today { list-style: none; margin: 0; padding: 0; max-width: 760px; border-top: 1px solid var(--rule); }
.today li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.today b { font-weight: 500; }
.today .free .say { font: 12px var(--mono); color: var(--seal); }
.notes { list-style: none; margin: 0; padding: 0; max-width: 760px; border-top: 1px solid var(--rule); }
.notes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.notes-empty { font-size: 13.5px; }
.notes-empty .say { font: 12.5px var(--mono); color: var(--seal); }
.notes-where { font: 11.5px var(--mono); margin-left: 8px; font-weight: 400; }
.guide { margin: 26px 0 0; max-width: 560px; border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; background: var(--paper-2); }
.guide[hidden] { display: none; }
.guide-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; font-size: 13.5px; }
.guide-head b { font-weight: 600; }
.guide ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.guide li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); transition: color 240ms ease; }
.guide .say { font: 12.5px var(--mono); color: var(--seal); }
.tickbox { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--rule-strong); display: grid; place-items: center; font-size: 11px; color: var(--ink-3); transition: background-color 260ms var(--ease-out), border-color 260ms var(--ease-out), color 260ms var(--ease-out); }
.guide li[data-done] { color: var(--ink-3); }
.guide li[data-done] .tickbox { background: var(--seal); border-color: var(--seal); color: var(--seal-ink); }
.today .remind b { color: var(--seal); }

/* ==== memory: claude's brief, in plain language ==== */
.mem .page-head { align-items: flex-end; }
.mstatus { min-height: 1.5em; transition: color 200ms ease; }
.mstatus.bad { color: var(--bad); }
.mbook { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; align-items: start; }
.mcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mcard { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 14px; text-decoration: none; background: var(--paper); transition: border-color 200ms ease, transform 200ms var(--ease-out), box-shadow 200ms ease; }
.mcard.wide { grid-column: 1 / -1; }
.mcard b { font-weight: 500; font-size: 15px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mcard small { color: var(--ink-3); font-size: 12.5px; }
@media (hover: hover) and (pointer: fine) { .mcard:hover { border-color: var(--rule-strong); transform: translateY(-1px); box-shadow: var(--shadow); } }
.mk { font: 500 11.5px var(--mono); color: var(--ink-3); margin: 0 0 6px; }
.mside { border-left: 1px solid var(--rule); padding-left: 24px; }
.mmeter { height: 4px; border-radius: 2px; background: var(--paper-3); overflow: hidden; margin: 4px 0 8px; }
.mmeter i { display: block; height: 100%; background: var(--fill); transform-origin: left; transition: transform 400ms var(--ease-out); }
.mmeter i.hot { background: var(--seal); }
.mbrief { margin-top: 28px; border-top: 1px solid var(--rule); padding-top: 14px; }
.mbrief summary { cursor: pointer; font-size: 13.5px; display: flex; gap: 10px; align-items: baseline; list-style: none; }
.mbrief summary::-webkit-details-marker { display: none; }
.mbrief pre { margin: 12px 0 0; font: 12.5px/1.65 var(--mono); white-space: pre-wrap; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; max-height: 420px; overflow: auto; }
.mlist { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--rule); max-width: 760px; }
.mlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.mtext { outline: none; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; transition: background-color 160ms ease; font-size: 14.5px; }
.mtext:hover { background: var(--paper-2); }
.mtext:focus { background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule-strong); }
.mx { width: 26px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--ink-3); font-size: 16px; opacity: 0; transition: opacity 160ms ease, background-color 160ms ease; }
li:hover > .mx, li:focus-within > .mx, .mx:focus-visible { opacity: 1; }
.mx:hover { background: var(--paper-3); color: var(--ink); }
.madd, .mfield { width: 100%; max-width: 760px; height: 40px; border: 1px dashed var(--rule-strong); border-radius: 10px; background: none; padding: 0 12px; font: 14px var(--sans); color: var(--ink); transition: border-color 160ms ease, background-color 160ms ease; }
.mfield { border-style: solid; }
.madd::placeholder, .mfield::placeholder { color: var(--ink-3); }
.madd:focus, .mfield:focus { outline: none; border-style: solid; border-color: var(--ink-3); background: var(--paper); }
.madd.small { width: auto; min-width: 140px; height: 32px; flex: 1; }
.mlabel { font-size: 12.5px; color: var(--ink-3); margin: 22px 0 8px; display: block; }
.mhint { font-size: 13px; color: var(--ink-3); margin: 16px 0 0; line-height: 1.8; }
.mhint .say, .mside .say { font: 12.5px var(--mono); color: var(--seal); }
.mhow { border: 1px solid var(--rule); background: var(--paper-2); border-radius: 99px; padding: 2px 10px; font: 500 11.5px var(--mono); color: var(--ink-2); white-space: nowrap; }
.mdials { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 32px; max-width: 900px; }
.mdial .mlabel { margin-top: 14px; }
.mnow { font-size: 13px; color: var(--ink-2); margin: 8px 0 0; min-height: 1.4em; }
.mpick { position: relative; display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 11px; background: var(--paper-2); }
.mpick .hl { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 8px; background: var(--paper); box-shadow: 0 1px 0 oklch(0% 0 0 / 0.04), 0 4px 12px -6px oklch(25% 0.03 60 / 0.3); transition: transform 300ms var(--ease-out), width 300ms var(--ease-out); }
.mpick button { position: relative; z-index: 1; min-width: 38px; height: 30px; border: 0; background: none; border-radius: 8px; font: 500 12px var(--mono); color: var(--ink-3); padding: 0 10px; transition: color 200ms ease; }
.mpick button[aria-checked="true"] { color: var(--ink); }
.mpick button:empty::after { content: ""; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--rule-strong); margin: auto; }
.mpick button:focus-visible { outline: 2px solid var(--seal); outline-offset: 1px; }
.mwords { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; max-width: 900px; }
.mchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mchip { display: inline-flex; gap: 4px; align-items: center; border: 1px solid var(--rule); border-radius: 99px; padding: 3px 4px 3px 11px; font-size: 13px; background: var(--paper); }
.mchip button { border: 0; background: none; color: var(--ink-3); width: 20px; height: 20px; border-radius: 50%; }
.mchip button:hover { background: var(--paper-3); color: var(--ink); }
[data-chips="avoid"] .mchip { border-color: color-mix(in oklch, var(--bad) 30%, var(--rule)); }
.mexamples { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; max-width: 900px; }
.mexamples li { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: start; border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; }
.mexamples small { display: block; font: 500 11px var(--mono); margin-bottom: 4px; }
.mexamples small.good { color: var(--good); }
.mexamples small.bad { color: var(--bad); }
.mexadd { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 900px; }
.mroutines { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.mroutines li { border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; transition: opacity 200ms ease; }
.mroutines li.off { opacity: 0.6; }
.mrhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mrhead .name { font-weight: 600; font-size: 15px; }
.mrwhen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; }
.mrwhen select, .mrwhen input { border: 1px solid var(--rule); background: var(--paper); border-radius: 8px; padding: 4px 8px; font: 13px var(--sans); color: var(--ink); }
.mroutines textarea { width: 100%; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper-2); padding: 10px 12px; font: 14px/1.5 var(--sans); color: var(--ink); resize: vertical; }
.mroutines textarea:focus { outline: none; border-color: var(--ink-3); background: var(--paper); }
.mrfoot { display: flex; gap: 14px; align-items: center; }
.mrfoot .danger { margin-left: auto; color: var(--bad); }
.mswitch { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-3); cursor: pointer; }
.mswitch input { accent-color: var(--seal); }
.mruns { list-style: none; padding: 0; margin: 0; max-width: 760px; border-top: 1px solid var(--rule); }
.mruns li { border-bottom: 1px solid var(--rule); padding: 10px 0; }
.mruns summary { cursor: pointer; font-size: 14px; display: flex; gap: 10px; }
.mrun { white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: var(--ink); margin-top: 8px; }
.mfind { list-style: none; padding: 0; margin: 0; max-width: 760px; border-top: 1px solid var(--rule); }
.mfind li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.mfind li .cdot { margin-top: 6px; }
.mfind li.fix .cdot { background: var(--bad); }
.mfind li.warn .cdot { background: oklch(70% 0.14 80); }
.mfind li.tip .cdot { background: var(--ink-3); }
.mfind b { font-weight: 500; }
.mfind p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); }
.mfind.compact li { padding: 10px 0; }
.mfind.compact p { font-size: 12.5px; }
.msum { font-size: 14px; margin: 0 0 14px; }
.msum .fix { color: var(--bad); }
.msum .warn { color: oklch(60% 0.13 75); }
.mok { font-size: 15px; color: var(--good); }
.mtry { display: flex; gap: 10px; max-width: 760px; margin-bottom: 10px; }
.mtry .mfield { flex: 1; height: 44px; }
.mcompare { display: grid; gap: 18px; margin-top: 20px; max-width: 1000px; }
.mcompare.two { grid-template-columns: 1fr 1fr; }
.mans { border: 1px solid var(--rule); border-radius: 14px; padding: 14px 18px; }
.mans:first-child { border-color: color-mix(in oklch, var(--seal) 35%, var(--rule)); }
.mans .mlabel { margin-top: 0; }
.mbroke { margin: 12px 0 0; padding: 10px 12px 10px 28px; border-radius: 10px; background: color-mix(in oklch, var(--bad) 10%, transparent); color: var(--bad); font-size: 13px; }
.mkept { margin: 12px 0 0; font-size: 13px; color: var(--good); }
.mbad { color: var(--bad); font-size: 13.5px; }
@media (max-width: 1000px) {
  .mbook, .mcompare.two, .mwords, .mexadd, .mexamples li { grid-template-columns: minmax(0, 1fr); }
  .mside { border-left: 0; padding-left: 0; }
  .mcards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .mpick .hl, .mmeter i, .mcard { transition: none; } }
.mstart { margin-bottom: 26px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper-2); }
.mstart .mk { margin-bottom: 2px; }
.mstyles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mstyle { display: grid; gap: 2px; text-align: left; border: 1px solid var(--rule); background: var(--paper); border-radius: 12px; padding: 10px 14px; min-width: 190px; transition: border-color 180ms ease, transform 160ms var(--ease-out); }
.mstyle b { font-weight: 600; font-size: 14px; }
.mstyle small { color: var(--ink-3); font-size: 12px; }
.mstyle:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .mstyle:hover { border-color: var(--ink-3); } }

/* no keyboard (phones, tablets): the ⌘k hint has nothing to press */
/* no keyboard (phones, tablets): every key chip and key-only line goes; the phrases stay */
@media (hover: none) and (pointer: coarse) { kbd, .keys-only { display: none; } }
.slow-note { margin: -32px 0 32px; max-width: 52ch; animation: slow-in 400ms var(--ease-out) both; }
@keyframes slow-in { from { opacity: 0; transform: translateY(4px); } }
.example-note { margin: 0 0 14px; }
.example-note .preview-chip { margin: 0 6px 0 0; }
/* dark: the selected pill sits lighter than its track, so the choice reads at a glance */
@media (prefers-color-scheme: dark) { .mpick .hl { background: var(--rule-strong); box-shadow: none; } }
.mpick button[aria-checked="true"]:empty::after { background: var(--ink); } /* the chosen middle step shows its dot */

/* ==== start: begin from where you are ==== */
.eyebrow { margin: 0 0 14px; font: 500 11.5px var(--mono); letter-spacing: 0.02em; color: var(--seal); }
.start-stage { min-height: 60vh; max-width: 900px; }
.start-title { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 600; margin: 0; text-wrap: balance; }
.start .lede { font-size: 16px; max-width: 54ch; margin-top: 14px; }
.start .back { display: inline-flex; align-items: center; gap: 4px; margin: -6px 0 22px -7px; }
.start .back svg { width: 15px; height: 15px; }
.start-note { margin-top: 16px; max-width: 62ch; }
.start-foot { margin-top: 28px; font-size: 13px; }
.start-foot a { color: var(--ink-2); text-underline-offset: 3px; }

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 38px; }
.way {
  position: relative; display: grid; gap: 22px; align-content: space-between; text-align: left; min-height: 188px;
  padding: 20px; border-radius: 18px; border: 1px solid var(--rule); background: var(--paper-2);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}
.way:active { transform: scale(0.98); transition-duration: 120ms; }
.way-glyph { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--rule); color: var(--ink-2); transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 300ms var(--ease-out); }
.way-glyph svg { width: 21px; height: 21px; }
.way-text b { display: block; font-size: 17px; font-weight: 550; letter-spacing: -0.02em; }
.way-text small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.way-key { position: absolute; top: 18px; right: 18px; opacity: 0; transition: opacity 200ms ease; }
.way.quiet { background: transparent; border-style: dashed; }
.way:first-child .way-glyph { background: var(--seal); border-color: var(--seal); color: var(--seal-ink); }
@media (hover: hover) and (pointer: fine) {
  .way:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--rule-strong); background: var(--paper); }
  .way:hover .way-glyph { transform: scale(1.06); }
  .way:not(:first-child):hover .way-glyph { background: var(--fill); border-color: var(--fill); color: var(--paper); }
  .way:hover .way-key { opacity: 1; }
}

.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; color: var(--ink-2); display: flex; gap: 10px; align-items: baseline; }
.field > span .num { color: var(--seal); font-size: 12px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--rule-strong); background: var(--paper); border-radius: 12px; padding: 12px 14px;
  font: 450 16px/1.45 var(--sans); color: var(--ink); outline: none; resize: none;
  transition: border-color 160ms ease, box-shadow 200ms var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { border-color: var(--ink-3); box-shadow: 0 0 0 4px color-mix(in oklch, var(--seal) 12%, transparent); }
.site-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 12px; align-items: end; margin-top: 30px; max-width: 640px; }
.site-form .field { grid-column: 1 / -1; }
.site-form .field input { font-size: 20px; padding: 14px 16px; letter-spacing: -0.01em; }
.btn.big { padding: 11px 20px; font-size: 15px; border-radius: 12px; justify-content: center; }
.form-error { grid-column: 1 / -1; margin: 0; color: var(--bad); font-size: 13.5px; animation: nudge 360ms var(--ease-out); }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }
.tell-form { display: grid; gap: 20px; margin-top: 30px; max-width: 640px; }
.tell-go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* segmented control: one pill slides between the choices */
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 12px; background: var(--paper-3); justify-self: start; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 7px 16px; border-radius: 9px; color: var(--ink-3); font-size: 14px; transition: color 200ms ease; }
.seg button[aria-checked="true"] { color: var(--ink); font-weight: 500; }
.seg-hl { position: absolute; left: 4px; top: 4px; bottom: 4px; border-radius: 9px; background: var(--paper); box-shadow: 0 1px 2px oklch(20% 0.02 60 / 0.12), 0 0 0 0.5px oklch(20% 0.02 60 / 0.06); transition: transform 320ms var(--ease-out), width 320ms var(--ease-out); }

/* reading: each page ticks in, then the honest drafting line, with real elapsed time and no fake bar */
.reading { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--rule); max-width: 680px; }
.reading li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.reading li > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reading li .num { font-size: 12px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reading[data-arrived] li { animation: tick-in 460ms var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes tick-in { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }
.tickmark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklch, var(--good) 16%, transparent); color: var(--good); }
.tickmark svg { width: 13px; height: 13px; stroke-width: 2.2; }
.pulse { width: 9px; height: 9px; margin: 0 5px; border-radius: 50%; background: var(--seal); animation: pulse 1.6s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--seal) 45%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
.drafting { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 14px 16px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--rule); max-width: 680px; font-size: 14px; }
.drafting .num { margin-left: auto; }
.drafting[hidden] { display: none; }

/* review: every proposal is a line you keep or drop, with where it came from */
.review-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.bulk { display: flex; gap: 4px; flex: none; }
.pgroup h2 { display: flex; gap: 8px; align-items: baseline; }
.pgroup h2 .num { font-size: 11px; }
.props { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.prop {
  position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: start;
  margin: 0 -12px; padding: 11px 12px; border-radius: 12px; transition: background-color 160ms ease, opacity 240ms var(--ease-out);
}
.props .prop::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 1px; background: var(--rule); }
.prop:not([data-kept]) { opacity: 0.5; }
.prop:not([data-kept]) .ptext { text-decoration: line-through; text-decoration-color: var(--ink-3); text-decoration-thickness: 1px; }
.prop[data-cursor] { background: var(--paper-2); }
.keep {
  width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; padding: 0; display: grid; place-items: center;
  border: 1.5px solid var(--rule-strong); background: var(--paper); color: transparent;
  transition: background-color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out);
}
.keep svg { width: 14px; height: 14px; stroke-width: 2.4; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset 280ms var(--ease-out); }
.keep:active { transform: scale(0.88); }
.keep[aria-pressed="true"] { background: var(--fill); border-color: var(--fill); color: var(--paper); }
.keep[aria-pressed="true"] svg { stroke-dashoffset: 0; }
.ptext { outline: none; border-radius: 6px; padding: 1px 4px; margin: 0 -4px; line-height: 1.5; transition: box-shadow 160ms ease, background-color 160ms ease; cursor: text; }
.ptext:hover { background: var(--paper-3); }
.ptext:focus { background: var(--paper); box-shadow: 0 0 0 1px var(--rule-strong), 0 0 0 4px color-mix(in oklch, var(--seal) 10%, transparent); }
.pmeta { display: flex; gap: 8px; align-items: center; padding-top: 2px; }
.src { font: 11.5px var(--mono); color: var(--ink-3); text-decoration: none; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 5px; padding: 1px 5px; transition: color 150ms ease, background-color 150ms ease; }
a.src:hover { color: var(--ink); background: var(--paper-3); }
.guess { font: 500 10.5px var(--mono); color: var(--seal); background: var(--seal-wash); border-radius: 99px; padding: 1px 7px; white-space: nowrap; }
.vprop { border-top: 1px solid var(--rule); }
.vdials { display: grid; gap: 9px; max-width: 460px; }
.vdials p { margin: 2px 0 0; color: var(--ink-2); }
.vdial { display: grid; grid-template-columns: 64px 1fr 64px; gap: 12px; align-items: center; }
.vdial span:last-child { text-align: right; }
.vtrack { position: relative; height: 4px; border-radius: 2px; background: var(--paper-3); }
.vtrack i { position: absolute; top: 50%; left: calc(var(--at) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--fill); box-shadow: 0 0 0 3px var(--paper); }
.qnote { margin: -4px 0 12px; }
.field.qa { margin-bottom: 12px; max-width: 680px; }
.field.qa input { font-size: 15px; padding: 10px 12px; }
.savebar {
  position: sticky; bottom: 20px; z-index: 6; margin: 36px 0 0 auto; width: min(620px, 100%); display: flex; align-items: center; gap: 18px; /* right-aligned, clear of the voice capsule */
  padding: 10px 10px 10px 20px; border-radius: 16px; border: 1px solid var(--rule);
  background: color-mix(in oklch, var(--paper) 82%, transparent); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow);
}
.saving-count { font-size: 14px; color: var(--ink-2); }
.saving-count b { display: inline-block; color: var(--ink); font-weight: 600; font-size: 15px; }
.savekeys { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.savebar .btn { margin-left: 6px; }

/* done: a check that draws itself, once */
.done { display: grid; justify-items: start; padding-top: 4vh; }
.done-mark { width: 64px; height: 64px; margin-bottom: 26px; stroke: var(--good); stroke-width: 2.4; }
.done-mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 700ms var(--ease-out) 80ms forwards; opacity: 0.35; }
.done-mark path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw 420ms var(--ease-out) 520ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-actions { display: flex; gap: 10px; align-items: center; margin-top: 28px; flex-wrap: wrap; }

/* the first-run card on home, and its twin on memory */
.start-card { position: relative; margin-top: 26px; max-width: 640px; }
.sc-main, .mbegin {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 52px 16px 16px;
  border-radius: 16px; text-decoration: none; border: 1px solid color-mix(in oklch, var(--seal) 30%, var(--rule));
  background: linear-gradient(180deg, color-mix(in oklch, var(--seal-wash) 70%, var(--paper)), var(--paper));
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 200ms ease;
}
.mbegin { grid-template-columns: minmax(0, 1fr) auto; padding: 16px 18px; margin-bottom: 22px; }
.sc-glyph { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--seal); color: var(--seal-ink); }
.sc-glyph svg { width: 21px; height: 21px; }
.sc-text b, .mbegin b { display: block; font-weight: 550; letter-spacing: -0.015em; }
.sc-text small, .mbegin small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.sc-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--seal); }
.sc-go svg { width: 15px; height: 15px; transition: transform 240ms var(--ease-out); }
.sc-x { position: absolute; right: 10px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border: 0; border-radius: 9px; background: none; color: var(--ink-3); display: grid; place-items: center; transition: background-color 150ms ease, color 150ms ease; }
.sc-x svg { width: 15px; height: 15px; }
.sc-x:hover { background: var(--paper-3); color: var(--ink); }
.sc-main:active, .mbegin:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .sc-main:hover, .mbegin:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in oklch, var(--seal) 50%, var(--rule)); }
  .sc-main:hover .sc-go svg, .mbegin:hover .sc-go svg { transform: translateX(3px); }
}

/* ==== plug-ins ==== */
.pl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.pl-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.pl-row.skeleton { grid-template-columns: 44px 1fr; height: 76px; }
.pl-tile {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 600 19px var(--sans); letter-spacing: -0.03em; text-transform: lowercase;
  color: oklch(98% 0.01 var(--h, 40)); background: linear-gradient(160deg, oklch(66% 0.12 var(--h, 40)), oklch(52% 0.13 calc(var(--h, 40) + 20)));
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.25), 0 1px 2px oklch(20% 0.03 var(--h, 40) / 0.2);
}
.pl-tile.big { width: 56px; height: 56px; border-radius: 15px; font-size: 25px; }
.pl-tile.small { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
.skeleton .pl-tile { background: var(--paper-3); box-shadow: none; }
.pl-main { all: unset; cursor: pointer; display: grid; gap: 3px; min-width: 0; padding: 6px 10px; margin: -6px -10px; border-radius: 12px; transition: background-color 160ms ease; }
.pl-main:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
.pl-name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pl-name b { font-size: 15px; font-weight: 550; letter-spacing: -0.015em; }
.pl-blurb { color: var(--ink-2); font-size: 13.5px; }
.pl-changed { font: 500 10.5px var(--mono); color: var(--bad); }
.pl-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.pl-chip { display: inline-flex; align-items: center; gap: 5px; font: 11px var(--mono); color: var(--ink-3); border: 1px solid var(--rule); border-radius: 99px; padding: 1px 8px 1px 6px; }
.pl-chip svg { width: 12px; height: 12px; }
.pl-row[data-on] .pl-chip { color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .pl-main:hover { background: var(--paper-2); } }

/* the switch: ios proportions, the knob slides and stretches a little while pressed */
.switch { position: relative; width: 44px; height: 26px; padding: 0; border: 0; border-radius: 99px; background: var(--rule-strong); transition: background-color 260ms var(--ease-out); flex: none; }
.switch i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 99px; background: #fff; box-shadow: 0 2px 5px oklch(0% 0 0 / 0.18), 0 0 0 0.5px oklch(0% 0 0 / 0.06); transition: transform 300ms var(--ease-out), width 200ms var(--ease-out); }
.switch:active i { width: 25px; }
.switch[aria-checked="true"] { background: var(--good); }
.switch[aria-checked="true"] i { transform: translateX(18px); }
.switch[aria-checked="true"]:active i { transform: translateX(13px); }

.pl-detail { grid-column: 2 / -1; display: grid; grid-template-rows: 1fr; }
.pl-detail[hidden] { display: none; }
.pl-detail > div { overflow: hidden; min-height: 0; }
.pl-detail > div > :first-child { margin-top: 14px; }
.pl-ask-k { margin: 16px 0 6px; font: 500 11px var(--mono); color: var(--ink-3); }
.pl-perms, .pl-says, .pl-cant { list-style: none; margin: 0; padding: 0; }
.pl-perms li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.pl-perms li svg { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: var(--paper-3); color: var(--ink-2); }
.pl-perms.compact li { grid-template-columns: 22px 1fr; padding: 3px 0; font-size: 13px; color: var(--ink-2); }
.pl-perms.compact li svg { width: 22px; height: 22px; padding: 4px; border-radius: 6px; }
.pl-says li { display: flex; gap: 12px; align-items: baseline; padding: 4px 0; flex-wrap: wrap; }
.pl-path { margin: 14px 0 4px; }
.pl-path .num { font-size: 11.5px; }
.pl-empty, .pl-shared p { color: var(--ink-2); }
.pl-empty p, .pl-shared p { max-width: 64ch; }
.pl-empty { padding: 4px 0; border-top: 1px solid var(--rule); }
.pl-empty b, .pl-shared b { color: var(--ink); font-weight: 500; }
.pl-problems { list-style: none; padding: 0; margin: 12px 0 0; }
.pl-problems li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 8px 12px; border-radius: 10px; background: color-mix(in oklch, var(--bad) 8%, transparent); color: var(--bad); font-size: 13px; margin-bottom: 6px; }
.pl-make { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; margin-top: 52px; padding-top: 8px; border-top: 1px solid var(--rule); }
.pl-make h2 { margin-top: 28px; }
.pl-make p { color: var(--ink-2); max-width: 52ch; }
.pl-cant li { position: relative; padding: 4px 0 4px 20px; color: var(--ink-2); font-size: 13.5px; }
.pl-cant li::before { content: ""; position: absolute; left: 2px; top: calc(50% - 1px); width: 9px; height: 2px; background: var(--bad); border-radius: 1px; }
.pl-code { margin: 28px 0 0; padding: 18px 20px; border-radius: 14px; background: var(--fill); color: var(--paper); font: 12px/1.6 var(--mono); overflow-x: auto; }
.pl-shared { margin-top: 20px; }

/* asking before a recipe switches on: a centred sheet, scrim behind, focus held inside */
.pl-ask { position: fixed; inset: 0; z-index: 11; display: grid; place-items: center; padding: 16px; background: oklch(20% 0.01 70 / 0.22); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pl-ask[hidden] { display: none; }
.pl-ask-box { width: min(400px, 100%); padding: 26px 26px 20px; border-radius: 20px; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 30px 80px -20px oklch(20% 0.03 60 / 0.4); text-align: left; }
.pl-ask-box h3 { margin: 16px 0 4px; font-size: 19px; font-weight: 600; letter-spacing: -0.025em; }
.pl-ask-box .pl-pin { margin-top: 16px; }
.pl-ask-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.pl-ask-actions .btn { justify-content: center; padding: 9px 14px; }

/* a recipe's answer: a draft to copy, never sent */
.pl-draft {
  position: fixed; right: 24px; bottom: 20px; z-index: 9; width: min(440px, calc(100vw - 32px)); max-height: min(70vh, 620px); overflow-y: auto;
  padding: 16px 18px; border-radius: 18px; border: 1px solid var(--rule); transform-origin: bottom right;
  background: color-mix(in oklch, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 24px 60px -18px oklch(20% 0.03 60 / 0.35);
}
.pl-draft-head { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-bottom: 12px; }
.pl-draft-head b { display: block; font-weight: 550; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-draft-head small { display: block; color: var(--ink-3); font-size: 12px; }
.pl-draft-text { white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: var(--ink); }
.pl-draft-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.pl-draft-bad { color: var(--bad); margin: 4px 0; }
.pl-broke { margin: 12px 0 0; font-size: 12.5px; color: var(--seal); }
.pl-draft-busy { display: grid; gap: 9px; padding: 4px 0; }
.shimmer { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, var(--paper-3) 0%, var(--paper-2) 40%, var(--paper-3) 80%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
.shimmer.short { width: 62%; }
.skeleton .shimmer { height: 14px; width: 50%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }

@media (max-width: 760px) {
  .ways { grid-template-columns: 1fr; }
  .way { min-height: 0; grid-template-columns: 42px 1fr; align-items: center; gap: 14px; }
  .site-form { grid-template-columns: 1fr; }
  .review-head { flex-direction: column; align-items: flex-start; }
  .prop { grid-template-columns: 26px minmax(0, 1fr); }
  .pmeta { grid-column: 2; }
  .savebar { bottom: 132px; }
  .savekeys { display: none; }
  .pl-make { grid-template-columns: 1fr; gap: 0; }
  .pl-draft { right: 16px; left: 16px; width: auto; bottom: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse, .shimmer { animation: none; }
  .done-mark circle, .done-mark path { animation: none; stroke-dashoffset: 0; }
  .reading[data-arrived] li { animation: none; }
  .way:hover, .sc-main:hover, .mbegin:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .savebar, .pl-draft { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}


/* ==== polish: the rail glides, labels itself, and every pressable thing answers the press ==== */
.rail-glide { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 10px; background: var(--fill); pointer-events: none;
  transition: transform 380ms var(--ease-out), width 380ms var(--ease-out), height 380ms var(--ease-out), opacity 200ms ease; }
.rail-btn, .mark { z-index: 1; }
.rail[data-glide] .rail-btn[aria-current="page"] { background: transparent; }
.rail-btn svg { transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .rail-btn[data-tip]::after {
    content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; translate: 0 -50%;
    padding: 5px 10px; border-radius: 8px; background: var(--fill); color: var(--paper); font-size: 12.5px; font-weight: 500; white-space: nowrap;
    box-shadow: var(--shadow); pointer-events: none; opacity: 0; transform: translateX(-4px) scale(0.96); transform-origin: left center;
    transition: opacity 120ms ease, transform 160ms var(--ease-out);
  }
  .rail-btn[data-tip]:hover::after { opacity: 1; transform: none; transition-delay: 420ms; }
  .rail[data-warm] .rail-btn[data-tip]:hover::after { transition-delay: 0ms; transition-duration: 0ms; }
  .rail-btn:hover svg { transform: scale(1.06); }
}
.engine-dot { transition: background-color 400ms ease; }
.engine-dot[data-state="connecting"] { animation: breathe 1.4s ease-in-out infinite; }

/* settings and memory: on-off choices are switches, not ticks */
.check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 32px; height: 20px; margin-top: 0; border-radius: 99px;
  background: var(--rule-strong); cursor: pointer; transition: background-color 260ms var(--ease-out);
}
.check input[type="checkbox"]::before { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px oklch(0% 0 0 / 0.22); transition: transform 300ms var(--ease-out), width 180ms var(--ease-out); }
.check input[type="checkbox"]:active::before { width: 20px; }
.check input[type="checkbox"]:checked { background: var(--good); }
.check input[type="checkbox"]:checked::before { transform: translateX(12px); }
.check input[type="checkbox"]:checked:active::before { transform: translateX(8px); }
.check { align-items: center; cursor: pointer; }

/* hover and press, everywhere a thing can be pressed */
.chip, .link, .mstyle, .app-tile, .tabs a { transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out); }
.chip:active, .link:active, .mstyle:active { transform: scale(0.97); }
.app-tile .go { transition: transform 240ms var(--ease-out), color 160ms ease; }
.app-tile .glyph { transition: background-color 200ms ease, color 200ms ease, transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .app-tile:hover .go { transform: translateX(3px); color: var(--ink); }
  .app-tile:hover .glyph { transform: scale(1.04); }
  a.trow:hover:not([data-cursor]) { background: color-mix(in oklch, var(--paper-2) 75%, transparent); }
  a.trow:hover::after, a.trow:has(+ a.trow:hover)::after { opacity: 0; }
}
a.trow { transition: background-color 150ms ease; }
.app-tile:active { transform: scale(0.99); }
@media (prefers-reduced-motion: reduce) {
  .rail-glide { transition: opacity 120ms ease; }
  .engine-dot[data-state="connecting"] { animation: none; }
}
@media (max-width: 760px) { .rail-glide { border-radius: 10px; } }

/* the bar: a rule only once content scrolls beneath it, and the page name once its heading has gone */
.topbar { transition: border-color 240ms ease; }
.topbar:not([data-edge]) { border-bottom-color: transparent; }
.crumb-now { display: inline-block; transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), filter 260ms var(--ease-out); }
.topbar:not([data-titled]) .crumb-now { opacity: 0; transform: translateY(5px); filter: blur(2px); }

/* ⌘k sits on a frosted layer: the page stays visible, out of focus */
.palette { -webkit-backdrop-filter: blur(3px) saturate(120%); backdrop-filter: blur(3px) saturate(120%); }
.palette-box { background: color-mix(in oklch, var(--paper) 97%, transparent); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); box-shadow: 0 30px 80px -24px oklch(20% 0.03 60 / 0.38), 0 0 0 0.5px oklch(20% 0.03 60 / 0.06); }
@media (hover: hover) and (pointer: fine) { .palette-list li:not([aria-selected="true"]):hover { background: color-mix(in oklch, var(--paper-3) 55%, transparent); } }
@media (prefers-reduced-transparency: reduce) { .palette, .palette-box { -webkit-backdrop-filter: none; backdrop-filter: none; } .palette-box { background: var(--paper); } }
@media (prefers-reduced-motion: reduce) { .crumb-now { transform: none; filter: none; } }

/* rows that open something when clicked say so: a pointer, a soft hover, a small press */
[data-press] { cursor: pointer; transition: background-color 150ms ease, transform 140ms var(--ease-out); }
[data-press]:active { transform: scale(0.995); }
@media (hover: hover) and (pointer: fine) {
  .trow[data-press]:hover:not([data-cursor]) { background: color-mix(in oklch, var(--paper-2) 75%, transparent); }
  .trow[data-press]:hover::after, .trow:has(+ .trow[data-press]:hover)::after { opacity: 0; }
  tr[data-press]:hover:not([data-cursor]) td { background: color-mix(in oklch, var(--paper-2) 75%, transparent); }
}
@media (prefers-reduced-motion: reduce) { [data-press]:active { transform: none; } }

/* "show in finder" sits on the brief's heading line but outside it, so the fold-out heading holds no other control */
.mbrief { position: relative; }
.mbrief-reveal { position: absolute; right: 0; top: 0; }

/* touch: apple's 44pt minimum. the control looks the same; an invisible hit area around it reaches 44 x 44 */
@media (pointer: coarse) {
  :is(.mark, .rail-btn, .ask, .vox-mic, .vox-help, .legend-toggle, .btn, .chip, .sc-x, .link:not(.mbrief-reveal), .switch, .keep, .mbrief summary, .seg button, .tabs a, .mstyle):not([style*="position"]) { position: relative; }
  :is(.mark, .rail-btn, .ask, .vox-mic, .vox-help, .legend-toggle, .btn, .chip, .sc-x, .link, .switch, .keep, .mbrief summary, .seg button, .mstyle)::before { content: ""; position: absolute; top: min(0px, calc(50% - 22px)); bottom: min(0px, calc(50% - 22px)); left: min(0px, calc(50% - 22px)); right: min(0px, calc(50% - 22px)); }
  .tabs a { padding-block: 12px; }
  select { min-height: 44px; }
  .ptable td { padding-block: 11px; }
}

/* "more": only on a phone, where the tab bar keeps to five */
.rail-more { display: none; border: 0; background: none; padding: 0; }
.more-sheet { position: fixed; right: 12px; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 10; width: min(300px, calc(100vw - 24px)); padding: 6px; border-radius: 18px; border: 1px solid var(--rule); transform-origin: bottom right;
  background: color-mix(in oklch, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); box-shadow: 0 24px 60px -18px oklch(20% 0.03 60 / 0.35); }
.more-sheet[hidden] { display: none; }
.more-row { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; min-height: 52px; padding: 7px 10px; border-radius: 12px; text-decoration: none; transition: background-color 150ms ease, transform 120ms var(--ease-out); }
.more-row .glyph { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--paper-3); color: var(--ink-2); }
.more-row b { display: block; font-weight: 500; font-size: 15px; }
.more-row small { display: block; color: var(--ink-3); font-size: 12.5px; }
.more-row:active { transform: scale(0.98); background: var(--paper-3); }
.more-row[aria-current="page"] .glyph { background: var(--fill); color: var(--paper); }
@media (max-width: 760px) {
  .rail-more { display: grid; }
  #rail-apps .rail-btn:nth-child(n+4), #rail-settings { display: none; }
  .rail-btn, .mark { width: 48px; }
  #rail-apps { justify-content: space-evenly; }
  .rail-foot { gap: 2px; }
  .engine-dot { width: 6px; height: 6px; }
}
@media (prefers-reduced-transparency: reduce) { .more-sheet { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* touch: rows of small controls get the room their hit areas need */
@media (pointer: coarse) {
  .voice-tips .chip { min-height: 44px; }
  .krow { min-height: 44px; }
  .mbrief summary { padding-right: 120px; }
  .ptable td { padding-block: 12px; }
}

/* shared, for real: setup, the plan, the rule box */
.sh-setup { max-width: 640px; }
.sh-steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: s; border-top: 1px solid var(--rule); }
.sh-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 2px 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.sh-steps li::before { content: counter(s); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 500 12px var(--mono); color: var(--seal-ink); background: var(--seal); }
.sh-steps b { font-weight: 550; letter-spacing: -0.01em; }
.sh-steps span { color: var(--ink-2); font-size: 13.5px; }
.sh-go { display: flex; align-items: center; gap: 14px; margin: 26px 0 12px; }
.sh-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 6px; }
.sh-thinking { display: grid; gap: 9px; padding: 14px 0 6px; }
.sh-thinking p { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; }
.sh-rule { display: flex; gap: 8px; margin-top: 12px; max-width: 560px; }
.sh-rule input { flex: 1; min-width: 0; border: 1px solid var(--rule-strong); background: var(--paper); border-radius: 9px; padding: 6px 10px; outline: none; transition: border-color 160ms ease, box-shadow 200ms var(--ease-out); }
.sh-rule input:focus { border-color: var(--ink-3); box-shadow: 0 0 0 4px color-mix(in oklch, var(--seal) 10%, transparent); }
.sh-example { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sh-example.bad { color: var(--bad); }
.trow.sh-undone { opacity: 0.55; }
.trow.waiting.prop { grid-template-columns: 22px 24px minmax(0, 1fr) auto; margin: 0 -12px; }
.trow.waiting.prop:not([data-kept]) .trow-main b .ptext { text-decoration: line-through; text-decoration-color: var(--ink-3); }
/* the proposed name is what you're checking: it wraps rather than hides behind an ellipsis */
.trow.waiting.prop .trow-main b, .trow.waiting.prop .trow-main small { white-space: normal; overflow-wrap: anywhere; }
.trow.sh-stay .trow-main small { white-space: normal; }
.trow.sh-stay { opacity: 0.85; }
.trow.sh-stay .trow-time .link { font: 13px var(--sans); color: var(--ink-3); }
.later-soon p { max-width: 64ch; }
.later-soon .link { padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
