/* All typography, icons and graphics are local. No network requests are needed. */
:root {
  color-scheme: dark;
  --bg: #0b1522;
  --sidebar: #101a1c;
  --panel: #132334;
  --panel-raised: #192c40;
  --border: #355069;
  --border-soft: #2c4156;
  --text: #edf3ef;
  --muted: #a9bed2;
  --subtle: #9aadb9;
  --mint: #a1e7bf;
  --mint-dark: #254b3c;
  --cyan: #78bdc2;
  --amber: #e6bc7b;
  --red: #f29c92;
  --radius: 12px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button, input, select, textarea { transition: border-color .18s ease, background-color .18s ease, color .18s ease, opacity .18s ease; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: var(--mint); text-decoration: none; }
a:hover { color: #c7f8db; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
button { border: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: .02em; }
h3 { font-size: 15px; font-weight: 600; }
p { margin-bottom: 12px; }
small, .small { font-size: 12px; }
svg { max-width: 100%; display: block; }
svg text { font-family: inherit; }
canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: #41654f; color: #fff; }
::-webkit-scrollbar { width: 7px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #344749; border-radius: 6px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 18px; background: var(--mint); color: var(--bg); border-radius: 6px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.good { color: var(--mint); }
.bad { color: var(--red); }
.warning { color: var(--amber); }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--mint); border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 3px #a1e7bf0b; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 228px; display: flex; flex-direction: column; padding: 30px 16px 18px; background: var(--sidebar); border-right: 1px solid var(--border-soft); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 36px; color: var(--text); font-size: 21px; font-weight: 650; letter-spacing: .12em; line-height: 1.35; }
.brand:hover { color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 35px; height: 38px; border: 1px solid #557463; border-radius: 8px; color: var(--mint); font-size: 29px; font-weight: 400; line-height: 1; letter-spacing: 0; background: #182c23; }
.brand small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 8px; font-weight: 500; letter-spacing: 1.2px; color: var(--muted); }
.sidebar-caption { display: flex; justify-content: space-between; gap: 8px; padding: 0 14px; margin: 0 0 12px; color: var(--subtle); font-size: 10px; letter-spacing: .13em; }
.sidebar-caption span { font-family: var(--mono); letter-spacing: 0; }
.main-nav { display: grid; gap: 5px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 14px; background: transparent; border: 1px solid transparent; border-radius: 7px; text-align: left; color: var(--muted); font-size: 13px; white-space: nowrap; }
.nav-item:hover { background: #1a292b; color: var(--text); }
.nav-item.active { color: var(--mint); background: #23372e; border-color: #314b3e; }
.nav-symbol { width: 18px; font-size: 19px; line-height: 1; font-weight: 400; text-align: center; }
.nav-arrow { margin-left: auto; color: var(--mint); }
.nav-dot { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: var(--subtle); }
.nav-dot.active, .nav-dot.running { background: var(--mint); }
.chapter-caption { margin-top: 38px; margin-bottom: 15px; }
.level-list { position: relative; display: grid; gap: 6px; }
.level-button { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 63px; background: transparent; text-align: left; padding: 9px 12px; border-radius: 8px; border: 1px solid transparent; color: var(--muted); }
.level-button:not(:disabled):hover { background: #1a292b; }
.level-button.active { background: #17272a; border-color: #324347; color: var(--text); }
.level-button.locked { opacity: .52; }
.level-num { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; border: 1px solid #35464a; border-radius: 50%; font-family: var(--mono); font-size: 10px; color: var(--muted); background: var(--sidebar); }
.active .level-num { border-color: var(--mint); background: var(--mint); color: #172820; }
.completed .level-num { color: var(--mint); border-color: #4d7a60; }
.level-copy { min-width: 0; font-size: 12px; font-weight: 500; line-height: 1.6; }
.level-copy small, .level-copy span { display: block; font-size: 10px; color: var(--subtle); font-family: var(--mono); font-weight: 400; margin-top: 2px; }
.level-status { margin-left: auto; flex: 0 0 auto; font-size: 10px; color: var(--subtle); }
.sidebar-bottom { margin-top: auto; padding-top: 26px; }
.offline-note { display: flex; align-items: center; gap: 8px; padding: 14px; color: var(--subtle); font-size: 10px; }
.sidebar-bottom .nav-item { border-top: 1px solid var(--border-soft); border-radius: 0; padding-top: 18px; }
.sidebar-footer { margin: 20px 13px 0; color: var(--subtle); font-size: 10px; }
.sidebar-footer span { display: block; margin-top: 6px; color: var(--subtle); font-family: var(--mono); font-size: 10px; letter-spacing: .4px; }
.app-shell { margin-left: 228px; }
.topbar { height: 73px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border-soft); }
.breadcrumb { font-size: 11px; color: var(--subtle); }
.breadcrumb b { font-weight: 400; color: #bbcac6; }
.breadcrumb span span { margin: 0 14px; color: var(--subtle); }
.mobile-brand { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.save-status { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.icon-button { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #3a4e50; border-radius: 50%; background: transparent; color: var(--muted); font-size: 14px; line-height: 1; }
.icon-button:hover { background: var(--panel-raised); color: var(--text); border-color: var(--muted); }
main { max-width: 1560px; margin: 0 auto; padding: 33px 36px 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.eyebrow { color: var(--subtle); font-size: 9px; letter-spacing: 1.65px; font-family: var(--mono); font-weight: 500; }
.page-heading h1 { font-size: clamp(27px, 2.6vw, 38px); line-height: 1.4; letter-spacing: .04em; font-weight: 550; margin: 7px 0; }
.page-heading p { color: var(--muted); font-size: 12px; margin: 0; }
.heading-actions { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 44px; border: 1px solid var(--border); border-radius: 6px; padding: 10px 17px; font-size: 12px; font-weight: 550; white-space: nowrap; }
.button.primary { background: var(--mint); color: #13251b; border-color: var(--mint); }
.button.primary:hover:not(:disabled) { background: #baf2d1; border-color: #baf2d1; box-shadow: 0 3px 20px #a1e7bf13; }
.button.secondary { background: #23372e; color: var(--mint); border-color: #3b5c49; }
.button.secondary:hover:not(:disabled) { background: #2e4739; }
.button.ghost { background: transparent; color: #bdcbc8; border-color: #364649; }
.button.ghost:hover:not(:disabled) { background: #1b2a2d; border-color: #566967; }
.button.danger { color: var(--red); background: #362524; border-color: #6b4240; }
.button-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.text-button { background: none; padding: 0; color: var(--mint); font-size: inherit; }
.text-button:hover { color: #c7f8db; text-decoration: underline; text-underline-offset: 3px; }
.mission-card { position: relative; overflow: hidden; display: flex; justify-content: space-between; min-height: 184px; margin-bottom: 23px; border: 1px solid #304b41; border-radius: var(--radius); background: linear-gradient(100deg, #1e342b 0%, #1a2d28 52%, #142725 100%); }
.mission-card::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#8fb79f05 1px, transparent 1px), linear-gradient(90deg, #8fb79f05 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.mission-copy { position: relative; z-index: 1; padding: 25px 28px; flex: 1; }
.mission-kicker { display: flex; align-items: center; gap: 9px; color: var(--mint); font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.mission-kicker span { font-family: var(--mono); font-size: 9px; color: #b4d7c2; }
.mission-title { font-size: 24px; font-weight: 550; letter-spacing: .025em; margin: 9px 0 7px; line-height: 1.45; }
.mission-description { color: #9fb7ac; font-size: 11px; margin: 0; max-width: 610px; }
.mission-objectives { display: flex; gap: 9px 18px; flex-wrap: wrap; margin-top: 16px; font-size: 10px; color: #bed2c4; }
.mission-objectives > span { display: flex; align-items: center; gap: 6px; }
.mission-objectives > span::before { display: none; }
.mission-art { position: relative; z-index: 1; width: 280px; flex: 0 0 280px; display: grid; place-items: center; padding: 0 16px 0 0; }
.mission-art svg { width: 100%; max-height: 190px; }
.mission-title > span { display: inline; margin-left: 7px; font-size: 13px; font-weight: 400; color: #a3beaf; letter-spacing: 0; }
.mission-orbit { position: absolute; width: 182px; height: 182px; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 1px solid #779a7440; border-radius: 50%; box-shadow: 0 0 0 22px #86a77d0c, 0 0 0 44px #86a77d07; }
.mission-orbit::before { content: ""; position: absolute; inset: 19px; border: 1px dashed #91b58a3d; border-radius: 50%; }
.mission-orbit::after { content: ""; position: absolute; left: 13px; top: 37px; width: 7px; height: 7px; border: 2px solid #bad9aa; border-radius: 50%; background: #24432f; box-shadow: 0 0 12px #a1e7bf2b; }
.mission-number { position: relative; display: block; font-family: var(--mono); font-size: 86px; font-weight: 300; color: #b5dca187; letter-spacing: -7px; line-height: 1; margin: 6px 14px 0 0; }
.mission-art-label { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: #7d9d83; font-family: var(--mono); font-size: 6px; letter-spacing: 1.6px; white-space: nowrap; }
.mission-progress { margin-top: 16px; font-size: 11px; color: #b6cfbf; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 25px; }
.metric-card { padding: 18px 20px 15px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); min-width: 0; }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.metric-label > span:last-child { color: var(--subtle); }
.metric-value { margin: 9px 0 5px; color: var(--text); font-family: var(--mono); font-size: clamp(23px, 2.25vw, 32px); line-height: 1.4; font-weight: 500; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.metric-value .metric-unit, .metric-unit { color: var(--muted); font-size: 11px; font-weight: 400; font-family: inherit; letter-spacing: 0; margin-left: 6px; }
.metric-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--subtle); font-size: 10px; }
.metric-trend { color: var(--mint); font-size: 10px; }
.metric-trend.bad { color: var(--red); }
.metric-card.highlight { border-color: #41634e; }
.metric-card.highlight .metric-value { color: var(--mint); }
.metric-card.negative .metric-value { color: var(--red); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr); gap: 20px; align-items: start; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 21px 22px; border-bottom: 1px solid var(--border-soft); }
.panel-heading > div { display: flex; align-items: center; gap: 11px; min-width: 0; }
.panel-heading h2 { margin: 0; font-size: 14px; }
.panel-heading h3 { margin: 0; font-size: 13px; }
.section-index { font-family: var(--mono); font-size: 10px; color: var(--subtle); }
.tag { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 3px 7px; border-radius: 4px; border: 1px solid #344f41; color: #a0c8ae; background: #20352b; font-size: 9px; white-space: nowrap; }
.tabs { display: flex; padding: 0 20px; gap: 20px; border-bottom: 1px solid var(--border-soft); }
.tab { position: relative; padding: 16px 0 14px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--subtle); font-size: 11px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--mint); border-bottom-color: var(--mint); }
.tab span { font-family: var(--mono); margin-right: 5px; opacity: .65; }
.design-controls { padding: 22px; }
.form-section + .form-section { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--border-soft); }
.form-section h3 { font-size: 12px; margin-bottom: 5px; }
.form-section > p { font-size: 10px; color: var(--muted); margin: 0 0 15px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.section-title h3 { margin-bottom: 0; }
.section-title .small { font-size: 9px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { min-width: 0; margin-bottom: 21px; }
.field-grid .field { margin-bottom: 0; }
.field label, .field-head { color: #c0ceca; font-size: 11px; }
.field > label { display: block; margin-bottom: 9px; }
.field-hint { color: #7f9991; font-size: 9px; line-height: 1.8; margin: 9px 0 0; }
.field-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.field-head label { min-width: 0; }
.range-value { font-family: var(--mono); color: var(--mint); font-size: 13px; white-space: nowrap; }
.range-value small { font-size: 9px; color: var(--muted); }
.range-labels { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; color: var(--subtle); font-family: var(--mono); margin-top: 5px; }
input[type="range"] { --range: 50%; display: block; appearance: none; -webkit-appearance: none; width: 100%; margin: 0; height: 44px; border-radius: 6px; background: transparent; cursor: pointer; accent-color: var(--mint); }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 6px; background: linear-gradient(to right, #8dd3ab 0%, #8dd3ab var(--range), #344448 var(--range), #344448 100%); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 6px; background: linear-gradient(to right, #8dd3ab 0%, #8dd3ab var(--range), #344448 var(--range), #344448 100%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; margin-top: -7px; width: 18px; height: 18px; background: var(--mint); border: 2px solid #d1f8df; border-radius: 50%; box-shadow: 0 0 0 4px #a1e7bf0a; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; background: var(--mint); border: 2px solid #d1f8df; border-radius: 50%; }
input[type="range"]:disabled { opacity: .45; cursor: not-allowed; }
.select-input, select, .glossary-search, input[type="number"], input[type="search"] { appearance: none; width: 100%; padding: 10px 13px; color: #d2ded8; border: 1px solid #3b4d4f; border-radius: 6px; background: #112023; font-size: 12px; min-height: 41px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2391a5a5' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-position: right 12px center; background-repeat: no-repeat; padding-right: 34px; }
select:hover, .select-input:hover, input[type="search"]:hover { border-color: #648677; }
select:disabled { color: var(--subtle); opacity: .6; }
select option { color: var(--text); background: #132023; }
.site-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.site-card { position: relative; width: 100%; background: #152327; border: 1px solid #344448; border-radius: 8px; padding: 14px; text-align: left; color: var(--text); min-width: 0; }
.site-card:hover:not(:disabled) { background: #1c2f2d; border-color: #648677; }
.site-card.selected { border-color: #80b693; background: #1d322a; box-shadow: inset 0 0 0 1px #a1e7bf0c; }
.site-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.site-name { font-size: 12px; font-weight: 550; }
.site-region { font-size: 9px; color: var(--subtle); margin-top: 2px; }
.choice-check { width: 13px; height: 13px; flex: 0 0 13px; border-radius: 50%; border: 1px solid #546668; color: transparent; font-size: 8px; line-height: 11px; text-align: center; }
.selected .choice-check { border-color: var(--mint); background: var(--mint); color: #172820; }
.site-card .site-region { display: block; margin: -8px 0 12px; }
.site-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 8px; }
.site-stat { font-size: 10px; color: var(--muted); line-height: 1.55; }
.site-stat span, .site-stat small { display: block; font-size: 9px; color: var(--subtle); }
.site-stat strong, .site-stat b { display: block; color: #d3dfd8; font-weight: 450; font-size: 12px; font-family: var(--mono); }
.site-stat em { font-size: 9px; font-style: normal; }
.site-description { margin: 12px 0 0; color: #a2b6ac; font-size: 10px; line-height: 1.65; }
.form-section > .site-description { margin: 14px 0 0; }
.site-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 12px; margin-top: 17px; padding: 15px 0 0; border-top: 1px solid var(--border-soft); }
.site-facts > span { color: #7f9990; font-size: 9px; }
.site-facts b { display: block; color: #c0d0c4; font-weight: 400; font-size: 10px; margin-top: 2px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 17px; }
.choice-card { padding: 14px; border: 1px solid #35484a; border-radius: 7px; background: #152327; text-align: left; }
.choice-card:hover:not(:disabled) { border-color: #648677; background: #1a2d2a; }
.choice-card.selected { border-color: #86bc9a; background: #1e332a; }
.choice-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #dce8e0; font-size: 12px; font-weight: 550; margin-bottom: 5px; }
.choice-card > strong { display: block; font-size: 11px; font-weight: 450; color: #b9ccc0; margin: 8px 0 5px; }
.choice-description { display: block; font-size: 10px; color: var(--muted); line-height: 1.7; }
.choice-metric { display: inline-flex; gap: 8px; font-family: var(--mono); color: var(--mint); font-size: 10px; margin-top: 9px; }
.cooling-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 17px; }
.cooling-choice .choice-metric { display: flex; justify-content: space-between; font-size: 9px; }
.why-box { position: relative; display: flex; gap: 10px; margin-top: 20px; padding: 13px 14px 13px 17px; background: #1b2e2b; border: 1px solid #2c4740; border-radius: 6px; color: #a5bdb2; font-size: 10px; line-height: 1.85; }
.why-icon { color: var(--mint); font-size: 20px; flex: 0 0 auto; line-height: 1.4; }
.why-box strong { display: block; color: var(--mint); font-size: 11px; font-weight: 500; margin-bottom: 4px; }
.why-box p:last-child { margin-bottom: 0; }
.why-box summary { cursor: pointer; color: var(--mint); font-weight: 500; }
.why-box[open] summary { margin-bottom: 7px; }
.sizing-diagram { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin: 20px 0; padding: 15px 10px; background: #102023; border: 1px solid #2d4643; border-radius: 6px; }
.sizing-diagram > span { text-align: center; flex: 1; color: var(--muted); font-size: 9px; }
.sizing-diagram b { font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--mint); }
.sizing-diagram i { color: var(--subtle); font-style: normal; font-size: 12px; }
.design-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; margin-top: 21px; border-top: 1px solid var(--border-soft); }
.design-footer > span { font-size: 9px; }
.design-footer .button { min-height: 36px; font-size: 10px; padding: 8px 12px; }
.warning-box { padding: 13px 15px; margin-top: 14px; border: 1px solid #5c4b31; border-radius: 6px; color: #d5b783; background: #2a2821; font-size: 11px; line-height: 1.8; }
.warning-box ul { margin: 6px 0; padding-left: 18px; }
.warning-box p { margin: 0; }
.right-column { min-width: 0; display: grid; gap: 15px; }
.blueprint-heading { display: flex; align-items: center; justify-content: space-between; padding: 19px 20px 0; gap: 12px; }
.blueprint-heading h2, .blueprint-heading h3 { font-size: 12px; margin: 0; }
.blueprint-heading > span { font-family: var(--mono); color: var(--subtle); font-size: 9px; }
.live-label { display: flex; align-items: center; gap: 6px; }
.blueprint-visual { position: relative; min-height: 190px; padding: 7px 16px; display: grid; place-items: center; background-image: linear-gradient(#87b3a409 1px, transparent 1px), linear-gradient(90deg, #87b3a409 1px, transparent 1px); background-size: 23px 23px; background-position: center; }
.blueprint-visual svg { max-height: 245px; width: 100%; }
.blueprint-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border-soft); padding: 18px 20px; gap: 12px; }
.blueprint-stats > div { min-width: 0; border-right: 1px solid var(--border-soft); }
.blueprint-stats > div:last-child { border-right: 0; }
.blueprint-stats > div > span { display: block; color: var(--subtle); font-size: 9px; margin-bottom: 5px; }
.blueprint-stats strong { display: block; color: #d7e6db; font-size: 17px; font-family: var(--mono); font-weight: 400; white-space: nowrap; }
.blueprint-stats small { font-size: 9px; color: var(--muted); font-family: inherit; }
.blueprint-location { display: flex; justify-content: space-between; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--border-soft); font-size: 9px; color: #879f92; background: #142529; }
.blueprint-location > span:last-child { text-align: right; }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; font-size: 11px; color: var(--muted); border-bottom: 1px solid #29383a75; }
.stat-row:last-child { border: 0; }
.stat-row strong, .stat-row b { color: #d1ded6; font-weight: 500; font-family: var(--mono); font-size: 11px; text-align: right; }
.stat-row span:last-child { text-align: right; }
.insight-card { display: flex; gap: 11px; background: #1b2828; border: 1px solid #34433f; border-radius: 9px; padding: 19px 20px; }
.insight-icon { font-size: 24px; color: #b9c6a5; line-height: 1; flex: 0 0 auto; margin-top: 4px; }
.insight-card .eyebrow { font-size: 7px; color: #819686; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.insight-card h3 { display: flex; gap: 8px; color: #e0d2a8; font-size: 12px; font-weight: 500; margin: 0 0 9px; }
.insight-card p { color: #9fb0a9; font-size: 11px; line-height: 1.9; margin-bottom: 10px; }
.insight-card p:last-child { margin-bottom: 0; }
.insight-card .text-button { font-size: 10px; }
.financial-panel { margin-top: 22px; }
.finance-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 28px; padding: 22px; }
.chart-wrap { min-width: 0; }
.chart-wrap h3 { font-size: 12px; margin: 0 0 5px; font-weight: 500; }
.chart-wrap > p { color: var(--subtle); font-size: 10px; }
.chart-wrap svg { width: 100%; overflow: visible; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 16px; color: var(--subtle); font-size: 9px; margin-top: 12px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.finance-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding-left: 24px; border-left: 1px solid var(--border-soft); }
.finance-stat { padding: 10px 0 14px; border-bottom: 1px solid var(--border-soft); min-width: 0; }
.finance-stat:nth-last-child(-n+2) { border-bottom: 0; }
.finance-stat > span, .finance-stat > small { display: block; color: var(--subtle); font-size: 10px; }
.finance-stat > strong, .finance-stat > b { display: block; color: #dce8de; font-family: var(--mono); font-size: 19px; font-weight: 400; margin: 6px 0 3px; letter-spacing: -.3px; }
.finance-stat strong.good { color: var(--mint); }
.finance-stat strong.bad { color: var(--red); }
.finance-stat > small { color: var(--subtle); font-size: 9px; }
.cost-bar { display: flex; height: 9px; border-radius: 3px; overflow: hidden; margin: 12px 0; background: #263a3a; gap: 2px; }
.cost-bar > span { min-width: 1px; height: 100%; }
.cost-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; color: var(--muted); font-size: 10px; }
.cost-legend > span, .cost-legend > div { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.cost-legend i { display: inline-block; width: 6px; height: 6px; border-radius: 1px; flex: 0 0 auto; margin-right: 5px; }
.cost-legend b { font-family: var(--mono); color: #b8cbc1; font-size: 10px; font-weight: 400; }
.cost-section { padding: 20px 22px 22px; border-top: 1px solid var(--border-soft); }
.cost-section .section-title { margin-bottom: 12px; }
.cost-section .section-title h3 { font-size: 12px; }
.cost-section .cost-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 22px; }
.cost-section .cost-legend > span { justify-content: flex-start; }
.cost-section .cost-legend b { margin-left: auto; }
.opex-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; border-top: 1px solid var(--border-soft); background: #102023; padding: 15px 22px; font-size: 9px; color: var(--subtle); }
.opex-summary b { font-weight: 400; color: #acbeb1; font-family: var(--mono); margin-left: 6px; }
.chart-note { color: var(--subtle); font-size: 9px; margin: 15px 0 9px; }
.chart-data summary, .history-details summary { font-size: 10px; color: #96b7a4; cursor: pointer; }
.chart-data .table-wrap, .history-details .table-wrap { max-height: 330px; overflow-y: auto; }
.page-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 24px 0; margin-top: 3px; color: var(--subtle); font-size: 9px; }
.page-footer > span:last-child { display: flex; gap: 15px; align-items: center; }
.page-footer .text-button { color: #90ae9e; font-size: 9px; }
.operations-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 20px; }
.operation-main, .operation-side { min-width: 0; display: grid; align-content: start; gap: 20px; }
.operation-main > .panel, .operation-side > .panel { padding: 22px; }
.operation-main > .panel:has(.panel-heading), .operation-side > .panel:has(.panel-heading) { padding: 0; }
.operation-main .panel-heading + div, .operation-side .panel-heading + div { padding: 20px 22px; }
.timeline-panel { margin-bottom: 20px; }
.timeline-panel .timeline { padding: 7px 24px 0; margin: 24px 0 20px; }
.timeline-panel .progress-track { border-radius: 0; margin: 0; height: 3px; }
.timeline-panel .stage-step { border: 0; display: flex; align-items: center; gap: 12px; text-align: left; padding: 0; }
.timeline-panel .stage-step::before { display: none; }
.timeline-panel .stage-step > b { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid #3c5352; background: #192d2c; border-radius: 50%; color: #82998c; font-family: var(--mono); font-size: 11px; font-weight: 400; }
.timeline-panel .stage-step.active > b { background: #a1e7bf; color: #143021; border-color: #a1e7bf; }
.timeline-panel .stage-step.done > b { color: var(--mint); border-color: #60846a; }
.timeline-panel .timeline-link { width: 30px; height: 1px; background: #3d554b; margin-top: 17px; flex: 0 0 auto; margin-right: 12px; }
.timeline { display: flex; align-items: start; justify-content: space-between; gap: 7px; margin: 15px 0 20px; }
.stage-step { position: relative; flex: 1; text-align: center; font-size: 10px; color: var(--subtle); border-top: 2px solid #36484a; padding-top: 12px; }
.stage-step::before { content: ""; display: block; width: 8px; height: 8px; position: absolute; top: -5px; left: calc(50% - 4px); background: #36484a; border-radius: 50%; }
.stage-step.active { border-color: #9ac9ad; color: var(--mint); }
.stage-step.active::before { background: var(--mint); box-shadow: 0 0 0 4px #a1e7bf13; }
.stage-step.done { border-color: #547a65; color: #99c5aa; }
.stage-step.done::before { background: #648f73; }
.stage-step small { display: block; font-size: 9px; color: var(--subtle); margin-top: 4px; }
.progress-track { width: 100%; height: 5px; overflow: hidden; border-radius: 8px; background: #2a3d3d; margin: 15px 0 9px; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--mint); transition: width .3s ease; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.action-card { padding: 13px; border-radius: 7px; border: 1px solid #35474a; background: #16272a; text-align: left; font-size: 11px; color: #c5d5cb; }
.action-card:hover { border-color: #739a81; }
.action-card.selected { background: #21382d; border-color: #8bb69b; color: var(--mint); }
.action-card strong { display: block; font-size: 11px; font-weight: 500; margin-bottom: 4px; }
.action-card span, .action-card small { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.action-card .action-icon { display: inline-block; font-size: 17px; line-height: 1; color: #b2cfb9; margin: 0 0 9px; }
.month-controls { padding: 0 22px 22px; }
.month-controls > p { font-size: 10px; margin: 0; }
.month-controls .button-row { margin-top: 15px; }
.month-controls .button { font-size: 10px; padding: 9px 12px; gap: 7px; flex: 1; }
.operating-chart > .chart { width: 100%; padding: 20px 22px 0; }
.operating-chart > .chart-legend { padding: 0 22px; }
.history-details { padding: 16px 22px 20px; }
.chart-placeholder { padding: 70px 25px !important; text-align: center; font-size: 11px; color: var(--subtle); }
.operating-status > h3 { font-size: 13px; margin-bottom: 11px; }
.operating-status > p { margin: 15px 0 0; font-size: 10px; }
.completion-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; padding: 24px; }
.completion-banner > span { font-size: 35px; color: var(--mint); line-height: 1; }
.completion-banner > div { flex: 1; min-width: 170px; }
.completion-banner h3 { margin: 0 0 5px; font-size: 13px; color: #cce8d1; }
.completion-banner p { margin: 0; font-size: 10px; color: var(--muted); }
.completion-banner .button { font-size: 11px; }
.event-list { display: grid; gap: 0; max-height: 510px; overflow-y: auto; }
.event-item { display: flex; gap: 11px; border-bottom: 1px solid var(--border-soft); padding: 15px 0; }
.event-item:first-child { padding-top: 0; }
.event-item:last-child { padding-bottom: 0; border: 0; }
.event-icon { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #3e5555; border-radius: 6px; flex: 0 0 auto; background: #1e3133; color: #9eb4ae; font-family: var(--mono); font-size: 10px; }
.event-item.warning .event-icon { border-color: #5f5036; background: #302c22; color: var(--amber); }
.event-item.critical .event-icon { border-color: #64403e; background: #332525; color: var(--red); }
.event-item.positive .event-icon { border-color: #3c5c46; background: #23362a; color: var(--mint); }
.event-content { min-width: 0; }
.event-content h4, .event-content strong { color: #d5e0d9; font-size: 11px; font-weight: 550; margin: 0 0 4px; }
.event-content p { font-size: 10px; color: var(--muted); line-height: 1.8; margin: 4px 0 0; }
.event-content small { color: var(--subtle); font-family: var(--mono); font-size: 9px; }
.event-impact { display: inline-block; color: #baa984; background: #30332a; border-radius: 3px; padding: 2px 6px; font-size: 9px; margin: 7px 4px 0 0; }
.event-empty { padding: 15px 0; font-size: 11px; }
.empty-state { text-align: center; padding: 62px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.empty-state h2 { font-size: 22px; margin: 14px 0 10px; }
.empty-state p { color: var(--muted); font-size: 12px; max-width: 470px; margin: 0 auto 20px; }
.empty-state > span { font-size: 36px; color: var(--mint); }
.table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--border-soft); border-radius: 7px; margin: 15px 0; }
table, .table { border-collapse: collapse; width: 100%; text-align: left; font-size: 11px; }
th { background: #192b2c; color: #a6bab0; font-size: 10px; font-weight: 500; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--border-soft); }
td { color: #c1d0c8; }
tr:last-child td { border-bottom: 0; }
td:not(:first-child) { font-variant-numeric: tabular-nums; }
dialog { position: fixed; width: min(870px, calc(100% - 40px)); max-height: calc(100dvh - 70px); padding: 0; color: var(--text); background: #122023; border: 1px solid #4a615c; border-radius: 14px; box-shadow: 0 25px 120px #0009; }
dialog::backdrop { background: #050e10cf; backdrop-filter: blur(6px); }
.modal-header { position: sticky; top: 0; z-index: 1; background: #152528; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px; border-bottom: 1px solid #344845; }
.modal-header h2 { font-size: 23px; margin: 4px 0 0; font-weight: 550; }
.modal-header .icon-button { width: 44px; height: 44px; font-size: 23px; flex: 0 0 auto; }
.modal-body { padding: 26px 28px 30px; overflow-wrap: anywhere; }
.modal-body > p { color: #b0c4b8; font-size: 12px; line-height: 1.9; }
.modal-body > .modal-lead { color: #d0e0d5; font-size: 14px; line-height: 1.9; margin-bottom: 22px; }
.modal-body h3 { margin-top: 24px; margin-bottom: 11px; color: #d3e6d7; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body ul, .modal-body ol { padding-left: 21px; color: #b4c7bc; font-size: 12px; }
.modal-body li { margin-bottom: 8px; }
.modal-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.callout { padding: 16px 19px; border: 1px solid #3e5b48; border-radius: 8px; color: #bfd3c5; background: #21352c; font-size: 12px; line-height: 1.9; margin: 16px 0; }
.callout strong { color: var(--mint); }
.callout p:last-child { margin: 0; }
.guide-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin: 25px 0; }
.guide-step { display: flex; align-items: start; gap: 12px; }
.guide-step .level-num { margin-top: 2px; color: var(--mint); border-color: #52765d; background: #23392c; }
.guide-step h3 { font-size: 13px; margin: 0 0 7px; }
.guide-step p { color: #a7c0af; font-size: 11px; line-height: 1.85; margin: 0; }
.formula-list { display: grid; gap: 12px; }
.formula-item { padding: 17px 18px; border: 1px solid #32493e; border-radius: 7px; background: #172c25; }
.formula-item h4, .formula-item h3 { color: #c9e0cd; font-size: 12px; font-weight: 550; margin: 0 0 9px; }
.formula-item code { display: block; padding: 10px 12px; background: #21392b; color: #bbdfbf; font-family: var(--mono); font-size: 11px; line-height: 1.85; border-radius: 5px; }
.formula-item p { color: #9fbaa7; font-size: 11px; line-height: 1.85; margin: 9px 0 0; }
.assumption-list { display: grid; gap: 0; }
.assumption-list > article { padding: 15px 0; border-bottom: 1px solid #30453b; }
.assumption-list > article:first-child { padding-top: 0; }
.assumption-list > article:last-child { border-bottom: 0; }
.assumption-list h4 { color: #c7dbc9; font-size: 12px; font-weight: 550; margin: 0 0 7px; }
.assumption-list p { color: #a7c0af; font-size: 11px; line-height: 1.9; margin: 0 0 7px; }
.assumption-list small { font-size: 10px; }
.source-list { display: grid; gap: 12px; margin-top: 20px; }
.source-item { display: flex; align-items: start; gap: 14px; padding: 16px 18px; border: 1px solid #304341; border-radius: 7px; background: #17282a; scroll-margin-top: 120px; }
.source-id { color: #8fb9a1; font-family: var(--mono); font-size: 9px; background: #263d31; border-radius: 3px; padding: 3px 6px; min-width: 42px; max-width: 75px; flex: 0 0 auto; text-align: center; overflow-wrap: anywhere; }
.source-item > div { min-width: 0; }
.source-item h3, .source-item h4 { font-size: 12px; margin: 0 0 6px; }
.source-item p { color: #a2b8ab; margin: 6px 0 0; font-size: 11px; line-height: 1.85; }
.source-item small { color: var(--subtle); font-size: 10px; }
.source-item a { text-decoration: underline; text-decoration-color: #729f81; text-underline-offset: 3px; }
.source-item code, code { color: #b2d0b9; background: #20342b; font-size: 11px; padding: 2px 5px; border-radius: 3px; white-space: normal; overflow-wrap: anywhere; }
.glossary-search { display: block; margin: 0 0 20px; min-height: 44px; }
.glossary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.glossary-item { padding: 17px; background: #17282a; border: 1px solid #304442; border-radius: 7px; }
.glossary-item h3 { font-size: 12px; margin: 0 0 4px; }
.glossary-item small { display: block; margin-top: 5px; color: #7f9f8d; font-family: var(--mono); font-size: 10px; font-weight: 400; }
.glossary-item p { color: #a7bdae; font-size: 11px; margin: 8px 0 0; line-height: 1.9; }
.quiz-question { min-inline-size: 0; margin: 0; padding: 22px 0; border: 0; border-bottom: 1px solid #304341; }
.quiz-question legend { padding: 0; color: #d1e2d3; font-size: 13px; font-weight: 500; margin-bottom: 12px; line-height: 1.85; }
.quiz-question legend > span { display: inline-block; color: #7eab8e; font-family: var(--mono); font-size: 11px; margin-right: 7px; }
.quiz-question .quiz-explanation { padding: 12px 14px; font-size: 11px; background: #23372b; border-left: 2px solid #86ad88; border-radius: 3px; color: #b6cfb8; }
.quiz-explanation strong { color: #cae6c9; font-weight: 500; }
.quiz-result { margin: 20px 0 27px; padding: 18px; background: #352e24; border: 1px solid #6c5d3a; border-radius: 8px; }
.quiz-result > strong { display: block; color: #ddc590; font-size: 18px; font-weight: 500; }
.quiz-result p { color: #c0b294; font-size: 11px; line-height: 1.9; margin: 8px 0 0; }
.quiz-result.passed { background: #233c2d; border-color: #618a65; }
.quiz-result.passed > strong { color: #b7e9bf; }
.quiz-result.passed p { color: #acccb0; }
.quiz-question:first-child { padding-top: 0; }
.quiz-question:last-child { border-bottom: 0; }
.quiz-question h3 { font-size: 13px; margin: 0 0 12px; }
.quiz-question > p { font-size: 11px; color: #afc7b5; margin: 12px 0 0; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option { display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 11px 14px; text-align: left; border: 1px solid #3a504a; border-radius: 6px; background: #192d2a; color: #bacfc0; font-size: 12px; width: 100%; cursor: pointer; }
.quiz-option:hover:not(:disabled) { background: #264032; border-color: #86ae90; }
.quiz-option.selected { border-color: #9ecdaa; background: #294133; }
.quiz-option.correct { color: #bce8c6; border-color: #8cba96; background: #294133; }
.quiz-option.incorrect { color: #e0b4a7; border-color: #8d6456; background: #392c26; }
.quiz-option:disabled { opacity: 1; }
.quiz-option input { accent-color: var(--mint); margin: 0; }
.quiz-option > span:first-child { font-family: var(--mono); color: var(--subtle); }
.debrief-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 12px; padding: 0; margin: 0 0 18px; }
.debrief-grid > div { padding: 17px; border: 1px solid #3b5643; border-radius: 7px; background: #1d3327; min-width: 0; }
.debrief-grid > div > span { display: block; color: #8fad93; font-size: 10px; margin-bottom: 7px; }
.debrief-grid strong { font-size: 21px; font-family: var(--mono); font-weight: 400; color: #c1e3c6; overflow-wrap: anywhere; }
.debrief-grid strong small { font-size: 10px; color: #89a98e; }
.graduation { text-align: center; padding: 15px 20px 30px; }
.graduation-icon { display: block; color: #b9e3af; font-size: 65px; line-height: 1.2; margin-bottom: 20px; }
.graduation h3 { font-size: 22px; font-weight: 500; margin: 0 0 12px; color: #d4ebd2; }
.graduation p { color: #a1bfa7; font-size: 12px; line-height: 1.9; margin: 0 auto; max-width: 540px; }
.score-ring { display: grid; place-content: center; width: 116px; height: 116px; border: 5px solid #527c5e; border-radius: 50%; text-align: center; font-size: 30px; color: var(--mint); font-family: var(--mono); background: #20362a; }
.score-ring small { display: block; color: #91b39a; font-size: 10px; }
.objectives-list { display: grid; gap: 8px; margin: 0; padding-left: 18px; }
.objectives-list li { font-size: 12px; color: #b0c7b8; }
.toast { position: fixed; left: calc(50% + 114px); bottom: 25px; z-index: 100; max-width: min(580px, calc(100% - 35px)); padding: 13px 20px; border: 1px solid #6b9177; border-radius: 8px; background: #274034; color: #d8efdf; font-size: 12px; box-shadow: 0 8px 35px #0005; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show, .toast.visible { transform: translate(-50%, 0); opacity: 1; }
.noscript { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); background: #eac485; color: #20251a; padding: 15px; z-index: 100; }
@media (min-width: 1600px) {
  .sidebar { width: 244px; padding-left: 20px; padding-right: 20px; }
  .app-shell { margin-left: 244px; }
  .topbar { padding-left: 44px; padding-right: 44px; }
  main { padding-left: 44px; padding-right: 44px; }
  .workspace-grid { grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); }
  .mission-card { min-height: 199px; }
  .mission-copy { padding: 28px 30px; }
  .mission-art { width: 340px; flex-basis: 340px; }
  .design-controls { padding: 26px; }
  .site-card { padding: 18px; }
  .toast { left: calc(50% + 122px); }
}
@media (max-width: 1190px) {
  .sidebar { width: 208px; padding-left: 12px; padding-right: 12px; }
  .brand { font-size: 19px; gap: 9px; padding-left: 8px; }
  .brand small { font-size: 7px; }
  .app-shell { margin-left: 208px; }
  .topbar { padding: 0 26px; }
  main { padding: 27px 26px 0; }
  .page-heading { gap: 16px; }
  .heading-actions { gap: 7px; }
  .heading-actions .button { padding: 10px 12px; gap: 9px; font-size: 11px; }
  .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .workspace-grid { grid-template-columns: minmax(0, 1.45fr) minmax(250px, 1fr); gap: 16px; }
  .design-controls { padding: 18px; }
  .tabs { gap: 15px; padding: 0 17px; }
  .tab { font-size: 10px; }
  .panel-heading { padding: 18px; }
  .site-card { padding: 12px; }
  .mission-art { width: 235px; flex-basis: 235px; }
  .mission-copy { padding: 22px; }
  .mission-objectives { gap: 7px 12px; }
  .metric-card { padding: 15px; }
  .metric-foot { font-size: 9px; }
  .finance-layout { gap: 20px; }
  .finance-stats { padding-left: 20px; gap: 0 14px; }
  .finance-stat > strong { font-size: 17px; }
  .toast { left: calc(50% + 104px); }
}
@media (max-width: 1020px) {
  .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .heading-actions { align-self: flex-end; margin-top: -52px; margin-bottom: 5px; }
  .heading-actions .button.ghost { display: none; }
  .page-heading > div:first-child { max-width: calc(100% - 145px); }
  .mission-art { width: 190px; flex-basis: 190px; }
  .mission-title { font-size: 21px; }
  .mission-description { font-size: 10px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .right-column { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: stretch; }
  .blueprint-panel { display: block; }
  .blueprint-heading { padding: 17px 17px 0; }
  .blueprint-visual { min-height: 175px; padding: 7px; }
  .blueprint-stats { padding: 15px 14px; }
  .blueprint-stats strong { font-size: 15px; }
  .blueprint-location { padding: 10px 14px; }
  .stat-row { gap: 8px; font-size: 10px; padding: 7px 0; }
  .stat-row strong { font-size: 10px; }
  .insight-card { padding: 17px; }
  .insight-card p { font-size: 10px; }
  .finance-layout { grid-template-columns: minmax(0, 1fr); }
  .finance-stats { border-left: 0; border-top: 1px solid var(--border-soft); padding: 10px 0 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 17px; }
  .finance-stat { border-bottom: 0; }
  .operations-grid { grid-template-columns: minmax(0, 1fr); }
  .operation-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-grid { gap: 10px; }
  .metric-card { padding: 14px 12px; }
  .metric-label { font-size: 10px; }
  .metric-value { font-size: 22px; }
  .metric-foot { flex-wrap: wrap; gap: 2px; min-height: 28px; }
  .metric-unit { font-size: 9px; }
  .timeline-panel .timeline-link { width: 15px; margin-right: 5px; }
  .timeline-panel .stage-step { gap: 9px; }
}
@media (max-width: 760px) {
  .sidebar { position: relative; inset: auto; width: 100%; padding: 0; border-right: 0; border-bottom: 1px solid var(--border); overflow: visible; }
  .brand, .sidebar > .sidebar-caption, .sidebar-footer, .offline-note { display: none; }
  .main-nav { display: flex; gap: 3px; padding: 11px 15px; border-bottom: 1px solid var(--border-soft); }
  .main-nav .nav-item { width: auto; flex: 1; justify-content: center; padding: 9px 5px; font-size: 11px; gap: 6px; }
  .nav-symbol { width: 14px; font-size: 16px; }
  .nav-arrow, .nav-dot { display: none; }
  .level-list { display: flex; gap: 6px; padding: 13px 16px; overflow-x: auto; }
  .level-button { flex: 1 0 100px; width: auto; min-height: 47px; gap: 7px; padding: 7px 8px; }
  .level-num { width: 23px; height: 23px; flex-basis: 23px; font-size: 9px; }
  .level-copy { font-size: 10px; white-space: nowrap; }
  .level-copy small, .level-copy span { font-size: 8px; margin-top: 1px; }
  .level-status { display: none; }
  .sidebar-bottom { position: absolute; right: 16px; top: -52px; padding: 0; }
  .sidebar-bottom .nav-item { border: 0; padding: 8px; font-size: 10px; width: auto; }
  .sidebar-bottom .nav-symbol { display: none; }
  .app-shell { margin-left: 0; display: flex; flex-direction: column; }
  .topbar { position: absolute; top: 0; left: 0; width: 100%; height: 58px; padding: 0 18px; background: var(--sidebar); border-bottom: 1px solid var(--border-soft); }
  body { padding-top: 58px; }
  .mobile-brand { display: block; font-size: 16px; color: var(--text); font-weight: 600; letter-spacing: .08em; }
  .desktop-breadcrumb { display: none; }
  .topbar-actions { padding-right: 116px; gap: 8px; }
  .topbar-actions .icon-button { display: none; }
  .save-status { font-size: 9px; }
  main { padding: 24px 20px 0; width: 100%; }
  .page-heading { margin-bottom: 22px; }
  .page-heading h1 { font-size: 29px; }
  .page-heading p { font-size: 11px; }
  .page-heading > div:first-child { max-width: calc(100% - 120px); }
  .eyebrow { font-size: 7px; letter-spacing: .8px; }
  .heading-actions { margin-top: -52px; margin-bottom: 1px; }
  .heading-actions .button { min-height: 38px; font-size: 11px; padding: 9px 12px; }
  .mission-card { min-height: 175px; margin-bottom: 18px; }
  .mission-copy { padding: 21px; }
  .mission-title { font-size: 21px; }
  .mission-art { flex-basis: 190px; width: 190px; padding-right: 9px; }
  .mission-objectives { gap: 6px 10px; font-size: 9px; }
  .mission-orbit { width: 154px; height: 154px; }
  .mission-number { font-size: 70px; }
  .metrics-grid { margin-bottom: 20px; }
  .metric-value { font-size: 24px; }
  .metric-card { padding: 13px; }
  .metric-label { font-size: 10px; }
  .right-column { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .page-footer { font-size: 8px; padding: 21px 0; }
  .toast { left: 50%; bottom: 20px; font-size: 11px; }
  dialog { width: calc(100% - 26px); max-height: calc(100dvh - 32px); border-radius: 11px; }
  .modal-header { padding: 20px; }
  .modal-header h2 { font-size: 20px; }
  .modal-body { padding: 22px 20px; }
}
@media (max-width: 560px) {
  main { padding: 23px 16px 0; }
  .page-heading { gap: 14px; }
  .page-heading > div:first-child { max-width: none; width: 100%; }
  .page-heading h1 { font-size: 28px; margin-top: 8px; }
  .page-heading p { font-size: 11px; }
  .heading-actions { align-self: stretch; margin: 0; justify-content: space-between; }
  .heading-actions .button.ghost { display: inline-flex; }
  .heading-actions .button.primary { min-width: 130px; }
  .heading-actions .button { font-size: 11px; min-height: 40px; }
  .mission-card { min-height: 181px; }
  .mission-copy { padding: 20px; max-width: 100%; }
  .mission-kicker { font-size: 9px; }
  .mission-title { font-size: 21px; max-width: 75%; margin-top: 10px; }
  .mission-description { font-size: 10px; max-width: 70%; }
  .mission-art { position: absolute; right: -22px; top: 17px; width: 155px; height: 130px; opacity: .66; padding: 0; }
  .mission-orbit { width: 117px; height: 117px; }
  .mission-number { font-size: 59px; margin-right: 5px; letter-spacing: -4px; }
  .mission-art-label { display: none; }
  .mission-title > span { display: block; font-size: 10px; margin: 3px 0 0; }
  .mission-objectives { position: relative; z-index: 2; max-width: 100%; margin-top: 16px; font-size: 9px; gap: 6px 13px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-card { padding: 15px; border-radius: 8px; }
  .metric-label { font-size: 10px; }
  .metric-value { font-size: 27px; margin: 8px 0 5px; }
  .metric-foot { min-height: 17px; font-size: 9px; gap: 4px; }
  .metric-value .metric-unit, .metric-unit { font-size: 10px; }
  .workspace-grid { gap: 14px; }
  .panel-heading { padding: 18px 16px; }
  .panel-heading h2 { font-size: 13px; }
  .tabs { padding: 0 15px; gap: 0; justify-content: space-between; }
  .tab { font-size: 10px; padding: 15px 2px 13px; }
  .tab span { display: none; }
  .design-controls { padding: 18px 16px; }
  .form-section + .form-section { margin-top: 22px; padding-top: 21px; }
  .field-grid { gap: 19px 15px; }
  .field-head { gap: 6px; font-size: 10px; flex-wrap: wrap; margin-bottom: 10px; }
  .field label { font-size: 10px; }
  .range-value { font-size: 12px; }
  .site-grid { gap: 9px; }
  .site-card { padding: 12px 11px; }
  .site-name { font-size: 11px; }
  .site-stat strong { font-size: 11px; }
  .site-stat span, .site-stat small { font-size: 8px; }
  .site-description { font-size: 9px; line-height: 1.8; }
  .site-facts { gap: 9px 10px; }
  .site-facts > span { font-size: 8px; }
  .site-facts b { font-size: 9px; }
  .choice-grid { gap: 9px; }
  .choice-card { padding: 12px; }
  .choice-title { font-size: 11px; }
  .choice-description { font-size: 10px; }
  .choice-metric { font-size: 9px; flex-wrap: wrap; }
  .cooling-grid { gap: 9px; }
  .cooling-choice .choice-metric { gap: 3px 8px; font-size: 8px; }
  .why-box { margin-top: 18px; font-size: 10px; padding: 12px 13px; }
  .right-column { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .blueprint-heading { padding: 17px 18px 0; }
  .blueprint-visual { min-height: 185px; padding: 10px; }
  .blueprint-stats { padding: 15px 18px; }
  .stat-row { font-size: 10px; padding: 8px 0; }
  .insight-card { padding: 17px 18px; }
  .insight-card p { font-size: 11px; }
  .finance-layout { padding: 18px 15px; gap: 18px; }
  .finance-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 17px; }
  .finance-stat { border-bottom: 1px solid var(--border-soft); }
  .finance-stat > strong { font-size: 19px; }
  .cost-section { padding: 18px 15px; }
  .cost-section .cost-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 15px; }
  .opex-summary { padding: 14px 15px; gap: 9px 16px; }
  .opex-summary > span:first-child { width: 100%; }
  .financial-panel { margin-top: 16px; }
  .operation-side { grid-template-columns: minmax(0, 1fr); }
  .operations-grid { gap: 16px; }
  .operation-main, .operation-side { gap: 16px; }
  .operation-main > .panel, .operation-side > .panel { padding: 18px; }
  .operation-main .panel-heading + div, .operation-side .panel-heading + div { padding: 18px; }
  .timeline { gap: 4px; }
  .timeline-panel .timeline { padding: 0 15px; gap: 8px; margin: 20px 0; }
  .timeline-panel .stage-step { gap: 6px; flex-direction: column; text-align: center; }
  .timeline-panel .stage-step > b { width: 28px; height: 28px; font-size: 10px; }
  .timeline-panel .timeline-link { width: 12px; margin: 14px -5px 0; }
  .stage-step { font-size: 9px; }
  .stage-step small { font-size: 8px; }
  .action-grid { gap: 8px; }
  .action-card { padding: 12px; }
  .action-card strong { font-size: 10px; }
  .month-controls { padding: 0 18px 18px; }
  .month-controls .button-row { gap: 7px; }
  .month-controls .button { padding: 9px 6px; font-size: 9px; }
  .operating-chart > .chart { padding: 15px 10px 0; }
  .operating-chart > .chart-legend { padding: 0 15px; }
  .history-details { padding: 15px 15px 18px; }
  .button-row .button { flex: 1; }
  .page-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .page-footer > span:last-child { flex-wrap: wrap; gap: 6px 14px; }
  .modal-columns, .glossary-grid, .guide-steps { grid-template-columns: minmax(0, 1fr); }
  .guide-steps { gap: 22px; }
  .modal-header { padding: 18px; }
  .modal-body { padding: 20px 18px; }
  .modal-body > p, .modal-body ul, .modal-body ol { font-size: 11px; }
  .modal-body h3 { font-size: 13px; }
  .source-item { padding: 14px; flex-direction: column; gap: 10px; }
  .source-id { max-width: 100%; }
  .formula-item { padding: 15px; }
  .formula-item code { font-size: 10px; padding: 9px 10px; }
  .modal-body > .modal-lead { font-size: 12px; }
  .debrief-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .debrief-grid > div { padding: 12px 10px; }
  .debrief-grid > div > span { font-size: 9px; }
  .debrief-grid strong { font-size: 15px; }
  .debrief-grid strong small { font-size: 9px; }
  .graduation { padding: 10px 0 25px; }
  .graduation h3 { font-size: 19px; }
  .quiz-question legend { font-size: 12px; }
  .score-ring { width: 88px; height: 88px; font-size: 25px; border-width: 4px; }
  .score-ring small { font-size: 9px; }
  .quiz-question h3 { font-size: 12px; }
  .quiz-option { font-size: 11px; padding: 11px 12px; }
  .empty-state { padding: 45px 20px; }
  .empty-state h2 { font-size: 20px; }
}
@media (max-width: 380px) {
  .topbar { padding: 0 16px; }
  .mobile-brand { font-size: 14px; }
  .topbar-actions { padding-right: 103px; }
  .save-status { font-size: 8px; gap: 5px; }
  .sidebar-bottom { right: 10px; }
  .sidebar-bottom .nav-item { font-size: 9px; }
  .main-nav { padding: 10px; gap: 2px; }
  .main-nav .nav-item { font-size: 10px; gap: 5px; }
  .main-nav .nav-symbol { font-size: 14px; width: 12px; }
  main { padding-left: 13px; padding-right: 13px; }
  .mission-copy { padding: 18px; }
  .mission-art { right: -27px; width: 142px; }
  .mission-title { font-size: 19px; }
  .mission-objectives { font-size: 8px; gap: 7px 8px; }
  .metric-card { padding: 13px; }
  .metric-value { font-size: 25px; }
  .tab { font-size: 9px; }
  .design-controls { padding: 16px 13px; }
  .site-card { padding: 11px 10px; }
}
/* Keep instructional text and controls usable on narrow screens and at zoom. */
@media (max-width: 760px) {
  .main-nav .nav-item { min-height: 44px; }
  .sidebar-bottom { position: static; display: flex; justify-content: flex-end; margin: 0; padding: 0 16px 8px; }
  .sidebar-bottom .nav-item { min-height: 44px; padding: 10px 0 10px 16px; color: #b4d5bd; font-size: 12px; }
  .topbar-actions { padding-right: 0; }
  .save-status { font-size: 11px; white-space: nowrap; }
  .level-copy { font-size: 11px; }
  .level-copy small { font-size: 10px; color: #8fa999; }
  .button, .heading-actions .button, .design-footer .button, .month-controls .button { min-height: 44px; font-size: 12px; }
  button.text-button { display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; }
  .panel-heading .text-button { flex: 0 0 auto; }
  .callout .text-button { display: flex; width: max-content; max-width: 100%; }
  .select-input, select, .glossary-search, input[type="number"], input[type="search"] { min-height: 44px; font-size: 16px; }
  .field label, .field-head { font-size: 12px; }
  .field-hint, .range-labels { font-size: 11px; color: #93ab9e; }
  .range-value { font-size: 14px; }
  .range-value small { font-size: 11px; }
  .site-region, .site-card .site-region, .site-stat small, .site-stat span, .site-description { font-size: 11px; color: #9bb3a5; }
  .site-name { font-size: 13px; }
  .site-stat strong, .site-stat b { font-size: 13px; }
  .site-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-facts > span, .site-facts b { font-size: 11px; }
  .site-facts > span { color: #95aea0; }
  .choice-title { font-size: 13px; }
  .choice-card > strong { font-size: 12px; }
  .choice-description, .choice-metric, .cooling-choice .choice-metric { font-size: 11px; }
  .why-box, .why-box strong, .insight-card p { font-size: 12px; }
  .blueprint-stats > div > span, .blueprint-stats small, .blueprint-location { font-size: 11px; }
  .stat-row, .stat-row strong, .stat-row b { font-size: 12px; }
  .metric-label, .metric-foot, .metric-trend { font-size: 11px; }
  .metric-value, .finance-stat > strong, .debrief-grid strong { overflow-wrap: anywhere; }
  .metric-foot { color: #94aca0; }
  .finance-stat > span, .finance-stat > small, .cost-legend, .cost-legend b, .opex-summary, .chart-note { font-size: 11px; }
  .chart-legend { font-size: 11px; }
  .chart-data summary, .history-details summary { min-height: 44px; padding-top: 10px; font-size: 12px; }
  .action-card strong, .action-card span, .action-card small { font-size: 12px; }
  .month-controls > p, .operating-status > p { font-size: 11px; }
  .event-content h4, .event-content p { font-size: 12px; }
  .event-content small, .event-impact { font-size: 11px; }
  .stage-step { font-size: 11px; }
  .stage-step small { font-size: 10px; }
  .page-footer, .page-footer .text-button { font-size: 11px; }
  .modal-body > p, .modal-body ul, .modal-body ol, .formula-item p, .formula-item code, .assumption-list p, .source-item p, .glossary-item p, .guide-step p, .quiz-option { font-size: 13px; }
  .formula-item h4, .assumption-list h4, .glossary-item h3, .source-item h4 { font-size: 13px; }
  .source-item small, .glossary-item small, .source-id { font-size: 11px; }
  .debrief-grid > div > span { font-size: 11px; }
  .quiz-question legend, .quiz-question .quiz-explanation { font-size: 13px; }
  .quiz-question { max-width: 100%; }
  .quiz-option input { min-width: 16px; height: 16px; flex: 0 0 auto; }
}
@media (max-width: 560px) {
  .field-grid, .cooling-grid { grid-template-columns: minmax(0, 1fr); }
  .tab { min-height: 44px; font-size: 11px; }
  .tabs { padding-left: 11px; padding-right: 11px; }
  .metric-value { font-size: clamp(20px, 5.6vw, 27px); }
  .metric-value .metric-unit { font-size: 10px; }
  .mission-description, .mission-title > span, .mission-objectives { font-size: 11px; }
  .mission-objectives { gap: 7px 12px; }
  .mission-description { max-width: 75%; }
  .debrief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .debrief-grid strong { font-size: 18px; }
  .month-controls .button-row { flex-wrap: wrap; }
  .month-controls .button { flex-basis: 42%; }
  .month-controls .button.primary { flex-basis: 100%; }
  .sizing-diagram { flex-wrap: wrap; gap: 8px; }
  .sizing-diagram > span, .sizing-diagram b { font-size: 11px; }
  .sizing-diagram > span { flex: 1 1 36%; }
  .sizing-diagram > i:nth-of-type(2) { display: none; }
  .cost-section .cost-legend { column-gap: 12px; }
}
@media (max-width: 380px) {
  .main-nav .nav-item { font-size: 11px; padding-left: 5px; padding-right: 5px; }
  .main-nav .nav-symbol { display: none; }
  .heading-actions { flex-wrap: wrap; }
  .heading-actions .button { flex: 1; }
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .site-stats { grid-template-columns: minmax(0, 1fr); }
  .site-stat small { display: inline; margin-left: 5px; }
  .site-stat b { display: inline; }
  .site-card-top { align-items: flex-start; }
  .site-name { font-size: 12px; }
  .finance-stat > strong { font-size: 17px; }
  .design-footer { align-items: flex-start; flex-wrap: wrap; }
  .design-footer .button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; padding: 0; }
  .sidebar, .topbar, .heading-actions, .page-footer, .toast, .skip-link { display: none; }
  .app-shell { margin: 0; }
  main { padding: 0; max-width: none; }
  .panel, .metric-card, .mission-card, .insight-card { color: #111; background: #fff; border-color: #bbb; break-inside: avoid; }
  .metrics-grid { grid-template-columns: repeat(4, 1fr); }
  .workspace-grid { grid-template-columns: 2fr 1fr; }
  .metric-value, .metric-label, .stat-row strong, .finance-stat > strong, .mission-title, .mission-description { color: #111; }
}
/* The 2026 references and phase readouts share the engine's values. */
.engine-details { min-width: 0; margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--border); }
.market-note { padding: 16px; margin: 10px 0 18px; border: 1px solid #36564b; border-radius: 8px; background: #172b26; overflow-wrap: anywhere; }
.market-note > strong { color: var(--mint); font-size: 13px; }
.market-note p { margin: 8px 0 0; color: #a4bdb0; font-size: 12px; line-height: 1.8; }
.phase-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 16px 0; }
.phase-cards > div { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: #17282a; }
.phase-cards strong, .phase-cards span { display: block; overflow-wrap: anywhere; }
.phase-cards strong { color: var(--mint); font-size: 12px; }
.phase-cards span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.engine-details .stat-row > span, .operating-status .stat-row > span { min-width: 0; flex: 1 1 50%; }
.engine-details .stat-row > b, .operating-status .stat-row > b { min-width: 0; flex: 1 1 50%; overflow-wrap: anywhere; }
.market-table { min-width: 440px; }
.blueprint-stats strong { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .market-note { padding: 12px; }
  .market-note p, .market-note > strong { font-size: 12px; }
  .phase-cards { grid-template-columns: minmax(0,1fr); }
  .phase-cards span, .phase-cards strong { font-size: 12px; }
  .engine-details .stat-row { gap: 10px; }
  .blueprint-stats { gap: 8px; }
  .blueprint-stats strong { font-size: 15px; }
}

/* Consistent keyboard and touch access across the planning drawer and dialogs. */
button, input:not([type="checkbox"]):not([type="radio"]), select { min-height: 44px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #91c8ff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
