:root {
  --bg: #0c0f0e;
  --panel: #131816;
  --panel-soft: #171d1a;
  --text: #edf2ec;
  --muted: #8e9a92;
  --line: #2a342e;
  --lime: #c8ee62;
  --mint: #6ce0a3;
  --blue: #79b7ff;
  --orange: #ff9d63;
  --purple: #b394ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
.app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 26px 20px; border-right: 1px solid var(--line); background: #0d1110; }
.brand { display: flex; align-items: center; gap: 11px; margin-bottom: 48px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--lime); color: var(--lime); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { padding: 10px 11px; border-left: 2px solid transparent; color: var(--muted); font-size: 13px; }
.side-nav a:hover, .side-nav a.active { border-left-color: var(--lime); color: var(--text); background: rgba(200, 238, 98, .06); }
.sidebar-foot { display: flex; gap: 8px; align-items: center; margin-top: auto; color: var(--muted); font-size: 11px; }
.status-dot, .live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(108, 224, 163, .1); }
.main-content { width: min(1280px, 100%); margin: 0 auto; padding: 42px clamp(22px, 5vw, 72px) 32px; }
.topbar { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; padding-bottom: 40px; }
.eyebrow { margin: 0 0 12px; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 16px; font-size: clamp(2.7rem, 6vw, 5.8rem); line-height: .94; letter-spacing: -.04em; font-weight: 760; }
.lede { max-width: 640px; margin-bottom: 0; color: var(--muted); font-size: 17px; }
.topbar-meta { display: grid; gap: 9px; justify-items: end; color: var(--muted); font-size: 11px; white-space: nowrap; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); color: var(--text); }
.command-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 78px; }
.command { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; padding: 17px; border: 1px solid var(--line); background: var(--panel); }
.command:hover, .command.primary { border-color: rgba(200, 238, 98, .58); background: linear-gradient(135deg, rgba(200,238,98,.11), rgba(19,24,22,.92)); }
.command span { grid-row: span 2; color: var(--lime); font: 12px/1.5 "SFMono-Regular", Consolas, monospace; }
.command strong { font-size: 14px; }
.command small { color: var(--muted); font-size: 11px; }
.section-block { scroll-margin-top: 28px; margin-bottom: 84px; }
.section-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 22px; }
.section-heading.compact { align-items: start; }
h2 { margin-bottom: 0; font-size: clamp(1.45rem, 3vw, 2.25rem); line-height: 1.05; letter-spacing: -.025em; }
.section-note { max-width: 430px; margin: 0; color: var(--muted); font-size: 13px; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.project-card { min-height: 300px; padding: 20px; border: 1px solid var(--line); border-top: 2px solid var(--mint); background: var(--panel); }
.project-di { border-top-color: var(--mint); }.project-kid { border-top-color: var(--purple); }.project-topo { border-top-color: var(--blue); }.project-true { border-top-color: var(--orange); }
.project-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.project-code { color: var(--lime); font: 11px "SFMono-Regular", Consolas, monospace; }
.stage { color: var(--muted); font-size: 10px; text-align: right; }
.project-card h3 { margin-bottom: 4px; font-size: 24px; letter-spacing: -.03em; }
.project-cn { margin-bottom: 16px; color: var(--muted); font-size: 12px; }
.project-card > p:not(.project-cn) { min-height: 70px; color: #bdc7bf; font-size: 13px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 25px; }
.tag-row span { padding: 4px 6px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.project-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; color: var(--lime); font-size: 11px; }
.project-links a:hover, .footer a:hover { text-decoration: underline; }
.split-section { padding-top: 2px; }
.system-table { border-top: 1px solid var(--line); }
.table-head, .table-row { display: grid; grid-template-columns: 1.15fr 1.5fr .8fr; gap: 18px; align-items: center; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.table-head { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.table-row { background: rgba(19,24,22,.55); font-size: 12px; }.table-row strong { font-size: 13px; }.table-row span, .table-row em { color: var(--muted); font-style: normal; }
.infra-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.infra-card { min-height: 195px; padding: 18px; border: 1px solid var(--line); background: var(--panel); }
.infra-label { color: var(--lime); font: 10px "SFMono-Regular", Consolas, monospace; }
.infra-card h3 { margin: 26px 0 9px; font-size: 17px; }.infra-card p { min-height: 67px; margin-bottom: 13px; color: var(--muted); font-size: 12px; }.infra-card code { color: #b7c3bb; font: 10px "SFMono-Regular", Consolas, monospace; word-break: break-word; }
.arrow { color: var(--lime); }.service-line { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; padding: 13px 15px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }.service-line strong { color: var(--text); font-weight: 600; }.service-line span { color: var(--lime); font: 10px "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }
.workflow-line { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 20px; }.workflow-line > div { min-height: 130px; padding: 16px; border-top: 1px solid var(--lime); border-right: 1px solid var(--line); background: var(--panel); }.workflow-line > div:last-child { border-right: 0; }.workflow-line b { display: block; margin-bottom: 22px; color: var(--lime); font: 11px "SFMono-Regular", Consolas, monospace; }.workflow-line strong, .workflow-line span { display: block; }.workflow-line strong { margin-bottom: 5px; font-size: 13px; }.workflow-line span { color: var(--muted); font-size: 11px; }
.approval-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.approval-grid > div { padding: 18px; border: 1px solid var(--line); background: var(--panel); }.approval-grid h3 { margin-bottom: 15px; font-size: 13px; }.approval-grid p { margin-bottom: 8px; color: var(--muted); font-size: 12px; }.approval-grid p:last-child { margin-bottom: 0; }.approval-grid strong { color: var(--text); font-weight: 600; }
.sop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.sop-card { display: grid; grid-template-columns: 35px 1fr; column-gap: 10px; padding: 16px; border: 1px solid var(--line); background: var(--panel); }.sop-card:hover { border-color: var(--lime); }.sop-card span { grid-row: span 2; color: var(--lime); font: 11px "SFMono-Regular", Consolas, monospace; }.sop-card strong { font-size: 13px; }.sop-card small { color: var(--muted); font-size: 11px; }
.downloads-section { margin-bottom: 46px; }.download-list { border-top: 1px solid var(--line); }.download-list a { display: grid; grid-template-columns: 50px 1.2fr 1fr auto; gap: 14px; align-items: center; padding: 14px 15px; border-bottom: 1px solid var(--line); background: var(--panel); }.download-list a:hover { background: var(--panel-soft); }.file-type { color: var(--lime); font: 10px "SFMono-Regular", Consolas, monospace; }.download-list strong { font-size: 13px; }.download-list small, .download-list b { color: var(--muted); font-size: 11px; font-weight: 400; }.download-list b { color: var(--lime); }.download-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.footer { display: flex; justify-content: space-between; gap: 15px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }.footer a { color: var(--lime); }
@media (max-width: 1100px) { .project-grid { grid-template-columns: repeat(2, 1fr); }.infra-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .app-shell { display: block; }.sidebar { position: sticky; z-index: 5; top: 0; display: block; width: 100%; height: auto; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }.brand { margin-bottom: 10px; }.side-nav { display: flex; gap: 2px; overflow-x: auto; }.side-nav a { flex: 0 0 auto; padding: 7px 9px; border-left: 0; border-bottom: 2px solid transparent; font-size: 11px; }.side-nav a:hover, .side-nav a.active { border-bottom-color: var(--lime); background: none; }.sidebar-foot { display: none; }.main-content { padding-top: 28px; }.topbar { display: block; }.topbar-meta { display: flex; justify-content: space-between; margin-top: 20px; }.command-strip { grid-template-columns: 1fr; margin-bottom: 56px; }.section-heading { display: block; }.section-note { margin-top: 14px; }.workflow-line { grid-template-columns: 1fr; }.workflow-line > div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }.approval-grid, .sop-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { h1 { font-size: 2.8rem; }.project-grid, .infra-grid { grid-template-columns: 1fr; }.table-head { display: none; }.table-row { grid-template-columns: 1fr; gap: 4px; }.download-list a { grid-template-columns: 42px 1fr auto; }.download-list small { grid-column: 2; }.download-list b { grid-column: 3; grid-row: 1 / span 2; }.footer { display: grid; } }
