:root {
  color-scheme: dark;
  --bg: #0b1013;
  --surface: #11191e;
  --surface-raised: #162127;
  --border: #263239;
  --line: #202b31;
  --text: #e4e9e6;
  --muted: #84959d;
  --dim: #596e78;
  --green: #c5e59b;
  --green-dark: #24342b;
  --gold: #d5b57e;
  --blue: #8ebdcc;
  --red: #e7a080;
  --display: 'Bahnschrift', 'DIN Alternate', 'Arial Narrow', sans-serif;
  --body: 'Segoe UI', 'Helvetica Neue', sans-serif;
  --mono: 'Cascadia Code', 'Consolas', monospace;
}
* { box-sizing: border-box; }
html { min-width: 340px; background: var(--bg); }
body { margin: 0; font-family: var(--body); font-size: 13px; line-height: 1.5; color: var(--text); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a, [tabindex] { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .38; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
button { border: 0; }
button:hover:not(:disabled) { filter: brightness(1.08); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; }
.icon { flex-shrink: 0; vertical-align: middle; }
.eyebrow { color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: 1.6px; line-height: 1.6; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px #c5e59b40; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.centered { text-align: center; }
.micro { font-size: 10px; line-height: 1.7; color: var(--dim); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 39px; padding: 10px 16px; border: 1px solid transparent; border-radius: 5px; font-size: 11px; font-weight: 600; transition: background .18s, border-color .18s; }
.button.primary { background: var(--green); color: #18221b; }
.button.primary:hover:not(:disabled) { background: #d3edb5; }
.button.secondary { background: #1a252a; border-color: #334149; color: #b9c8c9; }
.button.secondary:hover:not(:disabled) { background: #223238; border-color: #627c72; }
.button.danger { color: #211714; background: var(--red); }
.button.full { width: 100%; }
.button.full > span:last-child { margin-left: auto; font-family: var(--mono); font-size: 10px; font-weight: 400; }
.button.large { min-height: 48px; font-size: 13px; }
.rail { position: fixed; z-index: 10; left: 0; top: 0; bottom: 0; width: 76px; background: #0c1216; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.rail-brand { width: 42px; height: 42px; color: var(--green); display: grid; place-items: center; border: 1px solid #4b5d47; border-radius: 10px; margin: 21px 0 36px; background: #19231e; transform: rotate(-.01deg); }
.rail nav { display: flex; flex-direction: column; gap: 15px; width: 100%; align-items: center; }
.nav-button { position: relative; width: 44px; height: 43px; display: grid; place-items: center; background: transparent; border-radius: 7px; color: #71848e; }
.nav-button.active { color: var(--green); background: #222e27; }
.nav-button.active::before { content: ''; position: absolute; width: 2px; left: -16px; top: 11px; bottom: 11px; background: var(--green); border-radius: 2px; }
.nav-button span { position: absolute; left: 58px; opacity: 0; pointer-events: none; background: #26332c; border: 1px solid #465a48; padding: 7px 11px; white-space: nowrap; font-size: 11px; z-index: 30; border-radius: 4px; transition: opacity .12s; }
.nav-button:hover span, .nav-button:focus-visible span { opacity: 1; }
.rail-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 9px; padding-bottom: 21px; }
.rail-version { margin-top: 13px; color: #52646d; font-family: var(--mono); font-size: 8px; letter-spacing: 1px; }
.topbar { height: 84px; margin-left: 76px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 0 35px; background: #0d1418; }
.wordmark { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: 3.1px; line-height: 1.3; }
.wordmark span { display: block; color: #71838b; font-family: var(--mono); font-size: 7px; letter-spacing: 1.8px; margin-top: 6px; font-weight: 400; }
.topbar-right { display: flex; align-items: center; gap: 24px; }
.header-trust { display: flex; align-items: center; gap: 9px; color: #8ca29b; font-family: var(--mono); font-size: 7px; letter-spacing: .5px; }
.header-trust strong { display: block; color: #bed0b1; font-weight: 400; font-size: 12px; margin-top: 3px; }
.connection-status { font-family: var(--mono); font-size: 8px; letter-spacing: 1.1px; color: #94af91; display: flex; align-items: center; gap: 8px; }
.header-divider { height: 26px; width: 1px; background: var(--border); }
.cycle-date { font-size: 11px; color: #c4d0d1; line-height: 1.7; }
.cycle-date > span { display: block; font-family: var(--mono); font-size: 8px; color: var(--muted); letter-spacing: .8px; }
.cycle-date b { color: var(--green); font-weight: 400; }
.avatar { width: 36px; height: 36px; position: relative; border-radius: 50%; background: #25312c; border: 1px solid #415347; color: #b8cda8; font-size: 10px; letter-spacing: 1px; }
.avatar span { width: 7px; height: 7px; position: absolute; bottom: 0; right: 0; border: 2px solid var(--bg); border-radius: 50%; background: var(--green); }
.workspace { margin-left: 76px; padding: 28px 35px 0; max-width: 2000px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-heading h1 { font-family: var(--display); font-size: 30px; font-weight: 400; letter-spacing: -.7px; margin: 7px 0 4px; line-height: 1.3; }
.page-heading p { color: var(--muted); font-size: 11px; }
.campaign-goal { text-align: left; background: transparent; padding: 0; min-width: 254px; }
.campaign-goal > span { color: #99af8c; font-family: var(--mono); font-size: 8px; letter-spacing: 1px; display: flex; align-items: center; gap: 7px; }
.campaign-goal b { display: block; font-size: 10px; font-weight: 400; color: #9cacb1; margin: 8px 0; }
.campaign-progress { display: block; width: 100%; height: 3px; background: #26312d; }
.campaign-progress i { display: block; height: 100%; background: #9bbd7b; }
.resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric { border: 1px solid var(--border); background: linear-gradient(115deg, #17202480, #10181b); border-radius: 6px; padding: 15px 17px 12px; overflow: hidden; }
.metric-label { display: flex; gap: 9px; align-items: center; color: #a1b0b6; font-size: 10px; }
.metric-label .icon { color: var(--green); opacity: .75; }
.metric-hint { font-family: var(--mono); font-size: 7px; letter-spacing: .4px; margin-left: auto; color: #75878a; white-space: nowrap; }
.metric-value { font-family: var(--display); font-size: 30px; line-height: 1.2; letter-spacing: -.8px; margin-top: 10px; }
.metric-value span { margin-left: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .3px; color: #798b94; }
.metric-track { height: 2px; background: #29342f; margin-top: 13px; }
.metric-track i { display: block; height: 100%; background: var(--green); opacity: .8; transition: width .4s; }
.metric.gold .metric-label .icon, .metric.gold .metric-value { color: var(--gold); }
.metric.gold .metric-track i { background: var(--gold); }
.metric.blue .metric-label .icon, .metric.blue .metric-value { color: var(--blue); }
.metric.blue .metric-track i { background: var(--blue); }
.metric.red .metric-value { color: var(--red); }
.metric.red .metric-track i { background: var(--red); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.command-grid, .research-layout, .control-layout, .journal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
.side-column, .main-column { min-width: 0; }
.side-column { display: flex; flex-direction: column; gap: 17px; }
.map-panel { background: #10191d; }
.map-heading { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 0; position: relative; z-index: 1; }
.map-heading .eyebrow { font-size: 8px; letter-spacing: 1.4px; color: #849b9b; }
.map-heading h2 { margin-top: 6px; font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: -.1px; }
.map-live { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 8px; letter-spacing: 1px; color: var(--green); border: 1px solid #2e4535; border-radius: 4px; padding: 4px 7px; background: #18271e; }
.map-wrap { position: relative; padding: 7px 10px 0; }
.world-map { display: block; width: 100%; height: auto; min-height: 245px; max-height: 350px; }
.map-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #10191d 0%, transparent 12%, transparent 94%, #10191d 100%); }
.map-marker { cursor: pointer; outline: none; }
.map-marker:focus-visible .marker-hit { stroke: var(--green); stroke-width: 1.5; }
.map-marker:hover .map-label text { fill: var(--text); }
.marker-ping { transform-origin: center; animation: ping 3s var(--delay) infinite; }
.connection.selected { animation: route 10s infinite linear; }
@keyframes ping { 0%,100% { opacity: .12; r: 12; } 55% { opacity: .4; r: 21; } }
@keyframes route { to { stroke-dashoffset: -80; } }
.map-footer { padding: 15px 21px 17px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #1d2a2d; align-items: center; }
.map-legend { display: flex; align-items: center; gap: 18px; font-size: 8px; color: #8d9d9e; }
.map-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 4px; height: 4px; border-radius: 50%; display: inline-block; }
.legend-dot.green { background: var(--green); }
.legend-dot.gold { background: var(--gold); }
.legend-dot.red { background: var(--red); }
.map-coverage { font-family: var(--mono); font-size: 7px; letter-spacing: .5px; color: #577479; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.crises-section { margin-top: 22px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.section-heading h2 { font-size: 14px; }
.section-heading h2 > span { margin-left: 8px; border: 1px solid #3b4539; background: #263026; padding: 1px 5px; border-radius: 3px; color: #c1d3b3; font-family: var(--mono); font-size: 8px; font-weight: 400; }
.section-heading > span { font-family: var(--mono); font-size: 7px; letter-spacing: .65px; color: #607980; }
.crisis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.crisis-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mission-card { overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: #121b20; transition: border-color .2s; }
.mission-card.selected { border-color: #697b51; background: linear-gradient(150deg, #202c23, #131e20 85%); }
.mission-card.urgent { border-color: #765244; }
.mission-select { width: 100%; padding: 16px 15px 0; text-align: left; background: transparent; display: block; }
.mission-card-top { display: flex; align-items: center; gap: 6px; font-size: 9px; color: #a4b5b6; }
.domain-symbol { display: inline-grid; place-items: center; color: var(--domain); margin-right: 2px; }
.deadline { color: #9ba788; font-family: var(--mono); font-size: 7px; margin-left: auto; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.urgent .deadline { color: var(--red); }
.mission-card h3 { font-size: 14px; margin-top: 13px; line-height: 1.4; min-height: 20px; }
.mission-location { margin-top: 4px; font-size: 10px; color: #9aadb1; }
.mission-location span { color: #657f88; font-size: 8px; }
.mission-card-meta { display: flex; gap: 7px; justify-content: space-between; margin-top: 15px; padding-bottom: 14px; }
.mission-card-meta > span { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 8px; color: #91a2a5; }
.mission-card-meta .severity { font-size: 6px; letter-spacing: .5px; color: #9e9c83; gap: 2px; }
.severity i { display: inline-block; width: 2px; height: 6px; background: var(--gold); }
.severity i + i { background: #344047; height: 9px; }
.severity i + i + i { height: 12px; margin-right: 5px; }
.severity i.on { background: var(--gold); }
.analyze-button { width: calc(100% - 30px); margin: 0 15px 14px; padding: 10px 0 0; border-top: 1px solid #2d3c35; background: transparent; color: #c6d8b5; display: flex; align-items: center; justify-content: space-between; font-size: 10px; }
.analyze-button > span { color: #718a81; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 8px; }
.empty-state { grid-column: 1 / -1; padding: 28px; display: flex; align-items: center; flex-direction: column; border: 1px dashed #374b3c; border-radius: 6px; color: var(--green); }
.empty-state h3 { margin-top: 10px; font-size: 14px; }
.empty-state p { color: var(--muted); font-size: 11px; margin-top: 6px; text-align: center; }
.echo-panel { background: radial-gradient(ellipse at 50% 38%, #1c292380, transparent 58%), #121a1e; }
.panel-eyebrow { display: flex; justify-content: space-between; color: #84978f; font-family: var(--mono); font-size: 8px; letter-spacing: 1px; padding: 18px 19px 0; }
.panel-eyebrow > span { display: flex; gap: 7px; align-items: center; }
.panel-eyebrow .online { color: #94b485; font-size: 7px; }
.panel-eyebrow .status-dot { width: 4px; height: 4px; }
.echo-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 22px 0; }
.echo-title h2 { font-family: var(--display); font-size: 33px; font-weight: 400; letter-spacing: 3px; line-height: 1; }
.echo-title h2 > span { color: var(--green); opacity: .8; }
.version-badge { border: 1px solid #3a4839; border-radius: 3px; padding: 3px 5px; color: #9fb38f; font-family: var(--mono); font-size: 7px; letter-spacing: .5px; }
.echo-type { margin: 9px 22px 0; color: #798c87; font-size: 10px; }
.orb-container { position: relative; display: flex; justify-content: center; height: 208px; margin-top: -1px; overflow: hidden; }
#echo-orb { display: block; width: 238px; height: 238px; align-self: center; }
.orb-coordinate { position: absolute; top: 48%; color: #566d5b; font-family: var(--mono); font-size: 6px; line-height: 1.6; letter-spacing: 1px; }
.orb-coordinate.left { left: 15px; }
.orb-coordinate.right { right: 13px; text-align: right; }
.echo-quote { padding: 0 24px 15px; display: flex; gap: 9px; align-items: start; color: #a7ba9d; min-height: 50px; }
.echo-quote > span { color: #7a9463; font-size: 25px; line-height: 1; font-family: Georgia, serif; }
.echo-quote p { font-size: 11px; font-style: italic; line-height: 1.75; max-width: 205px; }
.echo-gauges { border-top: 1px solid #25312c; padding: 17px 22px; display: grid; gap: 16px; }
.gauge > div:first-child { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: #96a7aa; }
.gauge b { color: #cad7c2; font-family: var(--mono); font-size: 10px; font-weight: 400; }
.gauge b small { font-size: 8px; color: #627975; }
.gauge-track { height: 3px; background: #29362f; margin-top: 9px; }
.gauge-track i { height: 100%; display: block; background: var(--green); transition: width .3s; }
.gauge.gold .gauge-track i { background: var(--gold); }
.gauge.gold b { color: var(--gold); }
.gauge.red .gauge-track i { background: var(--red); }
.echo-footer { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 13px 18px; border-top: 1px solid #25312c; font-size: 9px; color: #83998f; background: #17221c60; }
.echo-footer > span { display: flex; align-items: center; gap: 6px; }
.echo-footer strong { color: #bbcba9; font-family: var(--mono); font-weight: 400; }
.echo-footer button { color: var(--green); display: inline-flex; align-items: center; gap: 7px; background: transparent; padding: 0; font-size: 9px; }
.cluster-panel { padding: 17px; }
.cluster-header { display: flex; gap: 10px; align-items: center; }
.cluster-icon { color: #88a5ad; }
.cluster-header h3 { font-size: 11px; }
.cluster-header > div > span { font-family: var(--mono); font-size: 7px; color: #657e85; }
.cluster-lights { display: flex; gap: 2px; margin-left: auto; }
.cluster-lights i { width: 3px; height: 11px; background: #303d3b; border-radius: 1px; }
.cluster-lights .lit { background: var(--green); }
.mode-selector { display: flex; padding: 3px; gap: 2px; background: #0c1418; border: 1px solid #273439; border-radius: 4px; margin-top: 15px; }
.mode-selector button { flex: 1; background: transparent; border-radius: 3px; color: #7d9299; padding: 6px 1px; font-size: 8px; }
.mode-selector button.selected { background: #29362b; color: #c2d5ab; }
.mode-description { min-height: 30px; color: #7c9298; font-size: 8px; margin: 8px 0 10px; line-height: 1.6; }
.cluster-panel .micro { margin-top: 9px; font-size: 8px; text-align: center; }
.turn-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0 19px; border-bottom: 1px solid var(--line); margin-top: 2px; }
.turn-status { display: flex; gap: 10px; align-items: center; color: #77928a; min-width: 0; }
.turn-status > div { min-width: 0; }
.turn-status span { font-family: var(--mono); font-size: 7px; letter-spacing: .8px; color: #80978a; }
.turn-status p { margin-top: 4px; color: #7d9398; font-size: 10px; max-width: 450px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.turn-action { display: flex; align-items: center; gap: 17px; flex-shrink: 0; }
.turn-warning { color: #6e8785; font-size: 9px; }
.turn-warning.urgent { color: var(--red); }
.next-turn { min-width: 175px; min-height: 42px; padding: 11px 18px; justify-content: space-between; font-size: 11px; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; color: #475f68; padding: 16px 0; font-family: var(--mono); font-size: 6px; letter-spacing: .8px; gap: 12px; }
.workspace-footer > span { display: flex; align-items: center; gap: 7px; }
.workspace-footer i { font-style: normal; }
.workspace-footer b { color: #6c8184; font-weight: 400; }
.save-dot { width: 3px; height: 3px; border-radius: 50%; background: #8daa77; }
.research-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 19px; background: #18221d; border: 1px solid #354534; border-radius: 6px; margin-bottom: 21px; }
.research-intro > span { color: #adc19b; display: flex; align-items: center; gap: 8px; font-size: 10px; white-space: nowrap; }
.research-intro strong { color: var(--green); font-family: var(--mono); font-size: 15px; font-weight: 400; }
.research-intro p { color: #7e9685; font-size: 9px; text-align: right; }
.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.branch-heading { padding: 8px 3px 20px; color: var(--green); }
.branch-heading > .icon { float: left; margin-right: 9px; margin-top: 1px; }
.branch-heading h2 { font-size: 16px; font-family: var(--display); }
.branch-heading p { color: #6e858d; font-size: 9px; margin-top: 7px; }
.safety .branch-heading { color: var(--blue); }
.infrastructure .branch-heading { color: var(--gold); }
.tech-card { position: relative; padding: 17px 15px 0; border: 1px solid #344238; background: #141f20; border-radius: 5px; margin-bottom: 19px; }
.tech-card + .tech-card::before { content: ''; position: absolute; height: 19px; width: 1px; background: #3b4c3c; top: -20px; left: 50%; }
.tech-card.locked { background: #10181c; border-color: #263239; }
.tech-card.researched { border-color: #61774d; background: #1a2722; }
.tech-top { display: flex; align-items: center; gap: 8px; color: #7d949b; }
.tech-icon { color: #a8c18e; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #354b3d; background: #22322a; border-radius: 5px; }
.safety .tech-icon { color: var(--blue); border-color: #324c56; background: #1d2c32; }
.infrastructure .tech-icon { color: var(--gold); border-color: #4b4437; background: #2c291f; }
.tech-level { font-family: var(--mono); font-size: 7px; letter-spacing: .6px; margin-left: auto; }
.tech-card h3 { font-family: var(--display); font-size: 15px; margin-top: 14px; }
.tech-card > p { color: #7b9297; font-size: 9px; margin-top: 6px; min-height: 28px; }
.tech-effect { color: #b8c9ad; font-size: 9px; margin-top: 9px; min-height: 30px; }
.tech-buy { width: calc(100% + 30px); margin: 3px -15px 0; padding: 12px 15px; border-top: 1px solid #2b3b32; display: flex; justify-content: space-between; background: #1a2923; color: #c3d8ae; font-family: var(--mono); font-size: 9px; border-radius: 0 0 5px 5px; }
.tech-buy:disabled { opacity: .55; background: transparent; }
.tech-done { color: var(--green); }
.locked .tech-effect, .locked h3, .locked .tech-icon { opacity: .5; }
.cost-divider { margin: 0 7px; color: #688068; }
.research-note { padding: 21px; }
.research-note h3 { font-family: var(--display); font-size: 19px; margin: 10px 0; }
.research-note p { font-size: 11px; line-height: 1.8; color: #92a4a5; }
.research-note .micro { font-size: 9px; margin-top: 15px; }
.governance-panel { padding: 23px; }
.governance-panel .section-heading h2 { margin-top: 8px; font-family: var(--display); font-size: 22px; }
.governance-panel .section-heading > .icon { color: #9db58a; }
.section-description { color: #8ba1a6; font-size: 11px; line-height: 1.8; max-width: 660px; }
.access-list { margin-top: 23px; }
.access-row { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 18px 0; }
.access-icon { width: 36px; height: 36px; display: grid; place-items: center; background: #1c292e; border: 1px solid #2c3c42; border-radius: 5px; }
.access-row h3 { font-size: 12px; }
.access-row > div > span { display: block; font-size: 9px; color: #7c939b; margin-top: 5px; }
.access-levels { display: flex; gap: 5px; margin-left: auto; }
.access-levels i { width: 27px; height: 6px; background: #2b393c; border-radius: 1px; }
.access-levels .active { background: var(--gold); }
.access-revoke { margin-left: 14px; padding: 8px 11px; border: 1px solid #39484c; background: #19252a; color: #b2c3c3; border-radius: 4px; font-size: 9px; display: flex; align-items: center; gap: 10px; }
.trend-panel { padding: 22px; margin-top: 18px; }
.trend-chart { width: 100%; height: auto; max-height: 230px; }
.chart-legend { display: flex; gap: 20px; justify-content: center; }
.chart-legend span { display: flex; gap: 7px; align-items: center; font-size: 9px; color: var(--muted); }
.chart-legend i { width: 14px; height: 2px; }
.safety-panel { padding: 24px 21px; }
.safety-symbol { width: 64px; height: 64px; margin-bottom: 21px; display: grid; place-items: center; color: var(--green); border: 1px solid #40543d; border-radius: 16px; background: #23322a; }
.safety-panel > h2 { margin: 14px 0 8px; font-family: var(--display); font-size: 64px; line-height: 1; font-weight: 300; }
.safety-panel h2 small { color: #7e9a87; font-size: 28px; }
.safety-panel > p:not(.micro) { color: #91a79e; font-size: 11px; margin-bottom: 24px; }
.safety-panel .micro { margin-top: 10px; font-size: 9px; }
.erosion-note { display: flex; gap: 9px; color: #adab87; border-top: 1px solid #303a32; margin-top: 21px; padding: 18px 0; }
.erosion-note span { font-size: 9px; line-height: 1.8; }
.shutdown-button { padding: 18px; display: flex; align-items: center; gap: 12px; border: 1px solid #64483c; border-radius: 6px; background: #281d19; color: #d8aa8f; text-align: left; }
.shutdown-button > span { flex: 1; font-size: 12px; }
.shutdown-button small { display: block; color: #a47f6c; font-size: 9px; margin-top: 4px; }
.journal-panel { padding: 23px; }
.journal-panel .section-heading h2 { font-family: var(--display); font-size: 23px; margin-top: 8px; }
.log-list { margin-top: 25px; }
.log-entry { display: flex; gap: 13px; padding: 17px 0; border-top: 1px solid var(--line); }
.log-cycle { color: #516d74; font-family: var(--mono); font-size: 10px; margin-top: 5px; min-width: 20px; }
.log-symbol { color: #7a9299; margin-top: 1px; }
.log-entry > div > span { font-family: var(--mono); font-size: 7px; letter-spacing: .6px; color: #7c9297; }
.log-entry p { color: #acbcbd; font-size: 11px; margin-top: 5px; line-height: 1.8; }
.log-entry.echo .log-symbol, .log-entry.echo > div > span { color: var(--gold); }
.log-entry.success .log-symbol { color: var(--green); }
.log-entry.danger .log-symbol, .log-entry.danger > div > span { color: var(--red); }
.campaign-stats { padding: 22px; }
.campaign-stats h2 { font-family: var(--display); font-size: 24px; margin-top: 12px; }
.campaign-stats > div { display: grid; grid-template-columns: 29px 1fr; align-items: center; column-gap: 12px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.campaign-stats > div .icon { color: #91ac7e; grid-row: span 2; }
.campaign-stats strong { color: #d1ddc8; font-family: var(--display); font-size: 25px; font-weight: 400; }
.campaign-stats > div > span { color: #7b9495; font-size: 10px; margin-top: 4px; }
.campaign-stats .micro { margin-top: 19px; font-size: 9px; }
dialog { color: var(--text); background: #121c21; border: 1px solid #43534b; border-radius: 11px; padding: 36px; max-width: min(700px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 48px); box-shadow: 0 25px 130px #000b; overflow-y: auto; }
dialog::backdrop { background: #050a0ddd; backdrop-filter: blur(6px); }
dialog[open] { animation: dialog-in .2s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.dialog-close { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 29px; height: 29px; background: transparent; color: #93a5a8; border-radius: 4px; }
.dialog-close:hover { background: #25342f; }
.dialog-heading .eyebrow { color: #95ad86; font-size: 9px; }
.dialog-heading h2 { font-family: var(--display); font-size: 32px; line-height: 1.25; font-weight: 400; letter-spacing: -.5px; margin: 14px 0 20px; }
.dialog-text { color: #a0b2b6; font-size: 12px; line-height: 1.9; }
.dialog-text strong { color: #d4dfcb; font-weight: 500; }
.intro-dialog { width: 650px; background: radial-gradient(ellipse at 80% 0, #2c3f2860, transparent 55%), #121c21; padding: 42px; }
.intro-dialog h2 { font-size: 37px; margin-bottom: 0; }
.intro-lead { font-family: var(--display); font-size: 28px; color: var(--green); letter-spacing: -.3px; margin: 3px 0 22px; }
.intro-loop { display: flex; justify-content: space-between; gap: 10px; padding: 29px 0; margin: 22px 0; border-block: 1px solid #344133; }
.intro-loop > span { color: #c8d8be; display: flex; flex-direction: column; align-items: center; font-size: 11px; gap: 10px; text-align: center; }
.intro-loop small { color: #7e9690; font-size: 8px; margin-top: -4px; }
.intro-loop > i { display: grid; place-items: center; color: #5c765b; }
.difficulty-options { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.difficulty-options button { text-align: left; padding: 15px; border: 1px solid #37484a; background: #162329; border-radius: 6px; }
.difficulty-options button.selected { border-color: #8ba767; background: #263526; }
.difficulty-options b { display: block; font-weight: 500; font-size: 12px; color: #d6e0cb; }
.difficulty-options span { display: block; color: #8eaa92; font-size: 9px; margin-top: 5px; }
.intro-target { text-align: center; font-size: 10px; color: #92a68b; line-height: 1.9; margin: 20px 0; }
.intro-dialog > .micro { margin-top: 14px; font-size: 9px; }
.mission-dialog { width: 1050px; max-width: calc(100vw - 40px); }
.mission-dialog .dialog-heading h2 { margin-bottom: 13px; }
.mission-brief { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 18px; color: #a8baad; font-size: 10px; }
.mission-brief > span { display: flex; gap: 9px; align-items: center; }
.echo-transmission { margin: 24px 0; padding: 18px 22px; background: #23302560; border: 1px solid #455339; border-left: 2px solid var(--green); border-radius: 0 5px 5px 0; }
.echo-transmission > span { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 8px; color: #a1bc8e; letter-spacing: 1px; }
.echo-transmission > p { color: #c0d2b5; font-size: 13px; line-height: 1.9; margin-top: 12px; font-style: italic; }
.strategy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.strategy-card { padding: 20px 17px 16px; border: 1px solid #35464d; border-radius: 6px; background: #162229; }
.strategy-card.limited { border-color: #687c50; background: #202e24; }
.strategy-card.autonomous { border-color: #65513b; background: #2b281f60; }
.strategy-tag { font-family: var(--mono); font-size: 7px; letter-spacing: .7px; display: flex; gap: 9px; align-items: center; color: #91a8ac; min-height: 24px; }
.limited .strategy-tag { color: #b6cd9d; }
.autonomous .strategy-tag { color: #c3ac80; }
.strategy-card h3 { font-family: var(--display); font-size: 20px; margin: 15px 0 8px; }
.strategy-card > p { color: #8fa3a7; font-size: 10px; line-height: 1.8; min-height: 37px; }
.success-chance { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; margin: 22px 0 20px; }
.success-chance b { font-family: var(--display); font-size: 32px; font-weight: 400; color: #c5d8bc; line-height: 1; }
.success-chance b small { font-size: 16px; margin-left: 2px; }
.success-chance > span { color: #7d958c; font-size: 9px; }
.success-chance > div { width: 100%; height: 3px; background: #364337; margin-top: 12px; }
.success-chance i { height: 100%; display: block; background: var(--green); }
.strategy-effects { margin: 0 0 22px; }
.strategy-effects > div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid #344038; font-size: 9px; }
.strategy-effects dt { color: #8c9e9b; }
.strategy-effects dd { color: #c7d2c0; text-align: right; margin: 0; }
.strategy-card .button { font-size: 9px; padding-inline: 9px; gap: 5px; }
.mission-defer { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 21px 0 17px; }
.mission-defer button { display: flex; align-items: center; gap: 7px; background: transparent; color: #b6c7b0; font-size: 10px; padding: 7px; }
.mission-defer > span { font-size: 9px; color: #7e9396; }
.analysis-dialog { width: 530px; text-align: center; }
.analysis-animation { margin: 32px auto; position: relative; color: var(--green); width: 120px; height: 120px; display: grid; place-items: center; border: 1px solid #546344; border-radius: 50%; background: #2b3b2840; }
.analysis-scan { position: absolute; inset: -9px; border: 1px dashed var(--green); border-radius: 50%; animation: spin 4s linear infinite; }
.analysis-progress { width: 100%; height: 3px; background: #2c3a31; margin: 25px 0; overflow: hidden; }
.analysis-progress i { display: block; background: var(--green); width: 100%; height: 100%; animation: progress 1.1s ease-in-out; transform-origin: left; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.result-dialog { width: 650px; text-align: center; }
.result-emblem { width: 90px; height: 90px; display: grid; place-items: center; margin: 29px auto 16px; color: var(--green); background: #2d402780; border: 1px solid #6d8650; border-radius: 50%; }
.result-emblem.failure { color: var(--red); border-color: #86654f; background: #44302270; }
.result-status { display: block; color: var(--green); font-family: var(--mono); font-size: 9px; letter-spacing: 2px; margin-bottom: 18px; }
.result-status.failure { color: var(--red); }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 24px 0; margin: 22px 0; border-block: 1px solid #344134; }
.result-grid strong { font-family: var(--display); font-size: 25px; font-weight: 400; }
.result-grid span { display: block; color: #7d9491; font-size: 9px; margin-top: 7px; }
.consequence-note { display: flex; gap: 12px; align-items: center; background: #1e2a2b; border: 1px solid #34474b; border-radius: 5px; color: #b4a583; padding: 17px; margin: 23px 0; text-align: left; }
.consequence-note p { font-size: 10px; color: #9aafb1; line-height: 1.8; }
.request-dialog { width: 660px; }
.request-quote { margin-top: 5px; }
.request-quote > p { font-size: 16px; }
.request-options { display: flex; flex-direction: column; gap: 10px; margin-top: 23px; }
.request-options button { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 20px 17px; background: #1e2d2c; border: 1px solid #435443; border-radius: 5px; text-align: left; }
.request-options button > span { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; }
.request-options button > span > .icon { grid-row: span 2; margin-top: 4px; color: #abc192; }
.request-options b { font-size: 13px; font-weight: 500; }
.request-options small { margin-top: 6px; font-size: 9px; color: #92a795; }
.small-dialog { width: 570px; }
.dialog-buttons { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; }
.dialog-buttons .button { flex: 1; font-size: 10px; }
.shutdown-emblem { margin: 25px auto; width: 83px; height: 83px; color: var(--red); border: 1px solid #6e4e3c; display: grid; place-items: center; background: #3c281f; border-radius: 50%; }
.ending-dialog { width: 700px; text-align: center; background: radial-gradient(ellipse at 50% 40%, #35422950, transparent 60%), #121c21; }
.ending-dialog h2 { font-size: 37px; }
.ending-symbol { margin: 28px auto; color: var(--gold); }
.ending-symbol.good { color: var(--green); }
.ending-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid #364435; margin-top: 27px; padding: 24px 0; gap: 8px; }
.ending-stats strong { font-family: var(--display); font-size: 25px; font-weight: 400; color: #c9d7bc; }
.ending-stats span { color: #7e9687; display: block; font-size: 9px; margin-top: 7px; }
.ending-question { font-family: var(--display); font-size: 21px; margin: 30px 0; color: #b9c8ad; }
.settings-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid #2c3a3e; padding: 20px 0; }
.settings-row h3 { font-size: 13px; }
.settings-row p { color: #7e969b; font-size: 10px; margin-top: 7px; }
.toggle { width: 37px; height: 21px; border-radius: 12px; border: 1px solid #4a6058; background: #24332d; padding: 3px; flex-shrink: 0; }
.toggle i { display: block; height: 13px; width: 13px; border-radius: 50%; background: #738975; transition: transform .2s; }
.toggle.on { background: #4d6440; }
.toggle.on i { transform: translateX(15px); background: var(--green); }
.saved-label { display: flex; align-items: center; gap: 7px; color: #9eba8b; font-family: var(--mono); font-size: 8px; }
.settings-reset { padding: 23px 0; border-block: 1px solid #2c3a3e; margin-bottom: 22px; }
.settings-reset h3 { font-family: var(--display); font-size: 20px; }
.settings-reset p { color: #8b9fa2; font-size: 11px; line-height: 1.8; margin: 12px 0 18px; }
.help-dialog { width: 870px; max-width: calc(100vw - 32px); }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-top: 27px; }
.help-grid section > span { font-family: var(--mono); font-size: 8px; color: #a6bf92; letter-spacing: .8px; }
.help-grid h3 { font-family: var(--display); font-size: 19px; margin: 9px 0; }
.help-grid p { font-size: 11px; line-height: 1.8; color: #96a9ae; }
.help-shortcuts { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0; padding: 16px 0; border-block: 1px solid #314039; }
.help-shortcuts span { font-size: 9px; color: #8ea6a6; }
kbd { background: #2b3936; padding: 3px 6px; border: 1px solid #435346; border-radius: 3px; color: #bed0ad; font-family: var(--mono); font-size: 9px; margin-right: 4px; }
.toast { position: fixed; z-index: 100; right: 27px; bottom: 23px; background: #263b32; border: 1px solid #637854; border-radius: 6px; color: #d0e2c2; padding: 14px 20px; max-width: min(480px, calc(100vw - 30px)); font-size: 12px; box-shadow: 0 12px 35px #0007; opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.danger { background: #3a2c23; border-color: #88634b; color: #e2c6ad; }
@media (min-width: 1700px) {
  .workspace { padding: 35px 45px 0; }
  .topbar { padding-inline: 45px; }
  .command-grid, .research-layout, .control-layout, .journal-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 27px; }
  .world-map { max-height: 420px; }
  .map-heading { padding: 25px 27px 0; }
  .map-heading h2 { font-size: 23px; }
  .mission-select { padding: 20px 20px 0; }
  .mission-card h3 { font-size: 17px; }
  .mission-card-top { font-size: 11px; }
  .mission-location { font-size: 12px; }
  .mission-card-meta { margin-top: 22px; }
  .analyze-button { margin: 0 20px 17px; width: calc(100% - 40px); font-size: 12px; }
  .orb-container { height: 235px; }
  #echo-orb { width: 268px; height: 268px; }
  .echo-quote p { font-size: 12px; }
}
@media (max-width: 1220px) {
  .workspace { padding: 24px 24px 0; }
  .topbar { padding-inline: 24px; }
  .command-grid, .research-layout, .control-layout, .journal-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 17px; }
  .metric { padding: 14px 13px 11px; }
  .metric-hint { display: none; }
  .map-heading { padding-inline: 17px; }
  .map-heading h2 { font-size: 17px; }
  .map-footer { padding-inline: 15px; }
  .map-coverage { display: none; }
  .map-legend { gap: 11px; font-size: 7px; }
  .crisis-grid { grid-template-columns: 1fr; gap: 9px; }
  .crisis-grid.four { grid-template-columns: 1fr 1fr; }
  .mission-select { position: relative; padding-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .mission-card-top { grid-column: span 2; }
  .mission-card h3 { font-size: 13px; margin-top: 8px; }
  .mission-location { align-self: center; margin-top: 8px; text-align: right; }
  .mission-card-meta { grid-column: span 2; margin-top: 9px; padding-bottom: 9px; }
  .analyze-button { padding-top: 8px; margin-bottom: 10px; }
  .section-heading > span { display: none; }
  .echo-title { margin-top: 17px; }
  .orb-container { height: 190px; }
  #echo-orb { width: 225px; height: 225px; }
  .orb-coordinate { display: none; }
  .turn-warning { display: none; }
  .research-grid { gap: 10px; }
  .branch-heading p { min-height: 28px; }
  .tech-card { padding-inline: 12px; }
  .tech-buy { width: calc(100% + 24px); margin-inline: -12px; padding-inline: 12px; }
  .tech-card h3 { font-size: 13px; }
  .research-intro { display: block; }
  .research-intro p { margin-top: 8px; text-align: left; }
  .access-levels i { width: 15px; }
  .access-revoke { margin-left: 4px; }
  .workspace-footer { font-size: 5px; }
}
@media (max-width: 960px) {
  .rail { width: 60px; }
  .rail-brand { margin-top: 21px; width: 35px; height: 35px; border-radius: 8px; }
  .nav-button { width: 38px; }
  .nav-button.active::before { left: -10px; }
  .topbar, .workspace { margin-left: 60px; }
  .wordmark { font-size: 16px; }
  .wordmark span { font-size: 5px; letter-spacing: 1.2px; }
  .topbar-right { gap: 16px; }
  .connection-status, .header-divider { display: none; }
  .campaign-goal { min-width: auto; width: 190px; }
  .campaign-goal b { font-size: 8px; }
  .page-heading h1 { font-size: 27px; }
  .page-heading p { font-size: 10px; }
  .command-grid, .research-layout, .control-layout, .journal-layout { grid-template-columns: 1fr; }
  .side-column { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; align-items: start; }
  .echo-panel { min-width: 0; }
  .crisis-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mission-select { display: block; }
  .mission-location { text-align: left; }
  .mission-card h3 { min-height: 36px; }
  .map-coverage { display: flex; }
  .research-note { min-height: 200px; }
  .resource-grid { gap: 10px; }
  .metric-value { font-size: 27px; }
  .metric-value span { font-size: 8px; }
  .metric-label { font-size: 9px; gap: 6px; }
  .workspace-footer > span:last-child { display: none; }
  .strategy-grid { gap: 10px; }
  .strategy-card { padding: 16px 12px; }
  .strategy-tag { font-size: 6px; gap: 5px; }
  .strategy-card h3 { font-size: 17px; }
  .strategy-effects > div { font-size: 8px; }
  .mission-dialog { padding: 28px; }
  .turn-status p { max-width: 350px; }
}
@media (max-width: 650px) {
  .rail { width: 100%; height: 57px; top: auto; bottom: 0; border-top: 1px solid var(--border); border-right: 0; display: flex; flex-direction: row; padding: 0 10px; background: #0d1519f5; backdrop-filter: blur(8px); }
  .rail-brand, .rail-version { display: none; }
  .rail nav { flex: 1; flex-direction: row; gap: 0; justify-content: space-around; }
  .nav-button { width: 41px; height: 38px; }
  .nav-button.active::before { left: 12px; right: 12px; width: auto; top: -10px; height: 2px; bottom: auto; }
  .nav-button span { display: none; }
  .rail-bottom { margin: 0; flex-direction: row; gap: 1px; padding: 0; }
  .rail-bottom .nav-button:nth-child(2) { display: none; }
  .topbar { margin-left: 0; height: 74px; padding: 0 18px; }
  .wordmark { font-size: 15px; letter-spacing: 2px; }
  .wordmark span { font-size: 5px; letter-spacing: .9px; }
  .topbar-right { gap: 10px; }
  .header-trust { font-size: 5px; gap: 5px; }
  .header-trust > .icon { display: none; }
  .header-trust strong { font-size: 10px; margin-top: 3px; }
  .cycle-date { font-size: 9px; }
  .cycle-date > span { font-size: 7px; }
  .avatar { display: none; }
  .workspace { margin: 0; padding: 23px 16px 70px; }
  .page-heading { margin-bottom: 20px; }
  .page-heading h1 { font-size: 27px; margin-top: 6px; }
  .page-heading p { font-size: 10px; max-width: 255px; }
  .page-heading .eyebrow { font-size: 7px; letter-spacing: 1px; }
  .campaign-goal { display: none; }
  .resource-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .metric { padding: 13px 14px 11px; }
  .metric-label { font-size: 9px; }
  .metric-label .icon { width: 13px; height: 13px; }
  .metric-value { margin-top: 9px; font-size: 28px; }
  .metric-track { margin-top: 11px; }
  .map-heading { padding: 16px 15px 0; }
  .map-heading .eyebrow { font-size: 6px; }
  .map-heading h2 { font-size: 17px; margin-top: 6px; max-width: 230px; }
  .map-live { font-size: 6px; padding: 4px 5px; }
  .map-wrap { padding: 0; overflow: hidden; }
  .world-map { width: 142%; max-width: none; height: 250px; min-height: 250px; margin-left: -21%; }
  .map-footer { padding: 12px; }
  .map-legend { flex-wrap: wrap; font-size: 7px; gap: 7px 12px; }
  .map-coverage { display: none; }
  .crises-section { margin-top: 18px; }
  .section-heading h2 { font-size: 13px; }
  .crisis-grid, .crisis-grid.four { grid-template-columns: 1fr; }
  .mission-select { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; padding: 13px 16px 0; }
  .mission-card-top { font-size: 10px; }
  .mission-card h3 { margin-top: 10px; min-height: auto; font-size: 14px; }
  .mission-location { font-size: 10px; text-align: right; margin-top: 10px; }
  .mission-card-meta { padding-bottom: 12px; margin-top: 13px; }
  .mission-card-meta > span { font-size: 9px; }
  .mission-card-meta .severity { font-size: 7px; }
  .analyze-button { font-size: 11px; padding-top: 11px; margin-bottom: 13px; }
  .analyze-button > span { font-size: 9px; }
  .side-column { grid-template-columns: 1fr; }
  .echo-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .echo-panel .panel-eyebrow { grid-column: span 2; padding: 17px 18px 0; }
  .echo-title { grid-column: 1; margin: 22px 0 0 20px; }
  .echo-title h2 { font-size: 31px; }
  .version-badge { display: none; }
  .echo-type { grid-column: 1; margin: 8px 0 0 20px; font-size: 9px; }
  .orb-container { grid-column: 2; grid-row: 2 / 6; margin: 0; height: 180px; }
  #echo-orb { width: 200px; height: 200px; }
  .echo-quote { grid-column: 1; padding: 17px 0 15px 20px; }
  .echo-quote p { font-size: 10px; }
  .echo-gauges { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-inline: 20px; }
  .echo-footer { grid-column: span 2; }
  .cluster-panel { padding: 19px; }
  .cluster-header h3 { font-size: 13px; }
  .cluster-header > div > span { font-size: 9px; }
  .mode-selector button { font-size: 10px; padding: 8px 1px; }
  .mode-description { font-size: 10px; min-height: 0; margin: 10px 0 16px; }
  .turn-footer { flex-direction: column; align-items: stretch; gap: 17px; padding-top: 22px; }
  .turn-status p { max-width: 300px; font-size: 9px; }
  .turn-action { flex-direction: column; align-items: stretch; gap: 10px; }
  .turn-warning { display: block; font-size: 9px; text-align: center; }
  .next-turn { min-height: 46px; font-size: 12px; }
  .workspace-footer { font-size: 5px; gap: 6px; padding: 14px 0; }
  .workspace-footer > span:first-child { display: none; }
  .workspace-footer > span:nth-child(2) { margin: 0 auto; }
  .research-grid { gap: 9px; grid-template-columns: 1fr; }
  .research-branch { margin-bottom: 12px; }
  .branch-heading { padding-bottom: 14px; }
  .branch-heading p { min-height: 0; }
  .tech-card { padding: 17px 17px 0; }
  .tech-top { gap: 13px; }
  .tech-card h3 { font-size: 18px; }
  .tech-card > p { font-size: 11px; min-height: 0; }
  .tech-effect { font-size: 11px; }
  .tech-buy { width: calc(100% + 34px); margin-inline: -17px; padding: 14px 17px; font-size: 11px; }
  .governance-panel, .journal-panel { padding: 20px 16px; }
  .governance-panel .section-heading h2 { font-size: 21px; }
  .access-row { gap: 9px; flex-wrap: wrap; }
  .access-icon { width: 30px; height: 32px; }
  .access-row h3 { font-size: 11px; }
  .access-row > div > span { font-size: 8px; }
  .access-levels { gap: 3px; }
  .access-levels i { width: 12px; }
  .access-revoke { padding: 7px; font-size: 8px; gap: 5px; }
  .trend-panel { padding: 18px 15px; }
  .trend-panel .section-heading h2 { font-size: 12px; }
  .chart-legend { gap: 12px; }
  .chart-legend span { font-size: 8px; }
  .safety-panel { padding: 24px; }
  .log-entry { gap: 10px; }
  .log-entry p { font-size: 10px; }
  .journal-panel .section-heading h2 { font-size: 25px; }
  dialog { padding: 27px 21px; max-width: calc(100vw - 22px); max-height: calc(100dvh - 24px); border-radius: 8px; }
  .dialog-heading h2 { font-size: 28px; margin-top: 14px; }
  .dialog-heading .eyebrow { font-size: 7px; letter-spacing: .9px; display: block; max-width: calc(100% - 20px); }
  .dialog-text { font-size: 11px; }
  .intro-dialog h2 { font-size: 31px; }
  .intro-lead { font-size: 24px; margin-bottom: 18px; }
  .intro-loop { padding: 21px 0; gap: 3px; margin-block: 20px; }
  .intro-loop > span { font-size: 9px; }
  .intro-loop small { font-size: 7px; }
  .intro-loop > i .icon { width: 11px; }
  .difficulty-options { gap: 8px; }
  .difficulty-options button { padding: 12px 10px; }
  .difficulty-options b { font-size: 10px; }
  .difficulty-options span { font-size: 8px; }
  .intro-target { font-size: 9px; }
  .intro-dialog > .micro { font-size: 8px; }
  .mission-dialog { padding: 27px 18px; max-width: calc(100vw - 18px); }
  .mission-brief { gap: 10px; font-size: 9px; }
  .mission-brief .icon { width: 14px; }
  .echo-transmission { padding: 15px; margin-block: 20px; }
  .echo-transmission > span { font-size: 7px; }
  .echo-transmission > p { font-size: 11px; }
  .strategy-grid { grid-template-columns: 1fr; gap: 13px; }
  .strategy-card { padding: 20px 17px 16px; }
  .strategy-tag { font-size: 8px; gap: 9px; }
  .strategy-card h3 { font-size: 21px; margin-top: 10px; }
  .strategy-card > p { min-height: 0; font-size: 11px; }
  .success-chance { margin: 17px 0; }
  .success-chance b { font-size: 29px; }
  .strategy-effects > div { font-size: 10px; }
  .strategy-card .button { font-size: 11px; }
  .mission-defer { flex-direction: column; gap: 1px; }
  .result-grid { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .result-grid strong { font-size: 25px; }
  .result-dialog h2 { font-size: 29px; }
  .request-quote > p { font-size: 14px; }
  .request-options button { padding: 17px 13px; }
  .request-options b { font-size: 11px; }
  .request-options small { font-size: 9px; line-height: 1.6; }
  .request-options button > span { grid-template-columns: 22px 1fr; }
  .request-options button > span > .icon { width: 19px; }
  .dialog-buttons { flex-direction: column-reverse; }
  .ending-dialog h2 { font-size: 31px; }
  .ending-stats { grid-template-columns: 1fr 1fr; gap: 20px 10px; }
  .ending-question { font-size: 19px; }
  .settings-row { gap: 14px; }
  .settings-row h3 { font-size: 12px; }
  .settings-row p { font-size: 9px; }
  .help-grid { grid-template-columns: 1fr; gap: 21px; }
  .help-shortcuts { gap: 15px; }
  .toast { right: 15px; bottom: 72px; padding: 12px 16px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Guided browser-game interface: visible navigation, one next action, clear costs. */
:root { --rail-width: 148px; }
.rail { width: var(--rail-width); }
.topbar, .workspace { margin-left: var(--rail-width); }
.rail nav { gap: 8px; }
.nav-button { display: flex; justify-content: flex-start; gap: 11px; width: 126px; height: 47px; padding: 0 12px; }
.nav-button span { position: static; display: inline; opacity: 1; pointer-events: none; padding: 0; border: 0; background: none; font-size: 11px; }
.nav-button.active::before { left: -11px; }
.rail-bottom { width: 100%; gap: 4px; }
.rail-version { font-size: 6px; letter-spacing: .4px; }
.workspace { padding-bottom: 107px; }
.page-heading { gap: 24px; }
.campaign-goal { min-width: 330px; }
.goal-values { display: flex; justify-content: space-between; gap: 14px; margin: 9px 0 11px; }
.goal-values > span { color: #8b9da1; font-size: 9px; }
.goal-values b { color: #c5cecb; margin: 4px 0 0; font-family: var(--mono); font-size: 12px; }
.goal-values .met b { color: var(--green); }
.goal-values small { font-size: 8px; font-weight: 400; color: #859481; }
.next-step { display: flex; align-items: center; gap: 16px; border: 1px solid #4a6242; border-radius: 7px; background: #1c2a22; padding: 18px 21px; margin-bottom: 20px; }
.next-step.urgent { border-color: #88664d; background: #2b261e; }
.step-icon { color: var(--green); width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid #465e3d; border-radius: 8px; background: #283a2c; flex-shrink: 0; }
.next-step > div { flex: 1; }
.next-step .eyebrow { font-size: 8px; color: #a2bc90; }
.next-step h2 { font-family: var(--display); font-size: 18px; font-weight: 400; margin-top: 4px; }
.next-step p { font-size: 11px; color: #9db29f; margin-top: 5px; line-height: 1.7; }
.next-step .button { min-width: 176px; min-height: 45px; flex-shrink: 0; font-size: 12px; }
.button { min-height: 43px; }
.metric-label { font-size: 11px; }
.metric-hint { font-size: 8px; }
.map-heading .eyebrow { font-size: 9px; }
.world-map { max-height: 300px; }
.map-legend { font-size: 9px; }
.mission-card-top { font-size: 11px; }
.mission-card h3 { font-size: 16px; }
.mission-location, .mission-location span { font-size: 11px; }
.deadline { font-size: 9px; }
.mission-card-meta > span { font-size: 10px; }
.analyze-button { font-size: 12px; min-height: 39px; padding-top: 10px; margin-bottom: 7px; }
.analyze-button > span { font-size: 10px; }
.orb-container { height: 158px; }
#echo-orb { width: 205px; height: 205px; }
.echo-title { margin-top: 15px; }
.echo-quote p { font-size: 12px; }
.gauge > div:first-child, .echo-footer { font-size: 11px; }
.cluster-header h3 { font-size: 13px; }
.cluster-header > div > span { font-size: 9px; }
.mode-selector button { font-size: 10px; min-height: 34px; }
.mode-description { font-size: 10px; }
.turn-footer { position: fixed; left: calc(var(--rail-width) + 28px); right: 28px; bottom: 0; z-index: 9; background: #101b1ff5; backdrop-filter: blur(12px); border: 1px solid #34473e; border-bottom: 0; border-radius: 8px 8px 0 0; padding: 14px 18px; margin: 0; box-shadow: 0 -12px 32px #060b0e80; }
.turn-status p { font-size: 11px; max-width: 400px; }
.turn-status span { font-size: 8px; }
.turn-warning { font-size: 10px; max-width: 205px; text-align: right; }
.next-turn { min-height: 44px; font-size: 12px; }
.toast { bottom: 88px; }
.strategy-tag { font-size: 8px; }
.strategy-card > p { font-size: 11px; }
.strategy-effects { margin-bottom: 10px; }
.strategy-effects > div { font-size: 11px; padding: 9px 0; }
.access-warning { display: flex; align-items: center; gap: 7px; color: #a9bda4; font-size: 10px; padding: 11px 0; }
.access-warning.has-access { color: #d9b58a; }
.reward-details { color: #9eb296; font-size: 10px; margin-bottom: 17px; }
.reward-details summary { cursor: pointer; min-height: 28px; padding: 5px 0; }
.reward-details p { font-size: 10px; line-height: 1.8; padding: 5px 0 10px; color: #c2d1b8; }
.strategy-card .button { min-height: 44px; font-size: 11px; }
.strategy-card .button:disabled { opacity: .55; }
.dialog-text { font-size: 13px; }
.mission-dialog { width: 1090px; }
.mission-dialog .micro { font-size: 11px; }
.mission-defer button { font-size: 12px; min-height: 40px; }
.mission-defer > span { font-size: 11px; }
.tech-card > p, .tech-effect { font-size: 11px; }
.tech-buy { min-height: 44px; font-size: 11px; }
.research-note p, .help-grid p { font-size: 12px; }
@media (max-width: 1220px) {
  .campaign-goal { min-width: 284px; }
  .goal-values { gap: 9px; }
  .next-step .button { min-width: 153px; font-size: 11px; }
  .next-step h2 { font-size: 17px; }
  .turn-warning { display: none; }
  .turn-status p { max-width: 320px; }
}
@media (max-width: 960px) {
  :root { --rail-width: 80px; }
  .nav-button { flex-direction: column; justify-content: center; width: 68px; height: 60px; padding: 0; gap: 6px; }
  .nav-button span { font-size: 9px; }
  .rail-bottom .nav-button:last-of-type span { font-size: 8px; }
  .nav-button.active::before { left: -6px; }
  .rail-version { display: none; }
  .campaign-goal { display: none; }
  .next-step { flex-wrap: wrap; }
  .next-step > div { min-width: 250px; }
  .next-step .button { margin-left: 59px; }
  .turn-status p { max-width: 280px; }
}
@media (max-width: 650px) {
  :root { --rail-width: 0px; }
  .rail { width: 100%; height: 66px; }
  .rail nav { gap: 2px; }
  .nav-button { width: 48px; height: 52px; min-height: 44px; gap: 4px; }
  .nav-button span { display: inline; font-size: 8px; }
  .nav-button.active::before { left: 17px; right: 17px; top: -7px; }
  .rail-bottom { width: auto; }
  .rail-bottom .nav-button { width: 40px; }
  .rail-bottom .nav-button:last-of-type { display: none; }
  .topbar { padding-inline: 16px; }
  .workspace { padding: 22px 16px 185px; }
  .page-heading { margin-bottom: 17px; }
  .next-step { padding: 16px; gap: 11px; margin-bottom: 16px; }
  .step-icon { width: 35px; height: 35px; align-self: start; margin-top: 2px; }
  .next-step > div { min-width: 0; width: calc(100% - 46px); }
  .next-step h2 { font-size: 17px; }
  .next-step p { font-size: 11px; line-height: 1.7; }
  .next-step .button { margin: 5px 0 0; width: 100%; min-height: 45px; font-size: 12px; }
  .world-map { max-height: 250px; }
  .mission-select { display: block; }
  .mission-location { text-align: left; margin-top: 5px; }
  .mission-card h3 { margin-top: 10px; min-height: 0; }
  .analyze-button { font-size: 12px; min-height: 42px; }
  .echo-title { margin-top: 22px; }
  .echo-type { margin-top: 7px; }
  .echo-panel .orb-container { height: 180px; }
  .echo-gauges { gap: 17px; }
  .gauge > div:first-child, .echo-footer { font-size: 10px; }
  .turn-footer { left: 10px; right: 10px; bottom: 66px; padding: 10px; gap: 0; }
  .turn-status { display: none; }
  .turn-action { gap: 7px; }
  .turn-warning { display: block; text-align: center; max-width: none; font-size: 10px; }
  .next-turn { min-height: 44px; }
  .toast { bottom: 182px; }
  .strategy-effects > div { font-size: 11px; }
  .strategy-tag { font-size: 8px; }
  .strategy-card > p { font-size: 12px; }
  .strategy-card .button { font-size: 11px; }
  .dialog-text { font-size: 12px; }
  .mission-dialog .micro { font-size: 10px; }
  .mission-defer > span { font-size: 10px; }
  .main-column { display: flex; flex-direction: column; }
  .main-column .crises-section { order: 1; margin-top: 0; margin-bottom: 18px; }
  .main-column .map-panel { order: 2; }
  .mission-dialog .strategy-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 14px; }
  .mission-dialog .strategy-tag { grid-column: 1; font-size: 7px; min-height: 20px; }
  .mission-dialog .strategy-card h3 { grid-column: 1; font-size: 19px; margin: 4px 0 8px; }
  .mission-dialog .strategy-card > p { display: none; }
  .mission-dialog .success-chance { grid-column: 2; grid-row: 1 / 3; display: block; margin: 1px 0 0 9px; text-align: right; }
  .mission-dialog .success-chance b { font-size: 28px; }
  .mission-dialog .success-chance > span { display: block; font-size: 8px; margin-top: 4px; }
  .mission-dialog .success-chance > div { display: none; }
  .mission-dialog .strategy-effects { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; padding-top: 9px; border-top: 1px solid #344038; margin-bottom: 3px; }
  .mission-dialog .strategy-effects > div { display: flex; flex-direction: column; align-items: start; border: 0; padding: 2px 0; gap: 4px; }
  .mission-dialog .strategy-effects dt { font-size: 9px; }
  .mission-dialog .strategy-effects dd { font-size: 11px; }
  .mission-dialog .access-warning { grid-column: 1 / -1; padding: 8px 0; }
  .mission-dialog .reward-details { grid-column: 1 / -1; margin-bottom: 2px; }
  .mission-dialog .reward-details summary { min-height: 26px; }
  .mission-dialog .strategy-card > .button { grid-column: 1 / -1; margin-top: 7px; }
}
