:root {
  color-scheme: light;
  --canvas: #eef2f2;
  --surface: #ffffff;
  --surface-subtle: #f6f8f8;
  --ink: #132321;
  --muted: #526663;
  --stroke: #d6e0df;
  --sidebar: #132724;
  --sidebar-ink: #eef7f5;
  --sidebar-muted: #b2c8c4;
  --sidebar-line: #344b47;
  --accent: #b8e69e;
  --link: #076358;
  --focus: #087b6c;
  --radius: 12px;
  --font: 'Segoe UI', system-ui, sans-serif;
  --mono: 'Cascadia Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 var(--font); background: var(--canvas); color: var(--ink); }
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: .2em; }
button, input, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
p, h1, h2, h3, a { overflow-wrap: anywhere; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 3; padding: 12px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; gap: 28px;
  padding: 28px 17px 18px; overflow-y: auto;
  background: var(--sidebar); color: var(--sidebar-ink);
}
.sidebar :focus-visible { outline-color: var(--accent); }
.sidebar-lead { display: grid; justify-items: start; gap: 14px; }
.brand {
  display: inline-flex; width: fit-content; min-height: 44px; align-items: center; gap: 10px;
  margin-left: 7px; font-size: 22px; font-weight: 720; letter-spacing: -.035em;
  color: var(--sidebar-ink); text-decoration: none;
}
.brand-mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  background: var(--accent); border-radius: 9px; color: var(--sidebar); position: relative;
}
.brand-mark::before {
  content: ''; width: 22px; height: 11px; border: 2px solid currentColor;
  border-top-left-radius: 12px; border-top-right-radius: 12px; border-bottom: 0;
  transform: translateY(2px);
}
.brand-mark::after { content: ''; position: absolute; width: 25px; border-bottom: 2px solid currentColor; transform: translateY(6px); }
.language-switch { display: flex; gap: 4px; margin-left: 7px; }
.language-switch a {
  display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; justify-content: center;
  padding: 5px 9px; border: 1px solid transparent; border-radius: 7px; color: var(--sidebar-muted);
  font-size: .78rem; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.language-switch a:hover { color: var(--sidebar-ink); background: #263e39; }
.language-switch a[aria-current='true'] { color: var(--sidebar-ink); border-color: var(--sidebar-line); background: #263e39; }
.navigation { display: grid; gap: 6px; }
.nav-item {
  min-height: 47px; display: flex; align-items: center; gap: 11px; padding: 9px 10px;
  color: var(--sidebar-muted); text-decoration: none; border: 1px solid transparent;
  border-radius: 8px; font-size: .87rem; line-height: 1.3; font-weight: 620;
}
.nav-item:hover { color: var(--sidebar-ink); background: #263e39; }
.nav-item[aria-current='page'] { background: #2d473e; color: #e8f8dd; border-color: #435f50; }
.nav-item[aria-current='page'] .nav-icon { color: var(--accent); }
.nav-icon { color: inherit; flex: 0 0 16px; height: 16px; position: relative; }
.icon-activity { background: linear-gradient(currentColor,currentColor) left bottom 2px / 3px 6px no-repeat, linear-gradient(currentColor,currentColor) center bottom 2px / 3px 10px no-repeat, linear-gradient(currentColor,currentColor) right bottom 2px / 3px 14px no-repeat; }
.icon-lab { border: 1.5px solid currentColor; border-radius: 3px; }
.icon-lab::after { content: ''; position: absolute; width: 6px; height: 4px; top: 3px; left: 3px; border-bottom: 1.5px solid currentColor; border-left: 1.5px solid currentColor; transform: rotate(-45deg); }
.icon-grid { border: 1.5px solid currentColor; border-radius: 3px; background: linear-gradient(currentColor,currentColor) center/1.5px 100% no-repeat, linear-gradient(currentColor,currentColor) center/100% 1.5px no-repeat; }
.icon-progress { border: 1.5px solid currentColor; border-radius: 50%; background: conic-gradient(currentColor 0 90deg, transparent 90deg); }
.icon-link::before, .icon-link::after { content: ''; position: absolute; width: 10px; height: 7px; border: 1.5px solid currentColor; border-radius: 6px; transform: rotate(-38deg); }
.icon-link::before { inset: 6px auto auto 0; }
.icon-link::after { inset: 2px 0 auto auto; }
.icon-projects::before, .icon-projects::after { content: ''; width: 10px; height: 10px; position: absolute; border: 1.5px solid currentColor; border-radius: 2px; }
.icon-projects::before { top: 1px; left: 1px; }
.icon-projects::after { bottom: 1px; right: 1px; background: var(--sidebar); }
.sidebar-footer { margin-top: auto; }
.feed-link { margin-bottom: 14px; }
.api-icon { font: .72rem var(--mono); }
.arrow { margin-left: auto; }
.sync-status { padding: 15px 8px 4px; border-top: 1px solid var(--sidebar-line); color: var(--sidebar-muted); font-size: .79rem; }
.sync-status span { display: block; margin-top: 4px; }
.sync-status .sync-label { margin: 0; color: var(--sidebar-ink); font-weight: 650; }
.sync-label::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #abbdb9; }
.sync-ok::before { background: var(--accent); }
.sync-warning::before { background: #f3cb80; }

.workspace { min-width: 0; }
.workspace-inner { max-width: 1440px; margin: auto; padding: 52px clamp(24px, 4vw, 64px) 55px; }
.masthead { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.masthead h1 { font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.07; font-weight: 720; letter-spacing: -.055em; }
.masthead p { margin-top: 11px; max-width: 64ch; color: var(--muted); }
.readonly { display: inline-flex; align-items: center; gap: 9px; margin-top: 5px; border: 1px solid var(--stroke); padding: 8px 12px; border-radius: 99px; background: var(--surface-subtle); color: #37544e; font-size: .8rem; font-weight: 650; white-space: nowrap; }
.lock-icon { width: 11px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; }
.lock-icon::before { content: ''; position: absolute; width: 7px; height: 6px; top: -6px; left: .5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.coordination { margin-bottom: 17px; padding: 14px 18px; border: 1px solid #bad6cb; border-radius: var(--radius); background: #e3efea; }
.coordination h2 { margin: 0; font-size: 1.04rem; }
.coordination p { margin-top: 5px; color: #36524a; font-size: .86rem; }
.coordination a { font-weight: 700; }
.coordination details { margin-top: 5px; font-size: .82rem; }
.coordination summary { width: fit-content; cursor: pointer; padding: 4px 0; }
.coordination ol { margin: 4px 0 2px; padding-left: 20px; color: #36524a; }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 26px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 12px #13232107; }
.summary-item { padding: 15px 20px; min-height: 74px; display: flex; gap: 12px; align-items: center; }
.summary-item + .summary-item { border-left: 1px solid var(--stroke); }
.summary-number { font: 720 1.85rem/1 var(--font); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.summary-label { font-size: .83rem; color: var(--muted); line-height: 1.3; }
.filters { display: grid; grid-template-columns: minmax(160px, 1.7fr) repeat(2, minmax(126px, .85fr)) auto; align-items: end; gap: 10px; margin-bottom: 17px; }
.filters-only-search { grid-template-columns: minmax(160px, 430px) auto; justify-content: start; }
.filter-group { display: grid; min-width: 0; gap: 4px; }
.filter-group label { color: var(--muted); font-size: .8rem; font-weight: 650; }
.filter-group select, .search-control { width: 100%; height: 46px; background: var(--surface); border-radius: 8px; border: 1px solid #c0cecb; }
.filter-group select { padding: 0 10px; font-size: .9rem; }
.search-control { position: relative; display: flex; align-items: center; }
.search-control input { width: 100%; margin: 0; min-height: 44px; padding: 8px 11px 8px 40px; background: none; border: 0; border-radius: 8px; font-size: .96rem; }
.search-control input::placeholder { color: var(--muted); }
.search-icon { position: absolute; left: 14px; top: 13px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--muted); pointer-events: none; }
.search-icon::after { content: ''; position: absolute; bottom: -4px; right: -3px; width: 6px; height: 2px; background: var(--muted); transform: rotate(46deg); }
.filter-reset { min-height: 46px; padding: 7px 12px; background: var(--surface-subtle); border: 1px solid var(--stroke); border-radius: 8px; color: var(--muted); font-size: .86rem; font-weight: 650; }
.filter-reset:hover { background: #e2edeb; color: var(--ink); }
.view-status { min-height: 23px; margin-bottom: 6px; color: var(--muted); font-size: .86rem; }
.view-status:empty { display: none; }
.content[aria-busy='true'] { opacity: .6; }

.activity-refresh, .search-submit { min-height: 46px; padding: 8px 12px; border: 1px solid #b7cdc6; border-radius: 8px; font-size: .86rem; font-weight: 670; }
.activity-refresh { flex: 0 0 auto; margin-top: 3px; background: var(--surface); color: var(--link); }
.activity-refresh:hover { border-color: var(--link); background: #e7f2ee; }
.activity-refresh:disabled { opacity: .65; cursor: wait; }
.search-submit { background: #18584e; color: #fff; border-color: #18584e; }
.search-submit:hover { background: #0a453d; color: #fff; }
.activity-board { display: grid; gap: 16px; }
.activity-overview, .activity-panel { min-width: 0; padding: 16px 19px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 7px #13232105; }
.activity-overview { border-color: #b7d0c7; background: #e8f3ee; }
.activity-overview-head { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; column-gap: 14px; row-gap: 4px; }
.activity-overview h2, .activity-panel h2 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.015em; }
.activity-freshness { display: flex; flex-wrap: wrap; column-gap: 7px; color: #34584d; font-size: .79rem; }
.activity-freshness time { font-variant-numeric: tabular-nums; font-weight: 700; }
.activity-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 12px 0 9px; }
.activity-metric { display: flex; flex-direction: column; justify-content: flex-start; gap: 5px; padding: 8px 14px; }
.activity-metric:first-child { padding-left: 0; }
.activity-metric + .activity-metric { border-left: 1px solid #bed5cc; }
.activity-metric dt { font-size: .82rem; line-height: 1.38; color: #34584d; }
.activity-metric dd { order: -1; margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.45rem); font-weight: 720; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.055em; }
.activity-note { color: var(--muted); font-size: .82rem; }
.activity-panel > .activity-note { margin-top: 9px; }
.activity-columns { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(230px, 1fr); gap: 16px; align-items: start; }
.activity-timeline, .activity-team-list { list-style: none; margin: 9px 0 0; padding: 0; }
.activity-entry { display: grid; justify-items: start; gap: 4px; padding: 10px 0; border-top: 1px solid #e4ecea; }
.activity-entry > a, .activity-team-latest > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .93rem; font-weight: 650; line-height: 1.35; }
.activity-entry h3 { font-size: .95rem; line-height: 1.35; }
.activity-handoff-proof { display: flex; flex-wrap: wrap; gap: 0 14px; }
.activity-handoff-proof a { display: inline-flex; align-items: center; min-height: 44px; font-size: .84rem; }
.activity-entry p, .activity-opportunity p { color: var(--muted); font-size: .84rem; }
.activity-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; width: 100%; color: var(--muted); font-size: .76rem; }
.activity-meta time { margin-left: auto; font-variant-numeric: tabular-nums; }
.activity-project-name { font-weight: 650; }
.activity-meta :is(.pill-merged_pr, .pill-verified_result, .pill-passed) { background: #e5f2de; color: #215837; }
.activity-meta :is(.pill-open_pr, .pill-revision_change) { background: #e7effb; color: #315384; }
.activity-meta .pill-failed { background: #f7e6e4; color: #78382f; }
.activity-meta .pill-mixed { background: #fff0cf; color: #714a16; }
.activity-expand summary { display: list-item; width: fit-content; min-height: 44px; padding-block: 10px; color: var(--link); font-size: .84rem; font-weight: 650; cursor: pointer; }
.activity-expand .activity-timeline { margin-top: 0; }
.activity-opportunity { display: grid; align-content: start; gap: 6px; padding: 12px 0; border-bottom: 1px solid #e4ecea; }
.activity-opportunity h3 { font-size: 1rem; line-height: 1.25; }
.activity-opportunity h3 a, .activity-opportunity > a, .activity-more { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; }
.activity-opportunity > a, .activity-more { font-size: .83rem; font-weight: 650; }
.activity-actions > .activity-more { display: flex; }
.activity-opportunity .activity-opportunity-projects { font-size: .76rem; font-weight: 650; }
.activity-opportunity .activity-next-step { padding: 7px 9px; border-left: 2px solid #77a597; background: #edf5f2; color: #23483f; }
.activity-team-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.activity-team { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid #e1eae8; border-radius: 8px; background: var(--surface-subtle); }
.activity-team h3 { font-size: .94rem; line-height: 1.25; }
.activity-team h3 a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.activity-team-totals, .activity-team-empty, .activity-team-check { color: var(--muted); font-size: .78rem; }
.activity-team-latest { display: grid; gap: 4px; padding-top: 6px; border-top: 1px solid #e1eae8; }
.activity-team-check { display: flex; flex-wrap: wrap; gap: 4px 7px; padding-top: 6px; margin-top: auto; border-top: 1px solid #e1eae8; }
.activity-team-check span:first-child { color: #34584d; font-weight: 650; }

.lab-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lab-entrypoints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.lab-agent { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 14px 16px; border: 1px solid #b7d0c7; border-radius: var(--radius); background: #e8f3ee; }
.lab-agent h2 { font-size: 1.1rem; line-height: 1.3; }
.lab-agent p, .lab-agent > a { font-size: .88rem; }
.lab-agent > a, .lab-agent-actions a { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; font-weight: 650; }
.lab-agent-actions { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: center; }
.lab-agent-actions .retry { margin: 0; }
.lab-agent-actions .view-status { min-height: 0; margin: 0; }
.lab-primary { min-height: 44px; padding: 6px 12px; border: 1px solid #18584e; border-radius: 7px; background: #18584e; color: #fff; font-weight: 670; font-size: .87rem; text-decoration: none; }
.lab-primary:hover { background: #0a453d; }
.lab-agent textarea { width: 100%; min-height: 125px; padding: 8px; border: 1px solid var(--stroke); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; }
.lab-bar select { min-width: min(220px, 100%); }
.lab-filter-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.lab-tasks + .lab-entrypoints { margin-top: 16px; }
.lab-checked { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); font-size: .82rem; }
.lab-checked time { font-variant-numeric: tabular-nums; font-weight: 650; }
.lab-count { margin-bottom: 10px; }
.lab-tasks { align-items: start; }
.lab-task .pill-needs_run { background: #e5f2de; color: #215837; }
.lab-task :is(.pill-needs_revision, .pill-awaiting_review) { background: #fff0cf; color: #714a16; }
.lab-task .pill-blocked { background: #f7e7df; color: #75442d; }
.lab-task :is(.pill-reviewed_gpu, .pill-reviewed_cpu) { background: #e7effb; color: #315384; }
.lab-task .lab-evidence { border-left: 2px solid #8eb8a9; padding: 6px 10px; background: var(--surface-subtle); }
.lab-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 13px; }
.lab-links > a, .lab-commits a { display: inline-flex; align-items: center; min-height: 44px; font-size: .86rem; font-weight: 650; }
.lab-links > a:first-child { padding-inline: 10px; border-radius: 6px; background: #e5f2ed; }
.lab-details { border-top: 1px solid var(--stroke); }
.lab-details summary { min-height: 44px; padding-block: 10px; color: var(--link); font-size: .87rem; font-weight: 650; cursor: pointer; }
.lab-checklist { padding: 7px 0 10px; color: var(--muted); font-size: .87rem; }
.lab-checklist h3 { font-size: .93rem; color: var(--ink); }
.lab-checklist :is(ol, ul) { margin: 5px 0 0; padding-left: 21px; }
.lab-checklist .lab-commits { list-style: none; padding: 0; }
.lab-commits li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.lab-commits a { min-width: 0; overflow-wrap: anywhere; font-size: .76rem; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ecosystem-panel { display: grid; gap: 12px; margin-bottom: 16px; }
.ecosystem-panel summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-weight: 700; }
.ecosystem-panel h3 { margin-top: 14px; font-size: 1rem; }
.ecosystem-list { list-style: none; padding: 0; margin: 8px 0; }
.ecosystem-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding-block: 8px; border-bottom: 1px solid var(--stroke); overflow-wrap: anywhere; }
.ecosystem-list li :is(span, small), .ecosystem-sources { color: var(--muted); }
.ecosystem-list a { font-weight: 650; }
.card { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 17px 19px; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); box-shadow: 0 2px 7px #13232105; }
.card:hover { border-color: #a8c7bc; }
.card-top, .card-footer, .meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.card-top { justify-content: space-between; }
.identifier { font: 650 .77rem/1.4 var(--mono); color: #41605a; }
.card h2, .match-card h2 { font-size: 1.2rem; line-height: 1.28; letter-spacing: -.02em; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--link); text-decoration: underline; }
.card p, .match-card p { color: var(--muted); font-size: .92rem; }
.card-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid #e5eceb; font-size: .85rem; color: var(--muted); }
.card-footer a { margin-left: auto; font-weight: 700; display: inline-flex; align-items: center; min-height: 36px; }
.pill, .project-pill {
  max-width: 100%; display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 3px 8px;
  border-radius: 5px; color: #425a54; background: #edf2f1; font-size: .75rem; line-height: 1.25; font-weight: 650;
}
.pill-partial, .pill-suggested, .pill-reviewed_symptom { color: #714a16; background: #fff0cf; }
.pill-verified, .pill-resolved, .pill-merged, .pill-reviewed_same, .pill-independent { color: #215837; background: #e5f2de; }
.pill-automated_test, .pill-source_observation { color: #315384; background: #e7effb; }
.pill-maintainer_claim { color: #684a79; background: #f1eaf7; }
.pill-revieweddistinct, .pill-reviewed_distinct { color: #60436c; background: #f0e9f5; }
.project-pill { padding-left: 7px; background: #eef6f4; color: #234f48; }
.project-pill::before { content: ''; width: 7px; height: 7px; border-radius: 2px; flex: 0 0 7px; background: #26796b; }
.tag { color: #526663; font: .76rem/1.4 var(--mono); }
.empty, .notice { padding: 20px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.empty h2 { margin-bottom: 5px; font-size: 1.1rem; color: var(--ink); }
.notice-error { border-color: #dcaea8; color: #74382c; }
.retry { display: block; margin-top: 12px; padding: 8px 12px; min-height: 44px; background: var(--surface-subtle); border: 1px solid var(--stroke); border-radius: 8px; }

.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 13px; }
.detail-top { display: grid; gap: 14px; margin-bottom: 23px; }
.detail-top h2, .section-title { font-size: 1.25rem; margin-bottom: 10px; }
.detail-top .section-title { margin-bottom: 0; }
.detail-back { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.solution { gap: 12px; }
.solution h3 { font-size: 1.09rem; }
.source-list, .evidence-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 9px; }
.sources { padding-top: 10px; border-top: 1px solid var(--stroke); }
.sources h4 { margin: 0 0 6px; font-size: .88rem; }
.source-list a, .source-list span { font-size: .84rem; }
.evidence { display: grid; gap: 6px; padding: 9px 10px; border: 1px solid #e0e9e6; border-radius: 7px; background: var(--surface-subtle); }
.evidence .pill { justify-self: start; }
.evidence a, .evidence .evidence-title { font-size: .9rem; font-weight: 650; }
.evidence p { font-size: .84rem; }
.revision { font: .77rem/1.3 var(--mono); }
.auxiliary { margin-top: 14px; }
.draft { margin-top: 16px; padding: 12px 15px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); }
.draft summary { cursor: pointer; width: fit-content; padding: 7px 0; color: var(--link); font-weight: 650; }
.draft p { margin: 6px 0 10px; color: var(--muted); font-size: .9rem; }
.draft textarea { width: 100%; padding: 10px; min-height: 118px; resize: vertical; font: .83rem/1.45 var(--mono); background: var(--surface-subtle); border: 1px solid var(--stroke); border-radius: 7px; color: inherit; }
.draft-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.draft-actions .retry { display: inline-flex; margin: 0; }
.draft-actions .view-status { margin: 0; }
.outreach { margin-top: 28px; }
.outreach .cards { align-items: start; }
.outreach-card h3 { font-size: 1.05rem; }
.outreach-links { column-gap: 15px; font-size: .86rem; }
.outreach-links a { display: inline-flex; align-items: center; min-height: 44px; }
.outreach-card .draft { margin: 0; padding: 0 12px 6px; background: var(--surface-subtle); }
.outreach-card .draft summary { min-height: 44px; padding-top: 11px; }
.outreach-card .draft textarea { min-height: 180px; background: var(--surface); }
.outreach-card .draft-actions { margin-bottom: 6px; }
.match-list { display: grid; gap: 12px; }
.match-card h3 { font-size: .97rem; }
.match-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.match-side { border: 1px solid var(--stroke); background: var(--surface-subtle); border-radius: 8px; padding: 10px 12px; display: grid; justify-items: start; gap: 7px; }
.score { font: 650 .84rem/1.3 var(--mono); color: var(--muted); }
.project-status { display: grid; gap: 3px; padding-top: 10px; border-top: 1px solid var(--stroke); margin-top: auto; }
.project-status dt { color: var(--muted); font-size: .78rem; }
.project-status dd { margin: 0 0 7px; font-size: .87rem; }
.api-documentation { max-width: 960px; margin: 32px auto; padding: 0 20px; }
.case-page { max-width: 820px; margin: 0 auto; padding: 24px 20px 56px; }
.case-page nav a { display: inline-flex; align-items: center; min-height: 44px; }
.case-page header { display: grid; gap: 12px; margin: 20px 0 28px; }
.case-page h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; }
.case-page time { color: var(--muted); }
.case-section { padding: clamp(16px, 4vw, 26px); margin-top: 16px; border: 1px solid var(--stroke);
  border-radius: var(--radius); background: var(--surface); }
.case-section h2 { margin-bottom: 10px; }
.case-results { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.case-evidence { padding: 14px; border-radius: 8px; background: var(--surface-subtle); overflow-wrap: anywhere; }
.case-evidence p + p { margin-top: 6px; }
.api-documentation pre { padding: 20px; overflow-wrap: anywhere; white-space: pre-wrap; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); font: .92rem/1.5 var(--mono); }

@media (max-width: 920px) {
  .shell { grid-template-columns: 190px minmax(0,1fr); }
  .sidebar { padding-inline: 12px; }
  .workspace-inner { padding: 34px 22px; }
  .summary-item { padding-inline: 12px; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
  .activity-team-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .shell { display: block; }
  .sidebar { display: grid; position: static; height: auto; grid-template-columns: 1fr auto; gap: 6px 13px; padding: 12px 16px; overflow: visible; }
  .sidebar-lead { display: contents; }
  .brand { margin: 0; grid-column: 1; }
  .language-switch { grid-row: 1; grid-column: 2; align-self: center; margin: 0; }
  .navigation { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .nav-item { justify-content: center; padding: 7px 5px; text-align: center; font-size: .78rem; }
  .nav-icon { display: none; }
  .sidebar-footer { display: contents; }
  .api-link { grid-row: 5; grid-column: 1; margin: 0; }
  .feed-link { grid-row: 5; grid-column: 2; margin: 0; }
  .contribute-link { grid-row: 4; grid-column: 1; width: fit-content; }
  #contributor-guide { grid-row: 4; grid-column: 2; width: fit-content; }
  .api-icon, .api-link .arrow { display: none; }
  .sync-status { grid-row: 3; grid-column: 1 / -1; border: 0; padding: 5px 0 0; }
  .sync-status span { display: inline; margin-left: 9px; }
  .workspace-inner { padding: 29px 16px; }
  .masthead { gap: 10px; margin-bottom: 20px; }
  .readonly { padding: 6px 8px; font-size: .72rem; }
  .filters { grid-template-columns: 1fr 1fr auto; }
  .filters-only-search { grid-template-columns: 1fr auto; }
  .search-group { grid-column: 1 / -1; }
  .filters-only-search .search-group { grid-column: auto; }
  .comparison { grid-template-columns: 1fr; }
  .activity-columns { grid-template-columns: 1fr; }
  .lab-entrypoints { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .brand { gap: 7px; font-size: 1.16rem; white-space: nowrap; }
  .brand-mark { width: 30px; height: 30px; }
  .masthead { flex-wrap: wrap; }
  .readonly { margin-top: 0; }
  .summary { margin-bottom: 18px; }
  .summary-item { display: grid; gap: 4px; align-content: start; padding: 10px; }
  .summary-number { font-size: 1.5rem; }
  .summary-label { font-size: .76rem; }
  .match-pair { grid-template-columns: 1fr; }
  .filter-reset { padding-inline: 7px; }
  .activity-overview, .activity-panel { padding: 13px; }
  .activity-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .activity-metric:nth-child(n+3) { padding-top: 12px; }
  .activity-team-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
