/* Hallmark · shape: app screen · genre: modern-minimal · theme: Coral (deal 1/3, seed kanban-collaboration-tool-small-3114·91876317·2026-11-30·r0)
 * nav: top bar, wordmark and the signed-in person · signature: the board itself, cotton cards sitting in grooves pressed into a felt desk · states: loading, empty, error, full, archived, dragging
 * axes: light/grotesk-sans/warm · posture: restrained · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V3 · weakest: V, an app screen keeps the category's familiar list-and-card layout on purpose; the material (grooves, stock, one light from the left) carries the difference */
/* Hallmark · answered: ui-ux-pro-max proposed teal and orange with Plus Jakarta Sans; the dealt Coral theme overrides it on palette and type, its checklist (44px targets, focus, reduced motion, 375 to 1440) is kept */
/* Hallmark · dismissed 11 · the 1px lift on cards, board tiles and card buttons is the Coral theme's own hover for stationery under one light, so each card here moving like paper is the material, not a template */
/* Hallmark · dismissed F4 · btn-card is the Coral theme's secondary letterpress card in cotton; the only filled primary per screen is btn-ink (Comment, Save, Add card) */
/* Hallmark · dismissed F1 · the straight quote is inside a card title imported from the team's Trello board (user data, Bio p'Fai), never in interface copy */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --topbar-h: 56px;
  --list-w: 17rem;
  --control-h: 36px;
  --l-green: oklch(72% 0.12 150); --l-yellow: oklch(86% 0.13 95); --l-orange: oklch(76% 0.14 60); --l-red: oklch(52% 0.17 27);
  --l-purple: oklch(50% 0.13 305); --l-blue: oklch(50% 0.12 250); --l-sky: oklch(78% 0.09 220); --l-lime: oklch(82% 0.15 125);
  --l-pink: oklch(76% 0.11 350); --l-black: oklch(33% 0.01 40);
  --backdrop: oklch(21% 0.012 38 / 0.5);
  --g-red: oklch(62.8% 0.2 29); --g-blue: oklch(62.3% 0.19 259); --g-yellow: oklch(84.5% 0.17 86); --g-green: oklch(62.7% 0.17 149);
}

body { min-height: 100dvh; display: flex; flex-direction: column; }
.skip { position: absolute; left: var(--space-xs); top: -100px; z-index: var(--z-toast); padding: var(--space-xs) var(--space-sm); background: var(--color-board); color: var(--color-board-type); border-radius: var(--radius-input); }
.skip:focus-visible { top: var(--space-xs); }
.muted { color: var(--color-muted); }
.fig { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; font-size: 0.8125rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.stack { display: grid; gap: var(--space-xs); }
.grow { flex: 1; min-width: 0; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.noscript { padding: var(--space-xl); }

/* ---------- controls ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: var(--control-h); padding: 0 var(--space-sm); border: 0; border-radius: var(--radius-stock);
  font-size: 0.9375rem; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.btn::before, .icon-btn::before { content: ""; position: absolute; inset: -4px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-ink { background: var(--color-board); color: var(--color-board-type); box-shadow: var(--cast-stock); }
.btn-ink:hover { background: var(--color-ink-2); }
.btn-card { background: var(--color-cotton); color: var(--color-print); box-shadow: var(--edge-stock), var(--cast-stock); }
.btn-quiet { background: transparent; color: var(--color-ink-2); }
.btn-quiet:hover, .btn-quiet[aria-pressed="true"] { background: var(--color-paper-3); }
@media (hover: hover) { .btn-card:hover { transform: translateY(-1px); box-shadow: var(--edge-stock), var(--cast-stock-lift); } }
.danger { color: var(--color-error); }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-input);
  background: transparent; color: var(--color-muted); cursor: pointer; list-style: none; transition: background-color var(--dur-micro) var(--ease-out);
}
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { background: var(--color-paper-3); color: var(--color-ink); }
.icon-btn:active { transform: translateY(1px); }
.link-btn { padding: 0; border: 0; background: none; color: var(--color-muted); font-size: 0.875rem; text-decoration: underline; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.18em; cursor: pointer; }
.link-btn:hover { color: var(--color-ink); text-decoration-color: var(--color-accent-2); }
a:hover { text-decoration-color: var(--color-accent-2); }

input:not([type=checkbox]):not([type=radio]), textarea, select {
  width: 100%; min-height: var(--control-h); padding: var(--space-2xs) var(--space-sm); border: 1px solid var(--color-muted); border-radius: var(--radius-input);
  background: var(--color-cotton); color: var(--color-ink); font-size: 1rem; outline: 2px solid transparent; outline-offset: -3px;
}
input:not([type=checkbox]):not([type=radio]), select { line-height: 1.25; }
input:not([type=checkbox]):not([type=radio]):hover, textarea:hover, select:hover { background: var(--color-paper); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: var(--color-focus); outline-offset: -3px; }
textarea { resize: vertical; line-height: 1.5; padding-block: var(--space-xs); }
input::placeholder, textarea::placeholder { color: var(--color-muted); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: var(--color-board); cursor: pointer; flex: none; }
label { font-size: 0.875rem; font-weight: 500; color: var(--color-ink-2); }
.form-error { color: var(--color-error); font-size: 0.9375rem; }
.inline-form { display: grid; gap: var(--space-xs); width: 100%; }

.skeleton { background: var(--color-paper-3); animation: breathe 1.4s var(--ease-in-out) infinite alternate; }
.skeleton-line { display: block; width: 8rem; height: 14px; border-radius: 4px; }
@keyframes breathe { from { opacity: 0.55; } to { opacity: 1; } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: var(--z-sticky-nav); display: flex; align-items: center; gap: var(--space-md);
  height: var(--topbar-h); padding: 0 var(--space-md); background: var(--color-paper-2); border-bottom: 1px solid var(--color-rule);
}
.wordmark { font-weight: 600; font-size: 1.125rem; letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; }
.wordmark-lg { font-size: var(--text-xl); }
.me { margin-left: auto; display: flex; align-items: center; gap: var(--space-xs); }
.me-name { font-size: 0.9375rem; color: var(--color-ink-2); }

.avatar {
  display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: var(--radius-pill);
  background: var(--color-paper-3); color: var(--color-ink-2); font-size: 0.6875rem; font-weight: 600; box-shadow: 0 0 0 2px var(--color-cotton);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 24px; height: 24px; }
.avatar-md { width: 32px; height: 32px; font-size: 0.75rem; }
.avatars { display: inline-flex; }
.avatars .avatar + .avatar { margin-left: calc(-1 * var(--space-2xs)); }
.avatars-lg { gap: var(--space-2xs); }
.avatars-lg .avatar + .avatar { margin-left: 0; }

/* ---------- sign in ---------- */
main.login {
  flex: 1; display: grid; place-items: center; padding: var(--space-lg) var(--space-md);
  background-color: var(--color-desk); background-image: radial-gradient(90% 120% at 0% 30%, var(--color-cotton), transparent 62%), var(--tex-desk);
}
.stock { background-color: var(--color-cotton); color: var(--color-print); box-shadow: var(--edge-stock), var(--cast-stock); }
.login-card { width: 100%; max-width: 27rem; display: grid; gap: var(--space-md); padding: var(--space-xl); border-radius: var(--radius-stock); background-image: linear-gradient(100deg, var(--color-cotton), transparent 45%), var(--tex-cotton); }
.login-card h1 { font-size: var(--text-2xl); }
.btn-google { min-height: 44px; justify-self: start; padding-left: var(--space-2xs); }
.g-logo { width: 32px; height: 32px; padding: var(--space-xs); border-radius: 6px; background: var(--color-cotton); }
.g-red { fill: var(--g-red); } .g-blue { fill: var(--g-blue); } .g-yellow { fill: var(--g-yellow); } .g-green { fill: var(--g-green); }

/* ---------- pages (home, errors) ---------- */
main.page { width: 100%; max-width: 72rem; margin-inline: auto; padding: var(--space-xl) var(--space-lg); display: grid; gap: var(--space-lg); align-content: start; }
.board-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.tile { display: grid; align-content: space-between; gap: var(--space-sm); min-height: 7.5rem; padding: var(--space-md); border-radius: var(--radius-stock); text-decoration: none; transition: transform var(--dur-short) var(--ease-out); }
.tile h2 { font-size: var(--text-lg); }
@media (hover: hover) { a.tile:hover { transform: translateY(-2px); box-shadow: var(--edge-stock), var(--cast-stock-lift); } }
.tile-new { background: var(--color-paper-2); box-shadow: var(--press-groove); align-content: start; }
.tile-new .btn { justify-self: start; }
.empty-line { max-width: 52ch; }
.state-block { display: grid; gap: var(--space-sm); max-width: 36rem; padding-top: var(--space-xl); }

/* ---------- board ---------- */
main.board-view { flex: 1; display: flex; flex-direction: column; min-height: 0; height: calc(100dvh - var(--topbar-h)); }
.board-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); padding: var(--space-sm) var(--space-md); background: var(--color-paper); border-bottom: 1px solid var(--color-rule); }
.board-bar h1 { font-size: var(--text-xl); max-width: none; }
.board-name-form { max-width: 26rem; }
.title-btn { min-height: 32px; padding: var(--space-3xs) var(--space-xs); margin: calc(-1 * var(--space-3xs)) calc(-1 * var(--space-xs)); border: 0; border-radius: var(--radius-input); background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.title-btn:hover { background: var(--color-paper-3); }
.board-tools { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }

.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: var(--z-dropdown); min-width: 12rem; padding: var(--space-2xs); border-radius: var(--radius-stock); display: grid; }
.menu-item { display: flex; align-items: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-sm); border: 0; border-radius: var(--radius-input); background: none; color: var(--color-ink); font-size: 0.9375rem; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--color-paper-2); }
.menu-item.danger { color: var(--color-error); }

.archive { padding: var(--space-md); background: var(--color-paper-2); border-bottom: 1px solid var(--color-rule); max-height: 40vh; overflow-y: auto; display: grid; gap: var(--space-sm); }
.archive h2 { font-size: var(--text-lg); }
.archive h3 { font-size: 0.9375rem; color: var(--color-ink-2); margin-bottom: var(--space-2xs); }
.archive-rows { list-style: none; margin: 0; padding: 0; }
.archive-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); padding: var(--space-2xs) 0; border-top: 1px solid var(--color-rule); }
.archive-name { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }

/* board-body holds the lists and, over their right edge, the filter panel */
.board-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.canvas {
  /* position: relative keeps absolutely positioned screen-reader text inside the scroller, or it widens the phone layout */
  position: relative; flex: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; padding: var(--space-md);
  background-color: var(--color-desk); background-image: radial-gradient(90% 120% at 0% 30%, var(--color-cotton), transparent 62%), var(--tex-desk);
  scroll-snap-type: x proximity;
}
.lists { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; gap: var(--space-sm); height: 100%; }
.list {
  flex: none; width: var(--list-w); max-height: 100%; display: flex; flex-direction: column; scroll-snap-align: start;
  border-radius: 10px; background: var(--color-paper-2); box-shadow: var(--press-groove);
}
.list-head { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-xs) var(--space-2xs) var(--space-sm); cursor: grab; }
.list-head :is(h2, h3) { flex: 1; min-width: 0; font-size: 0.9375rem; letter-spacing: -0.01em; line-height: 1.3; }
.list-head .title-btn { width: 100%; overflow-wrap: anywhere; }
.list-head .inline-form { flex: 1; }
.count { color: var(--color-muted); }
.cards { position: relative; list-style: none; margin: 0; padding: var(--space-2xs) var(--space-xs); min-height: var(--space-xs); overflow-y: auto; display: grid; gap: var(--space-xs); align-content: start; }
.cards > li { min-width: 0; }
.card {
  position: relative; display: grid; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-card);
  background: var(--color-cotton); color: var(--color-print); box-shadow: var(--edge-stock), var(--cast-stock);
  transition: transform var(--dur-micro) var(--ease-out);
}
@media (hover: hover) { .card:hover { transform: translateY(-1px); box-shadow: var(--edge-stock), var(--cast-stock-lift); } }
/* The card's link covers the whole card; the focus ring is drawn on that cover so it outlines the card. */
.card-link { display: grid; gap: var(--space-xs); color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: 2px solid transparent; }
.card-link:focus-visible::after { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.card-title { font-size: 0.9375rem; line-height: 1.35; overflow-wrap: anywhere; }
.card-title .icon { display: inline-block; width: 16px; height: 16px; margin-right: var(--space-2xs); vertical-align: -3px; color: var(--color-success); stroke-width: 2.25; }
.card-labels { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.chip { display: inline-block; min-width: 2.5rem; min-height: 8px; padding: 0 var(--space-xs); border-radius: 4px; font-size: 0.75rem; font-weight: 500; line-height: 16px; color: var(--color-ink); }
.chip:empty, .chip:has(> .visually-hidden:only-child) { height: 8px; line-height: 8px; }
.chip-lg { min-height: 28px; line-height: 28px; padding: 0 var(--space-sm); font-size: 0.875rem; min-width: 3rem; }
.l-green { background: var(--l-green); } .l-yellow { background: var(--l-yellow); } .l-orange { background: var(--l-orange); }
.l-red { background: var(--l-red); color: var(--color-cotton); } .l-purple { background: var(--l-purple); color: var(--color-cotton); }
.l-blue { background: var(--l-blue); color: var(--color-cotton); } .l-sky { background: var(--l-sky); } .l-lime { background: var(--l-lime); }
.l-pink { background: var(--l-pink); } .l-black { background: var(--l-black); color: var(--color-cotton); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3xs) var(--space-xs); color: var(--color-muted); }
.badge { display: inline-flex; align-items: center; gap: var(--space-2xs); font-size: 0.8125rem; line-height: 20px; }
.badge .icon { width: 15px; height: 15px; }
.badge-complete { color: var(--color-success); }
.due { padding: 0 var(--space-2xs); margin-left: calc(-1 * var(--space-2xs)); border-radius: 4px; }
.due-btn { position: relative; z-index: 1; border: 0; background: none; color: inherit; cursor: pointer; }
.due-btn::before { content: ""; position: absolute; inset: -6px -4px; }
@media (hover: hover) { .due-btn:hover, .due-edit:hover { text-decoration: underline; text-underline-offset: 0.15em; } }
.due-overdue { background: color-mix(in oklab, var(--color-error) 14%, var(--color-cotton)); color: var(--color-error); }
.due-soon { box-shadow: inset 0 0 0 1px var(--color-ink-2); color: var(--color-ink); }
.due-done { background: color-mix(in oklab, var(--color-success) 14%, var(--color-cotton)); color: var(--color-success); }
.list-add { padding: var(--space-2xs) var(--space-xs) var(--space-xs); }
.add-card {
  position: relative; display: flex; align-items: center; gap: var(--space-xs); width: 100%; min-height: var(--control-h); padding: 0 var(--space-xs);
  border: 0; border-radius: var(--radius-input); background: none; color: var(--color-ink-2); font-size: 0.9375rem; text-align: left; cursor: pointer;
}
.add-card:hover { background: var(--color-paper-3); color: var(--color-ink); }
.add-list { flex: none; width: var(--list-w); padding: var(--space-xs); border-radius: 10px; background: color-mix(in oklab, var(--color-paper-2) 70%, transparent); box-shadow: var(--press-groove); }
.composer textarea { min-height: 4.5rem; box-shadow: var(--edge-stock); border-color: var(--color-rule-2); }

/* sections: the board split by person, one row of the same lists each, ruled off like the paper sketch */
.canvas-sections { overflow: auto; scroll-snap-type: none; }
.sections { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); width: max-content; min-width: 100%; }
.section + .section { padding-top: var(--space-md); border-top: 1px solid var(--color-rule-2); }
.section-head { position: sticky; left: 0; display: flex; align-items: center; gap: var(--space-3xs); width: max-content; margin-bottom: var(--space-xs); }
.section-head h2 { margin-right: var(--space-xs); font-size: var(--text-lg); }
.section .lists { height: auto; }
.section .list { max-height: none; }
.section .list-head { cursor: auto; }
.section .list-add { padding-top: 0; }
.section .cards { scrollbar-width: thin; }

.is-dragging { opacity: 0.35; }
.drop-ghost { border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-ink) 8%, transparent); box-shadow: var(--press-groove); }
.list.drop-ghost { width: var(--list-w); align-self: stretch; }

/* ---------- card dialog ---------- */
.card-dialog {
  position: fixed; inset: 0; margin: auto; width: min(60rem, calc(100% - 2rem)); height: fit-content; max-height: calc(100dvh - 3rem);
  padding: 0; border: 0; border-radius: 12px; background: var(--color-paper); color: var(--color-ink);
  box-shadow: var(--edge-stock), 18px 16px 40px -12px oklch(var(--deep) / 0.35); overflow: hidden;
}
.card-dialog::backdrop { background: var(--backdrop); }
.cd { max-height: calc(100dvh - 3rem); overflow-y: auto; overscroll-behavior: contain; }
.cd-head { position: relative; display: grid; gap: var(--space-2xs); padding: var(--space-lg) var(--space-lg) var(--space-sm); padding-right: 15rem; }
.cd-title { max-width: none; font-size: var(--text-xl); line-height: 1.2; }
.cd-title-row { display: flex; align-items: center; gap: var(--space-sm); }
.complete-toggle {
  position: relative; display: grid; place-items: center; flex: none; width: 24px; height: 24px; padding: 0;
  border: 2px solid var(--color-muted); border-radius: var(--radius-pill); background: none; color: var(--color-cotton); cursor: pointer;
}
.complete-toggle::before { content: ""; position: absolute; inset: -10px; }
.complete-toggle:hover { border-color: var(--color-ink); }
.complete-toggle[aria-pressed="true"] { border-color: var(--color-success); background: var(--color-success); }
.complete-toggle .icon { width: 16px; height: 16px; stroke-width: 2.5; }
.cd-title .title-btn { overflow-wrap: anywhere; }
.cd-title-form textarea { font-size: var(--text-lg); font-weight: 600; }
.cd-where { font-size: 0.9375rem; }
.cd-head-actions { position: absolute; top: var(--space-md); right: var(--space-md); display: flex; align-items: center; gap: var(--space-2xs); }
.archived-banner { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); margin-bottom: var(--space-xs); border-radius: var(--radius-input); background: var(--color-paper-3); color: var(--color-ink); font-weight: 500; font-size: 0.9375rem; }
.cd-body { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: var(--space-lg); padding: var(--space-sm) var(--space-lg) var(--space-lg); }
.cd-main { display: grid; gap: var(--space-lg); align-content: start; min-width: 0; }
.cd-section { display: grid; gap: var(--space-sm); }
.cd-section > .btn, .cd-section > .add-card:not(.desc-empty) { justify-self: start; width: auto; }
.cd-section h3, .checklist-head h3 { display: flex; align-items: center; gap: var(--space-xs); font-size: 1rem; letter-spacing: -0.01em; }
.cd-meta { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); }
.cd-meta:empty { display: none; }
.meta-group { display: grid; gap: var(--space-2xs); align-content: start; }
.meta-group h3 { max-width: none; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; color: var(--color-muted); }
.due-pill { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: var(--control-h); padding-left: var(--space-sm); border-radius: var(--radius-input); background: var(--color-paper-2); color: var(--color-ink); font-size: 0.9375rem; }
.due-edit { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: var(--control-h); padding: 0 var(--space-sm) 0 var(--space-2xs); border: 0; border-radius: var(--radius-input); background: none; color: inherit; cursor: pointer; }
.due-pill.due-overdue { background: color-mix(in oklab, var(--color-error) 14%, var(--color-paper)); }
.due-pill.due-done { background: color-mix(in oklab, var(--color-success) 14%, var(--color-paper)); }
.due-word { font-weight: 600; font-size: 0.8125rem; }
.desc { display: grid; gap: var(--space-xs); justify-items: start; }
.desc-text, .comment-body { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 68ch; line-height: 1.6; }
.desc-empty { min-height: 3.5rem; background: var(--color-paper-2); color: var(--color-muted); }
.checklist-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.progress { display: flex; align-items: center; gap: var(--space-sm); color: var(--color-muted); }
.progress .fig { width: 2.75rem; }
progress { flex: 1; height: 8px; appearance: none; border: 0; border-radius: 4px; background: var(--color-paper-3); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--color-paper-3); }
progress::-webkit-progress-value { background: var(--color-ink-2); }
progress::-moz-progress-bar { background: var(--color-ink-2); }
.items { list-style: none; margin: 0; padding: 0; display: grid; }
.items li { display: flex; align-items: center; gap: var(--space-xs); border-radius: var(--radius-input); }
.items li:hover { background: var(--color-paper-2); }
.items label { flex: 1; display: flex; align-items: flex-start; gap: var(--space-sm); padding: var(--space-xs); font-size: 0.9375rem; font-weight: 400; color: var(--color-ink); cursor: pointer; }
.items label input { margin-top: var(--space-3xs); }
.items .is-done label span { color: var(--color-muted); text-decoration: line-through; text-decoration-color: var(--color-rule-2); }
.items .icon-btn { opacity: 0; }
.items li:hover .icon-btn, .items .icon-btn:focus-visible { opacity: 1; }
@media (hover: none) { .items .icon-btn { opacity: 1; } }
.links { list-style: none; margin: 0; padding: 0; display: grid; }
.links li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-sm); padding: var(--space-2xs) 0; border-top: 1px solid var(--color-rule); }
.links a { overflow-wrap: anywhere; font-weight: 500; }
.links .icon-btn { margin-left: auto; }
.comment-form { display: flex; gap: var(--space-sm); align-items: flex-start; }
.comment-form .grow { display: grid; gap: var(--space-xs); justify-items: start; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); }
.feed-comment { display: flex; gap: var(--space-sm); }
.feed-comment .grow { display: grid; gap: var(--space-2xs); }
.feed-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs); font-size: 0.9375rem; }
.feed time { font-size: 0.8125rem; color: var(--color-muted); }
.comment-body { padding: var(--space-xs) var(--space-sm); border-left: 2px solid var(--color-rule-2); background: var(--color-cotton); border-radius: 0 var(--radius-input) var(--radius-input) 0; }
.feed-activity { display: flex; gap: var(--space-sm); align-items: center; padding-left: var(--space-2xs); font-size: 0.9375rem; color: var(--color-ink-2); }
.feed-activity time { margin-left: var(--space-xs); }

.cd-side { display: grid; gap: var(--space-xs); align-content: start; }
.cd-side h3 { margin-top: var(--space-xs); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; color: var(--color-muted); }
.cd-side .btn { justify-content: flex-start; width: 100%; }
.picker > summary { list-style: none; justify-content: flex-start; }
.picker > summary::-webkit-details-marker { display: none; }
.picker[open] > summary { box-shadow: var(--press-groove); background: var(--color-paper-2); transform: none; }
.picker-body { display: grid; gap: var(--space-sm); padding: var(--space-sm) var(--space-2xs) var(--space-xs); }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3xs); max-height: 16rem; overflow-y: auto; }
.pick-list label { display: flex; align-items: center; gap: var(--space-xs); min-height: 36px; padding: 0 var(--space-2xs); border-radius: var(--radius-input); font-weight: 400; color: var(--color-ink); cursor: pointer; }
.pick-list label:hover { background: var(--color-paper-2); }
.label-row { display: flex; align-items: center; gap: var(--space-2xs); }
.label-row input.label-name { min-height: 32px; padding: var(--space-2xs) var(--space-xs); font-size: 0.875rem; }
.swatch { display: inline-block; width: 28px; height: 20px; border-radius: 4px; flex: none; }
.new-label fieldset { margin: 0 0 var(--space-xs); padding: 0; border: 0; }
.new-label legend { padding: 0; margin-bottom: var(--space-2xs); font-size: 0.875rem; font-weight: 500; color: var(--color-ink-2); }
.swatches { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.swatches label { position: relative; display: grid; cursor: pointer; }
.swatches input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; }
.swatches input:checked + .swatch { box-shadow: 0 0 0 2px var(--color-paper), 0 0 0 4px var(--color-ink); }
.swatches input:focus-visible + .swatch { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.new-label .row { flex-wrap: nowrap; }
.share-url { display: grid; gap: var(--space-2xs); margin-top: var(--space-sm); }

/* filter panel: a sheet over the right edge of the lists */
.count-pill { min-width: 20px; padding: 0 var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-board); color: var(--color-board-type); font-size: 0.75rem; line-height: 20px; text-align: center; }
.filter-panel {
  position: absolute; z-index: var(--z-dropdown); top: var(--space-sm); right: var(--space-sm); bottom: var(--space-sm);
  width: min(21rem, calc(100% - 2 * var(--space-sm))); overflow-y: auto; overscroll-behavior: contain;
  display: grid; gap: var(--space-xs); align-content: start; padding: var(--space-md); border-radius: var(--radius-stock);
  box-shadow: var(--edge-stock), var(--cast-stock-lift);
}
.fp-head { display: flex; align-items: center; justify-content: space-between; }
.fp-head h2 { font-size: var(--text-lg); }
.fp-help { font-size: 0.8125rem; }
.fp-group { margin: var(--space-xs) 0 0; padding: 0; border: 0; min-width: 0; }
.fp-group legend { padding: 0; margin-bottom: var(--space-2xs); font-size: 0.875rem; font-weight: 600; color: var(--color-ink-2); }
.fp-opts { list-style: none; margin: 0; padding: 0; display: grid; }
.fp-opts .check { min-height: 36px; padding: 0 var(--space-2xs); border-radius: var(--radius-input); font-size: 0.9375rem; }
.fp-opts .check:hover { background: var(--color-paper-2); }
.fp-opts .check > .icon { color: var(--color-muted); }
.fp-overdue { display: inline-grid; color: var(--color-error); }
.fp-chip { flex: 1; min-height: 24px; line-height: 24px; }
.fp-clear { justify-self: start; margin-top: var(--space-xs); }

/* floating box: due date editor and person picker */
.pop { position: fixed; inset: auto; margin: 0; width: 17rem; max-height: min(26rem, calc(100dvh - 16px)); overflow-y: auto; padding: var(--space-md); border: 0; border-radius: var(--radius-stock); color: var(--color-ink); box-shadow: var(--edge-stock), var(--cast-stock-lift); }
.pop-title { font-weight: 600; margin-bottom: var(--space-xs); }
.check { display: flex; align-items: center; gap: var(--space-xs); font-weight: 400; color: var(--color-ink); cursor: pointer; }
.pick-btn { display: flex; align-items: center; gap: var(--space-xs); width: 100%; min-height: 36px; padding: 0 var(--space-2xs); border: 0; border-radius: var(--radius-input); background: none; color: var(--color-ink); font-size: 0.9375rem; text-align: left; cursor: pointer; }
.pick-btn:hover { background: var(--color-paper-2); }
.pick-btn[aria-pressed="true"] { background: var(--color-paper-3); font-weight: 500; }
.pick-btn .icon { margin-left: auto; }
.assignee { position: relative; display: inline-grid; padding: 0; border: 0; border-radius: var(--radius-pill); background: none; cursor: pointer; }
.assignee::before { content: ""; position: absolute; inset: -6px; }
.share-url input[readonly] { font-size: 0.8125rem; font-family: var(--font-outlier); }

.alert {
  position: fixed; left: 50%; bottom: var(--space-lg); z-index: var(--z-toast); transform: translateX(-50%);
  max-width: min(32rem, calc(100% - 2rem)); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-stock);
  background: var(--color-board); color: var(--color-board-type); box-shadow: var(--cast-stock-lift); font-size: 0.9375rem;
}

/* ---------- smaller screens ---------- */
@media (max-width: 60rem) {
  .cd-head { padding-right: var(--space-lg); padding-top: var(--space-2xl); }
  .cd-body { grid-template-columns: minmax(0, 1fr); }
  .cd-side { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
  .cd-side h3, .share-url { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .me-name { display: none; }
  .board-tools { margin-left: 0; width: 100%; }
  .card-dialog { width: 100%; max-width: 100%; max-height: 100dvh; border-radius: 0; }
  .cd { max-height: 100dvh; }
  .cd-head, .cd-body { padding-inline: var(--space-md); }
  main.page { padding: var(--space-lg) var(--space-md); }
  .btn, .add-card, .menu-item { min-height: 44px; }
}
@media (pointer: coarse) { .icon-btn { width: 40px; height: 40px; } .icon-btn::before { inset: -4px; } }
