:root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #e9edf4; background: #10151e; color-scheme: dark; line-height: 1.5;
    --surface: #19212e; --border: #303e51; --muted: #a8b6ca; --accent: #9be0d0;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #d4fff4; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a9f5e1; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; background: #e4fff7; color: #10251e; padding: 14px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.app-shell { display: grid; grid-template-columns: 228px minmax(0,1fr); grid-template-rows: auto 1fr auto; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 24px; min-height: 88px; padding: 17px 30px; background: #141c28; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #f3f5fa; text-decoration: none; font-weight: 760; font-size: 13px; letter-spacing: 1.3px; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #87c8b9; border-radius: 12px; background: #263e3c; font-size: 17px; letter-spacing: -1px; color: #c5ffec; }
.brand small { display: block; font-size: 12px; font-weight: 400; letter-spacing: .2px; margin-top: 3px; color: var(--muted); }
.environment { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 11px; color: #b8c5d5; overflow-wrap: anywhere; min-width: 0; }
.environment b { color: #f1d293; background: #352f24; border: 1px solid #67573c; border-radius: 5px; padding: 4px 8px; letter-spacing: 1.1px; white-space: nowrap; }
.topbar form, .topbar > .staff-home { margin-left: auto; }
.topbar .quiet { min-height: 40px; padding: 8px 13px; font-size: 12px; }
.main-nav { grid-column: 1; grid-row: 2 / 4; display: flex; flex-direction: column; align-items: stretch; padding: 27px 16px; gap: 4px; background: #141c28; border-right: 1px solid var(--border); min-width: 0; }
.nav-group-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: #8a9cb4; font-weight: 700; padding: 12px 14px 7px; }
.nav-group-label:not(:first-child) { margin-top: 16px; }
.main-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #b9c7d8; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 550; }
.main-nav a:hover { background: #202e3e; color: #edf8ff; }
.main-nav a[aria-current=page] { color: #c0f8e7; background: #24423f; border-color: #3b625b; }
.nav-icon { width: 19px; text-align: center; font-size: 20px; line-height: 1; color: #89a0b8; }
[aria-current=page] .nav-icon { color: #a5e4d2; }
.nav-footnote { margin-top: 42px; border-top: 1px solid var(--border); padding: 22px 10px; font-size: 11px; color: #bcc9d7; }
.nav-footnote p { font-size: 11px; color: #8295ad; line-height: 1.7; margin-bottom: 0; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #94d4be; margin-right: 7px; }
main { min-width: 0; max-width: 1400px; margin: 0 auto; padding: 28px 34px 52px; }
.app-shell > main { grid-column: 2; grid-row: 2; width: 100%; }
.access-shell { background: radial-gradient(ellipse at 50% 0%,#233d44 0,transparent 55%), #10151e; }
.access-shell main { padding-top: 46px; }
.context-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 21px; color: #b1c0d3; font-size: 12px; }
.context-bar > span > span { color: #5f768d; padding: 0 9px; }
.environment-note { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 15px; border-left: 3px solid #9b8052; background: #27271f; color: #c9c4b7; padding: 11px 15px; margin-bottom: 31px; font-size: 12px; border-radius: 0 7px 7px 0; }
.environment-note strong { color: #edd6a4; font-size: 12px; white-space: nowrap; }
h1 { font-size: clamp(28px,3vw,38px); line-height: 1.15; letter-spacing: -1.1px; margin: 10px 0 16px; font-weight: 700; }
h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.35px; }
h3 { font-size: 18px; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 1.7px; color: #9ad2c6; margin-top: 0; }
.lead { font-size: 15px; color: var(--muted); max-width: 790px; line-height: 1.7; margin-bottom: 27px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 25px; margin: 20px 0; }
.panel > h2:first-child { margin-top: 0; }
.panel p { line-height: 1.7; }
.auth { max-width: 520px; margin: 20px auto; padding: 34px; box-shadow: 0 20px 60px #0003; }
.auth p { line-height: 1.65; }
.tiles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.tile { text-decoration: none; color: inherit; transition: background .15s, border-color .15s; min-width: 0; }
.tile:hover { background: #1d2c3a; border-color: #668d86; color: inherit; }
.tile strong { color: #ace3d3; font-size: 13px; }
.tile p { color: var(--muted); font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.card { margin: 0; padding: 22px; min-width: 0; }
.card h2 { min-height: 55px; }
.badge { display: inline-block; font-size: 11px; color: #c7d3e3; background: #253346; border: 1px solid #394c64; padding: 4px 9px; border-radius: 5px; }
label { display: block; margin: 16px 0; color: #ccd8e6; font-weight: 600; font-size: 13px; }
input { display: block; width: 100%; background: #101924; color: #f4f7fb; border: 1px solid #485b73; border-radius: 7px; padding: 12px; min-height: 46px; margin-top: 7px; }
.check { display: flex; gap: 12px; align-items: center; font-weight: 400; }
.check input { width: 18px; min-height: 18px; margin: 0; flex-shrink: 0; accent-color: #75bba8; }
button, .button { display: inline-block; min-height: 46px; border-radius: 7px; padding: 11px 17px; background: #a5dfcd; color: #152e28; border: 1px solid #b9efdf; font-size: 13px; font-weight: 720; text-align: center; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: #c4f2e5; color: #102b22; }
.auth button, .auth .button { width: 100%; margin-top: 8px; }
.quiet { background: #202d3d; border-color: #465a73; color: #d4dfed; }
.quiet:hover { background: #2a3b50; color: #fff; }
.notice { background: #3a2c23; border: 1px solid #ab814f; padding: 16px 22px; border-radius: 9px; max-width: 850px; margin: 0 auto 24px; }
.qr { display: block; width: min(100%,300px); height: auto; background: white; padding: 12px; margin: 25px auto; border-radius: 10px; }
.recovery { background: #0e1622; border: 1px solid #46576c; padding: 18px; border-radius: 9px; display: grid; gap: 12px; font-size: 13px; overflow-wrap: anywhere; }
code { font-family: ui-monospace,Consolas,monospace; overflow-wrap: anywhere; }
.search { display: flex; align-items: flex-end; gap: 13px; flex-wrap: wrap; margin: 24px 0; background: #151f2b; border: 1px solid #2d3a4c; padding: 18px; border-radius: 10px; }
.search label { flex: 1; min-width: 180px; margin: 0; }
.search a { padding: 12px; font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th { color: #a2b5cb; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; font-weight: 650; background: #151e2a; }
th, td { padding: 15px 12px; border-bottom: 1px solid #2e3d50; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #213041; }
td code { font-size: 12px; }
dl { margin-bottom: 0; }
dt { font-size: 10px; text-transform: uppercase; letter-spacing: .9px; color: #97aec7; margin-top: 16px; }
dd { margin: 4px 0 12px; }
.facts { display: grid; grid-template-columns: 160px 1fr; gap: 12px; }
.facts dt, .facts dd { margin: 0; }
summary { cursor: pointer; color: #c7e8df; font-size: 14px; font-weight: 650; padding: 3px 0; }
details[open] summary { margin-bottom: 20px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 28px; color: #9daec4; font-size: 13px; }
li { padding: 4px 0; }
footer { max-width: 1400px; width: 100%; margin: auto; padding: 24px 34px; color: #a2b4c8; font-size: 10px; letter-spacing: 1px; border-top: 1px solid #293648; }
footer span { display: block; margin-top: 6px; letter-spacing: 0; color: #8498b1; font-size: 11px; }
.app-shell > footer { grid-column: 2; grid-row: 3; }
.page-heading, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.page-heading .lead { margin-bottom: 10px; }
.page-heading .button { flex-shrink: 0; }
.snapshot-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; color: #90a4bc; font-size: 11px; margin: 26px 0 11px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.metric-card { display: flex; flex-direction: column; text-decoration: none; min-width: 0; background: #182332; border: 1px solid #34485f; border-radius: 10px; padding: 19px 21px; color: #c6d4e4; }
.metric-card:hover { border-color: #82ad9f; color: #e0f7ef; }
.metric-card > span { font-size: 12px; }
.metric-card strong { font-size: 36px; color: #e3f5ed; font-weight: 650; letter-spacing: -1.6px; line-height: 1.3; margin: 11px 0 9px; }
.metric-card small { color: #9fb2ca; font-size: 10px; line-height: 1.6; }
.section-heading { margin-top: 30px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; font-size: 17px; }
.workspace-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.workspace-grid > .panel { margin: 0; }
.workspace-icon { display: block; color: #acd8ca; font-size: 26px; margin-bottom: 17px; }
.workspace-grid .tile h2 { margin: 10px 0; font-size: 20px; }
.workspace-grid .tile .eyebrow { font-size: 9px; }
.frame-feature { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1fr) 235px; gap: 35px; background: linear-gradient(120deg,#1c3437,#1c2635); border-color: #3e5b5b; padding: 30px; }
.frame-feature h2 { max-width: 420px; font-size: 26px; line-height: 1.3; margin-top: 14px; }
.frame-feature p:not(.eyebrow) { color: #b4c9d2; max-width: 570px; font-size: 14px; margin-bottom: 25px; }
.frame-release-summary { border-left: 1px solid #44615f; padding-left: 30px; display: flex; flex-direction: column; align-items: flex-start; }
.status-label { color: #b2cfc6; font-size: 11px; }
.frame-release-summary > strong { font-size: 32px; letter-spacing: -1px; margin: 3px 0 9px; }
.draft-label { background: #293a4b; border: 1px solid #506170; border-radius: 5px; padding: 4px 9px; color: #c9d7e3; font-size: 11px; }
.workflow-steps { padding-left: 17px; color: #9fb8c2; font-size: 12px; margin-bottom: 0; }
.guardrail-panel, .support-shortcut { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px 26px; }
.guardrail-panel > div, .support-shortcut > div { flex: 1; min-width: 230px; }
.guardrail-panel h2 { font-size: 18px; }
.guardrail-panel p:not(.eyebrow), .support-shortcut p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 13px; }
.guardrail-panel .button, .support-shortcut .button { flex-shrink: 0; }
.support-shortcut { border-color: #476457; background: #192d2a; }
@media(max-width:1100px) {
    .app-shell { grid-template-columns: 194px minmax(0,1fr); }
    .main-nav { padding: 23px 10px; }
    .main-nav a { gap: 8px; font-size: 13px; }
    main { padding: 26px 24px 44px; }
    .topbar { gap: 16px; padding: 16px 24px; }
    .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .frame-feature { grid-template-columns: minmax(0,1fr) 195px; gap: 24px; padding: 24px; }
    .frame-release-summary { padding-left: 23px; }
}
@media(max-width:850px) {
    .app-shell { display: block; }
    .main-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 12px 18px; border-right: 0; border-bottom: 1px solid var(--border); }
    .main-nav a { padding: 9px 11px; }
    .nav-group-label, .nav-footnote { display: none; }
    .environment { flex: 1; }
    .tiles { grid-template-columns: 1fr; }
    .topbar { gap: 14px 24px; }
    .topbar form { margin-left: 0; }
    main { padding-top: 22px; }
    .page-heading .button { margin-bottom: 8px; }
}
@media(max-width:540px) {
    .topbar { padding: 18px; gap: 16px; }
    .brand { width: 100%; }
    .environment { max-width: 100%; }
    .environment > span { width: 100%; }
    .main-nav { gap: 4px; padding: 10px; }
    .main-nav a { font-size: 12px; padding: 8px 9px; gap: 7px; }
    .nav-icon { font-size: 17px; width: 17px; }
    main { padding: 23px 16px 36px; }
    .context-bar { margin-bottom: 15px; }
    .environment-note { font-size: 11px; margin-bottom: 25px; }
    .panel { padding: 20px; border-radius: 10px; }
    .auth { margin: 0 auto; padding: 25px; }
    .access-shell main { padding-top: 26px; }
    .cards, .workspace-grid { grid-template-columns: 1fr; }
    .metric-grid { gap: 10px; }
    .metric-card { padding: 16px 13px; }
    .metric-card strong { font-size: 32px; }
    .metric-card > span { font-size: 11px; }
    .frame-feature { grid-template-columns: 1fr; gap: 25px; }
    .frame-feature h2 { font-size: 24px; }
    .frame-release-summary { padding: 20px 0 0; border-left: 0; border-top: 1px solid #44615f; }
    .facts { grid-template-columns: 1fr; gap: 4px; }
    .facts dd { margin-bottom: 14px; }
    .search { padding: 15px; gap: 12px; }
    .search label { min-width: 100%; }
    .search button { width: 100%; }
    th, td { padding: 12px 8px; }
    .card h2 { min-height: 0; }
    footer { padding: 20px 16px; }
    .guardrail-panel > div, .support-shortcut > div { min-width: 0; flex-basis: 100%; }
}
@media(prefers-reduced-motion:reduce) { * { transition: none!important; scroll-behavior: auto!important; } }
