/* i3w todo: paper, dot grid, chunky type, things that bounce. */
:root {
  --paper: #f3f0e8; --paper-2: #ebe7dc; --paper-3: #e2ddcf; --card: #fffdf8;
  --ink: #17161a; --ink-2: #4d4a52; --ink-3: #8b8790; --line: #ddd8cb; --dot: #d3cdbd;
  --accent: #ff5b1f; --accent-2: #ff8a3d; --accent-soft: #ffe3d4;

  --todo: #a9a291;    --todo-bg: #ece7da;    --todo-ink: #5f5949;
  --ongoing: #2f6fed; --ongoing-bg: #dde7ff; --ongoing-ink: #1d4fc4;
  --review: #f2a900;  --review-bg: #fff0c2;  --review-ink: #845a00;
  --done: #1fa97a;    --done-bg: #d3f3e4;    --done-ink: #0d7553;
  --bad: #e5484d; --bad-bg: #ffe0e0; --swing: #8e4ec6; --swing-bg: #efe3ff;

  --n-yellow: #ffe98a; --n-pink: #ffcfe1; --n-mint: #c8f1dc; --n-blue: #d2e2ff; --n-lilac: #e6d8ff; --n-peach: #ffd9c2;
  --note-ink: #2a2418;
  /* Wash: the see-through paper on top of a note (rows, ticks, tape). Mixed at different strengths below. */
  --note-wash: #fff;

  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 14px 30px -18px rgba(40,30,10,.35);
  --shadow-lift: 0 2px 0 rgba(0,0,0,.04), 0 22px 40px -18px rgba(40,30,10,.45);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --hard: color-mix(in srgb, var(--ink) 34%, transparent);
  --spring: cubic-bezier(.3, 1.6, .5, 1);
  --soft: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #111013; --paper-2: #18171b; --paper-3: #222026; --card: #1b1a1e;
  --ink: #e4e2de; --ink-2: #b8b4bd; --ink-3: #7f7b86; --line: #2c2a31; --dot: #26242a;
  --accent-soft: #3a1d10;
  --todo: #6f6a60; --todo-bg: #25232a; --todo-ink: #c9c2b2;
  --ongoing: #5b8dff; --ongoing-bg: #172240; --ongoing-ink: #a9c3ff;
  --review: #ffc23d; --review-bg: #2f2510; --review-ink: #ffd77a;
  --done: #3fd39a; --done-bg: #10291f; --done-ink: #8debc4;
  --bad-bg: #3a1618; --swing: #b98af0; --swing-bg: #261b36;
  --n-yellow: #3a3219; --n-pink: #3b2330; --n-mint: #1b3328; --n-blue: #1d2a42; --n-lilac: #2b2542; --n-peach: #3d2a1e;
  --note-ink: #e4dfd3; --note-wash: rgba(255,255,255,.16);
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 18px 34px -18px rgba(0,0,0,.75);
  --shadow-lift: 0 1px 0 rgba(255,255,255,.04), 0 26px 44px -18px rgba(0,0,0,.85);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --paper: #111013; --paper-2: #18171b; --paper-3: #222026; --card: #1b1a1e;
  --ink: #e4e2de; --ink-2: #b8b4bd; --ink-3: #7f7b86; --line: #2c2a31; --dot: #26242a;
  --accent-soft: #3a1d10;
  --todo: #6f6a60; --todo-bg: #25232a; --todo-ink: #c9c2b2;
  --ongoing: #5b8dff; --ongoing-bg: #172240; --ongoing-ink: #a9c3ff;
  --review: #ffc23d; --review-bg: #2f2510; --review-ink: #ffd77a;
  --done: #3fd39a; --done-bg: #10291f; --done-ink: #8debc4;
  --bad-bg: #3a1618; --swing: #b98af0; --swing-bg: #261b36;
  --n-yellow: #3a3219; --n-pink: #3b2330; --n-mint: #1b3328; --n-blue: #1d2a42; --n-lilac: #2b2542; --n-peach: #3d2a1e;
  --note-ink: #e4dfd3; --note-wash: rgba(255,255,255,.16);
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 18px 34px -18px rgba(0,0,0,.75);
  --shadow-lift: 0 1px 0 rgba(255,255,255,.04), 0 26px 44px -18px rgba(0,0,0,.85);
  color-scheme: dark;
}

/* Sepia (a setting that only shows in white mode): warm paper and brown ink instead of white. */
@media (prefers-color-scheme: light) { :root[data-sepia="on"]:not([data-theme="dark"]) {
  --paper: #f2e8d3; --paper-2: #eadfc6; --paper-3: #e0d2b4; --card: #f9f2e2;
  --ink: #33291d; --ink-2: #5d4f3e; --ink-3: #8f7f69; --line: #ddcdab; --dot: #d6c49f;
  --todo-bg: #e7dbc0; --todo-ink: #5c5040;
  --note-wash: #fffaf0;
} }
:root[data-sepia="on"][data-theme="light"] {
  --paper: #f2e8d3; --paper-2: #eadfc6; --paper-3: #e0d2b4; --card: #f9f2e2;
  --ink: #33291d; --ink-2: #5d4f3e; --ink-3: #8f7f69; --line: #ddcdab; --dot: #d6c49f;
  --todo-bg: #e7dbc0; --todo-ink: #5c5040;
  --note-wash: #fffaf0;
}
.pref[hidden] { display: none; }

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; color: var(--ink); font: 15px/1.5 var(--display); -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px); background-size: 22px 22px;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* wiggle letters (from the playground) */
.word { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; transition: transform .35s var(--spring), color .2s; }
.wiggle .ch:hover { transform: translateY(-10px) rotate(-7deg); color: var(--accent); }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  height: 38px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
  font-weight: 600; font-size: 14px; transition: transform .18s var(--spring), background .15s, box-shadow .18s;
  box-shadow: 0 2px 0 var(--hard);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--hard); }
.btn:active { transform: translateY(1px) scale(.97); box-shadow: 0 0 0 var(--ink); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--ink); }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.ghost { border-color: transparent; box-shadow: none; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--paper-2); color: var(--ink); transform: none; }
.btn.danger { color: var(--bad); }
.btn.danger-solid { background: var(--bad); color: #fff; border-color: var(--ink); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.on-it { background: var(--done-bg); color: var(--done-ink); border-color: var(--done); gap: 6px; }
.btn.on-it svg { width: 12px; height: 12px; opacity: .6; }
.btn.on-it:hover { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.btn.on-it:hover svg { opacity: 1; }
.btn.icon { width: 38px; padding: 0; }
.btn.sm.icon { width: 30px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex: none; }

.input {
  width: 100%; height: 42px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 92px; padding: 10px 14px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--ink); box-shadow: 0 3px 0 var(--hard); }
label.field, .field { display: grid; gap: 7px; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.field .input { font: 15px var(--display); text-transform: none; letter-spacing: 0; color: var(--ink); }
/* the role picker is the last native <select>: draw its arrow ourselves, never the browser's */
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 15px center, right 10px center; background-size: 5px 5px; background-repeat: no-repeat;
}

/* segmented toggle with sliding thumb */
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 99px; background: var(--paper-2); border: 1.5px solid var(--line); }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 99px; background: var(--ink); transition: transform .4s var(--spring); }
.seg button { position: relative; z-index: 1; border: 0; background: none; height: 32px; padding: 0 16px; border-radius: 99px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: color .2s; }
.seg button[aria-pressed="true"] { color: var(--paper); }

/* ───────── top bar ───────── */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.top.stuck { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.04em; }
.logo img { height: 26px; width: auto; display: block; }
/* Hover flips the name top-over-bottom like a card, with a little tilt; the back says it's done, and the check draws itself in. */
.logo-flip { display: grid; font-size: 28px; transform-style: preserve-3d; transform: perspective(500px); transition: transform .6s cubic-bezier(.35, 1.35, .5, 1); }
.logo:hover .logo-flip, .logo:focus-visible .logo-flip { transform: perspective(500px) rotateX(180deg) rotate(8deg); }
.logo-face { grid-area: 1 / 1; display: flex; align-items: center; transform: rotateX(0); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: visibility 0s .12s; }
.logo-back { justify-content: center; gap: .3em; color: var(--accent); transform: rotateX(180deg); visibility: hidden; }
/* Backface hiding is patchy across browsers, so each side also switches off as the card passes edge-on. */
.logo:hover .logo-face:first-child, .logo:focus-visible .logo-face:first-child { visibility: hidden; }
.logo:hover .logo-back, .logo:focus-visible .logo-back { visibility: visible; }
.logo-check { flex: none; display: grid; place-items: center; width: .8em; height: .8em; border-radius: .25em; background: var(--accent); }
.logo-check svg { width: 75%; height: 75%; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .1s; }
.logo:hover .logo-check svg, .logo:focus-visible .logo-check svg { stroke-dashoffset: 0; transition: stroke-dashoffset .3s .3s cubic-bezier(.65, 0, .35, 1); }
.logo-word { display: block; height: 1.3em; line-height: 1.3em; white-space: nowrap; }
/* Intro: letters flick in place (grey while flicking) and lock in from the left. */
.logo-word.slot { position: relative; }
.slot-size { visibility: hidden; }
.slot-text { position: absolute; left: 0; top: 0; white-space: pre; }
.slot-text .spin { color: var(--ink-3); }
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: var(--card); border: 1.5px solid var(--line); margin-left: 10px; }
.tabs a { position: relative; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 99px; text-decoration: none; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.tabs a svg { width: 18px; height: 18px; transition: transform .45s var(--spring); }
.tabs a:hover { color: var(--ink); background: var(--paper-2); }
.tabs a:hover svg { transform: rotate(-14deg) scale(1.15); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.tabs a .pip { position: absolute; top: 6px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--card); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.i-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
  font: italic 800 20px/1 Georgia, "Times New Roman", serif; display: grid; place-items: center; box-shadow: 0 2px 0 var(--hard);
  transition: transform .35s var(--spring), background .2s, color .2s;
}
.i-btn:hover { transform: rotate(14deg) translateY(-2px); background: var(--accent); color: #fff; }
.i-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); }

.theme-btn svg { width: 19px; height: 19px; }
.theme-btn:hover { transform: rotate(-25deg) translateY(-2px); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* account menu */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.menu[open] summary { border-color: var(--ink); }
.menu .pop { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; padding: 8px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--ink); box-shadow: 0 4px 0 var(--hard); display: grid; gap: 2px; transform-origin: top right; animation: pop .35s var(--spring); }
.menu .pop .who { padding: 8px 10px 10px; border-bottom: 1.5px dashed var(--line); margin-bottom: 4px; }
.menu .pop .who small { display: block; font: 12px var(--mono); color: var(--ink-3); }
.menu .pop button { display: flex; gap: 10px; align-items: center; border: 0; background: none; padding: 9px 10px; border-radius: 10px; text-align: left; font-weight: 500; }
.menu .pop button:hover { background: var(--paper-2); }
.menu .pop svg { width: 16px; height: 16px; }
.emoji-pick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 4px 2px 8px; margin-bottom: 4px; border-bottom: 1.5px dashed var(--line); }
.menu .pop .emoji-pick button { display: grid; place-items: center; padding: 0; height: 28px; border-radius: 8px; font-size: 17px; transition: transform .3s var(--spring), background .15s; }
.menu .pop .emoji-pick button:hover { transform: scale(1.3) rotate(-10deg); background: var(--paper-2); }
.menu .pop .emoji-pick button[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(-6px); } }

/* ───────── avatars, dots, chips ───────── */
.av { --c: #888; width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 17px/1 var(--display); background: color-mix(in srgb, var(--c) 24%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent); transition: transform .3s var(--spring); user-select: none; }
.av:hover { transform: rotate(-12deg) scale(1.12); }
.av.lg { width: 44px; height: 44px; font-size: 24px; }
.av.sm { width: 24px; height: 24px; font-size: 13px; }
.av.none { background: var(--paper-2); color: var(--ink-3); font: 700 12px var(--mono); box-shadow: inset 0 0 0 1.5px dashed var(--line); }
.stack { display: flex; }
.stack .av { margin-left: -7px; box-shadow: 0 0 0 2px var(--card); }
.stack .av:first-child { margin-left: 0; }
.stack .av:hover { transform: translateY(-4px); z-index: 1; }

.sdot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.sdot.todo { --c: var(--todo); } .sdot.ongoing { --c: var(--ongoing); } .sdot.review { --c: var(--review); } .sdot.done { --c: var(--done); }
.sdot.ongoing { animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 10%, transparent); } }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font: 500 11.5px var(--mono); white-space: nowrap; }
.pill.todo { background: var(--todo-bg); color: var(--todo-ink); } .pill.ongoing { background: var(--ongoing-bg); color: var(--ongoing-ink); }
.pill.review { background: var(--review-bg); color: var(--review-ink); } .pill.done { background: var(--done-bg); color: var(--done-ink); }

.tag { --c: #888; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 7px; white-space: nowrap; font: 500 11px var(--mono); color: color-mix(in srgb, var(--c) 82%, var(--ink)); background: color-mix(in srgb, var(--c) 14%, transparent); }
.proj { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: 500 12px var(--mono); color: var(--ink-2); white-space: nowrap; }
.proj i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; transform: rotate(45deg); }
.proj span { overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }

.chip { --c: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); font: 500 13px var(--mono); white-space: nowrap; transition: transform .25s var(--spring), background .15s; }
.chip:hover { transform: translateY(-2px); color: var(--ink); }
.chip i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); transform: rotate(45deg); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .av { width: 22px; height: 22px; font-size: 12px; margin-left: -7px; }

/* ───────── page hero ───────── */
main { padding-top: 26px; padding-bottom: 120px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
/* Title block takes the room the side controls leave; the side only drops below when it truly can't fit.
   A little top padding so the title doesn't sit right under the header. */
.hero > div:first-child { flex: 1 1 420px; min-width: 0; padding-top: 14px; }
.big { font-weight: 800; font-size: clamp(42px, 6.4vw, 84px); line-height: .92; letter-spacing: -0.055em; }
.hero p { margin-top: 12px; color: var(--ink-2); font-size: 18px; text-wrap: pretty; }
.hero-side { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.week-nav { display: inline-flex; align-items: center; gap: 2px; height: 42px; padding: 4px; border-radius: 99px; background: var(--card); border: 1.5px solid var(--line); }
.week-nav span { padding: 0 12px; font: 600 14px var(--display); white-space: nowrap; min-width: 140px; text-align: center; }
.week-nav small { font: 500 11px var(--mono); color: var(--accent); margin-left: 6px; text-transform: uppercase; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { position: relative; padding: 16px 18px 14px; border-radius: 20px; background: var(--card); border: 1.5px solid var(--line); overflow: hidden; transition: transform .3s var(--spring); }
.stat:hover { transform: translateY(-3px) rotate(-.6deg); }
.stat b { display: block; font: 800 42px/1 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; }
.stat::after { content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 18px; transform: rotate(20deg); background: var(--c, var(--paper-2)); opacity: .5; }
.stat.hot { background: var(--accent); border-color: var(--accent); color: #fff; }
.stat.hot span { color: #ffe3d4; }
.stat.hot::after { background: #fff; opacity: .18; }

/* ───────── item line (shared) ───────── */
.line {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; align-items: start; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 14px; border: 1.5px solid transparent; background: color-mix(in srgb, var(--card) 70%, transparent);
  transition: transform .25s var(--spring), border-color .15s, background .15s;
}
.line:hover { border-color: var(--ink); background: var(--card); transform: translateX(3px); }
.line .sdot { margin-top: 5px; }
.line .t { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line .meta { grid-column: 2; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 3px; }
.line.done .t { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--done) 60%, transparent); }
.line-wrap { position: relative; display: flex; align-items: flex-start; gap: 6px; }
.line-wrap .line { flex: 1; }
.x { flex: none; width: 28px; height: 28px; margin-top: 8px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; opacity: 0; transition: opacity .15s, background .15s, transform .3s var(--spring); }
.line-wrap:hover .x, .x:focus-visible { opacity: 1; }
@media (hover: none) { .x { opacity: .6; } }
.x:hover { background: var(--bad-bg); color: var(--bad); transform: rotate(90deg); }
.x svg { width: 14px; height: 14px; }

.empty { padding: 22px 18px; text-align: center; border: 1.5px dashed var(--line); border-radius: 16px; color: var(--ink-3); font: 600 24px/1.1 var(--hand); }

/* ───────── TODAY ───────── */
.meter { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.meter-row { display: flex; gap: 6px; }
.meter-row .av { position: relative; filter: grayscale(1); opacity: .35; }
.meter-row .av.on { filter: none; opacity: 1; transform: translateY(-6px); }
.meter-row .av.on::after { content: ""; position: absolute; bottom: -9px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--accent); }
.meter-row .av:hover { transform: translateY(-9px) rotate(-8deg); }
.meter small { font: 500 12px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }

.today-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.75fr); gap: 30px; align-items: start; }
/* Your list: the biggest sticky note on the page, ruled like a notepad, with ticks. */
.my-list {
  --bg: var(--n-yellow); position: relative; padding: 24px 22px 22px; background: var(--bg); color: var(--note-ink);
  border-radius: 6px 6px 30px 6px; box-shadow: var(--shadow-lift); rotate: -.6deg;
  border: 1.5px solid color-mix(in srgb, var(--note-ink) 16%, transparent);
}
.my-list::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 24px; transform: translateX(-50%) rotate(-1.5deg); background: color-mix(in srgb, var(--note-wash) 60%, transparent); border: 1px solid color-mix(in srgb, var(--note-ink) 7%, transparent); }
.my-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid color-mix(in srgb, var(--note-ink) 22%, transparent); }
.my-title { font: 800 clamp(30px, 3.2vw, 40px)/1 var(--display); letter-spacing: -0.045em; }
.my-head small { display: block; margin-top: 4px; font: 500 12px var(--mono); opacity: .62; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo-row { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 0; border-bottom: 1.5px solid color-mix(in srgb, var(--note-ink) 12%, transparent); }
.tick { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 2px solid color-mix(in srgb, var(--note-ink) 28%, transparent); background: color-mix(in srgb, var(--note-wash) 55%, transparent); color: transparent; display: grid; place-items: center; transition: transform .3s var(--spring), background .15s, color .15s; }
.tick svg { width: 18px; height: 18px; }
.tick:hover { transform: scale(1.1) rotate(-6deg); color: color-mix(in srgb, var(--note-ink) 35%, transparent); border-color: color-mix(in srgb, var(--note-ink) 50%, transparent); }
.tick[aria-pressed="true"] { background: var(--done); border-color: var(--done); color: #fff; }
.todo-t { flex: 1; min-width: 0; display: grid; gap: 4px; padding: 4px 6px; margin-left: -6px; border: 0; border-radius: 10px; background: none; color: inherit; text-align: left; transition: background .15s; }
.todo-t:hover { background: color-mix(in srgb, var(--note-wash) 45%, transparent); }
.todo-t .t { font-weight: 650; font-size: 17px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.todo-t .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.todo-t .proj { color: var(--ink-2); }
.todo-row.done .todo-t .t { text-decoration: line-through; text-decoration-thickness: 2.5px; text-decoration-color: color-mix(in srgb, var(--done) 75%, transparent); opacity: .6; }
.st { font: 600 10.5px var(--mono); padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--note-wash) 60%, transparent); color: var(--ink-2); white-space: nowrap; }
.st.ongoing { color: var(--ongoing-ink); } .st.review { color: var(--review-ink); } .st.done { color: var(--done-ink); }
.my-list .x { margin-top: 0; opacity: .5; color: var(--note-ink); }
.my-list .x:hover { opacity: 1; background: color-mix(in srgb, var(--note-wash) 60%, transparent); color: var(--bad); }
.todo-row.add { border-bottom: 0; }
.todo-add { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 0; border: 0; background: none; color: inherit; text-align: left; opacity: .72; transition: opacity .15s, transform .25s var(--spring); }
.todo-add svg { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 9px; border: 2px dashed currentColor; }
.todo-add span { font: 600 26px/1 var(--hand); }
.todo-add:hover { opacity: 1; transform: translateX(3px); }
.from-week { margin-top: 12px; padding-top: 12px; border-top: 2px dashed color-mix(in srgb, var(--note-ink) 22%, transparent); display: grid; gap: 4px; }
.fw-h { font: 600 22px/1 var(--hand); opacity: .65; margin-bottom: 4px; }
.fw { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--note-wash) 35%, transparent); color: inherit; text-align: left; font-size: 14px; transition: background .15s, transform .25s var(--spring); }
.fw .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.fw svg { flex: none; width: 16px; height: 16px; opacity: .55; }
.fw:hover { background: color-mix(in srgb, var(--note-wash) 75%, transparent); transform: translateX(3px); }
.fw:hover svg { opacity: 1; }
.fw-none { margin: 12px 0 0; font: 600 22px/1.15 var(--hand); opacity: .6; }
.team-col .notes { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.note {
  --bg: var(--n-yellow); position: relative; padding: 18px 16px 16px; background: var(--bg); color: var(--note-ink);
  border-radius: 4px 4px 20px 4px; box-shadow: var(--shadow); rotate: var(--r, -1deg); transition: rotate .35s var(--spring), translate .35s var(--spring), box-shadow .3s;
}
.note:hover { rotate: 0deg; translate: 0 -4px; box-shadow: var(--shadow-lift); }
.note::before { content: ""; position: absolute; top: -9px; left: 50%; width: 70px; height: 18px; transform: translateX(-50%) rotate(-2deg); background: color-mix(in srgb, var(--note-wash) 55%, transparent); border: 1px solid color-mix(in srgb, var(--note-ink) 6%, transparent); }
.note-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.note-head b { font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-head small { display: block; font: 500 11px var(--mono); opacity: .6; white-space: nowrap; }
.note .line { background: color-mix(in srgb, var(--note-wash) 55%, transparent); color: var(--note-ink); }
.note .line:hover { background: color-mix(in srgb, var(--note-wash) 85%, transparent); border-color: var(--note-ink); }
.note .line .proj { color: var(--ink-2); }
.note .line .t { font-size: 14px; }
.note .nope { font: 600 25px/1.1 var(--hand); opacity: .55; padding: 8px 2px 4px; }
.note.quiet { filter: saturate(.35); opacity: .8; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.section-h h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.035em; }
.section-h small { font: 500 12px var(--mono); color: var(--ink-3); }

/* ───────── WEEK ───────── */
.week-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lineup { position: relative; display: flex; gap: 0; align-items: stretch; margin-bottom: 26px; border-radius: 20px; background: var(--swing); color: #fff; overflow: hidden; border: 1.5px solid var(--ink); box-shadow: 0 4px 0 var(--hard); }
.lineup-h { padding: 16px 20px; display: grid; align-content: center; border-right: 2px dashed rgba(255,255,255,.4); min-width: 170px; }
.lineup-h b { font: 800 26px/1 var(--display); letter-spacing: -0.04em; }
.lineup-h small { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-top: 4px; }
.lineup ol { display: flex; gap: 10px; margin: 0; padding: 14px 16px; list-style: none; overflow-x: auto; counter-reset: d; }
.lineup li { counter-increment: d; flex: none; display: flex; gap: 10px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 99px; background: rgba(255,255,255,.16); white-space: nowrap; font-weight: 600; }
.lineup li::before { content: counter(d); width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--swing); display: grid; place-items: center; font: 700 12px var(--mono); }

.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.plan { position: relative; padding: 18px; border-radius: 24px; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 14px; transition: transform .3s var(--spring), box-shadow .3s; }
.plan:hover { box-shadow: var(--shadow-lift); }
.plan.mine { border-color: var(--ink); box-shadow: 0 4px 0 var(--hard); }
.plan.idle { opacity: .6; padding: 14px 18px; }
.plan-head { display: flex; align-items: center; gap: 12px; padding-right: 100px; }
.plan-head b { display: block; font-size: 18px; letter-spacing: -0.025em; white-space: nowrap; }
.plan-head small { display: block; font: 500 11.5px var(--mono); color: var(--ink-3); white-space: nowrap; }
.stamp {
  position: absolute; right: 16px; top: 18px; padding: 4px 9px; border: 2.5px solid currentColor; border-radius: 8px;
  font: 800 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; transform: rotate(8deg); white-space: nowrap;
  mix-blend-mode: multiply; opacity: .9;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stamp { mix-blend-mode: normal; } }
:root[data-theme="dark"] .stamp { mix-blend-mode: normal; }
.stamp.good { color: var(--done); } .stamp.talk { color: var(--accent); } .stamp.pending { color: var(--ink-3); } .stamp.draft { color: var(--ink-3); border-style: dashed; }
.blocks { display: flex; gap: 4px; flex-wrap: wrap; }
.blocks i { width: 22px; height: 22px; border-radius: 6px; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); transition: transform .3s var(--spring); }
.blocks i:hover { transform: translateY(-4px) rotate(-8deg); }
.blocks i.todo { --c: var(--todo-bg); box-shadow: inset 0 0 0 1.5px var(--todo); } .blocks i.ongoing { --c: var(--ongoing); } .blocks i.review { --c: var(--review); } .blocks i.done { --c: var(--done); }
.blocks em { font: 500 12px var(--mono); font-style: normal; color: var(--ink-3); align-self: center; margin-left: 6px; white-space: nowrap; }
.plan-items { display: grid; gap: 6px; }
.plan .line { background: var(--paper); }
.plan .line:hover { background: var(--card); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; font: 600 11px var(--mono); white-space: nowrap; }
.badge.mid { background: var(--accent-soft); color: var(--accent); }
.badge.exp { background: var(--swing-bg); color: var(--swing); }
.badge.from { background: var(--paper-2); color: var(--ink-2); }
.speech { position: relative; margin-left: 40px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--review-bg); color: var(--ink); font-size: 14px; }
.speech.good { background: var(--done-bg); }
.speech .av { position: absolute; left: -38px; bottom: 0; }
.speech b { font-weight: 700; }
.outcome { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; padding-left: 36px; }
.outcome button { height: 28px; padding: 0 11px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); font: 500 12px var(--mono); color: var(--ink-2); white-space: nowrap; transition: transform .25s var(--spring); }
.outcome button:hover { transform: translateY(-2px); border-color: var(--ink); }
.outcome button[aria-pressed="true"] { color: #fff; border-color: transparent; font-weight: 700; }
.outcome .met[aria-pressed="true"] { background: var(--done); }
.outcome .partial[aria-pressed="true"] { background: var(--review); color: #2a1d00; }
.outcome .missed[aria-pressed="true"] { background: var(--bad); }
.outcome .demo[aria-pressed="true"] { background: var(--swing); }
.outcome .sep { width: 1.5px; height: 18px; background: var(--line); margin: 0 4px; }
.swing { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--swing-bg); color: var(--swing); font-weight: 600; }
.swing svg { width: 22px; height: 22px; flex: none; animation: zap 1.6s ease-in-out infinite; }
@keyframes zap { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-14deg) scale(1.15); } 20% { transform: rotate(10deg); } 30% { transform: rotate(0); } }
.plan-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-foot .grow { flex: 1; }

/* ───────── BOARD ───────── */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.search { height: 40px; width: 240px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); padding: 0 16px; outline: none; font-size: 15px; }
.search:focus { border-color: var(--ink); }
.chip.pk-chip svg { width: 15px; height: 15px; flex: none; }
.chip.pk-chip[aria-expanded="true"] { border-color: var(--ink); }
.caret { flex: none; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .55; transition: transform .25s var(--spring); }
[aria-expanded="true"] > .caret { transform: rotate(180deg); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.people { display: flex; gap: 2px; padding: 3px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); }
.people button { border: 0; background: none; padding: 2px; border-radius: 50%; transition: transform .3s var(--spring); }
.people button .av { opacity: .45; filter: grayscale(.6); transition: opacity .2s, filter .2s; }
.people button:hover { transform: translateY(-3px); }
.people button:hover .av, .people button[aria-pressed="true"] .av { opacity: 1; filter: none; }
.people button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
/* Once any filter is on, everything not selected steps back. */
.fz .chip, .fz .search, .fz .people { transition: opacity .2s, filter .2s, transform .25s var(--spring), background .15s; }
.fz.on .chip:not([aria-pressed="true"]), .fz.on .chip[data-any], .fz.on .search:placeholder-shown, .fz.on .people:not(.set) { opacity: .45; filter: saturate(.25); }
.fz.on .chip[data-any][aria-pressed="true"] { background: var(--card); color: var(--ink-2); border-color: var(--line); }
.fz.on .chip:hover, .fz.on .chip:focus-visible, .fz.on .search:focus, .fz.on .people:hover { opacity: 1; filter: none; }
.board { display: grid; grid-template-columns: repeat(4, minmax(260px, 1fr)); gap: 16px; align-items: start; overflow-x: auto; padding: 4px 4px 12px; margin: 0 -4px; }
.lane { position: relative; min-height: 380px; padding: 12px; border-radius: 24px; background: color-mix(in srgb, var(--lane) 55%, transparent); border: 1.5px dashed transparent; display: grid; gap: 10px; align-content: start; transition: background .2s, border-color .2s, transform .3s var(--spring); }
.lane.todo { --lane: var(--todo-bg); --solid: var(--todo); } .lane.ongoing { --lane: var(--ongoing-bg); --solid: var(--ongoing); }
.lane.review { --lane: var(--review-bg); --solid: var(--review); } .lane.done { --lane: var(--done-bg); --solid: var(--done); }
.lane.over { border-color: var(--ink); background: color-mix(in srgb, var(--lane) 95%, transparent); transform: scale(1.01); }
.lane-h { display: flex; align-items: center; gap: 10px; padding: 4px 6px 8px; }
.lane-h b { font: 800 19px var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.lane-h .n { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; background: var(--solid); color: #fff; font: 700 12px var(--mono); }
.lane.todo .lane-h .n { color: var(--ink); background: var(--card); }
.lane-h small { margin-left: auto; font: 500 11px var(--mono); color: var(--ink-3); white-space: nowrap; }
.tile {
  position: relative; display: grid; gap: 10px; width: 100%; text-align: left; padding: 14px 14px 12px; border-radius: 16px;
  background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); cursor: grab;
  transition: transform .3s var(--spring), box-shadow .3s, border-color .15s;
}
.tile:hover { transform: translateY(-3px) rotate(-.8deg); box-shadow: var(--shadow-lift); border-color: var(--ink); }
.tile.dragging { opacity: .35; transform: rotate(4deg) scale(.96); }
.tile::before { content: ""; position: absolute; left: 14px; top: -1.5px; width: 34px; height: 4px; border-radius: 0 0 4px 4px; background: var(--c); }
.tile .t { font-weight: 600; font-size: 15px; line-height: 1.3; }
.tile-foot { display: flex; align-items: center; gap: 8px; }
/* ───────── stacks (linked items) ───────── */
.tw { position: relative; display: grid; transition: opacity .2s, filter .2s, margin-bottom .3s var(--soft); }
.tw:hover, .tw.lit { z-index: 3; }
.tile.linked .t { padding-right: 58px; }
.stack-pill { position: absolute; top: 10px; right: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 99px; border: 1.5px solid transparent; background: var(--swing-bg); color: var(--swing); font: 700 11px var(--mono); cursor: pointer; transition: transform .25s var(--spring), border-color .15s; }
.stack-pill svg { width: 12px; height: 12px; }
.stack-pill:hover, .stack-pill:focus-visible { transform: scale(1.08); border-color: var(--swing); }
.after-line { display: flex; align-items: center; gap: 7px; margin-top: -4px; font: 500 12px var(--mono); color: var(--ink-2); min-width: 0; }
.after-line .sdot { width: 9px; height: 9px; box-shadow: none; animation: none; }
.after-line span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.wait { border-style: dashed; background: color-mix(in srgb, var(--card) 82%, transparent); }
.tile.wait > :not(.stack-pill) { opacity: .78; }
.tile.ready { border-color: var(--done); box-shadow: 0 0 0 3px color-mix(in srgb, var(--done) 22%, transparent), var(--shadow); }
.ready-tag { justify-self: start; margin-top: -4px; font: 600 11px var(--mono); color: var(--done-ink); background: var(--done-bg); padding: 2px 8px; border-radius: 7px; }
/* hover the pill: the stack lifts, everything else fades, steps get numbers */
.board.stack-lit .tw:not(.lit) { opacity: .25; filter: grayscale(.7); }
.tw.lit .tile { transform: translateY(-5px) scale(1.02); border-color: var(--swing); box-shadow: 0 0 0 3px color-mix(in srgb, var(--swing) 28%, transparent), var(--shadow-lift); }
.order { position: absolute; z-index: 4; top: -15px; left: 50%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; display: none; place-items: center; background: var(--swing); color: #fff; font: 800 15px var(--display); border: 2.5px solid var(--card); box-shadow: 0 3px 0 var(--hard); }
.tw.lit .order { display: grid; animation: orderIn .4s var(--spring); }
@keyframes orderIn { from { transform: scale(0) rotate(-30deg); } }
/* hover a card: what's next peeks out from underneath */
.peek { position: absolute; left: 12px; right: 12px; bottom: 0; z-index: 0; display: flex; align-items: center; gap: 6px; height: 40px; padding: 16px 10px 0; border: 1.5px dashed var(--swing); border-top: 0; border-radius: 0 0 14px 14px; background: var(--swing-bg); color: var(--swing); font: 600 11.5px var(--mono); opacity: 0; transform: translateY(-14px); transition: transform .3s var(--spring), opacity .15s; pointer-events: none; }
.peek svg { flex: none; width: 13px; height: 13px; }
.peek span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peek .av.sm { flex: none; width: 20px; height: 20px; min-width: 0; font-size: 11px; }
.tw > .tile { z-index: 1; }
/* the card below makes room, so the peek never covers it */
.tw:has(.peek):hover:not(.lit):not(:has(.dragging)) { margin-bottom: 28px; }
.tw:hover .peek { opacity: 1; transform: translateY(28px); }
.tw:has(.tile.dragging) .peek, .board.stack-lit .peek { opacity: 0; transform: translateY(-14px); }
.badge.wait { gap: 4px; background: var(--swing-bg); color: var(--swing); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.badge.wait svg { flex: none; width: 11px; height: 11px; }
.badge.ready { background: var(--done-bg); color: var(--done-ink); }
/* the stack overlay */
dialog#modal.wide { width: min(1020px, calc(100vw - 24px)); }
dialog#modal.stack-view { background: color-mix(in srgb, var(--card) 45%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-color: color-mix(in srgb, var(--ink) 16%, transparent); box-shadow: 0 30px 80px -20px rgba(0,0,0,.35); }
dialog#modal.stack-view::backdrop { background: rgba(20,16,10,.16); backdrop-filter: blur(1.5px); }
dialog#modal.stack-view .m-foot { border-top-color: color-mix(in srgb, var(--ink) 12%, transparent); }
dialog#modal.stack-view .cc { box-shadow: 0 14px 30px -12px rgba(0,0,0,.35); }
dialog#modal.stack-view .cc:hover { box-shadow: 0 20px 36px -12px rgba(0,0,0,.4); }

/* in-app confirm */
dialog#modal.confirm { width: min(420px, calc(100vw - 24px)); }
.confirm-body { display: grid; gap: 10px; justify-items: start; }
.confirm-body p { margin: 0; color: var(--ink-2); }
/* The items a label is on. Scrolls once it's longer than ~6 rows. */
.confirm-list { list-style: none; margin: 0; padding: 4px; width: 100%; max-height: 264px; overflow-y: auto; overscroll-behavior: contain; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); }
.confirm-list li { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 6px 10px; border-radius: 10px; }
.confirm-list li + li { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.confirm-list .t { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.confirm-list li.done .t { color: var(--ink-3); text-decoration: line-through; }
.confirm-list .sdot { flex: none; }
.confirm-list .proj { flex: none; max-width: 40%; }
.confirm-list .proj span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack-scroll { overflow-x: auto; margin: 0 -22px; padding: 18px 22px 8px; }
.stack-track { position: relative; display: flex; align-items: center; gap: 64px; width: max-content; min-width: 100%; justify-content: center; padding: 6px 0; }
.stack-col { display: grid; gap: 16px; width: 220px; }
.stack-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; color: var(--swing); }
.stack-svg path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.stack-svg path.w { stroke-dasharray: 6 7; }
.stack-svg marker path { stroke: none; }
.cc { position: relative; display: grid; gap: 8px; padding: 22px 14px 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); text-align: left; box-shadow: var(--shadow); transition: transform .25s var(--spring), border-color .15s; }
.cc:hover { transform: translateY(-3px); border-color: var(--ink); }
.cc.here { border-color: var(--swing); box-shadow: 0 0 0 3px color-mix(in srgb, var(--swing) 25%, transparent), var(--shadow); }
.cc.wait { border-style: dashed; }
.cc.done .t { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--done) 60%, transparent); text-decoration-thickness: 2px; }
.cc .t { font-weight: 650; font-size: 15px; line-height: 1.3; }
.cc-n { position: absolute; top: -14px; left: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--swing); color: #fff; font: 800 14px var(--display); border: 2.5px solid var(--card); }
.cc.done .cc-n { background: var(--done); }
.cc-meta { display: flex; align-items: center; gap: 6px; }
.cc-meta .grow { flex: 1; }
.cc .st { background: var(--paper-2); color: var(--ink-2); }
.cc .st.ongoing { color: var(--ongoing-ink); } .cc .st.review { color: var(--review-ink); } .cc .st.done { color: var(--done-ink); }
@media (max-width: 640px) {
  .stack-track { flex-direction: column; gap: 46px; width: 100%; }
  .stack-col { width: 100%; }
}
/* the Stack field in the item modal */
.links { display: grid; gap: 8px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.lk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lk-k { width: 92px; font: 500 12px var(--mono); color: var(--ink-3); }
.lk-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 30px; padding: 0 4px 0 10px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); }
.lk-chip .sdot { width: 9px; height: 9px; box-shadow: none; animation: none; }
.lk-t { border: 0; background: none; padding: 0; color: var(--ink); font: 500 13px var(--display); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-t:hover { text-decoration: underline; }
.lk-x { border: 0; background: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.lk-x:hover { background: var(--bad-bg); color: var(--bad); }
.lk-x svg { width: 11px; height: 11px; }
.lk-add { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 99px; border: 1.5px dashed var(--line); background: none; color: var(--ink-2); font: 500 12.5px var(--mono); }
.lk-add:hover { border-color: var(--ink); color: var(--ink); }
.lk-add.strong { border-style: solid; border-color: var(--swing); color: var(--swing); background: var(--swing-bg); font-weight: 700; }
.lk-add svg { width: 13px; height: 13px; }
.lk-add:disabled { opacity: .35; cursor: default; border-color: var(--line); color: var(--ink-3); }
/* Priority field in the item modal: the five levels, then Top / Up / Down for an open item */
.prio { display: grid; gap: 8px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.prio-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.prio-pick button { display: flex; align-items: center; justify-content: center; gap: 5px; height: 38px; padding: 0 6px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-2); font: 600 13px var(--display); white-space: nowrap; transition: transform .25s var(--spring); }
.prio-pick button svg { flex: none; width: 15px; height: 15px; }
.prio-pick button:hover { transform: translateY(-2px); }
.prio-pick button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--card); box-shadow: 0 3px 0 var(--hard); }
.prio-pick button.highest[aria-pressed="true"] { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.prio-pick .highest svg { color: var(--bad); } .prio-pick .high svg { color: #f76b15; } .prio-pick .medium svg { color: #d98a00; }
.prio-pick .low svg, .prio-pick .lowest svg { color: var(--ink-3); }
.prio-move { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.prio-move > span { margin-right: auto; font: 13px var(--display); color: var(--ink-3); }
@media (max-width: 520px) { .prio-pick button span { display: none; } .prio-pick button { height: 40px; } }
/* Whose week: one toggle per person */
.wk-row { display: flex; flex-wrap: wrap; gap: 6px; text-transform: none; letter-spacing: 0; }
.wk-who { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px 0 3px; border-radius: 99px; border: 1.5px dashed var(--line); background: none; color: var(--ink-2); font: 500 13px var(--display); transition: transform .25s var(--spring), background .15s, border-color .15s; }
.wk-who .av { opacity: .5; filter: grayscale(.6); transition: opacity .2s, filter .2s; }
.wk-who:hover { transform: translateY(-2px); border-color: var(--ink); color: var(--ink); }
.wk-who[aria-pressed="true"] { border-style: solid; border-color: var(--done); background: var(--done-bg); color: var(--done-ink); font-weight: 700; }
.wk-who[aria-pressed="true"] .av, .wk-who:hover .av { opacity: 1; filter: none; }
.wk-who.locked { cursor: not-allowed; }
.wk-who.locked:hover { transform: none; }
.lk-find { display: grid; gap: 6px; }
.lk-find[hidden] { display: none; }
.lk-results { display: grid; gap: 4px; }
.lk-hit { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid transparent; background: var(--paper); color: var(--ink); text-align: left; font: 500 14px var(--display); }
.lk-hit > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-hit:hover { border-color: var(--ink); }
.lk-hit .sdot { width: 9px; height: 9px; box-shadow: none; animation: none; }
.follow-of { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--swing-bg); color: var(--swing); font-size: 14px; }
.follow-of svg { flex: none; width: 15px; height: 15px; }
.tile-foot .proj { flex: 1; }
.pr { display: inline-flex; align-items: center; gap: 4px; font: 600 11.5px var(--mono); color: var(--review-ink); background: var(--review-bg); padding: 2px 7px; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.pr svg { width: 13px; height: 13px; }
.lane .more { border: 1.5px dashed color-mix(in srgb, var(--ink) 25%, transparent); background: transparent; border-radius: 14px; padding: 10px; font: 500 13px var(--mono); color: var(--ink-2); transition: background .15s, transform .25s var(--spring); }
.lane .more:hover { background: var(--card); transform: translateY(-2px); }
.lane-switch { display: none; } /* phones only, see the 860px block */
.lane .drop-hint { display: none; text-align: center; font: 600 26px var(--hand); color: var(--ink-2); padding: 16px 0; }
.lane.over .drop-hint { display: block; }
/* Priority on a card: a level mark at the bottom left (never top right, that's the stack pill), the flag tint for
   Highest, and Low / Lowest greyed out a little / more. The line shows where a dragged card lands. */
.pri { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; }
.pri svg { width: 15px; height: 15px; }
.pri.highest { color: var(--bad); } .pri.high { color: #f76b15; } .pri.medium { color: #d98a00; } .pri.low, .pri.lowest { color: var(--ink-3); }
.pri-btn { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin: -3px -2px -3px -5px; border: 0; border-radius: 8px; background: none; color: var(--ink-3); cursor: pointer; transition: background .15s, opacity .15s, transform .25s var(--spring); }
.pri-btn svg { width: 16px; height: 16px; }
.pri-btn:hover, .pri-btn[aria-expanded="true"] { background: var(--paper-2); transform: scale(1.1); }
.pri-btn.highest { color: var(--bad); } .pri-btn.high { color: #f76b15; } .pri-btn.medium { color: #d98a00; }
.pri-btn.medium { opacity: 0; } /* the default stays out of the way until you look for it */
.tile:hover .pri-btn.medium, .tile:focus-within .pri-btn.medium, .pri-btn.medium:focus-visible, .pri-btn.medium[aria-expanded="true"] { opacity: .55; }
@media (hover: none) { .pri-btn.medium { opacity: .3; } }
.tile.p-highest { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); background: color-mix(in srgb, var(--bad) 6%, var(--card)); }
.tile.p-highest:hover { border-color: var(--bad); }
.tile.p-low > :not(.stack-pill) { opacity: .72; }
.tile.p-lowest > :not(.stack-pill) { opacity: .48; filter: grayscale(.8); }
.tile.p-low { box-shadow: none; } .tile.p-lowest { box-shadow: none; background: color-mix(in srgb, var(--card) 70%, transparent); }
.tile.p-low:hover > *, .tile.p-lowest:hover > *, .tile.p-low:focus-visible > *, .tile.p-lowest:focus-visible > * { opacity: 1; filter: none; }
.line .meta .pri { margin-right: -2px; }
/* press-and-hold drag on touch screens */
.tile, .mn-line, .xp-item { -webkit-touch-callout: none; }
@media (hover: none) { [data-drag] { -webkit-user-select: none; user-select: none; } }
.held { position: relative; z-index: 20; transition: none !important; box-shadow: var(--shadow-lift) !important; border-color: var(--ink) !important; }
.lane:has(.drop-line) .drop-hint { display: none; } /* the line says where; no need for the big hint too */
[data-drop] { position: relative; }
.drop-line { position: absolute; z-index: 6; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--ink); pointer-events: none; box-shadow: 0 0 0 2px var(--card); }
.drop-line::before, .drop-line::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--ink); }
.drop-line::before { left: -5px; } .drop-line::after { right: -5px; }
.drop-line.top { background: var(--accent); } .drop-line.top::before, .drop-line.top::after { background: var(--accent); }

/* ───────── PORTFOLIO ───────── */
.group-h { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; }
.group-h h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; }
.group-h span { font: 600 12px var(--mono); padding: 3px 9px; border-radius: 99px; background: var(--ink); color: var(--paper); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.panel { padding: 18px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.panel .tag { height: 28px; font-size: 12px; padding: 0 10px; }
.panel .tag button { border: 0; background: none; padding: 0; margin-left: 2px; color: inherit; opacity: .5; display: grid; }
.panel .tag button:hover { opacity: 1; }
.panel .tag button svg { width: 12px; height: 12px; }
.member { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1.5px dashed var(--line); }
.member:first-child { border-top: 0; padding-top: 0; }
.member b { font-weight: 600; white-space: nowrap; }
.member .muted { font: 12px var(--mono); }
.member select { height: 32px; width: auto; padding: 0 28px 0 12px; border-radius: 99px; font-size: 13px; }
.role { font: 600 11px var(--mono); padding: 3px 9px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.role.lead { background: var(--accent-soft); color: var(--accent); }
.ticket { margin-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px; border-radius: 16px; border: 2px dashed var(--ink); background: var(--paper); }
.ticket code { font: 700 18px var(--mono); letter-spacing: .06em; }
.ticket small { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); width: 100%; }

/* eagle eye (portfolio) */
.hero.compact { margin-bottom: 18px; align-items: center; }
.hero.compact .big { font-size: clamp(38px, 4.6vw, 60px); }
.mini-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-stats span { display: inline-flex; align-items: baseline; gap: 7px; height: 38px; padding: 0 14px; border-radius: 99px; background: var(--card); border: 1.5px solid var(--line); font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); white-space: nowrap; line-height: 36px; }
.mini-stats b { font: 800 20px/1 var(--display); color: var(--ink); letter-spacing: -0.03em; text-transform: none; }
.mini-stats .hot { background: var(--accent); border-color: var(--accent); color: #ffe3d4; } .mini-stats .hot b { color: #fff; }
.mini-stats .warn { background: var(--review-bg); border-color: transparent; color: var(--review-ink); } .mini-stats .warn b { color: var(--review-ink); }
.radar-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.radar { padding: 6px 18px 14px; border-radius: 24px; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow);
  /* Every project row shares these columns. The name column grows with the longest name, up to 320px, then wraps.
     The blocks always keep room to lay out in a row; the flags (grabs, IL, repo) stay on one line when there's room and wrap, centred, when there isn't. */
  display: grid; grid-template-columns: fit-content(320px) 110px minmax(180px, 1fr) auto 32px; column-gap: 14px; }
.radar > *, .radar-group > * { grid-column: 1 / -1; }
.radar-group { display: grid; grid-template-columns: subgrid; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; padding: 10px 2px 4px; font: 500 11px var(--mono); color: var(--ink-2); }
.legend span { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.legend .pb { width: 11px; height: 11px; cursor: default; }
.radar-group { padding-top: 6px; }
.radar-h { display: flex; align-items: baseline; gap: 10px; padding: 10px 2px 6px; border-bottom: 1.5px dashed var(--line); }
.radar-h h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.radar-h span { font: 700 11px var(--mono); padding: 2px 8px; border-radius: 99px; background: var(--ink); color: var(--paper); }
.radar-h small { margin-left: auto; font: 500 11px var(--mono); color: var(--ink-3); white-space: nowrap; }
.radar-group.idle .radar-h span { background: var(--accent); color: #fff; }
.prow { display: grid; grid-template-columns: subgrid; gap: 14px; align-items: center; min-height: 46px; padding: 5px 4px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); transition: background .15s; border-radius: 10px; }
.prow:last-child { border-bottom: 0; }
.prow:hover { background: var(--paper); }
.pname { display: flex; align-items: center; gap: 9px; min-width: 150px; border: 0; background: none; padding: 0; text-align: left; }
.pname i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); transform: rotate(45deg); flex: none; transition: transform .4s var(--spring); }
.pname:hover i { transform: rotate(225deg) scale(1.2); }
.pname b { font-weight: 700; font-size: 15.5px; line-height: 1.25; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pname:hover b { color: var(--accent); }
.pstate { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; background: var(--swing-bg); color: var(--swing); flex: none; }
.pwho .nobody { font: 600 19px var(--hand); color: var(--ink-3); }
.pblocks { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-width: 0; }
.pb { width: 16px; height: 16px; padding: 0; border: 0; border-radius: 4px; background: var(--c); box-shadow: inset 0 -2.5px 0 rgba(0,0,0,.16); transition: transform .3s var(--spring); }
.pb:hover { transform: translateY(-4px) rotate(-10deg) scale(1.2); }
.pb.todo { --c: var(--todo); } .pb.ongoing { --c: var(--ongoing); } .pb.review { --c: var(--review); } .pb.done { --c: var(--done); }
.pb.free { background: transparent; box-shadow: none; outline: 2px dashed var(--accent); outline-offset: -2px; animation: beckon 2.4s ease-in-out infinite; }
@keyframes beckon { 50% { transform: scale(1.15); } }
.pdone { font: 500 11px var(--mono); color: var(--done-ink); margin-left: 4px; white-space: nowrap; }
.pflags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.grab { border: 0; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font: 600 11.5px var(--mono); white-space: nowrap; transition: transform .25s var(--spring); }
.grab:hover { transform: translateY(-2px) rotate(-2deg); background: var(--accent); color: #fff; }
.il-wait { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--review-bg); color: var(--review-ink); font: 600 11.5px var(--mono); white-space: nowrap; }
.il-wait svg { flex: none; width: 12px; height: 12px; }
.prepo { display: inline-flex; align-items: center; gap: 5px; max-width: 170px; height: 26px; padding: 0 10px; border-radius: 99px; border: 1.5px solid var(--line); background: none; color: var(--ink-2); font: 500 11.5px var(--mono); text-decoration: none; white-space: nowrap; }
.prepo span { overflow: hidden; text-overflow: ellipsis; }
.prepo svg { flex: none; width: 13px; height: 13px; }
.prepo:hover { border-color: var(--ink); color: var(--ink); }
.prepo.none { border-style: dashed; color: var(--ink-3); opacity: 0; transition: opacity .15s; }
.prow:hover .prepo.none, .prepo.none:focus-visible { opacity: 1; }
.pedit { justify-self: center; opacity: 0; transition: opacity .15s; }
.prow:hover .pedit, .pedit:focus-visible { opacity: 1; }
.parked-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 2px 4px; }
.parked-row .chip { opacity: .7; height: 30px; font-size: 12px; }
.side-col { display: grid; gap: 14px; }
.side-col .panel { padding: 14px 16px; }
.side-col .section-h { margin-bottom: 8px; }
.side-col .section-h h2 { font-size: 18px; }
.side-col .member { padding: 6px 0; gap: 10px; }
.side-col .member b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.side-col .member select { height: 28px; font-size: 12px; padding: 0 26px 0 10px; }
.side-col .ticket { margin-top: 10px; padding: 10px 12px; gap: 6px; }
.side-col .ticket code { font-size: 15px; }
.side-col .tag { height: 24px; font-size: 11px; padding: 0 8px; }
.side-col .tag button { border: 0; background: none; padding: 0; margin-left: 2px; color: inherit; opacity: .5; display: grid; }
.side-col .tag button:hover { opacity: 1; }
.side-col .tag button svg { width: 11px; height: 11px; }
@media (max-width: 1080px) { .radar-wrap { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .radar, .radar-group { display: block; }
  .pname { min-width: 0; }
  .prow { grid-template-columns: minmax(0, 1fr) auto 32px; gap: 6px 10px; padding: 10px 4px; }
  .pedit { grid-row: 1; grid-column: 3; }
  .pwho { justify-self: end; }
  .pblocks { grid-column: 1 / -1; }
  .pflags { grid-column: 1 / -1; justify-content: flex-start; }
  .pedit, .prepo.none { opacity: 1; }
  .hero.compact { align-items: flex-start; }
}

/* ───────── info drawer ───────── */
.drawer-wrap { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.scrim { position: absolute; inset: 0; background: rgba(20,16,10,.35); opacity: 0; transition: opacity .3s; }
.drawer { position: absolute; right: 12px; top: 12px; bottom: 12px; width: min(460px, calc(100vw - 24px)); overflow-y: auto; border-radius: 26px; background: var(--card); border: 1.5px solid var(--ink); box-shadow: 0 6px 0 var(--hard); transform: translateX(calc(100% + 80px)) rotate(3deg); visibility: hidden; transition: transform .55s var(--spring), visibility 0s .55s; }
/* Closed, the tilt swings the bottom-left corner back on screen in tall windows; push it further out and hide it once it has slid away. */
.drawer-wrap.open { pointer-events: auto; }
.drawer-wrap.open .scrim { opacity: 1; }
.drawer-wrap.open .drawer { transform: none; visibility: visible; transition: transform .55s var(--spring); }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: var(--card); border-bottom: 1.5px dashed var(--line); }
.drawer-head b { font: 800 22px var(--display); letter-spacing: -0.04em; }
.drawer-body { padding: 6px 22px 40px; }
.drawer-body section { padding: 18px 0; border-bottom: 1.5px dashed var(--line); }
.drawer-body section:last-child { border-bottom: 0; }
.drawer-body section.here h3::after { content: "you are here"; margin-left: auto; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 99px; background: var(--accent); color: #fff; }
.drawer-body h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.drawer-body h3 .n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 12px var(--mono); transform: rotate(-6deg); }
.drawer-body p, .drawer-body li { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.drawer-body p { margin-bottom: 8px; }
.drawer-body ul { margin: 0; padding-left: 18px; }
.drawer-body li { margin-bottom: 5px; }
.drawer-body strong { color: var(--ink); }
.manifesto { padding: 20px 0 18px; border-bottom: 1.5px dashed var(--line); }
.manifesto .big2 { font: 800 30px/1.02 var(--display); letter-spacing: -0.045em; margin-bottom: 12px; }
.manifesto .big2 em { font-style: normal; color: var(--accent); }
.manifesto p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 8px; }
.rhythm { display: grid; gap: 8px; }
.rhythm div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 14px; background: var(--paper); }
.rhythm b { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.flow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 6px 0 12px; }
.flow .arr { color: var(--ink-3); }
.nope-list { display: flex; flex-wrap: wrap; gap: 6px; }
.nope-list span { font: 500 12.5px var(--mono); padding: 4px 10px; border-radius: 99px; background: var(--paper-2); color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }

/* ───────── modal ───────── */
dialog#modal { border: 1.5px solid var(--ink); border-radius: 26px; padding: 0; width: min(580px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: var(--card); color: var(--ink); box-shadow: 0 6px 0 var(--hard); }
dialog#modal[open] { animation: modalIn .45s var(--spring); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.92) rotate(-1.5deg); } }
dialog#modal::backdrop { background: rgba(20,16,10,.4); backdrop-filter: blur(3px); }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.m-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.045em; }
.m-body { padding: 18px 22px; display: grid; gap: 16px; }
.m-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; padding: 14px 22px 18px; border-top: 1.5px dashed var(--line); }
.m-foot .left { margin-right: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.status-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.status-pick button { height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font: 600 13px var(--display); white-space: nowrap; transition: transform .25s var(--spring); }
.status-pick button:hover { transform: translateY(-2px); }
.status-pick button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 3px 0 var(--hard); }
.status-pick button[aria-pressed="true"][data-status="todo"] { background: var(--todo-bg); }
.status-pick button[aria-pressed="true"][data-status="ongoing"] { background: var(--ongoing); color: #fff; }
.status-pick button[aria-pressed="true"][data-status="review"] { background: var(--review); color: #2a1d00; }
.status-pick button[aria-pressed="true"][data-status="done"] { background: var(--done); color: #fff; }
.label-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.label-pick button { border: 0; height: 28px; opacity: .5; transition: opacity .15s, transform .25s var(--spring); }
.label-pick button:hover { opacity: .85; transform: translateY(-2px); }
.label-pick button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 1.5px var(--c); }
.label-pick .lbl-add { display: inline-grid; place-items: center; width: 28px; padding: 0; border-radius: 7px; border: 1.5px dashed var(--line); background: none; color: var(--ink-2); opacity: 1; }
.label-pick .lbl-add:hover { border-color: var(--ink); color: var(--ink); }
.label-pick .lbl-add svg { width: 13px; height: 13px; }
.lbl-input { height: 28px; width: 130px; padding: 0 8px; border-radius: 7px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font: 500 11px var(--mono); outline: none; }
span.lk-t:hover { text-decoration: none; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 30px; height: 30px; border-radius: 9px; border: 0; background: var(--c); transform: rotate(45deg) scale(.8); transition: transform .3s var(--spring); }
.swatches button:hover { transform: rotate(45deg) scale(.95); }
.swatches button[aria-pressed="true"] { transform: rotate(0) scale(1); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.picker-list { display: grid; gap: 6px; max-height: 50vh; overflow-y: auto; padding: 2px; }
.picker-group { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 10px 2px 2px; }
.picker-list .line { background: var(--paper); }
.picker-list .line:hover { background: var(--card); }
.fine { font: 12px var(--mono); color: var(--ink-3); }

/* ───────── auth ───────── */
.auth { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.auth-top { padding: 22px 0; }
.auth-main { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-bottom: 60px; }
.auth-word { font-weight: 800; font-size: clamp(72px, 13vw, 190px); line-height: .82; letter-spacing: -0.065em; user-select: none; }
.auth-word .dot { color: var(--accent); }
.auth-pitch { margin-top: 24px; font-size: 21px; color: var(--ink-2); max-width: 30ch; }
.auth-pitch b { color: var(--ink); }
.rhythm-mini { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.rhythm-mini span { font: 500 12.5px var(--mono); padding: 6px 12px; border-radius: 99px; background: var(--card); border: 1.5px solid var(--line); white-space: nowrap; }
.auth-card { padding: 28px; border-radius: 28px; background: var(--card); border: 1.5px solid var(--ink); box-shadow: 0 6px 0 var(--hard); display: grid; gap: 16px; transform: rotate(1deg); transition: transform .4s var(--spring); }
.auth-card:hover, .auth-card:focus-within { transform: rotate(0); }
.auth-card h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.045em; }
.auth-card .err { min-height: 20px; color: var(--bad); font-size: 14px; font-weight: 500; }
.auth-card .first { padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); font-size: 14px; }
.switch { font-size: 14px; color: var(--ink-3); }
.switch button { border: 0; background: none; padding: 0; font-weight: 700; color: var(--accent); }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px) rotate(-1deg); } 40%, 80% { transform: translateX(8px) rotate(1deg); } }

/* ───────── fx ───────── */
.fx { position: fixed; z-index: 100; pointer-events: none; left: 0; top: 0; will-change: transform, opacity; }
.fx.sq { width: 9px; height: 9px; border-radius: 2px; }
.fx.ci { width: 9px; height: 9px; border-radius: 50%; }
.fx.gl { font: 700 15px var(--mono); }
.big-stamp { position: absolute; z-index: 5; left: 50%; top: 50%; padding: 6px 14px; border: 4px solid currentColor; border-radius: 10px; font: 800 26px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; pointer-events: none; white-space: nowrap; background: color-mix(in srgb, var(--card) 70%, transparent); }
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center; }
.toast { padding: 11px 18px; border-radius: 99px; background: var(--ink); color: var(--paper); font-weight: 600; box-shadow: 0 4px 0 rgba(0,0,0,.25); white-space: nowrap; animation: toastIn .5s var(--spring); }
.toast.err { background: var(--bad); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(24px) scale(.8); } }

/* ───────── responsive ───────── */
@media (max-width: 1080px) { .today-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .top-in { height: 62px; gap: 10px; }
  .logo-flip { font-size: 23px; }
  .tabs { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; margin: 0; justify-content: space-between; box-shadow: 0 4px 0 var(--hard); border-color: var(--ink); }
  .tabs a { flex: 1; justify-content: center; padding: 0 8px; }
  .tabs a .lbl { display: none; }
  .menu summary b { display: none; }
  .menu summary { padding: 4px; }
  /* Board: one lane at a time. The sticky switch picks it, or swipe the lane left / right (see goLane in app.js). */
  .lane-switch { position: sticky; top: 62px; z-index: 15; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
    margin: 0 -16px 12px; padding: 8px 16px; background: color-mix(in srgb, var(--paper) 96%, transparent); }
  .lane-tab { --solid: var(--ink-3); display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; height: 40px; padding: 0 4px;
    border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 600; font-size: 13px; transition: background .2s, color .2s, border-color .2s; }
  .lane-tab > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lane-tab .n { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); font: 700 10.5px var(--mono); }
  .lane-tab.todo { --solid: var(--todo); } .lane-tab.ongoing { --solid: var(--ongoing); } .lane-tab.review { --solid: var(--review); } .lane-tab.done { --solid: var(--done); }
  .lane-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .lane-tab[aria-selected="true"] .n { background: var(--solid); color: #fff; }
  .board { display: block; overflow: visible; margin: 0; padding: 0; touch-action: pan-y; scroll-margin-top: 120px; }
  .board > .lane { display: none; min-height: 55vh; }
  .board > .lane.cur { display: grid; }
  .board .lane-h { display: none; }
  .split, .grid2, .auth-main { grid-template-columns: 1fr; }
  .plans, .notes, .projects { grid-template-columns: 1fr; }
  .search { width: 100%; }
  .meter { align-items: flex-start; }
  .status-pick { grid-template-columns: 1fr 1fr; }
  .lineup { flex-direction: column; }
  .lineup-h { border-right: 0; border-bottom: 2px dashed rgba(255,255,255,.4); }

  /* The header's blur makes it the containing block for fixed children, which kept the bottom tab bar
     stuck inside the header. Drop the blur on small screens (a near-solid header instead) so the tabs
     really sit at the bottom of the screen. */
  .top { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--paper) 96%, transparent); }
  .tabs { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .tabs a { height: 44px; }
  /* Room under the last card so the tab bar never covers it. (`.wrap`'s padding shorthand overrides
     plain `main`, hence the stronger selector.) Bar: 12px gap + ~57px tall, plus breathing room. */
  main.wrap { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  body { overflow-x: clip; } /* tilted notes and cards never cause sideways scrolling */
  .logo { min-width: 0; }
  .logo-flip { min-width: 0; }
  .logo-word { overflow: hidden; text-overflow: ellipsis; }
  .top-right { gap: 8px; }
  .i-btn { width: 38px; height: 38px; font-size: 18px; }
  /* account menu: a full-width sheet under the header instead of a popover that runs off the left edge */
  .menu .pop { position: fixed; left: 12px; right: 12px; top: 68px; width: auto; max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; }
  .hero { gap: 16px; margin-bottom: 22px; }
  .hero p { font-size: 16px; }
  .plan-head { padding-right: 92px; }
  .plan-head > * { min-width: 0; }
  .plan-head b, .plan-head small { overflow: hidden; text-overflow: ellipsis; }
  .my-list { padding: 22px 16px 18px; }
  #toasts { bottom: calc(84px + env(safe-area-inset-bottom)); width: calc(100vw - 32px); }
  .toast { white-space: normal; text-align: center; }
  dialog#modal { max-height: calc(100dvh - 24px); border-radius: 22px; }
  .m-head { padding: 18px 16px 0; }
  .m-head h2 { font-size: 22px; }
  .m-body { padding: 16px; }
  .m-foot { padding: 12px 16px 16px; }
  .stack-scroll { margin: 0 -16px; padding: 18px 16px 8px; }
}
@media (max-width: 560px) {
  /* Info panel: a full-screen sheet on small phones, sliding up from the bottom. */
  .drawer { inset: 0; width: 100%; border: 0; border-radius: 0; box-shadow: none; transform: translateY(100%); }
  .drawer-head { padding: calc(14px + env(safe-area-inset-top)) 16px 14px; }
  .drawer-body { padding: 4px 16px calc(40px + env(safe-area-inset-bottom)); }

  /* Eagle eye: edge-to-edge panels, centered header, stats and legend. */
  .hero.compact { flex-direction: column; align-items: center; text-align: center; }
  .hero.compact > div:first-child { flex: none; }
  .hero.compact .hero-side { justify-content: center; }
  .mini-stats { justify-content: center; }
  .radar, .side-col .panel { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .radar { padding: 6px 16px 14px; }
  .legend, .parked-row { justify-content: center; }
}
@media (max-width: 480px) {
  .logo-flip { font-size: 20px; }
  .logo img { height: 22px; }
}
/* Phones zoom into any text field under 16px when it's focused. Keep fields at 16px on touch screens. */
@media (max-width: 860px) and (pointer: coarse) {
  :is(.input, .search, .pk-q, .mn-search, .xp-input) { font-size: 16px !important; }
}
/* Touch screens keep :hover after a tap, so a tapped card would stay tilted. No hover lifts there. */
@media (hover: none) {
  .tile:hover, .stat:hover, .btn:hover, .chip:hover, .line:hover, .i-btn:hover, .cc:hover, .fw:hover, .todo-add:hover, .tick:hover { transform: none; }
  .note:hover { rotate: var(--r, -1deg); translate: none; }
  .meter-row .av.on:hover { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* ───────── account menu: look controls ───────── */
.menu .pop { width: 290px; }
.pref { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; font: 500 12px var(--mono); color: var(--ink-2); }
.pref > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.mini-seg { display: inline-flex; padding: 2px; border-radius: 99px; background: var(--paper-2); }
.menu .pop .mini-seg button { padding: 4px 9px; border-radius: 99px; font: 600 11.5px var(--display); color: var(--ink-2); white-space: nowrap; }
.menu .pop .mini-seg button:hover { background: transparent; color: var(--ink); }
.menu .pop .mini-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.menu .pop .switch { position: relative; width: 40px; height: 22px; padding: 0; border-radius: 99px; background: var(--paper-3); transition: background .2s; }
.menu .pop .switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .35s var(--spring); }
.menu .pop .switch[aria-pressed="true"] { background: var(--accent); }
.menu .pop .switch[aria-pressed="true"] i { transform: translateX(18px); }
.menu .pop .switch:hover { background: var(--paper-3); }
.menu .pop .switch[aria-pressed="true"]:hover { background: var(--accent); }
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; border: 1.5px solid var(--line); border-bottom-width: 3px; background: var(--card); color: var(--ink); font: 600 11px var(--mono); line-height: 1; }
kbd.r { margin-left: auto; }
.kbd-ico { width: 16px; text-align: center; font-size: 14px; }
.m-body.keys { grid-template-columns: repeat(2, 1fr); gap: 18px 26px; }
.keys h3 { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 8px; }
.key-row { display: flex; gap: 12px; align-items: center; padding: 4px 0; font-size: 14.5px; }
.key-row kbd { min-width: 30px; height: 28px; font-size: 13px; }
@media (max-width: 560px) { .m-body.keys { grid-template-columns: 1fr; } }

/* ───────── micro-interactions off ───────── */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }
html[data-motion="off"] .ch:hover, html[data-motion="off"] .av:hover, html[data-motion="off"] .blocks i:hover, html[data-motion="off"] .pb:hover { transform: none !important; }
html[data-motion="off"] .btn:hover, html[data-motion="off"] .tile:hover, html[data-motion="off"] .stat:hover, html[data-motion="off"] .chip:hover, html[data-motion="off"] .line:hover, html[data-motion="off"] .i-btn:hover { transform: none; }
html[data-motion="off"] .note:hover { rotate: var(--r, -1deg); translate: none; }
html[data-motion="off"] .tw.lit .tile, html[data-motion="off"] .cc:hover, html[data-motion="off"] .stack-pill:hover { transform: none; }
html[data-motion="off"] .tw:hover .peek { transform: translateY(28px); transition: none; }
html[data-motion="off"] .tick:hover, html[data-motion="off"] .todo-add:hover, html[data-motion="off"] .fw:hover { transform: none; }

/* ───── profile photos (all looks) ───── */
.av.photo { background: var(--paper-2); overflow: hidden; }
.av img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }
.av.xl { width: 72px; height: 72px; font-size: 38px; }
.face { width: 1.25em; height: 1.25em; border-radius: 50%; object-fit: cover; vertical-align: -0.25em; display: inline-block; }
.xp-pic .face { width: 100%; height: 100%; border-radius: 2px; vertical-align: top; }
.pic-now { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.pic-now b { display: block; }
.pic-now small { display: block; color: var(--ink-3); margin: 2px 0 10px; max-width: 34ch; }
.pic-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pic-btns label.btn { cursor: pointer; }
.pic-or { font-size: 13px; color: var(--ink-3); margin: 4px 0 8px; }
.btn.busy { opacity: .6; pointer-events: none; }

/* team list: name with the fun job title under it */
.member .m-who { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.member .m-who small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ───────── in-app pickers (popovers instead of native selects) ───────── */
.pk { position: fixed; inset: auto; margin: 0; z-index: 1000; display: flex; flex-direction: column; min-width: 240px; max-width: min(340px, calc(100vw - 16px)); max-height: min(440px, calc(100vh - 16px)); padding: 8px; overflow: hidden;
  border: 1.5px solid var(--ink); border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 4px 0 var(--hard), 0 22px 44px -16px rgba(0,0,0,.35); animation: pkIn .3s var(--spring); }
@keyframes pkIn { from { opacity: 0; transform: translateY(-8px) scale(.95) rotate(-1deg); } }
.pk-h { padding: 6px 8px 8px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.pk-q { flex: none; height: 36px; margin: 0 0 6px; padding: 0 12px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; outline: none; }
.pk-q:focus { border-color: var(--ink); }
.pk-list { display: grid; gap: 2px; overflow-y: auto; overscroll-behavior: contain; }
.pk-group { padding: 10px 10px 4px; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.pk-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 6px 10px; border: 0; border-radius: 12px; background: none; color: var(--ink); text-align: left; font: inherit; font-size: 14px; transition: background .12s, transform .25s var(--spring); }
.pk-opt:hover, .pk-opt:focus-visible { background: var(--paper-2); outline: none; transform: translateX(4px); }
.pk-opt[aria-pressed="true"] { background: var(--accent-soft); }
.pk-tick { flex: none; display: grid; margin-left: auto; color: var(--accent); }
.pk-tick svg { width: 16px; height: 16px; }
.pk-n { margin-left: auto; font: 500 11px var(--mono); color: var(--ink-3); }
.pk-n + .pk-tick { margin-left: 0; }
.pk-t { display: grid; min-width: 0; font-weight: 650; line-height: 1.25; }
.pk-t small { font: 500 11px var(--mono); color: var(--ink-3); }
.pk-any { font: 500 13px var(--mono); color: var(--ink-2); }
.pk-none { padding: 16px; text-align: center; color: var(--ink-3); font: 600 20px var(--hand); }
.pk-opt .proj { min-width: 0; font-size: 13px; color: var(--ink); white-space: normal; }
.pk-opt .proj span { overflow-wrap: anywhere; }
.pk-opt .tag { white-space: normal; height: auto; min-height: 24px; }
/* Project and owner fields in the item form open a picker instead of a select. */
.pk-trigger { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; cursor: pointer; }
.pk-trigger > span:not(.av):not(.caret) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-trigger > i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c); transform: rotate(45deg); }
.pk-trigger[aria-expanded="true"] { border-color: var(--ink); }

/* The week calendar: each row is a week. Hover a row, the whole week lights up. */
.pk.cal { width: 324px; padding: 12px; }
.cal-h { display: flex; align-items: center; gap: 8px; padding: 0 2px 10px; }
.cal-h b { flex: 1; text-align: center; font: 800 21px var(--display); letter-spacing: -0.035em; }
.cal-h button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); transition: transform .25s var(--spring), border-color .15s; }
.cal-h button:hover { transform: scale(1.12) rotate(-6deg); border-color: var(--ink); }
.cal-h svg { width: 16px; height: 16px; }
.cal-dow, .wk { display: grid; grid-template-columns: repeat(7, 1fr) 30px; align-items: center; }
.cal-dow { padding: 0 8px 4px; font: 500 10.5px var(--mono); color: var(--ink-3); text-align: center; }
.cal-dow span:last-child { justify-self: end; }
.cal-rows { display: grid; gap: 3px; }
.wk { width: 100%; height: 38px; padding: 0 8px; border: 1.5px solid transparent; border-radius: 13px; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; transition: background .12s, transform .25s var(--spring), border-color .12s; }
.wk .d { display: grid; place-items: center; width: 26px; height: 26px; margin: auto; border-radius: 50%; }
.wk .d.out { color: var(--ink-3); opacity: .6; }
.wk .d.today { background: var(--accent); color: #fff; opacity: 1; }
.wk .n { justify-self: end; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; font: 700 10.5px/20px var(--mono); text-align: center; }
.wk .n:not(:empty) { background: var(--swing-bg); color: var(--swing); }
.wk:hover, .wk:focus-visible { background: var(--paper-2); outline: none; transform: scale(1.03) rotate(-.6deg); }
.wk.now { border-color: color-mix(in srgb, var(--accent) 55%, transparent); border-style: dashed; }
.wk.on, .wk.on:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(-1deg); box-shadow: 0 3px 0 var(--hard); }
.wk.on .d.out { color: inherit; }
.wk.on .n:not(:empty) { background: var(--accent); color: #fff; }
.cal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; padding-top: 10px; border-top: 1.5px dashed var(--line); }
.cal-foot button { height: 28px; padding: 0 10px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); font: 500 12px var(--mono); transition: transform .25s var(--spring), border-color .15s; }
.cal-foot button:hover { transform: translateY(-2px); border-color: var(--ink); color: var(--ink); }
.cal-foot .grow { flex: 1; }
.cal-foot .clr { color: var(--bad); }
html[data-motion="off"] .pk { animation: none; }
html[data-motion="off"] .pk-opt:hover, html[data-motion="off"] .wk:hover, html[data-motion="off"] .wk.on, html[data-motion="off"] .cal-h button:hover, html[data-motion="off"] .cal-foot button:hover { transform: none; }
