/* To-Done: calm, focused, light + dark. No external fonts or assets (the CSP is 'self'). */

:root {
  color-scheme: light dark;

  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #f1f1ed;
  --ink: #1a1b1f;
  --ink-2: #44464f;
  --muted: #6b6e78;
  --line: #e4e4de;
  --line-strong: #cfcfc7;

  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --accent-soft: #eceafd;

  --urgent: #d92d20;
  --urgent-soft: #fdecea;
  --high: #c2610c;
  --high-soft: #fdf0e1;
  --normal: #3b5bdb;
  --normal-soft: #e8edfd;
  --low: #7b8190;
  --low-soft: #eef0f3;
  --ok: #08794f;
  --ok-soft: #e3f5ec;
  --danger: #c4261b;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgb(20 20 30 / .04), 0 4px 14px rgb(20 20 30 / .05);
  --shadow-lg: 0 12px 40px rgb(20 20 30 / .14);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f12;
    --surface: #16181d;
    --surface-2: #1d2026;
    --ink: #ececf1;
    --ink-2: #c4c6d0;
    --muted: #9194a1;
    --line: #272a32;
    --line-strong: #383c46;

    --accent: #8c8df7;
    --accent-ink: #12121a;
    --accent-soft: #23244a;

    --urgent: #ff7b72;
    --urgent-soft: #3a1c1b;
    --high: #f2a255;
    --high-soft: #3a2713;
    --normal: #8fa8ff;
    --normal-soft: #1f2845;
    --low: #9aa0ae;
    --low-soft: #23262d;
    --ok: #4cc79a;
    --ok-soft: #14301f;
    --danger: #ff7b72;

    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 18px rgb(0 0 0 / .25);
    --shadow-lg: 0 12px 40px rgb(0 0 0 / .55);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 26px; }
h2 { font-size: 15px; font-weight: 650; }
h3 { font-size: 13px; font-weight: 650; }
.panel h3 { color: var(--ink-2); margin: 20px 0 8px; }
p { margin: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
code, pre { font-family: var(--mono); font-size: 13px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.icon {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ───────── Top bar ───────── */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand-mark { width: 28px; height: 28px; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark.lg { width: 48px; height: 48px; }

.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 550;
  padding: 6px 12px; border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.account { margin-left: auto; display: flex; align-items: center; gap: 6px; min-width: 0; }
.who { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.account form { margin: 0; }
.team-switch select { width: auto; max-width: 180px; padding: 4px 28px 4px 10px; font-size: 13px; }
.team-name { color: var(--muted); font-size: 13px; }
.team-switch .btn { margin-left: 4px; }

/* ───────── Layout ───────── */

.page { max-width: 1120px; margin: 0 auto; padding: 28px 20px 80px; }
.narrow { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.page-head { display: grid; gap: 6px; margin-bottom: 6px; }

.inbox { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 940px) {
  .inbox { grid-template-columns: minmax(0, 1fr) 320px; }
  .inbox-side { position: sticky; top: 84px; }
}
.inbox-side { display: grid; gap: 16px; order: -1; }
@media (min-width: 940px) { .inbox-side { order: 0; } }

/* ───────── Buttons & fields ───────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-weight: 600; font-size: 14px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 7px 13px; cursor: pointer;
  transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ok:hover { background: color-mix(in srgb, var(--ok) 88%, black); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--urgent-soft); border-color: var(--danger); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.block { width: 100%; padding: 10px 14px; }
.btn.icon-only { padding: 7px; }
.btn[disabled] { opacity: .55; cursor: progress; }

.field { display: grid; gap: 6px; align-content: start; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12.5px; }
.field.grow { flex: 1; min-width: 200px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], select, textarea, input:not([type]) {
  font: inherit; color: var(--ink); width: 100%;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 9px 12px;
  transition: border-color .12s;
}
input::placeholder { color: var(--muted); opacity: .8; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); box-shadow: var(--ring); }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.stack { display: grid; gap: 16px; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }

.alert { border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; }
.alert.error { background: var(--urgent-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.alert ul { margin: 0; padding-left: 18px; }

/* ───────── Panels ───────── */

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
}
.panel > h2 { margin-bottom: 10px; }
.panel.reveal { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface)); }

.budget h2 { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.budget-total { font-size: 40px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.budget p { margin-top: 4px; font-size: 13.5px; }

.stack-bar {
  display: flex; height: 10px; border-radius: 999px; overflow: hidden;
  background: var(--surface-2); margin: 16px 0 12px; gap: 2px;
}
.stack-bar > span { display: block; min-width: 6px; transition: flex-grow .3s ease; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.legend .n { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }

.project-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.project-bars li { display: grid; gap: 5px; font-size: 13px; }
.project-bars .row { display: flex; justify-content: space-between; gap: 10px; }
.project-bars .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-bars .val { color: var(--muted); font-variant-numeric: tabular-nums; }
.project-bars .track { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.project-bars .fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s ease; }

/* ───────── Toolbar ───────── */

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tabs { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 999px; gap: 2px; }
.tab {
  font: inherit; font-weight: 600; font-size: 14px; color: var(--muted);
  background: transparent; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer;
  display: inline-flex; gap: 8px; align-items: center;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; background: var(--bg); border-radius: 999px; padding: 0 7px; }
.tab[aria-selected="true"] .count { background: var(--accent-soft); color: var(--accent); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.filters select { width: auto; padding-right: 28px; }
.search { position: relative; display: block; flex: 1; max-width: 240px; min-width: 140px; }
.search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 33px; }

/* quick filters + sort */
.refine { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin: -4px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 4px 12px; cursor: pointer; transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.small { padding: 2px 10px; font-size: 12.5px; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort select { width: auto; padding: 5px 28px 5px 10px; font-size: 13px; }

.day-heading { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 2px -2px; }
.day-heading:first-child { margin-top: 0; }

/* scheduling */
.tag.planned { background: var(--accent-soft); color: var(--accent); }
.tag.planned.overdue { background: var(--urgent-soft); color: var(--danger); }
.schedule-form { margin-top: 12px; padding: 12px; background: var(--surface-2); border-radius: var(--radius-sm); display: grid; gap: 8px; }
.schedule-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.schedule-row input[type="datetime-local"] { width: auto; flex: 1; min-width: 200px; padding: 6px 10px; }
.schedule-row.presets { gap: 6px; font-size: 13px; }
.schedule-form .hint { font-size: 12.5px; }
a.btn { text-decoration: none; }

/* coming up */
.upcoming { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; font-size: 13.5px; }
.upcoming li { display: grid; gap: 1px; }
.upcoming .when { color: var(--accent); font-weight: 650; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.upcoming .what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-link { font-size: 13px; font-weight: 600; }

/* ───────── Todo cards ───────── */

.list { display: grid; gap: 12px; }

.todo {
  --p: var(--normal); --p-soft: var(--normal-soft);
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px 14px 22px; overflow: hidden;
  animation: rise .22s ease both;
}
.todo::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--p); }
.todo.p-Urgent { --p: var(--urgent); --p-soft: var(--urgent-soft); }
.todo.p-High { --p: var(--high); --p-soft: var(--high-soft); }
.todo.p-Normal { --p: var(--normal); --p-soft: var(--normal-soft); }
.todo.p-Low { --p: var(--low); --p-soft: var(--low-soft); }
.todo.finished::before { background: var(--line-strong); }
.todo.leaving { opacity: 0; transform: translateX(14px); transition: opacity .2s, transform .2s; }

.todo-head { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.todo-title { font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.todo.finished .todo-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }

.estimate {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 4px 11px;
}
.estimate.none { color: var(--muted); background: var(--surface-2); font-weight: 600; }

.todo-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 650;
  background: var(--surface-2); color: var(--ink-2);
}
.tag.priority { background: var(--p-soft); color: var(--p); }
.tag.status-InProgress { background: var(--ok-soft); color: var(--ok); }
.tag.due.overdue { background: var(--urgent-soft); color: var(--danger); }
.origin { display: inline-flex; align-items: center; gap: 6px; }
.origin .sep { opacity: .55; }

.details { margin-top: 10px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.details.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.linklike { font: inherit; font-size: 13px; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 0; margin-top: 4px; cursor: pointer; }
.linklike:hover { text-decoration: underline; }

.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.link-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px 11px; color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 550;
}
.link-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.link-chip .icon { color: var(--accent); }
.link-chip .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: none; max-width: 70%; }
.links li { min-width: 0; max-width: 100%; }
.link-chip .host { color: var(--muted); font-weight: 450; font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.notes { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.note { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 14px; }
.note.mine { background: var(--accent-soft); }
.note .by { display: flex; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.note .by strong { color: var(--ink-2); }
.note p { white-space: pre-wrap; overflow-wrap: anywhere; }

.todo-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.todo-actions .spacer { flex: 1; }
.note-form { display: flex; gap: 8px; flex: 1; min-width: 200px; }
.note-form input { padding: 6px 11px; }

.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border: 1px solid var(--line); }

.empty-state { text-align: center; padding: 56px 20px; display: grid; gap: 10px; justify-items: center; }
.empty-state h2, .empty-state h1 { font-size: 19px; }
.empty-state p { color: var(--muted); max-width: 380px; }
.empty-state svg.art { width: 84px; height: 84px; margin-bottom: 6px; }
.art .bg { fill: var(--accent-soft); }
.art .fg { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── Tokens page ───────── */

.token-list { list-style: none; margin: 0; padding: 0; display: grid; }
.token-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.token-list li:first-child { border-top: 0; padding-top: 2px; }
.token-info { display: grid; gap: 2px; min-width: 0; }
.token-info > .tag { justify-self: start; }
.token-info .muted { font-size: 13px; }
.token-list form { margin: 0; }

.copy-row { display: flex; gap: 10px; align-items: flex-start; }
.copy-row code, .copy-row pre {
  flex: 1; min-width: 0; margin: 0; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all;
}
.copy-row .btn { flex: none; }

/* ───────── Auth pages ───────── */

.auth-body { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card {
  width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow-lg); display: grid; gap: 22px;
}
.auth-brand { display: grid; gap: 6px; justify-items: center; text-align: center; }
.auth-brand h1 { font-size: 24px; margin-top: 6px; }
.auth-brand p { color: var(--muted); font-size: 14px; }
.auth-note { color: var(--ink-2); font-size: 14px; background: var(--accent-soft); border-radius: var(--radius-sm); padding: 10px 14px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); }

/* ───────── Toasts ───────── */

.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; width: min(92vw, 420px); }
.toast {
  background: var(--ink); color: var(--bg); border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 14px; box-shadow: var(--shadow-lg); animation: rise .18s ease both;
}
.toast.error { background: var(--danger); color: #fff; }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 640px) {
  .page { padding: 20px 14px 80px; }
  .topbar-inner { gap: 10px; padding: 8px 14px; }
  .brand span, .who { display: none; }
  .budget-total { font-size: 34px; }
  .inbox-side .panel:not(.budget) { display: none; }
  .refine { margin-top: 0; }
  .sort span { display: none; }
  .inbox { gap: 16px; }
  .stack-bar { margin: 12px 0 10px; }
  .legend { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .legend .n { margin-left: 0; }
  .legend .n::before { content: "×"; margin-right: 1px; }
  .todo-head { flex-direction: column-reverse; gap: 8px; }
  .estimate { align-self: flex-start; }
  .filters { justify-content: stretch; }
  .search { max-width: none; }
  .copy-row { flex-direction: column; }
  .copy-row .btn { align-self: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.steps { margin: 12px 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }
.cta { margin-top: 14px; }
.alert.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); margin-bottom: 12px; }

/* settings */
.settings-form { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.toggles { display: grid; gap: 12px; margin-top: 6px; }
.check.align-end { align-self: end; padding-bottom: 8px; }
.row-actions { margin-top: 14px; }
.form-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.tag.ok-tag { background: var(--ok-soft); color: var(--ok); }
.panel p { margin-bottom: 8px; }
.panel p:last-child { margin-bottom: 0; }

/* dependencies */
.todo.blocked { background: color-mix(in srgb, var(--surface) 70%, var(--surface-2)); }
.todo.blocked .todo-title { color: var(--ink-2); }
.todo.blocked::before { background: repeating-linear-gradient(180deg, var(--p) 0 6px, transparent 6px 10px); }
.tag.blocked-tag { background: var(--high-soft); color: var(--high); }
.deps { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 12px; font-size: 13px; }
.deps-label { color: var(--muted); font-weight: 600; }
.dep-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  background: var(--high-soft); color: var(--high); border-radius: 999px; padding: 2px 4px 2px 10px; font-weight: 600;
}
.dep-chip.done { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.dep-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.dep-x { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.dep-x:hover { background: color-mix(in srgb, currentColor 18%, transparent); }
.dep-x:focus-visible { box-shadow: var(--ring); }

/* Footer links (privacy, terms) and the draft-legal banner */
.site-footer { text-align: center; font-size: 13px; color: var(--muted, #6b6e78); padding: 20px 16px 28px; }
.site-footer a { color: inherit; }
.legal-note { font-size: 13px; }
.draft-banner { border: 1px solid #d97706; background: #fffbeb; color: #78350f; border-radius: 10px; padding: 12px 14px; font-weight: 600; margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .draft-banner { background: #3b2a0a; color: #fde68a; border-color: #b45309; } }
.legal h2 { margin-top: 26px; }
.legal li { margin: 4px 0; }
.placeholder { background: #fef3c7; color: #78350f; padding: 0 4px; border-radius: 4px; }
