@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/onest-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/onest-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/onest-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/onest-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0b0b0c;
  --ink-2: #55555a;
  --ink-3: #97979c;
  --line: #e7e7e4;
  --line-strong: #cfcfcb;
  --paper: #fff;
  --canvas: #f5f5f3;
  --signal: #ee2b24;
  --signal-soft: #fdebea;
  --side: #0b0b0c;
  --side-2: #1c1c1f;
  --side-text: #8b8b90;
  --radius-s: 4px;
  --radius-m: 8px;
  --font: "Onest", system-ui, sans-serif;
  --sidebar-width: 248px;
  --pad-left: 32px;
  --pad-right: 28px;
  --ask-height: 44px;
  --ask-bottom: 24px;
  --ask-clearance: calc(var(--ask-bottom) + var(--ask-height) + 12px);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font: 400 14px var(--font);
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3, p { margin: 0; }
small { font-size: 12px; }
img { display: block; flex: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
[hidden] { display: none !important; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 12px 18px;
  overflow: auto;
  background: var(--side);
  color: var(--paper);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 2px 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.17px;
}
.space, .search, .profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
}
.space {
  margin: 10px 0 8px;
  padding: 8px 10px;
  background: var(--side-2);
  font-size: 13.5px;
  font-weight: 500;
}
.space small, .profile small, .project small {
  display: block;
  color: var(--side-text);
  font-weight: 400;
}
.space small, .project small { font-size: 11px; }
.space-icon, .avatar, .settings, .project-icon {
  display: grid;
  flex: none;
  place-items: center;
  font-weight: 600;
}
.space-icon { width: 24px; height: 24px; border-radius: 5px; background: var(--paper); color: var(--ink); }
.end { margin-left: auto; color: var(--side-text); }
.search {
  margin-bottom: 12px;
  padding: 7px 10px;
  gap: 8px;
  border: 1px solid var(--side-2);
  color: var(--side-text);
  font-size: 12px;
}
.search:focus-within { border-color: var(--side-text); }
.search input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--paper);
  font-size: 13px;
}
.search input::placeholder { color: var(--side-text); }
#navigation { display: grid; gap: 2px; }
.nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: var(--side-text);
  border-radius: var(--radius-s);
}
a.nav-item { text-decoration: none; }
a.nav-item:hover { color: var(--paper); }
.nav-item[aria-current="page"] { background: var(--side-2); color: var(--paper); font-weight: 500; }
.badge { padding: 1px 6px; border-radius: 9px; background: var(--paper); color: var(--ink); font-size: 11px; }
.project { display: flex; align-items: center; gap: 6px; padding: 18px 6px 8px 10px; font-weight: 500; font-size: 13px; }
.project div { flex: 1; }
.project-icon { width: 22px; height: 22px; border-radius: var(--radius-s); background: var(--side-2); color: var(--side-text); }
.epic { font-size: 13px; }
.profile { margin-top: auto; padding: 10px; border: 1px solid var(--side-2); font-size: 13.5px; }
.profile small { font-size: 11.5px; }
.avatar {
  width: 30px;
  height: 30px;
  border: 1px solid var(--side-text);
  border-radius: 50%;
  background: var(--side-2);
  color: var(--paper);
  font-size: 11px;
}

.fold-top, .fold-tabs, .fold-only { display: none; }
.settings { margin-left: auto; width: 30px; height: 30px; border-radius: 6px; background: var(--side-2); }

html { scroll-padding-bottom: var(--ask-clearance); }
main { margin-left: var(--sidebar-width); padding-bottom: var(--ask-clearance); }
#header {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 22px var(--pad-right) 16px var(--pad-left);
}
.intro { flex: 1; min-width: 0; }
.intro h1 { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.56px; }
.hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  padding: 12px 16px 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--canvas);
  line-height: 20px;
}
.hint img { width: 20px; height: 20px; }
.intro .breadcrumb { font-size: 12.5px; line-height: normal; color: var(--ink-3); }
.intro > * + * { margin-top: 6px; }
.roads-header { padding: 22px 0 16px; }
#roads-screen { padding: 0 var(--pad-right) 24px var(--pad-left); }
.roads-frame, .roads-grid { position: relative; }
.roads-frame { isolation: isolate; }
.roads-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.roads-scroll:focus-visible { outline-offset: -2px; }
.roads-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.roads-table th, .roads-table td {
  padding: 9px 10px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.roads-table thead th {
  padding-top: 4px;
  border-bottom: 2px solid var(--ink);
  color: var(--ink-2);
  line-height: 17px;
  font-size: 12px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.roads-table time { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.roads-table .roads-epic { width: 18%; padding-left: 0; }
.roads-epic-label { display: flex; justify-content: space-between; gap: 8px; font-weight: 500; color: inherit; text-decoration: none; }
.roads-epic-label:hover > span:first-child { text-decoration: underline; }
.roads-epic-count { color: var(--ink-2); font-size: 12px; font-weight: 400; }
.roads-table .roads-empty { color: var(--ink-3); }
.roads-table .roads-today { width: 17%; background: var(--canvas); }
.roads-chips, .roads-signals { display: flex; flex-wrap: wrap; gap: 4px; }
.roads-chips { max-width: 148px; }
.roads-chip, .roads-signal { position: relative; z-index: 2; }
.roads-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--paper);
  line-height: 14px;
  font-size: 12px;
}
.roads-loose { border-color: var(--signal); color: #ba211b; }
.roads-chip:hover { border-color: currentColor; }
.roads-signal {
  display: inline-block;
  padding: 4px 6px;
  border: 0;
  border-radius: var(--radius-s);
  background: #ce231d;
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-align: left;
}
.roads-signal:hover { background: #ba211b; }
.roads-lines {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.5px;
}
.roads-next { display: none; }
.progress { display: grid; gap: 6px; justify-items: end; white-space: nowrap; font-size: 13px; font-weight: 500; }
.progress + .add { margin-left: 8px; }
.segments { display: flex; gap: 2px; width: 238px; }
.segments i { flex: 1; height: 4px; background: var(--line-strong); }
.segments .done { background: var(--ink); }
.add.button { padding: 8px 13px; font-size: 13.5px; white-space: nowrap; }
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px 20px;
  flex-wrap: wrap;
  padding: 0 var(--pad-right) 0 var(--pad-left);
  border-bottom: 1px solid var(--line);
}
#filters, .legend, .legend span { display: flex; align-items: center; }
#filters { gap: 22px; flex-wrap: wrap; }
#filters button {
  display: flex;
  gap: 6px;
  align-items: baseline;
  margin-bottom: -1px;
  padding: 0 0 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-2);
}
#filters button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); font-weight: 500; }
#filters button span { font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.legend { gap: 12px; padding-bottom: 11px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend span { gap: 5px; white-space: nowrap; }
.cards { padding: 14px var(--pad-right) 28px var(--pad-left); }
.meeting + .meeting { margin-top: 8px; }
.meeting-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 6px 0 8px;
}
.meeting-info, .meeting-meta { display: contents; }
.meeting-head time { font-weight: 600; }
.meeting-head h2 { font-size: 14px; font-weight: 500; }
.chip, .epic-tag.button, .epic-tag {
  display: inline-block;
  white-space: nowrap;
  border-radius: 3px;
  font-weight: 500;
}
.chip { padding: 2px 6px; background: var(--canvas); color: var(--ink-2); font-size: 11.5px; }
.epic-tag.button, .epic-tag { padding: 1px 7px; font-size: 12px; line-height: 16px; }
.epic-tag { border: 1px solid var(--line-strong); }
.epic-tag span { color: var(--ink-3); font-size: 10px; }
.epic-tag.no-epic { color: var(--ink-3); border-style: dashed; }
.count { color: var(--ink-3); white-space: nowrap; font-size: 12.5px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 16px;
}
.button:not(:disabled):hover { border-color: var(--ink); }
.button.primary:not(:disabled), .button.confirm:not(:disabled):hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.button.confirm { border-color: var(--ink); }
.button.text { padding: 0; background: transparent; border: none; }
.button.text:hover { text-decoration: underline; }
.button.bulk-link { margin-left: auto; color: var(--ink-2); }
.button.more { display: block; width: 100%; text-align: left; padding: 10px 0 6px; border-top: 1px solid var(--line); border-radius: 0; color: var(--ink-2); font-size: 13px; }
.button:disabled { color: var(--ink-2); background: transparent; border-color: var(--line-strong); opacity: .4; cursor: not-allowed; }

.row { border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 63px;
  padding: 10px 0 10px 4px;
}
.row-main:hover, .row.editing { background: var(--canvas); }
.handle { width: 6px; flex: none; color: var(--line-strong); white-space: nowrap; letter-spacing: -4px; font-size: 12px; }
.marker { display: grid; place-items: center; width: 14px; flex: none; }
.summary { flex: 1; min-width: 0; }
.summary h3 { margin-bottom: 4px; font-size: 14.5px; font-weight: 500; }
.button.card-link { display: inline-block; color: inherit; font: inherit; text-align: left; overflow-wrap: anywhere; }
.meta { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; color: var(--ink-2); font-size: 12.5px; }
.meta .id { color: var(--ink-3); }
.signal, #filters button .signal { color: var(--signal); }
.dots {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  flex: none;
  width: 44px;
  height: 44px;
  margin: -1px -5.5px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
}
#meeting-hint {
  position: fixed;
  inset: auto;
  width: max-content;
  max-width: calc(100% - 16px);
  max-height: calc(100% - 16px);
  margin: 0;
  padding: 10px 12px 12px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 6px 16px rgb(0 0 0 / 16%);
  font-size: 12.5px;
  pointer-events: none;
}
#meeting-hint p { font-weight: 500; }
#meeting-hint ul { display: grid; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
#meeting-hint li { display: flex; align-items: baseline; gap: 8px; color: var(--side-text); }
#meeting-hint li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
#meeting-hint li.present { color: var(--paper); }
#meeting-hint li.present::before { background: currentColor; }
.dots i { width: 6px; height: 6px; border: 1px solid var(--line-strong); border-radius: 50%; }
.dots .present { background: var(--ink); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.has-note .row-actions { order: 0; opacity: 0; }
.has-note .dots { order: 1; margin-inline: -11px 0; padding-left: 11px; }
.has-note:hover .row-actions, .has-note:focus-within .row-actions { opacity: 1; }
.note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px 44px;
  padding: 12px 14px;
  background: var(--signal-soft);
  font-size: 13.5px;
  line-height: 19px;
  border-radius: var(--radius-m);
}
@media (min-width: 1024px) {
  .similar-row:not(.has-note) .note { display: none; }
}
.note-title { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.note-title::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--signal); }
.note .actions { gap: 8px; }

.editor { display: grid; gap: 12px; padding: 0 14px 16px 44px; }
.editor label, .type-field legend { color: var(--ink-2); font-size: 12px; }
.editor input:not([type="radio"]), .editor select {
  width: 100%;
  margin-top: 5px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--paper);
  font-size: 13.5px;
  color: var(--ink);
}
.editor input:focus, .editor select:focus { outline-offset: -1px; }
.type-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.type-field legend { margin-bottom: 5px; padding: 0; }
.type-field label { position: relative; color: var(--ink); cursor: pointer; }
.type-field input { position: absolute; opacity: 0; }
.type-field input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.type-field input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.type-field .button { padding: 7px 10px; }
.edit-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.edit-footer { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; color: var(--ink-2); font-size: 12.5px; }
.edit-footer .actions { color: var(--ink); }

.processed { display: flex; align-items: center; gap: 12px; padding: 8px 0 8px 4px; font-size: 13.5px; color: var(--ink-2); }
.status-icon { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 11px; }
.processed-name { flex: 1; }
.rejected .processed-name { text-decoration: line-through; }
.archived .status-icon { border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-3); }
.outcome { color: var(--ink-2); font-size: 13px; }
.processed button { color: var(--ink); }
.empty { color: var(--ink-2); margin-top: 8px; }
.message { border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 10px; margin: 14px var(--pad-right) 0 var(--pad-left); }
#bulk {
  width: min(520px, calc(100% - 32px));
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--paper);
  color: var(--ink);
}
#bulk::backdrop { background: rgb(11 11 12 / 35%); }
#bulk h2 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
#bulk ul { padding-left: 18px; }
#bulk li + li { margin-top: 5px; }
#bulk .actions { margin-top: 18px; justify-content: flex-end; }
.excluded, .dialog-error { color: var(--ink-2); margin-top: 10px; }
.toasts {
  position: fixed;
  z-index: 1;
  bottom: 24px;
  right: 0;
  left: var(--sidebar-width);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 12px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 16px;
  border-radius: var(--radius-m);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
  font-size: 13.5px;
  pointer-events: auto;
}
.toast-button.button { background: var(--side-2); border: 0; padding: 5px 10px; }
.timer { flex: none; color: var(--side-text); font-size: 12px; }

@media (max-width: 1150px) {
  :root { --sidebar-width: 212px; --pad-left: 22px; --pad-right: 22px; }
  .segments { width: min(15vw, 238px); }
  .row-main { flex-wrap: wrap; }
  .row-actions { margin-left: auto; }
}
@media (width < 1024px) {
  :root {
    --sidebar-width: 0px;
    --pad-left: clamp(14px, 2.73vw, 24px);
    --pad-right: var(--pad-left);
    --fold-tabs-height: calc(74px + env(safe-area-inset-bottom));
    --ask-height: 51px;
    --ask-bottom: calc(var(--fold-tabs-height) + 16px);
  }

  .sidebar, .desktop-only, .legend, .add.button, .handle { display: none; }
  .fold-top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 0 var(--pad-right) 0 var(--pad-left);
    background: var(--side);
    color: var(--paper);
  }
  .fold-top .brand { flex: none; padding: 0; }
  .fold-top .avatar { width: 32px; height: 32px; }
  .fold-top button { border: 0; }
  #fold-project {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--side-2);
    font-size: 13px;
    white-space: nowrap;
  }
  #fold-project span:first-child { overflow: hidden; text-overflow: ellipsis; }
  #fold-project span:last-child { color: var(--side-text); }
  .fold-search {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    background: transparent;
  }

  .fold-tabs {
    position: fixed;
    z-index: 1;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    height: var(--fold-tabs-height);
    padding: 0 0 env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: var(--paper);
    font-size: 12.5px;
  }
  .fold-tabs > * {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 6px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
  }
  .fold-top button:disabled, .fold-tabs button:disabled { opacity: .4; cursor: not-allowed; }
  .tab-icon { display: flex; align-items: center; gap: 4px; }
  .tab-icon .badge { background: var(--ink); color: var(--paper); }
  .fold-tabs a:not([aria-current]) { opacity: .6; }
  .fold-tabs a[aria-current] { font-weight: 600; }

  .roads-header { padding-top: 20px; }
  .roads-header.intro { display: block; }
  .roads-header.intro > * + * { margin-top: 6px; }
  .roads-grid { min-width: 987px; }
  .roads-table .roads-epic {
    position: sticky;
    z-index: 3;
    left: 0;
    width: 158px;
    padding-right: 22px;
    background: var(--paper);
  }
  .roads-table .roads-today { width: 165px; }
  .roads-epic-label { flex-direction: column; gap: 2px; justify-content: center; min-height: 44px; }
  .roads-epic-count .fold-only { display: inline; }
  .roads-chips { max-width: 102px; }
  .roads-chip { padding: 4px 6px; font-size: 13px; line-height: 16px; }
  .roads-table tbody th, .roads-table tbody td { padding-top: 12px; padding-bottom: 12px; }
  .roads-next {
    position: absolute;
    z-index: 4;
    top: 210px;
    right: 0;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0 0 2px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-size: 22px;
  }
  .roads-next:focus-visible { outline-color: var(--ink); }

  .review-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 4px 10px;
    padding: 20px var(--pad-right) 0 var(--pad-left);
  }
  #header, .intro { display: contents; }
  .intro > * { margin-top: 0; }
  .intro .fold-only { display: block; grid-column: 1 / -1; font-size: 13.5px; }
  .intro h1 { grid-area: 2 / 1; font-size: 30px; line-height: 36px; }
  .progress { grid-area: 2 / 2; padding-bottom: 1px; }
  .segments { width: clamp(110px, 24vw, 208px); }
  .toolbar {
    grid-column: 1 / -1;
    grid-row: 3;
    display: block;
    min-width: 0;
    margin: 8px 0 6px;
    padding: 0;
    border: 0;
  }
  #filters {
    gap: 8px;
    flex-wrap: nowrap;
    padding: 2px;
    margin: -2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  #filters button {
    flex: none;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    color: var(--ink);
  }
  #filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
  .hint { grid-column: 1 / -1; width: 100%; }

  .cards { padding-top: 14px; }
  .meeting + .meeting { margin-top: 16px; }
  .meeting-head { flex-wrap: nowrap; padding: 0 0 12px; }
  .meeting-info { display: flex; flex-wrap: wrap; align-items: center; gap: inherit; min-width: 0; }
  .meeting-head h2 { font-size: 14.5px; }
  .meeting-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .button.bulk-link {
    flex: none;
    max-width: min(45%, max(112px, calc(100% - 216px)));
    min-height: 44px;
    text-align: right;
  }
  .row, .row:last-child {
    margin-bottom: 14px;
    padding: 6px 16px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    overflow-wrap: anywhere;
  }
  .row:not(.processed) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .row-main { display: contents; }
  .row .marker { grid-area: 1 / 1; align-self: center; justify-items: start; }
  .fold-identity {
    grid-area: 1 / 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-self: center;
    gap: 2px 8px;
    font-weight: 500;
  }
  .fold-identity span { color: var(--ink-3); font-weight: 400; }
  .dots { grid-area: 1 / 3; margin: 0; }
  .has-note .dots { order: 0; margin: 0; padding: 0; }
  .summary, .note, .row-actions, .editor { grid-column: 1 / -1; }
  .summary { grid-row: 2; }
  .summary h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.4; }
  .meta .button { min-height: 44px; }
  .meta .epic-tag { white-space: normal; }
  .meta .epic-tag.button { position: relative; padding-inline: 9px; border-color: transparent; }
  .epic-tag.button::before {
    content: "";
    position: absolute;
    inset: 9px -1px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-s);
  }
  .epic-tag.button:hover::before { border-color: var(--ink); }
  .epic-tag.no-epic::before { border-style: dashed; }
  .row-actions, .note .actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
  .row-actions { grid-row: 4; margin: 6px 0 0; }
  .similar-row .row-actions { display: none; }
  .similar-label.fold-only { display: inline; }
  .row-actions .button { padding-inline: 4px; font-size: 14px; }
  .row-actions .fold-only { display: inline; }
  .row-actions .confirm:not(:disabled) { color: var(--paper); background: var(--ink); }

  .note { grid-row: 3; align-items: stretch; margin: 6px 0 0; }
  .note .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note .button:only-child { grid-column: 1 / -1; }

  .button, .editor input:not([type="radio"]), .editor select { min-height: 44px; }
  .editor { padding: 10px 0 0; }
  .edit-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor select, .editor input:not([type="radio"]) { font-size: 16px; }
  .processed, .processed:last-child { flex-wrap: wrap; padding: 10px 16px; }
  .processed-name { flex: 1 1 calc(100% - 40px); }
  .outcome { flex: 1; padding-left: 32px; }

  #bulk {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: calc(100% - 16px);
    margin: 0;
    padding: 22px var(--pad-right) calc(22px + env(safe-area-inset-bottom)) var(--pad-left);
    border: 0;
    border-radius: var(--radius-m) var(--radius-m) 0 0;
    overflow-wrap: anywhere;
  }
  #bulk .actions { display: grid; justify-content: stretch; }
  .toasts { z-index: 2; bottom: var(--ask-clearance); }
  .toast { max-width: 100%; }
  #meeting-hint-dismiss { position: fixed; z-index: 3; inset: 0; }
  #meeting-hint { pointer-events: auto; }
}

html:has(#card-detail[open]) { overflow: hidden; }
#card-detail {
  --card-pad: 28px;
  position: fixed;
  inset: 0 0 0 auto;
  width: 500px;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: -16px 0 40px rgb(0 0 0 / 8%);
  overflow: hidden;
}
#card-detail[open] { display: flex; flex-direction: column; }
#card-detail::backdrop {
  background: linear-gradient(90deg, transparent var(--sidebar-width), rgb(11 11 12 / 6%) var(--sidebar-width));
}
.card-header {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 14px var(--card-pad) 0;
  font-size: 12.5px;
}
.card-identity, .card-pager { display: flex; align-items: center; gap: 6px; }
.card-identity { flex-wrap: wrap; }
.card-identity img { width: 8px; height: 8px; }
.card-identity strong { font-weight: 500; }
.card-id { color: var(--ink-2); }
.card-status {
  padding: 2px 7px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 11.5px;
}
.card-pager { flex: none; margin-left: auto; white-space: nowrap; color: var(--ink-2); }
.card-arrow.button { width: 26px; height: 26px; padding: 0; font-size: 16px; }
.card-close.button { flex: none; width: 28px; height: 36px; margin-right: -7px; }
.card-back.button { display: none; }
.card-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px var(--card-pad) 22px;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}
.card-content > * + * { margin-top: 18px; }
.card-content h2 {
  font-size: 23px;
  font-weight: 600;
  line-height: 29px;
  letter-spacing: -.46px;
}
.card-content h2:focus { outline: none; }
.card-overdue {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  background: var(--signal-soft);
  font-weight: 500;
}
.card-overdue::before { content: ""; flex: none; width: 8px; height: 8px; background: currentColor; }
.card-fields { margin-bottom: 0; font-size: 13.5px; }
.card-fields > div {
  display: grid;
  grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
  align-items: baseline;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.card-fields dt, .card-quotes-heading span, .card-quotes blockquote span { color: var(--ink-2); font-size: 12.5px; }
.card-fields dd { margin: 0; }
.card-epic-link { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.card-epic-link:hover { text-decoration-color: currentColor; }
.card-fields dd > div + div { margin-top: 4px; }
.card-quotes-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 12px; }
.card-quotes-heading h3 { font-size: 14px; font-weight: 600; }
.card-quotes blockquote {
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 2px solid var(--ink);
  font-size: 13.5px;
  line-height: 1.45;
}
.card-quotes blockquote time { margin-right: 6px; font-size: 12.5px; font-weight: 500; }
.card-quotes blockquote p { margin-top: 4px; }
.card-quotes-empty { padding: 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius-m); color: var(--ink-2); }
.card-content .editor { padding: 12px 0; border-block: 1px solid var(--line); }
.card-content .edit-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-error { margin: 0 var(--card-pad) 12px; padding: 8px 10px; background: var(--canvas); }
.card-footer { flex: none; margin: 0 var(--card-pad); padding: 14px 0 24px; border-top: 1px solid var(--line); }
.card-footer > p { margin-bottom: 8px; }
#card-notifications .toasts { position: static; padding-inline: var(--card-pad); padding-bottom: 12px; }
#card-notifications:has(.toasts:empty) { display: none; }

@media (width < 1024px) {
  body:has(#card-detail[open]) > .fold-tabs { visibility: hidden; }
  #card-detail { --card-pad: clamp(16px, 3.4vw, 30px); inset: 0; width: 100%; border: 0; }
  #card-detail::backdrop { background: var(--paper); }
  .card-header { padding: 7px var(--pad-right) 7px var(--pad-left); border-bottom: 1px solid var(--line); }
  .card-header .card-close { display: none; }
  .card-back.button { display: inline-flex; flex: none; color: var(--ink-2); font-size: 14px; }
  .card-back span { color: var(--ink); font-size: 21px; }
  .card-identity { margin-left: auto; font-size: 14px; }
  .card-pager { margin-left: 0; }
  .card-arrow.button { width: 44px; }
  .card-content { padding-top: 20px; }
  .card-content h2 { font-size: 28px; line-height: 1.25; max-width: 790px; }
  .card-overdue { padding: 16px 18px; font-size: 16px; }
  .card-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-block: 1px solid var(--line);
  }
  .card-fields > div { display: block; padding: 12px 10px 12px 0; border: 0; }
  .card-fields dd { margin-top: 4px; }
  .card-quotes-heading h3 { font-size: 17px; }
  .card-quotes blockquote { margin-bottom: 16px; padding-left: 15px; font-size: 16px; }
  .card-footer { margin: 0; padding: 12px var(--pad-right) calc(20px + env(safe-area-inset-bottom)) var(--pad-left); }
  .card-footer .actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .card-footer .button { padding-inline: 3px; font-size: 14px; }
  #card-notifications .toast-button { min-width: 44px; }
}

@media (width < 560px) {
  .card-header { flex-wrap: wrap; gap: 0 8px; }
  .card-identity { order: 1; width: 100%; margin: 0 0 6px; }
  .card-pager { margin-left: auto; }
  .card-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#board-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--ask-clearance));
}
.board-header { padding: 22px var(--pad-right) 14px var(--pad-left); }
.board-heading { display: flex; align-items: end; gap: 12px; margin-bottom: 12px; }
.board-heading > .button { flex: none; padding: 9px 14px; }
.board-picker, .board-switch { display: none; }
.board-columns {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 16px var(--pad-right) 24px var(--pad-left);
  border-top: 1px solid var(--line);
  background: var(--canvas);
}
.board-column > header {
  min-height: 51px;
  padding: 9px 0 12px;
  border-top: 2px solid var(--line-strong);
}
.board-column:first-child > header, .board-column:nth-child(4) > header { border-color: var(--ink); }
.board-column h2 { font-size: 13.5px; font-weight: 600; }
.board-column h2 span, .board-column header p, .board-switch span { color: var(--ink-3); font-weight: 400; }
.board-column h2 span, .board-switch span { margin-left: 4px; font-size: 12.5px; }
.board-column header p { margin-top: 2px; font-size: 12px; }
.board-empty {
  display: grid;
  min-height: 90px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-s);
  color: var(--ink-3);
  font-size: 12.5px;
}
.board-tiles { display: grid; gap: 8px; align-items: start; }
.board-tile {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: 12px 13px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper);
}
.board-tile:has(.board-card-link:hover) { border-color: var(--line-strong); }
.board-tile.board-loose { border-color: var(--signal); border-left-width: 3px; }
.board-identity, .board-meetings, .board-tile-footer { display: flex; align-items: center; gap: 7px; }
.board-identity { font-size: 12px; font-weight: 500; }
.board-identity > span { margin-left: auto; color: var(--ink-3); font-weight: 400; white-space: nowrap; }
.board-tile h3, .button.board-card-link { font-size: 14px; font-weight: 500; line-height: 19px; }
.button.board-card-link { display: block; width: 100%; text-align: left; }
.button.board-card-link:hover { text-decoration: none; }
.board-card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-s); }
.board-card-link:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 2px; }
.board-meetings { min-height: 18px; color: var(--ink-3); font-size: 12px; flex-wrap: wrap; }
.board-meetings .dots { position: relative; height: 18px; margin-block: 0; }
.board-loose .dots .present { border-color: var(--signal); background: var(--signal); }
.board-tile-footer { min-height: 27px; padding-top: 8px; border-top: 1px solid var(--line); }
.board-stage {
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  color: var(--ink-2);
  font-size: 11.5px;
  white-space: nowrap;
}
.board-pending { border-style: dashed; }
.board-signals { display: grid; gap: 2px; min-width: 0; font-size: 12px; }

#board-epics {
  inset: auto 0 0;
  width: 100%;
  max-width: none;
  max-height: 85dvh;
  margin: 0;
  padding: 8px var(--pad-right) calc(16px + env(safe-area-inset-bottom)) var(--pad-left);
  border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--paper);
  color: var(--ink);
}
#board-epics::backdrop { background: rgb(11 11 12 / 40%); }
.board-sheet-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.board-sheet-heading h2 { font-size: 20px; font-weight: 600; }
.board-sheet-heading .button { width: 44px; height: 44px; font-size: 22px; }
#board-epic-links { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-m); }
#board-epic-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--ink);
  text-decoration: none;
}
#board-epic-links a + a { border-top: 1px solid var(--line); }
#board-epic-links a span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
#board-epic-links a:is(:hover, [aria-current]) { background: var(--canvas); }
#board-epic-links a[aria-current] { font-weight: 600; }
#board-epic-links a:focus-visible { outline-offset: -2px; }

@media (min-width: 1024px) {
  html:has(#board-screen:not([hidden])) { scrollbar-width: thin; }
  .board-columns { grid-template-rows: auto 1fr; }
  .board-column { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 0; align-items: start; }
}

@media (width < 1024px) {
  #board-screen { min-height: 0; padding: 0 var(--pad-right) 24px var(--pad-left); }
  #board-screen, #board-epics { -webkit-tap-highlight-color: transparent; }
  .board-header { padding: 16px 0 14px; }
  .board-heading { align-items: center; flex-wrap: wrap; }
  .board-heading .intro { display: block; }
  .board-heading h1 { font-size: 28px; line-height: 34px; }
  .board-heading > .button { min-height: 44px; }
  .board-picker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    text-align: left;
    background: transparent;
    border: 0;
    font: inherit;
    letter-spacing: inherit;
  }
  .board-picker span { color: var(--ink-2); font-size: 18px; font-weight: 400; }
  .board-switch {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px;
    border-radius: var(--radius-m);
    background: var(--canvas);
  }
  .board-switch button {
    min-height: 44px;
    padding: 4px;
    overflow-wrap: anywhere;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink-2);
  }
  .board-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); font-weight: 500; }
  .board-columns { display: block; padding: 0; border: 0; background: var(--paper); }
  .board-column:not(.board-active), .board-column > header { display: none; }
  .board-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .board-meetings .dots { height: 44px; margin-block: -7px; }
  .card-epic-link { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; }
}

@media (width < 480px) {
  .board-heading .intro { flex-basis: 100%; }
  .board-switch button { font-size: 11px; }
  .board-switch span { display: block; margin: 2px 0 0; }
  .board-tile-footer { flex-wrap: wrap; }
}

#ask-button {
  position: fixed;
  z-index: 2;
  right: 24px;
  bottom: var(--ask-bottom);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 44px;
  height: var(--ask-height);
  overflow: hidden;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 1px 1.5px rgb(0 0 0 / 6%), 0 6px 10px rgb(0 0 0 / 10%);
  font-weight: 500;
  transition: width 150ms ease, padding 150ms ease;
}
body:has(#card-detail[open], #ask-panel[open]) #ask-button { visibility: hidden; }
.ask-label {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 150ms ease;
}
.ask-label kbd { font: 400 12px var(--font); color: var(--ink-3); }
@media (min-width: 1024px) {
  #ask-button:is(:hover, :focus-visible) { width: 161px; padding-inline: 16px 14px; }
  #ask-button:is(:hover, :focus-visible) .ask-label { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #ask-button, .ask-label { transition: none; }
}

#ask-panel {
  position: fixed;
  inset: auto 24px 24px auto;
  width: 440px;
  height: min(780px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 6px rgb(0 0 0 / 6%), 0 16px 48px rgb(0 0 0 / 14%);
}
#ask-panel[open] { display: flex; flex-direction: column; }
#ask-panel::backdrop { background: transparent; }
.ask-header { flex: none; border-bottom: 1px solid var(--line); }
.ask-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px 8px 16px;
}
.ask-heading h2 { flex: 1; font-size: 15px; font-weight: 600; }
.ask-close.button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: var(--radius-s);
}
.ask-close.button:hover { background: var(--canvas); }
.ask-header p { padding: 0 16px 12px; color: var(--ink-2); font-size: 12.5px; }
.ask-body {
  display: grid;
  align-content: start;
  gap: 16px;
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.ask-body .hint { width: 100%; }
.ask-body h3 { font-size: 16px; font-weight: 500; line-height: 22px; }
.ask-examples {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 20px;
}
.ask-examples li + li { margin-top: 6px; }
.ask-project { display: grid; gap: 8px; padding-top: 8px; }
.ask-project h3 { color: var(--ink-2); font-size: 12.5px; line-height: normal; }
.ask-project p { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.ask-footer { flex: none; padding: 10px 12px; border-top: 1px solid var(--line); }
.ask-composer {
  padding: 10px 8px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  opacity: .4;
}
.ask-composer, .ask-composer :disabled { cursor: not-allowed; }
.ask-composer input {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 20px;
}
.ask-composer input::placeholder { color: var(--ink-3); opacity: 1; }
.ask-composer-actions { display: flex; justify-content: space-between; margin-top: 6px; }
.ask-composer-actions button { padding: 6px; border: 0; border-radius: 50%; background: transparent; }
.ask-composer-actions button:last-child { background: var(--line); }

@media (width < 1024px) {
  #ask-button { right: 20px; width: auto; padding-inline: 18px 20px; font-size: 15px; }
  #ask-button, #ask-panel { -webkit-tap-highlight-color: transparent; }
  .ask-label { opacity: 1; }
  .ask-label kbd { display: none; }
  html:has(#ask-panel[open]) { overflow: hidden; }
  #ask-panel {
    inset: auto 0 0;
    width: 100%;
    height: calc(100dvh - min(80px, 15dvh));
    border: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: none;
  }
  #ask-panel::backdrop { background: rgb(11 11 12 / 40%); }
  #ask-panel::before {
    content: "";
    flex: none;
    align-self: center;
    width: 36px;
    height: 4px;
    margin: 8px 0 2px;
    border-radius: 2px;
    background: var(--line-strong);
  }
  .ask-heading { padding-block: 7px 1px; }
  .ask-close.button { width: 44px; height: 44px; }
  .ask-footer { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}
