@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fbfaf8;
  --bg-side: #f3f1ed;
  --bg-soft: #f0ede8;
  --bg-hover: #ece9e3;
  --raised: #ffffff;
  --ink: #1b1a18;
  --ink-2: #45423d;
  --muted: #6b665e;
  --faint: #a29d94;
  --line: #e8e4dd;
  --line-strong: #d7d1c7;
  --field-line: #cdc6bb;
  --accent: #f04e1f;
  --accent-strong: #d4421a;
  --accent-text: #b2370f;
  --accent-ink: #ffffff;
  --accent-wash: #fdeee8;
  --primary: #1b1a18;
  --primary-ink: #fbfaf8;
  --done: #3f7a37;
  --work: #a86c00;
  --wait: #4a69a8;
  --danger: #a3301a;
  --danger-wash: #f8e1da;
  --focus: #d4421a;
  --av-owner: #2f2c28; --av-owner-ink: #f3efe8;
  --av-0: #dfe9d6; --av-0-ink: #2f4a26;
  --av-1: #dbe6f2; --av-1-ink: #1f3b5a;
  --av-2: #e8e0f3; --av-2-ink: #432f61;
  --av-3: #f2e4c8; --av-3-ink: #5a4415;
  --av-4: #f4dde1; --av-4-ink: #5c2530;
  --av-5: #d5ebe6; --av-5-ink: #1d4a43;
  --shadow: 0 1px 2px rgb(27 26 24 / 0.06), 0 4px 16px rgb(27 26 24 / 0.06);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 8px;
  --radius-sm: 6px;
  --top-h: 48px;
  --side-w: 240px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131211;
    --bg-side: #0e0d0c;
    --bg-soft: #1b1a18;
    --bg-hover: #201f1c;
    --raised: #1a1917;
    --ink: #edebe6;
    --ink-2: #c9c5bd;
    --muted: #9b968d;
    --faint: #5e5a53;
    --line: #262421;
    --line-strong: #353230;
    --field-line: #45413c;
    --accent: #ff7148;
    --accent-strong: #ff7148;
    --accent-text: #ff8d6b;
    --accent-ink: #1a0b06;
    --accent-wash: #2c1710;
    --primary: #edebe6;
    --primary-ink: #131211;
    --done: #8fbf7c;
    --work: #e2a83a;
    --wait: #8fa9dd;
    --danger: #ff8a6e;
    --danger-wash: #3a1a13;
    --focus: #ff7148;
    --av-owner: #2e2b27; --av-owner-ink: #e9e4dc;
    --av-0: #2a3a25; --av-0-ink: #cfe6c4;
    --av-1: #1f2f42; --av-1-ink: #cfe0f4;
    --av-2: #30263f; --av-2-ink: #e2d6f4;
    --av-3: #3a3020; --av-3-ink: #f1dfb6;
    --av-4: #3e2329; --av-4-ink: #f4d0d6;
    --av-5: #1c3632; --av-5-ink: #c6ebe4;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 50;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--raised);
  color: var(--ink);
  border: 2px solid var(--focus);
  font-weight: 600;
}
.skip:focus { top: 8px; }
main:focus { outline: none; }
.link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* App shell */
.app {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  min-height: 100vh;
  background: linear-gradient(to right, var(--bg-side) calc(var(--side-w) - 1px), var(--line) calc(var(--side-w) - 1px) var(--side-w), transparent var(--side-w));
}
.app.bare { grid-template-columns: minmax(0, 1fr); background: none; }
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-side);
  border-right: 1px solid var(--line);
}
.side-head { height: var(--top-h); display: flex; align-items: center; padding: 0 16px; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; white-space: nowrap; letter-spacing: -0.01em; font-size: 13.5px; }
.mark { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); flex: none; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06); }
.mark.big { display: block; width: 28px; height: 28px; border-radius: 8px; margin: 0 auto 16px; }
.side-nav { flex: 1; padding: 4px 8px 16px; }
.nav-section + .nav-section { margin-top: 14px; }
.nav-title {
  margin: 0 0 2px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.nav-list > li { min-width: 0; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 450;
}
.nav-item:hover { background: var(--bg-hover); color: var(--ink); }
.nav-item.is-current { background: var(--bg-hover); color: var(--ink); font-weight: 550; }
.nav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-item.needs .nav-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent-strong);
  color: var(--accent-ink);
  font-weight: 600;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
}
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.nav-item.is-unread .nav-label { color: var(--ink); font-weight: 600; }
.side-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  min-width: 0;
}
.who-email { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signout { color: var(--ink-2); white-space: nowrap; font-size: 12.5px; padding: 3px 6px; border-radius: 4px; }
.signout:hover { background: var(--bg-hover); color: var(--ink); }

/* Nav icons drawn with CSS */
.ni { position: relative; width: 14px; height: 14px; flex: none; color: var(--muted); display: inline-block; }
.nav-item:hover .ni, .nav-item.is-current .ni { color: var(--ink); }
.ni-today { border: 1.5px solid currentColor; border-radius: 3px; }
.ni-today::after { content: ""; position: absolute; left: 2px; right: 2px; top: 2px; height: 2px; background: currentColor; border-radius: 1px; }
.ni-list::before, .ni-list::after { content: ""; position: absolute; left: 1px; right: 1px; height: 1.5px; background: currentColor; border-radius: 1px; }
.ni-list::before { top: 3px; box-shadow: 0 4px 0 currentColor; }
.ni-list::after { top: 11px; right: 5px; }
.ni-board { background:
  linear-gradient(currentColor, currentColor) 0 0 / 6px 6px no-repeat,
  linear-gradient(currentColor, currentColor) 8px 0 / 6px 6px no-repeat,
  linear-gradient(currentColor, currentColor) 0 8px / 6px 6px no-repeat,
  linear-gradient(currentColor, currentColor) 8px 8px / 6px 6px no-repeat; border-radius: 2px; opacity: 0.9; }
.ni-plus::before, .ni-plus::after, .plus::before, .plus::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; }
.ni-plus::before { left: 6px; top: 1px; width: 2px; height: 12px; }
.ni-plus::after { top: 6px; left: 1px; height: 2px; width: 12px; }
.ni-gear { border: 1.5px solid currentColor; border-radius: 50%; }
.ni-gear::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.ni-download::before { content: ""; position: absolute; left: 6px; top: 1px; width: 2px; height: 8px; background: currentColor; }
.ni-download::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 4px; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 2px 2px; }
.ni-hash { font: 500 14px/14px var(--mono); text-align: center; }
.ni-hash::before { content: "#"; }
.ni-help { border: 1.5px solid currentColor; border-radius: 50%; }

/* Top bar */
.pane { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
}
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: 13.5px; }
.crumbs a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); padding: 3px 6px; border-radius: 4px; min-width: 0; }
.crumbs a:hover { color: var(--ink); background: var(--bg-hover); }
.crumbs a[aria-current="page"] { color: var(--ink); font-weight: 550; flex: none; }
.crumbs .sep { color: var(--faint); flex: none; }
.crumbs .brand { margin-right: 4px; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.mnav { display: none; }

.page { padding: 0 0 80px; min-width: 0; flex: 1; display: flex; flex-direction: column; }
.page > * { flex: none; }
.page:has(> .detail), .page:has(> .admin-grid) { padding-bottom: 0; }
.admin-grid > .groups { padding-bottom: 64px; }
.page > .detail, .page > .admin-grid { flex: 1; }
.app.bare .page { max-width: 720px; width: 100%; margin: 0 auto; padding: 32px 20px 80px; }
.pad { padding: 24px; display: grid; gap: 16px; max-width: 760px; }

/* Type */
h1 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
h2 { font-size: 15px; letter-spacing: -0.01em; font-weight: 600; margin: 0; }
.lede { color: var(--muted); margin: 6px 0 0; max-width: 62ch; }
.num { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; font-family: var(--mono); letter-spacing: -0.02em; }
.count { color: var(--muted); font-weight: 450; font-variant-numeric: tabular-nums; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); display: inline-block; margin: 0 8px; vertical-align: middle; }

/* View header */
.view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.view-title { min-width: 0; }
.plan { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; display: flex; align-items: center; flex-wrap: wrap; }
.plan-name { color: var(--ink-2); font-weight: 550; }
.plan .full { color: var(--ink); font-weight: 550; }
.plan .needs-count { color: var(--accent-text); font-weight: 550; }
.meter { display: inline-flex; gap: 2px; margin-right: 6px; }
.slot { width: 10px; height: 6px; border-radius: 2px; background: var(--line-strong); }
.slot.on { background: var(--ink-2); }

/* Status glyphs */
.glyph {
  --g: var(--faint);
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--g);
  padding: 2px;
  background-clip: content-box;
  color: var(--g);
}
.g-triaging { --g: var(--muted); border-style: dashed; }
.g-queued, .g-ready { --g: var(--muted); }
.g-ready { background: radial-gradient(circle, var(--g) 0 1.5px, transparent 2px) content-box; }
.g-in_progress { --g: var(--work); background: conic-gradient(var(--g) 0 50%, transparent 0) content-box; }
.g-my_review { --g: var(--work); background: conic-gradient(var(--g) 0 75%, transparent 0) content-box; }
.g-needs_info { --g: var(--wait); }
.g-needs_info::before, .g-needs_info::after { content: ""; position: absolute; left: 50%; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--g); }
.g-needs_info::before { top: 1.5px; height: 4.5px; }
.g-needs_info::after { top: 7px; height: 2px; }
.g-preview_ready { --g: var(--wait); padding: 2.5px; background: var(--g) content-box; }
.g-approved::after, .g-live::after, .g-done::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 1.5px;
  width: 3px;
  height: 6px;
  border: solid var(--bg);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.g-approved { --g: var(--done); padding: 0; }
.g-approved::after { border-color: var(--g); }
.g-live, .g-done { --g: var(--muted); background: var(--g); padding: 0; }
.g-live { --g: var(--done); }
.g-paused { --g: var(--muted); border-style: solid; background: linear-gradient(90deg, transparent 2px, var(--g) 2px 3.5px, transparent 3.5px 4.5px, var(--g) 4.5px 6px, transparent 6px) content-box; }
.glyph.g-you { --g: var(--accent); }
.ni.glyph { width: 14px; height: 14px; }

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  white-space: nowrap;
  line-height: 1.5;
}
.tone-done::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--done); }
.tone-muted { color: var(--muted); border-style: dashed; }
.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  padding: 0 7px;
  height: 20px;
  line-height: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--raised);
}

/* Avatars */
.avatar {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--bg-hover);
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1;
}
.avatar.is-owner { background: var(--av-owner); color: var(--av-owner-ink); border-color: var(--av-owner); }
.avatar.tone-0 { background: var(--av-0); color: var(--av-0-ink); border-color: transparent; }
.avatar.tone-1 { background: var(--av-1); color: var(--av-1-ink); border-color: transparent; }
.avatar.tone-2 { background: var(--av-2); color: var(--av-2-ink); border-color: transparent; }
.avatar.tone-3 { background: var(--av-3); color: var(--av-3-ink); border-color: transparent; }
.avatar.tone-4 { background: var(--av-4); color: var(--av-4-ink); border-color: transparent; }
.avatar.tone-5 { background: var(--av-5); color: var(--av-5-ink); border-color: transparent; }
.role { font-size: 10px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; line-height: 16px; align-self: center; }
.avatar-slot { width: 22px; height: 22px; flex: none; display: inline-block; }

/* Groups and rows */
.groups { min-width: 0; }
.group { margin: 0; }
.label {
  position: sticky;
  top: var(--top-h);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin: 0;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.label .count { font-weight: 450; }
.label .glyph { margin-right: 2px; }
.group-note { margin-left: 8px; font-weight: 400; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
details.group > summary.label { cursor: pointer; }
details.group > summary.label::after { content: ""; width: 6px; height: 6px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); margin-left: 2px; transition: transform 0.15s; }
details[open].group > summary.label::after { transform: rotate(45deg); margin-top: -3px; }
.clear { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 2px 6px; border-radius: 4px; }
.clear:hover { color: var(--ink); background: var(--bg-hover); }

.list { list-style: none; padding: 0; margin: 0; }
.row { display: flex; align-items: center; border-bottom: 1px solid var(--line); position: relative; }
.row-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 24px;
}
.row-link:hover { background: var(--bg-soft); }
.row-link:focus-visible { outline-offset: -2px; border-radius: 2px; }
.row-sub { display: contents; }
.row-link > .glyph { order: 0; }
.row-sub > .num { order: 1; }
.row-link > .title { order: 2; }
.row-sub > .meta, .row-link > .meta { order: 3; }
.row-sub > .row-state { order: 4; }
.row-link > .avatar-slot { order: 5; }
.row .num { width: 3.2em; flex: none; }
.row .title { flex: 1 1 auto; min-width: 160px; display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); font-size: 13.5px; }
.row .title .tag { flex: none; }
.row.unread .title-text { font-weight: 600; }
.title-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row .meta { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--muted); font-size: 12.5px; white-space: nowrap; flex: 0 1 auto; min-width: 0; overflow: hidden; }
.row .age, .row .why { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-state { flex: none; width: 152px; padding-left: 12px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.needs .row-state { color: var(--ink); font-weight: 550; }
.project-col { width: 112px; flex: none; text-align: left; color: var(--muted); overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 11.5px; letter-spacing: -0.02em; }
.hint { color: var(--accent-text); font-weight: 550; }
.needs .why { color: var(--accent-text); font-weight: 550; }
.pos {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 4px;
  background: var(--bg-hover);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.row.queued .row-link { padding-right: 0; }
.queue-controls { display: flex; align-items: center; justify-content: flex-end; gap: 2px; width: 112px; flex: none; padding: 0 16px; }
.queue-controls .pos { margin-right: 4px; }
.has-queue .row:not(.queued) .row-link { padding-right: 112px; }
.queue-controls form { margin: 0; }
.icon {
  min-height: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  display: inline-grid;
  place-items: center;
}
.icon:hover:not(:disabled) { background: var(--bg-hover); color: var(--ink); border-color: var(--line); filter: none; }
.icon:disabled { opacity: 0.3; cursor: default; }
.arrow { width: 7px; height: 7px; border: solid currentColor; border-width: 1.5px 0 0 1.5px; }
.arrow-up { transform: translateY(2px) rotate(45deg); }
.arrow-down { transform: translateY(-2px) rotate(225deg); }

.new {
  display: inline-block;
  flex: none;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--accent-wash);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 650;
  line-height: 18px;
  letter-spacing: 0.01em;
}

.empty { color: var(--muted); padding: 14px 24px; margin: 0; font-size: 13px; border-bottom: 1px solid var(--line); }
.empty-state { padding: 28px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; display: grid; gap: 4px; justify-items: center; }
.empty-title { margin: 0; font-weight: 600; color: var(--ink); }
.empty-detail { margin: 0; color: var(--muted); font-size: 13px; max-width: 64ch; text-wrap: pretty; }

.how-link { margin: 20px 24px 0; color: var(--muted); font-size: 13px; }
.how-link > summary { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; margin-left: -8px; border-radius: var(--radius-sm); }
.how-link > summary:hover { background: var(--bg-hover); color: var(--ink); }
.how-link > summary::before { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.how-link[open] > summary::before { transform: rotate(45deg); }
.how { padding: 16px 0 0; border-top: 1px solid var(--line); max-width: 680px; }
.pad .empty-state { border: 0; border-radius: 0; padding: 8px 0 4px; text-align: left; justify-items: start; gap: 6px; }
.pad .empty-state .empty-title { font-size: 15px; }
.pad .empty-state .button { margin-top: 8px; }
.how h2 { margin-bottom: 10px; font-size: 14px; }
.how ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: 13.5px; }
.how-link .how { margin-top: 10px; }

/* Controls */
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--primary-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
}
.button:hover, button:hover { filter: brightness(1.15); }
@media (prefers-color-scheme: dark) { .button:hover, button:hover { filter: brightness(0.92); } }
.button.quiet, button.quiet { background: var(--raised); color: var(--ink); border-color: var(--line-strong); box-shadow: 0 1px 1px rgb(0 0 0 / 0.04); }
.button.quiet:hover, button.quiet:hover { background: var(--bg-hover); filter: none; }
.button.small { height: 28px; padding: 0 10px; font-size: 12.5px; }
button.accent, .button.accent { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
button.wide { width: 100%; }
.plus { position: relative; width: 10px; height: 10px; display: inline-block; }
.plus::before { left: 4px; top: 0; width: 2px; height: 10px; }
.plus::after { top: 4px; left: 0; height: 2px; width: 10px; }
.ext { font-size: 12px; color: var(--muted); }

.stack { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 550; font-size: 13px; color: var(--ink); }
.field em { font-style: normal; color: var(--muted); font-weight: 400; margin-left: 4px; }
input, textarea, select {
  width: 100%;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
}
input, select { height: 34px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="file"] { height: auto; padding: 10px; font-size: 12.5px; color: var(--muted); border-style: dashed; background: var(--bg-soft); cursor: pointer; }
input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 550;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 3px 10px;
  margin-right: 10px;
  cursor: pointer;
}
textarea { resize: vertical; line-height: 1.5; }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.error { color: var(--danger); background: var(--danger-wash); padding: 10px 12px; border-radius: var(--radius-sm); margin: 0 0 14px; font-weight: 500; font-size: 13px; }
.note { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }
.inline-form { display: flex; gap: 6px; margin-top: 8px; }
.check-field { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 13.5px; }
.check-field input { width: 16px; height: 16px; padding: 0; margin: 0; accent-color: var(--accent-strong); }
.check-field em { font-style: normal; color: var(--muted); font-weight: 400; margin-left: 4px; }

/* Search */
.search { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; flex: 0 1 720px; justify-content: flex-end; }
.search input { flex: 1 1 200px; width: auto; height: 30px; font-size: 13px; padding-left: 30px; background: var(--raised) url("/assets/icons/search.svg") no-repeat 10px 50%; }
.search select { flex: 0 1 170px; width: auto; height: 30px; font-size: 13px; padding: 0 8px; }
.search button { flex: none; height: 30px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.sort-note { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--muted); white-space: nowrap; }
.sort-note + .clear { margin-left: 4px; }
.pager .button { height: 28px; padding: 0 10px; font-size: 12.5px; }
.pager .disabled { opacity: 0.4; cursor: default; }
.pager .disabled:hover { filter: none; background: var(--raised); }
.pager-at { font-variant-numeric: tabular-nums; }

/* Form pages */
.form-page { max-width: 728px; width: 100%; margin: 0 auto; padding: 32px 24px 0; }
.form-head { margin-bottom: 20px; }
.form-head .plan { margin-top: 6px; }
.form-page.with-side { max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1fr) 248px; column-gap: 48px; align-items: start; }
.with-side > .form-main { display: contents; }
.with-side > .form-main > * { grid-column: 1; min-width: 0; }
.with-side > .form-side { grid-column: 2; grid-row: 2 / span 2; }
.form-side { position: sticky; top: calc(var(--top-h) + 32px); padding: 4px 0 4px 20px; border-left: 1px solid var(--line); }
.side-title { font-size: 12px; font-weight: 550; color: var(--muted); margin: 0 0 12px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 13px; color: var(--ink-2); }
.steps li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.45; }
.steps .glyph { margin-top: 2px; }
.steps strong { color: var(--ink); font-weight: 550; }
.sheet { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); box-shadow: var(--shadow); }
.sheet .actions { padding-top: 14px; border-top: 1px solid var(--line); margin-top: 2px; }
.checklist { display: flex; flex-wrap: wrap; gap: 4px; }
.checklist-line { margin: 0 0 16px; }
.pill { font-size: 12px; padding: 0 7px; height: 20px; line-height: 18px; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--ink-2); display: inline-block; font-variant-numeric: tabular-nums; }
a.pill:hover { background: var(--bg-hover); color: var(--ink); }
.pill.current { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.step-done { color: var(--ink-2); }
.step-done span[aria-hidden] { color: var(--done); font-weight: 700; }
.step-missing { border-style: dashed; border-color: var(--accent-text); color: var(--ink); background: var(--raised); display: inline-flex; align-items: center; gap: 5px; }
.step-mark { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--accent-text); flex: none; }

/* Request detail */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-rows: auto 1fr;
  grid-template-areas: "head props" "main props";
}
.detail-head { grid-area: head; padding: 28px 40px 0; max-width: 820px; width: 100%; }
.detail-main { grid-area: main; padding: 18px 40px 64px; max-width: 820px; width: 100%; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; flex-wrap: wrap; }
.detail-head h1 { font-size: 24px; }
.props {
  grid-area: props;
  border-left: 1px solid var(--line);
  background: var(--bg-side);
  padding: 8px 0 32px;
  min-width: 0;
}
.prop-block { padding: 14px 20px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.prop-block:last-child { border-bottom: 0; }
.prop-title { font-size: 12px; font-weight: 550; color: var(--muted); margin: 0; letter-spacing: 0; display: flex; gap: 6px; align-items: baseline; }
.prop-list { margin: 0; display: grid; gap: 2px; }
.prop { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: start; padding: 4px 0; }
.prop dt { color: var(--muted); font-size: 12.5px; line-height: 22px; }
.prop dd { margin: 0; font-size: 13px; color: var(--ink); line-height: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; overflow-wrap: anywhere; }
.prop dd .clock { margin: 0; color: var(--ink-2); }
.prop dd .clock strong { color: var(--ink); font-weight: 600; }
.prop-link { color: var(--ink); }
.prop-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.series { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.series-name { font-weight: 500; }

.milestones { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.milestones li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; position: relative; font-size: 12.5px; color: var(--muted); height: 26px; }
.milestones li + li::before { content: ""; position: absolute; left: 6px; top: -9px; height: 18px; width: 1.5px; background: var(--line-strong); }
.milestones li.reached + li.reached::before { background: var(--ink-2); }
.milestones .dot { width: 8px; height: 8px; margin-left: 3px; border-radius: 50%; border: 1.5px solid var(--faint); background: var(--bg-side); position: relative; z-index: 1; }
.milestones .reached .dot { background: var(--ink-2); border-color: var(--ink-2); }
.ms-label { color: var(--ink-2); font-weight: 500; }
.milestones li:not(.reached) .ms-label { color: var(--muted); font-weight: 400; }
.ms-at { font-variant-numeric: tabular-nums; }
.milestones li.reopened .dot { border-color: var(--work); border-style: dashed; }
.milestones li.reopened .ms-label { color: var(--ink-2); font-weight: 500; }
.milestones li.reopened .ms-at { color: var(--work); }

.panel-owner .stack { gap: 10px; }
.panel-owner textarea { min-height: 64px; }
.other { border-top: 1px solid var(--line); padding-top: 8px; }
.other > summary { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12.5px; font-weight: 500; padding: 3px 0; }
.other > summary::before { content: ""; width: 5px; height: 5px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.other[open] > summary::before { transform: rotate(45deg); }
.other > summary:hover { color: var(--ink); }
.other .stack { margin-top: 10px; }
.panel-owner > p { margin: 0; font-size: 13px; color: var(--ink-2); }
.panel-owner blockquote { margin: 0; padding: 6px 10px; border-left: 2px solid var(--line-strong); color: var(--ink-2); font-size: 13px; }
.split-parts { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 13px; }
.split-parts li { display: grid; gap: 2px; }
.split-part { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; }
.split-part legend { font-weight: 600; font-size: 12.5px; padding: 0 4px; }
.split-part legend em { font-style: normal; color: var(--muted); font-weight: 400; }

/* Main-column callouts */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  padding: 14px 16px;
  margin-bottom: 18px;
  display: grid;
  gap: 8px;
}
.panel h2 { font-size: 15px; }
.panel p { margin: 0; }
.panel-kicker { font-size: 12px; font-weight: 550; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.panel-action { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: inset 3px 0 0 var(--accent); }
.panel-action .panel-kicker { color: var(--accent-text); }
.panel-action .panel-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.panel-done .panel-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--done); }
.panel blockquote { margin: 0; padding: 8px 12px; border-left: 2px solid var(--line-strong); background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); font-size: 13.5px; }
.clock { color: var(--ink-2); font-size: 13px; }
.clock.over strong { color: var(--work); }
.over-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; font-size: 11.5px; font-weight: 600; line-height: 18px; color: var(--work); background: color-mix(in srgb, var(--work) 14%, transparent); white-space: nowrap; }
.prop dd .over-tag { margin-left: 0; }
.ask { display: grid; gap: 2px; }
.ask-meta { font-size: 12px; color: var(--muted); }
.ask-meta time { color: var(--muted); }
.ask-text { white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.check { color: var(--ink-2); font-size: 13.5px; }
.decide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.decide form { margin: 0; }
.changes { flex: 0 1 auto; }
.changes[open] { flex: 1 1 100%; }
.changes > summary { display: inline-flex; }
.changes[open] > summary { margin-bottom: 10px; }
.panel .composer { margin-top: 4px; }

.brief { margin: 0; display: grid; gap: 2px; }
.brief dt { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 12px; }
.brief dt:first-child { margin-top: 0; }
.brief dd { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }

/* Conversation */
.activity { padding-top: 4px; }
.section-title { font-size: 13.5px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.section-title .count { font-size: 12.5px; }
.history { list-style: none; padding: 0; margin: 0 0 16px; display: grid; }

.msg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
.msg .avatar { width: 28px; height: 28px; font-size: 10.5px; }
.msg-body { min-width: 0; }
.msg-meta { display: flex; align-items: baseline; gap: 4px 8px; font-size: 12px; color: var(--muted); margin-bottom: 2px; flex-wrap: wrap; min-height: 22px; align-content: center; }
.msg-meta strong { color: var(--ink); font-weight: 600; font-size: 13.5px; }
.msg-note { color: var(--muted); font-size: 13px; }
.msg .text { color: var(--ink); font-size: 13.5px; line-height: 1.6; }
.brief-card { margin-top: 6px; border: 1px solid var(--line); background: var(--raised); border-radius: var(--radius); padding: 12px 14px 14px; }
.brief-card .chips { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

.ev { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 2px 0 2px 7px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.ev > .glyph { margin-right: 13px; }
.ev-text { color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.ev-text strong { color: var(--ink); font-weight: 550; }
.ev time { color: var(--muted); font-variant-numeric: tabular-nums; }
.ev time::before { content: "·"; margin-right: 8px; color: var(--faint); }


.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--raised);
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-margin-top: calc(var(--top-h) + 16px);
}
.composer:focus-within { border-color: var(--ink-2); }
.composer-field { display: grid; }
.composer-label { font-size: 12px; font-weight: 550; color: var(--muted); padding: 10px 14px 0; }
.composer textarea { border: 0; background: transparent; padding: 6px 14px 10px; min-height: 72px; border-radius: 0; resize: vertical; }
.composer textarea:focus-visible { outline: none; }
.composer:has(textarea:focus-visible) { outline: 2px solid var(--focus); outline-offset: -1px; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 14px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.file-pick { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.file-pick > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.file-pick input[type="file"] { border: 0; background: transparent; padding: 0; width: 100%; min-width: 0; flex: 1 1 0; }
.composer-bar > button { flex: none; }
.followup > summary { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 4px 0; }
.followup > summary::before { content: "+"; font-weight: 600; }
.followup[open] > summary { margin-bottom: 10px; }

.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.files li { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.files a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; min-width: 0; padding: 2px 4px; margin-left: -4px; border-radius: 4px; }
.files a:hover { background: var(--bg-hover); }
.files .muted { flex: none; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-icon { width: 10px; height: 12px; border: 1.5px solid var(--muted); border-radius: 2px; flex: none; }
.chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { min-width: 0; max-width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--raised); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.chip:hover { border-color: var(--line-strong); background: var(--bg-hover); }
.brief-card .chip { background: var(--bg-soft); }
.chip-size { color: var(--muted); font-weight: 400; flex: none; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.thumb img { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }

.prop-person { display: inline-flex; align-items: center; gap: 7px; }
.prop-person .avatar { width: 20px; height: 20px; font-size: 9px; }
.log-wrap > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.log-wrap > summary::before { content: ""; width: 5px; height: 5px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); margin-right: 2px; }
.log-wrap[open] > summary::before { transform: rotate(45deg); }
.log-wrap > summary:hover { color: var(--ink); }
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 12.5px; }
.log li { display: grid; gap: 0; color: var(--ink-2); }
.log strong { font-weight: 550; color: var(--ink); }
.log time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Admin */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: stretch; }
.admin-side { grid-area: auto; padding-top: 0; }
.admin-side .list { border-top: 1px solid var(--line); margin: 0 -20px; }
.admin-side .row-link { height: auto; padding: 8px 20px; flex-wrap: wrap; row-gap: 2px; }
.admin-side .row .title { flex: 1 1 calc(100% - 24px); font-size: 13px; }
.admin-side .row .meta { white-space: normal; padding-left: 24px; flex: 1 1 100%; font-size: 12px; justify-content: flex-start; }
.admin-side .row:last-child { border-bottom: 0; }
.projects .row-link { gap: 8px; }
.onboarding .row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.onboarding .row-top .title { flex: 1; }
.onboarding .checklist { width: 100%; }

/* Status pages */
.center { text-align: center; padding-top: 14vh; }
.center .lede { margin: 8px auto 0; }
.status-card { max-width: 480px; margin: 10vh auto 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); box-shadow: var(--shadow); }
.status-code { margin: 0 0 6px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.status-card .lede { margin-bottom: 14px; }
.status-tips { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 13.5px; }

/* Responsive */
.app.bare .top { padding: 0 16px; }

@media (max-width: 1180px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .admin-side { border-left: 0; border-top: 1px solid var(--line); }
  .detail { grid-template-columns: minmax(0, 1fr) 288px; }
  .detail-head, .detail-main { padding-left: 28px; padding-right: 28px; }
  .project-col { display: none; }
}
@media (max-width: 1100px) {
  .row .title .tag, .group-note { display: none; }
  .form-page.with-side { grid-template-columns: minmax(0, 1fr); max-width: 728px; }
  .with-side > .form-side { grid-column: 1; grid-row: auto; margin-top: 28px; }
  .form-side { position: static; border-left: 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  :root { --top-h: 52px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .top { padding: 0 12px 0 8px; gap: 6px; }
  .mnav { display: block; flex: none; }
  .mnav > summary { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 8px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--raised); }
  .mnav > summary:hover, .mnav[open] > summary { background: var(--bg-hover); }
  .mnav-word { font-size: 13.5px; font-weight: 550; color: var(--ink); }
  .burger { position: relative; width: 14px; height: 10px; border-block: 1.5px solid var(--ink); }
  .burger::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--ink); }
  .mnav[open] .burger { border-color: transparent; }
  .mnav[open] .burger::after { transform: rotate(45deg); }
  .mnav[open] .burger::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--ink); transform: rotate(-45deg); }
  .mnav-panel {
    position: absolute;
    left: 8px;
    right: 8px;
    top: calc(var(--top-h) - 4px);
    max-height: calc(100vh - var(--top-h) - 16px);
    overflow-y: auto;
    background: var(--bg-side);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
  }
  .mnav-panel .nav-item { height: 40px; font-size: 14.5px; }
  .mnav-panel .side-foot { margin: 8px -8px -8px; padding: 10px 12px; }
  .mnav-panel .signout { padding: 8px 10px; }
  .crumbs { font-size: 14px; }
  .crumbs a:not([aria-current]) { flex: 0 1 auto; }
  .crumbs a:not([aria-current]):not(:has(+ .sep + a[aria-current])),
  .crumbs .sep { display: none; }
  .crumbs .crumb-up { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; }
  .crumbs .crumb-up::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: translateX(1px) rotate(45deg); }
  .crumbs .crumb-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .app { background: none; }
  .button, button { height: 40px; }
  .button.small { height: 36px; }
  .icon { width: 40px; height: 40px; }
  input, select { height: 40px; font-size: 16px; }
  textarea { font-size: 16px; }
  .search input, .search select, .search button { height: 40px; font-size: 16px; }
  .search button { font-size: 13px; }
  .search { flex: 1 1 100%; justify-content: stretch; }
  .search select { flex: 1 1 140px; }
  .view-head { padding: 16px; }
  .label { padding: 0 16px; }
  .row-link {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) 22px;
    grid-template-areas: "glyph title person" ". sub sub";
    column-gap: 10px;
    row-gap: 3px;
    height: auto;
    min-height: 56px;
    padding: 10px 16px;
    align-items: center;
  }
  .row-link > .glyph { grid-area: glyph; align-self: start; margin-top: 3px; }
  .row-link > .title { grid-area: title; min-width: 0; font-size: 14px; align-items: flex-start; flex-wrap: wrap; row-gap: 4px; }
  .row-sub { grid-area: sub; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 1px; min-width: 0; font-size: 12.5px; }
  .row-sub > .num, .row-sub > .row-state { order: 0; }
  .row-sub > .num { width: auto; font-size: 12px; }
  .row-sub > .meta { display: contents; }
  .row-sub > .row-state { width: auto; padding-left: 0; font-size: 12.5px; }
  .row-sub > .row-state:empty { display: none; }
  .row-link > .avatar-slot { grid-area: person; align-self: start; }
  .row .age, .row .why, .row .hint, .project-col { white-space: nowrap; }
  .title-text { white-space: normal; overflow-wrap: anywhere; }
  .row .title .tag { display: inline-block; }
  .row .new { margin-top: 1px; }
  .has-queue .row:not(.queued) .row-link { padding-right: 16px; }
  .row.queued .row-link { padding-right: 0; }
  .queue-controls { width: auto; align-items: center; padding: 0 6px 0 0; gap: 0; align-self: stretch; }
  .queue-controls .pos { margin: 0 2px 0 0; }
  .queue-controls .icon { width: 40px; height: 44px; color: var(--ink-2); }
  .empty, .pager { padding-left: 16px; padding-right: 16px; }
  .how-link { margin: 18px 16px 0; }
  .pad { padding: 20px 16px; }
  .detail { display: flex; flex-direction: column; }
  .detail-head { padding: 20px 16px 0; }
  .detail-main { padding: 16px 16px 40px; }
  .detail-head h1 { font-size: 20px; }
  .props { border-left: 0; border-top: 1px solid var(--line); padding: 0; }
  .detail.owner .props { display: contents; }
  .detail.owner .props > * { order: 3; background: var(--bg-side); }
  .detail.owner .detail-main { order: 1; padding-bottom: 24px; }
  .detail.owner .props > .panel-owner { order: 2; border-top: 1px solid var(--line); }
  .prop-block { padding: 14px 16px; }
  .form-page { padding: 20px 16px 0; }
  .sheet { padding: 16px; }
  .admin-side .list { margin: 0 -16px; }
  .admin-side .row-link { display: flex; padding: 10px 16px; }
  .admin-grid { min-height: 0; }
  .admin-grid > .groups { padding-bottom: 24px; }
}
@media (max-width: 480px) {
  .crumbs a:not([aria-current]) { max-width: 40vw; }
  .top-actions .button.quiet { display: none; }
  .ev { align-items: flex-start; padding-top: 6px; padding-bottom: 6px; }
  .ev > .glyph { margin-top: 2px; }
  .ev-text { flex: 1 1 0; display: block; }
  .ev-text .new { margin-right: 6px; }
  .ev time { flex-basis: 100%; padding-left: 35px; margin-top: -4px; font-size: 12px; }
  .ev time::before { content: none; }
  .composer-bar { gap: 8px; padding-left: 10px; }
  .file-pick > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .file-pick input[type="file"] { font-size: 13px; }
  .decide { flex-direction: column; align-items: stretch; }
  .decide > *, .decide .button, .decide button, .changes > summary { width: 100%; }
  .changes > summary { justify-content: center; }
  .panel-done .decide > p { text-align: left; }
  .milestones li { height: 28px; }
  .msg { gap: 10px; }
}
