/* ---------- theme ---------- */
:root, [data-theme="dark"] {
  --bg: #0b0d14;
  --bg-2: #10131d;
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .07);
  --glass-hi: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #eef0f7;
  --ink-2: #aab0c3;
  --muted: #6f7690;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(34, 211, 238, .12));
  --accent: #8b7cff;
  --on-accent: #ffffff;
  --you: #34d399;
  --wait: #a78bfa;
  --claude: #fb923c;
  --warn: #fbbf24;
  --hot: #fb7185;
  --s-idea: #c084fc;
  --s-plan: #60a5fa;
  --s-buy: #fbbf24;
  --s-build: #22d3ee;
  --s-test: #34d399;
  --s-done: #64748b;
  --glow-a: rgba(124, 58, 237, .28);
  --glow-b: rgba(34, 211, 238, .16);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
  --ring: rgba(139, 124, 255, .45);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f4f5fa;
  --bg-2: #eceef6;
  --glass: rgba(255, 255, 255, .72);
  --glass-2: rgba(255, 255, 255, .9);
  --glass-hi: #ffffff;
  --line: rgba(20, 24, 45, .08);
  --line-2: rgba(20, 24, 45, .14);
  --ink: #141729;
  --ink-2: #4b5170;
  --muted: #8a8fa8;
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, .14), rgba(34, 211, 238, .1));
  --accent: #6d5dfc;
  --you: #10b981;
  --wait: #8b5cf6;
  --claude: #f97316;
  --warn: #d97706;
  --hot: #e11d48;
  --s-idea: #a855f7;
  --s-plan: #3b82f6;
  --s-buy: #f59e0b;
  --s-build: #06b6d4;
  --s-test: #10b981;
  --s-done: #94a3b8;
  --glow-a: rgba(124, 58, 237, .16);
  --glow-b: rgba(34, 211, 238, .14);
  --shadow: 0 1px 2px rgba(20, 24, 45, .05), 0 10px 30px -14px rgba(20, 24, 45, .18);
  --shadow-lg: 0 40px 80px -24px rgba(20, 24, 45, .35), 0 0 0 1px rgba(20, 24, 45, .06);
  --ring: rgba(109, 93, 252, .35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); min-height: 100vh;
  font: 14px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; letter-spacing: -.01em;
  padding-bottom: env(safe-area-inset-bottom);
}
.glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(600px 400px at 8% -10%, var(--glow-a), transparent 70%),
    radial-gradient(700px 500px at 100% 0%, var(--glow-b), transparent 70%);
}
#app, .login { position: relative; z-index: 1; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
a { color: var(--accent); }

.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
input, textarea, select {
  background: var(--glass-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
select option { background: var(--bg-2); }
.primary {
  background: var(--grad); color: var(--on-accent); border-radius: 10px; padding: 9px 16px; font-weight: 600; font-size: 13.5px;
  box-shadow: 0 8px 24px -10px rgba(99, 102, 241, .8);
}
.primary:hover { filter: brightness(1.08); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.mark {
  width: 26px; height: 26px; border-radius: 8px; background: var(--grad); position: relative; flex: none;
  box-shadow: 0 6px 18px -6px rgba(124, 58, 237, .8);
}
.mark::after { content: ""; position: absolute; inset: 7px 6px; border-radius: 2px;
  background: linear-gradient(90deg, #fff 0 22%, transparent 22% 39%, rgba(255,255,255,.7) 39% 61%, transparent 61% 78%, rgba(255,255,255,.45) 78%); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { width: min(320px, 100%); display: grid; gap: 12px; padding: 26px; }
.login .brand { margin-bottom: 6px; }

/* ---------- header ---------- */
.top { max-width: 1640px; margin: 0 auto; padding: 12px 28px 10px; display: flex; align-items: center; gap: 22px; }
.top-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.tabs, .filters { display: flex; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.tabs button, .filters button { padding: 5px 13px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; transition: color .15s, background .15s; }
.tabs button:hover, .filters button:hover { color: var(--ink); }
.tabs button.on { background: var(--glass-hi); color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 2px 8px rgba(0,0,0,.2); }
.filters button.on { background: var(--grad-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.count { margin-left: 6px; font-size: 11px; padding: 0 6px; border-radius: 99px; background: var(--glass-2); color: var(--ink-2); }
.count:empty { display: none; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); display: grid; place-items: center; }
.icon-btn:hover { color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }

main { max-width: 1640px; margin: 0 auto; padding: 2px 28px 20px; }
.narrow { max-width: 780px; }

/* ---------- KPI row ---------- */
.kpis { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.kpi { padding: 11px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 5px; min-width: 0; position: relative; overflow: hidden; }
.kpi .k-label { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi .k-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.kpi .k-num { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .k-sub { font-size: 12.5px; color: var(--ink-2); }
.kpi .k-sub b { color: var(--ink); font-weight: 600; }
.kpi .k-sub .warn { color: var(--warn); }
.kpi.hero .k-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stack { display: flex; height: 8px; border-radius: 99px; overflow: hidden; gap: 2px; flex: 1; max-width: 340px; }
.stack span { display: block; height: 100%; border-radius: 2px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.ring { width: 44px; height: 44px; flex: none; margin-top: -14px; }
.ring circle { fill: none; stroke-width: 6; }
.ring .bg { stroke: var(--glass-hi); }
.ring .fg { stroke: url(#ringGrad); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .6s ease; }
.ring text { fill: var(--ink); font-size: 13px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }

/* ---------- focus row ---------- */
.focus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.tile { padding: 10px 14px 10px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; cursor: pointer; position: relative; min-width: 0; transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-1px); border-color: var(--line-2); }
.tile.pinned { background: linear-gradient(var(--glass), var(--glass)) padding-box, linear-gradient(135deg, rgba(139,92,246,.7), rgba(34,211,238,.5)) border-box; border: 1px solid transparent; }
.tile.pinned::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad-soft); opacity: .55; pointer-events: none; }
.tile.pinned .meta { color: var(--ink-2); }
.tile.pinned .act:not(.go) { background: rgba(10, 12, 24, .35); border-color: rgba(255, 255, 255, .18); color: var(--ink); }
[data-theme="light"] .tile.pinned .act:not(.go) { background: rgba(255, 255, 255, .8); border-color: var(--line-2); }
.tile.suggest { border-style: dashed; background: transparent; box-shadow: none; backdrop-filter: none; }
.tile > * { position: relative; z-index: 1; }
.tile .label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tile .label > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tile .pips { flex: none; }
.tile.pinned .label { color: var(--ink-2); }
.tile .name { font-weight: 650; font-size: 15px; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .next { color: var(--ink-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-height: 26px; }
.tile .foot .meta { flex: 1; min-width: 0; }
.pips { display: flex; gap: 3px; }
.pips span { width: 14px; height: 4px; border-radius: 99px; background: var(--glass-hi); }
.pips span.on { background: var(--c, var(--accent)); box-shadow: 0 0 8px -1px var(--c, var(--accent)); }
.act { font-size: 12.5px; font-weight: 550; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; background: var(--glass); transition: color .15s, border-color .15s; }
.act:hover { border-color: var(--ink-2); color: var(--ink); }
.act.go { background: var(--grad); border-color: transparent; color: var(--on-accent); box-shadow: 0 6px 18px -8px rgba(99, 102, 241, .9); }

/* one quiet line of signals */
.meta { display: flex; gap: 9px; align-items: center; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--line-2); }
.dot.you { background: var(--you); box-shadow: 0 0 8px var(--you); }
.dot.waiting { background: var(--wait); }
.dot.claude { background: var(--claude); }
.m-due { color: var(--hot); font-weight: 600; }
.m-quiet { color: var(--warn); }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)) minmax(130px, .8fr); gap: 12px; align-items: start; }
.col { padding: 8px; min-width: 0; min-height: 70px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); transition: background .15s, border-color .15s; }
.col.drop { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.col-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 5px 7px; }
.col-h b { font-size: 12.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.col-h b::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.col-h span { font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--glass-2); padding: 1px 7px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.col-h .over { color: var(--warn); }
.st-idea { --c: var(--s-idea); } .st-plan { --c: var(--s-plan); } .st-buy { --c: var(--s-buy); }
.st-build { --c: var(--s-build); } .st-test { --c: var(--s-test); } .st-done { --c: var(--s-done); }
.cards { display: flex; flex-direction: column; gap: 5px; }
.cards > * { flex: none; }
.card {
  background: var(--glass-2); border: 1px solid var(--line); border-radius: 11px; padding: 7px 10px 7px 12px;
  cursor: pointer; display: grid; gap: 4px; min-width: 0; position: relative; overflow: hidden;
  transition: border-color .15s, transform .15s, background .15s;
}
.card::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 0 2px 2px 0; background: var(--c); opacity: .75; }
.card:hover { border-color: var(--line-2); background: var(--glass-hi); transform: translateY(-1px); }
.card.pinned { border-color: rgba(139, 124, 255, .45); box-shadow: 0 0 0 1px rgba(139, 124, 255, .15), 0 8px 20px -12px rgba(124, 58, 237, .8); }
.card .name { font-weight: 550; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.dragging { opacity: .35; }

.done-list { display: flex; flex-direction: column; gap: 1px; }
.done-list > * { flex: none; }
.done-list button { display: block; width: 100%; text-align: left; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); padding: 4px 7px; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done-list button::before { content: "✓"; color: var(--s-test); margin-right: 7px; font-size: 11px; }
.done-list button:hover { background: var(--glass-2); color: var(--ink); }
.done-list .more { color: var(--accent); font-size: 12px; font-weight: 550; margin-top: 2px; }
.done-list .more::before { content: none; }

.parked { margin-top: 12px; color: var(--muted); font-size: 13px; }
.parked summary { cursor: pointer; width: max-content; }
.mini-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mini-list button { font-size: 12.5px; border: 1px solid var(--line); background: var(--glass); border-radius: 8px; padding: 3px 9px; color: var(--ink-2); }

/* ---------- buy ---------- */
.buy-intro { margin: 4px 0 16px; color: var(--ink-2); }
.store { margin-bottom: 12px; overflow: hidden; }
.store-h { display: flex; justify-content: space-between; padding: 11px 16px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.store-h span:last-child { color: var(--ink); font-size: 14px; letter-spacing: -.01em; text-transform: none; }
.buy-item { padding: 12px 16px; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.buy-item:first-of-type { border-top: 0; }
.buy-item .name { font-weight: 600; cursor: pointer; }
.buy-item .next { font-size: 13px; color: var(--ink-2); }
.row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pill { font-size: 12.5px; text-decoration: none; border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 8px; color: var(--ink-2); background: var(--glass); }
.pill:hover { color: var(--ink); border-color: var(--ink-2); }

/* ---------- ideas ---------- */
.idea-form { display: grid; gap: 10px; padding: 16px; }
.idea-form .primary { justify-self: start; }
.hint { color: var(--muted); font-size: 13px; }
.idea { padding: 13px 16px; margin-bottom: 10px; display: grid; gap: 6px; }
.idea .note { font-size: 13px; color: var(--ink-2); white-space: pre-wrap; }
.idea .when { font-size: 12px; color: var(--muted); margin-right: auto; }

/* ---------- detail view ---------- */
dialog {
  border: 0; padding: 0; border-radius: 22px; color: var(--ink);
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  width: min(1000px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 48px);
  box-shadow: var(--shadow-lg); outline: none; overflow: auto;
}
dialog::backdrop { background: rgba(5, 6, 12, .55); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .18s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.sheet-h { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); position: relative; }
.sheet-h::before { content: ""; position: absolute; left: 24px; top: 0; width: 64px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c, var(--grad)); }
.sheet-h h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.025em; }
.sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.x { width: 32px; height: 32px; border-radius: 10px; color: var(--muted); font-size: 20px; line-height: 1; flex: none; }
.x:hover { background: var(--glass-2); color: var(--ink); }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.sheet-main { padding: 18px 24px 22px; display: grid; gap: 18px; align-content: start; }
.sheet-side { padding: 18px 20px 22px; border-left: 1px solid var(--line); background: var(--glass); display: grid; gap: 14px; align-content: start; }
.block h3 { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 7px; }
.block p { margin: 0; font-size: 13.5px; }
.block ul { margin: 0; padding-left: 16px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.block li::marker { color: var(--accent); }
.block li, .block p { overflow-wrap: anywhere; }
details.block summary { font-size: 12.5px; color: var(--muted); cursor: pointer; width: max-content; }
details.block[open] summary { margin-bottom: 7px; }
.status-line { display: flex; align-items: center; gap: 10px; }

.seg { display: flex; background: var(--glass); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { flex: 1; padding: 6px 4px; border-radius: 8px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--glass-hi); color: var(--ink); font-weight: 600; box-shadow: 0 2px 10px -4px rgba(0,0,0,.5), inset 0 0 0 1px var(--line-2); }
.seg.stages button.on { background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); color: var(--ink); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fields label { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); display: grid; gap: 6px; }
.fields input, .fields select { padding: 7px 9px; font-size: 13.5px; text-transform: none; letter-spacing: normal; font-weight: 400; }
.fields .wide { grid-column: 1 / -1; }
.side-actions { display: grid; gap: 8px; margin-top: 2px; }
.side-actions .primary { width: 100%; padding: 10px; }
.side-actions .row .act { flex: 1; text-align: center; padding: 7px; }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--glass-hi); color: var(--ink); border: 1px solid var(--line-2); padding: 9px 16px; border-radius: 12px; font-size: 13px; z-index: 10;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); max-width: calc(100vw - 32px); box-shadow: var(--shadow-lg);
}

/* ---------- laptop/desktop: the board is an app screen that never scrolls ----------
   Columns stretch to the bottom of the window; a column with more cards than fit scrolls inside itself. */
@media (min-width: 761px) {
  html, body { height: 100%; overflow: hidden; }
  #app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
  .top { flex: none; width: 100%; }
  main { flex: 1; min-height: 0; width: 100%; overflow-y: auto; padding-bottom: 24px; }
  main:has(#view-board:not([hidden])) { overflow: hidden; display: flex; flex-direction: column; }
  #view-board { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .kpis, .focus, .parked { flex: none; }
  .board { flex: 1; min-height: 0; align-items: stretch; }
  .col { display: flex; flex-direction: column; min-height: 0; }
  .col-h { flex: none; }
  .cards, .done-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; margin-right: -4px; padding-right: 4px; }
  .cards::-webkit-scrollbar, .done-list::-webkit-scrollbar { width: 6px; }
  .cards::-webkit-scrollbar-thumb, .done-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
  .parked { margin-top: 10px; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .kpi .k-sub { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .legend { gap: 8px; }
}
@media (max-width: 900px) and (min-width: 761px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .top { flex-wrap: wrap; gap: 12px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .top { padding: 12px 16px 8px; gap: 10px; }
  .top-right { width: 100%; margin: 0; justify-content: space-between; }
  .tabs { margin-left: auto; }
  .tabs button, .filters button { padding: 5px 10px; }
  main { padding: 4px 16px 28px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 10px 12px; gap: 4px; }
  .kpi.hero { grid-column: 1 / -1; }
  .kpi .k-num { font-size: 22px; }
  .kpi:not(.hero) .k-sub, .kpi .ring { display: none; }
  .kpi .k-label { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .focus { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84vw; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 12px; padding: 0 16px 4px; scroll-padding: 16px; scrollbar-width: none; }
  .tile { scroll-snap-align: start; }
  .board {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78vw;
    overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 16px; scrollbar-width: none;
  }
  .col { scroll-snap-align: start; }
  .card .name { font-size: 14px; }
  dialog { margin: auto 0 0; width: 100vw; max-height: 92vh; border-radius: 22px 22px 0 0; }
  .sheet-grid { grid-template-columns: 1fr; }
  .sheet-side { border-left: 0; border-top: 1px solid var(--line); padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .sheet-h { padding: 18px 18px 12px; }
  .sheet-h::before { left: 18px; }
  .sheet-main { padding: 14px 18px 16px; }
}
