/* CONTROL — styles. No inline styles anywhere (the CSP forbids them). */

@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("/fonts/exo-2-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }

/* ===== design tokens: the TERMINAL theme is the default; themes.css overrides these ===== */
:root {
  --bg: #060607; --bg2: #0D0D0E; --bg-fill: #060607; --panel: rgba(18,18,19,.78);
  --line: #1C1C1B; --line2: #2A2A28; --edge: #242423; --edge-hi: #3A3A37;
  --card: #101011; --card-hi: #141415; --sticky: #060607;
  --fg: #E9E9E4; --fg2: #BDBDB7; --mute: #8A8A84; --mute2: #6E6E69; --dim: #5C5C57;
  --hot: #FF5A1F; --accent: #FF5A1F; --ok: #7BE38B; --on-accent: #060607;
  --hot-edge: #3A2016; --hot-bg: #140D0A;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ui: var(--mono);
  --disp: "Archivo", "Helvetica Neue", sans-serif;
  --disp-stretch: 72%; --disp-weight: 850; --disp-ls: -0.01em; --disp-tt: none; --disp-fill: var(--fg);
  --label-ls: .2em; --label-tt: uppercase; --label-size: 11px;
  --r: 0px; --r-btn: 0px; --r-sm: 0px;
  --blur: 14px; --shadow: 0 22px 50px rgba(0,0,0,.5); --gloss: none;
  --lock-bg: #050506; --ribbon: #E9E9E4; --text-shadow: none;
  --k-grad: linear-gradient(180deg, #5C5C57 0%, #E9E9E4 18%, #fff 24%, #8A8A84 40%, #E9E9E4 60%, #FF5A1F 64%, #8A8A84 70%, #5C5C57 100%);
}
* { box-sizing: border-box; }
html { background: var(--bg-fill); background-attachment: fixed; }
html, body { margin: 0; height: 100%; color: var(--fg); font-family: var(--ui); font-size: 13px; text-shadow: var(--text-shadow); }
body { background: transparent; }
body { overflow: hidden; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select { font-family: var(--ui); }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }

.disp { font-family: var(--disp); font-stretch: var(--disp-stretch); font-weight: var(--disp-weight); letter-spacing: var(--disp-ls); text-transform: var(--disp-tt); background: var(--disp-fill); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.disp .hot, .disp .ok { -webkit-text-fill-color: currentColor; }
.disp { text-shadow: none; filter: var(--disp-shadow, none); }
.label { font-size: var(--label-size); letter-spacing: var(--label-ls); color: var(--mute); text-transform: var(--label-tt); }
.dim { color: var(--dim); } .mute { color: var(--mute); } .hot { color: var(--hot); } .ok { color: var(--ok); }
.sq { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; }
.cursor { animation: blink 1.05s steps(1) infinite; color: var(--accent); }
.redact { background: var(--line2); color: var(--line2); }

.btn { height: 44px; padding: 0 18px; background: var(--btn-bg, transparent); color: var(--fg); border: 1px solid var(--line2); border-radius: var(--r-btn); font-size: 11px; letter-spacing: var(--btn-ls, .14em); text-transform: var(--label-tt); box-shadow: var(--gloss); }
.btn:hover { border-color: var(--fg); }
.btn.solid { background: var(--solid-bg, var(--fg)); color: var(--solid-fg, var(--bg)); border-color: var(--solid-border, var(--fg)); font-weight: 700; text-shadow: none; }
.btn.small { height: 32px; padding: 0 12px; }
.btn[disabled] { opacity: .4; cursor: default; }

/* ---------- shell ---------- */
#app { position: fixed; inset: 0; display: flex; flex-direction: column; }
#app[hidden] { display: none; }
.top { height: 72px; flex-shrink: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding: 0 40px; border-bottom: 1px solid var(--line); gap: 24px; background: var(--bar-bg, transparent); backdrop-filter: var(--bar-blur, none); -webkit-backdrop-filter: var(--bar-blur, none); position: relative; z-index: 5; }
.topright { justify-self: end; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--fg); }
.crumb { white-space: nowrap; overflow: hidden; }
.brand .disp { font-size: 24px; }
.crumb { font-size: 11px; color: var(--dim); letter-spacing: .1em; }
.nav { display: flex; gap: 28px; position: relative; padding-bottom: 8px; }
.nav a { font-size: 11px; letter-spacing: var(--nav-ls, .18em); text-transform: var(--label-tt); font-family: var(--nav-font, var(--ui)); color: var(--mute2); transition: color .25s; white-space: nowrap; }
.nav a:hover { color: var(--fg); }
.nav a.on { color: var(--fg); }
.nav-ind { position: absolute; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); opacity: 1; transition: left .5s cubic-bezier(.7,0,.2,1), width .5s cubic-bezier(.7,0,.2,1); pointer-events: none; }
.clock { text-align: right; font-size: 11px; color: var(--mute); line-height: 1.6; }
.clock b { color: var(--fg); font-size: 14px; font-weight: 400; letter-spacing: .06em; }
.view { flex: 1; min-height: 0; position: relative; overflow-x: hidden; overflow-y: auto; }
.foot { background: var(--bar-bg, transparent); backdrop-filter: var(--bar-blur, none); -webkit-backdrop-filter: var(--bar-blur, none); height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .12em; color: var(--dim); }
.foot .srcs { display: flex; gap: 22px; }
.scan::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--scanlines, repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.22) 2px 3px)); }

/* ---------- lock ---------- */
.lock { position: fixed; inset: 0; z-index: 50; display: flex; background: var(--bg-fill); overflow: hidden; }
.lock.gone { pointer-events: none; animation: lockout .75s cubic-bezier(.7,0,.2,1) forwards; }
.lock .corner { position: absolute; width: 28px; height: 28px; border-color: var(--edge-hi); border-style: solid; border-width: 0; }
.lock .c1 { left: 32px; top: 32px; border-left-width: 1px; border-top-width: 1px; }
.lock .c2 { right: 32px; top: 32px; border-right-width: 1px; border-top-width: 1px; }
.lock .c3 { left: 32px; bottom: 32px; border-left-width: 1px; border-bottom-width: 1px; }
.lock .c4 { right: 32px; bottom: 32px; border-right-width: 1px; border-bottom-width: 1px; }
.lock-left { width: 520px; flex-shrink: 0; padding: 88px 80px 64px 104px; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 2; }
.lock-left .title { font-size: 56px; line-height: .9; }
.lock-stack { display: flex; flex-direction: column; gap: 32px; }
.ident { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; background: var(--input-bg, var(--bg2)); border: 1px solid var(--line2); border-radius: var(--r-btn); font-size: 14px; }
.ident #identName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ident .cur { width: 8px; height: 16px; background: var(--accent); animation: blink 1.05s steps(1) infinite; }
.lock .enter { height: 52px; width: 100%; font-size: 13px; }
.lock-right { flex: 1; position: relative; overflow: hidden; border-left: 1px solid var(--line); background: var(--lock-bg); }
.lock-right pre { margin: 0; font-family: var(--mono); position: absolute; }
.field-wrap { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(circle at 52% 47%, #000 25%, transparent 70%); mask-image: radial-gradient(circle at 52% 47%, #000 25%, transparent 70%); }
.field { left: -10px; top: -6px; font-size: 11px; line-height: 14px; color: var(--fg); animation: flicker 4s steps(1) infinite; }
.knight-wrap { position: absolute; left: 0; top: 0; transform-origin: 0 0; z-index: 1; visibility: hidden; }
.knight-wrap.fitted { visibility: visible; }
.knight { position: static !important; font-size: 10px; line-height: 11px; font-weight: 700; color: transparent;
  background: var(--k-grad);
  background-size: 100% 200%; -webkit-background-clip: text; background-clip: text; animation: shine 6s linear infinite, bob 6s ease-in-out infinite; }
.sweep { position: absolute; left: 0; right: 0; top: 0; height: 140px; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--fg) 7%, transparent), transparent); animation: scan 5s linear infinite; }
.bootlog { position: absolute; z-index: 3; left: 48px; bottom: 56px; width: 380px; max-width: calc(100% - 96px); font-size: 11px; line-height: 1.9; color: var(--mute); background: color-mix(in srgb, var(--lock-bg) 80%, transparent); border: 1px solid var(--line); padding: 14px 16px; }
.bootlog div { overflow: hidden; white-space: nowrap; }
.coords { position: absolute; z-index: 3; left: 48px; top: 56px; font-size: 11px; line-height: 1.8; color: var(--dim); letter-spacing: .12em; }
.srcstat { position: absolute; z-index: 3; right: 48px; bottom: 56px; text-align: right; background: color-mix(in srgb, var(--lock-bg) 80%, transparent); padding: 6px 0 6px 12px; font-size: 11px; line-height: 1.9; color: var(--dim); letter-spacing: .12em; }

/* ---------- ribbon (today) ---------- */
.ribbon { position: absolute; left: -80px; top: 90px; width: 1700px; height: 420px; pointer-events: none; opacity: var(--ribbon-op, .9); color: var(--ribbon); }
.ribbon .r1 { animation: drift 16s ease-in-out infinite; }
.ribbon .r2 { animation: drift2 21s ease-in-out infinite; }
.ribbon .r3 { animation: drift 26s ease-in-out infinite reverse; }

/* ---------- today ---------- */
.today { padding: 40px; display: flex; flex-direction: column; gap: 36px; position: relative; min-height: 100%; overflow: hidden; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 2; }
.hero h1 { margin: 10px 0 0; font-size: 72px; line-height: .95; }
.stats { display: flex; gap: 40px; font-size: 11px; letter-spacing: .16em; color: var(--mute2); }
.stats .n { color: var(--fg); font-size: 28px; letter-spacing: 0; margin: 6px 0 2px; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; position: relative; z-index: 2; }
.panel { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r); box-shadow: var(--gloss); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); padding: 26px; display: flex; flex-direction: column; gap: 14px; min-height: 220px; }
.span5 { grid-column: span 5; } .span4 { grid-column: span 4; } .span3 { grid-column: span 3; }
.panel.alert { border-color: var(--hot-edge); }
.bigdue { font-size: 36px; line-height: 1.05; }
.countdown { font-size: 28px; color: var(--hot); }
.row { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .when { width: 88px; color: var(--mute2); flex-shrink: 0; font-size: 12px; }
.row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse { animation: pulse 2s ease-out infinite; }
.empty { color: var(--dim); font-size: 12px; padding: 8px 0; }
.rise { animation: rise .7s backwards; }

/* ---------- mail ---------- */
.mail { display: flex; height: 100%; }
.mail aside { width: 230px; flex-shrink: 0; padding: 26px 20px 26px 40px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.bucket { border-radius: var(--r-btn); display: flex; justify-content: space-between; padding: 10px 12px; color: var(--fg2); font-size: 12px; text-transform: uppercase; background: none; border: 0; text-align: left; }
.bucket.on { background: var(--solid-bg, var(--fg)); color: var(--solid-fg, var(--bg)); font-weight: 700; text-shadow: none; }
.mlist { width: 440px; flex-shrink: 0; border-right: 1px solid var(--line); overflow: auto; }
.mrow { display: flex; flex-direction: column; gap: 6px; padding: 14px 20px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; cursor: pointer; }
.mrow:hover { background: var(--card); }
.mrow.on { border-left-color: var(--accent); background: linear-gradient(90deg, color-mix(in srgb, var(--fg) 2%, transparent), color-mix(in srgb, var(--fg) 8%, transparent), color-mix(in srgb, var(--fg) 2%, transparent)); background-size: 600px 100%; animation: shimmer 3s linear infinite; }
.mrow .meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--mute); }
.mrow .subj { font-size: 13px; }
.mrow .brief { font-size: 12px; color: var(--mute2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mread { flex: 1; min-width: 0; padding: 36px 48px; overflow: auto; display: flex; flex-direction: column; gap: 22px; position: relative; }
.mread h1 { margin: 0; font-size: 44px; line-height: .95; }
.briefbox { border-radius: var(--r); border: 1px solid var(--line2); background: var(--panel); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); box-shadow: var(--gloss); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.mtext { white-space: pre-wrap; font-size: 12px; line-height: 1.7; color: var(--fg2); max-width: 760px; border-top: 1px solid var(--line); padding-top: 18px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
select { background: var(--input-bg, var(--bg2)); color: var(--fg); border: 1px solid var(--line2); border-radius: var(--r-btn); height: 44px; padding: 0 10px; font-size: 12px; }

/* ---------- board ---------- */
.board { padding: 28px 40px; display: flex; flex-direction: column; gap: 20px; height: 100%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border-radius: var(--r-btn); background: var(--btn-bg, transparent); height: 34px; padding: 0 14px; background: transparent; color: var(--fg2); border: 1px solid var(--line2); font-size: 11px; display: flex; gap: 8px; align-items: center; text-transform: uppercase; }
.chip.on { background: var(--solid-bg, var(--fg)); color: var(--solid-fg, var(--bg)); border-color: var(--solid-border, var(--fg)); font-weight: 700; text-shadow: none; }
.cols { flex: 1; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; }
.col { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding-bottom: 20px; }
.col.drop { outline: 1px dashed var(--mute); outline-offset: 4px; }
.colhead { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .2em; color: var(--mute); padding: 4px 2px 8px; border-bottom: 1px solid var(--line); text-transform: var(--label-tt); position: sticky; top: 0; background: var(--sticky); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); z-index: 1; }
.card { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-sm); padding: 13px 15px; display: flex; flex-direction: column; gap: 9px; cursor: grab; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { border-color: var(--edge-hi); }
.card.dragging { transform: rotate(-2deg); box-shadow: 0 24px 50px rgba(0,0,0,.6), 0 0 0 1px var(--fg); opacity: .9; }
.card.done .name { text-decoration: line-through; color: var(--dim); }
.card .top2 { display: flex; justify-content: space-between; font-size: 11px; gap: 8px; }
.card .name { font-size: 13px; line-height: 1.4; }
.card .check { background: none; border: 1px solid var(--dim); width: 14px; height: 14px; padding: 0; }
.card.done .check { background: var(--fg); }
.addcard { display: flex; gap: 6px; }
.addcard input { flex: 1; min-width: 0; height: 32px; background: var(--input-bg, var(--bg2)); border: 1px solid var(--line2); border-radius: var(--r-btn); color: var(--fg); font-family: var(--ui); font-size: 12px; padding: 0 10px; }

/* ---------- classes ---------- */
.classes { display: flex; height: 100%; }
.clist { width: 400px; flex-shrink: 0; border-right: 1px solid var(--line); overflow: auto; }
.cls { display: flex; flex-direction: column; gap: 7px; padding: 16px 20px 16px 40px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; cursor: pointer; }
.cls.on { background: var(--card); }
.cls .meta { display: flex; justify-content: space-between; font-size: 11px; }
.dossier { flex: 1; min-width: 0; padding: 36px 48px; overflow: auto; display: flex; flex-direction: column; gap: 26px; position: relative; }
.dossier h1 { margin: 0; font-size: clamp(26px, 3.2vw, 44px); line-height: 1; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.dossier > .row { align-items: flex-start; gap: 24px; }
.dossier > .row > .grow { min-width: 0; }
.dossier > .row > .label.dim { flex-shrink: 0; white-space: nowrap; text-align: right; padding-top: 4px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { border-radius: var(--r); background: var(--tile-bg, transparent); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); border: 1px solid var(--edge); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.tile .n { font-size: 30px; }
.tile.alert { border-color: var(--hot-edge); }
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; }
.ann { font-size: 12px; line-height: 1.6; color: var(--fg2); border-bottom: 1px solid var(--line); padding: 10px 0; }

/* ---------- calendar ---------- */
.cal { padding: 20px 40px 24px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.calbar { display: flex; justify-content: space-between; align-items: center; }
.days { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); font-size: 11px; letter-spacing: .16em; color: var(--mute2); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.days .d b { font-size: 20px; letter-spacing: 0; color: var(--fg2); font-weight: 400; margin-left: 6px; }
.days .d.istoday { color: var(--fg); } .days .d.istoday b { color: var(--accent); }
.weekgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); position: relative; overflow: hidden; }
.hours { position: relative; font-size: 10px; color: var(--dim); }
.hours span { position: absolute; left: 0; transform: translateY(-50%); }
.daycol { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px calc(100% / 13)); }
.daycol.istoday { background-color: color-mix(in srgb, var(--fg) 3%, transparent); }
.ev { position: absolute; left: 4px; right: 4px; padding: 5px 8px; font-size: 11px; line-height: 1.35; overflow: hidden; background: var(--card); border-left: 2px solid var(--fg); border-radius: var(--r-sm); }
.ev .mute { font-size: 10px; }
.ev.clash { background-color: var(--hot-bg); background-image: repeating-linear-gradient(45deg, color-mix(in srgb, var(--hot) 28%, transparent) 0 6px, transparent 6px 12px); background-size: 24px 24px; animation: hatch 1.2s linear infinite; border-left-color: var(--hot); }
.dl { position: absolute; left: 4px; right: 4px; border-top: 1px dashed var(--hot); }
.dlt { position: absolute; left: 6px; font-size: 10px; color: var(--hot); line-height: 1.3; transform: translateY(-100%); padding-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; right: 4px; }
.nowline { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); animation: nowp 1.6s ease-in-out infinite; z-index: 3; }

/* ---------- ventures ---------- */
.vent { padding: 36px 40px; display: flex; flex-direction: column; gap: 32px; position: relative; min-height: 100%; }
.vent h1 { margin: 8px 0 0; font-size: 80px; line-height: .9; }
.track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-top: 12px; }
.track::before { content: ""; position: absolute; left: 20px; right: 20px; top: 20px; border-top: 1px solid var(--line2); }
.stage { display: flex; flex-direction: column; gap: 10px; position: relative; background: none; border: 0; color: var(--fg); text-align: left; padding: 0 12px 0 12px; }
.stage .dot { width: 16px; height: 16px; border-radius: var(--dot-r, 0); border: 1px solid var(--dim); background: var(--bg); position: relative; z-index: 1; }
.stage.done .dot { background: var(--fg); border-color: var(--fg); }
.stage.next .dot { background: var(--accent); border-color: var(--accent); }
.stage.next .dot::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--accent); border-radius: inherit; animation: ping 1.8s ease-out infinite; }
.stage .t { font-size: 13px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vform { display: flex; gap: 8px; }
.vform input { flex: 1; min-width: 0; height: 44px; background: var(--input-bg, var(--bg2)); border: 1px solid var(--line2); border-radius: var(--r-btn); color: var(--fg); font-family: var(--ui); padding: 0 12px; }
.todo { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; color: var(--fg); width: 100%; text-align: left; font-size: 13px; }
.todo .box { width: 12px; height: 12px; border: 1px solid var(--dim); flex-shrink: 0; }
.todo.done { color: var(--dim); text-decoration: line-through; } .todo.done .box { background: var(--dim); }

/* ---------- ask (cmd+k) ---------- */
.ask { position: fixed; inset: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center; padding-top: 14vh; }
.ask[hidden] { display: none; }
.askbox { width: 720px; max-width: calc(100vw - 32px); border: 1px solid var(--line2); background: var(--panel-solid, var(--bg2)); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.askbox input { width: 100%; height: 60px; background: transparent; border: 0; border-bottom: 1px solid var(--line2); color: var(--fg); font-family: var(--ui); font-size: 15px; padding: 0 20px; outline: none; }
.askout { padding: 18px 20px; min-height: 80px; white-space: pre-wrap; line-height: 1.7; color: var(--fg2); font-size: 13px; }

.toast { position: fixed; right: 24px; bottom: 60px; z-index: 60; border-radius: var(--r-btn); text-shadow: none; background: var(--fg); color: var(--bg); padding: 12px 16px; font-size: 12px; letter-spacing: .06em; animation: rise .3s both; }
.toast.err { background: var(--hot); }

/* ---------- motion ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes scan { 0% { transform: translateY(-140px); } 100% { transform: translateY(110vh); } }
@keyframes flicker { 0%,100% { opacity: .17; } 42% { opacity: .17; } 43% { opacity: .08; } 44% { opacity: .22; } 46% { opacity: .15; } 70% { opacity: .19; } }
@keyframes shine { 0% { background-position: 0% 0; } 100% { background-position: 0% 200%; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lockout { 0% { clip-path: inset(0 0 0 0); filter: none; } 60% { filter: blur(2px); } 100% { clip-path: inset(0 0 100% 0); filter: blur(6px); } }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-60px,10px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(50px,-12px); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hot) 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: -600px 0; } 100% { background-position: 600px 0; } }
@keyframes hatch { to { background-position: 24px 0; } }
@keyframes nowp { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes typein { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; }
}
@media (max-width: 1100px) {
  .lock-left { width: 100%; padding: 64px 32px; }
  .lock-right { display: none; }
  .nav { gap: 16px; } .crumb, .clock { display: none; }
  .span5, .span4, .span3 { grid-column: span 12; }
  .mlist { width: 340px; } .clist { width: 300px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two, .grid3 { grid-template-columns: 1fr; }
}

/* ============ motion layer: hovers + transitions ============ */

/* staggered entrance (fill-mode backwards so hover transforms still work afterwards) */
.stagger > * { animation: rise .65s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 65ms + 140ms); }

/* leaving a page */
.view.leaving > * { animation: leave .24s cubic-bezier(.6,0,.9,.4) forwards; }
@keyframes leave { to { opacity: 0; transform: translateY(-12px) scale(.995); filter: blur(6px); } }

/* terminal curtain that sweeps between pages */
.curtain { position: fixed; left: 0; right: 0; top: 72px; bottom: 44px; pointer-events: none; z-index: 30; overflow: hidden; }
.curtain pre { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 14px; color: var(--fg); opacity: .5; animation: curtain .6s steps(14) forwards; white-space: pre; }
.curtain .bar { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); box-shadow: 0 0 24px 2px color-mix(in srgb, var(--accent) 70%, transparent); animation: bar .6s cubic-bezier(.6,0,.3,1) forwards; }
.curtain .tag { position: absolute; right: 40px; font-size: 11px; letter-spacing: .2em; color: var(--accent); animation: bar .6s cubic-bezier(.6,0,.3,1) forwards; transform: translateY(-18px); }
@keyframes curtain { 0% { clip-path: inset(0 0 100% 0); } 45% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(100% 0 0 0); } }
@keyframes bar { from { top: 0; } to { top: 100%; } }

/* buttons: fill sweep */
.btn, .chip { position: relative; overflow: hidden; z-index: 0; transition: color .25s, border-color .25s, transform .15s; }
.btn::before, .chip::before { content: ""; position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.7,0,.2,1); z-index: -1; }
.btn:hover::before, .chip:hover::before { transform: scaleX(1); }
.btn:hover, .chip:hover { color: var(--bg); border-color: var(--fg); }
.btn.solid::before { background: var(--accent); }
.btn.solid:hover { border-color: var(--accent); color: var(--on-accent); }
.chip.on::before { display: none; }
.btn:active, .chip:active { transform: scale(.97); }
.bucket { transition: background .2s, padding .25s cubic-bezier(.2,.8,.2,1), color .2s; }
.bucket:not(.on):hover { background: var(--card-hi); padding-left: 18px; color: var(--fg); }

/* cursor spotlight + lift on panels, cards, tiles, rows */
.panel, .card, .tile, .mrow, .cls { position: relative; }
.panel::before, .card::before, .tile::before, .mrow::before, .cls::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--fg) 9%, transparent), transparent 60%); border-radius: inherit; }
.panel:hover::before, .card:hover::before, .tile:hover::before, .mrow:hover::before, .cls:hover::before { opacity: 1; }
.panel, .tile { transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s; }
.panel:hover, .tile:hover { transform: translateY(-3px); border-color: var(--edge-hi); box-shadow: var(--shadow), var(--gloss); }
.panel::after { content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: 0; transition: opacity .25s, inset .3s cubic-bezier(.2,.8,.2,1);
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 14px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) top left / 1px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 14px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) top right / 1px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 14px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 14px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom right / 1px 14px no-repeat; }
.panel:hover::after { opacity: 1; inset: -6px; }
.card { transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s; will-change: transform; }
.card:hover { border-color: var(--edge-hi); box-shadow: var(--shadow); }
.panel .row { transition: padding .25s cubic-bezier(.2,.8,.2,1), background .25s; }
.panel .row:hover { padding-left: 8px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%); }
.mrow, .cls { transition: padding .25s cubic-bezier(.2,.8,.2,1), background .25s, border-color .25s; }
.mrow:hover { padding-left: 28px; border-left-color: var(--mute); }
.cls:hover { padding-left: 48px; background: var(--card); }
.ev { transition: transform .2s, filter .2s, box-shadow .2s; }
.ev:hover { transform: scale(1.03); filter: brightness(1.35); box-shadow: var(--shadow); z-index: 5; }
.stage .dot { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.stage:hover .dot { transform: scale(1.3) rotate(45deg); }
.todo { transition: padding .2s, color .2s; }
.todo:hover { padding-left: 8px; }
.todo:hover .box { border-color: var(--fg); }
.check { transition: transform .15s, background .2s; }
.check:hover { transform: scale(1.25); border-color: var(--fg) !important; }
.brand { cursor: default; }
.brand svg { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.brand:hover svg { transform: rotate(180deg); }
.enter { letter-spacing: .3em !important; transition: letter-spacing .35s cubic-bezier(.2,.8,.2,1), color .25s, border-color .25s !important; }
.enter:hover { letter-spacing: .5em !important; }

/* ── Team workspace ───────────────────────────────────────── */
.teamboard { gap: 18px; }
.teamhead { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.teamhead h1 { margin: 2px 0 0; font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.avs { display: flex; padding-left: 8px; }
.av { --h: 200; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: #fff; background: hsl(var(--h) 55% 42%); border: 2px solid var(--bg); margin-left: -8px; text-shadow: none; flex-shrink: 0; font-family: var(--ui); }
.av.sm { width: 22px; height: 22px; font-size: 9px; margin-left: 0; border-width: 1px; }
.card.tc { padding-top: 13px; overflow: hidden; }
.card.tc .tlabel { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px 0 0 3px; }
.card.tc .cfoot { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.card.tc:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.lhead { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.lname { cursor: text; border-radius: 4px; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lname:hover { color: var(--fg); }
.lrename { height: 22px; width: 160px; background: var(--input-bg, var(--bg2)); border: 1px solid var(--accent); border-radius: 4px; color: var(--fg); font: inherit; letter-spacing: .08em; padding: 0 6px; }
.ldel { background: none; border: 0; color: var(--dim); font-size: 13px; padding: 0 4px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.ldel:hover, .ldel.armed { color: var(--hot); }

/* Modal sheet (card editor, dialogs) */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--bg) 62%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: mfade .2s ease both; }
.modal.out { animation: mfade .2s ease reverse both; }
.sheet { width: 600px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 16px; padding: 22px 24px;
  background: var(--panel-solid, var(--bg2)); border: 1px solid var(--line2); border-radius: var(--r); box-shadow: var(--shadow); animation: msheet .32s cubic-bezier(.2,.9,.25,1.15) both; outline: none; }
@keyframes mfade { from { opacity: 0; } }
@keyframes msheet { from { opacity: 0; transform: translateY(16px) scale(.97); } }
[data-motion="reduced"] .modal, [data-motion="reduced"] .sheet { animation: none; }
.mhead { display: flex; align-items: center; justify-content: space-between; }
.mclose { background: none; border: 0; color: var(--mute); font-size: 22px; line-height: 1; padding: 0 4px; cursor: pointer; }
.mclose:hover { color: var(--fg); }
.mtitle { width: 100%; resize: none; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid var(--line2); color: var(--fg); font-family: var(--disp, var(--ui)); font-size: 22px; line-height: 1.25; padding: 4px 0 10px; outline: none; }
.mtitle:focus { border-color: var(--accent); }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.minput { width: 100%; min-width: 0; height: 38px; background: var(--input-bg, var(--bg2)); border: 1px solid var(--line2); border-radius: var(--r-btn); color: var(--fg); font-family: var(--ui); font-size: 13px; padding: 0 12px; outline: none; color-scheme: dark; }
[data-theme="aero"] .minput { color-scheme: light; }
.minput:focus { border-color: var(--accent); }
.minput.small { height: 32px; width: auto; font-size: 12px; }
.minput.notes { height: auto; min-height: 120px; padding: 10px 12px; line-height: 1.55; resize: vertical; }
select.minput { appearance: none; -webkit-appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-height: 38px; }
.sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer; box-shadow: 0 0 0 1px var(--line2); transition: transform .15s; }
.sw:hover { transform: scale(1.12); }
.sw.on { border-color: var(--fg); }
.sw.none { background: linear-gradient(135deg, transparent 45%, var(--hot) 45% 55%, transparent 55%); }
.mfoot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn.armed { border-color: var(--hot); color: var(--hot); }

/* Team sign-in on the lock screen */
.lockform { display: flex; flex-direction: column; gap: 18px; }
.lockform .fld .label { font-size: 11px; }
.lockin { width: 100%; height: 50px; padding: 0 16px; background: var(--input-bg, var(--bg2)); border: 1px solid var(--line2); border-radius: var(--r-btn); color: var(--fg); font-family: var(--ui); font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.lockin:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.lockform .enter { width: 100%; }
.lockerr { min-height: 1.4em; margin: 10px 0 0; line-height: 1.5; text-transform: none; letter-spacing: .02em; }
.lockform p.mute { margin: 0; line-height: 1.5; }
.pwmeter { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: -10px; }
.pwmeter i { display: block; height: 100%; width: 0; background: var(--hot); transition: width .3s, background .3s; }
.pwmeter[data-s="3"] i { background: var(--accent); } .pwmeter[data-s="4"] i { background: var(--ok); }
.pwhint { margin: -8px 0 0; text-transform: none; letter-spacing: .02em; }
.shake { animation: shake .42s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 20%, 80% { transform: translateX(-3px); } 40%, 60% { transform: translateX(5px); } 50% { transform: translateX(-5px); } }
[hidden] { display: none !important; }

/* Members admin */
.members .addmember { min-height: 0; }
.amgrid { display: grid; grid-template-columns: 1fr 1.4fr auto auto; gap: 10px; align-items: center; }
.pwwrap { max-width: 420px; }
.mlist2 { display: flex; flex-direction: column; }
.mem { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mem .av { width: 36px; height: 36px; margin-left: 0; font-size: 12px; }
.memid { min-width: 160px; } .memid .t { font-size: 14px; } .memid .d { font-size: 12px; margin-top: 2px; }
.memst { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.memact { display: flex; gap: 6px; flex-wrap: wrap; }
.slip { min-height: 0; border-color: var(--accent); }
.sliprow { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 12px; }
.slip code, .addr { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--fg); background: var(--input-bg, var(--bg2)); border: 1px solid var(--line2); border-radius: 6px; padding: 6px 10px; user-select: all; overflow-wrap: anywhere; }
.slip code.pw { font-size: 16px; letter-spacing: .06em; color: var(--accent); }
.mute.small { font-size: 12px; line-height: 1.5; margin: 0; }
@media (max-width: 760px) {
  .mgrid, .amgrid { grid-template-columns: 1fr; }
  .sliprow { grid-template-columns: 1fr; gap: 4px; }
}
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.teamhead { align-items: center; }
.teamhead > .grow { min-width: 220px; }

/* ── Telling the boards apart ─────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 10.5px; letter-spacing: .14em; font-weight: 700; white-space: nowrap; text-shadow: none; }
.badge.priv { color: var(--fg2); border: 1px dashed var(--line2); background: transparent; }
.badge.shared { color: var(--on-accent, var(--bg)); background: var(--accent); border: 1px solid var(--accent); }
/* Team board: accent rule under every list, accent rail on the left of the page */
.teamboard { position: relative; }
.teamboard::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 3px; border-radius: 3px; background: var(--accent); opacity: .7; }
.teamboard .colhead { border-bottom: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); }
.teamboard .card.tc { border-color: color-mix(in srgb, var(--accent) 22%, var(--edge)); }
/* Personal board: quieter, dashed list rules */
.myboard .colhead { border-bottom-style: dashed; }
.vhead { align-items: flex-end; gap: 16px; }
.todo .vby { margin-left: auto; padding-left: 10px; font-size: 10px; }
.todo[disabled], .stage[disabled] { cursor: default; }

/* ── Board legibility ─────────────────────────────────────── */
.board { padding: 24px 40px 0; gap: 16px; min-height: 0; }
/* Lists share the width; only scroll sideways when there are really too many */
.cols { grid-auto-columns: minmax(220px, 1fr); gap: 12px; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.col { scroll-snap-align: start; padding-bottom: 24px; scrollbar-width: thin; }
.col > *, .cardlist > * { flex-shrink: 0; }              /* cards never get squashed into each other */
.cardlist { display: flex; flex-direction: column; gap: 8px; }
.colhead { align-items: center; gap: 8px; padding: 6px 2px 9px; }
.colhead .lname { min-width: 0; flex: 1; }
.myboard .lname { cursor: default; }
.colcount { flex-shrink: 0; font-variant-numeric: tabular-nums; }
/* Cards: full titles (up to 3 lines), tighter padding, date + label on one quiet line */
.card { padding: 10px 12px; gap: 6px; }
.card .top2 { font-size: 10.5px; line-height: 1.3; min-height: 0; }
.card .top2:empty, .card .top2 > span:only-child:empty { display: none; }
.card .top2 > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .top2 > span:last-child { flex-shrink: 0; }
.card .row { align-items: flex-start; gap: 10px; }
.card .row .check { margin-top: 2px; flex-shrink: 0; }
.card .row .name { white-space: normal; overflow: hidden; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.38; overflow-wrap: anywhere; }
.card.overdue { box-shadow: inset 3px 0 0 var(--hot); }
.card:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.donecol .card { opacity: .62; }
.donecol .card:hover { opacity: 1; }
.showmore { background: none; border: 1px dashed var(--line2); border-radius: var(--r-sm); color: var(--mute); font-size: 11px; letter-spacing: .1em; text-transform: var(--label-tt); height: 32px; cursor: pointer; }
.showmore:hover { color: var(--fg); border-color: var(--fg2); }
.addcard input:focus { outline: none; border-color: var(--accent); }

/* ── Clickable rows / details ─────────────────────────────── */
.clk { cursor: pointer; }
.clk:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.panel .row.clk, .flag.clk, .ann.clk, .two .row.clk { border-radius: 6px; transition: background .2s; }
.panel .row.clk:hover, .flag.clk:hover, .ann.clk:hover, .two .row.clk:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.flag { padding: 6px 8px; margin: 0 -8px; }
.ann { padding: 8px; margin: 0 -8px; }
.row .code { font-size: 10px; letter-spacing: .1em; flex-shrink: 0; }
.stats .clk:hover .n { color: var(--accent); }
.mtitle2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fact .fv { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.35; }
.countdown.sm { font-size: 13px; letter-spacing: .06em; }
.mbody { white-space: pre-wrap; line-height: 1.6; font-size: 13.5px; color: var(--fg2); max-height: 42vh; overflow: auto; overflow-wrap: anywhere; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--fg); font: inherit; text-align: left; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--accent); text-decoration-color: currentColor; }
.chip.static { height: 26px; cursor: default; }
.chip.static::before { display: none; }
.ev.clk:hover { filter: brightness(1.25); }
.dlt { pointer-events: auto; }
.dlt .dli { cursor: pointer; }
.dlt .dli:hover { text-decoration: underline; color: var(--fg); }

/* ── Calendar: deadline strip above the time grid ─────────── */
.duestrip { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.duestrip .dhead { padding-top: 6px; font-size: 10px; }
.dcell { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; min-width: 0; min-height: 26px; }
.dchip { --c: var(--hot); display: flex; gap: 6px; align-items: baseline; min-width: 0; padding: 4px 7px; font-size: 11px; line-height: 1.3; border-radius: 4px;
  background: color-mix(in srgb, var(--c) 12%, transparent); border-left: 2px solid var(--c); color: var(--fg); }
.dchip .t { flex-shrink: 0; color: var(--mute); font-size: 10px; font-variant-numeric: tabular-nums; }
.dchip .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dchip:hover { background: color-mix(in srgb, var(--c) 24%, transparent); }
.dchip.more { --c: var(--mute); color: var(--mute); justify-content: center; }
.dl { border-top: 1px dashed color-mix(in srgb, var(--hot) 70%, transparent); z-index: 2; pointer-events: none; }
.dlt { display: none; }
.weekgrid { padding-top: 8px; }
.daylist { display: flex; flex-direction: column; }
.daylist .row { padding: 10px 8px; margin: 0 -8px; border-bottom: 1px solid var(--line); border-radius: 6px; }
.daylist .row:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.ev { z-index: 1; }

/* ── Caught-up chart ──────────────────────────────────────── */
.span12 { grid-column: span 12; }
.grid12 > .panel { min-height: 0; }
.progress { gap: 16px; }
.phead { align-items: center; flex-wrap: wrap; gap: 12px; }
.plegend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--mute); }
.plegend > span { display: inline-flex; align-items: center; gap: 6px; }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; margin-right: 2px; }
.pbody { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 32px; align-items: end; }
.pscore { display: flex; flex-direction: column; gap: 8px; }
.pbig { font-family: var(--disp, var(--ui)); font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.ptext { font-size: 13px; line-height: 1.45; }
.pfacts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; }
.pfacts .clk { text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.pfacts .clk:hover { text-decoration-color: currentColor; }
.pnote { text-transform: none; letter-spacing: .02em; font-size: 11px; line-height: 1.4; }
.pbars { position: relative; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; height: 150px; border-bottom: 1px solid var(--line2); }
.pcol { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; cursor: pointer; border-radius: 6px 6px 0 0; outline: none; }
.pcol:hover, .pcol:focus-visible { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.pcol.isnow { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.pcol.isnow::before { content: ""; position: absolute; top: 0; bottom: 0; left: -3px; border-left: 1px dashed var(--accent); }
.pstack { width: min(22px, 70%); height: calc(100% - 20px); display: flex; flex-direction: column-reverse; gap: 2px; }
.pseg { display: block; width: 100%; min-height: 3px; }
.pstack .pseg:last-child { border-radius: 4px 4px 0 0; }
.pseg.unconfirmed { background: repeating-linear-gradient(135deg, var(--mute) 0 2px, transparent 2px 5px) !important; box-shadow: inset 0 0 0 1px var(--mute); }
.pcol.future .pseg.upcoming { opacity: .55; }
.pn { font-size: 10px; color: var(--mute); height: 16px; font-variant-numeric: tabular-nums; }
.pday, .pdate { position: absolute; bottom: -34px; font-size: 9.5px; letter-spacing: .08em; color: var(--mute); }
.pdate { bottom: -48px; color: var(--dim); }
.pcol.isnow .pday { color: var(--accent); }
.progress { padding-bottom: 60px; }
.ptip { position: absolute; bottom: calc(100% + 6px); width: 180px; z-index: 5; padding: 10px 12px; font-size: 12px; line-height: 1.6; background: var(--panel-solid, var(--bg2)); border: 1px solid var(--line2); border-radius: 8px; box-shadow: var(--shadow); pointer-events: none; }
.ptip b { display: block; font-weight: 600; margin-bottom: 2px; }
@media (max-width: 900px) { .pbody { grid-template-columns: 1fr; } .pbars { gap: 3px; } .pday { font-size: 8px; } }
