/* Taskhub: claro = branco + verde pastel, escuro = preto + amarelo. */
:root {
  --bg: #ffffff;
  --side: rgba(245, 248, 246, 0.82);
  --surface: #f5f7f5;
  --elev: #ffffff;
  --text: #1d1d1f;
  --text-2: #6b6f6d;
  --text-3: #a3a8a5;
  --border: rgba(20, 40, 30, 0.09);
  --border-strong: rgba(20, 40, 30, 0.18);
  --accent: #a6dbb9;
  --accent-ink: #0c3a24;
  --accent-text: #25704c;
  --accent-soft: #e6f5ec;
  --danger: #d6403a;
  --warn: #b7791f;
  --heat0: #eef1ef;
  --heat1: #cdebd9;
  --heat2: #a6dbb9;
  --heat3: #74c496;
  --heat4: #3fa870;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 30px rgba(20, 40, 30, 0.06);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.18);
  --scrim: rgba(20, 30, 25, 0.28);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --side: rgba(14, 14, 15, 0.8);
  --surface: #0d0d0e;
  --elev: #161617;
  --text: #f5f5f7;
  --text-2: #9a9a9f;
  --text-3: #5f5f64;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.2);
  --accent: #ffd60a;
  --accent-ink: #000000;
  --accent-text: #ffd60a;
  --accent-soft: rgba(255, 214, 10, 0.12);
  --danger: #ff6961;
  --warn: #ffb340;
  --heat0: #19191b;
  --heat1: #4a4008;
  --heat2: #7f6c0a;
  --heat3: #bd9d0b;
  --heat4: #ffd60a;
  --shadow: none;
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.7);
  --scrim: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.022em; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Estrutura ---------- */
.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100dvh; padding: 20px 14px 14px;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--side); border-right: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px);
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; font-weight: 650; font-size: 17px; letter-spacing: -0.025em; }
.logo { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.sidebar nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  color: var(--text-2); font-weight: 500; transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--accent-soft); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--text); }
.nav-item.active .nav-ico { color: var(--accent-text); }
.nav-item .emoji { width: 20px; text-align: center; font-size: 15px; }
.nav-item .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .count { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.nav-title { display: flex; align-items: center; justify-content: space-between; padding: 18px 10px 4px; color: var(--text-3); font-size: 13px; font-weight: 500; }
.nav-empty { padding: 6px 10px; color: var(--text-3); font-size: 13px; }
.side-foot { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--border); }
.side-foot .nav-item { font-size: 14px; }
.side-note { padding: 8px 10px 2px; font-size: 12px; color: var(--text-3); line-height: 1.4; }
.side-backdrop { display: none; }

.main { min-width: 0; }
.topbar { display: none; }
.view { max-width: 1040px; margin: 0 auto; padding: 40px 36px 96px; }

/* ---------- Botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 550; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border); transition: transform .12s, background .15s, border-color .15s;
}
.btn:hover { border-color: var(--border-strong); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.04); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; height: 44px; }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--text-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--accent-soft); color: var(--text); }
.icon-btn.sm { width: 26px; height: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 550; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px;
  transition: border-color .15s, background .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-text); background: var(--elev); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.segmented { display: inline-flex; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; gap: 2px; }
.segmented a, .segmented button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 520; color: var(--text-2); transition: background .15s, color .15s;
}
.segmented .on { background: var(--elev); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
:root[data-theme="dark"] .segmented .on { background: #2a2a2d; box-shadow: none; }
.segmented.sm a, .segmented.sm button { padding: 5px 12px; font-size: 13px; }

/* ---------- Cabeçalhos de página ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.page-head h1 { font-size: 32px; line-height: 1.12; letter-spacing: -0.03em; }
.page-head .sub { color: var(--text-2); margin-top: 4px; max-width: 56ch; }
.ph-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.emoji-lg { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); display: grid; place-items: center; font-size: 26px; flex: none; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
:root[data-theme="light"] .card { background: var(--elev); }
.card h2 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h2 small { font-weight: 450; color: var(--text-2); font-size: 13px; letter-spacing: -0.01em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
:root[data-theme="light"] .stat { background: var(--elev); box-shadow: var(--shadow); }
.stat b { display: block; font-size: 34px; line-height: 1; font-weight: 650; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.stat.hero, :root[data-theme="light"] .stat.hero { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: none; }
.stat.hero span { color: color-mix(in srgb, var(--accent-ink) 70%, transparent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.section-title { font-size: 20px; margin: 30px 0 12px; display: flex; align-items: center; justify-content: space-between; }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.proj-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); transition: transform .18s, border-color .18s; }
:root[data-theme="light"] .proj-card { background: var(--elev); box-shadow: var(--shadow); }
.proj-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.proj-card .top { display: flex; align-items: center; gap: 12px; }
.proj-card .emoji { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; font-size: 20px; flex: none; }
.proj-card h3 { font-size: 16px; }
.proj-card p { color: var(--text-2); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.proj-card small { color: var(--text-2); font-size: 12.5px; }
.progress { height: 6px; border-radius: 99px; background: var(--heat0); overflow: hidden; flex: 1; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.progress-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: var(--text-2); font-size: 13px; }
.progress-row .progress { max-width: 320px; }

/* ---------- Heatmap ---------- */
.heat-wrap { overflow-x: auto; padding-bottom: 6px; }
.heat-inner { --cell: 14px; --gap: 3px; display: inline-grid; grid-template-columns: 28px auto; column-gap: 8px; row-gap: 6px; }
.heat-months { grid-column: 2; display: flex; gap: var(--gap); height: 14px; font-size: 11.5px; color: var(--text-3); }
.heat-months span { width: var(--cell); white-space: nowrap; overflow: visible; }
.heat-days { display: grid; grid-template-rows: repeat(7, var(--cell)); gap: var(--gap); font-size: 11px; color: var(--text-3); line-height: var(--cell); }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, var(--cell)); gap: var(--gap); }
.cell { width: var(--cell); height: var(--cell); border-radius: 4px; background: var(--heat0); }
.cell[data-l="1"] { background: var(--heat1); }
.cell[data-l="2"] { background: var(--heat2); }
.cell[data-l="3"] { background: var(--heat3); }
.cell[data-l="4"] { background: var(--heat4); }
.cell.void { background: transparent; }
.cell.today { outline: 1.5px solid var(--text-2); outline-offset: 1px; }
.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px; font-size: 12px; color: var(--text-3); }
.heat-legend .cell { width: 11px; height: 11px; border-radius: 3px; }

/* ---------- Lista de tarefas ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tools { display: flex; gap: 8px; align-items: center; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 36px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-3); }
.search input { background: none; border: 0; outline: none; width: 150px; color: var(--text); }
.search:focus-within { border-color: var(--accent-text); }
.tools .select { height: 36px; padding-top: 0; padding-bottom: 0; border-radius: 999px; width: auto; }
.quick { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px; margin-bottom: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, background .15s; }
.quick:focus-within { border-color: var(--accent-text); background: var(--elev); }
.quick .plus { color: var(--text-3); display: grid; }
.quick input { flex: 1; min-width: 0; background: none; border: 0; outline: none; height: 38px; }
.quick kbd, .kbd { font: 500 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--text-3); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.group { margin-bottom: 18px; }
.group-head { display: flex; align-items: center; gap: 8px; padding: 6px 4px; color: var(--text-2); font-size: 13.5px; font-weight: 550; }
.group-head .n { color: var(--text-3); font-weight: 450; }
button.group-head { width: 100%; text-align: left; }
.group-head .chev { transition: transform .2s; display: grid; }
.group-head .chev.open { transform: rotate(90deg); }
.list { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); }
:root[data-theme="light"] .list { background: var(--elev); box-shadow: var(--shadow); }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .12s; }
.task:last-child { border-bottom: 0; }
.task:hover { background: var(--accent-soft); }
.check { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.8px solid var(--text-3); display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.check:hover { border-color: var(--accent-text); }
.check:active { transform: scale(0.88); }
.task.done .check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.t-num { color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; flex: none; }
.t-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.task.done .t-title { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--text-3); }
.t-meta { display: flex; align-items: center; gap: 6px; flex: none; }
.label { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-weight: 520; }
.pill { font-size: 12px; padding: 2px 9px; border-radius: 99px; font-weight: 520; }
.pill.doing { background: var(--accent); color: var(--accent-ink); }
.prio { font-size: 12px; font-weight: 550; }
.prio.high { color: var(--danger); }
.prio.low { color: var(--text-3); }
.due { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.due.overdue { color: var(--danger); font-weight: 550; }

/* ---------- Quadro ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 12px; min-height: 320px; transition: outline-color .15s; outline: 2px dashed transparent; outline-offset: -2px; }
:root[data-theme="light"] .col { background: #f5f8f6; }
.col.over { outline-color: var(--accent-text); }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; font-weight: 600; }
.col-head span { color: var(--text-3); font-weight: 450; font-size: 13px; }
.card-t { background: var(--elev); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; cursor: grab; transition: transform .15s, border-color .15s; }
:root[data-theme="light"] .card-t { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.card-t:hover { border-color: var(--border-strong); }
.card-t.dragging { opacity: 0.4; }
.card-t .row1 { display: flex; gap: 8px; align-items: baseline; }
.card-t .t-num { font-size: 12px; }
.card-t .name { font-weight: 520; line-height: 1.35; }
.card-t.done .name { color: var(--text-3); text-decoration: line-through; }
.card-t .row2 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.col-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 28px 8px; }

/* ---------- Linha do tempo ---------- */
.tl { display: flex; flex-direction: column; }
.tl-day { font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 14px 0 6px; }
.tl-day:first-child { padding-top: 0; }
.tl-item { position: relative; display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.tl-item.click { cursor: pointer; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 36px; bottom: -6px; width: 1.5px; background: var(--border); }
.tl-dot { width: 27px; height: 27px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--heat0); color: var(--text-2); }
.tl-item.done .tl-dot { background: var(--accent); color: var(--accent-ink); }
.tl-item.doing .tl-dot { background: var(--accent-soft); color: var(--accent-text); }
.tl-body { min-width: 0; flex: 1; padding-top: 2px; }
.tl-body b { font-weight: 600; }
.tl-body .what { word-break: break-word; }
.tl-body .when { color: var(--text-3); font-size: 12.5px; margin-top: 1px; }
.tl-proj { color: var(--text-2); }

/* ---------- Prazos (home) ---------- */
.dl { display: flex; flex-direction: column; }
.dl-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.dl-item:last-child { border-bottom: 0; }
.dl-item .t-title { font-weight: 500; }

/* ---------- Estados vazios ---------- */
.empty { text-align: center; padding: 56px 24px; }
.empty .big { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.empty h2 { font-size: 24px; margin-bottom: 8px; }
.empty p { color: var(--text-2); max-width: 44ch; margin: 0 auto 22px; }
.empty .acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.empty.sm { padding: 28px 12px; }
.empty.sm p { margin-bottom: 0; }

/* ---------- Painel / diálogo ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: var(--scrim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; justify-content: flex-end; animation: fade .18s ease-out; }
.overlay.center { justify-content: center; align-items: center; padding: 16px; }
.drawer { width: min(540px, 100%); height: 100%; background: var(--bg); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .26s cubic-bezier(.2, .8, .2, 1); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 14px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px 40px; }
.title-input { width: 100%; border: 0; outline: none; background: none; font-size: 24px; font-weight: 620; letter-spacing: -0.028em; padding: 0; margin-bottom: 22px; }
.dialog { width: min(440px, 100%); background: var(--bg); border: 1px solid var(--border); border-radius: 26px; padding: 26px; box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
.dialog h2 { font-size: 21px; margin-bottom: 20px; }
.dialog .acts { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.dialog .acts .r { display: flex; gap: 8px; }
.emoji-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.emoji-pick button { height: 42px; border-radius: 12px; font-size: 20px; background: var(--surface); border: 1.5px solid transparent; }
.emoji-pick button.on { border-color: var(--accent-text); background: var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips .label { display: inline-flex; align-items: center; gap: 4px; padding-right: 5px; }
.chips .label button { display: grid; opacity: 0.7; }
.chips input { border: 0; outline: none; background: none; min-width: 120px; flex: 1; padding: 6px 2px; }
.chips-box { padding: 6px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.chips-box:focus-within { border-color: var(--accent-text); }
.drawer h3 { font-size: 15px; margin: 28px 0 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Login ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(400px, 100%); text-align: center; }
.auth-card .logo { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 22px; }
.auth-card h1 { font-size: 28px; letter-spacing: -0.03em; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-2); margin-bottom: 28px; }
.auth-card form { text-align: left; }
.auth-card .field { margin-bottom: 12px; }
.auth-err { color: var(--danger); font-size: 13.5px; margin: 4px 0 12px; min-height: 1px; }
.auth-ok { color: var(--accent-text); font-size: 13.5px; margin: 4px 0 12px; }
.auth-switch { margin-top: 18px; color: var(--text-2); font-size: 14px; }
.auth-switch button { color: var(--accent-text); font-weight: 550; }
.splash { min-height: 100dvh; display: grid; place-items: center; }
.splash .logo { width: 44px; height: 44px; border-radius: 14px; animation: pulse 1.2s ease-in-out infinite; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; align-items: center; pointer-events: none; }
.toast { background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: pop .2s ease-out; }
.toast.error { background: var(--danger); color: #fff; }

@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(32px); opacity: 0; } }
@keyframes pop { from { transform: scale(0.96) translateY(6px); opacity: 0; } }
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.94); } }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 288px; max-width: 86vw; transform: translateX(-102%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); background: var(--bg); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .side-backdrop.open { display: block; position: fixed; inset: 0; z-index: 25; background: var(--scrim); }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; height: 52px; padding: 0 12px; background: var(--side); border-bottom: 1px solid var(--border); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); font-weight: 600; }
  .view { padding: 22px 16px 80px; }
  .page-head h1 { font-size: 26px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .t-meta .label, .t-meta .due, .t-meta .pill { display: none; }
  .board { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  .search input { width: 100px; }
  .split { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
