/* Visual vocabulary: cai-build-system builds-astro Shell, BuildsApp and Overview.
   Keep the live reference's canvas, type, spacing, row surfaces and status palette. */
@font-face { font-family: Inter; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
:root { color-scheme: dark; --bg: #06070f; --surface: #0d0e16; --text: #eef1f7; --muted: #9ba5b7; --line: #ffffff12; --accent: #93c5fd; --live: #34d399; --failed: #f87171; --radius: 16px; --font-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font-sans); letter-spacing: .2px; font-feature-settings: 'calt', 'kern', 'liga', 'ss03'; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #60a5fa; outline-offset: 4px; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: 28px; font-weight: 600; letter-spacing: -.7px; line-height: 1.3; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
h3 { font-size: 15px; font-weight: 600; }
p { color: #b4bdcc; }
.shell { max-width: 1304px; padding: 28px 32px; margin: 0 auto; min-height: 100vh; }
.masthead { display: flex; align-items: center; gap: 24px; min-height: 40px; }
.brand { display: inline-flex; align-items: center; gap: 20px; color: var(--text); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 180px; height: 18px; }
.brand > span { border-left: 1px solid #ffffff26; padding-left: 20px; font-weight: 600; }
.search { display: flex; gap: 10px; align-items: center; margin-left: auto; width: 290px; padding: 7px 12px; background: #ffffff04; border: 1px solid var(--line); border-radius: 8px; }
.search > span { font-size: 12px; color: var(--muted); }
input { min-width: 0; width: 100%; border: 0; background: transparent; color: var(--text); font-size: 13px; }
input::placeholder { color: var(--muted); }
.host-status { font-size: 12px; color: var(--muted); white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 24px 0 32px; }
nav a { padding: 8px 14px; min-height: 36px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
nav a:hover { background: #ffffff08; color: var(--text); text-decoration: none; }
nav a.active { color: #bfdbfe; background: #3b82f620; }
.nav-icon { display: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 44px; }
.page-heading p { margin-top: 8px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 40px; padding: 8px 16px; background: #ffffff06; color: #d7dde7; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 600; }
.button:hover { text-decoration: none; background: #ffffff0c; }
.button.primary { background: #3b82f620; color: #bfdbfe; border-color: #60a5fa33; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 40px 0 16px; }
.section-head:first-child { margin-top: 0; }
.section-head a { font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.card,.panel,.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.card { padding: 22px; display: flex; flex-direction: column; }
.card p { font-size: 13px; margin-top: 6px; }
.links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.card .links { margin-top: auto; padding-top: 18px; }
.project-list { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.project { display: grid; grid-template-columns: minmax(0,1fr) 190px 240px; gap: 24px; align-items: center; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 20px; background: transparent; }
.project:last-child { border-bottom: 0; }
.project .links { margin: 0; padding: 0; justify-content: flex-end; }
.meta { font-size: 13px; color: var(--muted); }
.panel-title { padding: 20px; border-bottom: 1px solid var(--line); }
.home-services .panel-title,.home-hardware .panel-title { display: none; }
.service { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.service strong { font-size: 15px; font-weight: 500; }
.service strong a { color: var(--text); }
.service p { font-size: 13px; margin-top: 4px; color: var(--muted); }
.status { color: var(--muted); font-size: 13px; white-space: nowrap; }
.status::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #8a94a8; }
.status.running { color: #6ee7b7; }
.status.running::before { background: var(--live); }
.status.failed { color: #fca5a5; }
.status.failed::before { background: var(--failed); }
.note { color: var(--muted); font-size: 12px; padding: 12px 20px; }
.specs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; padding: 20px; }
.specs span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.specs strong { font-weight: 500; font-size: 14px; }
.two-col { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 24px; }
.two-col .specs { grid-template-columns: repeat(2,minmax(0,1fr)); }
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.welcome p { max-width: 720px; margin-top: 8px; }
.host-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); margin-bottom: 8px; }
.resource-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.resource-list > a { padding: 16px 20px; display: flex; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; }
.resource-list > .step { grid-column: 1/-1; }
.step { padding: 24px; }
.step h2 { margin-bottom: 10px; }
.step p + p { margin-top: 12px; }
.steps { display: grid; gap: 16px; }
.intro { margin-bottom: 24px; max-width: 820px; }
pre { padding: 16px; background: #00000030; border: 1px solid var(--line); border-radius: 8px; overflow: auto; font-size: 12px; color: #d7dde7; margin: 16px 0; }
code { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.small { font-size: 13px; }
.metric { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tile { display: grid; place-items: center; width: 36px; height: 36px; background: #3b82f61a; color: #bfdbfe; border-radius: 8px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.avatar { border-radius: 50%; }
.badge { font-size: 12px; color: var(--muted); margin-top: 12px; }
.delivery-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.segmented { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff04; }
.segmented button { min-height: 30px; padding: 4px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: #3b82f620; color: #bfdbfe; }
.dora-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card.dora { padding: 20px; }
.card.dora .metric { margin: 14px 0 2px; }
.card .dora-hint, .card .dora-detail { font-size: 12px; color: var(--muted); margin-top: 2px; }
.spark { display: block; width: 100%; height: 44px; margin-top: 16px; overflow: visible; }
.spark-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dora-coverage { margin-top: 16px; }
.coverage { padding: 0 20px 14px; font-size: 12px; color: var(--muted); }
.coverage summary { cursor: pointer; color: #b4bdcc; }
.coverage ul { margin: 8px 0 0; padding-left: 18px; }
.coverage li + li { margin-top: 4px; }
.evolution { margin-top: 32px; }
.evolution-line { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.evolution-item { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 1px solid var(--line, #ffffff1f); border-radius: 12px; color: inherit; text-decoration: none; }
.evolution-item:hover, .evolution-item:focus-visible { border-color: #60a5fa; }
.evolution-item span { font-size: 12px; color: var(--muted); }
.evolution-item strong { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.evolution-item small { font-size: 12px; color: var(--muted); }
.dora-line { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; padding: 20px 20px 4px; }
.dora-line span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.dora-line strong { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.delivery-after { margin-top: 40px; }
.warning,.error { background: #fbbf240a; border: 1px solid #fbbf2430; color: #fcd34d; padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; font-size: 13px; }
.error { color: #fca5a5; border-color: #f8717130; background: #f871710a; }
.warning .button,.error .button { margin-left: 12px; }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 48px; font-size: 12px; color: var(--muted); }
.skip { position: absolute; top: -100px; left: 16px; background: var(--surface); padding: 12px; z-index: 10; }
.skip:focus { top: 12px; }
.clipboard-copy { position: fixed; left: -10000px; top: 0; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ffffff17; border-radius: 5px; }
@media(max-width:1000px) { .project { grid-template-columns: minmax(0,1fr) 140px; } .project .links { grid-column: 1/-1; justify-content: flex-start; } .grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .two-col { grid-template-columns: 1fr; } .host-status { display: none; } .dora-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .evolution-line { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .shell { padding: 20px; } .masthead { flex-wrap: wrap; gap: 18px; } .brand img { width: 160px; height: 16px; } .search { width: 100%; } nav { gap: 2px; margin-bottom: 28px; } nav a { padding: 10px 12px; } .page-heading { align-items: flex-start; gap: 12px; margin-bottom: 32px; } .page-heading > .button { padding: 8px 10px; font-size: 12px; } .page-heading p { font-size: 14px; } .project { grid-template-columns: 1fr; gap: 12px; } .project .links { grid-column: auto; } .grid,.resource-list,.dora-grid,.evolution-line { grid-template-columns: 1fr; } .dora-line { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; } .section-head { flex-wrap: wrap; } .specs { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; } .service { align-items: flex-start; gap: 12px; } .status { white-space: normal; max-width: 110px; text-align: right; } .welcome { flex-direction: column; align-items: flex-start; } .section-head { margin-top: 32px; } footer { flex-wrap: wrap; } }
.disk-alert { font-size: 14px; border-width: 2px; }
