/* kakka's identity (.claude/knowledge/identity.md): ink on cream, sun, coral and sky, Nunito, round. */
:root {
  --bg: #fff8e6;
  --surface: #ffffff;
  --column: #f8efd6;
  --border: #ebdfc0;
  --text: #1d1b16;
  --muted: #655d4c;
  --accent: #1a6fc0;
  --ink: #1d1b16;
  --sun: #ffc233;
  --coral: #ff7a59;
  --sky: #3aa0ff;
  --on-color: #1d1b16;
  --good: #2e9e5b;
  --lift: 0 1px 0 rgba(29, 27, 22, 0.08), 0 6px 20px rgba(29, 27, 22, 0.06);
  --tag-bg: #f6ecd2;
  --urgent: #b42318;
  --urgent-bg: #fee4e2;
  --high: #b54708;
  --high-bg: #fef0c7;
  --impact: #0e7490;
  --impact-bg: #cff4fc;
  --impact-track: #ecfdff;
  --added-bg: #dafbe1;
  --removed-bg: #ffebe9;
  --font: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --surface: #221f19;
    --column: #1b1813;
    --border: #3a342a;
    --text: #fff8e6;
    --muted: #b5ab94;
    --accent: #6fb8ff;
    --ink: #fff8e6;
    --good: #5fd18a;
    --lift: 0 1px 0 rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.3);
    --tag-bg: #2e2a22;
    --urgent: #fda29b;
    --urgent-bg: #55160c;
    --high: #fec84b;
    --high-bg: #4e1d09;
    --impact: #67e3f9;
    --impact-bg: #155b75;
    --impact-track: #0c2a36;
    --added-bg: #12361d;
    --removed-bg: #4b1713;
  }
}

* { box-sizing: border-box; }
/* The wheel scrolls what it is over, and only that (the owner, 11/11/2026: "if I scroll on the card, only
   that scroll"): a frame at its end never hands the scroll on to the page behind it. The board itself is
   no frame (sideways only), so over the board outside a column's cards the page scrolls. */
.sidebar, .inbox, .cards, .panel, .chat-log, .lane-says { overscroll-behavior: contain; }
body {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.4 var(--font);
}
.muted { color: var(--muted); }

.sidebar { border-right: 1px solid var(--border); padding: 16px 12px; overflow-y: auto; display: flex; flex-direction: column; }
/* The footer: copyright, version, contact and links (public/footer.js). */
.site-footer { color: var(--muted); font-size: 11px; line-height: 1.6; }
.site-footer a { color: inherit; }
.sidebar .site-footer a { display: inline; padding: 0; border-radius: 0; font-weight: 400; text-decoration: underline; }
.sidebar .site-footer a:hover { background: none; }
.sidebar-footer { margin-top: auto; padding-top: 16px; }
.entry-footer { max-width: 640px; margin: 0 auto 32px; padding: 0 16px; text-align: center; }
/* Under Simple, Balanced and All, which have no sidebar. */
.page-footer { margin-top: auto; padding: 24px 16px; text-align: center; font-size: 13px; }
.entry-draft { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--high-bg); color: var(--high); font-weight: 700; }
/* The footer's modal: What's new (ten releases a page), Terms, Privacy. */
.info-modal {
  width: min(720px, calc(100vw - 32px)); max-height: 85vh; padding: 0; border: 1px solid var(--border);
  border-radius: 16px; background: var(--surface); color: var(--text); font-family: Nunito, system-ui, sans-serif;
  display: flex; flex-direction: column;
}
.info-modal:not([open]) { display: none; }
.info-modal::backdrop { background: rgb(0 0 0 / 0.35); }
.info-modal .icon-button { position: absolute; top: 12px; right: 16px; }
.info-modal-title { font-size: 20px; font-weight: 900; margin: 0; padding: 18px 56px 12px 24px; border-bottom: 1px solid var(--border); }
.info-modal-body { overflow-y: auto; padding: 8px 24px 20px; font-size: 14px; line-height: 1.5; }
.info-modal-body h2 { font-size: 15px; margin: 18px 0 4px; }
.confirm-modal { width: min(480px, calc(100vw - 32px)); }
.confirm-modal .inbox-options, .cycle-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.confirm-modal .inbox-options { justify-content: flex-end; margin-top: 16px; }
.cycle-far { margin-left: auto; }
.inbox-button.cycle-danger { border-color: var(--urgent); color: var(--urgent); }
.release h3 { font-size: 15px; margin: 18px 0 4px; }
.release li { margin: 4px 0; }
.release-pages { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.page-button { font: inherit; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.page-button:disabled { opacity: 0.4; cursor: default; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 24px; letter-spacing: -0.5px; margin-bottom: 20px; }
.sidebar-label { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.sidebar a {
  display: flex; justify-content: space-between;
  padding: 6px 10px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600;
}
.sidebar a.active, .sidebar a:hover { background: var(--column); }

/* The page scrolls when the questions and lanes above the board are tall; the board keeps its height. */
main { display: flex; flex-direction: column; min-width: 0; height: 100vh; overflow-y: auto; }
/* What sits above the board keeps its own height: only the page scrolls past it. */
main > :not(.board) { flex-shrink: 0; }
/* The narrow layout is the base, shared by a phone and by the Simple dress: one column, the project picker in
   the top bar instead of the sidebar and the title. A wide screen outside Simple restores the wide one below. */
.topbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
.topbar h1 { font-size: 20px; font-weight: 900; letter-spacing: -0.3px; margin: 0; }
.topbar h1, #open-count { display: none; }
.project-select {
  display: block; flex: 1 1 100%; font: inherit; font-size: 15px; font-weight: 600; padding: 8px;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
}
.text-button {
  font: inherit; font-size: 13px; font-weight: 700; color: var(--text); background: var(--surface); cursor: pointer;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px;
}
.text-button:hover { background: var(--ink); color: var(--bg); }
.settings-row { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 0 0 18px; font-size: 13px; }
.settings-label { font-weight: 600; }
.settings-row input[type="checkbox"] { justify-self: start; width: 18px; height: 18px; margin: 0; }
.settings-input {
  font: inherit; width: 200px; max-width: 100%; padding: 6px 8px;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
}
.settings-help { font-size: 12px; white-space: pre-line; }
.telegram-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
div.settings-input { display: grid; gap: 6px; width: auto; }
.settings-pick { display: flex; align-items: center; gap: 6px; }
.settings-status { min-height: 1em; }
#search {
  margin-left: auto; width: 240px; padding: 6px 14px; font: inherit;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text);
}
/* kakka's background work, just before the search (workLine in board.js). */
/* One line, cut with "…" (the whole text on hover): a long check line pushed the switch off the screen. */
.work-line {
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-left: auto; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; background: var(--column); color: var(--text);
}
.work-line[hidden] { display: none; }
.work-line:not([hidden]) + #search { margin-left: 0; }

/* The dresses (wearDress in board.js): a region names in data-dresses the dresses that show it; every
   other dress hides it. A region with no data-dresses shows in all four. */
body[data-dress="today"] [data-dresses]:not([data-dresses~="today"]),
body[data-dress="simple"] [data-dresses]:not([data-dresses~="simple"]),
body[data-dress="balanced"] [data-dresses]:not([data-dresses~="balanced"]),
body[data-dress="all"] [data-dresses]:not([data-dresses~="all"]) { display: none !important; }
.dress-switch { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface); }
.dress-switch button {
  font: inherit; font-size: 13px; font-weight: 800; padding: 4px 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text); cursor: pointer;
}
.dress-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Lanes sit in even columns; a lane showing its message takes the whole row. */
.lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 620px), 1fr)); gap: 8px; padding: 0 20px 12px; }
.lanes[hidden] { display: none; }
.lane-chip:has(.lane-says) { grid-column: 1 / -1; }
.lanes-at-once { display: flex; gap: 8px; align-items: center; }
.settings-number { width: 90px; }
.capacity-advice { font-size: 13px; margin: 0 0 12px; }
.capacity-advice p { margin: 0 0 6px; }
.capacity-limits { margin: 0 0 8px; padding-left: 18px; }
.capacity-limits .tightest { font-weight: 600; }
.summary { margin: 0 20px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; font-size: 13px; }
.summary-title { cursor: pointer; font-weight: 600; }
.summary-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.summary-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 4px 8px 4px 0; border-bottom: 1px solid var(--border); }
.summary-table td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.summary-sub { font-size: 13px; margin: 12px 0 4px; }
.summary-left { margin: 0; padding-left: 18px; }
.summary .muted { color: var(--muted); font-size: 12px; }
.tag.outcome-done { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.tag.outcome-set-aside, .tag.outcome-saved-stays-open, .tag.under-calculation { background: var(--high-bg); color: var(--high); }
@media (max-width: 700px) { .summary { overflow-x: auto; } }
.lane-chip {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px;
}
.lane-chip.waiting { border-color: var(--high); }
.lane-model { font: inherit; font-size: 12px; padding: 1px 4px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.lane-chip { flex-wrap: wrap; }
.resume { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.resume-note {
  font: inherit; font-size: 12px; width: 220px; max-width: 100%; padding: 3px 8px;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
}
.resume-note:disabled { opacity: 0.5; }
.resume-note.limit-input { width: 80px; }
.runs-section { overflow-x: auto; }
.runs { border-collapse: collapse; font-size: 12px; width: 100%; }
.runs th, .runs td { text-align: left; padding: 3px 8px 3px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.runs th { color: var(--muted); font-weight: 600; }
.runs td.runs-what, .runs td.event-full { white-space: normal; }
.runs tr.runs-open { cursor: pointer; }
.runs tr.runs-said td { padding: 6px 8px 10px; background: var(--bg); }.lane-says {
  flex-basis: 100%; margin: 2px 0; max-width: 640px; max-height: 6em; overflow-y: auto;
  white-space: pre-wrap; color: var(--text);
}

.inbox {
  margin: 0 20px 12px; padding: 10px 12px; max-height: 40vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--high); border-radius: 8px;
  display: flex; flex-direction: column; gap: 10px;
}
.inbox[hidden] { display: none; }
.inbox-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inbox-title-text { margin: 0; font-size: 14px; color: var(--high); }
.inbox-count::before { content: '('; }
.inbox-count::after { content: ')'; }
.inbox-lanes { font: inherit; font-size: 13px; padding: 2px 6px; max-width: 100%; }
.inbox-lanes[hidden] { display: none; }
.inbox-item[hidden] { display: none; }
/* Sent: only the heading and the line saying so, until kakka has his message. */
.inbox-item.sent > :not(.inbox-head):not(.inbox-sent) { display: none; }
.inbox-table { border-collapse: collapse; margin: 4px 0 8px; font-size: 13px; white-space: normal; }
.inbox-table th, .inbox-table td { border: 1px solid var(--border); padding: 3px 8px; text-align: left; vertical-align: top; }
.inbox-table th { background: var(--column); font-weight: 600; }
.inbox-item .lane-says { max-height: 12em; }
.inbox-item .resume-note:not(.limit-input) { flex: 1; min-width: 200px; max-width: 520px; }
/* Each card boxed on its own; folded, only its heading and one line show. */
.inbox-item { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; background: var(--bg); min-width: 0; }
.inbox-item.folded > :not(.inbox-head):not(.inbox-sent) { display: none; }
.inbox-head {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; width: 100%;
  font: inherit; color: inherit; text-align: left; background: none; border: 0; padding: 0; cursor: pointer;
}
.inbox-fold { color: var(--muted); transition: transform 0.15s; }
.inbox-item:not(.folded) .inbox-fold { transform: rotate(90deg); }
.inbox-brief { flex: 1 1 240px; min-width: 0; margin-left: 4px; color: var(--muted); font-size: 14px; }
.inbox-item:not(.folded) .inbox-brief { display: none; }
.inbox-time { margin-left: auto; font-size: 12px; }
.inbox-text { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.inbox-note { color: var(--muted); font-size: 13px; }
.working { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 13px; }
.working-bar { position: relative; width: 120px; height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.working-bar::after { content: ''; position: absolute; inset: 0; width: 40%; border-radius: 2px; background: var(--accent); animation: working 1.1s ease-in-out infinite; }
@keyframes working { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .working-bar::after { animation-duration: 3s; } }
.explain { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.explain-text { background: var(--column); border-radius: 6px; padding: 8px 10px; }
.explain-button { font-size: 13px; }
.inbox-input-view {
  margin: 6px 0; padding: 8px; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 12px/1.5 var(--mono); background: var(--column); border-radius: 6px;
}
.inbox-controls { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
/* Why the dark answer is recommended: its own line under the buttons. */
.inbox-controls > .inbox-note { flex-basis: 100%; margin: 2px 0 0; }
.inbox-input {
  flex: 1 1 400px; min-width: 0; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; resize: vertical;
}
.inbox-button {
  font: inherit; color: var(--text); background: var(--surface); cursor: pointer;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 14px; font-weight: 700;
}
.inbox-button.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.inbox-button:disabled, .inbox-input:disabled { opacity: 0.5; cursor: default; }
.inbox-error { margin: 6px 0 0; color: var(--urgent); font-size: 12px; }

/* Sideways only: each column scrolls its own cards, and the page scrolls past the board. */
.board { flex: 1 0 70vh; display: flex; gap: 12px; padding: 0 20px 20px; overflow-x: auto; overflow-y: hidden; min-height: 0; }
.column {
  flex: 0 0 280px; display: flex; flex-direction: column;
  background: var(--column); border-radius: 16px; min-height: 0;
}
/* .board first: a dress's own column width must not widen the folded strip (All drew it 220px). */
.board .column.collapsed { flex: 0 0 44px; min-width: 44px; cursor: pointer; }
.column.collapsed .cards, .column.collapsed .pager { display: none; }
.column.collapsed .column-head { writing-mode: vertical-rl; padding: 12px 0; align-self: center; }
.column[data-column="done"] .column-head, body[data-dress="all"] .column-head:has(.column-chevron) { cursor: pointer; }
/* Only Done folds outside All. */
body:not([data-dress="all"]) .column:not([data-column="done"]) .column-chevron { display: none; }
/* A round button with a bold dark chevron, as Kanzo's (the owner, 30/11/2026: "make the » more visible"). */
.column-chevron { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--tag-bg); }
.column-chevron::before { content: '»'; color: var(--ink); font-size: 20px; font-weight: 900; line-height: 1; }
.column:hover .column-chevron { background: var(--ink); }
.column:hover .column-chevron::before { color: var(--bg); }
.column.collapsed .column-chevron { writing-mode: horizontal-tb; margin-bottom: 8px; }
.column.collapsed .column-chevron::before { content: '«'; }
.column-head { display: flex; gap: 6px; align-items: center; padding: 12px 14px; font-weight: 800; font-size: 15px; }
.column-head .count { color: var(--muted); font-weight: 400; }
.cards { overflow-y: auto; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 8px; }
/* Todo's and Done's sort and filter icons, at the end of the title, their choices before them; folded, the
   title stands sideways and shows none. A filter in use darkens its icon. */
.column-tools { margin-left: auto; display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; align-items: center; text-transform: none; letter-spacing: normal; }
.column.collapsed .column-tools { display: none; }
.column-tool { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--tag-bg); color: var(--ink); font-size: 15px; font-weight: 900; cursor: pointer; }
.column-tool:hover, .column-tool.on { background: var(--ink); color: var(--bg); }
/* The filter's sliders: hollow knobs, filled with the button's own background. */
.column-tool { display: inline-grid; place-items: center; padding: 0; }
.column-tool circle { fill: var(--tag-bg); }
.column-tool:is(:hover, .on) circle { fill: var(--ink); }
.column-menu { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.column-menu[hidden], .column-menu [hidden] { display: none; }
.column-menu :is(select, button) { font: inherit; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 3px 6px; cursor: pointer; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 14px; cursor: pointer; text-align: left; color: inherit; font: inherit; width: 100%;
}
.card:hover { border-color: var(--ink); }
.card.waiting { border-color: var(--high); }
/* The lane working the ticket: its model, what it is doing or waits on, its cost (laneParts). */
.card-lane { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; }
.card-lane .lane-says { flex-basis: 100%; margin: 0; }
.card-top { display: flex; justify-content: space-between; gap: 8px; }
.card-id { color: var(--muted); font-size: 12px; white-space: nowrap; }
.card-title { margin: 0; font-size: 14px; font-weight: 600; }
.card-meta { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
/* The id, and under it the kind, lane and impact, beside the text. */
.card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.card-side .card-meta { flex-direction: column; align-items: flex-end; gap: 4px; margin-top: 0; }
.tag { background: var(--tag-bg); border-radius: 6px; padding: 1px 7px; font-size: 11px; font-weight: 700; color: var(--muted); }
.tag.lane { background: var(--ink); color: var(--bg); }
.tag.lane.fix { background: var(--accent); color: var(--surface); }
.tag.priority-urgent { background: var(--urgent-bg); color: var(--urgent); }
.tag.priority-high { background: var(--high-bg); color: var(--high); }
.tag.proposal { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
/* The ticket's kind: an outlined label. Its impact: a rounded gauge, filled to the score (--score, 0-100). */
.tag.kind { background: transparent; border: 1px solid var(--border); text-transform: uppercase; letter-spacing: 0.03em; font-size: 10px; }
.tag.impact { border-radius: 999px; color: var(--impact); font-weight: 600;
  background: linear-gradient(90deg, var(--impact-bg) calc(var(--score, 0) * 1%), var(--impact-track) 0); }

.progress { display: flex; gap: 2px; margin-top: 8px; }
.lane-chip .progress { margin-top: 0; width: 98px; }
.seg {
  flex: 1; height: 13px; border-radius: 3px; border: 1px solid var(--muted);
  font: 600 8px/11px var(--mono); text-align: center; text-transform: uppercase; color: var(--muted);
}
.seg-done { background: var(--muted); color: var(--surface); }
.seg-skipped {
  border-color: var(--border); opacity: 0.7;
  background: repeating-linear-gradient(45deg, transparent 0 2px, var(--border) 2px 4px);
}
.seg-todo { background: transparent; }
.seg-current { color: #fff; border-color: transparent; }
.seg-current.state-working { background: var(--accent); }
.seg-current.state-checking { background: var(--high); animation: seg-pulse 1.6s ease-in-out infinite; }
.seg-current.state-review { background: #7c3aed; }
.seg-current.state-redo { background: var(--urgent); }
@media (prefers-color-scheme: dark) {
  .seg-current { color: #111113; }
  .seg-current.state-review { background: #b79cff; }
}
@keyframes seg-pulse { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .seg-current.state-checking { animation: none; } }

.card.dragging { opacity: 0.4; }
.card.drop-before { box-shadow: 0 -3px 0 var(--accent); }

.pager { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 8px 10px; }
.pager-label { color: var(--muted); font-size: 12px; margin: 0 6px; white-space: nowrap; }
.pager-button {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 6px; min-width: 26px; height: 26px; cursor: pointer; font: inherit;
}
.pager-button:disabled { opacity: 0.35; cursor: default; }

.fields input, .fields select {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 6px; width: 100%;
}
.fields .check { display: flex; align-items: center; gap: 6px; }
.fields .check input { width: auto; }

.toast {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-size: 13px;
}

.panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(860px, 100vw);
  background: var(--surface); border-left: 1px solid var(--border);
  padding: 20px; overflow-y: auto; box-shadow: -8px 0 24px rgb(0 0 0 / 0.08);
}
.panel.wide { width: min(1400px, 100vw); }
/* Settings: a page of its own over the board, its content in one readable column. */
.panel.settings-page { left: 0; width: auto; border-left: 0; box-shadow: none; background: var(--bg); padding: 24px 16px 64px; }
.panel.settings-page > .icon-button { display: none; }
.panel.settings-page #panel-content { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.settings-back { align-self: flex-start; min-height: 44px; }
.settings-title { margin: 0; font-size: 36px; font-weight: 900; letter-spacing: -0.5px; }
.settings-card, .settings-advanced { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; }
.settings-card h2 { font-size: 20px; font-weight: 800; margin: 0 0 12px; }
.readiness-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.readiness-head h2 { margin: 0; }
.readiness-fold > summary { cursor: pointer; list-style: none; }
.readiness-fold > summary::-webkit-details-marker { display: none; }
.readiness-fold[open] > summary { margin-bottom: 12px; }
.readiness-fold > summary .readiness-head h2::before { content: "▸ "; }
.readiness-fold[open] > summary .readiness-head h2::before { content: "▾ "; }
.readiness-bar { height: 10px; background: var(--tag-bg); border-radius: 999px; overflow: hidden; margin: 12px 0 4px; }
.readiness-fill { height: 100%; background: var(--sun); border-radius: 999px; }
.cycle-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; padding: 0; }
.cycle-steps li { padding: 4px 12px; border-radius: 14px; background: var(--tag-bg); color: var(--muted); font-size: 14px; text-align: center; }
.cycle-steps li.done { background: var(--impact-bg); color: var(--impact); }
.cycle-steps li.now { background: var(--high-bg); color: var(--high); font-weight: 700; }
.cycle-step-time { display: block; font-size: 12px; font-weight: 400; opacity: 0.85; }
.cycle-suites { list-style: none; margin: 12px 0; padding: 0; }
.cycle-suites > li { padding: 8px 0; border-bottom: 1px solid var(--tag-bg); }
.cycle-suites > li:last-child { border-bottom: 0; }
.cycle-green > strong { color: var(--impact); }
.cycle-red > strong { color: var(--urgent); }
.cycle-running > strong { color: var(--high); }
.cycle-failures { margin: 4px 0; padding-left: 18px; max-height: 320px; overflow-y: auto; }
.cycle-failures li { margin: 6px 0; overflow-wrap: anywhere; }
.cycle-failures code { font-family: var(--mono); font-size: 13px; }
.readiness { list-style: none; margin: 0; padding: 0; }
.readiness li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--tag-bg); }
.readiness li:last-child { border-bottom: 0; }
.readiness-words { flex: 1; min-width: 0; }
.readiness-mark { width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; background: var(--high-bg); color: var(--high); }
.readiness li.done .readiness-mark { background: var(--impact-bg); color: var(--impact); }
/* Connectors (connectorsSection in board.js): one round tile per service, its connections listed under it. */
.connector-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; margin: 12px 0; }
.connector-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; min-width: 0; }
.connector-tile > .settings-input { width: 100%; }
.connector-tile p { margin: 0; }
.connector-head { display: flex; align-items: center; gap: 10px; font-size: 16px; align-self: stretch; }
.connector-head > .round-icon { margin-left: auto; }
.connector-logo { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 900; }
.connector-logo.icon { background: none; border-radius: 0; object-fit: contain; }
.connector-line { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-top: 1px solid var(--tag-bg); }
.connector-line.off .connector-account { color: var(--muted); }
.connector-name { display: flex; align-items: center; gap: 4px; flex: 1 1 100%; min-width: 0; }
.connector-account { flex: 1 1 auto; min-width: 0; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.connector-name-input { flex: 1 1 auto; min-width: 0; }
.connector-rules { display: flex; gap: 16px; flex: 1 1 100%; }
.connector-rule { display: flex; align-items: center; gap: 6px; }
/* A round button with a line icon: edit, remove, save, cancel, add, and a permission's state. */
.round-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; padding: 0; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; }
.round-icon:hover { border-color: var(--ink); }
.round-icon:disabled { opacity: 0.5; cursor: default; }
.round-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Edit and remove beside a name: no ground of their own, only the icon. */
.connector-name .round-icon { background: none; border-color: transparent; color: var(--muted); }
.connector-name .round-icon:hover { background: var(--tag-bg); color: var(--text); }
/* A permission's state, soft: a pale tint with its colour only in the mark. */
.round-icon.connector-permission { width: 24px; height: 24px; }
.round-icon.connector-permission svg { width: 14px; height: 14px; stroke-width: 2; }
.round-icon.connector-permission.alone { background: var(--added-bg); border-color: transparent; color: var(--good); }
.round-icon.connector-permission.asks { background: var(--urgent-bg); border-color: transparent; color: var(--urgent); }
.round-icon.connector-permission:hover { border-color: currentColor; }
.connector-error { flex-basis: 100%; overflow-wrap: anywhere; }
/* Settings' Assistants: each assistant as a connection's line; a new one's lines for Claude desktop, shown once. */
.assistant-list { display: flex; flex-direction: column; }
.assistant-add { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.assistant-add .settings-input { flex: 1 1 220px; }
.assistants textarea.settings-input { width: 100%; box-sizing: border-box; resize: vertical; }
.assistant-config { max-width: 100%; overflow-x: auto; padding: 10px; border-radius: 8px; background: var(--tag-bg); font-size: 12px; white-space: pre; }
.connector-warning { color: var(--urgent); font-weight: 700; }
.settings-advanced > summary { font-size: 20px; font-weight: 800; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.settings-group { border-top: 1px solid var(--tag-bg); padding: 4px 0; }
.settings-group > summary { cursor: pointer; min-height: 44px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 10px 0; }
.settings-group-title { font-size: 17px; font-weight: 800; }
.settings-group[open] > summary { margin-bottom: 8px; }
.lane-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.lane-bar-state { font-size: 15px; }
.lane-bar-state.held { color: var(--high); }
.lane-bar-gap { flex: 1; }
/* "Lanes at once": an outlined button opening a small panel under it (the owner, 03/12/2026). */
.lane-bar-max { position: relative; }
.lane-bar-max-button {
  min-height: 36px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: transparent;
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
}
.lane-bar-max-button:hover { background: var(--ink); color: var(--bg); }
.lane-bar-max-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 280px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--lift);
}
.lane-bar-max-panel[hidden] { display: none; }
.lane-bar-max-label { display: block; font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.lane-bar-max-row { display: flex; gap: 8px; align-items: center; }
.lane-bar-max-panel .muted { margin: 8px 0 0; }
.inbox-button.danger { background: var(--urgent); border-color: var(--urgent); color: #fff; }
.inbox-button.danger:disabled { opacity: 0.5; }
.report-days { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.report-day { border: 1px solid var(--border); border-radius: 8px; background: var(--column); padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.report-day.active { border-color: var(--ink); background: var(--surface); font-weight: 600; }
.icon-button { float: right; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--muted); }
.panel h2 { font-size: 16px; margin: 0 0 12px; }
.panel-actions { display: flex; gap: 8px; margin: 0 0 12px; }
.panel-actions:empty { display: none; }
.tag.where-production { background: var(--urgent-bg); color: var(--urgent); font-weight: 600; }
.lesson-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; margin: 4px 0; }
.lesson-fold { flex: 1; }
.lesson-fold > summary { cursor: pointer; }
.lesson-fold > p { margin: 4px 0 4px 16px; white-space: pre-wrap; }
.inbox-text p { margin: 0 0 6px; }
.inbox-list { margin: 4px 0 8px; padding-left: 20px; }
.inbox-list li { margin: 2px 0; }
.legend-title { font-size: 13px; margin: 16px 0 6px; color: var(--muted); }
.legend-row { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0; font-size: 13px; }
.legend-mark { flex: 0 0 64px; display: flex; }
.legend-mark .seg { flex: 0 0 22px; }
.legend-phase { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.legend-phase-help { color: var(--muted); line-height: 1.4; }
/* Fields side by side as the width allows; one per line on a narrow screen; a wide one alone. */
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px 20px; margin-bottom: 16px; font-size: 13px; }
.field { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
.field.wide { grid-column: 1 / -1; }
.fields dt { color: var(--muted); }
.fields dd { margin: 0; }
.body { white-space: pre-wrap; font: 12px/1.5 var(--mono); background: var(--column); padding: 12px; border-radius: 8px; }
/* The pages outside the board (sign-in, sign-up, terms, privacy) are one column, not the board's grid. */
.entry-page { background: var(--bg); color: var(--text); font-family: Nunito, system-ui, sans-serif; margin: 0; display: block; }
.entry-page main { display: block; height: auto; overflow: visible; }
.entry { max-width: 420px; margin: 64px auto; padding: 0 16px; }
.choice { border: 0; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.choice label { display: flex; gap: 6px; align-items: baseline; }
.entry-wide { max-width: 640px; }
.entry form { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.entry input { font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.entry .brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 22px; }
.entry-note { min-height: 1.4em; font-weight: 600; }
.small { font-size: 13px; }
.server-line { margin: 0 0 8px; display: flex; flex-direction: column; gap: 4px; }
.server-line > div { display: flex; align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: 13px; background: var(--column); }
.server-line > div.urgent { background: var(--urgent-bg); color: var(--urgent); font-weight: bold; }
.server-line > div > span { flex: 0 1 auto; }
.lane-pc { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; font-size: 13px; background: var(--column); }
.lane-pc.offline { font-weight: bold; }
.ai-missing { display: block; width: 100%; text-align: left; margin: 0 0 8px; padding: 8px 12px; border: 1px solid var(--urgent); border-radius: 8px; background: var(--urgent-bg); color: var(--urgent); font: inherit; font-weight: bold; cursor: pointer; }
.ai-missing[hidden] { display: none; }
.settings-row { position: relative; }
.info-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--muted); color: var(--muted); font-size: 11px; font-weight: bold; font-style: italic; cursor: help; vertical-align: middle; }
.info-tip { display: none; position: absolute; left: 0; right: 0; top: 24px; z-index: 30; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); font-size: 13px; font-weight: normal; font-style: normal; line-height: 1.4; }
.info-icon:hover .info-tip, .info-icon:focus .info-tip { display: flex; flex-direction: column; gap: 6px; }
.info-note { color: var(--muted); }
.agent-head { display: flex; align-items: center; gap: 10px; }
.agent-head .inbox-button { padding: 2px 10px; font-size: 12px; }
.agent-box { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.agent-status { margin: 0; }
.agent-bad { color: var(--urgent); font-weight: bold; }
.talk { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.talk-line { margin: 0; }
.talk-owner { padding-left: 16px; }
.talk-proposal { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.tools-list, .suites-list { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.suites-scroll { overflow-x: auto; }
.suites-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 14px; }
.suites-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 6px 8px; }
.suites-table td { padding: 8px; border-top: 1px solid var(--tag-bg); vertical-align: top; }
.suites-table .suite-tick { text-align: center; }
.suites-table .suite-tick input { width: 20px; height: 20px; }
.deploy-commits { margin: 0 0 8px; padding-left: 0; list-style: none; max-height: 220px; overflow-y: auto; }
.deploy-commits li { padding: 2px 0; overflow-wrap: anywhere; }
.deploy-commits .deploy-green > span:first-child { color: var(--impact); }
.tools-list .tool-missing > strong { color: var(--urgent); }
.agent-models { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fold { margin: 16px 0 0; }
.fold > summary { cursor: pointer; font-size: 1.17em; font-weight: bold; margin-bottom: 8px; }
/* A step inside Steps: smaller, green once approved, in the accent while the lane is on it. */
.fold.step-fold { margin: 4px 0 4px 8px; }
.fold.step-fold > summary { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.fold.step-done > summary { color: #067647; }
.fold.step-current > summary { color: var(--accent); }
@media (prefers-color-scheme: dark) { .fold.step-done > summary { color: #75e0a7; } }
.events { font-size: 12px; color: var(--muted); padding-left: 16px; }
.events li { margin: 3px 0; overflow-wrap: anywhere; }
.event-more > summary { cursor: pointer; }
.events li.event-work { color: var(--ink); font-weight: 600; }
.events li.event-check { color: var(--accent); }
.events li.event-alert { color: var(--high); }
.events li.event-solved { color: #067647; }
@media (prefers-color-scheme: dark) { .events li.event-solved { color: #75e0a7; } }
.legend-history { margin: 0 0 10px; }
.legend-events { margin: 0 0 2px; padding: 4px 8px; list-style: none; border-left: 3px solid var(--border); background: var(--column); border-radius: 4px; }
.events .event-full { white-space: pre-wrap; font-weight: normal; color: var(--text); }
.event-full { white-space: pre-wrap; margin: 4px 0 6px; color: var(--text); }
.parked-why, .parked-step { margin: 0 0 6px; }
.parked-step + .parked-why { color: var(--muted); font-size: 13px; }
.parked-code { margin: 0 0 8px; font-size: 13px; }
.parked-code .inbox-list { margin: 2px 0 0; }
.parked-live { font-weight: 700; color: var(--impact); }
.command-map { margin: 4px 0 10px; padding-left: 18px; font-size: 13px; }
.command-map li { margin: 2px 0; }

/* The bin: a card dragged up to the top of the window shows it; dropped on it, the ticket is deleted. */
.trash {
  position: fixed; top: 0; left: 50%; z-index: 3;
  width: 220px; height: 72px; border-radius: 0 0 36px 36px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to bottom, rgb(220 38 38 / 0.85), rgb(220 38 38 / 0));
  color: rgb(255 255 255 / 0.55);
  opacity: 0; pointer-events: none; transform: translate(-50%, -12px);
  transition: opacity 0.18s, transform 0.18s, color 0.12s, background 0.12s;
}
.trash.shown { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.trash.over { color: #fff; background: linear-gradient(to bottom, rgb(220 38 38 / 1), rgb(220 38 38 / 0.15)); }
.trash.over svg { transform: scale(1.15); }
.trash svg { transition: transform 0.12s; pointer-events: none; }
.toast-action { margin-left: 12px; font: inherit; font-weight: 600; color: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; }

/* The chat: with kakka, with a lane (the drawer), or about one ticket (in its panel). */
.chat-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 2;
  display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: -8px 0 24px rgb(0 0 0 / 0.08);
}
.chat-drawer[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.chat-head select { flex: 1; font: inherit; padding: 4px 6px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.chat-head .icon-button { float: none; }
.chat-content { flex: 1; min-height: 0; display: flex; }
.chat { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.chat-drawer .chat { padding: 12px 16px 16px; }
.panel .chat { margin: 8px 0 16px; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
/* The ticket's chat takes most of the window: it is what the owner reads there (15/11/2026). */
/* In the ticket panel the chat sits inside the page that scrolls: at its first or last message the wheel
   goes on to the panel, never stopping dead over the chat (the owner, 24/11/2026). */
.panel .chat-log { height: 65vh; min-height: 240px; overscroll-behavior: auto; }
/* The Live section: a session as it goes, laid out as Claude Code's own terminal (the owner, 23/11/2026). */
.live { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 16px; }
.live select { font: inherit; padding: 4px 6px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.live-log { height: 65vh; min-height: 240px; overflow-y: auto; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font: 12px/1.45 var(--mono); }
.live-log > * { margin: 0 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.live-asked { color: var(--muted); }
.live-asked summary { cursor: pointer; }
.live-call { font-weight: 600; }
.live-call .live-detail { font-weight: 400; color: var(--muted); }
.live-result { margin: 2px 0 0 14px; color: var(--muted); font-weight: 400; }
.live-result.failed { color: var(--urgent); }
.live-said { font-family: var(--font); font-size: 13px; }
.live-said p, .verdict-text p { margin: 0 0 6px; }
.live-said ul, .verdict-text ul { margin: 0 0 6px; padding-left: 20px; }
.live-said li, .verdict-text li { margin-bottom: 4px; }
.verdict-text { white-space: normal; }
.live-group > summary { cursor: pointer; color: var(--muted); list-style: none; padding-left: 14px; }
.live-group > summary::-webkit-details-marker { display: none; }
.live-group.failed > summary { color: var(--urgent); }
.live-group-calls { margin: 4px 0 0 14px; }
.live-group-calls > * { margin: 0 0 4px; }
.live-diff { margin: 2px 0 0 14px; }
.live-diff .add { background: var(--added-bg); }
.live-diff .del { background: var(--removed-bg); }
.live-more, .live-earlier { color: var(--muted); font-style: italic; }
.live-earlier { cursor: pointer; text-decoration: underline; }
.live-running { padding: 6px 10px; border-radius: 8px; background: var(--column); font: 12px/1.45 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.live-running strong { font-family: var(--font); }
.chat-empty { color: var(--muted); font-size: 13px; }
.chat-msg { max-width: 85%; padding: 6px 10px; border-radius: 10px; background: var(--column); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.chat-msg.owner { align-self: flex-end; background: var(--accent); color: var(--surface); }
.chat-who { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.chat-msg.owner .chat-who { color: inherit; opacity: 0.8; }
.chat-status { font-size: 12px; color: var(--muted); }
.chat-msg-new { animation: chat-arrive 1s ease-in-out 4; box-shadow: 0 0 0 2px var(--accent); }
@keyframes chat-arrive { 50% { box-shadow: 0 0 0 2px transparent; } }
@media (prefers-reduced-motion: reduce) { .chat-msg-new { animation: none; } }
.chat-status.chat-new-below { color: var(--accent); font-weight: 600; cursor: pointer; }
.chat-form { display: flex; gap: 6px; align-items: flex-end; }
.chat-text p, .lane-says p, .explain-text p { margin: 0 0 4px; }
.chat-text .inbox-list, .lane-says .inbox-list { margin: 2px 0 4px; padding-left: 18px; }
.chat-text { white-space: normal; }
.inbox-text code, .chat-text code, .lane-says code, .live-said code, .verdict-text code { font: 12px var(--mono); background: var(--column); border-radius: 4px; padding: 0 4px; }
.chat-msg.lane .chat-text code, .chat-msg.kakka .chat-text code { background: var(--surface); }
.chat-image { display: block; margin-top: 6px; }
.chat-image img { display: block; max-width: 220px; max-height: 160px; border-radius: 6px; border: 1px solid var(--border); }
.chat-image img { cursor: zoom-in; }
.image-viewer { padding: 0; border: none; border-radius: 8px; background: var(--surface); max-width: 94vw; max-height: 94vh; overflow: auto; }
.image-viewer::backdrop { background: rgb(0 0 0 / 0.7); }
.image-viewer img { display: block; max-width: 92vw; max-height: 90vh; }
.image-viewer-close { position: sticky; top: 6px; float: right; margin: 6px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
/* Pasted images wait in a column left of the text box, up to 10, scrolling past the box's height. */
.chat-tray { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; max-height: 160px; overflow: hidden auto; padding: 6px 8px 0 0; }
.chat-tray[hidden] { display: none; }
.chat-tray-item { position: relative; }
.chat-tray-item .chat-image { margin: 0; }
.chat-tray-item .chat-image img { max-width: 72px; max-height: 54px; }
.write-area { flex: 1 1 100%; display: flex; gap: 6px; min-width: 0; align-items: flex-start; }
.write-area .inbox-input { flex: 1 1 auto; }
.chat-tray-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; line-height: 1; padding: 0; }
/* A button waiting on kakka shows a small spinner beside its word. */
.sending::after { content: ''; display: inline-block; width: 10px; height: 10px; margin-left: 6px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sending::after { animation-duration: 3s; } }
.chat-form textarea { flex: 1; resize: vertical; min-height: 38px; max-height: 160px; font: inherit; padding: 6px 8px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.lane-chip { cursor: pointer; }
.inbox-asked { display: block; width: fit-content; margin: 8px 0 4px auto; }
.lane-answering {
  margin: 10px 0; padding: 10px 12px; border-radius: 8px; font-weight: 600;
  background: var(--high-bg); color: var(--high); border-left: 4px solid var(--high);
  animation: seg-pulse 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .lane-answering { animation: none; } }
.inbox-explained { background: var(--column); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; }
.rule-tree summary, details.settings-row > summary { cursor: pointer; }
.question-story { margin: 6px 0; }
.question-last-try { margin: 6px 0; padding: 6px 8px; background: var(--high-bg); border-radius: 6px; overflow-wrap: anywhere; }
/* The heading over each part of a card: what happened, the cases, the decision, the options, the talk, his answer. */
/* Found at a glance but quieter than the text under it (the owner, 03/12/2026: "highlighted a bit better, not too
   strong"): the text's colour, a thin sun bar before it. */
.question-label {
  margin: 14px 0 6px; padding: 1px 0 1px 8px; border-left: 3px solid var(--sun);
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); opacity: 0.8;
}
.question-label:first-of-type { margin-top: 4px; }
.question-examples { margin: 2px 0 6px; }
/* What we need from you, first on the card: the one part he must not miss. */
.question-decision { font-weight: 700; font-size: 1.08em; }
.question-effects { margin: 4px 0; font-size: 13px; }
.settings-sub { margin: 8px 0 2px; font-weight: 600; font-size: 13px; }
.rule-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--border); }
.rule-line.depth-0 { font-weight: 600; margin-top: 6px; }
.rule-line.depth-1 { padding-left: 16px; }
.rule-name.asks::after { content: ' · asks you'; color: var(--high); font-weight: 400; font-size: 12px; }
.rule-pick { width: 190px; flex: none; }
.allow-means { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.chat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--urgent); margin-left: 6px; vertical-align: middle; }

/* The status line: one row of what is true now (statusLine in board.js). */
.status-line { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 20px 12px; padding: 8px 12px; border-radius: 8px; background: var(--column); font-size: 13px; font-weight: 700; }
.status-line .problem { color: var(--urgent); }

@media (max-width: 700px) {
  .sidebar { display: none; }
  #search { flex: 1; width: auto; margin-left: 0; }
  /* A column fills most of the screen and swipes into place. */
  .board { padding: 0 16px 16px; scroll-snap-type: x mandatory; }
  .column { flex-basis: 85vw; scroll-snap-align: start; }
  .inbox, .status-line { margin: 0 16px 12px; }
  .lanes { padding: 0 16px 12px; }
}
/* Only Today has the sidebar and the title; the other dresses keep the picker in the top bar, as the mockups. */
@media (width > 700px) {
  body:not([data-dress="simple"], [data-dress="balanced"], [data-dress="all"]) {
    grid-template-columns: 200px 1fr;
    & .topbar { flex-wrap: nowrap; gap: 12px; padding: 14px 20px; }
    & .topbar h1, & #open-count { display: revert; }
    & .project-select { display: none; }
  }
}

/* The Simple dress: one centred column, the talk with kakka as its main part, its box at the bottom. */
body[data-dress="simple"] main { align-items: center; padding: 0 16px; }
body[data-dress="simple"] main > * { width: 100%; max-width: 760px; margin-inline: 0; }
body[data-dress="simple"] .topbar { padding-inline: 0; }
.talk { display: flex; flex-direction: column; flex: 1 0 60vh; gap: 8px; padding-bottom: 16px; }
.talk h2 { margin: 0; font-size: 18px; font-weight: 900; }
.talk .chat-log { min-height: 240px; }
/* A wide screen: Waiting for you on the left, the talk with kakka on the right, held in view while the list
   scrolls (the owner, 02/12/2026). With nothing waiting, the talk takes the whole width. */
@media (width > 1100px) {
  body[data-dress="simple"] main {
    display: grid; grid-template-columns: repeat(2, minmax(0, 720px)); grid-auto-rows: max-content;
    grid-auto-flow: row dense; justify-content: center; align-content: start; column-gap: 24px;
    & > * { grid-column: 1 / -1; max-width: none; }
    & > .inbox { grid-column: 1; }
    & > .talk { grid-column: 2; position: sticky; top: 12px; align-self: start; max-height: calc(100vh - 24px); }
    &:has(> .inbox[hidden]) > .talk { grid-column: 1 / -1; position: static; max-height: none; }
    & > .page-footer { order: 1; }
  }
}
@media (max-width: 700px) {
  body:is([data-dress="simple"], [data-dress="balanced"], [data-dress="all"]) :is(.inbox-button, .text-button, .project-select, .chat-form textarea, .work-open) { min-height: 44px; }
  .dress-switch button { min-height: 44px; min-width: 44px; }
  #search { min-height: 44px; }
}

/* The Balanced dress: the chat with kakka under the status line, folded; Waiting for you as a grid of cards; "The
   work" in three columns with the side column beside it, under it on a phone. A wide screen puts the work, the
   side column and Waiting for you on one line (the owner, 02/12/2026). */
body[data-dress="balanced"] main {
  & > :is(.inbox, .balanced-row) { order: 2; }
  & > .page-footer { order: 3; }
}
@media (width > 1400px) {
  body[data-dress="balanced"] main {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px 380px; grid-auto-rows: max-content;
    grid-auto-flow: row dense; align-content: start; column-gap: 16px; padding: 0 20px 20px;
    & > * { grid-column: 1 / -1; margin-inline: 0; }
    & > .balanced-row { display: contents; }
    & > .balanced-row > * { order: 2; }
    & > .balanced-row > .work { grid-column: 1; }
    & > .balanced-row > .side { grid-column: 2; }
    & > .inbox { grid-column: 3; }
    & > .inbox:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  }
}
body[data-dress="balanced"] .ask {
  & > .chat { display: flex; flex-direction: column; gap: 8px; }
  /* The arrow sits after Send, as big as it. */
  & .ask-toggle { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); color: var(--text); }
  /* A chevron drawn from two borders: down while folded, up while open. */
  & .ask-toggle::before { content: ''; width: 12px; height: 12px; margin-top: -6px; border: solid currentColor; border-width: 0 3px 3px 0; transform: rotate(45deg); }
  & .ask-toggle[aria-expanded="true"]::before { margin: 6px 0 0; transform: rotate(-135deg); }
  & .ask-toggle:hover { background: var(--ink); color: var(--bg); }
  & .chat-log { max-height: 50vh; }
  &:not(.open) :is(.chat-log, .chat-status) { display: none; }
  /* A new answer from kakka while folded: the arrow turns coral. */
  &:not(.open):has(.chat-unread) .ask-toggle { background: var(--coral); color: var(--on-color); }
}
body[data-dress="balanced"] .inbox:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
body[data-dress="balanced"] .inbox-title { grid-column: 1 / -1; }
.balanced-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin: 0 20px 12px; }
.work { flex: 999 1 560px; min-width: 0; }
.side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.work h2, .ask h2 { margin: 0 0 8px; font-size: 18px; font-weight: 900; }
.work-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; align-items: start; }
.work-column, .side-box { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; background: var(--column); border-radius: 16px; min-width: 0; }
.work-column h3, .side-box h3 { margin: 0; font-size: 15px; font-weight: 800; }
.work-column .count { color: var(--muted); font-weight: 400; }
.work-ticket { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.work-ticket .progress { align-self: stretch; margin-top: 0; }
.work-open { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 0; font: inherit; font-size: 14px; color: var(--text); text-align: left; background: none; border: 0; cursor: pointer; }
.side-box p { margin: 0; }
.side-box .cycle-steps { margin: 0; }
.side-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ask { margin: 0 20px 20px; }
.ask .write-area { flex-wrap: wrap; }
@media (max-width: 700px) {
  .balanced-row, .ask { margin-inline: 16px; }
}

/* The look of the approved mockups (28/11/2026) for Simple, Balanced and All; Today keeps the board as it was.
   One card look: white, 14px corners, a soft lift, no border. Waiting-for-you cards get a 6px edge by kind. */
body:is([data-dress="simple"], [data-dress="balanced"], [data-dress="all"]) {
  & .topbar-brand { margin: 0; font-size: 26px; }
  & .topbar-brand img { width: 34px; height: 34px; }
  & .inbox-count { margin-left: 4px; padding: 2px 10px; border-radius: 999px; background: var(--coral); color: var(--on-color); font-size: 16px; }
  & .inbox-count::before, & .inbox-count::after { content: none; }
  /* A card's heading is a small label; its one line is the big words; its buttons show while it is folded,
     the answer box only once it is open. */
  & .inbox-head { font-size: 13px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
  & .inbox-head strong { color: var(--muted); }
  & .inbox-brief { flex: 1 1 100%; margin: 6px 0 0; font-size: 18px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text); }
  & .inbox-item.folded:not(.sent) > :is(.inbox-options, .inbox-controls) { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
  & .inbox-item.folded .inbox-controls > .write-area, & .inbox-item.deploy.folded .inbox-options > :not(.primary) { display: none; }
  & .inbox-button { font-size: 16px; }
  /* kakka's chat as speech bubbles: kakka's on the left in cream, his own on the right in the accent, never
     the ink of an answer button (the owner, 03/12/2026: "my chat in a different color from the buttons"). */
  & :is(.chat-msg, .talk .chat-empty) { align-self: flex-start; max-width: 85%; padding: 12px 16px; border-radius: 14px 14px 14px 4px; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.45; }
  & .chat-msg.owner { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--accent); color: var(--surface); }
  & .chat-who { font-size: 12px; }
  & .chat-log { gap: 12px; }
  /* The write box: a round field with a 2px edge, Send in sun beside it. */
  & :is(.chat-form textarea, .write-area .inbox-input) { field-sizing: content; height: auto; min-height: 48px; max-height: 160px; padding: 12px 20px; border: 2px solid var(--border); border-radius: 24px; font-size: 16px; resize: none; }
  & .project-select { max-width: 240px; }
  /* The search and the waiting pulldown in the page's own look: white pills, no edge, bold, a soft lift. */
  & :is(#search, .inbox-lanes) { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: var(--lift); font-size: 15px; font-weight: 700; color: var(--text); }
  & #search { width: 200px; }
  & .inbox-lanes { cursor: pointer; }
  & .found { margin: 0 0 12px; }
  & :is(.chat-form, .write-area) { align-items: center; gap: 10px; }
  & :is(.chat-form, .write-area) .inbox-button.primary { background: var(--sun); color: var(--on-color); }
  & main a { font-weight: 700; }
  & .project-select { flex: 0 1 auto; border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 700; }
  & .text-button { min-height: 44px; padding: 0 18px; border: 0; font-weight: 800; }
  & .dress-switch button { min-height: 36px; }
  & #open-count { white-space: nowrap; }
  & .text-button:hover { background: var(--ink); color: var(--bg); }
  & main a { color: var(--accent); }
  & :is(.status-line, .inbox-item, .work-column, .side-box, .talk, .ask) { background: var(--surface); border: 0; border-radius: 14px; box-shadow: var(--lift); }
  & :is(.inbox-item, .work-column, .side-box, .talk) { padding: 16px 18px; }
  & .ask { padding: 12px; }
  /* The page scrolls instead of the list, so no card's shadow is cut and every card lines up with the others. */
  & .inbox { max-height: none; overflow: visible; padding: 0 0 12px; background: none; border: 0; }
  & .inbox-head { min-height: 44px; }
  & .inbox-options { display: flex; flex-wrap: wrap; gap: 8px; }
  & .inbox-item { border-top: 6px solid var(--border); }
  & .inbox-item.question { border-top-color: var(--sun); }
  & .inbox-item.decide { border-top-color: var(--coral); }
  & .inbox-item.deploy { border-top-color: var(--sky); }
  & .inbox-item.deploy .inbox-button.primary { background: var(--sky); border-color: var(--sky); color: var(--on-color); }
  & .inbox-button { min-height: 44px; padding: 0 18px; border: 0; font-weight: 800; }
  & .inbox-button:not(.danger) { background: var(--bg); }
  & .inbox-button:is(.primary, .lead) { background: var(--ink); color: var(--bg); }
  & .work-column > .inbox-button { min-height: 0; padding: 0; background: none; color: var(--accent); }
  & :is(.inbox-title-text, .work h2, .ask h2, .talk h2) { margin: 0; font-size: 22px; font-weight: 900; color: var(--text); }
  & :is(.work-column h3, .side-box h3) { font-size: 13px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
  & .work-ticket { padding: 12px 14px; background: var(--bg); border: 0; border-radius: 12px; }
  & .work-ticket .tag.lane { padding: 1px 9px; border-radius: 999px; font-size: 13px; font-weight: 800; }
  /* The step bar as a thin bar: the same segments, no letters, the sun for the steps done and the one in hand. */
  & .work-ticket .progress { gap: 3px; }
  & .work-ticket .seg { height: 6px; border: 0; border-radius: 6px; font-size: 0; background: var(--border); }
  & .work-ticket :is(.seg-done, .seg-current) { background: var(--sun); }
  & .status-line { gap: 10px 18px; padding: 14px 20px; font-size: 16px; }
  & .status-line > :not(:first-child) { color: var(--muted); }
  & .status-line > :first-child::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; background: var(--good); }
  & .status-line > .problem::before { background: var(--urgent); }
}
body:is([data-dress="simple"], [data-dress="balanced"], [data-dress="all"]) .dress-switch { margin-left: auto; }
/* Balanced: a green dot for a helper at work, grey for a free one; the week's money in big figures; the ask
   box one round line. */
body[data-dress="balanced"] {
  & .side-line::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
  & .side-line.busy::before { background: var(--good); }
  & .side-money p { font-size: 28px; font-weight: 900; }
  & .work-open strong { font-size: 13px; font-weight: 800; color: var(--muted); }
  & .work-open span { font-weight: 700; }
  & .ask h2 { position: absolute; left: -9999px; }
}
/* All: the helpers on top, then the check and the money, then the tickets, then Waiting for you. Too narrow for
   Waiting for you beside the tickets, it goes under them and the columns stand 3 cards high (STACKED_PAGE in
   board.js); on a wide screen it makes a column on the right as tall as the check and the tickets together,
   scrolling inside (the owner, 02/12/2026). The widths match ALL_STACKED in board.js. Tickets and
   waiting cards are cream tiles in white boxes. */
@media (width > 700px) {
  body[data-dress="all"] main {
    display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content;
    align-content: start; column-gap: 16px; padding: 0 20px 20px;
    & > * { grid-column: 1 / -1; margin-inline: 0; }
    & > .all-row { order: 1; margin-bottom: 16px; }
    & > .board { order: 2; height: auto; margin-bottom: 16px; padding: 0; }
    & > .inbox { order: 3; }
    & > .page-footer { order: 4; }
    & > .lanes { padding: 0 0 12px; }
  }
}
@media (width > 1400px) {
  body[data-dress="all"] main {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    /* dense: Waiting for you goes back up to the check's row. Its own size counts for nothing (contain), so the
       rows keep the check's and the tickets' heights and it scrolls within them. */
    grid-auto-flow: row dense;
    & > :is(.all-row, .board) { grid-column: 1; }
    /* --board-fill: down to the window's bottom (fitBoard in board.js); under a tall check, 60vh still. */
    & > .board { height: max(60vh, var(--board-fill, 75vh)); margin-bottom: 0; }
    & > .inbox { grid-column: 2; grid-row: span 2; contain: size; overflow-y: auto; }
  }
}
/* A card opened in Waiting for you widens the column, to read it and answer (the owner, 03/12/2026: "usually I
   have to interact with it"). Wider than 1900px, the width of .inbox below says so. */
@media (1400px < width <= 1900px) {
  /* A status line that never folds ("K3 is working on it", data-key working-…) is no open card. */
  body[data-dress="all"] main:has(> .inbox .inbox-item:not(.folded, [data-key^="working-"])) { grid-template-columns: minmax(0, 1fr) minmax(300px, 45vw); }
}
/* Wide enough for all on one line (the owner, 02/12/2026): the tickets, the check, the money, Waiting for you. */
@media (width > 1900px) {
  body[data-dress="all"] main {
    /* auto: a card that is not there (no check yet, nothing waiting) leaves no empty column. */
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    & > .all-row { display: contents; }
    & > .all-row > .all-card { align-self: start; }
    & > .board { grid-column: 1; }
    & > .all-row > #check { grid-column: 2; width: 280px; }
    & > .all-row > #money { grid-column: 3; width: 300px; }
    & > .inbox { grid-column: 4; grid-row: auto; width: 320px; height: max(60vh, var(--board-fill, 75vh)); }
    & > .inbox:has(.inbox-item:not(.folded, [data-key^="working-"])) { width: min(960px, 40vw); }
  }
}
body[data-dress="all"] {
  & .column { flex: 1 1 220px; min-width: 200px; background: var(--surface); border-radius: 14px; box-shadow: var(--lift); }
  & .column-head { font-size: 12px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
  & .card { padding: 8px 10px; background: var(--bg); border: 0; border-radius: 10px; font-size: 14px; overflow: hidden; flex-shrink: 0; }
  & .card .progress { max-width: 100%; }
  /* A narrow tile: its number and tags on a line above the title, the title in bold. */
  & .card-top { flex-direction: column-reverse; gap: 4px; }
  & :is(.card-side, .card-side .card-meta) { flex-direction: row; flex-wrap: wrap; align-items: center; }
  & .card-title { font-weight: 700; }
  & .lanes { align-items: start; }
  & .card:hover { box-shadow: 0 0 0 2px var(--ink); }
  & .inbox:not([hidden]) { padding: 12px 14px; background: var(--surface); border-radius: 14px; box-shadow: var(--lift); }
  & .inbox-title-text { font-size: 18px; }
  & .inbox-item { padding: 8px 10px; background: var(--bg); border-top: 0; border-radius: 10px; box-shadow: none; }
  & .inbox-head { font-size: 12px; }
  & .inbox-brief { font-size: 15px; }
  & .inbox-button { min-height: 36px; padding: 0 14px; font-size: 14px; }
  /* :where: no weight of its own, so the hover's sun below still lights a white button (the owner, 03/12/2026). */
  & .inbox-item .inbox-button:where(:not(.primary, .lead, .danger)) { background: var(--surface); }
}
/* Simple and Balanced read at 16px, as the mockups; the header of Simple spans wider than its column. */
body:is([data-dress="simple"], [data-dress="balanced"]) { font-size: 16px; }
body[data-dress="simple"] main > .topbar { max-width: max(1180px, 100%); }
body[data-dress="simple"] .talk { flex: none; }
body[data-dress="simple"] .talk .chat-log { max-height: 60vh; }

/* All: a helper that wrote to him, the check and the week's money above the columns, in the same card look. */
body[data-dress="all"] {
  & .lane-chip { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 14px; border: 0; border-radius: 12px; box-shadow: var(--lift); font-size: 13px; }
  & .lane-chip .progress { width: 100%; }
  & .lanes { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
  /* .squeezed: fitBoard in board.js gave its width to the columns. */
  & .all-card:is(:empty, .squeezed) { display: none; }
  & .all-row { align-items: flex-start; }
  & .all-row > .all-card { flex: 1 1 340px; min-width: 0; }
  & :is(.money, #check > .settings-card) { padding: 16px 18px; border: 0; border-radius: 14px; box-shadow: var(--lift); background: var(--surface); }
  & :is(.money h2, #check h2) { margin: 0 0 8px; font-size: 18px; font-weight: 900; color: var(--text); }
  & .money-row { display: flex; align-items: center; gap: 10px; min-height: 28px; font-size: 14px; }
  & .money-row > strong { flex: 0 0 190px; }
  & .money { container-type: inline-size; }
  & .money-head { margin: 12px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
  & .money-ticket { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 30px; padding: 4px 8px; margin-top: 4px; border: 0; border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
  & .money-ticket:hover { box-shadow: 0 0 0 2px var(--ink); }
  & .money-ticket > strong { flex: none; }
  & .money-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
  & .money-bar { flex: 1; height: 8px; border-radius: 8px; background: var(--tag-bg); }
  & .money-fill { display: block; height: 100%; border-radius: 8px; background: var(--coral); }
  /* A narrow card: the step and its amount on one line, the bar under them. */
  @container (width < 420px) {
    & .money-row { flex-wrap: wrap; row-gap: 2px; padding-bottom: 4px; }
    & .money-row > strong { flex: 1 1 0; }
    & .money-bar { order: 3; flex: 0 0 100%; }
  }
  @media (max-width: 700px) {
    & .lane-chip { min-height: 44px; }
  }
}

/* Every answer button changes colour under the pointer and darker still while pressed (the owner,
   30/11/2026: "when I hold on a button, it has to change colors"). Last in the file: a dress's own
   button background has the same weight and would win otherwise. */
body .inbox-button:not(:disabled):hover { background: var(--sun); border-color: var(--sun); color: var(--on-color); }
body .inbox-button:not(:disabled):active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
body .inbox-button.primary:not(:disabled):hover { background: var(--coral); border-color: var(--coral); }
