@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter-italic.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/jetbrains-mono.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/source-serif.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/source-serif-italic.woff2) format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/assets/fonts/literata.woff2) format("woff2"); }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(/assets/fonts/literata-italic.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/atkinson.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/atkinson-italic.woff2) format("woff2"); }
:root {
--sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--serif: "Source Serif 4", ui-serif, Georgia, "Times New Roman", serif;
--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
--body: var(--sans);
--bg: #faf9f6;
--bg-side: #f3f1ec;
--bg-raise: #ffffff;
--fg: #1f1d1a;
--fg-2: #5c574f;
--fg-3: #756f66;
--rule: #e6e2da;
--rule-2: #d8d3c9;
--accent-l: #8c0f26;
--accent-d: #f04a63;
--accent: var(--accent-l);
--accent-bg: color-mix(in srgb, var(--accent) 10%, var(--bg));
--brand: var(--accent-l);
--mascot: #d9203b;
--mascot-nub: var(--brand);
--mascot-ink: color-mix(in srgb, var(--brand) 40%, #000);
--code-bg: #f3f1ec;
--mark: #fde68a;
--add: #dcfce7; --add-fg: #166534;
--del: #fee2e2; --del-fg: #991b1b;
--shadow: 0 10px 40px rgba(30, 25, 15, .16), 0 1px 2px rgba(30, 25, 15, .08);
--s-comment: #8a8378;
--s-keyword: color-mix(in srgb, var(--accent) 85%, #000);
--s-string: #3b6d11;
--s-number: #0b6e99;
--s-function: #6a3fb5;
--s-type: #0e7490;
--s-variable: #1f1d1a;
--s-punct: #6b665e;
--s-tag: var(--s-keyword);
--s-attr: #6a3fb5;
--side-w: 264px;
--rail-w: 232px;
--head-h: 52px;
--measure: 70ch;
--radius: 6px;
--t: 140ms cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg: #15181f;
--bg-side: #111419;
--bg-raise: #1c2029;
--fg: rgba(255,255,255,.87);
--fg-2: rgba(255,255,255,.62);
--fg-3: rgba(255,255,255,.47);
--rule: rgba(255,255,255,.08);
--rule-2: rgba(255,255,255,.14);
--accent: var(--accent-d);
--accent-bg: color-mix(in srgb, var(--accent) 16%, transparent);
--code-bg: #1b1f28;
--mark: rgba(253,230,138,.35);
--add: rgba(74,222,128,.14); --add-fg: #86efac;
--del: rgba(248,113,113,.14); --del-fg: #fca5a5;
--shadow: 0 10px 40px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.4);
--s-comment: rgba(255,255,255,.40);
--s-keyword: var(--accent);
--s-string: #a3d977;
--s-number: #7dd3fc;
--s-function: #c4b5fd;
--s-type: #67e8f9;
--s-variable: rgba(255,255,255,.87);
--s-punct: rgba(255,255,255,.55);
--s-tag: var(--accent);
--s-attr: #c4b5fd;
}
}
:root[data-theme="dark"] {
--bg: #15181f;
--bg-side: #111419;
--bg-raise: #1c2029;
--fg: rgba(255,255,255,.87);
--fg-2: rgba(255,255,255,.62);
--fg-3: rgba(255,255,255,.47);
--rule: rgba(255,255,255,.08);
--rule-2: rgba(255,255,255,.14);
--accent: var(--accent-d);
--accent-bg: color-mix(in srgb, var(--accent) 16%, transparent);
--code-bg: #1b1f28;
--mark: rgba(253,230,138,.35);
--add: rgba(74,222,128,.14); --add-fg: #86efac;
--del: rgba(248,113,113,.14); --del-fg: #fca5a5;
--shadow: 0 10px 40px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.4);
--s-comment: rgba(255,255,255,.40);
--s-keyword: var(--accent);
--s-string: #a3d977;
--s-number: #7dd3fc;
--s-function: #c4b5fd;
--s-type: #67e8f9;
--s-variable: rgba(255,255,255,.87);
--s-punct: rgba(255,255,255,.55);
--s-tag: var(--accent);
--s-attr: #c4b5fd;
}
:root[data-accent="crimson"] { --accent-l: #b91c1c; --accent-d: #f87171; --mascot: #ff5c8a; }
:root[data-accent="rose"] { --accent-l: #be185d; --accent-d: #f472b6; --mascot: #ff7ad9; }
:root[data-accent="violet"] { --accent-l: #7c3aed; --accent-d: #a78bfa; --mascot: #c69cff; }
:root[data-accent="blue"] { --accent-l: #1d4ed8; --accent-d: #60a5fa; --mascot: #7ab8ff; }
:root[data-accent="teal"] { --accent-l: #0f766e; --accent-d: #2dd4bf; --mascot: #5ef2d6; }
:root[data-accent="green"] { --accent-l: #15803d; --accent-d: #4ade80; --mascot: #7dff9e; }
:root[data-accent="graphite"] { --accent-l: #57534e; --accent-d: #d6d3d1; --mascot: #dcd7d0; }
:root[data-font="serif"] { --body: var(--serif); }
:root[data-font="literata"] { --body: "Literata", var(--serif); }
:root[data-font="atkinson"] { --body: "Atkinson Hyperlegible Next", var(--sans); }
:root[data-font="mono"] { --body: var(--mono); --head: var(--mono); }
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body {
margin: 0; height: 100%;
background: var(--bg); color: var(--fg);
font-family: var(--sans); font-size: 15px; line-height: 1.5;
-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
font-feature-settings: "cv11", "ss01", "calt";
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .15em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--accent-bg); }
#app {
display: grid; height: 100%;
grid-template-columns: var(--side-w) minmax(0, 1fr) var(--rail-w);
grid-template-areas: "side main rail";
}
:root[data-side="0"] #app { grid-template-columns: 0 minmax(0,1fr) var(--rail-w); }
:root[data-side="0"] #side { display: none; }
:root[data-rail="0"] #app { grid-template-columns: var(--side-w) minmax(0,1fr) 0; }
:root[data-rail="0"] #rail, #rail.empty { display: none; }
:root[data-rail="0"][data-side="0"] #app { grid-template-columns: 0 minmax(0,1fr) 0; }
#app:has(#rail.empty) { grid-template-columns: var(--side-w) minmax(0,1fr) 0; }
:root[data-side="0"] #app:has(#rail.empty) { grid-template-columns: 0 minmax(0,1fr) 0; }
#side, #rail { background: var(--bg-side); display: flex; flex-direction: column; min-height: 0; position: relative; }
.gutter { position: absolute; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 3; touch-action: none; }
#side .gutter { right: -4px; }
#rail .gutter { left: -4px; }
.gutter::after { content: ""; position: absolute; top: 0; bottom: 0; left: 3px; width: 2px; background: var(--accent); opacity: 0; transition: opacity var(--t); }
.gutter:hover::after, .gutter:focus-visible::after, :root[data-resizing] .gutter::after { opacity: .6; }
.gutter:focus-visible { outline: none; }
:root[data-resizing] { cursor: col-resize; user-select: none; }
:root[data-resizing] * { transition: none !important; }
@media (max-width: 1100px) {
#app { grid-template-columns: var(--side-w) minmax(0,1fr) 0 !important; }
#rail { display: none; position: fixed; inset: 0 0 0 auto; width: min(88vw, 320px); z-index: 20; box-shadow: var(--shadow); padding: 44px 0 20px 16px; }
#btn-rail-hide { top: 10px; left: 12px; }
:root[data-sheet="rail"] #rail { display: flex; animation: sheet-r 160ms cubic-bezier(.2,.7,.2,1); }
#chrome #btn-rail { display: inline-grid; }
#app:has(#rail.empty) #btn-rail { display: none; }
#rail .gutter { display: none; }
}
@media (max-width: 760px) {
#app { grid-template-columns: 0 minmax(0,1fr) 0 !important; }
#side { display: none; position: fixed; inset: 0 auto 0 0; width: min(88vw, var(--side-w)); z-index: 20; box-shadow: var(--shadow); }
:root[data-sheet="side"] #side { display: flex; animation: sheet-l 160ms cubic-bezier(.2,.7,.2,1); }
#chrome #btn-side { display: inline-grid; }
#side .gutter { display: none; }
}
@keyframes sheet-l { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes sheet-r { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
#scrim { position: fixed; inset: 0; z-index: 15; background: rgba(20, 16, 10, .28); display: none; }
:root[data-sheet] #scrim { display: block; }
#chrome { position: sticky; top: 0; z-index: 10; box-sizing: border-box; height: var(--head-h); display: flex; align-items: start; gap: 8px; padding: 14px 10px 10px; background: var(--bg); box-shadow: 0 1px 0 transparent; transition: box-shadow var(--t); }
#main.scrolled #chrome { box-shadow: 0 1px 0 var(--rule); }
#chrome .icon { display: none; }
#chrome .chrome-r { display: flex; gap: 8px; margin-left: auto; }
#chrome .over { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; height: 28px; padding-left: 6px; }
#chrome .over[hidden] { display: none; }
#chrome .over-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .24s cubic-bezier(.2,.7,.2,1); }
#main.scrolled #chrome .over-t { opacity: 1; transform: none; }
#chrome .over-x { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; color: var(--fg-3); transition: background var(--t), color var(--t); }
#chrome .over-x:hover { background: var(--rule-2); color: var(--fg); }
:root[data-view="desk"] #main { position: relative; }
:root[data-view="desk"] #chrome { position: absolute; top: 0; left: 0; right: 0; height: auto; background: none; box-shadow: none; pointer-events: none; }
:root[data-view="desk"] #chrome .icon { pointer-events: auto; }
:root[data-rail="0"] #chrome #btn-rail, :root[data-side="0"] #chrome #btn-side { display: inline-grid; }
#app:has(#rail.empty) #btn-rail { display: none; }
#btn-side-hide { margin-left: 2px; }
#btn-rail-hide { position: absolute; top: 14px; left: 8px; z-index: 1; }
.icon .pane { fill: var(--fg-2); }
.icon:hover .pane { fill: var(--fg); }
.rail-grip { display: none; }
#side { grid-area: side; }
#main { grid-area: main; }
#rail { grid-area: rail; }
#main { min-width: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
#trees, #toc, #meta { scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
@media (prefers-reduced-motion: reduce) { #main, #toc { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 10px 16px; }
.brand { font-weight: 600; letter-spacing: -.01em; color: var(--fg); display: inline-flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 20px; height: 20px; display: inline-block; flex: none; }
.brand-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.brand-mark .bm-body { fill: var(--mascot); transition: opacity var(--t); }
.brand-mark .bm-nub { fill: var(--mascot-nub); transform-origin: 16px 5px; transform-box: view-box; transition: transform var(--t), opacity .2s ease; }
.brand-mark .bm-heart { fill: #f0607e; opacity: 0; transform: scale(.4); transform-origin: 16px 3px; transform-box: view-box; transition: opacity .2s ease, transform .3s cubic-bezier(.3,1.6,.5,1); }
.brand-mark .bm-open { transform-box: fill-box; transform-origin: center; }
.brand-mark .bm-open { fill: var(--mascot-ink); }
.brand-mark .bm-shut, .brand-mark .bm-glad, .brand-mark .bm-mouth { fill: none; stroke: var(--mascot-ink); stroke-width: 2.2; stroke-linecap: round; }
.brand-mark .bm-shut, .brand-mark .bm-glad { display: none; }
html[data-note] .brand-mark .bm-open { animation: bm-blink 4.6s infinite; }
html[data-note="lit"] .brand-mark .bm-nub { animation: bm-ping 1.6s ease-in-out infinite; }
.brand-mark.hop svg { animation: bm-hop .9s cubic-bezier(.3,1.6,.5,1) 1; transform-origin: 50% 100%; }
html[data-note-near] .brand-mark .bm-open { display: none; }
html[data-note-near] .brand-mark .bm-glad { display: inline; }
html[data-note-near] .brand-mark .bm-nub { opacity: 0; }
html[data-note-near] .brand-mark .bm-heart { opacity: 1; transform: scale(1); }
@keyframes bm-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes bm-ping { 0%, 100% { fill: var(--mascot-nub); } 50% { fill: color-mix(in srgb, var(--brand) 60%, #fff); } }
@keyframes bm-hop { 0% { transform: none; } 35% { transform: translateY(-5px) scale(1.06, .94); } 60% { transform: translateY(0) scale(.94, 1.06); } 80% { transform: translateY(-1.5px); } 100% { transform: none; } }
html[data-link="off"] .brand-mark .bm-body { opacity: .55; }
html[data-link="off"] .brand-mark .bm-nub { transform: translateY(1.5px) scaleY(.7); }
html[data-link="off"] .brand-mark .bm-open, html[data-link="off"] .brand-mark .bm-glad { display: none; }
html[data-link="off"] .brand-mark .bm-shut { display: inline; }
.brand-mark .bm-love, .brand-mark .bm-wink { display: none; }
.brand-mark .bm-love path { fill: #f0607e; }
.brand-mark .bm-wink { fill: none; stroke: var(--mascot-ink); stroke-width: 2.2; stroke-linecap: round; }
html[data-say] .brand-mark .bm-open { animation: none; }
html[data-say] .brand-mark svg { animation: bm-nod .5s ease 1; transform-origin: 50% 100%; }
html[data-say="glad"] .brand-mark .bm-open { display: none; }
html[data-say="glad"] .brand-mark .bm-glad { display: inline; }
html[data-say="wink"] .brand-mark .bm-l { display: none; }
html[data-say="wink"] .brand-mark .bm-wink { display: inline; }
html[data-say="love"] .brand-mark .bm-open { display: none; }
html[data-say="love"] .brand-mark .bm-love { display: inline; }
html[data-say="love"] .brand-mark .bm-heart { opacity: 1; transform: scale(1); }
@keyframes bm-nod { 0%, 100% { transform: none; } 40% { transform: translateY(-2px) scale(1.04, .97); } }
.brand { position: relative; }
.brand-name { transition: opacity .16s ease; }
html[data-say] .brand-name { opacity: 0; }
.bm-say { position: absolute; left: 28px; top: 50%; z-index: 29;
font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: -.005em;
color: var(--accent); white-space: nowrap; max-width: 132px; overflow: hidden; text-overflow: ellipsis;
pointer-events: none;
opacity: 0; transform: translateY(calc(-50% + 4px));
transition: opacity .16s ease, transform .3s cubic-bezier(.3,1.6,.5,1); }
.bm-say.on { opacity: 1; transform: translateY(-50%); }
.side-head .brand { margin-right: auto; }
.live { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; padding: 1px 7px; border-radius: 999px; background: var(--rule); color: var(--fg-3); font-size: 11px; font-weight: 600; line-height: 16px; transition: background var(--t), color var(--t); }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.live:hover { color: var(--fg); text-decoration: none; }
.live.on { color: var(--accent); background: var(--accent-bg); }
.live.on::before { opacity: 1; }
html[data-link="off"] .live { visibility: hidden; }
.icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--fg-3); transition: background var(--t), color var(--t); }
.icon:hover { background: var(--rule); color: var(--fg); }
.icon.on { color: var(--accent); background: var(--accent-bg); }
.icon .aa { font-size: 13px; font-weight: 600; letter-spacing: -.02em; font-family: var(--body); }
:root[data-font="mono"] .icon .aa { font-size: 11px; letter-spacing: -.06em; }
#note { position: relative; margin: 0 8px;
--note-bg: color-mix(in srgb, var(--accent) 6%, var(--bg-side));
--note-rule: color-mix(in srgb, var(--accent) 16%, var(--rule)); }
.note-now { position: relative; display: block; padding: 9px 12px; border-radius: 10px; cursor: default; outline: none;
background: transparent; border: 1px solid transparent; transition: background .6s ease, border-color .6s ease, box-shadow .6s ease, padding .3s ease; }
.note-now { overflow: hidden; isolation: isolate; }
.note-now > p, .note-now > .note-by { position: relative; z-index: 1; }
.note-now[data-about] { cursor: pointer; }
.note-bg { position: absolute; right: -12px; bottom: -22px; width: 72px; height: 72px; z-index: 0; pointer-events: none;
opacity: 0; transform: translate(12px, 26px) rotate(0deg); transition: opacity .25s ease, transform .45s cubic-bezier(.3,1.5,.5,1); }
#note:hover .note-bg, #note:focus-within .note-bg, #note.peek .note-bg { opacity: .16; transform: rotate(-14deg); transition-delay: .12s; }
.note-bg .nb-body { fill: var(--mascot); }
.note-bg .nb-nub { fill: var(--mascot-nub); }
.note-bg .nb-cheek, .note-bg .nb-love { fill: #f0607e; }
.note-bg .nb-ink { fill: var(--mascot-ink); }
.note-bg .nb-shine { fill: #fff; }
.note-bg .nb-line { fill: none; stroke: var(--mascot-ink); stroke-width: 2; stroke-linecap: round; }
:root[data-theme="light"] #note:hover .note-bg, :root[data-theme="light"] #note:focus-within .note-bg, :root[data-theme="light"] #note.peek .note-bg { opacity: .22; }
#note:hover .note-now, #note:focus-within .note-now { background: var(--note-bg); border-color: var(--note-rule); }
#note:hover .note-now p, #note:focus-within .note-now p { color: var(--fg); }
#note:hover .note-by-now, #note:focus-within .note-by-now, #note.peek .note-by-now { padding-right: 40px; }
.note-now:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.note-now p, .note-trail p { margin: 0; font-family: var(--sans); font-size: 13px; font-weight: 400; line-height: 1.38; letter-spacing: -.003em;
color: var(--fg-2); text-wrap: pretty; }
.note-by { display: block; margin-top: 4px; font-family: var(--sans); font-size: 11px; line-height: 1.3; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-by-now { display: flex; gap: 6px; }
.note-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.note-snyvi { font-weight: 600; color: var(--accent); }
.note-more { flex: none; margin-left: auto; padding: 0 5px; border-radius: 6px; background: var(--rule); color: var(--fg-3); }
#note:hover .note-more, #note:focus-within .note-more, #note.peek .note-more { visibility: hidden; }
#note[data-lit="1"] .note-now { background: var(--accent-bg); border-color: color-mix(in srgb, var(--accent) 30%, transparent);
animation: note-glow 3.2s ease-in-out infinite; }
#note[data-lit="1"] .note-now p { color: var(--fg); }
#note[data-seen="1"]:not(:hover):not(:focus-within) .note-now p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg-3); }
#note[data-seen="1"]:not(:hover):not(:focus-within) .note-by { display: none; }
#note[data-seen="1"]:not(:hover):not(:focus-within) .note-now { padding-top: 5px; padding-bottom: 5px; }
@keyframes note-glow {
0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
50% { box-shadow: 0 0 14px 0 color-mix(in srgb, var(--accent) 16%, transparent); }
}
.note-trail { position: absolute; left: 0; right: 0; bottom: 100%; margin: 0 0 6px; padding: 0; list-style: none; z-index: 5;
display: flex; flex-direction: column; gap: 6px;
opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
#note:hover .note-trail, #note:focus-within .note-trail { opacity: 1; visibility: visible; transform: none; transition-delay: .25s, .25s, 0s; }
.note-trail li { padding: 9px 12px; border-radius: 10px; background: var(--note-bg); border: 1px solid var(--note-rule); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.note-trail li[data-about] { cursor: pointer; }
.note-trail li[data-about]:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--rule)); }
.note-trail p { color: var(--fg); }
.note-trail .note-by { margin-top: 4px; }
.side-foot { display: flex; align-items: center; gap: 4px; padding: 8px 12px 10px; margin-top: auto; }
.side-foot { position: relative; }
.icon .sw { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 12%, transparent); transition: background var(--t); }
.icon.flick .sw { animation: sw-flick .34s cubic-bezier(.3,1.5,.5,1) 1; }
@keyframes sw-flick { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.foot-set { position: relative; width: 28px; height: 28px; }
.foot-rail { position: absolute; left: -6px; bottom: -6px; z-index: 28;
display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; padding: 5px;
border-radius: 10px; border: 1px solid transparent;
pointer-events: none;
transition: border-color .18s ease; }
.foot-rail .keep { pointer-events: auto; }
.foot-set:hover .foot-rail, .foot-set:focus-within .foot-rail { border-color: var(--rule); pointer-events: auto; }
.foot-rail > button:not(.keep) { opacity: 0; transform: translateY(4px); pointer-events: none;
transition: opacity .14s ease, transform .2s cubic-bezier(.3,1.5,.5,1); }
.foot-set:hover .foot-rail > button, .foot-set:focus-within .foot-rail > button { opacity: 1; transform: none; pointer-events: auto; }
.foot-rail > button:nth-child(2) { transition-delay: .02s; }
.foot-rail > button:nth-child(3) { transition-delay: .05s; }
.foot-rail > button:nth-child(4) { transition-delay: .08s; }
.foot-rail > button:nth-child(5) { transition-delay: .11s; }
.foot-rail > button:nth-child(6) { transition-delay: .14s; }
.foot-rail > button:nth-child(7) { transition-delay: .17s; }
.foot-rail > button { position: relative; }
.foot-rail > button::after { content: attr(data-label);
position: absolute; left: calc(100% + 9px); top: 50%; transform: translate(-3px, -50%); z-index: 32;
padding: 3px 8px; border-radius: 7px; background: var(--bg-raise); border: 1px solid var(--rule);
font-family: var(--sans); font-size: 11px; line-height: 1.35; font-weight: 500; color: var(--fg-2);
white-space: nowrap; pointer-events: none; opacity: 0;
transition: opacity .12s ease, transform .18s ease; }
.foot-rail > button:hover::after, .foot-rail > button:focus-visible::after { opacity: 1; transform: translateY(-50%); }
.foot-rail > button.said::after { opacity: 0 !important; }
.foot-rail:has(> button.said) { border-color: var(--rule); pointer-events: auto; }
.foot-rail:has(> button.said) > button { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: none) {
.foot-set { width: auto; height: auto; }
.foot-rail { position: static; flex-direction: row; padding: 0; gap: 4px;
background: none; border: 0; box-shadow: none; pointer-events: auto; }
.foot-rail > button { opacity: 1; transform: none; pointer-events: auto; }
}
.icon .qm { font-family: var(--sans); font-size: 14px; font-weight: 600; }
#side .game { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; background: var(--bg-side); }
.game-head, .game-foot { display: flex; align-items: center; gap: 8px; font-family: var(--sans); color: var(--fg-3); }
.game-head { padding: 12px 10px 4px 16px; font-size: 12px; }
.game-title { margin-right: auto; font-weight: 600; color: var(--fg-2); letter-spacing: -.005em; }
.game-score { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--fg); margin-right: 2px; }
.game-sky { flex: 1; min-height: 0; width: 100%; display: block; touch-action: none; }
.game-sky:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.game-foot { justify-content: space-between; padding: 4px 16px 12px; font-size: 11px; }
.game-hint, .game-best { white-space: nowrap; }
.game-best { font-family: var(--mono); font-variant-numeric: tabular-nums; }
#trees { overflow-y: auto; padding: 0 8px 8px; font-size: 13px; flex: 1; min-height: 0; }
#tree ul { list-style: none; margin: 0; padding: 0; }
.s-head { display: flex; align-items: center; height: 26px; margin-top: 18px; padding-right: 2px; }
#inbox-row .s-head { margin-top: 4px; }
#trees.fold-inbox #desk-nav .s-head, #trees.fold-desks #browse-nav .s-head { margin-top: 2px; }
.s-link { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; gap: 4px; padding: 0 8px; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .01em; color: var(--fg-3); background: none; border-radius: 6px; cursor: pointer; text-align: left; transition: color var(--t); }
.s-link:hover { color: var(--fg-2); }
.s-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-chev { width: 5px; height: 5px; margin-left: 4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-1.5px) rotate(45deg); opacity: 0; transition: transform var(--t), opacity var(--t); }
.s-head:hover .s-chev, .s-link:focus-visible .s-chev, .s-link[aria-expanded="false"] .s-chev { opacity: 1; }
.s-link[aria-expanded="false"] .s-chev { transform: rotate(-45deg); }
.s-add { flex: none; display: grid; place-items: center; width: 22px; height: 22px; color: var(--fg-3); font-size: 16px; font-weight: 400; line-height: 1; border-radius: 5px; opacity: 0; transition: opacity var(--t), background var(--t), color var(--t); }
.s-head:hover .s-add, .s-add:focus-visible, #browse-nav:has(.b-empty) .s-add { opacity: 1; }
.s-add:hover { background: var(--rule); color: var(--fg); }
.s-blk { flex: none; margin-right: 4px; color: #b45309; font-size: 11px; font-weight: 700; }
#trees.fold-inbox :is(#inbox-row .s-row, #queue, #tree), #trees.fold-desks .t-desks, #trees.fold-folders .b-body { display: none; }
.s-body { list-style: none; margin: 0; padding: 0; }
.s-empty { padding: 5px 8px 5px 8px; font-size: 12px; color: var(--fg-3); }
.s-row, .t-proj > summary, .b-root > summary, .t-desk > a, .t-back { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 6px; color: var(--fg); font-weight: 450; white-space: nowrap; cursor: pointer; list-style: none; position: relative; transition: background var(--t), color var(--t); }
.s-row:hover, .t-proj > summary:hover, .b-root > summary:hover, .t-desk > a:hover { background: var(--rule); color: var(--fg); text-decoration: none; }
.s-row.active, .t-desk > a.active { background: var(--accent-bg); color: var(--accent); }
.r-ico { flex: none; color: var(--fg-3); transition: color var(--t); }
.s-row.active .r-ico, .t-desk > a.active .r-ico { color: var(--accent); }
.s-row .title, .t-desks .title { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.s-row .n { margin-left: auto; font-size: 11px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
summary > .s-chev { flex: none; margin-left: -2px; color: var(--fg-3); }
summary:is(:hover, :focus-visible) > .s-chev, details:not([open]) > summary > .s-chev { opacity: 1; }
details:not([open]) > summary > .s-chev { transform: rotate(-45deg); }
.t-proj > summary::-webkit-details-marker { display: none; }
.t-wf { margin: 2px 0 6px 24px; }
.t-wf > .wf-name { font-size: 11px; color: var(--fg-3); padding: 4px 8px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-doc a { display: flex; align-items: baseline; gap: 6px; padding: 4px 8px; border-radius: 6px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; transition: background var(--t), color var(--t); }
.t-doc a:hover { background: var(--rule); color: var(--fg); text-decoration: none; }
.t-doc a.active { background: var(--accent-bg); color: var(--accent); }
:is(.t-doc a, .b-file a) > .r-ico { align-self: center; opacity: .75; }
:is(.t-doc a.new, .t-doc a.active, .b-file a.active) > .r-ico { color: var(--accent); opacity: 1; }
.t-doc a.new .title { color: var(--fg); font-weight: 550; }
.t-queue { margin: 0 0 6px; }
.t-queue .t-label { display: flex; align-items: center; padding-top: 2px; }
.t-queue .t-label .n { margin-left: auto; background: var(--accent); color: #fff; border-radius: 9px; padding: 0 6px; line-height: 16px; letter-spacing: 0; font-size: 10px; }
.t-queue ul { list-style: none; margin: 2px 0 0; padding: 0; }
.t-queue .t-more { margin-left: 8px; }
.t-queue .t-more a { display: inline-block; font-size: 11px; color: var(--fg-3); padding: 3px 6px; border-radius: 5px; }
.t-queue .t-more a:hover { background: var(--rule); color: var(--fg-2); text-decoration: none; }
.t-doc .title { overflow: hidden; text-overflow: ellipsis; }
.t-doc.wash { animation: land 700ms ease-out; border-radius: 6px; }
.t-doc.leaving, .t-queue.leaving .t-label { animation: leave 140ms cubic-bezier(.2,.7,.2,1) forwards; overflow: hidden; pointer-events: none; }
@keyframes leave { from { opacity: 1; max-height: 32px; } to { opacity: 0; max-height: 0; } }
.t-doc .k { margin-left: auto; font-size: 10px; color: var(--fg-3); font-family: var(--mono); flex: none; font-variant-numeric: tabular-nums; }
.t-doc .pin { color: var(--accent); font-size: 7px; flex: none; align-self: center; }
.t-wf > .wf-name > .nm, .t-back > .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.t-proj, .b-root) > summary > .nm, .b-dir > details > summary > .nm { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-proj > summary > .ren { margin-left: auto; }
.t-wf > .wf-name { display: flex; align-items: baseline; gap: 4px; }
.ren { color: var(--fg-3); font-size: 11px; line-height: 1; padding: 2px 4px; border-radius: 4px; opacity: 0; flex: none; letter-spacing: 0; }
.t-proj > summary:hover .ren, .t-wf > .wf-name:hover .ren, .t-desk > a:hover .ren, .ren:focus-visible { opacity: 1; }
.ren:hover { background: var(--rule-2); color: var(--fg); }
.ren-in { flex: 1; min-width: 0; font: inherit; text-transform: none; letter-spacing: normal; color: var(--fg); background: var(--bg); border: 1px solid var(--accent); border-radius: 4px; padding: 1px 4px; }
.ren-in:focus { outline: none; }
.t-more { margin: 1px 0 2px 14px; }
.t-more button { font: inherit; font-size: 11px; color: var(--fg-3); background: none; border: 0; padding: 3px 6px; border-radius: 5px; cursor: pointer; }
.t-more button:hover { background: var(--rule); color: var(--fg-2); }
.t-more button:disabled { cursor: default; opacity: .5; }
.t-wait { padding: 4px 8px 4px 14px; font-size: 12px; color: var(--fg-3); }
.t-empty { padding: 24px 12px; color: var(--fg-3); font-size: 13px; line-height: 1.6; }
.t-empty code { font-family: var(--mono); font-size: 12px; background: var(--rule); padding: 1px 5px; border-radius: 4px; }
.t-desks .end { display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; }
.t-desks .dot { flex: none; display: grid; place-items: center; width: 10px; height: 10px; }
.t-desks .dot.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.t-desks .dot.blk { color: #b45309; font-size: 11px; font-weight: 700; line-height: 1; }
.t-desks .k { min-width: 2ch; text-align: right; font-size: 10px; font-family: var(--mono); color: var(--fg-3); flex: none; font-variant-numeric: tabular-nums; }
.row-x { flex: none; margin-left: 0; width: 0; padding: 0; overflow: hidden; font: inherit; font-size: 11px; line-height: 1; color: var(--fg-3); background: none; border-radius: 4px; cursor: pointer; }
.t-proj > summary:hover .row-x, .row-x:focus-visible, .arming .row-x { width: auto; margin-left: auto; padding: 2px 4px; overflow: visible; }
.t-proj > summary > .row-x.row-x { margin-left: 0; }
:is(.t-doc, .t-desk) > a { --row: var(--rule); }
:is(.t-doc, .t-desk) > a.active { --row: var(--accent-bg); }
:is(.t-doc, .t-desk) > a > :is(.ren, .row-x) { position: absolute; top: 50%; translate: 0 -50%; right: 6px; width: auto; margin: 0; padding: 2px 4px; opacity: 0; pointer-events: none; background: linear-gradient(var(--row) 0 0), var(--bg-side); }
.t-desk > a > .ren { right: 26px; }
:is(.t-doc, .t-desk) > a:is(:hover, :has(:focus-visible)) > :is(.ren, .row-x), .arming > a > .row-x { opacity: 1; pointer-events: auto; }
:is(.t-doc, .t-desk) > a > :is(.ren, .row-x):hover { background: linear-gradient(var(--rule-2) 0 0), linear-gradient(var(--row) 0 0), var(--bg-side); }
:is(.t-doc, .t-desk) > a:is(:hover, :has(:focus-visible)) :is(.end, .k, .pin), .arming > a :is(.end, .k), .t-desk > a:has(> [data-armed]) > .ren { visibility: hidden; }
:is(.s-row, .t-proj > summary, .b-root > summary, .t-desk > a, .t-doc a):hover { transition-duration: 0s; }
.row-x:hover { background: var(--rule-2); color: var(--fg); }
.t-away { display: block; width: 100%; text-align: left; padding: 4px 8px 4px 18px; margin-top: 2px; font-size: 11px; color: var(--fg-3); border-radius: 6px; }
.t-away:hover { background: var(--rule); color: var(--fg-2); }
.t-back { color: var(--fg-3); font-size: 12px; }
.t-undo { flex: none; font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 4px; color: var(--accent); }
.t-undo:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.row-x[data-armed] { color: #dc2626; font-weight: 600; }
.row-x[data-armed]:hover { background: color-mix(in srgb, #dc2626 12%, transparent); color: #dc2626; }
:is(.t-doc, .t-desk) > a > .row-x[data-armed]:hover { background: linear-gradient(color-mix(in srgb, #dc2626 12%, transparent) 0 0), linear-gradient(var(--row) 0 0), var(--bg-side); }
.b-new { margin-left: auto; display: inline-flex; align-items: center; color: var(--fg-3); line-height: 1; padding: 2px 4px; border-radius: 4px; opacity: 0; flex: none; }
.b-new .r-ico { color: inherit; }
summary:hover > .b-new, .b-new:focus-visible { opacity: 1; }
.b-new:hover { background: var(--rule-2); color: var(--fg); }
.b-new + .b-close { margin-left: 0; }
#ctx { position: fixed; z-index: 40; min-width: 200px; padding: 4px; background: var(--bg-raise); border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow); font-size: 13px; }
#ctx button { display: block; width: 100%; text-align: left; padding: 5px 10px; border-radius: 5px; color: var(--fg-2); }
#ctx button:hover, #ctx button:focus { background: var(--accent-bg); color: var(--accent); outline: none; }
#ctx hr { border: 0; border-top: 1px solid var(--rule); margin: 4px 2px; }
.t-label { padding: 8px 10px 2px; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.b-root > summary::-webkit-details-marker { display: none; }
.b-root > summary:hover { background: var(--rule); color: var(--fg); }
.b-close { margin-left: auto; color: var(--fg-3); font-size: 11px; line-height: 1; padding: 2px 4px; border-radius: 4px; opacity: 0; }
.b-root > summary:hover .b-close { opacity: 1; }
.b-close:hover { background: var(--rule-2); color: var(--fg); }
.b-close:focus-visible { opacity: 1; }
.b-tree { list-style: none; margin: 0; padding: 0 0 0 20px; }
.b-root > .b-tree { padding-left: 24px; }
.b-tree .b-empty { padding: 3px 10px; color: var(--fg-3); font-size: 12px; font-style: italic; }
.b-dir > details > summary { list-style: none; cursor: pointer; padding: 3px 8px; border-radius: 6px; color: var(--fg-2); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.b-dir > details > summary::-webkit-details-marker { display: none; }
.b-dir > details > summary:hover { background: var(--rule); color: var(--fg); }
.b-file a { display: flex; align-items: baseline; gap: 6px; padding: 3px 8px; border-radius: 6px; color: var(--fg-2); white-space: nowrap; overflow: hidden; transition: background var(--t), color var(--t); }
.b-file a:hover { background: var(--rule); color: var(--fg); text-decoration: none; }
.b-file a.active { background: var(--accent-bg); color: var(--accent); }
.b-file .title { overflow: hidden; text-overflow: ellipsis; }
.b-file .k { margin-left: auto; font-size: 10px; color: var(--fg-3); font-family: var(--mono); flex: none; }
#main:has(article.preview) { overflow: hidden; }
#doc:has(article.preview) { display: flex; flex-direction: column; height: calc(100% - var(--head-h)); padding-top: 8px; padding-bottom: 24px; }
#doc:has(article.preview) .doc-head { margin-bottom: 20px; flex: none; }
article.preview { margin: 0; padding: 0; flex: 1 1 auto; min-height: 360px; }
article.preview iframe { width: 100%; height: 100%; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; display: block; }
.browse-image, .doc-image { text-align: center; margin: 1.5em 0; }
.browse-image img, .doc-image img { border-radius: var(--radius); max-width: 100%; height: auto; }
#doc { --doc-pad: 48px; max-width: calc(var(--measure) + 96px); margin: 0 auto; padding: 8px var(--doc-pad) 120px; }
.doc-head { margin-bottom: 40px; }
.doc-title { font-size: 34px; line-height: 1.15; letter-spacing: -.022em; font-weight: 650; margin: 0 0 10px; text-wrap: balance; font-family: var(--head, var(--sans)); }
.doc-sub { color: var(--fg-3); font-size: 13px; margin: 0; }
.doc-sub .branch { font-family: var(--mono); font-size: 12px; }
:root { --sk-wait: 200ms; }
.sk-bar {
display: block; height: .72em; margin: .93em 0; border-radius: 5px;
background: var(--fg); opacity: 0;
animation: sk-in .28s ease var(--sk-wait) forwards, sk-breathe 1.9s ease-in-out calc(var(--sk-wait) + .28s) infinite;
}
.sk-gap { display: block; height: 1.5em; }
.doc-title.sk { display: flex; align-items: center; height: 39px; }
.doc-title .sk-bar { height: 26px; margin: 0; }
.doc-sub.sk { height: 17px; }
.doc-sub .sk-bar { height: 11px; margin: 0; }
.sk-body { max-width: var(--measure, none); }
@keyframes sk-in { to { opacity: .07; } }
@keyframes sk-breathe { 50% { opacity: .13; } }
@media (prefers-reduced-motion: reduce) {
.sk-bar { animation: sk-in .28s ease var(--sk-wait) forwards; }
}
.prose { font-family: var(--body); font-size: 17px; line-height: 1.65; }
:root[data-font="serif"] .prose { font-size: 18px; }
:root[data-font="mono"] .prose { font-size: 15px; line-height: 1.7; }
.prose > * { content-visibility: auto; contain-intrinsic-size: auto 60px; }
.prose > h1, .prose > h2, .prose > h3, .prose > h4, .prose > table { content-visibility: visible; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2em; text-wrap: pretty; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--head, var(--sans)); font-weight: 650; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; margin: 2.2em 0 .6em; position: relative; scroll-margin-top: calc(var(--head-h) + 12px); }
.prose h1 { font-size: 1.9em; }
.prose h2 { font-size: 1.5em; margin-top: 2.4em; }
.prose h3 { font-size: 1.2em; }
.prose h4 { font-size: 1em; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); }
.prose h1 + h2, .prose h2 + h3 { margin-top: 1em; }
.prose a.anchor { position: absolute; left: -1.2em; top: 0; color: var(--fg-3); opacity: 0; font-weight: 400; scroll-margin-top: calc(var(--head-h) + 12px); }
.prose a.anchor::before { content: "#"; }
.prose h1:hover a.anchor, .prose h2:hover a.anchor, .prose h3:hover a.anchor, .prose h4:hover a.anchor { opacity: .7; }
.prose a.anchor:hover, .prose a.anchor:focus-visible { opacity: 1; text-decoration: none; }
.prose a.anchor[data-said] { opacity: 1; color: var(--accent); }
.prose a.anchor[data-said]::before { content: "✓"; }
.prose a[data-ext]:not(:has(img))::after {
content: "↗"; font-size: .75em; line-height: 1; vertical-align: .35em;
margin-left: .12em; opacity: .55; text-decoration: none;
}
.prose a[data-ext]:hover::after { opacity: .85; }
.prose .flash { animation: land 700ms ease-out; }
@keyframes land { from { background: var(--accent-bg); } to { background: transparent; } }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose li > p { margin-bottom: .4em; }
.prose li.task-list-item, .prose li:has(> input[type=checkbox]) { list-style: none; margin-left: -1.4em; padding-left: 1.6em; position: relative; }
.prose input[type=checkbox] { position: absolute; left: 0; top: .45em; appearance: none; width: 14px; height: 14px; border: 1.5px solid var(--rule-2); border-radius: 4px; background: var(--bg-raise); pointer-events: none; }
.prose input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
.prose input[type=checkbox]:checked::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.prose li:has(> input:checked) { color: var(--fg-3); text-decoration: line-through; text-decoration-color: var(--rule-2); }
.prose blockquote { margin: 1.4em 0; padding: .1em 0 .1em 1.2em; border-left: 2px solid var(--accent); color: var(--fg-2); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 3em auto; width: 40%; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); display: block; margin: 1.5em auto; }
.prose strong { font-weight: 650; }
.prose mark { background: var(--mark); color: inherit; padding: 0 .15em; border-radius: 2px; }
.prose kbd { font-family: var(--mono); font-size: .8em; border: 1px solid var(--rule-2); border-bottom-width: 2px; border-radius: 4px; padding: .05em .4em; }
.prose sup a { font-size: .75em; font-weight: 600; }
.prose .footnotes { margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--rule); font-size: .9em; color: var(--fg-2); }
.prose .footnotes ol { padding-left: 1.4em; }
.prose dl dt { font-weight: 600; margin-top: 1em; }
.prose dl dd { margin: .2em 0 0 1.2em; }
.prose details { border: 1px solid var(--rule); border-radius: var(--radius); padding: .5em 1em; margin: 1.2em 0; }
.prose summary { cursor: pointer; font-weight: 600; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.6em 0; font-size: .92em; display: block; overflow-x: auto; font-variant-numeric: tabular-nums; }
.prose thead th { text-align: left; font-weight: 600; font-size: .82em; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-2); border-bottom: 1px solid var(--rule-2); padding: .5em .8em .5em 0; }
.prose td { border-bottom: 1px solid var(--rule); padding: .55em .8em .55em 0; vertical-align: top; }
.prose tr:last-child td { border-bottom-color: var(--rule-2); }
.prose td:last-child, .prose th:last-child { padding-right: 0; }
.prose table.data { font-family: var(--mono); font-size: .84em; }
.prose table.data thead th { position: sticky; top: 0; background: var(--bg); z-index: 1; white-space: nowrap; box-shadow: 0 1px 0 var(--rule-2); }
.prose table.data td { white-space: nowrap; padding: .28em 1.1em .28em 0; line-height: 1.45; }
.prose table.data td.wrap, .prose table.data th.wrap { white-space: normal; min-width: 28ch; max-width: 70ch; overflow-wrap: anywhere; }
.prose table.data thead th { padding: .4em 1.1em .4em 0; }
.prose table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
.prose table.data tbody tr:hover td { background: var(--code-bg); }
.prose .markdown-alert { margin: 1.4em 0; padding: .8em 1.1em; border-radius: var(--radius); border-left: 3px solid var(--fg-3); background: var(--code-bg); }
.prose .markdown-alert p:last-child { margin: 0; }
.prose .markdown-alert-title { font-family: var(--sans); font-weight: 600; font-size: .85em; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .4em; color: var(--fg-2); }
.prose .markdown-alert-note { border-color: #3b82f6; } .prose .markdown-alert-note .markdown-alert-title { color: #3b82f6; }
.prose .markdown-alert-tip { border-color: #22c55e; } .prose .markdown-alert-tip .markdown-alert-title { color: #16a34a; }
.prose .markdown-alert-important { border-color: #a855f7; } .prose .markdown-alert-important .markdown-alert-title { color: #9333ea; }
.prose .markdown-alert-warning { border-color: #f59e0b; } .prose .markdown-alert-warning .markdown-alert-title { color: #d97706; }
.prose .markdown-alert-caution { border-color: #ef4444; } .prose .markdown-alert-caution .markdown-alert-title { color: #dc2626; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--code-bg); padding: .12em .38em; border-radius: 4px; font-feature-settings: "calt" 0, "liga" 0; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
pre.code { position: relative; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; background: var(--code-bg); border-radius: var(--radius); padding: 14px 0; margin: 1.5em 0; overflow-x: auto; tab-size: 4; font-feature-settings: "calt" 0, "liga" 0; }
pre.code code { display: block; min-width: max-content; counter-reset: ln; }
pre.code::before { content: attr(data-lang); position: absolute; top: 8px; right: 12px; font-family: var(--sans); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); opacity: 0; transition: opacity var(--t); pointer-events: none; }
pre.code:hover::before { opacity: 1; }
pre.code .copy { position: absolute; top: 6px; right: 8px; opacity: 0; transition: opacity var(--t); font-family: var(--sans); font-size: 11px; padding: 3px 8px; border-radius: 4px; background: var(--bg-raise); color: var(--fg-2); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
pre.code:hover .copy { opacity: 1; }
pre.code:hover:has(.copy)::before { opacity: 0; }
pre.code .copy:hover { color: var(--fg); }
pre.code .copy:focus-visible { opacity: 1; }
@media (hover: none) {
.ren, .b-close, .b-new, pre.code .copy, pre.code::before { opacity: 1; }
.t-desk > a > .ren, .t-proj > summary > .row-x { width: auto; padding: 2px 4px; margin-left: 0; }
.t-desk > a > .ren { position: static; translate: none; background: none; pointer-events: auto; }
pre.code:has(.copy)::before { opacity: 0; }
.prose a.anchor { opacity: .5; }
}
pre.code .ln { display: inline; }
pre.code { --num-pad: 14px; --num-w: 3.2ch; --num-gap: 1.6ch; --gutter: calc(var(--num-pad) + var(--num-w) + var(--num-gap)); }
pre.code .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: var(--num-w); margin-right: var(--num-gap); padding-left: var(--num-pad); box-sizing: content-box; text-align: right; color: var(--fg-3); opacity: .55; user-select: none; -webkit-user-select: none; }
.kind-markdown pre.code .ln::before { display: none; }
.kind-markdown pre.code .ln { padding: 0 16px; }
.kind-markdown pre.code:has(.ln:nth-of-type(12)) .ln::before { display: inline-block; }
.kind-markdown pre.code:has(.ln:nth-of-type(12)) .ln { padding: 0 16px 0 0; }
.kind-code, .kind-text, .kind-diff { font-family: var(--mono); }
.kind-code pre.code, .kind-text pre.code, .kind-diff pre.code { margin: 0; background: transparent; padding: 0; font-size: 13px; }
.kind-code pre.code, .kind-text pre.code { --num-pad: 0px; }
.diff .ln::before { display: none !important; }
#doc:has(.kind-code), #doc:has(.kind-text), #doc:has(.kind-diff),
#doc:has(.kind-table), #doc:has(.kind-image), #doc:has(article.preview) { max-width: none; padding-left: 40px; padding-right: 40px; }
:root[data-wide="1"] #doc { --doc-pad: 64px; max-width: none; }
#queue-bar[hidden] { display: none; }
#queue-bar { position: sticky; top: var(--head-h); z-index: 5; height: 0; margin: 0 auto; max-width: calc(var(--measure) + 96px); padding: 10px 48px 0; box-sizing: border-box; font-size: 13px; }
#queue-bar:not([hidden]) ~ #find { padding-top: 58px; }
:root[data-view="desk"] #queue-bar { top: 0; }
#queue-bar .qb { display: flex; align-items: center; gap: 10px; min-width: 0; background: var(--bg-raise); border: 1px solid var(--rule); box-shadow: var(--shadow); border-radius: 8px; padding: 5px 5px 5px 9px; animation: rise 160ms cubic-bezier(.2,.7,.2,1); }
#queue-bar .qb-who { width: 21px; height: 21px; flex: none; display: block; margin-right: -2px; transform: rotate(-6deg); }
#queue-bar .qb-n { flex: none; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
#queue-bar .qb-n.tick { animation: tick 180ms cubic-bezier(.2,.7,.2,1); }
@keyframes tick { from { opacity: 0; transform: translateY(-4px); } }
#queue-bar .qb-next { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-3); }
#queue-bar .qb-next b { font-weight: 550; color: var(--fg); }
#queue-bar button:not(.icon), #queue-bar .qb-all { flex: none; padding: 4px 10px; border-radius: 6px; color: var(--fg-2); transition: background var(--t), color var(--t); }
#queue-bar button:not(.icon):hover, #queue-bar .qb-all:hover { background: var(--rule); color: var(--fg); text-decoration: none; }
#queue-bar kbd { font-family: var(--mono); font-size: 10px; color: var(--fg-3); margin-left: 6px; border: 1px solid var(--rule-2); border-radius: 3px; padding: 0 4px; line-height: 14px; display: inline-block; }
#queue-bar .icon { width: 26px; height: 26px; }
#find[hidden] { display: none; }
#find { position: sticky; top: var(--head-h); z-index: 5; display: flex; align-items: center; gap: 4px; margin: 0 auto; max-width: calc(var(--measure) + 96px); padding: 10px 48px 0; }
#find > * { background: var(--bg-raise); }
#find-input { flex: 1; font: inherit; font-size: 14px; padding: 7px 12px; border: 1px solid var(--rule-2); border-radius: 6px; color: inherit; outline: none; box-shadow: var(--shadow); }
#find-input:focus { border-color: var(--accent); }
#find-count { font-size: 12px; color: var(--fg-3); padding: 0 6px; font-variant-numeric: tabular-nums; background: none; }
#find .icon { border: 1px solid var(--rule); }
mark.find { background: var(--mark); color: inherit; border-radius: 2px; }
mark.find.cur { background: var(--accent); color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; font-family: var(--mono); font-size: 13px; line-height: 1.6; border: 1px solid var(--rule); border-radius: var(--radius); overflow-x: auto; }
.split > div { padding: 0 10px; white-space: pre; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.split .l { border-right: 1px solid var(--rule); }
.split .full { grid-column: 1 / -1; }
.split .meta { color: var(--fg-3); padding-top: .4em; }
.split .hunk { color: var(--s-number); background: var(--code-bg); margin: .4em 0 .2em; }
.split .add { background: var(--add); color: var(--add-fg); }
.split .del { background: var(--del); color: var(--del-fg); }
.split .add mark { background: rgba(34,197,94,.35); color: inherit; border-radius: 2px; }
.split .del mark { background: rgba(239,68,68,.35); color: inherit; border-radius: 2px; }
.split .empty { background: repeating-linear-gradient(45deg, transparent 0 6px, var(--rule) 6px 7px); }
#doc:has(.split) { max-width: none; padding-left: 40px; padding-right: 40px; }
pre.mermaid { background: transparent; text-align: center; padding: 8px 0; overflow: visible; font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); white-space: pre-wrap; }
pre.mermaid::before { display: none; }
.mmd { margin: 1.5em 0; position: relative; }
.mmd[data-state="done"] { margin-inline: calc(-1 * var(--doc-pad, 0px)); }
.mmd-frame { display: flex; align-items: center; justify-content: center; }
.mmd-frame svg { max-width: 100%; height: auto; }
.mmd[data-zoom] .mmd-frame { overflow: hidden; border-radius: var(--radius); }
.mmd[data-zoom] .mmd-frame svg { width: 100%; height: 100%; max-width: none; display: block; }
.mmd[data-zoom="in"] .mmd-frame { cursor: grab; }
.mmd[data-grab] .mmd-frame { cursor: grabbing; }
.mmd-tools {
position: absolute; top: 8px; right: 8px; display: flex; gap: 2px; padding: 3px;
border-radius: var(--radius); background: var(--bg-raise); box-shadow: 0 1px 3px rgba(0,0,0,.18);
opacity: 0; transition: opacity .12s ease; pointer-events: none;
}
.mmd:hover .mmd-tools, .mmd:focus-within .mmd-tools, .mmd[data-full] .mmd-tools { opacity: 1; pointer-events: auto; }
@media (hover: none) { .mmd-tools { opacity: 1; pointer-events: auto; } }
.mmd-tools button {
font-family: var(--sans); font-size: 12px; line-height: 1; color: var(--fg-2);
min-width: 26px; height: 24px; padding: 0 6px; border-radius: 5px; background: none;
}
.mmd-tools button:hover { background: var(--rule); color: var(--fg); }
.mmd-tools button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mmd[data-full] { position: fixed; inset: 0; z-index: 30; margin: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.mmd[data-full] .mmd-frame { height: 100vh !important; width: 100vw; border-radius: 0; }
.mmd:not([data-state="done"]) .mmd-frame {
min-height: var(--mmd-reserve, 200px);
border-radius: var(--radius);
background: linear-gradient(var(--code-bg), var(--code-bg));
}
.mmd[data-state="error"] .mmd-frame { min-height: 0; display: block; background: none; }
.mmd-fail { padding: 2px 0; }
.mmd-note { font-family: var(--sans); font-size: 12px; letter-spacing: .04em; color: var(--fg-3); text-align: center; padding: 10px; }
.mmd-slow .mmd-note::before {
content: ""; display: block; width: 18px; height: 18px; margin: 0 auto 8px;
border: 2px solid var(--rule-2); border-top-color: var(--fg-3); border-radius: 50%;
animation: mmd-spin .7s linear infinite;
}
@keyframes mmd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mmd-slow .mmd-note::before { animation-duration: 2.4s; } }
.mmd-ask { display: block; margin: 0 auto 8px; font-family: var(--sans); font-size: 13px; padding: 7px 14px; border-radius: var(--radius); background: var(--bg-raise); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.mmd-ask:hover { color: var(--accent); }
.mmd-why { display: block; }
.mmd-err { font-family: var(--sans); font-size: 13px; color: var(--del-fg); margin: 0 0 8px; text-align: left; }
.mmd-src { font-feature-settings: "calt" 0, "liga" 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; text-align: left; white-space: pre-wrap; background: var(--code-bg); border-radius: var(--radius); padding: 12px 14px; margin: 0; color: var(--fg-2); overflow-x: auto; }
#history { margin-top: 20px; }
#history h4 { margin: 0 0 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
#history a { display: block; padding: 2px 0; color: var(--fg-2); font-variant-numeric: tabular-nums; }
#history a.cur { color: var(--accent); }
#history a:hover { color: var(--accent); text-decoration: none; }
.diff .ln { display: inline-block; min-width: 100%; padding: 0 12px; }
.diff .add { background: var(--add); color: var(--add-fg); }
.diff .del { background: var(--del); color: var(--del-fg); }
.diff .hunk { color: var(--s-number); background: var(--code-bg); display: inline-block; min-width: 100%; margin: .6em 0 .2em; }
.diff .meta { color: var(--fg-3); }
.compare-note { color: var(--fg-3); font-size: 13px; margin: -28px 0 28px; }
pre.code .c { color: var(--s-comment); font-style: italic; }
pre.code .k { color: var(--s-keyword); }
pre.code .s { color: var(--s-string); }
pre.code .n { color: var(--s-number); }
pre.code .f { color: var(--s-function); }
pre.code .t { color: var(--s-type); }
pre.code .v { color: var(--s-variable); }
pre.code .p { color: var(--s-punct); }
pre.code .tg { color: var(--s-tag); }
pre.code .at { color: var(--s-attr); }
pre.code .hd { color: var(--s-keyword); font-weight: 600; }
pre.code .b { font-weight: 600; }
pre.code .i { font-style: italic; }
pre.code .raw { color: var(--s-string); }
pre.code .lnk { color: var(--accent); }
pre.code .ins { color: var(--add-fg); background: var(--add); }
pre.code .del { color: var(--del-fg); background: var(--del); }
pre.code .inv { color: var(--del-fg); }
.inbox-head { margin-bottom: 28px; }
.inbox-head h1 { font-size: 26px; letter-spacing: -.02em; font-weight: 650; margin: 0 0 4px; }
.inbox-head p { color: var(--fg-3); margin: 0; font-size: 14px; }
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox li a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title time" "sub sub"; gap: 2px 16px; padding: 12px 14px; margin: 0 -14px; border-radius: 8px; color: inherit; border-bottom: 1px solid var(--rule); transition: background var(--t); }
.inbox li a:hover { background: var(--bg-side); text-decoration: none; }
.inbox .title { grid-area: title; font-weight: 550; font-size: 15.5px; letter-spacing: -.005em; }
.inbox .time { grid-area: time; font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.inbox .sub { grid-area: sub; font-size: 12.5px; color: var(--fg-3); }
.inbox .sub b { font-weight: 500; color: var(--fg-2); }
.inbox a.new .title::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin: 0 9px 2px 0; vertical-align: middle; }
.inbox-sec { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; margin: 30px 0 4px; }
.inbox-sec .n { background: var(--accent); color: #fff; border-radius: 9px; padding: 0 7px; line-height: 17px; letter-spacing: 0; font-size: 11px; }
.inbox-sec button { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12.5px; color: var(--fg-2); padding: 3px 8px; border-radius: 5px; }
.inbox-sec button + button { margin-left: 0; }
.inbox-sec button:hover { background: var(--rule); color: var(--fg); }
.inbox-sec kbd { font-family: var(--mono); font-size: 10px; color: var(--fg-3); margin-left: 6px; border: 1px solid var(--rule-2); border-radius: 3px; padding: 0 4px; line-height: 14px; display: inline-block; }
.inbox.waiting { margin-bottom: 8px; }
.connect .agents { list-style: none; margin: 0; padding: 0; }
.agent { padding: 16px 0; border-top: 1px solid var(--rule); }
.agent:last-child { border-bottom: 1px solid var(--rule); }
.agent-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.agent-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); align-self: center; flex: none; }
.agent.is-connected .agent-dot { background: var(--add-fg); }
.agent.is-live .agent-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.agent.is-live .agent-state { color: var(--accent); }
.agent.is-stale .agent-dot { background: var(--del-fg); }
.agent-name { font-size: 16px; font-weight: 600; }
.agent-state { color: var(--fg-3); font-size: 13px; }
.agent-say { margin: 6px 0 0; font-size: 14.5px; color: var(--fg-2); line-height: 1.5; }
.connect code { font-family: var(--mono); font-size: 12.5px; }
.agent-fix { margin-top: 10px; }
.agent-instr { margin: 8px 0 0; font-size: 13.5px; color: var(--fg-3); }
.connect-line { margin-top: 28px; }
.connect-line p { margin: 0 0 8px; font-size: 14px; color: var(--fg-2); }
pre.cmd { position: relative; font-family: var(--mono); font-size: 13px; line-height: 1.55; background: var(--code-bg); border-radius: var(--radius); padding: 8px 72px 8px 12px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
pre.cmd code { background: none; padding: 0; font-size: inherit; }
pre.cmd .copy { position: absolute; top: 6px; right: 8px; font: inherit; font-family: var(--sans); font-size: 11px; padding: 3px 8px; border-radius: 4px; background: var(--bg-raise); color: var(--fg-2); box-shadow: 0 1px 2px rgba(0,0,0,.12); border: 0; cursor: pointer; }
pre.cmd .copy:hover { color: var(--fg); }
pre.cmd .copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.agent-fix details { margin-top: 8px; }
.agent-fix summary { cursor: pointer; font-size: 13px; color: var(--fg-3); }
.agent-fix details[open] summary { margin-bottom: 6px; }
.connect-foot { margin-top: 24px; color: var(--fg-3); font-size: 13.5px; }
.empty-state { margin: 20vh auto 0; max-width: 46ch; text-align: center; color: var(--fg-2); }
.empty-state h1 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 8px; color: var(--fg); }
.empty-state p { margin: 0 0 18px; font-size: 15px; }
.empty-state pre { text-align: left; font-family: var(--mono); font-size: 13px; background: var(--code-bg); padding: 12px 16px; border-radius: var(--radius); display: inline-block; margin: 0; }
#rail { padding: 60px 0 20px 8px; overflow: hidden; font-size: 12.5px; }
#toc { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; position: relative; padding: 14px 20px 14px 0; scroll-behavior: smooth; }
#toc { mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 14px), transparent); }
#toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
#toc li a { display: block; padding: 3px 10px; color: var(--fg-3); border-left: 1px solid transparent; margin-left: -1px; line-height: 1.4; transition: color var(--t), border-color var(--t); overflow-wrap: anywhere; }
#toc li a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#toc li.d3 a { padding-left: 22px; }
#toc li.d4 a { padding-left: 34px; }
#toc li a:hover { color: var(--fg); text-decoration: none; }
#toc li a.cur { color: var(--accent); border-left-color: var(--accent); }
#toc .outline li a { display: flex; align-items: baseline; gap: 6px; }
#toc .outline .ok { width: 5px; height: 5px; border-radius: 1px; flex: none; align-self: center; background: var(--fg-3); }
#toc .outline .ok-fn { background: var(--s-function); border-radius: 50%; }
#toc .outline .ok-type { background: var(--s-type); }
#toc .outline .ok-impl { background: var(--s-keyword); transform: rotate(45deg); }
#toc .outline .ok-mod { background: var(--s-string); }
#toc .outline li a { font-family: var(--mono); font-size: 11.5px; }
pre.code .ln { scroll-margin-top: calc(var(--head-h) + 76px); }
pre.code .ln.flash { background: var(--accent-bg); }
pre.code .ln.at { background: var(--accent-bg); }
pre.code .ln.at::before { opacity: 1; color: var(--accent); }
pre.code .ln::before { cursor: pointer; }
:root[data-wrap="1"] pre.code { white-space: pre-wrap; }
:root[data-wrap="1"] pre.code code { min-width: 0; }
:root[data-wrap="1"] pre.code .ln { display: inline-block; width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
:root[data-wrap="1"] .kind-code pre.code .ln,
:root[data-wrap="1"] .kind-text pre.code .ln,
:root[data-wrap="1"] .kind-markdown pre.code:has(.ln:nth-of-type(12)) .ln { padding-left: var(--gutter); text-indent: calc(-1 * var(--gutter)); }
#meta { flex: none; max-height: 50%; overflow-y: auto; margin-top: 28px; padding-right: 20px; color: var(--fg-3); line-height: 1.7; }
#toc:empty + #meta { margin-top: 0; }
#meta .row { display: flex; gap: 8px; }
#meta .row b { font-weight: 500; color: var(--fg-2); min-width: 54px; flex: none; }
#meta .row span { min-width: 0; overflow-wrap: anywhere; }
#meta .actions { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
#meta .actions button, #meta .actions a { color: var(--fg-2); padding: 3px 0; }
#meta .actions button:hover, #meta .actions a:hover { color: var(--accent); text-decoration: none; }
#meta .actions kbd { font-family: var(--mono); font-size: 10px; color: var(--fg-3); margin-left: 8px; border: 1px solid var(--rule-2); border-radius: 3px; padding: 0 4px; line-height: 14px; display: inline-block; }
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; z-index: 30;
align-items: flex-end; pointer-events: none; }
#toasts[data-side="right"], #toasts[data-side="below"] { align-items: flex-start; }
.toast { pointer-events: auto; position: relative;
background: var(--bg-raise); color: var(--fg); border: 1px solid var(--rule); border-radius: 11px;
box-shadow: var(--shadow); padding: 6px 12px 6px 7px; font-size: 12.5px; line-height: 1.3;
display: flex; align-items: center; gap: 8px; cursor: pointer; max-width: 288px;
animation: toast-in 260ms cubic-bezier(.2,1.3,.4,1); transform-origin: var(--from, 50% 100%); }
.toast.out { opacity: 0; transform: scale(.97); transition: opacity 160ms ease, transform 160ms ease; }
@keyframes toast-in { from { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 8px)) scale(.92); } to { opacity: 1; transform: none; } }
#toasts[data-side="right"] .toast { --dx: -12px; --dy: 0; --from: 0 50%; }
#toasts[data-side="left"] .toast { --dx: 12px; --dy: 0; --from: 100% 50%; }
#toasts[data-side="below"] .toast { --dx: 0; --dy: -10px; --from: 22px 0; }
#toasts[data-side] .toast::before { content: ""; position: absolute; width: 8px; height: 8px;
background: var(--bg-raise); border: 1px solid var(--rule); transform: rotate(45deg); }
#toasts[data-side="right"] .toast::before { left: -5px; top: 13px; border-top: 0; border-right: 0; }
#toasts[data-side="left"] .toast::before { right: -5px; top: 13px; border-bottom: 0; border-left: 0; }
#toasts[data-side="below"] .toast::before { top: -5px; left: 16px; border-bottom: 0; border-right: 0; }
.toast .say { min-width: 0; }
.toast .t { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast .s { color: var(--fg-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast .act { font: inherit; font-size: 11.5px; font-weight: 550; color: var(--accent); background: transparent; border: 1px solid var(--rule-2); border-radius: 6px; padding: 3px 9px; margin-left: 4px; cursor: pointer; flex: none; }
.toast .act:hover { background: var(--bg-side); }
.toast .act:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.toast .who { width: 23px; height: 23px; flex: none; display: block; }
.mk { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 100%; }
#toasts[data-side="right"] .toast .who { transform: rotate(-7deg); }
#toasts[data-side="left"] .toast .who { transform: rotate(7deg); }
.mk-body { fill: var(--mascot); }
.mk-nub { fill: var(--mascot-nub); transform-origin: 16px 5px; transform-box: view-box; }
.mk-ink { fill: var(--mascot-ink); }
.mk-line { fill: none; stroke: var(--mascot-ink); stroke-width: 2.2; stroke-linecap: round; }
.mk-love, .mk-puff { fill: #f0607e; }
[data-feel="plain"] .mk, [data-feel="wink"] .mk { animation: mk-nod .52s cubic-bezier(.3,1.6,.5,1) 1; }
[data-feel="glad"] .mk, [data-feel="love"] .mk { animation: mk-hop .62s cubic-bezier(.3,1.7,.5,1) 1; }
[data-feel="whoa"] .mk { animation: mk-pop .5s cubic-bezier(.2,1.8,.4,1) 1; }
[data-feel="oops"] .mk { animation: mk-shake .46s ease-in-out 1; }
[data-feel="glad"] .mk-nub, [data-feel="love"] .mk-nub { animation: mk-swing .62s cubic-bezier(.3,1.5,.5,1) 1; }
[data-feel="oops"] .mk-nub { transform: translateY(1.4px) rotate(-14deg); }
.mk-puff { transform-box: view-box; transform-origin: 26px 8px; animation: mk-puff 1.5s cubic-bezier(.3,.7,.4,1) .18s 1 both; }
@keyframes mk-nod { 0%, 100% { transform: none; } 45% { transform: translateY(-1.6px) scale(1.03, .98); } }
@keyframes mk-hop { 0% { transform: none; } 32% { transform: translateY(-4px) scale(1.06, .94); } 62% { transform: translateY(0) scale(.95, 1.05); } 82% { transform: translateY(-1px); } 100% { transform: none; } }
@keyframes mk-pop { 0% { transform: scale(.62); } 55% { transform: scale(1.12); } 100% { transform: none; } }
@keyframes mk-shake { 0%, 100% { transform: none; } 20% { transform: rotate(-7deg); } 50% { transform: rotate(6deg); } 80% { transform: rotate(-3deg); } }
@keyframes mk-swing { 0%, 100% { transform: none; } 30% { transform: rotate(-20deg); } 65% { transform: rotate(12deg); } }
@keyframes mk-puff { from { opacity: 0; transform: translate(0, 2px) scale(.4); } 35% { opacity: 1; } to { opacity: 0; transform: translate(3px, -11px) scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
.toast, .mk, .mk-nub, .mk-puff { animation: none; }
}
#palette, #help, #about, #reset { position: fixed; inset: 0; background: rgba(20, 16, 10, .28); z-index: 40; display: grid; place-items: start center; padding-top: 12vh; }
#palette[hidden], #help[hidden], #about[hidden], #reset[hidden] { display: none; }
.palette-box, .help-box { width: min(620px, 92vw); background: var(--bg-raise); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; animation: rise 140ms cubic-bezier(.2,.7,.2,1); }
#palette-input { width: 100%; font: inherit; font-size: 16px; padding: 14px 18px; border: 0; background: transparent; color: inherit; outline: none; border-bottom: 1px solid var(--rule); }
#palette-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
#palette-list:empty { display: none; }
#palette-list li { padding: 8px 12px; border-radius: 6px; cursor: pointer; display: grid; gap: 1px; }
#palette-list li.sel, #palette-list li:hover { background: var(--accent-bg); }
#palette-list .t { font-weight: 550; font-size: 14px; }
#palette-list .s { font-size: 12px; color: var(--fg-3); }
#palette-list .snip { font-size: 12.5px; color: var(--fg-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#palette-list mark { background: var(--mark); color: inherit; border-radius: 2px; }
.pal-none { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 13px; color: var(--fg-3); }
.pal-none .mk { width: 22px; height: 22px; flex: none; }
.pal-none b { font-weight: 550; color: var(--fg-2); }
.help-box { padding: 18px 22px 20px; position: relative; outline: none; max-height: 84vh; overflow-y: auto; }
.help-close { position: absolute; top: 12px; right: 12px; }
.help-box h2 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); }
.help-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; font-size: 14px; }
.help-box dt { font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); }
.help-box dd { margin: 0; }
.help-foot { display: flex; align-items: center; gap: 4px; }
.help-gap { flex: 1; }
#help .help-box { width: min(700px, 92vw); padding: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; }
.help-head { flex: none; display: flex; align-items: center; padding: 14px 14px 12px 24px; }
.help-head h2 { margin: 0; flex: 1; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--fg); }
#help .help-close { position: static; }
.help-body { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; padding: 4px 24px 8px; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
.help-col { display: flex; flex-direction: column; gap: 18px; align-content: start; }
.help-col h3 { margin: 0 0 2px; font-size: 11px; font-weight: 600; letter-spacing: .01em; color: var(--fg-3); }
.hk { display: flex; align-items: center; gap: 12px; min-height: 30px; padding: 1px 0; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--fg); }
.hk:first-of-type { border-top: 0; }
.hk > span:first-child { flex: 1; min-width: 0; line-height: 1.3; }
.hk em { font-style: normal; font-size: 12px; color: var(--fg-3); }
.hk .keys { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--fg-3); }
.hk .keys i { font-style: normal; font-size: 11px; padding: 0 1px; }
.hk .keys code { font-family: var(--mono); font-size: 11px; color: var(--fg-2); background: var(--rule); padding: 0 5px; border-radius: 4px; line-height: 18px; }
#help kbd { display: inline-block; box-sizing: border-box; min-width: 20px; padding: 0 5px; font-family: var(--mono); font-size: 11px; line-height: 18px; text-align: center; color: var(--fg-2); background: var(--bg-side); border: 1px solid var(--rule-2); border-radius: 4px; white-space: nowrap; }
.help-col .help-note { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--fg-3); }
#help .help-foot { flex: none; margin: 0; padding: 10px 14px 10px 16px; border-top: 1px solid var(--rule); background: var(--bg-side); }
#help .help-foot button.text:hover { background: var(--rule); }
@media (max-width: 600px) {
.help-body { grid-template-columns: 1fr; }
#help-col-2 { margin-top: 18px; }
}
button.text { font: inherit; font-size: 13px; color: var(--fg-2); background: transparent; border: 0; padding: 4px 8px; border-radius: 6px; cursor: pointer; }
button.text:hover { color: var(--fg); background: var(--bg-side); }
button.text:focus-visible, button.danger:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.about-box { width: min(560px, 92vw); }
.about-box h2 { text-transform: none; letter-spacing: 0; font-size: 18px; color: var(--fg); margin-bottom: 4px; }
.about-box p { margin: 0 0 14px; font-size: 14px; color: var(--fg-2); }
.about-box dl { grid-template-columns: max-content 1fr; gap: 7px 20px; }
.about-box dt { font-family: inherit; font-size: 13px; color: var(--fg-3); }
.about-box dd { min-width: 0; overflow-wrap: anywhere; }
.about-box dd.path { font-family: var(--mono); font-size: 12.5px; }
.about-box dd.pre { white-space: pre-line; }
.about-box .muted { color: var(--fg-3); }
.about-box a { color: var(--accent); text-decoration: none; }
.about-box a:hover { text-decoration: underline; }
.reset-box { width: min(520px, 92vw); margin: 0; }
.reset-box p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.reset-box label { display: block; font-size: 14px; margin: 0 0 12px; }
.reset-box label[hidden] { display: none; }
.reset-ask input { display: block; width: 100%; margin-top: 6px; font: inherit; font-family: var(--mono); font-size: 15px; padding: 8px 10px; border: 1px solid var(--rule-2); border-radius: 6px; background: var(--bg); color: inherit; outline: none; }
.reset-ask input:focus { border-color: var(--accent); }
.reset-err { color: var(--del-fg); }
.reset-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
button.danger { font: inherit; font-size: 13px; font-weight: 550; color: #fff; background: #b3261e; border: 0; padding: 6px 14px; border-radius: 6px; cursor: pointer; }
button.danger:hover { background: #9a1f18; }
button.danger:disabled { opacity: .4; cursor: default; }
@media print {
#side, #rail, #chrome, #toasts, #palette, #help, #about, #reset, #queue-bar, pre.code .copy { display: none !important; }
#app { display: block; }
#doc { max-width: none; padding: 0; }
.prose { font-size: 11.5pt; }
pre.code { white-space: pre-wrap; }
}
pre.code .lc { display: block; content-visibility: auto; contain-intrinsic-block-size: auto 320em; }
.picking .b-empty { color: var(--accent); cursor: progress; }
.b-empty { display: block; width: 100%; height: 28px; text-align: left; padding: 0 8px 0 18px; font-size: 12px; color: var(--fg-3); border-radius: 6px; }
.b-empty:hover { background: var(--rule); color: var(--fg-2); }