:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #233047;
  background: #f3f5fa;
  font-synthesis: none;
  --purple: #b5a0ff;
  --amber: #ffcb79;
  --teal: #6fe0ca;
  --muted: #5f6a80;
  --border: #e3e7f0;
  --accent: #5545b7;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: 0 28px; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button, input, select { border: 1px solid var(--border); border-radius: 8px; }
button { background: white; color: inherit; }
button:hover { background: #f1effb; border-color: #b6ace2; }
button:disabled, select:disabled { opacity: 0.5; cursor: default; }
:focus-visible { outline: 3px solid #7660da; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 20; padding: 12px; background: white; }
.skip-link:focus { top: 10px; }
.page-header, .intro, .workspace, .view-tabs, .trends-view, footer, .notice { max-width: 1800px; margin-left: auto; margin-right: auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 0 20px; border-bottom: 1px solid var(--border); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 40px; height: 40px; color: #77819a; flex: none; }
.brand-name { display: block; font-size: 19px; font-weight: 750; color: #233047; text-decoration: none; letter-spacing: -0.5px; line-height: 1.4; }
.eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); line-height: 1.8; }
.header-links { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.source-link { color: #536078; font-size: 13px; font-weight: 600; text-decoration: none; }
.button { padding: 10px 15px; font-size: 13px; font-weight: 650; color: var(--accent); background: #f1edff; border-color: #d7cdf8; }
.button.subtle { background: white; border-color: var(--border); color: #45516a; }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; }
h1 { font-size: clamp(23px, 2.2vw, 34px); font-weight: 730; letter-spacing: -1px; line-height: 1.25; }
.intro p { color: var(--muted); margin-top: 9px; font-size: 14px; line-height: 1.6; }
.overview { display: flex; gap: 30px; flex: none; }
.overview div { display: flex; flex-direction: column; gap: 5px; }
.overview strong { font-size: 25px; letter-spacing: -0.8px; font-weight: 700; }
.overview span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.notice { padding: 12px 16px; background: #fff6db; border: 1px solid #eddb9c; border-radius: 9px; margin-bottom: 18px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.view-tabs { display: flex; gap: 5px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.view-tabs button { padding: 12px 18px; border: 0; border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 650; }
.view-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent); background: #eae5fa; }
.workspace { display: grid; grid-template-columns: 280px minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.panel { background: white; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px #21345b04; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 19px 18px 0; }
.panel-heading h2 { font-size: 13px; font-weight: 700; }
.small-tag { font-size: 8px; font-weight: 750; letter-spacing: 1px; color: var(--muted); padding: 4px 6px; border-radius: 4px; background: #f3f5fa; }
.filters { border: 0; padding: 20px 18px 14px; margin: 0; min-width: 0; }
.field-label { display: block; font-weight: 650; font-size: 12px; margin-bottom: 8px; }
input, select { color: #34425c; background: white; padding: 10px 11px; font-size: 12px; width: 100%; min-width: 0; }
input::placeholder { color: var(--muted); opacity: 1; }
.search-wrap { position: relative; margin-bottom: 19px; }
.search-wrap input { padding-right: 32px; }
.search-wrap kbd { position: absolute; right: 11px; top: 10px; color: var(--muted); font-size: 11px; }
.filter-label-row { display: flex; align-items: baseline; justify-content: space-between; }
.muted { font-size: 10px; color: var(--muted); }
.star-range { display: grid; grid-template-columns: 1fr 12px 1fr; align-items: center; gap: 8px; color: #8a94a5; }
.star-presets { display: flex; gap: 6px; margin-top: 9px; }
.star-presets button { flex: 1; padding: 6px 0; font-size: 11px; border-radius: 6px; color: var(--muted); }
.star-presets button[aria-pressed="true"] { color: var(--accent); background: #f0ecfc; border-color: #d8cef6; font-weight: 700; }
.field-error { color: #ad2640; font-size: 11px; line-height: 1.5; margin-top: 9px; }
input[aria-invalid="true"] { border-color: #ad2640; }
.action-filter { border: 0; padding: 0; margin: 20px 0 10px; min-width: 0; }
.action-filter legend { padding: 0; }
.filter-hint { color: var(--muted); font-size: 10px; margin: -2px 0 10px; }
.action-option { display: flex; align-items: center; gap: 9px; padding: 9px 10px; margin-bottom: 6px; background: #f9fafe; border: 1px solid #edf0f7; border-radius: 7px; cursor: pointer; }
.action-option:has(input:checked) { border-color: #c3b6ef; background: #f5f2ff; }
.action-option input { width: 14px; height: 14px; padding: 0; margin: 0; accent-color: var(--accent); }
.action-option .action-name { font-family: ui-monospace, monospace; font-size: 12px; flex: 1; }
.action-count { font-size: 11px; color: var(--muted); }
.action-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.get-cmake { background: #9578e8; }
.run-cmake { background: #d5a03f; }
.run-vcpkg { background: #27a88f; }
.version-label { margin-top: 16px; }
.text-button { color: var(--accent); font-size: 11px; font-weight: 650; border: 0; padding: 0; background: transparent; margin-top: 13px; }
.text-button:hover { background: transparent; text-decoration: underline; }
.results-heading { border-top: 1px solid var(--border); padding: 16px 18px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.results-heading h2 { font-size: 13px; margin-bottom: 5px; }
.count-badge { background: #eeeafa; color: #6654ae; font-size: 10px; padding: 2px 6px; border-radius: 5px; margin-left: 3px; }
.results-heading select { font-size: 10px; width: 98px; padding: 7px 5px; }
.repository-list { list-style: none; margin: 0; padding: 0 8px; height: 343px; overflow-y: auto; scrollbar-width: thin; }
.repo-row { width: 100%; text-align: left; padding: 11px 10px; border: 1px solid transparent; border-radius: 7px; background: white; display: block; margin-bottom: 3px; }
.repo-row:hover, .repo-row:focus-visible { background: #f6f4fd; }
.repo-row[aria-pressed="true"] { background: #eee9ff; border-color: #d1c5f3; }
.repo-row-top { display: flex; gap: 5px; align-items: baseline; justify-content: space-between; }
.repo-id { font-size: 12px; line-height: 1.5; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo-stars { color: var(--muted); font-size: 10px; flex: none; display: inline-flex; align-items: center; gap: 4px; }
.star-glyph { font-style: normal; }
.repo-actions { display: flex; gap: 8px; margin-top: 6px; }
.repo-action { display: flex; align-items: center; gap: 4px; font-size: 9px; color: var(--muted); }
.repo-action .action-dot { width: 5px; height: 5px; }
.list-empty { padding: 30px 22px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--border); font-size: 10px; color: var(--muted); }
.pagination button { width: 30px; height: 28px; font-size: 14px; }
.map-toolbar { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.map-toolbar .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
.map-toolbar h2 { font-size: 17px; margin-top: 2px; letter-spacing: -0.3px; }
.map-controls { display: flex; align-items: center; gap: 5px; }
.map-controls button { min-width: 29px; height: 30px; font-size: 14px; padding: 0 8px; }
.map-controls #fit-view { font-size: 10px; font-weight: 600; }
.mobile-filter-link { display: none; }
.graph-stage { position: relative; height: 724px; background: radial-gradient(ellipse at 40% 40%, #182842, #0d1729 75%); isolation: isolate; overflow: hidden; }
.graph-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#8194bc24 0.65px, transparent 0.65px); background-size: 22px 22px; z-index: -1; }
.graph-stage canvas { position: absolute; width: 100%; height: 100%; inset: 0; display: block; }
#graph-overlay { touch-action: none; cursor: grab; }
#graph-overlay:focus-visible { outline-offset: -4px; }
.repository-name-links { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.repository-name-link { position: absolute; left: 0; top: 0; font-size: 0; color: transparent; border-radius: 2px; pointer-events: auto; touch-action: none; cursor: pointer; }
.repository-name-link:focus-visible { outline: 2px solid #101b30; outline-offset: 1px; box-shadow: 0 0 0 4px #b9f4ff; }
.graph-stage:has(> .graph-state:not([hidden])) > .repository-name-links { display: none; }
.map-caption { position: absolute; left: 19px; top: 19px; z-index: 2; display: flex; align-items: center; gap: 8px; color: #c1cde0; font-size: 10px; pointer-events: none; }
.live-dot { height: 6px; width: 6px; border-radius: 50%; background: #6fe0ca; box-shadow: 0 0 10px #6fe0ca55; }
.map-legend { position: absolute; bottom: 17px; left: 19px; right: 19px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #adbbd2; font-size: 10px; pointer-events: none; }
.map-legend span { display: flex; align-items: center; gap: 6px; }
.legend-bucket { display: inline-block; flex: none; border-radius: 50%; }
.graph-state { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; background: #101b30ed; color: #eef2ff; }
.graph-state h3 { font-size: 20px; letter-spacing: -0.4px; }
.graph-state p { font-size: 12px; color: #afbdd5; line-height: 1.8; max-width: 340px; margin-top: 12px; overflow-wrap: anywhere; }
.graph-state .button { margin-top: 20px; }
.loading-mark { width: 32px; height: 32px; border: 2px solid #6fe0ca35; border-top-color: #6fe0ca; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }
.graph-tooltip { position: absolute; z-index: 4; pointer-events: none; width: max-content; max-width: 230px; border-radius: 9px; padding: 11px 13px; background: #f8faff; box-shadow: 0 6px 25px #0005; color: #25324a; font-size: 12px; overflow-wrap: anywhere; }
.graph-tooltip strong { display: block; font-size: 12px; margin-bottom: 5px; }
.graph-tooltip span { display: block; font-size: 10px; color: #58667c; line-height: 1.7; }
.graph-help { padding: 15px 20px 10px; font-size: 11px; line-height: 1.8; color: #68758a; }
.graph-help strong { font-weight: 650; color: #45526b; }
.keyboard-help { padding: 0 20px 15px; font-size: 10px; color: var(--muted); line-height: 1.8; }
.keyboard-help summary { color: #67718a; }
.keyboard-help p { margin-top: 6px; }
kbd { font-family: ui-monospace, monospace; }
.inspector { min-height: 380px; }
.inspector .panel-heading h2 { flex: 1; }
.inspector-close { width: 28px; height: 28px; font-size: 19px; line-height: 1; flex: none; }
.inspector-placeholder { padding: 36px 22px 25px; }
.connection-mark { display: flex; align-items: center; margin-bottom: 25px; }
.connection-mark span { width: 22px; height: 22px; border: 5px solid #c5b7f5; border-radius: 50%; background: #f5f2fe; }
.connection-mark span:last-child { border-color: #8dd8ca; background: #f0fcf8; }
.connection-mark i { width: 48px; height: 1px; background: #d9deeb; }
.inspector-placeholder h3 { font-size: 18px; letter-spacing: -0.5px; margin-bottom: 13px; }
.inspector-placeholder p { font-size: 12px; line-height: 1.8; color: var(--muted); margin-bottom: 14px; }
.action-key { display: flex; align-items: center; gap: 9px; font: 11px ui-monospace, monospace; color: var(--muted); margin-top: 12px; }
.inspector-placeholder .action-key:first-of-type { margin-top: 25px; }
.inspector-content { padding: 23px 18px 18px; }
.project-owner { color: var(--muted); font-size: 12px; margin-bottom: 5px; overflow-wrap: anywhere; }
.project-title { font-size: 20px; line-height: 1.35; letter-spacing: -0.5px; overflow-wrap: anywhere; }
.project-title a { color: #2f3c55; text-decoration: none; }
.project-title a:hover { color: var(--accent); text-decoration: underline; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 10px; color: var(--muted); }
.project-meta > span { padding: 5px 8px; border-radius: 5px; background: #f2f4f9; }
.project-description { font-size: 12px; line-height: 1.8; color: #68758b; margin-top: 14px; overflow-wrap: anywhere; }
.inspector-buttons { display: flex; gap: 7px; margin-top: 17px; flex-wrap: wrap; }
.inspector-buttons button, .inspector-buttons a { font-size: 10px; border: 1px solid var(--border); padding: 7px 9px; border-radius: 6px; text-decoration: none; }
.inspector-buttons button { color: var(--accent); background: #f6f3ff; border-color: #e0d7fa; }
.usage-heading { font-size: 10px; letter-spacing: 1px; color: var(--muted); margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--border); }
.usage-action { margin-top: 18px; }
.usage-action h4 { display: flex; align-items: center; gap: 7px; font: 600 12px ui-monospace, monospace; margin: 0 0 10px; }
.usage-action h4 a { color: #4a5871; text-decoration: none; }
.version-entry { margin-top: 9px; }
.version-button { font: 11px ui-monospace, monospace; max-width: 100%; overflow-wrap: anywhere; text-align: left; padding: 6px 9px; color: #6951b5; border-color: #e0d7f6; background: #f5f2fe; }
.version-button[aria-pressed="true"] { background: #6951b5; color: white; }
.workflow-details { font-size: 10px; color: var(--muted); margin-top: 7px; }
.workflow-links { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 13px; }
.workflow-links a { font: 10px ui-monospace, monospace; overflow-wrap: anywhere; color: #5e6d89; }
.trends-intro { padding: 24px; margin-bottom: 20px; }
.trends-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 18px; }
.trends-toolbar h2 { font-size: 24px; letter-spacing: -0.5px; margin-top: 3px; }
#history-summary { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 8px; }
.trend-metric { width: 210px; flex: none; }
.trend-metric select { font-size: 14px; }
.trend-context, .trend-help { font-size: 13px; line-height: 1.8; color: #536078; max-width: 1100px; }
.trend-context strong { color: #34425c; }
.trend-help { margin-top: 10px; color: var(--muted); font-size: 12px; }
.trend-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trend-card { padding: 20px; }
.trend-card h3 { display: flex; align-items: center; gap: 9px; font: 650 18px ui-monospace, monospace; }
.trend-card h3 .action-dot { width: 10px; height: 10px; }
.trend-total { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 15px 0 4px; }
.trend-total strong { display: block; color: #233047; font-size: 32px; letter-spacing: -1px; }
.trend-change { font-size: 12px; line-height: 1.7; color: var(--muted); margin-bottom: 18px; }
.trend-plot { display: block; width: 100%; background: #101b30; border-radius: 10px; overflow: visible; }
.trend-plot text { fill: #b8c5dc; font: 18px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.trend-grid { stroke: #b8c5dc29; }
.trend-line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.trend-cursor { stroke: #dce5f1; stroke-width: 1; stroke-dasharray: 4 4; }
.trend-reading { min-height: 66px; padding: 13px 0 6px; font-size: 12px; line-height: 1.8; color: #536078; overflow-wrap: anywhere; }
.trend-reading strong, .trend-reading time { display: block; }
.trend-reading strong { font-size: 14px; color: #233047; }
.trend-data { border-top: 1px solid var(--border); padding-top: 13px; font-size: 12px; color: var(--muted); }
.trend-data summary { color: var(--accent); font-weight: 600; }
.trend-table-wrap { overflow-x: auto; max-height: 400px; margin-top: 12px; }
.trend-data table { border-collapse: collapse; width: 100%; font-size: 11px; color: #45516a; }
.trend-data caption { text-align: left; padding-bottom: 10px; line-height: 1.7; }
.trend-data th, .trend-data td { border-bottom: 1px solid var(--border); padding: 9px 7px; text-align: right; white-space: nowrap; }
.trend-data th:first-child, .trend-data td:first-child { text-align: left; }
.history-state { text-align: center; padding: 50px 24px; }
.history-state h3 { font-size: 20px; }
.history-state p { font-size: 13px; line-height: 1.8; margin: 12px 0 18px; color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 18px; padding: 24px 0; font-size: 10px; color: var(--muted); line-height: 1.7; }
footer a { color: #536078; }
@media (min-width: 1600px) {
  .workspace { grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 22px; }
  .graph-stage { height: 760px; }
}
@media (max-width: 1200px) {
  body { padding: 0 18px; }
  .workspace { grid-template-columns: 260px minmax(0, 1fr); gap: 16px; }
  .explorer { grid-row: span 2; }
  .inspector { grid-column: 2; min-height: 0; }
  .inspector-placeholder { padding: 22px; }
  .inspector-placeholder .connection-mark, .inspector-placeholder .action-key { display: none; }
  .inspector-placeholder p:last-of-type { margin-bottom: 0; }
  .inspector-content { padding-top: 18px; }
  .graph-stage { height: 670px; }
  .overview { gap: 20px; }
  .trend-charts { grid-template-columns: 1fr; }
  .trend-card { display: grid; grid-template-columns: minmax(170px, 0.4fr) minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .trend-card h3 { grid-column: 1; grid-row: 1; }
  .trend-total { grid-column: 1; grid-row: 2; }
  .trend-change { grid-column: 1; grid-row: 3; }
  .trend-plot { grid-column: 2; grid-row: 1 / span 3; }
  .trend-reading { grid-column: 2; grid-row: 4; }
  .trend-data { grid-column: 1 / -1; grid-row: 5; }
}
@media (max-width: 760px) {
  body { padding: 0 12px; }
  .page-header { padding: 18px 0; flex-wrap: wrap; gap: 12px; }
  .brand { width: 100%; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 32px; height: 32px; }
  .header-links { gap: 10px; margin-left: 44px; }
  .source-link { display: none; }
  .button.subtle { padding: 9px 10px; font-size: 10px; }
  .intro { flex-direction: column; align-items: flex-start; gap: 20px; padding: 22px 0; }
  h1 { font-size: 25px; }
  .intro p { font-size: 12px; }
  .overview { gap: 32px; }
  .overview strong { font-size: 22px; }
  .workspace { display: flex; flex-direction: column; gap: 15px; }
  .view-tabs button { padding: 11px 14px; font-size: 13px; }
  .trends-intro, .trend-card { padding: 18px; }
  .trends-toolbar { flex-direction: column; gap: 18px; }
  .trend-metric { width: 100%; }
  .trend-context { font-size: 12px; }
  .trend-card { display: block; }
  .trend-plot text { font-size: 22px; }
  .panel { width: 100%; }
  .map-panel { order: 0; }
  .explorer { order: 1; }
  .inspector { order: 2; }
  .inspector.is-pinned { position: fixed; left: 12px; right: 12px; bottom: 12px; width: auto; max-height: min(56vh, max(180px, calc(100vh - 328px))); overflow-y: auto; overscroll-behavior: contain; z-index: 8; box-shadow: 0 0 0 1px #d4dbea, 0 -12px 50px #12244330; }
  .inspector.is-pinned .panel-heading { position: sticky; top: 0; background: white; z-index: 1; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  .map-toolbar { padding: 14px; }
  .map-toolbar .eyebrow { font-size: 7px; }
  .map-toolbar h2 { font-size: 16px; }
  .mobile-filter-link { display: block; font-size: 11px; margin-right: 4px; }
  .graph-stage { height: 470px; }
  .map-panel:has(~ .inspector.is-pinned) .graph-stage { height: clamp(264px, calc(44vh - 100px), 470px); }
  .graph-help { font-size: 10px; padding: 12px 14px 8px; }
  .map-caption { font-size: 9px; top: 14px; left: 14px; }
  .map-legend { left: 14px; font-size: 9px; }
  .repository-list { height: 320px; }
  footer { flex-direction: column; gap: 8px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
