/* Look carried over from the original Claude artifact: one narrow column, tiled checklists. */
:root {
  --bg: #F1F4F5; --surface: #FFFFFF; --ink: #17232A; --muted: #5B6A73; --line: #DAE1E5;
  --accent: #1E6A88; --accent-ink: #FFFFFF; --accent-soft: #DFEDF2;
  --late: #AE4129; --late-soft: #F6E2DB; --done: #2F7350;
  --r: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1417; --surface: #162026; --ink: #E4EBEE; --muted: #92A2AB; --line: #263339;
    --accent: #6BB4D2; --accent-ink: #0B1A20; --accent-soft: #15303A;
    --late: #EE8A6D; --late-soft: #3A221B; --done: #79C497; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); }
a { color: var(--accent); }
.wrap { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px;
  padding: calc(20px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(150px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
header { display: flex; flex-direction: column; gap: 6px; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
h1 { font-size: clamp(28px, 7vw, 36px); line-height: 1.05; margin: 0; letter-spacing: -.01em; }
.back { text-decoration: none; font-weight: 600; }
.summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pill { font-size: 14px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.pill b { color: var(--ink); }
.pill.late { background: var(--late-soft); border-color: transparent; color: var(--late); }
.pill.late b { color: var(--late); }
.seg { display: inline-flex; align-self: flex-start; margin-top: 8px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg a { padding: 6px 14px; font-size: 14px; text-decoration: none; color: var(--ink); }
.seg a.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
section { display: flex; flex-direction: column; gap: 10px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { font-size: 15px; letter-spacing: .07em; text-transform: uppercase; margin: 0; color: var(--muted); }
h2.late { color: var(--late); }
h3 { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.count { font-size: 14px; color: var(--muted); }
ul { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
ul.plain li { padding: 12px 14px; border-top: 1px solid var(--line); }
ul.plain li:first-child { border-top: 0; }
.row { display: flex; align-items: center; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row.is-late { box-shadow: inset 3px 0 0 var(--late); }
.row form { margin: 0; }
.check { width: 52px; height: 52px; display: grid; place-items: center; background: none; border: 0; padding: 0; margin-left: 2px; cursor: pointer; }
.check span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; }
.check[aria-pressed="true"] span { background: var(--done); border-color: var(--done); }
.check svg { width: 14px; height: 14px; opacity: 0; }
.check[aria-pressed="true"] svg { opacity: 1; }
.check svg path { stroke: var(--surface); }
.body { flex: 1; min-width: 0; padding: 12px 14px 12px 0; display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.name { font-weight: 700; overflow-wrap: anywhere; }
.is-done .name { text-decoration: line-through; color: var(--muted); }
.meta { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 8px; }
.meta .dot::before { content: "·"; }
.tag-late { color: var(--late); font-weight: 700; }
.who, .assignee { color: var(--done); font-weight: 700; }
.assignee { color: var(--accent); }
.undo, .link, .x { font: inherit; font-size: 14px; color: var(--accent); background: none; border: 0; padding: 12px 14px; cursor: pointer; }
.x { font-size: 22px; line-height: 1; color: var(--muted); }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary h2::after { content: " +"; }
details[open] > summary h2::after { content: " −"; }
details[open] > summary { margin-bottom: 10px; }
.empty { padding: 18px; font-size: 15px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); }
.add { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(78px + env(safe-area-inset-bottom)); background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 14px 20px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
.tabs a { flex: 1; text-align: center; padding: 16px 0; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.tabs a.on { color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.form { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
textarea { min-height: 64px; resize: vertical; }
.inline { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 400; font-size: 16px; }
.inline input { width: 90px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.chip-pair { display: inline-flex; }
.chip-pair form { margin: 0; }
.chip-pair .chip:first-child { border-radius: 999px 0 0 999px; }
.chip.forget { border-radius: 0 999px 999px 0; border-left: 0; color: var(--muted); padding: 6px 10px; }
.addbar { flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 10px; }
.addbar input[name=name] { flex: 1 1 100%; }
.addbar select { flex: 1; width: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { font: 700 16px var(--font); padding: 12px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; text-align: center; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--late); width: 100%; }
.err { color: var(--late); font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; margin: 0; }
.signout { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wip { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.wip-label { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.wip-note { font-size: 14px; color: var(--ink); font-style: italic; }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--accent-soft); overflow: hidden; max-width: 260px; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.wip-row { display: flex; gap: 10px; }
.wip-row .initials { width: 84px; flex: none; }
.wip-row .initials input { text-transform: uppercase; text-align: center; }
.wip-row .grow { flex: 1; min-width: 0; }
input[type=range] { padding: 0; background: none; border: 0; accent-color: var(--accent); height: 32px; }
output { color: var(--ink); }
.form h2 { font-size: 15px; }
.status-line { font-size: 15px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); }
.status-line.ok { color: var(--done); }
.status-line.err { background: var(--late-soft); }
.btn:disabled { opacity: .5; cursor: default; }
pre.log { font-size: 12px; white-space: pre-wrap; word-break: break-word; background: var(--bg); padding: 10px; border-radius: 8px; max-height: 320px; overflow: auto; margin: 8px 0 0; }
