elithril/blender-kiln / plugin
kiln
FlaggedMakes and fixes 3D assets in Blender, for games, the web and AR. Use when the user wants a 3D model, prop, character or GLB/glTF/FBX/USDZ file made — from a text brief, a reference image, a free marketplace (PolyHaven, Sketchfab) or AI generation — AND when they bring an existing 3D file to fix: too heavy or too many polygons (optimize, compress, LODs), broken normals, scale or origin, materials lost on glTF export, conversion between GLB, FBX and USDZ, texturing, rigging for animation, animating it (walk and idle cycles, text-to-motion, looping clips, articulated props), or inspection. Drives Blender through a Blender MCP server (ahujasid's or the official Blender Lab one). Batch mode produces many consistent assets unattended. Kiln Studio (`/kiln studio`) opens the project's models in the browser, where the user reviews them and pins notes for Claude to act on.
studio/static/style.css
View on GitHub/* Kiln Studio. The layout, the wording and the look follow the approved prototype
(kiln-3.0/studio-prototype): panels that resize the view and fold into 60 px rails,
a compact list header, the view in the middle, notes and the rest on the right. */
/* The two typefaces, shipped with the plugin (fonts/, SIL OFL 1.1: OFL-*.txt): variable
fonts, one file per script range, so no request leaves the machine for them. */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/sora-latin.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/sora-latin-ext.woff2) format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/jetbrains-mono-latin.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
/* Dark, the approved design. Every colour on the page is one of these. */
color-scheme: dark;
--bg: #0B0D11;
--panel: #10141C;
--panel-2: #141924;
--panel-3: #1A2030;
--line: #1F2533;
--line-2: #2A3244;
--line-3: #3A4459;
--text: #E6EBF2;
--text-2: #A3ADBE;
--text-3: #808A9D; /* the prototype's #6E788B read 4.0:1 on the panels */
--accent: #5CE1E6;
--accent-ink: #062A2C;
--accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
/* "To check" (a note Claude addressed): the accent, unless a theme gives it its own colour. */
--check: var(--accent);
--check-ink: var(--accent-ink);
--check-soft: color-mix(in srgb, var(--check) 14%, transparent);
--warn: #FFB547;
--warn-ink: #1a1206;
--warn-soft: color-mix(in srgb, var(--warn) 15%, transparent);
--ok: #5BD68A;
--ok-soft: color-mix(in srgb, var(--ok) 15%, transparent);
--new: #A78BFA;
--new-ink: #140b2b;
--new-soft: color-mix(in srgb, var(--new) 16%, transparent);
--danger: #FF6B6B;
--muted: #7d8596;
--pin-ink: #0B0D11;
--draft: #fff;
--label: #7FD3F0;
--glass: #10141C; /* bars over the view, used translucent */
--scrim: #0B0D11; /* labels over the view, used translucent */
--tint: #fff; /* faint washes, used at a few % */
--shade: #000; /* shadows */
--backdrop: rgba(5, 6, 9, 0.72);
--stage-ink: #141821;
--shadow: 0 10px 30px color-mix(in srgb, var(--shade) 45%, transparent);
--radius: 8px;
--font: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
--mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
--lw: 300px;
--rw: 360px;
--rail: 60px;
--stage-dark: radial-gradient(ellipse at 50% 42%, #1B2130 0%, #0B0D11 75%);
--stage-mid: radial-gradient(ellipse at 50% 42%, #4A5262 0%, #262B36 80%);
--stage-light: radial-gradient(ellipse at 50% 42%, #EEF1F5 0%, #B8BFCB 85%);
}
:root[data-theme="light"] {
color-scheme: light;
--bg: #F4F6F9;
--panel: #FFFFFF;
--panel-2: #F3F5F8;
--panel-3: #E8ECF2;
--line: #E2E6ED;
--line-2: #CDD3DD;
--line-3: #AEB6C3;
--text: #121620;
--text-2: #3C4555;
--text-3: #5F6878;
--accent: #08737A;
--accent-ink: #FFFFFF;
--warn: #994F00;
--warn-ink: #FFFFFF;
--ok: #136B32;
--new: #5F40C8;
--new-ink: #FFFFFF;
--danger: #C62828;
--muted: #8A93A3;
--pin-ink: #FFFFFF;
--draft: #121620;
--label: #0B5F7A;
--glass: #FFFFFF;
--scrim: #FFFFFF;
--tint: #000;
--backdrop: rgba(30, 36, 48, 0.45);
--stage-dark: radial-gradient(ellipse at 50% 42%, #2A3142 0%, #141924 75%);
}
:root[data-theme="contrast"] {
/* High contrast: black and white, every edge drawn, the colours at full strength. */
color-scheme: dark;
--bg: #000000;
--panel: #000000;
--panel-2: #0D0D0D;
--panel-3: #1F1F1F;
--line: #8C8C8C;
--line-2: #B3B3B3;
--line-3: #FFFFFF;
--text: #FFFFFF;
--text-2: #F0F0F0;
--text-3: #D6D6D6;
--accent: #3DF2FF;
--accent-ink: #000000;
--accent-soft: color-mix(in srgb, var(--accent) 24%, transparent);
--warn: #FFD23D;
--warn-ink: #000000;
--warn-soft: color-mix(in srgb, var(--warn) 24%, transparent);
--ok: #4DFF9A;
--ok-soft: color-mix(in srgb, var(--ok) 24%, transparent);
--new: #D2B8FF;
--new-ink: #000000;
--new-soft: color-mix(in srgb, var(--new) 26%, transparent);
--danger: #FF7A7A;
--muted: #BDBDBD;
--pin-ink: #000000;
--label: #9FE9FF;
--glass: #000000;
--scrim: #000000;
--backdrop: rgba(0, 0, 0, 0.85);
}
:root[data-theme="forge"] {
/* Forge (design board CockpitForge): warm charcoal, ember orange; to check in steel blue. */
color-scheme: dark;
--bg: #0E0907;
--panel: #1A110D;
--panel-2: #231712;
--panel-3: #2E1F18;
--line: #34241C;
--line-2: #4A3428;
--line-3: #6A4C3C;
--text: #F4EAE2;
--text-2: #D8C2B2;
--text-3: #B49C8C;
--accent: #FF8A3D;
--accent-ink: #1A0E08;
--check: #7FC8FF;
--check-ink: #06202F;
--warn: #FFC857;
--warn-ink: #241500;
--ok: #9FD77A;
--new: #E7A6FF;
--new-ink: #2A0B33;
--danger: #FF6B5B;
--muted: #9A8577;
--pin-ink: #1A0E08;
--label: #FFB070;
--glass: #1C120E;
--scrim: #120B08;
--backdrop: rgba(14, 9, 7, 0.75);
--stage-dark: radial-gradient(ellipse at 50% 70%, #3A1E10 0%, #170D09 55%, #0E0907 85%);
--stage-mid: radial-gradient(ellipse at 50% 42%, #5A4438 0%, #2E211A 80%);
}
:root[data-theme="neon"] {
/* Neon (CockpitNeon): deep violet, cyan; open in magenta. */
color-scheme: dark;
--bg: #0B0618;
--panel: #120A26;
--panel-2: #1A1033;
--panel-3: #241745;
--line: #2A1E4C;
--line-2: #3A2C63;
--line-3: #5B4A8C;
--text: #EDE7FF;
--text-2: #C9BEF0;
--text-3: #A99BD1;
--accent: #3EF2FF;
--accent-ink: #071318;
--warn: #FF4FD8;
--warn-ink: #2A0420;
--ok: #7CFFB2;
--new: #FFD36E;
--new-ink: #2B1D00;
--danger: #FF6B8B;
--muted: #8C7FB8;
--pin-ink: #0B0618;
--label: #9CF7FF;
--glass: #100822;
--scrim: #0B0618;
--backdrop: rgba(11, 6, 24, 0.78);
--stage-dark: radial-gradient(ellipse at 50% 42%, #2A1E4C 0%, #0B0618 75%);
--stage-mid: radial-gradient(ellipse at 50% 42%, #4A3C78 0%, #221745 80%);
}
:root[data-theme="studio"] {
/* Studio (CockpitClair): soft light, a red-orange accent; to check in blue. */
color-scheme: light;
--bg: #F6F7F9;
--panel: #FFFFFF;
--panel-2: #F2F3F6;
--panel-3: #E3E6EB;
--line: #E3E6EB;
--line-2: #D5D9E0;
--line-3: #B8BEC8;
--text: #1D2027;
--text-2: #4A505C;
--text-3: #5F6571;
--accent: #C2401A;
--accent-ink: #FFFFFF;
--check: #1F4FB8;
--check-ink: #FFFFFF;
--warn: #9E3315;
--warn-ink: #FFFFFF;
--ok: #146B31;
--new: #5F40C8;
--new-ink: #FFFFFF;
--danger: #B42318;
--muted: #8A909B;
--pin-ink: #FFFFFF;
--draft: #1D2027;
--label: #1F4FB8;
--glass: #FFFFFF;
--scrim: #FFFFFF;
--tint: #000;
--backdrop: rgba(29, 32, 39, 0.35);
--stage-dark: radial-gradient(ellipse at 50% 42%, #343842 0%, #1D2027 80%);
--stage-light: radial-gradient(ellipse at 50% 42%, #FFFFFF 0%, #E6E9EE 85%);
}
:root[data-theme="minimal"] {
/* Minimal (CockpitMinimal): greys, one accent (the one picked in Settings); states by
shape and word first: open white, to check the accent, done grey. */
color-scheme: dark;
--bg: #0A0A0A;
--panel: #111111;
--panel-2: #171717;
--panel-3: #222222;
--line: #262626;
--line-2: #333333;
--line-3: #555555;
--text: #EDEDED;
--text-2: #BBBBBB;
--text-3: #8F8F8F;
--warn: #EDEDED;
--warn-ink: #0A0A0A;
--ok: #9A9A9A;
--new: #CFCFCF;
--new-ink: #0A0A0A;
--danger: #EDEDED;
--muted: #6B6B6B;
--pin-ink: #0A0A0A;
--label: #EDEDED;
--glass: #111111;
--scrim: #0A0A0A;
--backdrop: rgba(0, 0, 0, 0.8);
--stage-dark: radial-gradient(ellipse at 50% 42%, #1E1E1E 0%, #0A0A0A 75%);
--stage-mid: radial-gradient(ellipse at 50% 42%, #4A4A4A 0%, #262626 80%);
}
:root[data-theme="contrast"] :focus-visible { outline-width: 3px; }
:root[data-theme="contrast"] .btn, :root[data-theme="contrast"] .seg, :root[data-theme="contrast"] .pill { border-width: 1.5px; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
background: var(--bg); color: var(--text); font: 13px/1.45 var(--font);
display: flex; height: 100dvh; overflow: hidden; -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
kbd { font: 500 10px/1 var(--mono); padding: 2px 5px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--text-3); background: color-mix(in srgb, var(--tint) 3%, transparent); }
.mono { font-family: var(--mono); }
.dim { color: var(--text-3); }
.small { font-size: 11px; }
[hidden] { display: none !important; }
/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { color: var(--text); border-color: var(--line-3); background: var(--panel-3); }
.btn.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.accent:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { border-color: var(--line-2); }
.btn.sm { height: 24px; padding: 0 8px; font-size: 11px; }
.btn.icon { width: 28px; padding: 0; justify-content: center; }
.btn:disabled { opacity: .4; cursor: default; }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn kbd { margin-left: 2px; }
.btn.accent kbd { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 35%, transparent); background: transparent; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; padding: 2px; background: var(--panel-2); gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--text-2); height: 24px; padding: 0 9px; border-radius: 5px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.seg button { cursor: pointer; transition: color .15s, background-color .15s; }
.seg button:hover { color: var(--text); }
.seg button:not(.on):hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.seg button.on { background: var(--panel-3); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.seg.small button { height: 22px; padding: 0 8px; font-size: 11px; }
/* status vocabulary */
.status { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 9px; font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.status.open { color: var(--warn); background: var(--warn-soft); }
.status.addressed { color: var(--check); background: var(--check-soft); }
.status.resolved { color: var(--ok); background: var(--ok-soft); }
.status.wontfix { color: var(--text-3); background: color-mix(in srgb, var(--tint) 6%, transparent); }
.status.sample { color: var(--new); background: var(--new-soft); }
.status.warn { color: var(--warn); background: var(--warn-soft); }
.status.ok { color: var(--ok); background: var(--ok-soft); }
/* ── panels ──────────────────────────────────────────────────────────── */
.panel { flex: none; position: relative; background: var(--panel); overflow: hidden; transition: width .28s cubic-bezier(.2,.7,.2,1); z-index: 20; }
.panel.left { width: var(--lw); border-right: 1px solid var(--line); }
.panel.right { width: var(--rw); border-left: 1px solid var(--line); }
.panel.collapsed { width: var(--rail); }
.panel .full { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; background: var(--panel); transition: opacity .18s; }
.panel.left .full { left: 0; width: var(--lw); }
.panel.right .full { right: 0; width: var(--rw); }
.panel.collapsed .full { opacity: 0; visibility: hidden; pointer-events: none; }
.panel .rail { position: absolute; top: 0; bottom: 0; width: var(--rail); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; opacity: 0; visibility: hidden; transition: opacity .18s; }
.panel.left .rail { left: 0; }
.panel.right .rail { right: 0; }
.panel.collapsed .rail { opacity: 1; visibility: visible; }
.rail .rbtn { position: relative; width: 40px; height: 40px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-2); display: grid; place-items: center; flex: none; }
.rail .rbtn:hover { background: var(--panel-3); color: var(--text); }
.rail .rbtn.on { border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent); }
.rail .rbtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail .rsep { width: 28px; height: 1px; background: var(--line-2); margin: 4px 0; flex: none; }
.rail .cnt { position: absolute; top: -3px; right: -4px; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px; font: 600 10px/16px var(--mono); text-align: center; background: var(--panel); }
.cnt.open { color: var(--warn-ink); background: var(--warn); }
.cnt.addressed { color: var(--check-ink); background: var(--check); }
.cnt.warn { color: var(--warn-ink); background: var(--warn); }
.cnt.plain { color: var(--text-2); background: var(--panel-3); }
.rail .letter { font: 600 12px/1 var(--mono); }
.rail .spark { color: var(--new); font-size: 15px; line-height: 1; } /* the ✦ tab's own mark, collapsed */
#lrail { display: flex; flex-direction: column; gap: 6px; align-items: center; overflow-y: auto; overflow-x: hidden; flex: 1; width: 100%; padding: 4px 0 8px; scrollbar-width: none; }
#lrail .rbtn { padding: 0; overflow: visible; }
#lrail .rbtn img, #lrail .rbtn .ph { width: 38px; height: 38px; border-radius: 7px; background: var(--panel-2); object-fit: cover; display: block; }
#lrail .rbtn.sel { border-color: var(--accent); }
#lrail .rbtn .wdot { position: absolute; bottom: -2px; right: -2px; }
#lrail .rbtn .bmark { position: absolute; bottom: -2px; left: -2px; }
/* left panel header: compact, ≤ 150 px */
.lhead { padding: 10px 10px 8px; display: flex; flex-direction: column; gap: 7px; border-bottom: 1px solid var(--line); flex: none; }
.row1 { display: flex; align-items: center; gap: 6px; }
.logo { width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.logo img { width: 22px; height: 22px; }
.search { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; }
.search input { width: 100%; height: 30px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 28px 0 28px; font-size: 12.5px; color: var(--text); }
.search input::placeholder { color: var(--text-3); }
.search input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search svg { position: absolute; left: 9px; width: 13px; height: 13px; stroke: var(--text-3); fill: none; stroke-width: 2; }
.search kbd { position: absolute; right: 7px; }
.tagbar { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; flex: none; height: 22px; mask-image: linear-gradient(90deg, #000 88%, transparent); }
.tagbar::-webkit-scrollbar { display: none; }
.tag { flex: none; height: 22px; padding: 0 8px; border-radius: 11px; border: 1px solid var(--line-2); background: transparent; color: var(--text-3); font: 500 11px/20px var(--mono); }
.tag:hover { color: var(--text); }
.tag.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent-soft); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; flex: none; }
.pill { height: 34px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0 2px; color: var(--text-3); font-size: 9.5px; line-height: 1; white-space: nowrap; overflow: hidden; transition: border-color .15s, background .15s; }
.pill b { font: 600 12.5px/1 var(--mono); color: var(--text-2); }
.pill { cursor: pointer; }
.pill:hover { border-color: var(--line-3); color: var(--text); background: var(--panel-3); }
.pill.check b { color: var(--check); }
.pill.open b { color: var(--warn); }
.pill.works b { color: var(--accent); }
.pill.building b { color: var(--new); }
.pill.zero b { color: var(--text-3); }
.pill.on { border-color: currentColor; background: var(--panel-3); color: var(--text); }
.pill.check.on { border-color: color-mix(in srgb, var(--check) 55%, transparent); }
.pill.open.on { border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.pill.works.on { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.pill.building.on { border-color: color-mix(in srgb, var(--new) 55%, transparent); }
.pill.bump { animation: bump .6s ease; }
@keyframes bump { 30% { background: var(--accent-soft); transform: translateY(-1px); } }
.workline { display: flex; align-items: center; gap: 7px; height: 18px; font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.workline .go { border: 0; background: none; padding: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; flex: 1; text-align: left; font-size: 11px; }
.workline .go:hover { color: var(--accent); }
.workline .go b { color: var(--text); font-weight: 600; }
.workline .clear { margin-left: auto; border: 0; background: none; color: var(--text-3); font-size: 11px; padding: 0 2px; text-decoration: underline; text-underline-offset: 2px; }
.workline .clear:hover { color: var(--text); }
/* work dots */
.wdot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.wdot.queued { border: 1.5px solid var(--text-3); }
.wdot.active { background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: breathe 1.6s ease-in-out infinite; }
/* Done is a tick, not only a green dot: the three states read by shape too
(a ring waiting, a disc with a halo working, a tick done). */
.wdot.done { width: 11px; height: 11px; border-radius: 0; background: none; position: relative; }
.wdot.done::after { content: '✓'; position: absolute; inset: -3px 0 0; font: 800 11px/1 var(--font); color: var(--ok); text-align: center; }
@media (prefers-reduced-motion: reduce) { .wdot.active { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); } }
@keyframes breathe { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); opacity: 1; } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 0%, transparent); opacity: .75; } }
.bmark { width: 9px; height: 9px; border-radius: 2px; background: var(--new); animation: pulse 1.4s ease-in-out infinite; display: inline-block; flex: none; }
@keyframes pulse { 50% { opacity: .35; } }
/* list */
#resort { padding: 6px 10px 0; flex: none; }
#resort button { width: 100%; height: 26px; border-radius: 13px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 600; }
#list { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 0 16px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.group { margin-top: 4px; }
.ghead { width: 100%; display: flex; align-items: center; gap: 6px; padding: 6px 12px 4px; border: 0; background: none; color: var(--text-3); font: 600 10.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; text-align: left; }
.ghead:hover { color: var(--text-2); }
.ghead .chev { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .15s; flex: none; }
.group.closed .chev { transform: rotate(-90deg); }
.group.closed .gbody { display: none; }
.ghead .gn { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.ghead .gn .o { color: var(--warn); }
.ghead .est { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--new); border: 1px solid color-mix(in srgb, var(--new) 35%, transparent); border-radius: 4px; padding: 1px 4px; }
.item { position: relative; display: flex; align-items: center; gap: 10px; margin: 1px 6px; padding: 6px 8px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.item { transition: background-color .12s, border-color .12s; }
.item:hover { background: var(--panel-3); border-color: var(--line-2); }
.item.sel { background: var(--panel-3); border-color: var(--line-2); }
.item.sel::before { content: ''; position: absolute; left: -6px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--accent); }
.item .thumb { width: 40px; height: 40px; border-radius: 7px; background: var(--panel-2); flex: none; object-fit: cover; }
.item .meta { min-width: 0; flex: 1; }
.item .name { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .sub { font: 400 11px/1.3 var(--mono); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .sub .bld { color: var(--new); }
.item .badges { display: flex; align-items: center; gap: 4px; flex: none; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font: 600 10px/18px var(--mono); text-align: center; }
.badge.open { background: var(--warn-soft); color: var(--warn); }
.badge.addressed { background: var(--check-soft); color: var(--check); }
.badge.addressed::before, .cnt.addressed::before { content: '✓'; margin-right: 1px; font-weight: 800; }
.badge.new { background: var(--new-soft); color: var(--new); text-transform: uppercase; letter-spacing: .04em; }
.item .wslot { width: 9px; display: none; }
#list.working .item .wslot { display: inline-flex; }
.item.flash { animation: flash 1.3s ease; }
@keyframes flash { 0%,40% { background: color-mix(in srgb, var(--accent) 16%, transparent); } 100% { background: transparent; } }
.item.sel.flash { animation: flashsel 1.3s ease; }
@keyframes flashsel { 0%,40% { background: color-mix(in srgb, var(--accent) 20%, transparent); } 100% { background: var(--panel-3); } }
#list.compact .item { padding: 3px 8px; gap: 8px; }
#list.compact .item .thumb { width: 20px; height: 20px; border-radius: 4px; }
#list.compact .item .sub { display: none; }
#list.compact .item .name { font-size: 12.5px; }
.empty-list { padding: 18px 14px; color: var(--text-3); }
/* popover */
.popover { position: absolute; z-index: 60; top: 46px; left: 10px; right: 10px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; }
.popover label, .popover .lab { color: var(--text-3); font-size: 11px; }
.popover select { height: 28px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 8px; font-size: 12px; width: 100%; }
/* ── stage ───────────────────────────────────────────────────────────── */
#stage { flex: 1; min-width: 0; position: relative; overflow: hidden; background: var(--stage-dark); }
#stage[data-bg="mid"] { background: var(--stage-mid); }
#stage[data-bg="light"] { background: var(--stage-light); }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#stage.pinning #view { cursor: crosshair; }
#labels, #pins { position: absolute; inset: 0; pointer-events: none; }
.blabel { position: absolute; left: 0; top: 0; font: 600 11px/1 var(--mono); color: var(--label); background: color-mix(in srgb, var(--scrim) 75%, transparent); padding: 3px 6px; border-radius: 4px; white-space: nowrap; transform: translate(-50%, -50%); }
.flabel { position: absolute; left: 0; top: 0; font: 600 9.5px/1 var(--mono); color: var(--warn); letter-spacing: .1em; transform: translate(-50%, -50%); text-shadow: 0 1px 2px color-mix(in srgb, var(--shade) 60%, transparent); }
.pin { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: 0; padding: 0; border: 2px solid color-mix(in srgb, var(--scrim) 90%, transparent); border-radius: 50% 50% 50% 0; pointer-events: auto; display: grid; place-items: center; box-shadow: 0 3px 10px color-mix(in srgb, var(--shade) 45%, transparent); transition: opacity .2s; will-change: transform; }
.pin span { transform: rotate(45deg); font: 700 11px/1 var(--mono); color: var(--pin-ink); }
.pin.open { background: var(--warn); }
/* By shape as well: open solid, addressed solid with a ring inside, resolved hollow, won't fix dashed. */
.pin.addressed { background: var(--check); box-shadow: inset 0 0 0 2px var(--pin-ink), inset 0 0 0 4px var(--check), 0 3px 10px color-mix(in srgb, var(--shade) 45%, transparent); }
.pin.resolved { background: var(--panel); border-color: var(--ok); }
.pin.resolved span { color: var(--ok); }
.pin.wontfix { background: var(--panel); border: 2px dashed var(--muted); }
.pin.wontfix span { color: var(--muted); }
.pin.draft { background: var(--draft); animation: dpulse 1s ease-in-out infinite; }
@keyframes dpulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--tint) 18%, transparent); } }
.pin.behind { opacity: .3; }
.pin.hl { outline: 2px solid var(--draft); outline-offset: 2px; z-index: 2; }
.pin:hover { z-index: 3; }
.pin .tip { display: none; }
.pin:hover .tip, .pin:focus-visible .tip { display: block; position: absolute; left: 30px; bottom: 18px; transform: rotate(45deg); transform-origin: left bottom; width: max-content; max-width: 220px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); padding: 6px 8px; border-radius: 6px; font: 400 11.5px/1.35 var(--font); text-align: left; box-shadow: var(--shadow); }
/* clear of the Claude pill (top right; --pill-w set from its width): the outputs bar wraps instead */
.topbar { position: absolute; top: 12px; left: 14px; right: calc(14px + var(--pill-w, 0px)); display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.titlecol { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.kv.words dd { font-family: var(--font); }
.derived-from { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-3); min-width: 0; max-width: 100%; white-space: nowrap; }
.derived-from svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.derived-from .of { flex: none; }
.derived-from .of .linkish { font-size: inherit; }
.derived-from .q { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* "+ Variations" on the selected model's row: they go right under it */
.item .itm-act { display: none; align-items: center; gap: 5px; margin-top: 5px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); font: inherit; font-size: 11px; font-weight: 500; cursor: pointer; width: max-content; transition: background-color .15s, border-color .15s; }
.item.sel .itm-act { display: inline-flex; }
.item .itm-act:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.item .itm-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.item .itm-act svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the list folded: the same action in the top bar */
.outputs .out-var { display: none; }
body:has(#left.collapsed) .outputs .out-var { display: inline-flex; }
/* a declination, under its original in the list */
.item.child { margin-left: 34px; }
.item.child .thumb { width: 32px; height: 32px; border-radius: 6px; }
.item.child::after { content: ""; position: absolute; left: -20px; top: -6px; height: calc(50% + 6px); width: 11px; border-left: 1.5px solid var(--line-3); border-bottom: 1.5px solid var(--line-3); border-bottom-left-radius: 7px; pointer-events: none; }
#list.compact .item.child .thumb { width: 20px; height: 20px; }
/* folded, a variation is a smaller thumbnail tucked under its original */
#lrail .rbtn.child { transform: scale(.78); margin-top: -6px; }
#lrail .rbtn.child::after { content: ""; position: absolute; left: -9px; top: -8px; height: 50%; width: 7px; border-left: 2px solid var(--line-3); border-bottom: 2px solid var(--line-3); border-bottom-left-radius: 6px; }
.title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Words straight on the view follow its background, whatever the page's theme. */
#stage { --on-stage: #E6EBF2; --on-stage-2: #A3ADBE; --on-stage-3: #6E788B; }
#stage[data-bg="light"] { --on-stage: var(--stage-ink); --on-stage-2: #3C4555; --on-stage-3: #5F6878; }
.title h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--on-stage); }
.stages .on { color: var(--text); }
.stages button:disabled { opacity: .35; cursor: default; }
.statline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.stats { display: flex; align-items: center; gap: 10px; font: 400 11.5px/1 var(--mono); color: var(--on-stage-2); flex-wrap: wrap; }
.stats .sep { color: var(--on-stage-3); }
.pinsctl { position: relative; display: inline-flex; }
.pinsctl .eye { width: 28px; height: 24px; border-radius: 6px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--glass) 85%, transparent); color: var(--text-2); display: grid; place-items: center; position: relative; }
.pinsctl .eye svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.pinsctl .eye.on { color: var(--accent); }
.pinsctl .eye .off { display: none; }
.pinsctl .eye:not(.on) .on-i { display: none; }
.pinsctl .eye:not(.on) .off { display: block; }
.pinsctl .eye.filtered::after { content: ''; position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.pinsmenu { position: absolute; top: 100%; left: 0; padding-top: 6px; display: none; z-index: 30; }
.pinsctl:hover .pinsmenu, .pinsctl:focus-within .pinsmenu { display: block; }
.pinsmenu .box { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 4px; box-shadow: var(--shadow); width: 220px; }
.pinsmenu button { display: flex; width: 100%; align-items: center; gap: 8px; border: 0; background: none; padding: 7px 8px; border-radius: 5px; font-size: 12px; color: var(--text-2); text-align: left; }
.pinsmenu button:hover { background: var(--panel-3); color: var(--text); }
.pinsmenu .sw { width: 24px; height: 14px; border-radius: 7px; background: var(--line-2); position: relative; flex: none; transition: background .15s; }
.pinsmenu .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--text-2); transition: transform .15s; }
.pinsmenu button[aria-pressed="true"] .sw { background: var(--accent); }
.pinsmenu button[aria-pressed="true"] .sw::after { transform: translateX(10px); background: var(--accent-ink); }
#buildbar { position: absolute; top: max(80px, var(--topbar-b, 80px)); left: 14px; display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--glass) 90%, transparent); border: 1px solid color-mix(in srgb, var(--new) 35%, transparent); border-radius: 8px; padding: 6px 10px; max-width: calc(100% - 90px); flex-wrap: wrap; }
#buildbar .st { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; color: var(--new); }
#buildbar ol { display: flex; gap: 3px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
#buildbar li { font: 500 10px/1 var(--mono); padding: 4px 6px; border-radius: 4px; color: var(--text-3); background: color-mix(in srgb, var(--tint) 4%, transparent); }
#buildbar li.done { color: var(--text-2); background: color-mix(in srgb, var(--ok) 10%, transparent); }
#buildbar li.done::before { content: '✓ '; color: var(--ok); }
#buildbar li.cur { color: var(--pin-ink); background: var(--new); }
#buildbar .step { font-size: 11.5px; color: var(--text-2); }
#cmpbar { position: absolute; z-index: 6; width: max-content; top: max(80px, var(--topbar-b, 80px)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--glass) 92%, transparent); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 8px 6px 12px; box-shadow: var(--shadow); max-width: calc(100% - 28px); flex-wrap: wrap; justify-content: center; }
#cmpbar .delta { font: 500 11px/1.3 var(--mono); color: var(--text-2); }
@media (min-width: 761px) { #cmpbar .delta { white-space: nowrap; } }
#cmpbar .delta .up { color: var(--warn); }
#cmpbar .delta .down { color: var(--ok); }
.cmplab { position: absolute; bottom: 120px; font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); background: color-mix(in srgb, var(--scrim) 75%, transparent); padding: 5px 8px; border-radius: 5px; pointer-events: none; white-space: nowrap; }
#split { position: absolute; top: 0; bottom: 0; width: 24px; margin-left: -12px; cursor: ew-resize; z-index: 5; touch-action: none; }
#split::before { content: ''; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 50%, transparent); }
#split .knob { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 12px/1 var(--mono); box-shadow: var(--shadow); }
#sidediv { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-2); pointer-events: none; }
#views { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 3px; background: color-mix(in srgb, var(--glass) 82%, transparent); border: 1px solid var(--line); border-radius: 9px; padding: 4px; }
#views button { width: auto; min-width: 46px; padding: 0 8px; white-space: nowrap; height: 26px; border: 0; border-radius: 5px; background: transparent; color: var(--text-2); font-size: 11px; font-weight: 500; }
#views button:hover { background: var(--panel-3); color: var(--text); }
#views .vsep { height: 1px; background: var(--line-2); margin: 2px 4px; }
.bottom { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.bottom > * { pointer-events: auto; }
.bar { display: flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--glass) 90%, transparent); border: 1px solid var(--line); border-radius: 10px; padding: 5px; box-shadow: 0 6px 20px color-mix(in srgb, var(--shade) 30%, transparent); max-width: 100%; }
#toolbar { overflow-x: auto; scrollbar-width: none; }
#toolbar::-webkit-scrollbar { display: none; }
#toolbar .vsep, #animbar .vsep { width: 1px; height: 20px; background: var(--line-2); flex: none; }
#toolbar .btn { height: 26px; background: transparent; border-color: transparent; }
#toolbar .btn:hover { background: var(--panel-3); }
#toolbar .btn.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
#toolbar .seg { background: transparent; border: 0; padding: 0; }
/* finishes (KHR_materials_variants): a pill for the one shown, a palette above it */
#finishbar { padding: 3px; }
#finishbar .fpill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
#finishbar .fpill:hover, #finishbar .fpill[aria-expanded="true"] { background: var(--panel-3); }
#finishbar .fpill .fn { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#finishbar .fpill .fc { font: 11px var(--mono); color: var(--text-3); }
#finishbar .fpill svg { width: 13px; height: 13px; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#finishbar .sw, #finishpop .sw { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 18%, transparent); background: var(--panel-3); }
#finishpop { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; width: min(380px, 100%); }
#finishpop .fhead { display: flex; align-items: center; gap: 8px; justify-content: space-between; font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 0 2px; }
#finishpop input { flex: 1; max-width: 200px; height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 12px var(--font); text-transform: none; letter-spacing: 0; }
#finishpop .fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 4px; max-height: 248px; overflow-y: auto; }
#finishpop .fcell { display: grid; justify-items: center; gap: 5px; padding: 8px 2px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font: inherit; cursor: pointer; min-width: 0; }
#finishpop .fcell:hover { background: var(--panel-3); color: var(--text); }
#finishpop .fcell .sw { width: 26px; height: 26px; }
#finishpop .fcell.on .sw { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
#finishpop .fcell.on { color: var(--text); }
#finishpop .fl { font-size: 10.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#finishpop .add .sw.plus { display: grid; place-items: center; background: transparent; box-shadow: inset 0 0 0 1px var(--line-3); color: var(--text-3); font-size: 15px; }
#finishpop .fnone { margin: 2px; font-size: 12px; color: var(--text-3); }
#animbar { gap: 8px; padding: 5px 10px 5px 5px; width: min(560px, 100%); }
#animbar .btn.icon { width: 30px; height: 26px; }
#animbar select { height: 26px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 6px; font-size: 12px; }
#a-time { flex: 1; min-width: 60px; accent-color: var(--accent); }
#a-read { font: 500 11px/1 var(--mono); color: var(--text-2); width: 88px; text-align: right; flex: none; }
#loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
#loading .box { display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--glass) 90%, transparent); border: 1px solid var(--line-2); padding: 10px 14px; border-radius: 8px; font-size: 12px; color: var(--text-2); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#hint { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 12px; padding: 7px 12px; border-radius: 16px; box-shadow: var(--shadow); white-space: nowrap; }
#toast { position: absolute; top: 64px; left: 50%; transform: translate(-50%, -8px); opacity: 0; background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); padding: 9px 14px; border-radius: 8px; font-size: 12.5px; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50; max-width: min(520px, calc(100% - 24px)); }
#stage.building #toast { top: 150px; }
#toast button, #toast a { pointer-events: auto; cursor: pointer; } /* the toast lets clicks through, not its links */ /* below the build bar, never over its steps */
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.warn { border-left-color: var(--warn); }
#toast.ok { border-left-color: var(--ok); }
/* ── right panel ─────────────────────────────────────────────────────── */
.tabs { display: flex; align-items: center; gap: 2px; padding: 8px 8px 0; overflow: hidden; min-width: 0; border-bottom: 1px solid var(--line); flex: none; }
.tabs [role=tab] { border: 0; background: none; color: var(--text-3); padding: 8px 9px 9px; font-size: 12.5px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 5px; }
.tabs [role=tab] { cursor: pointer; border-radius: 6px 6px 0 0; transition: color .15s, background-color .15s, border-color .15s; }
.tabs [role=tab]:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); border-bottom-color: var(--line-3); }
.tabs [role=tab][aria-selected=true]:hover { border-bottom-color: var(--accent); }
.tabs [role=tab]:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: -2px; }
.tabs [role=tab][aria-selected=true] { color: var(--text); border-bottom-color: var(--accent); }
.tabs .tc { font: 600 10px/16px var(--mono); min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px; text-align: center; }
.tabs .tc.cnt { box-shadow: inset 0 0 0 1px currentColor; }
.tabs .tc.cnt.addressed { color: var(--check); background: color-mix(in srgb, var(--check) 16%, transparent); }
.tabs .tc.cnt.open, .tabs .tc.cnt.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
.tabs .tc.cnt::before { content: none; }
.tabs .collapse { margin-left: auto; margin-bottom: 4px; }
.tab { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
/* two actions side by side, the filter under them across: nothing left to wrap on its own */
.notes-head { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px; position: sticky; top: 0; background: var(--panel); z-index: 2; border-bottom: 1px solid var(--line); }
.notes-head > .btn { justify-content: center; gap: 8px; }
.notes-head .seg { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.notes-head .seg button { justify-content: center; text-align: center; }
#composer { margin: 10px 12px 2px; padding: 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 0 0 3px var(--accent-soft); }
#composer .where { font: 500 11px/1.35 var(--mono); color: var(--text-2); margin-bottom: 8px; display: flex; gap: 6px; align-items: flex-start; }
#composer .where i { width: 8px; height: 8px; border-radius: 50%; background: var(--draft); flex: none; margin-top: 3px; }
#composer textarea, .reply-box textarea { width: 100%; resize: vertical; min-height: 64px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg); padding: 8px 10px; font-size: 13px; line-height: 1.45; color: var(--text); }
#composer textarea:focus, .reply-box textarea:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
#composer .row, .reply-box .row { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
#composer .row .dim { margin-left: auto; font-size: 11px; }
#note-list { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.note { border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); padding: 10px; position: relative; scroll-margin: 70px; }
.note.hl { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 3px var(--accent-soft); }
.note.flash { animation: nflash 1.4s ease; }
@keyframes nflash { 0%,35% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); } }
.note header { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.note .num { width: 20px; height: 20px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; flex: none; }
.note .num span { transform: rotate(45deg); font: 700 10px/1 var(--mono); color: var(--pin-ink); }
.note .num.whole { border-radius: 5px; transform: none; background: var(--panel-3) !important; border: 1px solid var(--line-2); }
.note .num.whole span { transform: none; color: var(--text-2); }
.note .num.open { background: var(--warn); }
.note .num.addressed { background: var(--check); box-shadow: inset 0 0 0 1.5px var(--pin-ink), inset 0 0 0 3px var(--check); }
.note .num.resolved { background: var(--panel); border: 1.5px solid var(--ok); }
.note .num.resolved span { color: var(--ok); }
.note .num.wontfix { background: var(--panel); border: 1.5px dashed var(--muted); }
.note .num.wontfix span { color: var(--muted); }
.note .kind { color: var(--text-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note time { margin-left: auto; color: var(--text-3); font-size: 11px; white-space: nowrap; }
.note .text { font-size: 13px; margin: 0 0 6px; white-space: pre-wrap; }
.note .where { font: 400 10.5px/1.35 var(--mono); color: var(--text-3); margin-bottom: 8px; }
.note .stale { font-size: 11px; color: var(--text-3); margin-bottom: 8px; padding-left: 8px; border-left: 2px solid var(--line-2); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.shots.one { grid-template-columns: 1fr; }
.shot { position: relative; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--bg); padding: 0; aspect-ratio: 4 / 3; display: block; width: 100%; }
.shot:hover { border-color: var(--line-2); }
.shot > img:not(.inset) { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .inset { position: absolute; right: 5px; bottom: 5px; width: 34%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; border: 1.5px solid color-mix(in srgb, var(--tint) 80%, transparent); box-shadow: 0 2px 8px color-mix(in srgb, var(--shade) 50%, transparent); }
.shot .cap { position: absolute; left: 5px; top: 5px; font: 600 9px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: color-mix(in srgb, var(--scrim) 80%, transparent); color: var(--text-2); padding: 3px 5px; border-radius: 3px; }
.shot .cap.after { color: var(--accent); }
.shot.loading { background: linear-gradient(90deg, var(--panel-2), var(--panel-3), var(--panel-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.thread { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.reply { border-radius: 8px; padding: 7px 9px; background: color-mix(in srgb, var(--tint) 3%, transparent); border: 1px solid var(--line); }
.reply.claude { border-color: color-mix(in srgb, var(--accent) 25%, transparent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.reply .who { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); margin-bottom: 3px; flex-wrap: wrap; }
.reply .who b { color: var(--text); font-weight: 600; }
.reply.claude .who b { color: var(--accent); }
.reply .body { font-size: 12.5px; color: var(--text-2); }
.actions { display: flex; gap: 5px; flex-wrap: wrap; }
.reply-box { margin-bottom: 8px; }
#work { margin: 0 12px 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 12px; color: var(--text-2); }
#work:empty { display: none; }
#work.busy { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
#work.wait { border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.work-row { display: flex; align-items: center; gap: 10px; }
.work-row .btn { flex: none; }
.work-what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.work-what b { color: var(--text); font-size: 12.5px; }
.work-what .work-est { font-size: 11.5px; color: var(--text-3); cursor: help; }
.work-link { align-self: flex-start; font-size: 11.5px; }
#work .spin { align-self: flex-start; margin-top: 2px; }
.work-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-3); }
.work-cmd { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 11.5px; }
.work-cmd > span { grid-column: 1 / -1; } /* the label above, the command and its copy button under it */
.work-cmd code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 11px var(--mono); color: var(--text-2); }
.work-cmd .btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
#handoff { margin: 0 12px 16px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px dashed var(--line-2); font-size: 12px; color: var(--text-2); }
#handoff:empty { display: none; }
#handoff b { color: var(--text); }
.cmd { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.cmd code { flex: 1; font: 500 12px/1 var(--mono); color: var(--accent); background: var(--bg); border: 1px solid var(--line-2); padding: 7px 8px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-notes { text-align: center; padding: 26px 16px; color: var(--text-3); font-size: 12.5px; }
.empty-notes b { display: block; color: var(--text-2); margin-bottom: 4px; font-size: 13px; }
.block { padding: 12px; border-bottom: 1px solid var(--line); }
.block h3 { margin: 0 0 10px; font: 600 10.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.block h4 { margin: 12px 0 6px; font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.block .check { display: grid; grid-template-columns: 14px 1fr; gap: 9px; padding: 9px 0; border-top: 1px solid var(--line); }
.block .check:first-of-type { border-top: 0; padding-top: 0; }
.block .check .lvl { width: 14px; height: 14px; border-radius: 50%; margin-top: 2px; display: grid; place-items: center; font: 800 9px/1 var(--font); color: var(--bg); }
.block .check.ok .lvl { background: var(--ok); }
.block .check.ok .lvl::after { content: '✓'; }
.block .check.info .lvl { background: var(--text-3); }
.block .check.info .lvl::after { content: 'i'; font-family: var(--mono); }
.block .check.warn .lvl { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); border-radius: 3px; transform: rotate(45deg); }
.block .check.warn .lvl::after { content: '!'; transform: rotate(-45deg); }
.block .check b { font-weight: 600; font-size: 12.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.block .check .txt { color: var(--text-2); font-size: 12px; margin-top: 2px; }
.fix { margin-top: 7px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); }
.fix .cmd { margin-top: 0; }
.iou { display: flex; align-items: center; gap: 12px; }
.iou .big { font: 600 30px/1 var(--mono); color: var(--accent); }
.iou .dim { font-size: 11.5px; }
.rounds { display: flex; gap: 4px; align-items: center; margin-top: 8px; font: 500 11px/1 var(--mono); color: var(--text-3); flex-wrap: wrap; }
.rounds span { padding: 3px 6px; border-radius: 4px; background: color-mix(in srgb, var(--tint) 5%, transparent); color: var(--text-2); }
.rounds span:last-child { color: var(--accent); background: var(--accent-soft); }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; margin: 0; font-size: 12px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text-2); font-family: var(--mono); font-size: 11.5px; word-break: break-word; }
.vt { width: 100%; border-collapse: collapse; font-size: 12px; }
.vt th { text-align: left; font-weight: 500; color: var(--text-3); font-size: 11px; padding: 0 0 6px; }
.vt td { padding: 6px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.vt td.num, .vt th.num { text-align: right; font-family: var(--mono); font-size: 11.5px; }
.vt tr.cur td:first-child { color: var(--accent); font-weight: 600; }
.vt button { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.vt td.na { color: var(--text-3); }
.meta-form { display: flex; flex-direction: column; gap: 10px; }
.meta-form label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--text-3); }
.meta-form input { height: 30px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 8px; font-size: 12px; color: var(--text); }
.tags-edit { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 5px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); }
.tags-edit .tg { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 3px 0 8px; border-radius: 11px; background: var(--panel-3); font: 500 11px/1 var(--mono); color: var(--text-2); }
.tags-edit .tg button { border: 0; background: none; color: var(--text-3); width: 16px; height: 16px; padding: 0; border-radius: 50%; }
.tags-edit .tg button:hover { color: var(--text); background: var(--line-2); }
.tags-edit input { border: 0 !important; height: 22px !important; flex: 1; min-width: 80px; background: transparent !important; padding: 0 4px !important; }
.tags-edit input:focus { outline: none; }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.files li { display: flex; align-items: center; gap: 8px; font: 400 11.5px/1 var(--mono); color: var(--text-2); padding: 5px 0; }
.files li .f { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.feed { list-style: none; margin: 0; padding: 12px 12px 20px 30px; position: relative; }
.feed::before { content: ''; position: absolute; left: 19px; top: 16px; bottom: 16px; width: 1px; background: var(--line-2); }
.feed li { position: relative; padding: 0 0 16px; }
.feed li::before { content: ''; position: absolute; left: -15px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--panel); border: 2px solid var(--text-3); }
.feed li.ev-version::before { border-color: var(--new); background: var(--new); }
.feed li.ev-note::before { border-color: var(--warn); }
.feed li.ev-reply-claude::before { border-color: var(--accent); background: var(--accent); }
.feed li.ev-reply-you::before { border-color: var(--ok); }
.feed li.ev-check::before { border-color: var(--warn); border-radius: 2px; }
.feed li.ev-build::before { border-color: var(--new); border-radius: 2px; }
.feed .t { font: 400 10.5px/1 var(--mono); color: var(--text-3); margin-bottom: 4px; }
.feed .h { font-size: 12.5px; color: var(--text); }
.feed .h .up { color: var(--warn); font-family: var(--mono); font-size: 11px; }
.feed .h .down { color: var(--ok); font-family: var(--mono); font-size: 11px; }
.feed .b { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.feed img { margin-top: 6px; width: 120px; height: 90px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); display: block; }
/* dialogs */
dialog { border: 1px solid var(--line-2); background: var(--panel); color: var(--text); border-radius: 12px; padding: 0; box-shadow: var(--shadow); max-width: calc(100vw - 24px); }
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(2px); }
#keys { width: 460px; padding: 18px 20px; }
#keys h3 { margin: 0 0 12px; font-size: 15px; }
#keys dl { display: grid; grid-template-columns: 110px 1fr; gap: 7px 12px; margin: 0 0 16px; font-size: 12.5px; }
#keys dt { font: 500 11.5px/1.6 var(--mono); color: var(--accent); }
#keys dd { margin: 0; color: var(--text-2); }
#confirm { width: 400px; padding: 18px; }
#confirm p { margin: 0 0 16px; color: var(--text-2); }
#confirm p.cf-note { margin-top: -8px; font-size: 12px; color: var(--text-3); }
#confirm form { display: flex; justify-content: flex-end; gap: 8px; }
#viewer2 { width: min(1100px, calc(100vw - 24px)); padding: 0; }
#viewer2 .vh { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
#viewer2 .vh .text { font-size: 13px; flex: 1; min-width: 180px; }
#viewer2 .ba { position: relative; aspect-ratio: 4 / 3; max-height: 68vh; margin: 0 auto; background: var(--bg); overflow: hidden; user-select: none; touch-action: none; }
#viewer2 .ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
#viewer2 .ba .after { clip-path: inset(0 0 0 var(--cut, 50%)); }
#viewer2 .ba .bar2 { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; margin-left: -1px; background: var(--accent); cursor: ew-resize; }
#viewer2 .ba .bar2::after { content: '⟷'; position: absolute; top: 50%; left: 50%; width: 32px; height: 32px; margin: -16px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
#viewer2 .ba .lab { position: absolute; top: 10px; font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: color-mix(in srgb, var(--scrim) 80%, transparent); padding: 5px 8px; border-radius: 4px; }
#viewer2 .ba .lab.l { left: 10px; color: var(--text-2); }
#viewer2 .ba .lab.r { right: 10px; color: var(--accent); }
#viewer2 .closeups { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
#viewer2 .closeups figure { margin: 0; display: flex; flex-direction: column; gap: 4px; font: 500 10px/1 var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
#viewer2 .closeups img { width: 110px; height: 110px; border-radius: 7px; border: 1px solid var(--line-2); object-fit: cover; }
#viewer2 .closeups .thr { flex: 1; min-width: 200px; }
/* ── narrow screens: panels overlay, rails stay ──────────────────────── */
@media (max-width: 760px) {
:root { --rail: 52px; }
.panel.left, .panel.right, .panel.collapsed { width: var(--rail); overflow: visible; }
.panel .rail { opacity: 1; visibility: visible; }
.panel .full { width: min(320px, calc(100vw - var(--rail))) !important; box-shadow: var(--shadow); z-index: 45; }
.panel.left .full { left: 0; }
.panel.right .full { right: 0; }
.panel:not(.collapsed) .rail { opacity: 0; }
.tabs [role=tab] { padding: 8px 6px 9px; font-size: 12px; }
#views { right: 6px; padding: 3px; }
#views button { min-width: 38px; padding: 0 6px; height: 24px; font-size: 10.5px; }
.topbar { left: 10px; right: 10px; top: 10px; flex-direction: column; }
.title h2 { font-size: 15px; }
#buildbar { top: max(116px, var(--topbar-b, 116px)); left: 10px; max-width: calc(100% - 60px); }
#cmpbar { top: max(116px, var(--topbar-b, 116px)); }
.bottom { bottom: 8px; padding: 0 6px; }
#animbar select#a-speed { display: none; }
#a-read { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* ── the real page's own parts ──────────────────────────────────────────── */
.lfoot { flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 8px 8px 12px; border-top: 1px solid var(--line); min-height: 38px; }
.lfoot #project { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
#empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--text-3); padding: 24px; overflow-y: auto; }
#empty[hidden] { display: none; }
#empty .big { color: var(--text); font-size: 17px; font-weight: 600; margin: 0 0 6px; }
#empty p { margin: 0 auto; max-width: 420px; }
#hover { position: absolute; left: 14px; bottom: 70px; font: 400 11px/1.4 var(--mono); color: var(--text-2); background: color-mix(in srgb, var(--scrim) 75%, transparent); padding: 5px 8px; border-radius: 5px; pointer-events: none; max-width: min(380px, 60%); }
#stage.has-anim #hover { bottom: 112px; }
.shots .pending { aspect-ratio: 4 / 3; border-radius: 7px; border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--text-3); font-size: 11px; text-align: center; padding: 6px; }
.note .edit-text { width: 100%; resize: vertical; min-height: 60px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg); padding: 8px 10px; font-size: 13px; color: var(--text); margin-bottom: 6px; }
.check code.icmd { font: 500 11.5px var(--mono); padding: 1px 5px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line-2); color: var(--accent); cursor: copy; white-space: nowrap; }
.check code.icmd:hover { border-color: var(--accent); }
.check ul.sub { margin: 6px 0 0; padding-left: 14px; color: var(--text-3); font-size: 11.5px; }
.check ul.sub li.warn { color: var(--warn); }
.block .small, .block p.dim { font-size: 11px; }
.fidelity .run { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; background: var(--panel-2); }
.fidelity .run > summary { cursor: pointer; font: 500 11.5px var(--mono); color: var(--text-2); }
.fidelity .iou { margin: 10px 0 4px; }
.fidelity .meta { margin: 6px 0 8px; font-size: 12px; color: var(--text-2); }
.fidelity .fv { margin-bottom: 6px; }
.fidelity .fvrow { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.fidelity .fvrow .btn { margin-left: auto; }
.fidelity .fv-img img { width: 100%; max-height: 340px; object-fit: contain; border-radius: 7px; border: 1px solid var(--line); cursor: zoom-in; display: block; background: var(--bg); }
.fidelity ol.gaps { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 12px; }
.fidelity ol.gaps li { margin-bottom: 3px; }
.fidelity .joints { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.fidelity .joints img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; cursor: zoom-in; border: 1px solid var(--line); }
#lightbox { padding: 14px; width: min(1100px, calc(100vw - 24px)); }
#lightbox figure { margin: 0; display: flex; gap: 10px; }
#lightbox figure > div { flex: 1; min-width: 0; }
#lightbox img { max-width: 100%; max-height: 78vh; border-radius: 8px; display: block; margin: 0 auto; }
#lightbox figcaption { color: var(--text-2); font-size: 12px; margin-top: 6px; }
#lightbox form, #textbox form { display: flex; justify-content: flex-end; margin-top: 10px; }
#textbox { padding: 16px 18px; }
#textbox h3 { margin: 0 0 10px; font-size: 14px; }
#textbox pre { max-height: 70vh; overflow: auto; white-space: pre-wrap; font: 12px/1.55 var(--mono); color: var(--text-2); margin: 0; min-width: min(80vw, 760px); }
#keys form { display: flex; justify-content: flex-end; }
.feed li.ev-step::before, .feed li.ev-log::before, .feed li.ev-baseline::before, .feed li.ev-revert::before { border-radius: 2px; }
.feed li.ev-step::before { border-color: var(--new); }
.feed li.ev-log::before { border-color: var(--text-2); }
.feed .phase { font: 600 10px/1 var(--mono); padding: 2px 5px; border-radius: 4px; background: var(--new-soft); color: var(--new); text-transform: uppercase; letter-spacing: .04em; }
.feed img { cursor: zoom-in; }
#cmpbar select { height: 24px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 6px; font-size: 11.5px; max-width: 170px; }
/* #cmpbar wraps when the stage is too narrow for it on one line (max-width), never past its edges */
#composer .where i.whole { border-radius: 2px; background: var(--text-3); }
.cnt.new { color: var(--new-ink); background: var(--new); }
.ghead .gl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#stages[hidden] { display: none !important; }
/* command palette (⌘K) */
#palette { width: min(560px, calc(100vw - 24px)); padding: 0; margin-top: 12vh; }
#palette .pal-in { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
#palette .pal-in svg { width: 15px; height: 15px; stroke: var(--text-3); fill: none; stroke-width: 2; flex: none; }
#palette .pal-in input { flex: 1; min-width: 0; height: 30px; border: 0; background: transparent; font-size: 14px; color: var(--text); }
#palette .pal-in input:focus { outline: none; }
#pal-list { list-style: none; margin: 0; padding: 6px; max-height: min(52vh, 420px); overflow-y: auto; }
#pal-list li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; cursor: pointer; color: var(--text-2); font-size: 13px; }
#pal-list li .g { font: 500 10px/1 var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; width: 64px; flex: none; }
#pal-list li .l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pal-list li .k { display: flex; gap: 3px; flex: none; }
#pal-list li[aria-selected="true"] { background: var(--panel-3); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
#pal-list li.empty { cursor: default; color: var(--text-3); justify-content: center; }
#palette .pal-foot { display: flex; gap: 14px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 11px; }
/* settings */
#settings { width: min(760px, calc(100vw - 24px)); padding: 0; }
#settings .set-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
#settings .set-head h3 { margin: 0; font-size: 15px; }
#settings .set-head form { margin: 0; }
#settings .set-body { display: grid; grid-template-columns: 168px 1fr; height: min(600px, calc(100dvh - 120px)); }
.set-sec { padding: 12px 14px 12px; margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.set-sec.project { border-color: var(--line-2); box-shadow: inset 3px 0 0 var(--accent); }
.set-grid > .seg, .set-grid > div > .seg { justify-self: start; }
.set-sec h4 { margin: 0 0 12px; font: 600 10.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--text-2); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.set-sec h4 small { font: 400 11px/1.3 var(--font); text-transform: none; letter-spacing: 0; color: var(--text-3); }
.set-sec h4 code { font: 500 10.5px var(--mono); color: var(--accent); }
.set-grid { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; align-items: center; }
.set-grid .lab { color: var(--text-3); font-size: 12px; }
.set-grid select { height: 28px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 8px; font-size: 12px; max-width: 260px; }
.set-grid textarea { width: 100%; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg); padding: 7px 9px; font: 12px/1.5 var(--mono); color: var(--text); resize: vertical; }
.set-grid p { margin: 5px 0 0; }
.switch { display: inline-flex; align-items: center; gap: 9px; border: 0; background: none; padding: 3px 0; color: var(--text-2); font-size: 12.5px; text-align: left; }
.switch:hover { color: var(--text); }
.switch .sw, .pinsmenu .sw { width: 24px; height: 14px; border-radius: 7px; background: var(--line-2); position: relative; flex: none; transition: background .15s; }
.switch .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--text-2); transition: transform .15s; }
.switch[aria-checked="true"] .sw { background: var(--accent); }
.switch[aria-checked="true"] .sw::after { transform: translateX(10px); background: var(--accent-ink); }
.set-status { min-height: 16px; margin: 10px 0 0; }
@media (max-width: 560px) { .set-grid { grid-template-columns: 1fr; gap: 4px 0; } .set-grid .lab { margin-top: 8px; } }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--sw); padding: 0; display: grid; place-items: center; color: var(--bg); font: 800 12px/1 var(--font); }
.swatches button[aria-checked="true"] { border-color: var(--text); }
.swatches button[aria-checked="true"]::after { content: '✓'; }
/* welcome: an empty project */
#empty .welcome { max-width: 620px; text-align: left; margin: auto; padding: 8px 0; }
.welcome .wlogo img { width: 40px; height: 40px; display: block; }
.welcome .big { font-size: 20px; margin: 8px 0 6px; }
.welcome > p, #empty .welcome p { color: var(--text-2); margin: 0 0 16px; max-width: none; }
#empty .welcome .setup p, #empty .welcome > p.small { margin: 0; }
body.no-model #right .notes-head, body.no-model #right #handoff, body.no-model #right #work { display: none; }
.wcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 22px; }
.wcard { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-2); font-size: 12px; line-height: 1.4; }
.wcard:hover { border-color: var(--accent); background: var(--panel-3); color: var(--text); }
.wcard svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wcard b { color: var(--text); font-size: 13.5px; }
.welcome h4 { margin: 0 0 8px; font: 600 10.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.welcome h4 .dim { text-transform: none; letter-spacing: 0; }
.setup { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.setup li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; color: var(--text); font-size: 12.5px; }
.setup .mk { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 800 11px/1 var(--font); color: var(--bg); background: var(--text-3); }
.setup li.ok .mk { background: var(--ok); }
.setup li.missing .mk { background: var(--danger); border-radius: 4px; }
.setup li.unknown .mk { background: transparent; color: var(--text-2); border: 1.5px dashed var(--text-3); }
.setup .st { font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-left: 4px; }
.setup li.ok .st { color: var(--ok); }
.setup li.missing .st { color: var(--danger); }
.setup .small { margin-top: 2px; word-break: break-word; }
.welcome code { font: 500 11.5px var(--mono); color: var(--accent); }
/* create: a request for a new model */
#create { width: min(600px, calc(100vw - 24px)); padding: 0; }
#create .set-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
#create .set-head h3 { margin: 0; font-size: 15px; }
#create .set-head form { margin: 0; }
.cr-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.cr-body + .cr-body { border-top: 1px solid var(--line); }
.cr-body .lab { display: block; color: var(--text-3); font-size: 11.5px; margin-bottom: 5px; }
.cr-body textarea, .cr-body select { width: 100%; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg); padding: 8px 10px; font-size: 13px; color: var(--text); }
.cr-body select { height: 32px; padding: 0 8px; }
.cr-body textarea:focus, .cr-body select:focus { outline: none; border-color: var(--accent); }
/* Only what changes the result's limits: what it is for. The kind and the style are the brief's, in its words. */
.cr-grid { display: grid; grid-template-columns: minmax(0, 280px); gap: 10px; }
.cr-photo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cr-photo .lab { width: 100%; margin: 0; }
.cr-photo img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-2); }
.cr-body .row { display: flex; align-items: center; gap: 10px; }
.cr-body p { margin: 0; color: var(--text-2); font-size: 12.5px; }
.cr-list:empty { display: none; }
.cr-list h4 { margin: 0; font: 600 10.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.cr-list .rq { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.cr-list .rq:first-of-type { border-top: 0; }
.cr-list .rq .cmd { margin: 0; }
@media (max-width: 560px) { .cr-grid { grid-template-columns: 1fr; } }
/* import: drop a file anywhere */
#drop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 78%, transparent); border: 3px dashed var(--accent); pointer-events: none; }
#drop > div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 28px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); text-align: center; }
#drop b { font-size: 16px; }
#drop span { color: var(--text-2); font-size: 12.5px; }
#create .cmd code { white-space: normal; word-break: break-word; line-height: 1.45; text-overflow: clip; }
/* The tabs share what is left; the fold button keeps its own room at the end. */
.tabs { padding-right: 6px; }
.tabs [role=tab] { flex: 0 1 auto; min-width: 0; }
.tabs [role=tab] > span[data-i18n] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tabs [role=tab] .tc { flex: none; }
.tabs .collapse { flex: none; width: 28px; margin-left: auto; padding-left: 0; }
.tabs .tc:empty { display: none; }
.tabs [role=tab] { padding-left: 11px; padding-right: 11px; }
/* The bottom bar fits the view: the shading buttons become one list, then the display
toggles fold into Options (a row above the bar), then the bar wraps. */
.tb-group { display: flex; align-items: center; gap: 6px; flex: none; }
#toolbar > * { flex: none; }
.tb-select { height: 26px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 0 6px; font-size: 12px; }
#toolbar.tb-wrap { flex-wrap: wrap; justify-content: center; overflow: visible; row-gap: 4px; }
#tb-more-pop { flex-wrap: wrap; justify-content: center; max-width: 100%; }
#tb-more-pop .btn { height: 26px; background: transparent; border-color: transparent; }
#tb-more-pop .btn:hover { background: var(--panel-3); }
#tb-more-pop .btn.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
#tb-more-pop .tb-group { flex-wrap: wrap; justify-content: center; }
#t-more[aria-expanded="true"] { color: var(--accent); }
#t-more svg { transition: transform .15s; }
#t-more[aria-expanded="true"] svg { transform: rotate(180deg); }
/* Narrow desktops (761–1100 px), both panels open: narrower panels, so the view keeps
room for the model and the bar (at 761 px: 221 px instead of 101). */
@media (min-width: 761px) and (max-width: 1100px) {
:root { --lw: 250px; --rw: 336px; }
.tabs [role=tab] { padding-left: 6px; padding-right: 6px; font-size: 12px; }
}
#toolbar.tb-wrap > * { flex: 0 1 auto; min-width: 0; max-width: 100%; }
#toolbar.tb-wrap .tb-select { max-width: 100%; }
#toolbar, #toolbar .tb-group { gap: 4px; }
#toolbar .btn { padding: 0 8px; }
#toolbar .seg button { padding: 0 8px; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.theme-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text-2); font-size: 12px; text-align: left; }
.theme-card:hover { color: var(--text); border-color: var(--line-3); }
.theme-card[aria-checked="true"] { color: var(--text); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.theme-card .sw3 { display: flex; gap: 3px; }
.theme-card .sw3 i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(128, 128, 128, .5); }
/* Present: the model alone, full window, for a second screen (kiln-studio MCP: present). */
body.present .panel, body.present #views, body.present #toolbar, body.present #tb-more-pop,
body.present #pins, body.present #labels, body.present .topbar .stats, body.present #stages { display: none !important; }
body.present .topbar { pointer-events: none; opacity: .85; }
#present-exit { position: absolute; top: 12px; right: 12px; z-index: 30; opacity: .35; transition: opacity .2s; }
#present-exit:hover, #present-exit:focus-visible { opacity: 1; }
/* ── Claude in Studio: the Claude tab ──────────────────────────────────────── */
.tabs [role=tab] .spark { color: var(--new); font-size: 11px; }
.tabs .tc.run { color: var(--new-ink); background: var(--new); }
.tabs .tc.warn { color: var(--warn-ink); background: var(--warn); }
#tab-claude:not([hidden]) { display: flex; flex-direction: column; overflow: hidden; }
.cl-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex: none; }
.cl-head:empty { display: none; }
.cl-head .ttl { flex: 1; min-width: 0; }
.cl-head .ttl b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-head .ttl span { font-size: 11px; color: var(--text-3); }
.cl-thread { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.cl-msg { font-size: 12.5px; line-height: 1.55; overflow-wrap: anywhere; }
.cl-msg .who { font-size: 11px; color: var(--text-3); margin-bottom: 3px; }
.cl-msg.cl .who b { color: var(--new); font-weight: 600; }
.cl-pending { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding: 8px 14px 0; max-height: 40%; overflow-y: auto; flex: none; }
.cl-msg.me.pending { opacity: .85; border-style: dashed; }
.cl-msg.me.pending .who { font-size: 11px; color: var(--text-3); margin-bottom: 4px; }
.cl-msg.me.pending .acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cl-msg.me.pending .cl-edit { width: 100%; box-sizing: border-box; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 13px; padding: 8px; resize: vertical; }
.cl-msg.me { align-self: flex-end; max-width: 88%; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 10px 10px 2px 10px; padding: 8px 10px; }
.cl-msg code, .cl-card code { font: 11px var(--mono); background: var(--panel-3); padding: 0 4px; border-radius: 4px; }
.cl-tools { display: flex; flex-direction: column; gap: 1px; }
.cl-tl { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 6px; align-items: center; width: 100%; padding: 3px 8px; border-left: 2px solid var(--line-2); font: 11px var(--mono); color: var(--text-3); }
.cl-tl:hover, .cl-tl:focus-visible { color: var(--text-2); border-left-color: var(--line-3); }
.cl-tl b { color: var(--text-2); font-weight: 500; white-space: nowrap; }
.cl-tl .in { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-tl .r.ok { color: var(--ok); } .cl-tl .r.err { color: var(--danger); } .cl-tl .r.run { color: var(--new); }
.cl-io { margin: 2px 0 4px 10px; padding: 6px 8px; font: 10.5px/1.5 var(--mono); color: var(--text-2); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; }
.cl-sys { font-size: 11px; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.cl-res { font: 10.5px var(--mono); color: var(--text-3); }
.cl-card { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: var(--panel-2); font-size: 12.5px; line-height: 1.45; }
.cl-card .k { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 5px; }
.cl-card p { margin: 0 0 8px; }
.cl-card .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.cl-card .code { margin: 0 0 8px; padding: 6px 8px; font: 11px/1.45 var(--mono); background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.cl-card.prop { border-color: color-mix(in srgb, var(--new) 55%, transparent); background: var(--new-soft); }
.cl-card.prop .k { color: var(--new); }
.cl-card.appr { border-color: color-mix(in srgb, var(--warn) 60%, transparent); background: var(--warn-soft); }
.cl-card.appr .k { color: var(--warn); }
.cl-card.err { border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.cl-card.err .k { color: var(--danger); }
.btn.warn { background: var(--warn); border-color: var(--warn); color: var(--warn-ink); font-weight: 600; }
.cl-composer { border-top: 1px solid var(--line); padding: 10px 12px; flex: none; display: flex; flex-direction: column; gap: 6px; }
.cl-composer[hidden] { display: none; }
.cl-box { border: 1px solid var(--line-3); border-radius: 10px; background: var(--panel-2); padding: 6px 8px; }
.cl-box:focus-within { border-color: var(--accent); }
.cl-box textarea { width: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 12.5px; resize: none; outline: none; min-height: 38px; }
.cl-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; row-gap: 8px; }
.cl-ctx .chip { white-space: nowrap; }
.cl-bar .sp { flex: 1; }
.cl-ctx { display: flex; gap: 4px; flex-wrap: wrap; }
.btn.busy { gap: 7px; opacity: .85; cursor: progress; }
.btn.busy .spin { width: 11px; height: 11px; border-width: 1.5px; }
.chip { font: 11px var(--font); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line-2); background: none; color: var(--text-3); cursor: pointer; }
.chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.cl-hint:empty { display: none; }
.cl-hint { font-size: 10.5px; color: var(--text-3); }
.warn-t { color: var(--warn); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--new); }
.pulse { animation: cl-pulse 1.4s ease-in-out infinite; }
.caret { display: inline-block; width: 7px; height: 13px; margin-left: 2px; background: var(--new); vertical-align: -2px; animation: cl-pulse 1s steps(2) infinite; }
@keyframes cl-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .pulse, .caret { animation: none; } }
.tabs [role=tab] { padding-left: 5px; padding-right: 5px; min-width: 0; font-size: 12px; gap: 4px; }
.tabs [role=tab] > span[data-i18n] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs .icon-tab .spark { font-size: 14px; }
/* the ✦ tab: like the others (selected by its underline only), the same space on each side */
.tabs [role=tab].icon-tab { min-width: 36px; justify-content: center; gap: 4px; }
.wdot.waiting { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
/* the pill over the view: what Claude does, and its menu */
.cl-pill { position: absolute; top: 12px; right: 12px; z-index: 25; }
.cl-pill-btn { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px; border-radius: 15px; background: color-mix(in srgb, var(--glass) 88%, transparent); border: 1px solid var(--line-2); color: var(--text-2); font: 11.5px var(--font); white-space: nowrap; backdrop-filter: blur(8px); }
.cl-pill-btn b { color: var(--text); font-weight: 600; }
.cl-pill-btn .lbl { max-width: min(170px, 16vw); overflow: hidden; text-overflow: ellipsis; } /* a long brief stays in the pill */
.cl-pill-btn .dot { background: var(--ok); }
.cl-pill-btn.run .dot { background: var(--new); }
.cl-pill-btn.wait { border-color: var(--warn); color: var(--warn); }
.cl-pill-btn.wait .dot { background: var(--warn); animation: cl-pulse 1.1s ease-in-out infinite; }
.cl-pill-btn .sep { width: 1px; height: 14px; background: var(--line-3); }
.cl-act { position: absolute; right: 0; top: 38px; width: 360px; max-height: 70vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); font-size: 12px; }
.cl-act .h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.cl-act .h span { font-size: 11px; color: var(--text-3); }
.cl-act .h { flex-wrap: wrap; }
.cl-act .h .bl { flex-basis: 100%; }
.cl-act .g { padding: 10px 14px 4px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.cl-act .it { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 14px; }
.cl-act .it:hover, .cl-act .it:focus-visible { background: var(--panel-3); }
.cl-act .it .t { flex: 1; min-width: 0; }
.cl-act .it .t b { display: block; font-weight: 500; font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-act .it .t span { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-act .it .state { flex: none; }
.cl-act .it.proj { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.cl-act .state { font: 10px var(--mono); padding: 1px 6px; border-radius: 10px; white-space: nowrap; }
.cl-act .state.running { color: var(--new); background: var(--new-soft); }
.cl-act .state.waiting { color: var(--warn); background: var(--warn-soft); }
.cl-act .state.queued { color: var(--text-2); background: var(--panel-3); }
.cl-act .none { padding: 10px 14px; color: var(--text-3); }
.cl-act .foot { padding: 10px 14px 12px; color: var(--text-3); font-size: 11px; border-top: 1px solid var(--line); margin-top: 8px; }
.linkish { all: unset; cursor: pointer; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
body.present .cl-pill { display: none; }
.cr-est { margin: 0; font-size: 12px; color: var(--text-3); cursor: help; }
.cr-queue { margin: 0; font-size: 12px; color: var(--text-2); padding: 8px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-2); }
.whero { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 18px; padding: 10px 12px; border: 1px solid var(--line-3); border-radius: 12px; background: var(--panel-2); text-align: left; }
.whero:focus-within { border-color: var(--accent); }
.whero textarea { border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; resize: vertical; outline: none; min-height: 56px; }
.whero .row { display: flex; align-items: center; gap: 8px; }
.whero .sp { flex: 1; }
/* the ✦ tab's badge sits on the icon, as a notification does: the tabs keep their width */
#tb-claude { position: relative; padding-right: 9px; }
#tc-claude { position: absolute; top: 3px; right: -1px; min-width: 14px; height: 14px; padding: 0 3px; font-size: 9px; line-height: 14px; }
.whero select { height: 30px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 0 8px; font-size: 12.5px; max-width: 240px; }
/* Settings: four panes, each a column of rows — what it is on the left (a title, one short
sentence under it), the control on the right, always in the same place. */
#settings .set-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-right: 1px solid var(--line); background: var(--panel); }
#settings .set-nav button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; }
#settings .set-nav button:hover { background: var(--panel-2); }
#settings .set-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
#settings .set-nav button[aria-selected="true"] { background: var(--panel-3); box-shadow: inset 2px 0 0 var(--accent); }
#settings .set-nav b { font-size: 13px; font-weight: 600; color: var(--text); }
#settings .set-nav span { font-size: 11px; color: var(--text-3); }
#settings .set-nav .spark { color: var(--new); }
#settings .set-panes { overflow-y: auto; padding: 4px 20px 16px; min-width: 0; }
.set-where { margin: 12px 0 4px; font-size: 11.5px; color: var(--text-3); }
.set-where code { font: 500 11px var(--mono); color: var(--accent); }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-pane > .srow:last-child { border-bottom: 0; }
.srow .st { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.srow .st b { font-size: 13px; font-weight: 500; color: var(--text); }
.srow .st span { font-size: 11.5px; line-height: 1.45; color: var(--text-3); max-width: 46ch; }
.srow .st label { cursor: pointer; }
.srow .sc { justify-self: end; display: flex; align-items: center; gap: 6px; }
.srow .sc select { height: 28px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 0 8px; font-size: 12px; max-width: 240px; }
.srow.wide { grid-template-columns: 1fr; }
.srow.wide .sc { justify-self: stretch; }
.srow.wide textarea { width: 100%; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg); padding: 7px 9px; font: 12px/1.5 var(--mono); color: var(--text); resize: vertical; }
.srow.in { padding: 10px 0 10px 14px; border-bottom: 0; border-left: 2px solid var(--line-2); margin-left: 2px; }
.sbox { padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.sline { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12.5px; }
.sline span { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.sline.ok span { background: var(--ok-soft); color: var(--ok); }
.sline.bad span { background: var(--warn-soft); color: var(--warn); }
.sline b { font-weight: 500; color: var(--text); }
input.num, .set-key input { height: 28px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 0 8px; font: 12px var(--mono); }
input.num { width: 84px; }
.set-key input { width: 210px; }
#set-parallel button.over { color: var(--warn); }
@media (max-width: 640px) {
#settings .set-body { grid-template-columns: 1fr; }
#settings .set-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
.srow { grid-template-columns: 1fr; }
.srow .sc { justify-self: start; }
}
.setup li .meta { font: 10.5px var(--mono); color: var(--text-3); margin: 1px 0 2px; }
.setup li { grid-template-columns: 22px 1fr auto; }
.setup li > .btn { align-self: center; }
.setup li.partial .mk { background: var(--warn); }
#set-setup { padding: 0; margin: 8px 0 12px; }
/* the quota: a bar per window (the class is .qbar: .bar is the toolbars') */
.qbar { display: inline-block; width: 46px; height: 5px; border-radius: 3px; background: var(--line-3); overflow: hidden; flex: none; }
.qbar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.qbar i.hot { background: var(--warn); }
.cl-act .qrow { display: grid; grid-template-columns: 96px 1fr 40px; gap: 4px 10px; align-items: center; padding: 5px 14px; color: var(--text-2); }
.cl-act .qrow .qbar { width: 100%; }
.cl-act .qrow .qv { text-align: right; font-variant-numeric: tabular-nums; }
.cl-act .qrow .qr { grid-column: 2 / 4; font-size: 10.5px; color: var(--text-3); margin-top: -2px; }
.cl-act .g .when { text-transform: none; letter-spacing: 0; color: var(--text-3); margin-left: 6px; }
/* the themes: a compact grid, four across; the account's state under its description */
.srow.wide .sc { display: block; }
.srow .themes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.srow .theme-card { flex-direction: row; align-items: center; gap: 8px; padding: 8px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .theme-card .sw3 { flex: none; }
.sstate { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px !important; color: var(--text) !important; }
.sstate i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font: 700 10px/1 var(--font); font-style: normal; flex: none; }
.sstate.ok i { background: var(--ok-soft); color: var(--ok); }
.sstate.bad i { background: var(--warn-soft); color: var(--warn); }
.sbox[hidden] { display: none; }
.sbox { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
@media (max-width: 640px) { .srow .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* tabs with badges: a smaller badge, tighter tabs, so five fit with two counts */
.tabs { gap: 0; padding-left: 2px; padding-right: 2px; }
.tabs [role=tab] { padding-left: 6px; padding-right: 6px; gap: 4px; }
.tabs .tc { min-width: 14px; height: 14px; font-size: 9.5px; line-height: 14px; padding: 0 3px; border-radius: 7px; }
.tabs .collapse { width: 24px; }
/* the tutorial: a banner saying it is a simulation, a ring on what to do, a card */
.tuto { position: fixed; inset: 0; z-index: 85; pointer-events: none; }
.tuto-dim { position: fixed; inset: 0; background: rgba(5, 7, 10, .55); pointer-events: auto; } /* catches clicks but in its hole */
.tuto-ring { position: fixed; border-radius: 10px; box-shadow: 0 0 0 2px var(--accent), 0 0 18px 2px color-mix(in srgb, var(--accent) 45%, transparent); transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease, opacity .2s; }
.tuto-card { position: fixed; width: 360px; padding: 14px 16px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-3); box-shadow: var(--shadow); pointer-events: auto; transition: opacity .12s ease, translate .12s ease, border-color .2s; }
.tuto-card.out { opacity: 0; translate: 0 4px; pointer-events: none; }
.tuto-card.ok { border-color: var(--ok); }
.tuto-ring.jump { transition: opacity .12s ease; } /* between steps: fades, never slides */
.tuto-step { font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.tuto-card h4 { margin: 10px 0 6px; font-size: 15px; line-height: 1.3; }
.tuto-count { margin-left: auto; font: 500 10.5px var(--mono); color: var(--text-3); }
.tuto-bar { height: 2px; margin-top: 8px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.tuto-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.tuto-body { font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.tuto-body p { margin: 0 0 6px; }
.tuto-body ul { margin: 0 0 6px; padding: 0; list-style: none; display: grid; gap: 5px; }
.tuto-body li { position: relative; padding-left: 14px; }
.tuto-body li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .7; }
.tuto-body b, .tuto-act b { color: var(--text); font-weight: 650; }
.tuto-act { display: flex; gap: 8px; align-items: baseline; margin: 10px 0 2px; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.45; color: var(--text);
background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.tuto-act-ico { color: var(--accent); font-weight: 700; }
.tuto-card.ok .tuto-act { background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.tuto-acts { margin-top: 12px; }
.tuto-acts { display: flex; align-items: center; gap: 6px; }
.tuto-acts .sp { flex: 1; }
.tuto-hint { font-size: 11.5px; color: var(--text-3); }
.tuto-card.ok .tuto-hint { color: var(--ok); font-weight: 700; }
.tuto-offer { position: fixed; right: 16px; bottom: 16px; z-index: 70; width: 330px; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-3); box-shadow: var(--shadow); }
.tuto-offer b { font-size: 13.5px; }
.tuto-offer p { margin: 6px 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .tuto-ring, .tuto-card { transition: none; } }
.cl-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.cl-tags span { font-size: 10.5px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-3); color: var(--text-2); }
.tuto-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tuto-sim { font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--new); border: 1px solid color-mix(in srgb, var(--new) 50%, transparent); border-radius: 4px; padding: 1px 6px; cursor: help; }
/* every list: a drawn chevron with room around it (the native one sat on the edge) */
select:not([multiple]) { -webkit-appearance: none; appearance: none; padding-right: 28px !important;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a93a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
background-repeat: no-repeat !important; background-position: right 10px center !important; background-size: 10px 7px !important; }
/* the tutorial's overlay is a popover (top layer, above dialogs): none of a popover's own look */
#tuto[popover] { position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; overflow: visible; }
#tuto[popover]::backdrop { display: none; }
.tuto-acts .btn.icon { min-width: 28px; justify-content: center; font-size: 15px; line-height: 1; }
/* a model Claude is making, before its first file */
.making { max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.making .spin { width: 22px; height: 22px; border-width: 2.5px; margin-bottom: 6px; }
.making .brief { margin: 0; color: var(--text-2); font-style: italic; }
.making .work-line { margin: 0; color: var(--text-3); font-size: 12px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a reply: its summary, then one line per change */
.reply .body p { margin: 0 0 4px; }
.reply .body p:last-child { margin-bottom: 0; }
.reply .body ul { margin: 4px 0 0; padding-left: 16px; display: grid; gap: 3px; }
.reply .body code { font: 11px var(--mono); }
/* the ✦ tab: its star in the middle (an older rule left it 6px left, 9px right) */
.tabs [role=tab].icon-tab { padding-left: 8px; padding-right: 8px; }
.cmpchoose { position: absolute; bottom: 152px; z-index: 6; box-shadow: var(--shadow); } /* over its side's label */
/* ✦ drawn, not a glyph: the same size in every browser (Safari's font drew it at half size) */
svg.spark { width: 14px; height: 14px; fill: var(--new); stroke: none; flex: none; }
.rail svg.spark { width: 16px; height: 16px; fill: var(--new); stroke: none; }
/* outputs: a chip per use, the file shown downloads or shows in the Finder */
.outputs { display: inline-flex; align-items: center; flex-wrap: wrap; row-gap: 6px; gap: 4px; margin-left: 10px; min-width: 0; }
.outputs > * { white-space: nowrap; flex: none; }
.outputs .out-tools { display: inline-flex; align-items: center; gap: 4px; }
.outputs .out-label { font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-right: 2px; }
.outputs .out { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; cursor: pointer;
border: 1px solid var(--line-2); background: transparent; color: var(--text-2); transition: background-color .15s, border-color .15s, color .15s; }
.outputs .out .fin { color: var(--text-3); }
.outputs .out i { font-style: normal; font-weight: 700; font-size: 10px; }
.outputs .out.on i { color: var(--ok); }
.outputs .out.on:not(.stale) { border-color: color-mix(in srgb, var(--ok) 35%, var(--line-2)); }
.outputs .out.stale i { color: var(--warn); }
.outputs .out.stale { border-color: color-mix(in srgb, var(--warn) 45%, transparent); color: var(--text-2); }
.outputs .out.on:hover { background: var(--panel-3); color: var(--text); }
.outputs .out.cur { border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.outputs .out.add { border-style: dashed; color: var(--text-3); }
.outputs .out.busy { color: var(--text-2); cursor: progress; }
.outputs .out.busy .spin { width: 10px; height: 10px; }
.outputs .out.add:hover:not(:disabled) { color: var(--text); border-color: var(--line-3); background: var(--panel-3); }
.outputs .out.add:disabled { opacity: .45; cursor: progress; }
.outputs .out-sep { width: 1px; height: 16px; background: var(--line-2); margin: 0 4px; }
.outputs .btn.icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.outputs .out-dl { gap: 5px; }
.outputs .out-dl svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-1px); } /* level with the text's capitals */
/* Décliner: a card per declination (what changes, its name, what it is for), the options, one button */
#decl { width: min(820px, calc(100vw - 24px)); max-height: calc(100vh - 48px); display: none; flex-direction: column; }
#decl[open] { display: flex; }
#decl .set-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
#decl .set-head h3 { margin: 0; font-size: 15px; }
#decl .set-head form { margin: 0; }
#decl .dc-head { display: grid; gap: 2px; font-size: 12px; }
#decl .dc-tabs { display: flex; gap: 6px; padding: 14px 18px 0; }
#decl .dc-tabs button { flex: 1; display: grid; gap: 3px; text-align: left; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; cursor: pointer; }
#decl .dc-tabs button b { font-size: 13px; font-weight: 600; }
#decl .dc-tabs button span { font-size: 11.5px; color: var(--text-2); line-height: 1.45; }
#decl .dc-tabs button[aria-selected="true"] { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
#decl .dc-tabs button:hover:not([aria-selected="true"]) { background: var(--panel-2); }
#decl .dc-have { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); padding: 2px 2px 4px; }
#decl .dc-have .chip { height: 24px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; color: var(--text); font-size: 12px; }
#decl .dc-card-body.fin { grid-template-columns: 200px minmax(0, 1fr); }
#decl .dc-in { font-size: 12px; color: var(--text-2); line-height: 1.5; }
#decl .dc-in code { font: 12px var(--mono); color: var(--text); }
#decl .dc-def { width: 220px; }
#decl .dc-defcell { display: grid; gap: 6px; }
#decl #dc-opts-finishes { align-items: start; }
#decl #dc-opts-finishes .lab { padding-top: 7px; }
#decl .dc-help { font-size: 11.5px; color: var(--text-3); line-height: 1.45; }
#decl .dc-body { padding: 14px 18px 4px; display: grid; gap: 10px; overflow-y: auto; min-height: 0; }
#decl .dc-rows { display: grid; gap: 10px; }
#decl .dc-card { border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
#decl .dc-card.bad { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); }
#decl .dc-card-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 12px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text-2); }
#decl .dc-card-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; padding: 10px 12px 12px; align-items: start; }
#decl .dc-side { display: grid; gap: 10px; }
#decl label.f { display: grid; gap: 5px; min-width: 0; }
#decl label.f > span { font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
#decl textarea, #decl input[type="text"], #decl select { box-sizing: border-box; width: 100%; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 12.5px; }
#decl textarea { resize: vertical; min-height: 68px; padding: 8px 10px; line-height: 1.45; font-size: 13px; }
#decl input[type="text"] { height: 32px; padding: 0 10px; }
#decl .sel { position: relative; display: flex; }
#decl select { -webkit-appearance: none; appearance: none; height: 32px; padding: 0 30px 0 10px; background: var(--panel-3); font-family: var(--font); }
#decl .sel svg { position: absolute; right: 10px; top: 9px; width: 14px; height: 14px; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
#decl textarea:focus, #decl input:focus, #decl select:focus { outline: none; border-color: var(--accent); }
#decl .dc-add { height: 38px; border-radius: 10px; border: 1px dashed var(--line-3); background: transparent; color: var(--text-2); font: inherit; font-size: 12.5px; cursor: pointer; }
#decl .dc-add:hover { color: var(--text); background: var(--panel-3); }
#decl .dc-opts { margin: 8px 18px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 14px; align-items: center; }
#decl .dc-opts .lab { font-size: 12px; color: var(--text-2); }
#decl .dc-pills { display: flex; flex-wrap: wrap; gap: 6px; }
#decl .dc-pills button { height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: inherit; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
#decl .dc-pills button i { font-style: normal; font-weight: 700; font-size: 10px; }
#decl .dc-pills button.on { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
#decl .dc-pills button:disabled { opacity: .45; cursor: not-allowed; }
#decl .dc-foot { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
#decl .dc-foot form { margin: 0; }
#decl .dc-sum { flex: 1; min-width: 0; display: grid; gap: 6px; }
#decl .dc-facts { display: flex; flex-wrap: wrap; gap: 6px; }
#decl .dc-facts span { height: 22px; padding: 0 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
#decl .dc-facts b { color: var(--text); font-weight: 600; }
#decl .dc-est { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
#decl .dc-err { font-size: 12px; color: var(--danger); }
#decl .dc-err:empty { display: none; }
@media (max-width: 640px) { #decl .dc-card-body, #decl .dc-opts { grid-template-columns: minmax(0, 1fr); } }
/* AR on the phone: the QR code and how to use it */
#phone { width: min(560px, calc(100vw - 24px)); }
#phone .set-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
#phone .set-head h3 { margin: 0; font-size: 15px; }
#phone .set-head form { margin: 0; }
#phone .ph-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 18px; align-items: start; }
#phone .ph-left { display: grid; gap: 10px; }
#phone .ph-time { display: grid; gap: 6px; justify-items: center; }
#phone .ph-time b { font: 600 28px/1 var(--mono); color: var(--text); letter-spacing: .02em; }
#phone .ph-time .ph-bar { width: 100%; height: 4px; border-radius: 2px; background: var(--panel-3); overflow: hidden; }
#phone .ph-time .ph-bar i { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }
#phone.expired .ph-qr { opacity: .15; }
#phone.expired .ph-time b { color: var(--warn); font-size: 18px; }
#phone .ph-lim { font-size: 12px; color: var(--text-2); line-height: 1.45; padding: 10px 12px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }
#phone .ph-lim ul { margin: 4px 0 0; padding-left: 16px; display: grid; gap: 3px; }
#phone .ph-qr { width: 200px; height: 200px; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; font-size: 12px; color: #333; text-align: center; padding: 0; }
#phone .ph-qr svg { width: 100%; height: 100%; display: block; }
#phone .ph-how { display: grid; gap: 10px; font-size: 13px; color: var(--text-2); }
#phone ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
#phone code { font: 11px var(--mono); color: var(--text-3); word-break: break-all; }
#phone .dim { margin: 0; font-size: 12px; }
#phone .ph-miss { display: grid; gap: 8px; justify-items: start; padding: 10px 12px; border-radius: 8px; background: var(--warn-soft); color: var(--text); font-size: 12.5px; line-height: 1.45; }
#phone .ph-miss[hidden] { display: none; }
#phone .ph-note { font-size: 11.5px; line-height: 1.45; }
#phone .ph-foot { display: flex; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { #phone .ph-body { grid-template-columns: 1fr; justify-items: center; } }
/* the download dialog: an output per row, its files under it; the sheet; one button */
#dl { width: min(560px, calc(100vw - 24px)); }
#dl .set-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
#dl .set-head h3 { margin: 0; font-size: 15px; }
#dl .set-head form { margin: 0; }
#dl .dl-body { padding: 10px 12px; display: grid; gap: 4px; max-height: 60vh; overflow: auto; }
#dl .dl-row, #dl .dl-sheet { display: flex; gap: 10px; align-items: flex-start; padding: 9px 8px; border-radius: 8px; cursor: pointer; }
#dl .dl-row:hover, #dl .dl-sheet:hover { background: var(--panel-3); }
#dl input[type="checkbox"] { margin: 2px 0 0; accent-color: var(--accent); flex: none; }
#dl .dl-what { display: grid; gap: 3px; min-width: 0; }
#dl .dl-what b { font-size: 13px; font-weight: 600; display: flex; align-items: baseline; gap: 6px; }
#dl .dl-what i { font-style: normal; font-weight: 700; font-size: 11px; }
#dl .dl-what i.ok { color: var(--ok); }
#dl .dl-what i.stale, #dl .dl-warn { color: var(--warn); }
#dl .dl-warn { font-weight: 400; font-size: 11.5px; }
#dl .dl-file { display: flex; gap: 8px; align-items: baseline; font-size: 11.5px; min-width: 0; }
#dl .dl-file code { font: 11.5px var(--mono); color: var(--text-2); flex: none; }
#dl .dl-file .dim { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dl .dl-sec { margin: 10px 8px 2px; font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
#dl .dl-fins { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px; }
#dl .dl-fin { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); font-size: 12.5px; cursor: pointer; }
#dl .dl-fin:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
#dl .dl-fin input { margin: 0; }
#dl .dl-shown { display: flex; align-items: center; gap: 10px; padding: 6px 8px 0; font-size: 12.5px; color: var(--text-2); }
#dl .dl-shown .sel { position: relative; display: inline-flex; }
#dl .dl-shown select { -webkit-appearance: none; appearance: none; height: 28px; padding: 0 28px 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--panel-3); color: var(--text); font: inherit; font-size: 12.5px; }
#dl .dl-shown svg { position: absolute; right: 8px; top: 7px; width: 14px; height: 14px; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
#dl .dl-fhelp { margin: 6px 8px 2px; font-size: 11.5px; color: var(--text-3); line-height: 1.45; }
#dl .dl-vtext { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dl .dl-sheet { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 12px; }
#dl .dl-sheet > span { display: grid; gap: 2px; font-size: 13px; }
#dl .dl-sheet .dim { font-size: 11.5px; }
#dl .dl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
#dl .dl-foot .dim { font-size: 12px; }
#dl #dl-go { text-decoration: none; }
#dl #dl-go.disabled { opacity: .45; pointer-events: none; }
/* a tip, the first time a feature is used */
/* A tip: laid out as a tutorial card (.tuto-card), smaller. */
.coach { position: fixed; z-index: 2147483000; display: grid; gap: 8px; justify-items: start; padding: 12px 14px 10px; border-radius: 12px;
background: var(--panel); border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line-2)); box-shadow: var(--shadow);
font-size: 12.5px; line-height: 1.5; color: var(--text-2); animation: coach-in .18s ease-out; }
.coach .k { font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.coach h4 { margin: 6px 0 6px; font-size: 14px; line-height: 1.3; color: var(--text); }
.coach ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.coach li { position: relative; padding-left: 14px; }
.coach li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .7; }
.coach b { color: var(--text); font-weight: 650; }
.coach .tuto-act { margin: 8px 0 0; }
.coach > button { justify-self: end; }
.coach.inline { position: static; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; box-shadow: none; padding: 10px 12px; margin: 0 0 10px;
background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }
.coach.inline h4 { margin-top: 2px; }
.coach.inline { container-type: inline-size; }
@container (max-width: 440px) { .coach.inline > * { grid-column: 1 / -1; } .coach.inline > button { justify-self: end; } } /* narrow: Got it below */
@keyframes coach-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .coach { animation: none; } }
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |