/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-400-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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-500-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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-600-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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/inter-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/inter-700-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;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-400-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;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/jetbrains-mono-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/jetbrains-mono-500-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;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-600-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;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/jetbrains-mono-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/jetbrains-mono-700-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;
}

:root {
  --bg: #0b0d0e;
  --bg-elev: #121517;
  --bg-elev-2: #181c1f;
  --border: #23282c;
  --border-strong: #2e3438;
  --text: #e7eaec;
  --text-dim: #9aa3a8;
  --text-faint: #5f6a70;
  --accent: #6fd1c0;
  --accent-dim: rgba(111, 209, 192, 0.12);
  --amber: #d4a35a;
  --red-dim: #c87b7b;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }
a:hover { border-bottom-style: solid; }

header.site {
  position: sticky; top: 0; z-index: 90;
  background: rgba(11,13,14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px;
}
.brand { font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; justify-self: start; }
.brand a { color: inherit; border-bottom: 0; }
.positioning { font-family: var(--mono); color: var(--text-dim); font-size: 13px; font-weight: 600; text-align: center; }
.nav-actions { display: flex; gap: 12px; align-items: center; justify-self: end; }
.btn {
  font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: 6px;
  background: transparent; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; line-height: 1;
  transition: transform 120ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { border-color: var(--accent); color: var(--accent); }
.btn.primary:hover {
  background: var(--accent-dim); border-color: var(--accent);
  box-shadow: 0 6px 18px -10px rgba(111,209,192,0.6);
}
.btn.primary:active { transform: translateY(0); }
.icon-link { color: var(--text-dim); width: 18px; height: 18px; display: inline-flex; align-items: center; border-bottom: 0; }
.icon-link:hover { color: var(--text); }

main { max-width: 1180px; margin: 0 auto; padding: 64px 32px 96px; }
section { margin-bottom: 96px; }
.label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.label::before { content: ''; width: 24px; height: 1px; background: var(--text-faint); }
.label.live { color: var(--amber); font-weight: 700; }
.label.live::before { background: var(--amber); }
.label.live::after {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); margin-left: 4px;
  box-shadow: 0 0 8px rgba(212,163,90,0.55);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 44px; line-height: 1.15; letter-spacing: -0.02em;
  font-weight: 600; margin: 0 0 24px;
  max-width: 880px;
}
.hero h1 .accent { color: var(--accent); }
.hero .lede {
  font-size: 18px; color: var(--text-dim); max-width: 720px; margin: 0;
}
.hero .meta {
  margin-top: 32px; font-family: var(--mono); font-size: 13px; color: var(--text-faint);
  display: flex; gap: 24px; flex-wrap: wrap;
}
.hero .meta span::before { content: '› '; color: var(--accent); }

.console {
  margin-top: 48px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}
.console-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg-elev-2); font-family: var(--mono); font-size: 12px;
}
.traffic { display: flex; gap: 6px; }
.traffic span { width: 10px; height: 10px; border-radius: 50%; background: #2e3438; }
.console-bar .path { color: var(--text-dim); }
.badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 4px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--amber); background: rgba(212,163,90,0.18);
  border: 1px solid rgba(212,163,90,0.5);
  box-shadow: 0 0 18px rgba(212,163,90,0.18);
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 8px rgba(212,163,90,0.8);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.console-grid { display: grid; grid-template-columns: 1.4fr 1fr; min-height: 540px; }
.pane { padding: 20px; }
.pane.left { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.pane.right { display: grid; grid-template-rows: 1fr 1fr; }
.pane.right > div { padding: 18px 20px; }
.pane.right > div + div { border-top: 1px solid var(--border); }

.pane-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--text-faint); text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between;
}
.pane-title .live { color: var(--accent); }

.chat { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.msg { font-size: 13.5px; line-height: 1.55; }
.msg .who { font-family: var(--mono); font-size: 11px; color: var(--text-faint); margin-bottom: 4px; letter-spacing: 0.05em; }
.msg.user .bubble { background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: var(--text-dim); font-family: var(--mono); font-size: 12px; }
.msg.agent .bubble { color: var(--text); }
.msg.agent .bubble strong { color: var(--accent); font-weight: 500; }
.msg.agent .bubble .gap { color: var(--red-dim); }

.composer {
  margin-top: 18px; padding: 12px 14px;
  background: var(--bg-elev-2); border: 1px solid var(--border-strong);
  border-radius: 8px; display: flex; align-items: center; gap: 12px;
  opacity: 0.55; cursor: not-allowed;
}
.composer .lock { color: var(--text-faint); }
.composer input {
  flex: 1; background: transparent; border: 0; color: var(--text-dim);
  font-family: var(--mono); font-size: 12.5px; outline: none;
}
.composer .send { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.composer-hint { font-family: var(--mono); font-size: 11px; color: var(--text-faint); margin-top: 8px; }
.composer-hint a { font-family: var(--mono); }

.tool { font-family: var(--mono); font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.tool .step { color: var(--accent); }
.tool .arg { color: var(--text); }
.tool .ok { color: #7fb37f; }

.doc {
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  padding: 14px; max-height: 200px; overflow: hidden; position: relative;
}
.doc h4 { font-family: var(--sans); margin: 0 0 8px; font-size: 13px; color: var(--text); font-weight: 600; }
.doc ul { margin: 8px 0; padding-left: 18px; }
.doc li { margin-bottom: 4px; }
.doc::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
  background: linear-gradient(transparent, var(--bg-elev));
  pointer-events: none;
}
.view-full { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--text-faint); }

.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
@media (min-width: 905px) {
  .projects::after { content: ''; background: var(--bg-elev); }
}
.project { background: var(--bg-elev); padding: 22px 26px; }
.project:hover { background: var(--bg-elev-2); }
.project h3 { margin: 0 0 6px; font-family: var(--mono); font-size: 15px; color: var(--text); font-weight: 600; }
.project .pitch { color: var(--text-dim); font-size: 14px; margin: 0 0 10px; }
.project .summary { color: var(--text-dim); font-size: 13.5px; margin: 0; line-height: 1.55; }
.project .stack { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.project .stack span {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-faint);
  border: 1px solid var(--border-strong); padding: 2px 8px; border-radius: 3px;
}

.bg-prose { max-width: 720px; }
.bg-prose p { color: var(--text-dim); font-size: 15px; margin: 0 0 16px; }
.bg-prose strong { color: var(--text); font-weight: 500; }
.bg-prose .pill {
  font-family: var(--mono); font-size: 11px; padding: 1px 6px;
  background: var(--accent-dim); color: var(--accent); border-radius: 3px;
}
.bg-prose .cta { margin-top: 56px; text-align: center; }

.notes-list { border-top: 1px solid var(--border); }
.note-row {
  border-bottom: 1px solid var(--border); padding: 16px 4px;
  display: grid; grid-template-columns: 100px 1fr auto; gap: 24px; align-items: baseline;
}
a.note-row { color: inherit; border-bottom: 1px solid var(--border); }
a.note-row:hover { background: var(--bg-elev); }
a.note-row:hover .title { color: var(--text); }
.note-row .date { font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.note-row .title { color: var(--text-dim); font-size: 14px; }
.note-row .status { font-family: var(--mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.08em; }
.note-row.draft .status { color: var(--amber); }

footer.site {
  border-top: 1px solid var(--border);
  padding: 32px; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
}
footer .links { display: flex; gap: 18px; }
footer .links a { color: var(--text-dim); border-bottom: 0; }
footer .meta-row { display: flex; gap: 18px; }

.post { max-width: 720px; margin: 0 auto; }
.post .post-meta {
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
  margin-bottom: 16px; display: flex; gap: 16px;
}
.post .post-meta a { color: var(--text-faint); border-bottom: 0; }
.post .post-meta a:hover { color: var(--accent); }
.post h1 {
  font-size: 36px; line-height: 1.2; letter-spacing: -0.02em;
  font-weight: 600; margin: 0 0 28px; color: var(--text);
}
.post h2 {
  font-family: var(--sans); font-size: 20px; font-weight: 600;
  margin: 48px 0 16px; color: var(--text); letter-spacing: -0.01em;
}
.post .lede { font-size: 18px; color: var(--text-dim); margin: 0 0 24px; line-height: 1.55; }
.post p { color: var(--text-dim); font-size: 15.5px; margin: 0 0 20px; line-height: 1.7; }
.post strong { color: var(--text); font-weight: 500; }
.post em { color: var(--text); font-style: italic; }
.post ul { color: var(--text-dim); font-size: 15.5px; line-height: 1.7; padding-left: 22px; margin: 0 0 24px; }
.post li { margin-bottom: 8px; }
.post hr {
  border: 0; border-top: 1px solid var(--border);
  margin: 48px 0;
}

.agent-lede {
  font-size: 16px; color: var(--text-dim); max-width: 720px;
  margin: 0 0 8px; line-height: 1.55;
}
.agent-lede em { color: var(--text); font-style: italic; }

/* === scope-agent UI === */

.console-grid { grid-template-columns: 1.4fr 1fr; }
.pane.right { display: block; }
.pane.right > div { padding: 0; }

.composer.enabled { opacity: 1; cursor: text; align-items: center; }
.composer.enabled textarea {
  flex: 1; background: transparent; border: 0; color: var(--text);
  font-family: var(--mono); font-size: 12.5px; outline: none;
  resize: vertical; line-height: 1.5; min-height: 60px;
}
.composer.enabled textarea::placeholder { color: var(--text-faint); }
.composer.enabled button {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  padding: 6px 12px; border: 1px solid var(--accent);
  background: transparent; color: var(--accent);
  border-radius: 5px; cursor: pointer; flex-shrink: 0;
}
.composer.enabled button:hover { background: var(--accent-dim); }
.composer.enabled button:disabled { opacity: 0.4; cursor: not-allowed; }

#scope-chat .bubble.hint { color: var(--text-dim); font-style: italic; }
#scope-chat .muted { color: var(--text-faint); font-style: italic; }

#scope-trace.trace, #scope-trace-sheet-content.trace { min-height: 80px; }
.tool.pending, .tool.pending .step { color: var(--text-faint); }
.tool.err, .tool.err .step { color: var(--red-dim); }
.tool.muted { color: var(--text-faint); font-style: italic; }
.tool .ok { color: #7fb37f; }
.tool .err { color: var(--red-dim); }

.scope-addons { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.scope-plan {
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  padding: 16px 18px;
}
.scope-plan h4 {
  font-family: var(--sans); font-size: 14px; margin: 0 0 12px;
  color: var(--text); font-weight: 600;
}
.scope-plan h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint);
  margin: 16px 0 6px;
}
.scope-plan .plan-headline {
  font-family: var(--sans); color: var(--text); font-size: 14px;
  margin: 0 0 10px;
}
.scope-plan .plan-risk {
  font-size: 13px; color: var(--text-dim); margin: 0 0 8px;
}
.scope-plan .plan-risk strong { color: var(--amber); font-weight: 500; }
.scope-plan ul {
  margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 13px;
}
.scope-plan li { margin-bottom: 6px; line-height: 1.45; }

.scope-cta-wrap { margin-top: 4px; }
.scope-cta {
  display: inline-block; padding: 10px 16px;
  background: var(--accent); color: var(--bg);
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  border: 0; border-radius: 6px;
  text-decoration: none; border-bottom: 0;
}
.scope-cta:hover { background: #8ddccd; border-bottom: 0; }

.scope-no-plan {
  font-size: 13px; color: var(--text-dim);
  padding: 12px 14px; border-left: 2px solid var(--amber);
  background: rgba(212,163,90,0.06);
}

.scope-referral {
  font-size: 13px; color: var(--text-dim);
  padding: 12px 14px; border-left: 2px solid var(--text-faint);
  background: var(--bg);
}

.scope-reset {
  align-self: flex-start;
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
  background: transparent; border: 1px solid var(--border-strong);
  padding: 6px 12px; border-radius: 5px; cursor: pointer;
}
.scope-reset:hover { color: var(--text); border-color: var(--text-dim); }

.evidence { font-family: var(--mono); font-size: 12px; }
.evidence-muted { color: var(--text-faint); font-style: italic; font-size: 12px; }
.evidence-verdict {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 12px;
}
.evidence-verdict.fit { background: rgba(127,179,127,0.15); color: #7fb37f; }
.evidence-verdict.borderline { background: rgba(212,163,90,0.15); color: var(--amber); }
.evidence-verdict.not_a_fit { background: rgba(220,107,107,0.12); color: var(--red-dim); }
.evidence-section { margin-top: 14px; }
.evidence .label-sm {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px;
}
.evidence-overlap-item {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 12px; margin-bottom: 6px;
}
.evidence-overlap-item .project { color: var(--accent); font-weight: 500; flex-shrink: 0; font-size: 11px; }
.evidence-overlap-item .claim { color: var(--text-dim); }
.evidence-gap-item {
  font-size: 12px; margin-bottom: 5px; color: var(--text-dim);
  padding-left: 14px; position: relative;
}
.evidence-gap-item::before { content: '·'; position: absolute; left: 4px; color: var(--red-dim); }
.sheet-section-title { margin-top: 24px; }

#scope-trace-toggle {
  display: none;
  margin-top: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  background: var(--bg-elev-2); border: 1px solid var(--border-strong);
  padding: 8px 14px; border-radius: 6px; cursor: pointer;
  align-items: center; gap: 8px;
  align-self: flex-start;
}
#scope-trace-sheet {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  max-height: 80vh; overflow-y: auto;
  background: var(--bg-elev); border-top: 1px solid var(--border-strong);
  border-radius: 12px 12px 0 0;
  transform: translateY(100%); transition: transform 240ms ease;
  z-index: 100; padding: 20px;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
}
.sheet-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
#scope-trace-sheet-close {
  background: transparent; border: 0; color: var(--text-dim);
  font-size: 18px; cursor: pointer; padding: 4px 8px;
}
.sheet-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 99;
}

@media (max-width: 720px) {
  .console-grid { grid-template-columns: 1fr; min-height: auto; }
  .pane.left { border-right: 0; }
  .pane.right { display: none; }
  #scope-trace-toggle { display: inline-flex; }
  #scope-trace-sheet { display: block; }
  body.sheet-open #scope-trace-sheet { transform: translateY(0); }
  body.sheet-open { overflow: hidden; position: fixed; width: 100%; }
  body.sheet-open .sheet-overlay { display: block; }
  main { padding: 32px 16px 64px; }
  .console { margin-top: 32px; }
  .hero h1 { font-size: 32px; }
  .composer.enabled { flex-wrap: wrap; }
  .composer.enabled textarea { width: 100%; font-size: 14px; }
  .composer.enabled button { width: 100%; padding: 10px; }
  header.site { grid-template-columns: 1fr auto; padding: 14px 16px; gap: 16px; }
  .positioning { display: none; }
}
