/* STRAY: Sora typography and original celestial etching.
   Shape: 4px panels/controls, 999px badges, circles for semantic dots/switches.
   Layers: page 1, header/tooltips 2, skip link 3, dialogs in the native top layer. */
@font-face {
  font-family: "Sora";
  src: url('/static/fonts/SoraVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}
:root {
  --radius: 4px;
  --panel-radius: 4px;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sans: "Sora", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --stray-orbits: url('/static/stray/etched/orbital-field-768.webp');
  font-optical-sizing: auto;
  font: 14px/1.6 var(--sans);
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; min-height: 100dvh; isolation: isolate; }
.ambient-field { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
button, input, textarea, select { font: inherit; }
button, select, input, textarea { border: 1px solid var(--control-line); border-radius: var(--radius); color: var(--text); background: var(--raised); }
button, select { min-height: 40px; padding: 8px 12px; }
button { cursor: pointer; white-space: nowrap; transition: background-color .18s, border-color .18s, transform .18s; }
button:hover { background: var(--hover); border-color: var(--text); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .65; cursor: default; }
input, textarea { min-width: 0; width: 100%; padding: 11px 14px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
::selection { color: var(--accent-ink); background: var(--accent); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(36px, 4vw, 60px); font-weight: 500; line-height: 1.08; letter-spacing: -2.5px; }
h2 { font-size: 20px; line-height: 1.35; font-weight: 600; letter-spacing: -.45px; }
h3 { font-size: 14px; font-weight: 500; line-height: 1.5; }
.small { font-size: 12px; }
.scene-strip { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; padding: 20px 0; margin: 16px 0; }
.scene-strip h2 { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.scene-strip p { flex: 1 1 260px; margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; background: currentColor; mask: var(--icon) center / contain no-repeat; -webkit-mask: var(--icon) center / contain no-repeat; }
.skip-link { position: fixed; left: 20px; top: 12px; padding: 10px 16px; background: var(--text); color: var(--bg); z-index: 3; opacity: 0; pointer-events: none; }
.skip-link:focus { opacity: 1; pointer-events: auto; }
.shell, .header-inner { width: min(1400px, calc(100% - 64px)); margin: 0 auto; }
.shell { position: relative; z-index: 1; }
.site-header { position: relative; z-index: 2; background: var(--bg); }
.header-inner { min-height: 80px; display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); }
.wordmark { flex: 0 0 auto; display: flex; align-items: center; gap: 24px; }
.brand-tagline { max-width: 180px; color: var(--muted); font-size: 8px; letter-spacing: 2.3px; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 6px; margin-inline: auto; }
.nav-link { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 12px; font-size: 12px; color: var(--muted); white-space: nowrap; border-radius: var(--radius); }
.nav-link .icon { display: none; }
.nav-link:hover { color: var(--text); background: var(--raised); }
.nav-link.active { color: var(--text); background: var(--raised); font-weight: 600; }
.nav-link.active::after { content: ""; position: absolute; inset: auto 12px 4px; height: 2px; background: var(--link); }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-emblem { display: block; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; object-fit: contain; }
.agent-status { display: flex; align-items: center; gap: 8px; font-size: 10px; white-space: nowrap; color: var(--muted); }
.status-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--positive); }
.status-dot.off { background: var(--muted); }
html[data-public-view="true"] .agent-status { display: none; }
html[data-public-view="true"] body:not([data-powered="true"]) .frame-indicator,
html[data-public-view="true"] body:not([data-powered="true"]) .tool-monitor-status,
html[data-public-view="true"] body:not([data-powered="true"]) .browser-footer { display: none; }
.power-switch { display: flex; align-items: center; gap: 9px; padding: 8px 12px; font-size: 11px; }
.switch-track { width: 29px; height: 17px; padding: 3px; border-radius: 20px; background: var(--line); }
.switch-track i { display: block; height: 11px; width: 11px; border-radius: 50%; background: var(--muted); transition: transform .18s ease; }
.power-switch[aria-checked="true"] .switch-track { background: var(--positive); }
.power-switch[aria-checked="true"] .switch-track i { background: var(--positive-ink); transform: translateX(12px); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; padding: 8px; width: 40px; min-height: 40px; background: transparent; }
#motion-toggle { border-color: transparent; color: var(--muted); }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; min-height: 480px; padding: 46px 20px 52px; }
.hero-copy { position: relative; z-index: 1; min-width: 0; width: 38%; }
.eyebrow { display: block; font-size: 9px; line-height: 1.5; text-transform: uppercase; letter-spacing: 2.5px; color: var(--muted); margin-bottom: 22px; }
.hero h1 { max-width: 11ch; font-size: clamp(48px, 4.9vw, 70px); letter-spacing: -3.3px; line-height: 1.04; }
.hero p { margin-top: 22px; color: var(--muted); font-size: 15px; max-width: 36ch; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.hero-actions a { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 20px; font-size: 13px; font-weight: 500; border: 1px solid var(--control-line); border-radius: var(--radius); background: rgb(0 0 0 / .7); }
.hero-actions a:first-child { background: var(--text); color: var(--bg); border-color: var(--text); }
.hero-actions a:first-child:hover { background: var(--accent); }
.hero-actions a:last-child:hover { border-color: var(--text); background: var(--raised); }
.hero-actions .icon { width: 14px; height: 14px; }
.hero-art { position: absolute; z-index: 0; inset: 0; display: block; margin: 0; height: 100%; min-width: 0; overflow: hidden; }
.hero-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--bg) 3%, rgb(0 0 0 / .75) 25%, transparent 42%); }
.hero-cat { position: relative; display: block; width: 100%; height: 100%; }
.hero-cat img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero-annotation, .hero-path { position: absolute; z-index: 1; right: 20px; color: var(--muted); font-size: 8px; line-height: 1.9; letter-spacing: 2.3px; text-transform: uppercase; pointer-events: none; }
.hero-annotation { top: 26px; }
.hero-path { bottom: 90px; }
.hero-path > span, .footer-path > span { display: block; width: 22px; height: 1px; margin-top: 16px; background: var(--accent); }
.hero-side { margin-top: 20px; }
.hero-meta { display: flex; align-items: center; gap: 16px; font-size: 10px; color: var(--muted); }
.connection-label { display: flex; align-items: center; gap: 6px; }
.connection-label .icon { width: 12px; height: 12px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 5px 2px; font-size: 12px; border: 0; background: transparent; color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.text-button .icon { width: 14px; height: 14px; }
.text-button:hover { background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.research-metrics { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 12px 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.research-metrics > div { display: flex; align-items: center; gap: 9px; font-size: 10px; color: var(--muted); }
.research-metrics .icon { width: 14px; height: 14px; }
.metric-value { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text); }
.notice { padding: 12px 16px; border: 1px solid var(--warning-line); border-radius: var(--radius); background: var(--warning-soft); color: var(--text); margin-bottom: 20px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: stretch; }
.panel { border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); box-shadow: inset 0 1px 0 rgb(255 255 255 / .035); }
.browser { min-width: 0; overflow: hidden; border-color: var(--emphasis-line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; min-height: 38px; }
.section-heading h2 { display: flex; align-items: center; gap: 9px; }
.section-heading h2 > .icon { color: var(--muted); width: 16px; height: 16px; }
.browser > .section-heading { padding: 18px 20px; margin: 0; border-bottom: 1px solid var(--emphasis-line); background: var(--raised); }
.browser > .section-heading h2 { font-size: 22px; letter-spacing: -.5px; font-weight: 600; }
.activity > .section-heading h2 { font-size: 18px; letter-spacing: -.3px; font-weight: 600; }
/* Passive ability labels report existing tools; they do not invoke them. */
.tool-monitor { padding: 10px 18px 6px; border-bottom: 1px solid var(--line); background: var(--bg); }
.tool-monitor-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; min-height: 22px; }
.tool-monitor-heading h3 { font-size: 11px; font-weight: 500; white-space: nowrap; color: var(--muted); }
.tool-monitor-status { margin-left: auto; min-width: 0; font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-rail { display: grid; grid-template-columns: repeat(7, minmax(66px, 1fr)); gap: 6px; overflow-x: auto; padding: 4px 2px 8px; margin: -4px -2px 0; scrollbar-width: thin; scrollbar-color: var(--accent-line) var(--bg); scroll-snap-type: x proximity; }
.tool-capability { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 6px; border: 1px solid transparent; border-radius: var(--radius); scroll-snap-align: start; cursor: default; }
.tool-capability:focus-visible { outline-offset: -2px; }
.tool-capability > .icon { width: 14px; height: 14px; color: var(--muted); }
.tool-capability-label { font-size: 10px; line-height: 1.4; color: var(--muted); }
.tool-capability::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); opacity: 0; pointer-events: none; }
.tool-capability::after { content: ""; position: absolute; bottom: 0; left: 20%; width: 25%; height: 1px; background: var(--text); opacity: 0; pointer-events: none; }
.tool-capability[data-active="true"] { background: var(--raised); border-color: var(--line); }
.tool-capability[data-active="true"] > .icon, .tool-capability[data-active="true"] .tool-capability-label { color: var(--text); }
.tool-capability[data-active="true"]::after { opacity: 1; }
.tool-rail[aria-busy="true"] .tool-capability > .icon { opacity: .5; }
.tool-tooltip { position: fixed; z-index: 2; width: min(250px, calc(100vw - 32px)); padding: 12px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--control-line); border-radius: var(--radius); font-size: 12px; line-height: 1.6; }
.tool-tooltip strong { display: block; margin-bottom: 4px; font-weight: 500; }
.tool-tooltip > span { color: var(--muted); }

.heading-actions, .heading-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.frame-indicator { display: flex; align-items: center; gap: 7px; }
.count-label { color: var(--muted); font: 11px/1.6 var(--sans); padding: 3px 7px; border-radius: var(--radius); background: var(--surface); white-space: nowrap; }
.browser-window { overflow: hidden; background: var(--bg); }
.browser-chrome { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.page-kind { flex-shrink: 0; padding: 4px 7px; border: 1px solid var(--line); border-radius: var(--radius); font: 10px/1.5 var(--sans); color: var(--muted); }
.page-identity { flex: 1; min-width: 0; }
.page-identity strong { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 12px 5px 18px; border-bottom: 1px solid var(--line); }
.browser-phase { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 11px; color: var(--muted); }
.browser-phase > .icon { width: 14px; height: 14px; }
#browser-phase { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-phase[data-state="blocked"] { color: var(--warning); }
.address { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 11px/1.6 var(--sans); color: var(--muted); }
.viewport { position: relative; width: 100%; aspect-ratio: 8 / 5; background: var(--bg); overflow: hidden; }
.viewport:focus-visible { outline-offset: -3px; }
.frame-plane { width: 100%; height: 100%; }
#browser-frame { display: block; width: 100%; height: 100%; object-fit: contain; }
#frame-placeholder { position: relative; isolation: isolate; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; color: var(--muted); }
.placeholder-art { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; opacity: .35; }
#frame-placeholder > .icon { width: 28px; height: 28px; margin-bottom: 5px; }
#frame-placeholder p { font-size: 12px; }
.research-direction { padding: 18px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.social-feed-status { padding: 12px 18px; border-top: 1px solid var(--line); }
.social-feed-status > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.social-feed-status p { margin-top: 6px; overflow-wrap: anywhere; }
.story-screening { padding: 12px 18px; border-top: 1px solid var(--line); }
.story-screening > summary { cursor: pointer; }
.story-screening > p { margin: 10px 0; }
#story-decisions { max-height: 420px; overflow-y: auto; }
.story-decision { padding: 12px 0; border-top: 1px solid var(--line); }
.story-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.story-choice.yes { color: var(--positive); }
.story-choice.unclear { color: var(--warning); }
.story-decision details { margin-top: 8px; font-size: 12px; }
.story-decision pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow-y: auto; margin-top: 8px; }
.research-direction > div { display: flex; align-items: center; gap: 12px; }
.direction-icon { color: var(--accent); }
.research-direction h3 { margin-top: 2px; }
.research-direction p { margin-top: 7px; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
.research-story { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.research-story .story-label { color: var(--text); font-weight: 600; }
#story-finding { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.story-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.story-links a { font-size: 12px; overflow-wrap: anywhere; }
.research-story .story-outcome { color: var(--text); }
.research-story button { margin-top: 10px; }
#direction-next { font-size: 12px; color: var(--text); }
.attention { border-top: 1px solid var(--line); margin: 0 18px; }
.attention summary { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; list-style: none; color: var(--muted); }
.attention summary::-webkit-details-marker { display: none; }
.attention summary .icon { width: 14px; height: 14px; }
.attention summary .icon:last-child { margin-left: auto; transition: transform .18s; }
.attention[open] summary .icon:last-child { transform: rotate(180deg); }
.focus-badge { font-size: 11px; }
.focus-badge.selected { color: var(--accent); }
.attention p { margin-bottom: 14px; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; max-height: 160px; overflow-y: auto; color: var(--muted); white-space: pre-wrap; }
.browser-footer { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--muted); padding: 10px 18px; border-top: 1px solid var(--line); background: var(--bg); }
#agent-message { max-width: 70%; overflow-wrap: anywhere; }
#next-wake { text-align: right; }
.activity { display: flex; flex-direction: column; min-height: 460px; padding: 18px; min-width: 0; contain: size; overflow: hidden; }
.activity .section-heading { margin-bottom: 2px; }
.panel-description { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.log-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.segmented { display: inline-flex; padding: 3px; background: var(--bg); border: 1px solid var(--control-line); border-radius: var(--radius); }
.segmented button { border: 0; background: transparent; font-size: 12px; min-height: 28px; padding: 4px 10px; border-radius: var(--radius); }
.segmented button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.segmented button[aria-pressed="false"] { color: var(--muted); }
#activity-kind { flex: 1; min-width: 0; font-size: 11px; padding-left: 8px; min-height: 36px; }
.feed-order { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; font-size: 10px; }
.feed-order .icon { width: 12px; height: 12px; }
.event-list { flex: 1; height: 0; min-height: 240px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding-right: 7px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.event { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; padding: 15px 0; position: relative; overflow-wrap: anywhere; }
.event + .event { border-top: 1px solid rgb(255 255 255 / .07); }
.event-symbol { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: var(--bg); }
.event[data-kind="search"] .event-symbol, .event[data-kind="browser"] .event-symbol, .event[data-kind="reading"] .event-symbol, .event[data-kind="stray"] .event-symbol, .event[data-kind="investigation"] .event-symbol { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.event[data-kind="memory"] .event-symbol, .event[data-kind="checkpoint"] .event-symbol { color: var(--positive); background: var(--positive-soft); border-color: var(--positive-line); }
.event[data-kind="plan"] .event-symbol { color: var(--warning); background: var(--warning-soft); border-color: var(--warning-line); }
.event[data-kind="error"] .event-symbol { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-line); }
.event-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 1px 0 5px; }
.event-title { font-size: 13px; font-weight: 600; }
.event-meta time { font: 11px/1.5 var(--sans); color: var(--dim); white-space: nowrap; }
.event p { font-size: 13px; line-height: 1.65; color: var(--muted); }
.event-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.event.expanded .event-text { display: block; }
.event-more { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; min-height: 30px; padding: 0; border: 0; background: transparent; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.event-more:hover { background: transparent; text-decoration: underline; }
.event-more .icon { width: 12px; height: 12px; }
.panel-footnote { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 10px; padding-top: 14px; margin-top: 10px; border-top: 1px solid var(--line); }
.panel-footnote .icon { width: 12px; height: 12px; margin-top: 2px; }
.jump-latest { margin-top: 10px; background: var(--raised); color: var(--link); font-size: 12px; }
.composer { margin: 24px 0 0; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--panel-radius); background: linear-gradient(90deg, rgb(0 0 0 / .76), rgb(0 0 0 / .96) 55%), var(--stray-orbits) left bottom / cover; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: center; }
.composer-intro { display: flex; align-items: flex-start; gap: 15px; }
.composer-mark { width: 24px; height: 24px; margin-top: 2px; color: var(--accent); }
.composer-intro p { font-size: 12px; color: var(--muted); margin-top: 6px; max-width: 225px; }
.input-label { display: block; margin-bottom: 6px; font-size: 11px; color: var(--muted); }
.composer-input { display: flex; align-items: center; gap: 12px; border: 1px solid var(--control-line); padding: 4px 7px 4px 0; border-radius: var(--radius); background: var(--bg); }
.composer-input:focus-within { border-color: var(--accent); }
.composer-input textarea { border: 0; background: transparent; min-height: 52px; font-size: 13px; }
.composer-input textarea:focus { outline-offset: -4px; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: var(--accent-ink); background: var(--text); border-color: var(--text); font-weight: 500; padding-inline: 17px; font-size: 12px; }
.primary:hover { color: var(--accent-ink); background: var(--accent-hover); border-color: var(--accent-hover); }
.primary .icon { width: 15px; height: 15px; }
.form-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 10px; color: var(--muted); margin-top: 7px; }
.character-counter { font-family: var(--sans); }
#form-message:not(:empty) { flex-basis: 100%; color: var(--text); font-size: 12px; }
/* Compact coin feed inspired by the supplied Axiom rows, using STRAY's tokens. */
.coin-studio { margin: 0 0 28px; padding: 22px 20px; border: 1px solid var(--emphasis-line); border-radius: var(--panel-radius); background: var(--surface); }
.coin-studio-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.studio-label { font: 10px/1.5 var(--sans); letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.coin-studio-heading h2 { font-size: 20px; letter-spacing: -.6px; }
.coin-studio-heading p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.coin-studio-controls { display: flex; align-items: center; gap: 12px; }
.coin-studio-controls select { font-size: 12px; }
.coin-grid { max-height: 292px; overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-type: y proximity; scrollbar-gutter: stable; border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); }
.coin-card { display: flex; align-items: center; min-width: 0; background: var(--surface); scroll-snap-align: start; }
.coin-card + .coin-card { border-top: 1px solid var(--line); }
.coin-card:nth-child(even) { background: var(--raised); }
.coin-card:hover, .coin-card:focus-within { background: var(--accent-soft); }
.coin-card-content { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.coin-stage { display: inline-flex; align-items: center; gap: 6px; font: 10px/1.5 var(--sans); color: var(--muted); }
.coin-stage .icon { width: 13px; height: 13px; }
.coin-stage[data-stage="live"] { color: var(--positive); }
.coin-stage[data-stage="ready"] { color: var(--positive); }
.coin-stage[data-stage="launching"] { color: var(--warning); }
.coin-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; min-width: 0; margin-top: 17px; }
.coin-title h3 { font-size: 22px; letter-spacing: -.6px; overflow-wrap: anywhere; }
.coin-ticker { font: 12px/1.5 var(--sans); color: var(--muted); overflow-wrap: anywhere; }
.coin-description { font-size: 13px; line-height: 1.6; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coin-preview-button { flex: 1; display: grid; grid-template-columns: 64px minmax(0, 1fr) 16px; align-items: center; gap: 16px; min-width: 0; min-height: 96px; padding: 14px 16px; background: transparent; border: 0; border-radius: 0; text-align: left; white-space: normal; font-weight: 400; }
.coin-preview-button:hover { background: transparent; }
.coin-preview-button:active:not(:disabled) { transform: none; }
.coin-preview-button:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.coin-row-arrow { width: 16px; height: 16px; color: var(--muted); }
.coin-preview-button:hover .coin-row-arrow { color: var(--accent); }
.coin-card .coin-title { margin: 0; flex-wrap: nowrap; gap: 10px; }
.coin-name { font-size: 16px; font-weight: 600; letter-spacing: -.25px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-card .coin-ticker { flex: 0 0 auto; max-width: 35%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-card .coin-description { display: block; margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.coin-row-details { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 14px; font: 10px/1.5 var(--sans); color: var(--muted); }
.coin-card .coin-art { width: 64px; height: 64px; min-height: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.coin-card .coin-art > .icon { width: 22px; height: 22px; }
.coin-row-market { flex: 0 0 230px; padding: 12px 16px; border-left: 1px solid var(--line); }
.coin-row-market .coin-market { margin: 0; gap: 3px 16px; }
.coin-row-market .coin-market-link { margin-top: 4px; }
.coin-market:empty { display: none; }
.coin-market { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; }
.coin-market > span:not(.small) { display: flex; flex-direction: column; gap: 2px; font-size: 9px; color: var(--muted); }
.coin-market b { font: 12px/1.5 var(--sans); color: var(--text); }
.coin-market .small { font-size: 10px; }
.coin-market-time { flex-basis: 100%; font: 9px/1.5 var(--sans); color: var(--muted); }
.coin-market-link { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.coin-market-link .icon { width: 13px; height: 13px; }
.coin-art { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; min-width: 0; min-height: 250px; padding: 18px; background: var(--raised); color: var(--muted); overflow: hidden; }
.coin-art > .icon { width: 30px; height: 30px; }
.coin-art .small { text-align: center; }
.coin-art-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coin-empty { display: flex; align-items: center; gap: 18px; min-height: 70px; padding: 8px 0; }
.coin-empty > .icon { width: 26px; height: 26px; color: var(--muted); }
.coin-empty-copy h3 { font-size: 14px; }
.empty-art { display: block; width: 80px; height: 80px; object-fit: contain; flex: 0 0 auto; }
.coin-empty .empty-art { mix-blend-mode: lighten; }
.coin-empty-copy p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.coin-preview { width: min(1000px, calc(100% - 32px)); padding: 0; }
.coin-preview-bar { position: sticky; top: 0; z-index: 2; background: var(--surface); display: flex; align-items: center; gap: 18px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.coin-preview-bar .icon-button { margin-left: auto; min-height: 36px; width: 36px; }
.coin-preview-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.coin-preview-identity { padding: 24px; border-right: 1px solid var(--line); background: var(--surface); }
.coin-preview-identity .coin-art { aspect-ratio: 1; min-height: 0; border-radius: var(--radius); }
.coin-lifecycle { list-style: none; margin: 24px 0 0; padding: 0; }
.coin-lifecycle li { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); }
.coin-lifecycle .icon { width: 15px; height: 15px; }
.coin-lifecycle li[data-reached="true"] { color: var(--text); }
.coin-lifecycle [aria-current="step"] .icon { color: var(--positive); }
.coin-preview-detail { padding: 28px 32px; min-width: 0; }
.coin-preview-detail .coin-title { margin-top: 12px; }
.coin-preview-detail h2 { font-size: 35px; line-height: 1.15; letter-spacing: -1.2px; overflow-wrap: anywhere; }
.coin-preview p { margin-top: 8px; }
.coin-preview-description { font-size: 15px; color: var(--muted); margin-bottom: 26px; }
.coin-preview-section { padding: 17px 0; border-top: 1px solid var(--line); }
.coin-preview-section h3 { font-size: 11px; color: var(--muted); font-weight: 500; }
.coin-preview-section p { font-size: 13px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.coin-preview-section:has(.coin-market-link) .coin-market-link { margin-top: 12px; }
.coin-mint { display: block; margin-top: 10px; overflow-wrap: anywhere; }
.collection { padding-top: 38px; }
.section-description { margin: -7px 0 18px; font-size: 12px; color: var(--muted); }
.collection-toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.search-field { position: relative; display: block; width: min(340px, 100%); }
.search-field > .icon { position: absolute; top: 13px; left: 13px; width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.search-field input { padding-left: 38px; font-size: 12px; }
.filter-controls { display: flex; gap: 8px; }
.filter-controls select, #thread-filter { font-size: 12px; }
.idea-list, .note-list { border-top: 1px solid var(--line); }
.record { border-bottom: 1px solid var(--line); }
.record summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 80px 16px; gap: 16px; align-items: center; padding: 16px 4px; min-height: 58px; }
.record summary::-webkit-details-marker { display: none; }
.record summary::after { content: "+"; justify-self: end; color: var(--muted); font-size: 18px; line-height: 1; }
.record[open] summary::after { content: "-"; }
.record summary:hover { background: var(--surface); }
.record-id { font: 11px/1.6 var(--sans); color: var(--muted); }
.record-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; font-size: 11px; line-height: 1.6; text-transform: capitalize; color: var(--muted); white-space: nowrap; }
.badge.active { color: var(--info); border-color: var(--info-line); background: var(--info-soft); }
.badge[data-status="waiting"], .badge[data-status="unreviewed"], .badge[data-status="suspicious"], .badge[data-status="sensitive"], .badge[data-status="harmful"], .badge[data-status="spam"] { color: var(--warning); border-color: var(--warning-line); background: var(--warning-soft); }
.badge[data-status="completed"], .badge[data-status="Saved"], .badge[data-status="concept"], .badge[data-status="accepted"] { color: var(--positive); border-color: var(--positive-line); background: var(--positive-soft); }
.badge[data-status="abandoned"], .badge[data-status="rejected"] { color: var(--danger); border-color: var(--danger-line); background: var(--danger-soft); }
.badge .icon { width: 12px; height: 12px; }
.suggestion-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.content-badge { text-transform: none; color: var(--text); }
.review-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.review-actions button { min-height: 36px; font-size: 12px; }
.record-date { font: 10px/1.6 var(--sans); color: var(--muted); justify-self: end; }
.record-body { max-width: 880px; padding: 0 24px 20px 78px; overflow-wrap: anywhere; font-size: 13px; }
.record-body p + p { margin-top: 10px; }
.record-body .reason { color: var(--muted); margin-top: 12px; }
.scores { display: flex; flex-wrap: wrap; gap: 12px; font: 11px/1.6 var(--sans); color: var(--muted); margin-top: 12px; }
.record-body a { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; max-width: 100%; }
.note summary { grid-template-columns: minmax(0, 1fr) auto 80px 16px; }
.idea summary { grid-template-columns: minmax(0, 1fr) auto 80px 16px; }
.note .record-body { padding-left: 4px; }
.investigation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 14px; align-items: start; align-content: start; max-height: min(520px, 60vh); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--control-line) transparent; padding-right: 6px; }
.investigation { align-self: start; border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); overflow: hidden; }
.investigation[data-current="true"] { border-color: var(--info-line); background: var(--raised); box-shadow: inset 3px 0 var(--info); }
.investigation .badge { text-transform: none; }
.investigation summary { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 18px; position: relative; }
.investigation summary::after { display: none; }
.investigation-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.investigation-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; min-width: 0; }
.investigation-title .icon { color: var(--accent); width: 17px; height: 17px; }
.investigation-title > span:last-child { overflow-wrap: anywhere; }
.investigation-question { color: var(--muted); font-size: 13px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.investigation-next { display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; background: var(--accent-soft); border-radius: var(--radius); font-size: 12px; }
.investigation-next > .icon { width: 14px; height: 14px; margin-top: 3px; color: var(--accent); }
.investigation-next b { display: block; font-size: 10px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.investigation-next span:last-child { overflow-wrap: anywhere; }
.investigation-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--muted); }
.investigation-expand { display: flex; align-items: center; gap: 5px; color: var(--text); }
.investigation-expand .icon { width: 12px; height: 12px; transition: transform .16s; }
.investigation-expand { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.investigation[open] .investigation-expand .icon { transform: rotate(180deg); }
.investigation .record-body { max-width: none; padding: 0 18px 18px; }
.investigation > .record-body { display: none; }
.investigation[open] > .record-body { display: block; }
.investigation-detail { padding-top: 12px; border-top: 1px solid var(--line); }
.investigation-detail b { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.investigation-list > .empty { grid-column: 1 / -1; }
.collection-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; }
.pagination { display: flex; align-items: center; gap: 14px; }
.pagination button { font-size: 11px; min-height: 34px; }
.pagination span { white-space: nowrap; }
.activity .pagination { gap: 6px; justify-content: space-between; padding-top: 12px; }
.activity .pagination button { padding-inline: 8px; }
.activity .pagination span { font-size: 10px; }
.collection-message:not(:empty) { margin-top: 10px; }
.empty { padding: 28px 4px; color: var(--muted); font-size: 13px; }
.empty-state { display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: var(--panel-radius); padding: 24px; }
.empty-state > .icon { width: 22px; height: 22px; margin-top: 2px; }
.empty-state b { display: block; color: var(--text); font-weight: 500; margin-bottom: 3px; }
.loading-state { padding: 20px 0; display: grid; gap: 14px; }
.skeleton { display: block; height: 40px; border-radius: var(--radius); background: var(--raised); }
.skeleton:last-of-type { width: 72%; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0 32px; border-top: 1px solid var(--line); margin-top: 24px; color: var(--muted); font-size: 10px; }
footer > div { display: flex; flex-direction: column; gap: 6px; }
footer > div:last-child { text-align: right; }
.footer-brand { font-family: var(--sans); color: var(--text); letter-spacing: 1px; }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--panel-radius); width: min(540px, calc(100% - 32px)); padding: 24px; max-height: calc(100dvh - 48px); overflow-y: auto; }
dialog::backdrop { background: rgb(10 10 10 / 80%); }
.dialog-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
dialog p, dialog ol { margin-top: 16px; overflow-wrap: anywhere; }
dialog li + li { margin-top: 8px; }
dialog code { font-family: var(--mono); font-size: 12px; }

/* A compact receipt above research; Activity keeps its full workspace column. */
.coin-creation { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:20px; min-height:56px; padding:8px 16px; margin-bottom:20px; border-block:1px solid var(--line); }
.coin-creation-identity { display:flex; align-items:baseline; gap:10px; min-width:0; }
#coin-creation-name { font-size:14px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#coin-creation-ticker, #coin-creation-stage { white-space:nowrap; font-size:11px; }
#coin-creation-details { font-size:11px; min-height:44px; padding:8px 0; }
#creation-preview { width:min(600px,calc(100% - 32px)); }
#creation-preview-title { font-size:22px; line-height:1.2; overflow-wrap:anywhere; }
#creation-preview-content > p { font-size:13px; line-height:1.65; white-space:pre-line; }
#creation-preview-content details { margin-top:20px; font-size:12px; }
#creation-preview-content summary { cursor:pointer; color:var(--muted); }
#creation-preview-content blockquote { margin:12px 0; padding-left:14px; border-left:1px solid var(--control-line); white-space:pre-line; overflow-wrap:anywhere; }
#creation-preview-content a { text-decoration:underline; text-underline-offset:3px; }

.collection-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 32px; }
.collection-pair > .collection { display: grid; grid-template-rows: auto minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--panel-radius); padding: 22px; min-width: 0; background: var(--bg); }
.collection-header { min-width: 0; }
.collection-body { display: flex; flex-direction: column; min-height: 0; }
.collection-body .note-list { flex: 1; min-height: 0; overflow-y: auto; overflow-anchor: none; overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--control-line) transparent; }
.collection-body .collection-footer, .collection-body .collection-message { flex-shrink: 0; }
@media (min-width: 768px) {
  .collection-pair:has(#note-pagination:not([hidden])) > .collection { grid-template-rows: auto minmax(0, min(520px, 60vh)); }
  .collection-pair:has(#note-pagination:not([hidden])) .investigation-list { height: 100%; }
}
.collection-pair .section-heading h2 { font-size: 19px; letter-spacing: -.4px; font-weight: 600; }
.collection-pair .investigation-list { grid-template-columns: minmax(0, 1fr); }
.collection-pair .search-field { width: 100%; }
.collection-pair .note .record-date { display: none; }
.collection-pair .note summary { grid-template-columns: minmax(0, 1fr) auto 16px; }
#suggestions { margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--bg); }
.empty-state { border: 0; background: transparent; padding: 22px 4px; align-items: center; }
.empty-state > .icon { width: 42px; height: 42px; }
.empty-state > .icon[data-icon="bookmark"], .empty-state > .icon[data-icon="git-branch"] { background: none; mask: none; -webkit-mask: none; background-image: url('/static/stray/etched/discovery-signal-96.webp'); background-size: contain; background-position: center; background-repeat: no-repeat; }
.footer-scene { position: relative; width: calc(100% + 64px); margin: 24px -32px 0; overflow: hidden; }
.footer-landscape { display: block; width: 100%; height: 300px; object-fit: cover; object-position: center; }
.footer-path { position: absolute; top: 45%; left: 52px; color: var(--muted); font-size: 8px; line-height: 1.9; letter-spacing: 2.2px; text-transform: uppercase; }
footer { margin-top: 0; padding: 24px 0 32px; align-items: center; }
.footer-links { display: flex; flex-direction: row; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-brand { letter-spacing: 2px; font-size: 8px; color: var(--muted); }
/* The status strip is always separate from real browser pixels. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter .5s both; }
  .hero-art { animation: enter .65s .08s both; }
  .loading-state .skeleton { animation: loading 1.4s ease-in-out infinite; }
  .tool-capability[data-flash="true"]::before { animation: tool-flash 1s ease-out both; }
}
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loading { 50% { opacity: .35; } }
@keyframes tool-flash { from { opacity: .2; } to { opacity: 0; } }
@media (max-width: 1279px) {
  .brand-tagline { display: none; }
  .header-inner { flex-wrap: wrap; gap: 0 20px; }
  .wordmark, .header-right { height: 64px; }
  .header-right { margin-left: auto; }
  nav { order: 3; flex-basis: 100%; margin: 0; padding-bottom: 8px; gap: 0; }
  .nav-link { flex: 1; }
  .workspace { grid-template-columns: minmax(0, 1fr) 294px; }
  .hero h1 { font-size: clamp(42px, 4.9vw, 62px); }
  .hero { min-height: 410px; }
  .tool-capability { flex-direction: column; min-height: 54px; gap: 5px; }
  .coin-row-market { flex-basis: 210px; }
}
@media (max-width: 1023px) {
  .shell, .header-inner { width: calc(100% - 40px); }
  .header-inner { flex-wrap: wrap; gap: 0 12px; }
  .header-right { gap: 6px; }
  .wordmark, .header-right { height: 64px; }
  .header-right { margin-left: auto; }
  nav { order: 3; flex-basis: 100%; margin: 0; padding-bottom: 8px; gap: 0; }
  .nav-link { flex: 1; }
  .agent-status { display: none; }
  .header-emblem { width: 30px; height: 30px; }
  .nav-link { padding-inline: 8px; font-size: 11px; }
  .hero { min-height: 380px; padding-inline: 8px; }
  .hero-copy { width: 100%; min-width: 0; }
  .hero h1 { font-size: clamp(42px, 5.5vw, 54px); letter-spacing: -2.5px; }
  .hero p { font-size: 13px; }
  .hero-art { position: relative; inset: auto; height: 270px; margin-top: 16px; }
  .hero-art::after { display: none; }
  .hero-cat img { object-fit: cover; object-position: 72% center; }
  .hero-annotation { top: auto; bottom: 235px; left: 8px; right: auto; }
  .hero-path { display: none; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .activity { height: 560px; contain: size; }
  .activity .event-list { min-height: 150px; }
  .activity .log-toolbar { max-width: 400px; }
  .composer { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .composer-intro p { max-width: none; }
  .coin-preview-layout { grid-template-columns: 280px minmax(0, 1fr); }
  .coin-preview-identity { padding: 20px; }
  .collection-pair { grid-template-columns: minmax(0, 1fr); }
  .footer-scene { width: calc(100% + 40px); margin-inline: -20px; }
}
@media (max-width: 767px) {
  .shell, .header-inner { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; gap: 0 12px; }
  .wordmark, .header-right { height: 60px; }
  .header-right { margin-left: auto; }
  .wordmark > .brand-wordmark { font-size: 25px; }
  nav { order: 3; flex-basis: 100%; margin: 0; padding-bottom: 8px; gap: 0; }
  .nav-link { flex: 1; min-height: 40px; padding: 8px 5px; font-size: 11px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 32px 4px 0; gap: 0; min-height: 0; }
  .hero-copy { width: 100%; min-width: 0; }
  .hero h1 { font-size: clamp(42px, 10.2vw, 60px); letter-spacing: -2.4px; }
  .hero .eyebrow { margin-bottom: 18px; }
  .hero p { margin-top: 16px; max-width: 33ch; }
  .hero-actions { margin-top: 20px; gap: 10px; }
  .hero-actions a { padding-inline: 14px; }
  .hero-side { margin-top: 12px; }
  .hero-meta { gap: 12px; flex-wrap: wrap; }
  .hero-art { position: relative; inset: auto; height: 230px; width: 100%; margin-top: 12px; }
  .hero-cat img { object-fit: cover; object-position: 72% center; }
  .hero-annotation { top: auto; bottom: 194px; left: 8px; right: auto; font-size: 7px; }
  .research-metrics { gap: 12px 18px; padding: 12px 0 16px; }
  .research-metrics > div { font-size: 9px; gap: 6px; }
  .research-metrics > div .icon { display: none; }
  .section-heading { gap: 10px; }
  .section-heading h2 { font-size: 16px; }
  .browser > .section-heading { padding: 12px; }
  .browser > .section-heading h2 { font-size: 19px; letter-spacing: -.4px; }
  .activity > .section-heading h2 { font-size: 18px; letter-spacing: -.3px; }
  .collection-pair .section-heading { flex-wrap: wrap; row-gap: 12px; }
  .collection-pair .section-heading h2 { font-size: 18px; }
  .browser > .section-heading h2 > .icon { display: none; }
  .frame-indicator { gap: 5px; }
  .frame-indicator .small { font-size: 9px; }
  .tool-monitor { padding-inline: 12px; }
  .tool-rail { grid-template-columns: repeat(7, 70px); }
  .browser-chrome { min-height: 62px; padding-inline: 12px; gap: 9px; }
  .page-kind { font-size: 9px; padding-inline: 5px; }
  .browser-toolbar { padding-inline: 12px; }
  .browser-phase { font-size: 10px; gap: 5px; }
  .viewer-controls { gap: 4px; }
  .viewport { aspect-ratio: 8 / 6; }
  #frame-placeholder { padding: 12px; text-align: center; font-size: 12px; }
  #frame-placeholder p { font-size: 10px; }
  .browser-footer { padding-inline: 12px; }
  .research-direction, .social-feed-status { padding-inline: 12px; }
  .research-direction h3 { font-size: 13px; }
  .research-direction p { font-size: 12px; }
  .activity { padding: 16px; }
  .composer { padding: 20px 16px; }
  .composer-input { flex-wrap: wrap; padding: 4px; }
  .composer-input .primary { margin: 0 6px 6px auto; min-height: 40px; }
  .coin-studio-heading { flex-wrap: wrap; gap: 8px; }
  .coin-studio-controls { gap: 10px; }
  .coin-studio { padding: 16px; }
  .coin-studio-heading h2 { font-size: 18px; }
  .coin-card { flex-wrap: wrap; }
  .coin-preview-button { flex-basis: 100%; padding: 12px; grid-template-columns: 54px minmax(0, 1fr) 14px; gap: 12px; min-height: 84px; }
  .coin-card .coin-art { width: 54px; height: 54px; }
  .coin-card .coin-name { font-size: 14px; }
  .coin-card .coin-description { font-size: 11px; }
  .coin-row-market { flex-basis: 100%; border-left: 0; border-top: 1px solid var(--line); padding: 10px 14px 12px 78px; }
  .coin-row-market .coin-market { flex-direction: row; }
  .coin-preview-layout { grid-template-columns: minmax(0, 1fr); }
  .coin-preview-identity { border-right: 0; border-bottom: 1px solid var(--line); }
  .coin-preview-identity .coin-art { width: min(100%, 260px); margin: 0 auto; }
  .coin-lifecycle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .coin-preview-detail { padding: 24px 20px; }
  .coin-preview-detail h2 { font-size: 28px; }
  .coin-empty { padding: 8px 0; gap: 12px; }
  .coin-empty h3 { font-size: 14px; }
  .coin-empty-copy p { font-size: 11px; }
  .collection { padding-top: 30px; }
  .collection-pair > .collection { padding: 16px; }
  #suggestions { padding: 16px; }
  .heading-title { flex-wrap: wrap; gap: 4px 10px; }
  .collection-toolbar { flex-direction: column; }
  .search-field { width: 100%; }
  .filter-controls select { flex: 1; min-width: 0; }
  .record summary { gap: 9px; }
  .idea summary { grid-template-columns: minmax(0, 1fr) 14px; }
  .idea .suggestion-badges { grid-row: 2; grid-column: 1; justify-content: flex-start; }
  .idea summary::after { grid-row: 1; grid-column: 2; }
  .record-date { display: none; }
  .record-body { padding-left: 4px; padding-right: 4px; }
  .note summary { grid-template-columns: minmax(0, 1fr) auto 14px; }
  .investigation-list { grid-template-columns: minmax(0, 1fr); }
  .investigation .record-date { display: block; }
  .investigation summary { padding: 16px; }
  .investigation .record-body { padding-inline: 16px; }
  .threads > .section-heading { flex-wrap: wrap; }
  #thread-filter { max-width: 100%; }
  .collection-footer { flex-wrap: wrap; gap: 8px; }
  .pagination { margin-left: auto; gap: 8px; }
  button, select { min-height: 44px; }
  .icon-button { min-height: 40px; width: 40px; }
  .footer-scene { width: calc(100% + 32px); margin: 20px -16px 0; }
  .footer-landscape { height: 210px; object-position: 72% center; }
  .footer-path { top: 22px; left: 24px; font-size: 7px; }
  footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  footer > div:last-child { text-align: left; }
  .footer-links { gap: 16px; }
  .coin-creation { gap: 12px; padding-inline: 12px; margin-bottom: 16px; }
  #coin-creation-ticker { display: none; }
}
@media (max-width: 400px) {
  .header-emblem { width: 34px; height: 34px; }
  #power-label { font-size: 0; }
  #power-label::after { content: "Off"; font-size: 11px; }
  .power-switch[aria-checked="true"] #power-label::after { content: "On"; }
  .power-switch { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Public launch chapters share the studio's silver, type and orbital geometry. */
.header-contract { width: min(1400px, calc(100% - 64px)); margin: 0 auto; display: flex; align-items: center; gap: 18px; min-height: 44px; color: var(--muted); font-size: 10px; border-bottom: 1px solid var(--line); }
.contract-label { flex: 0 0 auto; font: 9px var(--sans); letter-spacing: 1.4px; text-transform: uppercase; }
.contract-link { display: inline-flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; color: var(--silver, var(--text)); }
.contract-link code { min-width: 0; overflow-wrap: anywhere; font: 11px/1.6 var(--mono); }
.contract-link .icon { width: 14px; height: 14px; }
.coin-contract { width: fit-content; max-width: 100%; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.coin-preview-detail > .coin-contract { margin-top: 14px; }
.launch-timeline { margin: 0 0 28px; border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); }
.timeline-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 22px; background: linear-gradient(90deg, var(--bg) 42%, rgb(0 0 0 / .7)), var(--stray-orbits) right center / auto 250px no-repeat; }
.timeline-heading .eyebrow { font-size: 8px; margin-bottom: 9px; }
.timeline-heading h2 { font-size: 21px; font-weight: 500; letter-spacing: -.6px; }
.timeline-heading > p { font-size: 11px; color: var(--muted); line-height: 1.7; }
.timeline-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.timeline-steps > li { position: relative; min-width: 0; padding: 22px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.timeline-steps > li:last-child { border-right: 0; }
.timeline-number { display: inline-block; font: 11px var(--mono); color: var(--muted); }
.milestone-state { float: right; padding: 3px 7px; border-radius: var(--radius); background: var(--raised); font-size: 11px; line-height: 1.5; color: var(--muted); }
.timeline-steps h3 { margin: 22px 0 9px; font-size: 15px; line-height: 1.45; }
.timeline-steps p { font-size: 12px; line-height: 1.75; color: var(--muted); }
.timeline-steps > li[data-state="next"]::before, .timeline-steps > li[data-state="reached"]::before { content: ''; position: absolute; inset: -1px 0 auto; height: 1px; background: var(--silver, var(--text)); }
.timeline-steps > li[data-state="reached"] .milestone-state { color: var(--positive); background: var(--positive-soft); }
.timeline-steps > li[data-state="next"] .milestone-state, .timeline-steps > li[data-state="locked"] .milestone-state { color: var(--warning); background: var(--warning-soft); }
#milestone-stray[data-state="reached"] .milestone-state { color: var(--info); background: var(--info-soft); }
.timeline-idea-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; font-size: 12px; color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.timeline-idea-link .icon { width: 12px; height: 12px; }
.timeline-note { border-top: 1px solid var(--line); padding: 12px 22px; font-size: 10px; color: var(--muted); }
.idea-fields { margin: 0; border: 0; padding: 0; min-width: 0; }
.idea-lock { display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgb(0 0 0 / .75); }
.idea-lock > .icon { width: 22px; height: 22px; color: var(--warning); }
.idea-lock > div { min-width: 0; }
.idea-lock strong { font-size: 13px; font-weight: 500; }
.idea-lock p { margin-top: 6px; font-size: 11px; color: var(--muted); line-height: 1.65; }
.idea-lock > a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 44px; margin-left: auto; font-size: 12px; white-space: nowrap; color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.idea-lock > a .icon { width: 13px; height: 13px; }
@media (max-width: 1023px) {
  .header-contract { width: calc(100% - 40px); }
  .timeline-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-steps > li:nth-child(2n) { border-right: 0; }
  .idea-lock { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .header-contract { width: calc(100% - 32px); gap: 12px; }
  .header-contract .contract-label { font-size: 8px; }
  .header-contract .contract-link code { font-size: 10px; }
  .timeline-heading { align-items: start; flex-direction: column; gap: 12px; padding: 18px 16px; }
  .timeline-heading h2 { font-size: 20px; }
  .timeline-heading > p br { display: none; }
  .timeline-steps > li { padding: 18px 16px; }
  .timeline-steps h3 { font-size: 14px; }
  .milestone-state { float: none; display: block; margin-top: 8px; }
  .timeline-steps h3 { margin-top: 18px; }
  .timeline-note { padding-inline: 16px; }
  .idea-lock { gap: 12px; padding: 16px; }
  .idea-lock > div { flex: 1; }
  .idea-lock > a { margin-left: 34px; }
}
