:root {
  color-scheme: dark;
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #0a0a0a;
  --secondary: #171717;
  --muted: #a3a3a3;
  --border: #262626;
  --input: #404040;
  --accent: #fafafa;
  --radius: 8px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid #737373; outline-offset: 3px; }
[hidden] { display: none !important; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.app { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; padding: 24px 12px 16px; border-right: 1px solid var(--border); background: #0f0f0f; display: flex; flex-direction: column; }
.wordmark { font-size: 14px; font-weight: 600; padding: 0 12px; margin-bottom: 28px; }
nav { display: flex; flex-direction: column; gap: 4px; }
nav a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 8px 12px; color: var(--muted); border-radius: 6px; font-size: 13px; }
nav a:hover { color: var(--foreground); background: var(--secondary); }
nav a.active { color: var(--foreground); background: #262626; font-weight: 500; }
nav i { margin-left: auto; font-style: normal; font-size: 11px; line-height: 18px; color: #d4d4d4; }
.sidebar-bottom { margin-top: auto; padding: 24px 12px 0; display: flex; flex-direction: column; gap: 12px; }
.engine { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #d4d4d4; flex-shrink: 0; }
.dot.off { background: transparent; border: 1px solid var(--muted); }
.text-button { color: var(--muted); background: transparent; border: 0; padding: 4px 0; text-align: left; font-size: 12px; }
.text-button:hover { color: var(--foreground); }
.main-shell { width: calc(100% - 232px); margin-left: 232px; }
.topbar { height: 57px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; padding: 0 32px; font-size: 12px; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.icon-button { width: 30px; height: 30px; padding: 6px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--foreground); }
.icon-button:hover { background: var(--secondary); }
.mobile-brand, .mobile-only { display: none; }
main { max-width: 1440px; margin: 0 auto; padding: 32px; min-height: calc(100vh - 57px); }
.page-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.page-intro h1 { font-size: 24px; line-height: 32px; letter-spacing: -.5px; font-weight: 600; margin: 0; }
.date-pill { font-size: 12px; color: var(--muted); white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0 32px; }
.stat { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.stat-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: #d4d4d4; }
.stat-value { font-size: 28px; letter-spacing: -.8px; line-height: 36px; font-weight: 600; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.stat-value.small { font-size: 28px; }
.stat-note { color: var(--muted); font-size: 11px; line-height: 1.6; }
.accent { color: var(--foreground); }
.subtle { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 16px; }
.section-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; }
.section-head a { font-size: 12px; color: var(--muted); }
.section-head a:hover { color: var(--foreground); }
.count { min-width: 20px; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 400; color: var(--muted); background: var(--secondary); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); gap: 24px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.report-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--card); transition: border-color .15s, background .15s; }
.report-card:hover { border-color: #525252; background: #111111; }
.card-top { display: flex; align-items: center; gap: 7px; min-height: 20px; margin-bottom: 12px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; white-space: nowrap; border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; font-size: 10px; font-weight: 500; line-height: 16px; color: #d4d4d4; }
.tag.mint { color: var(--foreground); background: var(--secondary); }
.tag.amber, .tag.rose { border-style: dashed; color: #d4d4d4; }
.card-arrow { margin-left: auto; color: var(--muted); font-size: 16px; }
.report-card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: -.15px; overflow-wrap: anywhere; }
.report-card p { font-size: 12px; line-height: 1.75; color: var(--muted); margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.model { display: inline-flex; align-items: center; }
.block { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.queue-item { display: block; padding: 18px; border-bottom: 1px solid var(--border); }
.queue-item:last-child, .experiment-mini:last-child { border-bottom: 0; }
.queue-item:hover, .experiment-mini:hover { background: var(--secondary); }
.queue-item h3 { font-size: 13px; line-height: 1.6; font-weight: 500; margin: 12px 0; }
.queue-item .card-meta { padding-top: 0; border: 0; }
.queue-empty { padding: 24px 18px; }
.queue-empty h3 { margin: 0 0 8px; font-size: 13px; font-weight: 500; }
.queue-empty p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.right-column > section + section { margin-top: 24px; }
.experiment-mini { display: block; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.mini-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.mini-top strong { font-size: 13px; font-weight: 500; }
.experiment-mini p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.note { padding: 0; margin: 14px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0; }
.search { width: 248px; max-width: 100%; height: 36px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--foreground); font-size: 12px; }
.search::placeholder { color: #737373; }
.filters { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 7px; background: var(--secondary); }
.filter { border: 0; border-radius: 4px; background: transparent; color: var(--muted); padding: 6px 10px; font-size: 12px; line-height: 20px; }
.filter:hover { color: var(--foreground); }
.filter.selected { background: #303030; color: var(--foreground); box-shadow: 0 1px 2px #00000040; }
.library { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty-state { grid-column: 1 / -1; border: 1px dashed var(--border); border-radius: var(--radius); padding: 36px 24px; color: var(--muted); text-align: center; line-height: 1.75; font-size: 13px; }
.empty-state strong { display: block; color: var(--foreground); font-weight: 500; margin-bottom: 4px; }
.banner { border: 1px solid var(--border); border-radius: var(--radius); background: #111111; padding: 14px 16px; margin-bottom: 24px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.banner strong { color: var(--foreground); font-weight: 500; }
.experiment-list { display: grid; gap: 16px; }
.experiment-row { display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.experiment-row:hover { border-color: #525252; }
.experiment-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.experiment-heading h3 { margin: 0; font-size: 16px; font-weight: 500; }
.experiment-row > p { margin: 14px 0 20px; max-width: 840px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.variants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--border); background: var(--border); border-radius: 6px; overflow: hidden; }
.variant { padding: 16px; background: var(--background); }
.variant-label { font-size: 12px; color: var(--muted); }
.variant-value { font-size: 22px; font-weight: 500; margin-top: 10px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.variant-value.unavailable { color: #d4d4d4; font-size: 13px; letter-spacing: 0; font-weight: 400; }
.variant small { display: block; color: #737373; margin-top: 8px; font-size: 11px; }
.experiment-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 16px; font-size: 11px; color: var(--muted); }
.comparison { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.comparison h3 { font-size: 16px; font-weight: 500; line-height: 1.6; margin: 16px 0 20px; }
.score-row { display: grid; grid-template-columns: 128px minmax(60px, 1fr) 44px; align-items: center; gap: 18px; margin: 20px 0; font-size: 12px; }
.score-row strong { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
progress { width: 100%; height: 5px; appearance: none; border: 0; border-radius: 5px; background: var(--border); color: #d4d4d4; }
progress::-webkit-progress-bar { background: var(--border); border-radius: 5px; }
progress::-webkit-progress-value { background: #d4d4d4; border-radius: 5px; }
progress::-moz-progress-bar { background: #d4d4d4; border-radius: 5px; }
.comparison details { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 14px; }
.comparison summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.rubric { padding: 12px 0 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.rubric h4 { font-size: 13px; font-weight: 500; color: var(--foreground); margin: 8px 0; }
.back-link { display: inline-block; font-size: 12px; color: var(--muted); margin-bottom: 28px; }
.back-link:hover { color: var(--foreground); }
.report-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(180px, 240px); gap: 40px; max-width: 1100px; margin: 0 auto; }
.report-header h1 { font-weight: 600; font-size: 28px; letter-spacing: -.7px; line-height: 1.35; margin: 18px 0; }
.report-byline { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.report-intro { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--secondary); margin: 24px 0; }
.report-intro .eyebrow { margin-bottom: 8px; color: var(--muted); }
.report-intro p { margin: 0; font-size: 14px; line-height: 1.8; color: #e5e5e5; }
.prose { font-size: 14px; line-height: 1.9; color: #d4d4d4; overflow-wrap: anywhere; }
.prose p { margin: 0 0 24px; }
.prose h2 { font-size: 18px; line-height: 1.5; font-weight: 600; color: var(--foreground); margin: 32px 0 14px; letter-spacing: -.2px; }
.prose strong { font-weight: 600; color: var(--foreground); }
.prose a, .source-list a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #737373; }
.prose ul { padding-left: 22px; margin: 0 0 24px; }
.prose li { padding-left: 3px; margin-bottom: 10px; }
.prose blockquote { margin: 24px 0; padding: 2px 20px; border-left: 2px solid #525252; color: var(--muted); }
.prose code { background: var(--secondary); border-radius: 4px; padding: 2px 5px; font-size: 12px; }
.prose pre { padding: 16px; overflow: auto; background: var(--secondary); border: 1px solid var(--border); border-radius: 6px; }
.prose pre code { padding: 0; background: transparent; }
.table-wrap { overflow: auto; margin: 24px 0; }
.prose table { border-collapse: collapse; min-width: 100%; font-size: 12px; }
.prose th, .prose td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 500; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.aside-sticky { position: sticky; top: 24px; }
.report-aside .eyebrow { margin: 0 0 16px; color: var(--foreground); }
.metadata-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.metadata-row span:last-child { text-align: right; color: #e5e5e5; overflow-wrap: anywhere; }
.report-aside p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border-radius: 6px; padding: 8px 14px; font-size: 12px; font-weight: 500; min-height: 36px; }
.primary { background: #fafafa; color: #171717; border: 1px solid #fafafa; }
.primary:hover { background: #e5e5e5; }
.secondary { background: transparent; color: var(--foreground); border: 1px solid var(--border); }
.secondary:hover { background: var(--secondary); }
.report-aside button, .report-aside .secondary { width: 100%; margin-top: 10px; }
.plan { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 24px 0; }
.plan-field { padding: 20px; border-bottom: 1px solid var(--border); }
.plan-field:last-child { border: 0; }
.plan-field .eyebrow { margin-bottom: 8px; color: var(--muted); }
.plan-field p, .plan-field ul { font-size: 14px; line-height: 1.8; color: #d4d4d4; margin: 0; }
.plan-field ul { padding-left: 18px; }
.plan-field.entry { background: #111111; }
.source-list { list-style: none; padding: 0; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.source-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.source-number { min-width: 18px; font-size: 11px; color: #737373; }
.details-section { border: 1px solid var(--border); border-radius: 6px; padding: 16px; margin: 24px 0; color: var(--muted); font-size: 12px; }
.details-section summary { color: #d4d4d4; cursor: pointer; }
.details-section p { line-height: 1.8; margin-bottom: 0; overflow-wrap: anywhere; }
.connection-banner { background: var(--secondary); border-bottom: 1px solid var(--border); color: #d4d4d4; font-size: 12px; line-height: 1.7; padding: 12px 32px; }
.chart { display: block; width: 100%; height: 190px; margin: 20px 0; color: #e5e5e5; border-bottom: 1px solid var(--border); }
.chart polyline { fill: none; stroke: currentColor; stroke-width: 2; }
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.gate-card { width: min(100%, 380px); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--card); }
.gate-card h1 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.4px; margin: 0 0 8px; }
.gate-card p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0 0 24px; }
.gate-card .primary { width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1200px) {
  .sidebar { width: 212px; }
  .main-shell { width: calc(100% - 212px); margin-left: 212px; }
  main { padding: 28px 24px; }
  .topbar { padding: 0 24px; }
  .stats { gap: 12px; }
  .stat { padding: 16px; }
  .overview-grid { grid-template-columns: 1fr; }
  .right-column { grid-row: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .right-column > section + section { margin-top: 0; }
  .library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-layout { gap: 28px; grid-template-columns: minmax(0, 1fr) 190px; }
  .report-header h1 { font-size: 26px; }
}
@media (max-width: 760px) {
  .app { display: block; }
  .sidebar { position: sticky; inset: 0 0 auto; width: 100%; height: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--border); background: #0a0a0a; z-index: 5; }
  .sidebar > .wordmark, .sidebar-bottom { display: none; }
  nav { flex-direction: row; overflow: auto; padding: 8px 12px; gap: 4px; scrollbar-width: none; }
  nav a { white-space: nowrap; font-size: 12px; min-height: 32px; padding: 6px 10px; gap: 7px; }
  nav svg { width: 14px; height: 14px; }
  nav i { display: none; }
  .main-shell { width: 100%; margin: 0; }
  .topbar { height: 52px; padding: 0 16px; }
  #breadcrumb { display: none; }
  .mobile-brand { display: inline; font-size: 12px; font-weight: 500; color: var(--foreground); }
  .mobile-only { display: inline-flex; }
  .topbar-right { gap: 8px; }
  #updated { font-size: 10px; }
  .icon-button { width: 28px; height: 28px; }
  main { padding: 24px 16px 36px; }
  .page-intro { margin-bottom: 20px; gap: 10px; }
  .page-intro h1 { font-size: 22px; line-height: 30px; }
  .date-pill { font-size: 10px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 28px; }
  .stat { padding: 16px; }
  .stat-value, .stat-value.small { font-size: 26px; }
  .stat-label { font-size: 11px; }
  .stat-note { font-size: 10px; }
  .report-grid, .library { grid-template-columns: 1fr; gap: 12px; }
  .report-card { padding: 18px; }
  .report-card h3 { font-size: 15px; }
  .right-column { grid-template-columns: 1fr; }
  .right-column > section:nth-child(2) { display: none; }
  .toolbar { flex-direction: column; align-items: stretch; gap: 12px; margin: 20px 0; }
  .toolbar label, .search { width: 100%; }
  .filters { align-self: flex-start; }
  .filter { padding: 5px 8px; font-size: 11px; }
  .report-layout { display: block; }
  .report-aside { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 28px; }
  .aside-sticky { position: static; }
  .report-aside .secondary { width: auto; margin-right: 8px; }
  .report-header h1 { font-size: 24px; letter-spacing: -.5px; }
  .report-byline { font-size: 11px; gap: 8px 12px; }
  .report-intro, .plan-field { padding: 18px; }
  .report-intro p, .plan-field p, .plan-field ul, .prose { font-size: 13px; }
  .prose h2 { font-size: 17px; }
  .back-link { margin-bottom: 22px; }
  .experiment-row, .comparison { padding: 18px; }
  .experiment-heading { align-items: flex-start; }
  .experiment-heading h3 { font-size: 15px; }
  .variants { grid-template-columns: 1fr; }
  .variant { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 5px; padding: 14px; }
  .variant-label { font-size: 11px; }
  .variant-value { margin: 0; text-align: right; font-size: 18px; }
  .variant-value.unavailable { font-size: 12px; }
  .variant small { grid-column: 1 / -1; margin-top: 0; font-size: 10px; }
  .experiment-meta { flex-wrap: wrap; font-size: 10px; }
  .score-row { grid-template-columns: 105px minmax(40px, 1fr) 40px; gap: 12px; font-size: 11px; }
  .comparison h3 { font-size: 15px; }
  .connection-banner { padding: 12px 16px; }
}
@media print {
  body { background: white; color: #111111; }
  .sidebar, .topbar, .report-aside, .back-link, .connection-banner { display: none !important; }
  .main-shell { width: 100%; margin: 0; }
  main { padding: 0; }
  .report-layout { display: block; }
  .report-intro, .plan-field.entry { background: #f5f5f5; }
  .prose, .prose strong, .prose h2, .report-intro p, .plan-field p, .plan-field ul { color: #262626; }
  .tag, .prose a { color: #404040; }
  .report-header h1 { font-size: 24px; }
  .prose { font-size: 12px; }
  .report-intro, .plan { break-inside: avoid; }
}
