/* Thegram viewer — the landing page's base (type, pills, header, footer, motion) over the desktop app's layout; one ink, no hue. */
@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("/assets/pretendard.woff2") format("woff2-variations"), url("/assets/pretendard.woff2") format("woff2");
}

:root {
  --canvas: #ffffff; --block: #f7f7f7;
  --ink: #0a0a0a; --ink2: #3b3b3b; --muted: #8a8a8a; --faint: #c2c2c2;
  --line: #e6e6e6; --hover: #f2f2f2; --fill: rgba(10, 10, 10, .05); --seg-on: #ffffff;
  --accent: var(--ink); --accent-soft: #efefef;
  --ok: var(--muted); --warn: var(--ink); --bad: var(--ink);
  --code-bg: rgba(10, 10, 10, .05);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --info-w: 360px; --pad: clamp(16px, 2.4vw, 32px); --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0a0a0a; --block: #121212;
    --ink: #f5f5f5; --ink2: #c9c9c9; --muted: #8a8a8a; --faint: #474747;
    --line: #232323; --hover: #181818; --fill: rgba(245, 245, 245, .05); --seg-on: #1c1c1c;
    --accent: var(--ink); --accent-soft: #1c1c1c;
    --ok: var(--muted); --warn: var(--ink); --bad: var(--ink);
    --code-bg: rgba(245, 245, 245, .06);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "ss06";
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
code, pre, kbd { font-family: var(--mono); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; overflow: visible; }
.file-input { position: fixed; left: -9999px; width: 1px; height: 1px; opacity: 0; }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 3px; border-radius: 6px; }
html.js .nojs-only { display: none !important; }
::selection { background: var(--ink); color: var(--canvas); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* The landing page's title motion: letters fall in out of a blur, one after another. */
.st .w { display: inline-block; white-space: nowrap; }
.st .ch { display: inline-block; transition: opacity .6s ease-out calc(var(--d) * 32ms), filter .7s ease-out calc(var(--d) * 32ms), transform .9s cubic-bezier(.5, -.4, .2, 1) calc(var(--d) * 32ms); }
.st:not(.in) .ch { opacity: 0; filter: blur(8px); transform: translateY(-.45em); }
.js [data-stagger]:not(.st) { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation-duration: 0s !important; } }

/* ------------------------------------------------------------------ viewer shell */
.window {
  position: relative; height: 100vh; height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 64px minmax(0, 1fr);
  background: var(--canvas); color: var(--ink); font-size: 13px; line-height: 1.45;
}
.info-on, .tr, .vr, .pr { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.bar { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 16px; min-width: 0; padding: 0 var(--pad); border-bottom: 1px solid var(--line); }
.window.is-empty .bar { border-bottom-color: transparent; }
.brand { position: relative; display: flex; align-items: center; gap: 10px; flex: none; padding-right: 18px; color: var(--ink); }
.brand::after { content: ""; position: absolute; right: 0; top: 50%; width: 1px; height: 20px; margin-top: -10px; background: var(--line); }
.brand-mark { width: 28px; height: 28px; transition: transform .8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(180deg); }
.window.is-empty .brand::after { display: none; }
.brand-word { display: none; }
.brand-sub { font-size: 15px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.bar-actions { display: flex; gap: 4px; flex: none; margin-left: auto; }
.bar-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; font-size: 15px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.bar-btn .ic { font-size: 16px; }
.bar-btn span { position: relative; }
.bar-btn span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.bar-btn:hover span::after { transform: scaleX(1); transform-origin: left; }
.icon-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); font-size: 15px; transition: background .12s, color .12s; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }

.tb-tabs, .nojs-tabs { flex: 1; display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tb-tabs::-webkit-scrollbar, .nojs-tabs::-webkit-scrollbar { display: none; }
html.js .nojs-tabs { display: none; }
html:not(.js) .tb-tabs { display: none; }
.tab { position: relative; height: 34px; min-width: 0; max-width: 240px; flex: 0 1 auto; display: flex; align-items: center; gap: 7px; padding: 0 7px 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; user-select: none; transition: background .12s, color .12s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); background: var(--fill); font-weight: 600; }
.nojs-tabs .tab { padding-right: 11px; cursor: default; }
.tab-ic { font-size: 13px; width: 14px; color: var(--faint); }
.tab.active .tab-ic { color: var(--ink2); }
.tab.past .tab-ic { color: var(--accent); }
.tab-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-rev { font: 600 11px var(--mono); color: var(--accent); }
.tab-x { width: 18px; height: 18px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 10px; opacity: 0; flex: none; }
.tab-x .ic { stroke-width: 2.4; }
.tab.active .tab-x, .tab:hover .tab-x { opacity: 1; }
.tab-x:hover { background: var(--fill); color: var(--ink); }
.tab-add { flex: none; font-size: 15px; }
.tab.draft { color: var(--ink); background: var(--fill); }

/* panes */
.frag { display: none; }
#t0:checked ~ .f0 { display: contents; }
html.js .frag { display: contents; }
.frag > .pane, .empty-pane { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pane-head { height: 68px; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 var(--pad); }
.pane-side.end { justify-self: end; display: flex; gap: 2px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.seg-opt { height: 32px; padding: 0 16px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--muted); cursor: pointer; user-select: none; transition: color .2s, background .3s var(--ease); }
.seg-opt .ic { font-size: 13px; }
.seg-opt:hover { color: var(--ink2); }
.vr-doc:checked ~ .pane .opt-doc, .vr-dash:checked ~ .pane .opt-dash, .pr-info:checked ~ .panel-switch .opt-info, .pr-know:checked ~ .panel-switch .opt-know {
  background: var(--ink); color: var(--canvas); font-weight: 600;
}
.vr:focus-visible ~ .pane .view-switch, .pr:focus-visible ~ .panel-switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.vr-doc:checked ~ .pane .dash-page, .vr-dash:checked ~ .pane .doc-page { display: none; }
.head-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; user-select: none; transition: background .12s, color .12s; }
.head-btn .ic { font-size: 15px; }
.head-btn:hover { background: var(--hover); color: var(--ink); }
#info-on:checked ~ .frag .info-btn { background: var(--ink); color: var(--canvas); }
#info-on:focus-visible ~ .frag .info-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.pane-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; overscroll-behavior: contain; container-type: inline-size; }

/* document page */
.page { color: var(--ink); font-size: 16px; line-height: 1.7; }
.doc-page { max-width: 780px; margin: 0 auto; padding: 20px 40px 120px; }
.doc-title { margin: 0; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.02; font-weight: 800; letter-spacing: -.05em; word-break: keep-all; overflow-wrap: anywhere; }
.props { display: flex; align-items: center; gap: 8px; min-height: 22px; margin-top: 12px; flex-wrap: wrap; }
.props-tags { font-size: 13px; color: var(--muted); white-space: pre; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--canvas); border: 1px solid var(--line); font-size: 11px; font-weight: 500; color: var(--ink2); }
.chip .ic { font-size: 10px; }
.doc-body { margin-top: 24px; }
.doc-body > :not(:first-child) { margin-top: 16px; }
.rq > :not(:first-child), .callout-body > :not(:first-child) { margin-top: 8px; }
.rp { margin: 0; overflow-wrap: anywhere; }
.rh { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; word-break: keep-all; scroll-margin-top: 20px; }
.rh1 { font-size: 28px; padding-top: 17.6px; }
.rh2 { font-size: 24px; padding-top: 14.4px; }
.rh3 { font-size: 20px; padding-top: 9.6px; }
.rh4, .rh5, .rh6 { font-size: 17.6px; padding-top: 6.4px; }
.rl { margin: 0; padding: 0; list-style: none; counter-reset: item; }
.rl > li { position: relative; padding-left: 26px; }
.rl > li + li { margin-top: 4.8px; }
.rl > li > * + * { margin-top: 4.8px; }
.rl > li > p { margin: 0; }
ul.rl > li::before { content: "•"; position: absolute; left: 0; width: 18px; text-align: center; color: var(--muted); }
ol.rl > li { counter-increment: item; }
ol.rl > li::before { content: counter(item) "."; position: absolute; left: 0; width: 18px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.rq { margin: 0; position: relative; padding-left: 17px; color: var(--ink2); }
.rq::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 1.5px; background: var(--line); }
.rq > * + * { margin-top: 8px; }
.rq > p { margin: 0; }
.callout { display: flex; gap: 10px; padding: 8px 12px; margin-block: 3px; border-left: 2px solid var(--ink); background: var(--block); }
.callout.c-tip, .callout.c-important, .callout.c-warning, .callout.c-caution { --tone: var(--ink); }
.callout-ic { font-size: 14px; color: var(--tone); margin-top: 5px; stroke-width: 1.9; }
.callout-body { flex: 1; min-width: 0; }
.callout-body > * + * { margin-top: 8px; }
.callout-body > p { margin: 0; }
.rtable { border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; }
.rtable table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rtable td, .rtable th { padding: 6px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rtable tr > :last-child { border-right: 0; }
.rtable tbody tr:last-child > * { border-bottom: 0; }
.rtable tbody tr:first-child td, .rtable thead th { background: var(--block); }
.rtable th { font-weight: 600; font-size: 13px; color: var(--ink2); }
.rtable td > * + * { margin-top: 2px; }
.rtable td > p { margin: 0; }
.rtable .muted { color: var(--muted); font-size: 13px; }
.rtable .strong { font-weight: 500; }
.rcode { margin: 0; padding: 12px 14px; background: var(--block); border-radius: 6px; font-size: 14px; line-height: 1.6; overflow-x: auto; color: var(--ink); tab-size: 2; }
.rcode code { font-size: inherit; }
.rmermaid { margin: 0; }
.mm-scroll { overflow-x: auto; padding: 4px 0; text-align: center; }
.mm { max-width: 100%; height: auto; font-family: var(--font); }
.mm-node { fill: var(--block); stroke: var(--faint); stroke-width: 1.2; }
.mm-text { fill: var(--ink); font-size: 13px; text-anchor: middle; }
.mm-edge, .mm-head { fill: none; stroke: var(--ink2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.mm-thick { stroke-width: 2.6; }
.mm-dashed { stroke-dasharray: 5 4; }
.mm-dot { fill: var(--canvas); stroke: var(--ink2); stroke-width: 1.5; }
.mm-label-bg { fill: var(--canvas); }
.mm-label { fill: var(--ink2); font-size: 11px; text-anchor: middle; }
.mm-src { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.mm-src summary { cursor: pointer; width: max-content; }
.mm-src .rcode { margin-top: 8px; }
.rmath { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; margin-block: 4px; background: var(--block); border-radius: 8px; }
.math-ic { font-size: 13px; color: var(--muted); }
.rmath code { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rhr { border: 0; height: 1px; background: var(--line); margin: 12px 0 !important; }
.textblock { color: var(--ink2); }
.raw-label { display: inline-block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.raw-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.page p code, .page li code, .page td code, .rec code { font-size: .875em; background: var(--code-bg); padding: .1em .3em; border-radius: 4px; }
.page a:not(.mention):not(.rec-rel):not(.figure):not(.rec-ref) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mention { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.mention.unresolved { color: var(--muted); text-decoration-color: var(--muted); text-decoration-style: dashed; }
.unsafe-link { color: var(--ink); text-decoration: underline dotted; }
s { color: var(--muted); }
.unknown { background: var(--block); border-radius: 6px; padding: 8px; font-size: 12px; color: var(--muted); }
.unknown summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: baseline; }
.unknown summary::-webkit-details-marker { display: none; }
.unknown summary code { font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unknown pre { margin: 8px 0 0; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink2); max-height: 320px; overflow: auto; }
.unknown-inline { color: var(--muted); font-size: .9em; }

/* records */
.rec { display: flex; gap: 6px; align-items: flex-start; border-radius: 6px; transition: background .15s; cursor: pointer; }
.rec-lead { width: 20px; height: 25.6px; flex: none; display: flex; align-items: center; justify-content: center; }
.rec.compact .rec-lead { height: 25.6px; }
.sym { font-size: 12.5px; color: var(--muted); stroke-width: 1.8; }
.sym.sym-dot { font-size: 6px; }
.sym-warn { color: var(--warn); } .sym-bad { color: var(--bad); }
.sym.plain { color: var(--muted); }
.check { width: 17px; height: 17px; border-radius: 50%; border: 1.4px solid var(--faint); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background .2s, border-color .2s; }
/* The sprite symbol strokes with currentColor, so the mark's color must be set as `color`. */
.check svg { width: 10px; height: 10px; opacity: 0; fill: none; color: var(--canvas); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.check.on { background: var(--muted); border-color: var(--muted); }
.check.on svg { opacity: 1; }
.rec-main { flex: 1; min-width: 0; }
.rec-line { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.rec-name { font-weight: 600; overflow-wrap: anywhere; }
.r-task .rec-name, .rec.compact .rec-name { font-weight: 400; }
.rec-name.untitled { color: var(--muted); }
.rec.done .rec-name { color: var(--muted); }
.rec.superseded { opacity: .55; }
.rec.superseded .rec-name { text-decoration: line-through; }
.rec-d { margin: 3px 0 0; color: var(--ink2); overflow-wrap: anywhere; }
.rec-d.quote { position: relative; padding-left: 12px; }
.rec-d.quote::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 2px; border-radius: 1px; background: var(--line); }
.rec-ref { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin-top: 2px; font-size: 13px; color: var(--muted); }
.rec-ref span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.rec-ref:hover { color: var(--accent); }
.rec-rel { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
a.rec-rel:hover { color: var(--ink2); }
.rec-rel.warn { color: var(--warn); }
.rec-tags { display: block; font-size: 13px; color: var(--faint); margin-top: 2px; white-space: pre-wrap; }
.metric-inline { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.mv { font-size: 20px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.mv.empty { color: var(--faint); }
.mu { font-size: 15px; color: var(--muted); }
.rec.selected { background: var(--accent-soft); outline: 1px solid var(--ink); outline-offset: 1px; }
.card.selected .row-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rec.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { background: var(--accent-soft); } 100% { background: transparent; } }
.rec.unresolved { color: var(--muted); align-items: center; cursor: default; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; color: var(--t, var(--muted)); background: transparent; align-self: center; }
.tag.small { height: 18px; font-size: 11px; padding: 0 7px; }
.t-ok { --t: var(--muted); } .t-accent, .t-warn, .t-bad { --t: var(--ink); } .t-faint { --t: var(--faint); } .t-muted { --t: var(--muted); }
.tag:not(.stat).t-warn { box-shadow: inset 0 0 0 1px var(--ink); }
.tag:not(.stat).t-bad { color: var(--canvas); background: var(--ink); }
.tag.stat { padding: 0; height: auto; gap: 5px; color: var(--ink2); }
.tag.stat.t-faint { color: var(--muted); }
/* Status is a shape, never a hue: open ring, active half, blocked mark, done check, superseded slash. */
.sg { width: 13px; height: 13px; flex: none; color: var(--ink); overflow: visible; }
.tag.small .sg { width: 12px; height: 12px; }
.sg-line { fill: none; stroke: currentColor; stroke-width: 1.4; }
.sg-fill { fill: currentColor; }
.sg-done { fill: var(--muted); }
.sg-faint { opacity: .45; }
.sg-knock { fill: none; stroke: var(--canvas); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.due { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }

.coll { padding: 4px 0; }
.coll-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.coll-name { font-size: 13px; font-weight: 600; color: var(--muted); }
.coll-count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ring { width: 11px; height: 11px; margin-left: 2px; }
.ring circle { fill: none; stroke-width: 1.6; }
.ring-track { stroke: color-mix(in srgb, var(--accent) 25%, transparent); }
.ring-fill { stroke: var(--accent); stroke-linecap: round; }
.coll-list { display: flex; flex-direction: column; gap: 4px; }
.coll-table { font-size: 14px; }

.rec-sections { margin-top: 36px; display: flex; flex-direction: column; gap: 26px; }
.rec-section { display: flex; flex-direction: column; gap: 6px; }
.sec-title { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.rec-section .rec { padding: 4px 0; }

.past-banner { display: flex; align-items: center; gap: 10px; padding: 8px 11px; margin-bottom: 20px; background: var(--accent-soft); border-radius: 9px; font-size: 13px; }
.past-ic { font-size: 14px; color: var(--ink); }
.past-text { font-weight: 600; flex: 1; }
.btn-now { height: 24px; padding: 0 11px; border-radius: 999px; background: var(--ink); color: var(--canvas); font-size: 12px; font-weight: 600; }
.btn-now:hover { background: var(--canvas); color: var(--ink); outline: 1px solid var(--ink); }
.notice { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 10px 12px; margin: 0 0 16px; border-radius: 0; border-left: 2px solid var(--ink); background: var(--block); color: var(--ink); font-size: 13px; }
.notice.bad { background: var(--ink); color: var(--canvas); }
.notice.warn { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.notice span { color: inherit; }
.notice a { font-weight: 600; text-decoration: underline; }

/* dashboard */
.dash-page { max-width: 1120px; margin: 0 auto; padding: 20px 40px 120px; display: flex; flex-direction: column; gap: 30px; }
.dash-page > .past-banner, .dash-page > .notice { margin-bottom: -16px; }
.dash-head { display: flex; flex-direction: column; gap: 14px; }
.dash-title { margin: 0; font-size: clamp(36px, 4.4vw, 52px); font-weight: 800; line-height: 1.02; letter-spacing: -.05em; word-break: keep-all; }
.dash-summary { margin: 0; color: var(--ink2); }
.dash-sec { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 12px; }
.sec-h { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 17px; font-weight: 700; }
.sec-count { font-size: 13px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.dash-empty { color: var(--muted); font-size: 14px; margin: 0; }
.spark { position: relative; height: 36px; margin-top: auto; }
.spark svg { width: 100%; height: 100%; overflow: visible; display: block; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark-dot { stroke: var(--accent); stroke-width: 5.5; stroke-linecap: round; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: opacity .15s; }

/* The desktop's floating right card, inset from the window edges. */
.frag > .info { display: none; grid-column: 2; grid-row: 2; width: var(--info-w); min-width: 0; min-height: 0; z-index: 2; padding: 0 12px 12px 0; background: transparent; }
#info-on:checked ~ .frag > .info { display: flex; }
.info-card { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--canvas); border: 1px solid var(--line); border-radius: 18px; }
.panel-switch { display: flex; margin: 14px 14px 0; }
.panel-switch .seg-opt { flex: 1; justify-content: center; }
.pr-info:checked ~ .info-scroll .panel-knowledge, .pr-know:checked ~ .info-scroll .panel-info { display: none; }
.info-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 18px 20px; overscroll-behavior: contain; }
.panel { display: flex; flex-direction: column; gap: 26px; }
.doc-details { display: flex; flex-direction: column; gap: 26px; }
.doc-details:empty { display: none; }
.psec { display: flex; flex-direction: column; gap: 8px; }
.plabel { display: flex; align-items: baseline; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--muted); }
.plabel-n { margin-left: auto; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.summary { display: flex; flex-direction: column; }
.srow { display: flex; align-items: center; gap: 8px; padding: 6px; margin: 0 -6px; border-radius: 7px; cursor: pointer; transition: background .1s; }
.srow:hover { background: var(--hover); }
.srow .sym { font-size: 10px; width: 16px; }
.srow-name { font-size: 13px; color: var(--ink); white-space: nowrap; }
.srow-notes { margin-left: auto; display: flex; gap: 8px; }
.srow .fnote { font-size: 11.5px; }
.srow-n { font-size: 13px; color: var(--ink2); min-width: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.srow-chev { font-size: 9px; color: var(--faint); opacity: 0; stroke-width: 2.4; }
.srow:hover .srow-chev { opacity: 1; }
.tagflow { display: flex; flex-wrap: wrap; gap: 6px; }
.htag { display: inline-flex; align-items: baseline; gap: 2px; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 500; }
.htag b { font-size: 11px; opacity: .7; }
.outline { display: flex; flex-direction: column; gap: 1px; }
.ol-row { position: relative; display: block; padding: 2px 6px 2px 10px; line-height: 22px; border-radius: 6px; font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-row[data-level="1"] { padding-left: 22px; } .ol-row[data-level="2"] { padding-left: 34px; } .ol-row[data-level="3"], .ol-row[data-level="4"] { padding-left: 46px; }
.ol-row:hover { background: var(--hover); }
.ol-row.current { color: var(--ink); font-weight: 600; }
.ol-row.current::before { content: ""; position: absolute; left: 4px; top: 5px; bottom: 5px; width: 2px; border-radius: 1px; background: var(--accent); }
.pempty, .more-note { margin: 0; font-size: 12px; color: var(--muted); }
.more-note { padding: 6px 0; grid-column: 1 / -1; }

.rec-detail { display: flex; flex-direction: column; gap: 12px; }
.back { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--muted); align-self: flex-start; }
.back:hover { color: var(--ink2); }
.back .ic { font-size: 10px; stroke-width: 2.2; }
.rd-kind { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: -6px; }
.rd-kind .sym { font-size: 10px; }
.rd-title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.rd-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rd-d { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink2); overflow-wrap: anywhere; }
.rd-fields { margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; }
.rd-fields div { display: flex; gap: 10px; align-items: baseline; }
.rd-fields dt { width: 58px; flex: none; font-size: 12px; color: var(--muted); }
.rd-fields dd { margin: 0; font-size: 12.5px; color: var(--ink); overflow-wrap: anywhere; }
.rd-fields dd.mono { font: 11px var(--mono); }
.rd-links { gap: 10px; }
.lgroup-name { font-size: 11px; font-weight: 500; color: var(--faint); padding-bottom: 2px; }
.prow { width: calc(100% + 12px); display: flex; align-items: baseline; gap: 6px; padding: 5px 6px; margin: 0 -6px; border-radius: 7px; text-align: left; transition: background .1s; }
.prow:hover { background: var(--hover); }
.prow .sym { font-size: 10px; width: 16px; align-self: center; }
.prow-title { font-size: 13px; color: var(--ink); flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow-note { font-size: 11px; color: var(--faint); white-space: nowrap; }
.prow.warn, .prow.warn .prow-title { color: var(--warn); }
.prow.warn .sym { color: var(--warn); }
.kgroup { border-radius: 8px; }
.kgroup + .kgroup { margin-top: 10px; }
.kgroup summary { list-style: none; display: flex; align-items: center; gap: 7px; padding: 6px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--ink2); cursor: pointer; position: sticky; top: -18px; background: var(--canvas); z-index: 1; }
.kgroup summary::-webkit-details-marker { display: none; }
.kgroup summary .sym { font-size: 10px; }
.kchev { margin-left: auto; font-size: 10px; color: var(--faint); transition: transform .2s; stroke-width: 2.2; }
.kgroup:not([open]) .kchev { transform: rotate(-90deg); }

.hsearch { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: 8px; background: color-mix(in srgb, var(--hover) 75%, transparent); }
.hs-ic { font-size: 11px; color: var(--muted); stroke-width: 2; }
.hsearch input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 12.5px; color: var(--ink); }
.hsearch input::placeholder { color: var(--muted); }
.hsearch input::-webkit-search-cancel-button { display: none; }
.hs-clear { font-size: 11px; color: var(--muted); display: flex; --xcircle-x: var(--canvas); }
.hsearch:focus-within { outline: 1px solid var(--ink); }
.hresults:empty { display: none; }
.hresults { display: flex; flex-direction: column; gap: 6px; }
.hs-summary { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.hs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hs-row { padding: 9px 6px; margin: 0 -6px; border-radius: 7px; cursor: pointer; border-bottom: 1px solid var(--line); }
.hs-row:last-child { border-bottom: 0; }
.hs-row:hover { background: var(--hover); }
.hs-top { display: flex; align-items: baseline; gap: 8px; font-size: 12px; }
.hs-change { font-weight: 600; }
.hs-change.c-appeared, .hs-change.c-increased { color: var(--ink); }
.hs-change.c-disappeared, .hs-change.c-decreased { color: var(--muted); }
.hs-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.hs-when { margin-left: auto; font-size: 11px; color: var(--muted); }
.snippet { margin: 5px 0 0; font-size: 12px; color: var(--ink2); line-height: 1.5; overflow-wrap: anywhere; }
.snippet mark { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink); border-radius: 3px; padding: 0 1px; }
.hs-more { margin: 0; font-size: 11.5px; color: var(--muted); }
.hs-more button, .hpager button { color: var(--accent); font-weight: 600; font-size: 11.5px; }
.hpager { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl { position: relative; display: flex; gap: 12px; padding: 12px 0; cursor: pointer; transition: opacity .2s; }
.tl::before { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--faint) 70%, transparent); }
.timeline:first-child .tl.first::before, details .timeline .tl:first-child::before { top: 19px; }
.tl.last::before { bottom: auto; height: 19px; }
.timeline:first-child .tl.first.last::before { display: none; }
.tl:not(.last)::after { content: ""; position: absolute; left: 19px; right: 0; bottom: 0; height: 1px; background: var(--line); }
.tl-sq { position: relative; width: 7px; height: 7px; flex: none; margin-top: 4px; background: var(--ink2); }
.tl.selected .tl-sq { background: var(--ink); outline: 1px solid var(--ink); outline-offset: 2px; }
.tl-left { width: 84px; flex: none; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tl-rev { font: 500 10px var(--mono); color: var(--faint); }
.tl.selected .tl-rev { color: var(--accent); }
.tl-who { font-size: 12.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-when { font-size: 11px; color: var(--muted); }
.tl-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tl-main { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
.tl-b { position: relative; padding-left: 12px; font-size: 12px; color: var(--ink2); line-height: 1.4; overflow-wrap: anywhere; }
.tl-b::before { content: "•"; position: absolute; left: 0; color: var(--faint); }
.tl-rest { font-size: 11px; color: var(--faint); }
.tl.later { opacity: .5; }
.tl:hover .tl-main { color: var(--accent); }
.tl.hidden-by-filter { display: none; }
.tl-more summary { list-style: none; font-size: 11px; font-weight: 500; color: var(--muted); padding: 6px 0; cursor: pointer; }
.tl-more summary::-webkit-details-marker { display: none; }
.tl-more[open] summary { display: none; }

/* 4D dock */
.dock { flex: none; border-top: 1px solid var(--line); padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
html:not(.js) .dock { display: none; }
.orbit-wrap { position: relative; height: 74px; }
.orbit { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.orbit.dragging { cursor: grabbing; }
.orbit:focus-visible { outline: none; }
.dock-row { height: 40px; display: grid; grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr); align-items: center; }
.dock-side.end { display: flex; justify-content: flex-end; }
.play { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--canvas); font-size: 12px; background: var(--ink); transition: transform .4s var(--ease); }
.play:hover { transform: scale(1.06); }
.play:disabled { opacity: .3; cursor: default; transform: none; }
.play .ic { margin-left: 1px; }
.play.playing .ic { margin-left: 0; }
.dock-now { height: 30px; padding: 0 14px; font-size: 12.5px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.step { width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--ink2); font-size: 11px; transition: background .1s; }
.step .ic { stroke-width: 2.3; }
.step:hover:not(:disabled) { background: var(--hover); }
.step:disabled { color: var(--faint); cursor: default; }
.step-label { min-width: 8.5em; display: grid; justify-items: center; gap: 5px; line-height: 1; }
.step-rev { font: 700 14px var(--mono); letter-spacing: 0; color: var(--ink); }
.step-rev.past { color: var(--ink); }
.step-time { font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* sheets, veil, toast */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 24px; }
.sheet:target, .sheet.open { display: flex; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(10, 10, 10, .5); animation: fade .2s; }
.sheet-card { position: relative; width: min(760px, 100%); max-height: min(80vh, 760px); display: flex; flex-direction: column; background: var(--canvas); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; animation: pop .22s cubic-bezier(.16, 1, .3, 1); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.sheet-head div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sheet-head b { font-size: 15px; }
.sheet-head span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-head code { font-size: 11px; }
.sheet-body { margin: 0; padding: 16px 18px; overflow: auto; font-size: 12.5px; line-height: 1.6; background: var(--block); white-space: pre; }

.drop-veil { position: absolute; inset: 0; z-index: 40; display: none; align-items: center; justify-content: center; background: color-mix(in srgb, var(--canvas) 92%, transparent); }
.drop-veil > div { position: absolute; inset: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--ink); border-radius: 12px; background: transparent; color: var(--ink); }
.drop-veil .ic { font-size: 34px; color: var(--ink); stroke-width: 1.5; }
.drop-veil b { font-size: 17px; }
.drop-veil span { font-size: 13px; color: var(--muted); }
body.dragging .drop-veil { display: flex; }
.toast { position: absolute; left: 50%; bottom: 18px; z-index: 45; transform: translate(-50%, 8px); max-width: min(560px, 90%); padding: 9px 14px; border-radius: 10px; background: var(--ink); color: var(--canvas); font-size: 13px; line-height: 1.4; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; border: 1px solid var(--line); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.err { background: var(--ink); color: var(--canvas); }
.progress { position: absolute; left: 0; right: 0; top: 63px; height: 1px; z-index: 5; overflow: hidden; opacity: 0; transition: opacity .2s; pointer-events: none; }
.progress::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; background: var(--ink); animation: sweep 1s ease-in-out infinite; }
.window.busy .progress { opacity: 1; }
@keyframes sweep { from { left: -30%; } to { left: 100%; } }

/* editor shown when no document is open */
.empty-pane { grid-column: 1 / -1; overflow-y: auto; align-items: center; }
.window.is-empty .empty-pane { display: flex !important; }
.compose { width: min(880px, 100%); flex: 1 0 auto; padding: clamp(40px, 10vh, 120px) var(--pad) 72px; display: flex; flex-direction: column; }
.compose-title { margin: 0; font-size: clamp(52px, 8vw, 112px); line-height: .92; font-weight: 800; letter-spacing: -.065em; word-break: keep-all; }
.compose-sub { margin: 20px 0 40px; font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; letter-spacing: -.02em; color: var(--muted); word-break: keep-all; }
.editor { display: flex; flex-direction: column; background: var(--canvas); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .3s var(--ease); }
.editor:focus-within { border-color: var(--ink); }
.editor textarea { min-height: 300px; resize: vertical; padding: 22px 24px; border: 0; outline: 0; background: transparent; font: 13.5px/1.7 var(--mono); letter-spacing: 0; color: var(--ink); tab-size: 2; }
.editor textarea::placeholder { color: var(--faint); }
.file-field { display: flex; align-items: center; gap: 10px; margin: 0 20px 14px; font-size: 13px; color: var(--ink2); }
.editor-foot { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-top: 1px solid var(--line); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink2); transition: background .12s; }
.link-btn .ic { font-size: 15px; color: var(--muted); }
.link-btn:hover { background: var(--hover); }
html:not(.js) .link-btn { display: none; }
.editor-hint { font: 500 12px var(--mono); letter-spacing: 0; color: var(--muted); }
.open-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--canvas); font-size: 15px; font-weight: 600; letter-spacing: -.02em; transition: transform .4s var(--ease); }
.open-btn:hover { transform: translateY(-1px); }
.open-btn kbd { font: 500 11px var(--font); opacity: .55; }
html:not(.js) .open-btn kbd { display: none; }
.samples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.samples > span { grid-column: 1 / -1; margin-bottom: 2px; font: 500 12px var(--mono); letter-spacing: 0; color: var(--muted); }
html:not(.js) .samples { display: none; }
.sample { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px 15px; border-radius: 14px; border: 1px solid var(--line); text-align: left; color: var(--ink); transition: border-color .3s var(--ease); }
.sample-role { font: 500 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sample-title { font-size: 14px; font-weight: 500; line-height: 1.3; }
.sample:hover { border-color: var(--ink); }
.fineprint { display: flex; align-items: center; gap: 7px; margin: 36px 0 0; font-size: 12.5px; color: var(--muted); }
.fineprint .ic { font-size: 13px; flex: none; }
.foot { width: 100%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding: 20px var(--pad) 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a:hover { color: var(--ink); }
.view-error { margin: 0 0 16px; }
.view-error .notice { margin: 0; }

/* tooltips for hovered stars and readouts are drawn on canvas; mention preview uses this */
.peek { position: fixed; z-index: 70; max-width: 300px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); color: var(--ink); font-size: 12.5px; line-height: 1.45; pointer-events: none; animation: fade .15s; }
.peek-kind { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--muted); }
.peek-title { font-weight: 600; font-size: 14px; margin-top: 2px; }
.peek-tags { display: flex; gap: 6px; margin-top: 6px; }
.peek-d { margin: 6px 0 0; color: var(--ink2); }

/* narrow pane keeps the reading column comfortable; this follows the base page rules so it wins */
@container (max-width: 640px) { .doc-page, .dash-page { padding-inline: 22px; } }

@media (max-width: 1100px) {
  .frag > .info { position: absolute; top: 64px; right: 0; bottom: 0; padding: 0 10px 10px; }
}
@media (max-width: 640px) {
  .bar { gap: 8px; padding: 0 8px 0 14px; }
  .brand { padding-right: 12px; }
  .brand-sub, .bar-btn span, .head-btn span, .seg-opt .ic { display: none; }
  .bar-btn { padding: 0 8px; }
  .tab { max-width: 160px; }
  .pane-head { padding: 0 10px; }
  .head-btn { padding: 0 8px; }
  .frag > .info { width: 100%; padding: 0 8px 8px; }
  .doc-title, .dash-title { font-size: 34px; }
  .compose-title { font-size: 52px; }
  .compose { padding-top: 36px; }
  .seg-opt { padding: 0 14px; }
  .editor textarea { min-height: 240px; }
  .editor-hint { display: none; }
  .samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Dashboard 0.5.2: overview, semantic task groups and wide/narrow plan. */
.dash-page { max-width: 1152px; padding-inline: 36px; gap: 28px; }
.dash-head { gap: 8px; }
.dash-last { margin: 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, max(180px, calc((100% - 48px) / 4))), 1fr)); gap: 14px 16px; align-items: start; margin-top: 10px; }
.overview-figure { max-width: 280px; min-width: 0; min-height: 94px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px 10px; border-radius: 12px; }
.overview-value { font-size: 30px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.overview-value small { margin-left: 4px; font-size: 14px; font-weight: 400; color: var(--muted); }
.overview-label { font-size: 13.5px; font-weight: 500; color: var(--ink2); }
.metric-chevron { display: inline-block; margin-left: 4px; color: var(--muted); font: 11px var(--mono); vertical-align: 1px; }
.overview-note { font-size: 11.5px; line-height: 1.35; color: var(--muted); font-variant-numeric: tabular-nums; }
.attention-figure .emphasis { font-weight: 700; }
.task-progress { width: 140px; height: 6px; margin: 2px 0; overflow: visible; border-radius: 4px; background: var(--line); }
.task-progress rect { height: 6px; }
.task-progress .p-done { fill: var(--ink); }
.task-progress .p-active { fill: var(--muted); }
.task-progress .p-blocked { fill: var(--canvas); stroke: var(--ink); stroke-width: 1; stroke-dasharray: 1.5 1; }
.metric-figure .spark { width: 140px; height: 24px; margin: 0; }
.metric-figure .spark polyline, .metric-figure .spark-dot { stroke: var(--ink); }
.dash-band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; }
.dash-main, .dash-goals, .dash-risks { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dash-sec { gap: 10px; }
.sec-h { font-size: 16px; }
.task-group { border-top: 1px solid var(--line); }
.task-group > summary { display: flex; align-items: center; gap: 8px; padding: 8px 0; cursor: pointer; list-style: none; font-size: 13px; }
.task-group > summary::-webkit-details-marker { display: none; }
.group-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.group-rule { flex: 1; height: 1px; margin-left: 4px; background: var(--line); }
.group-chevron { flex: none; width: 7px; height: 7px; margin-right: 4px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; color: var(--muted); opacity: 0; transform: rotate(45deg); transition: transform .15s ease, opacity .15s ease; }
.task-group:not([open]) > summary .group-chevron { opacity: 1; transform: rotate(-45deg); }
.task-group > summary:hover .group-chevron { opacity: 1; }
.task-rows { display: flex; flex-direction: column; }
.dash-row.card { min-width: 0; flex-direction: row; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.dash-row.card:hover { background: var(--hover); }
.row-title { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.task-check { color: var(--muted); }
.row-chip { flex: none; }
.row-date, .event-timeline time { flex: none; color: var(--muted); font-size: 11.5px; }
.row-date { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.row-calendar { width: 12px; height: 12px; }
.dash-list { display: flex; flex-direction: column; }
.group-section, .dash-table { min-width: 0; }
.closed-fold { padding-top: 8px; color: var(--muted); font-size: 12px; }
.closed-fold > summary { cursor: pointer; }
.event-timeline { margin: 0; padding: 0; list-style: none; }
.event-timeline li { border-left: 1px solid var(--line); padding-left: 12px !important; }
.metric-table { gap: 8px; }
.metric-row { min-height: 40px; display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(80px, 1fr) minmax(140px, auto) auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.metric-row strong { min-width: 88px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-bar { height: 5px; border-radius: 5px; background: var(--line); }
.metric-bar svg { display: block; width: 100%; height: 5px; }
.metric-bar rect { fill: var(--ink); }
.metric-unit { margin: 8px 0 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.goal-row { flex-direction: column !important; align-items: stretch !important; gap: 8px !important; }
.goal-head { width: 100%; display: flex; align-items: center; gap: 8px; }
.goal-head .row-title { font-weight: 600; }
.goal-progress { width: 100%; flex: none; display: flex; align-items: center; gap: 8px; color: var(--muted); font: 11px var(--mono); white-space: nowrap; }
.goal-progress progress { flex: 1; width: auto; height: 4px; appearance: none; border: 0; border-radius: 4px; background: var(--line); }
.goal-progress progress::-webkit-progress-bar { border-radius: 4px; background: var(--line); }
.goal-progress progress::-webkit-progress-value { border-radius: 4px; background: var(--ink); }
.goal-progress progress::-moz-progress-bar { border-radius: 4px; background: var(--ink); }
.overview-value.emphasis { font-weight: 750; }
@container (min-width: 880px) { .dash-band { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; } .dash-main { grid-column: 1; grid-row: 1 / span 2; } .dash-goals { grid-column: 2; grid-row: 1; } .dash-risks { grid-column: 2; grid-row: 2; } }
@container (max-width: 640px) { .dash-page { padding-inline: 22px; } .overview { grid-template-columns: repeat(auto-fill, minmax(min(280px, max(180px, calc((100% - 48px) / 4))), 1fr)); } .metric-row { grid-template-columns: minmax(100px, 1fr) minmax(60px, .8fr) minmax(110px, auto) auto; gap: 8px; } }
