/* WorldAI / Atlas — a paper map, an operating ledger and a clear next turn. */
:root {
  color-scheme: light;
  --bg: #e9e6db; --panel: #f8f6ef; --panel-2: #eeeade;
  --ink: #29352e; --muted: #57624f; --subtle: #616b59;
  --line: #cdc9ba; --mint: #386451; --mint-dark: #e4eadc;
  --blue: #476b79; --amber: #8d6528; --red: #a04838;
  --radius: 3px; --nav: 176px;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
body { background: var(--bg); font-size: 14px; }
h1 { font-size: 28px; font-weight: 750; letter-spacing: -.9px; }
h2 { font-weight: 700; }
.mono, .metric-value, .stock-scenario-summary strong { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: -.7px; }
.eyebrow { font-size: 10px; letter-spacing: 1.4px; color: var(--muted); }
.helper, .preview-note, .page-subtitle { color: var(--muted); font-size: 12px; line-height: 1.75; }
.page-subtitle { margin-top: 4px; }
.content { max-width: 1800px; padding: 20px 26px 110px; }
.page-heading { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); align-items: center; }
.panel { box-shadow: none; border-radius: 3px; }
.panel-head { padding: 16px 18px; }
.panel-head h2 { font-size: 15px; }
.panel-body { padding: 0 18px 18px; }
.section-gap { margin-top: 18px; }
.section-title { margin: 0 0 14px; }
.section-title h2 { font-size: 17px; }
.section-title > .muted { font-size: 11px; }
.sidebar { background: #26372f; border-right: 1px solid #19291f; color: #ece9dd; padding: 27px 12px 18px; }
.brand { gap: 9px; padding: 0 10px; color: #f3f0e4; font-size: 24px; letter-spacing: -1px; }
.brand span { color: #d2b57c; }
.brand-mark { display: grid; place-items: center; transform: none; width: 24px; height: 29px; color: #d2b57c; }
.brand-mark .icon { width: 25px; height: 25px; stroke-width: 1.2; }
.brand-note { color: #aab8a7; padding: 10px 10px 29px; font-size: 10px; letter-spacing: .2px; }
.nav-label { color: #aab6a6; padding: 0 12px 11px; font-size: 11px; letter-spacing: 2px; }
.nav { gap: 2px; }
.nav-btn { color: #c3cdbf; border-radius: 2px; gap: 10px; padding: 12px 10px; font-size: 13px; min-height: 46px; }
.nav-index { color: #8d9d87; width: 18px; font-size:10px; font-family: ui-monospace, monospace; }
.nav-btn .icon { width: 16px; height: 16px; }
.nav-btn:hover { background: #34463b; color: #fff9eb; }
.nav-btn.active { color: #f3e2ba; background: #3c4b3c; }
.nav-btn.active .nav-index { color: #d3b37a; }
.nav-btn.active:before { background: #c6a269; height: 23px; border-radius: 0; }
.nav-count { background: #b29356; color: #172b22; }
.sidebar .eyebrow, .sidebar .muted, .sidebar-button, .sidebar-footer { color: #b5c1ad; }
.sidebar .phase-mini { border-color: #4a5c49; }
.phase-dots i { background: #53604f; }
.phase-dots i.on { background: #d1b275; }
.sidebar-bottom { gap: 15px; padding-top: 20px; }
.sidebar-button:hover { color: #f7e6ba; }
.topbar { background: #f6f3e9; border-bottom: 1px solid #cec9b8; min-height: 59px; padding: 0 26px; }
.org-avatar { border-radius: 2px; color: #f7f2e1; background: #3a5040; border-color: #3a5040; width: 29px; height: 29px; }
.org-name { font-size: 14px; font-weight: 750; }
.org-context { color: #64705f; font-size: 11px; }
.date { color: #344b3a; font-size: 12px; }
.date small { color: #6b715e; }
.icon-btn { background: transparent; border-color: #cecabb; border-radius: 2px; color: #4c5e4c; }
.icon-btn:hover { background: #e4e3d5; }
.command-resources { position: relative; background: #e0ddcf; border-bottom: 1px solid #c7c3b1; }
.command-resources .metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; border: 0; border-radius: 0; background: none; }
.command-resources .metric { display: flex; gap: 9px; align-items: center; justify-content: center; padding: 12px 14px; }
.command-resources .metric + .metric { border-color: #c8c5b6; }
.command-resources .metric-label { color: #535f4f; font-size: 11px; gap: 6px; }
.command-resources .metric-value { font-size: 17px; margin: 0; color: #293e2f; }
.command-resources .metric-value.negative { color: #a04838; }
.command-resources .metric-value.positive { color: #386451; }
.command-resources .metric-value .unit { font-size: 10px; }
.command-resources .metric-note { display: none; }
.btn { background: #f4f2e8; border-color: #c8c5b5; border-radius: 3px; padding: 9px 13px; color: #344839; font-weight: 650; font-size: 12px; }
.btn:hover { background: #e8e6d9; border-color: #a7ae9a; }
.btn-primary { background: #3d5944; border-color: #3d5944; color: #fff9e9; }
.btn-primary:hover { background: #294332; border-color: #294332; }
.btn-quiet { background: transparent; border-color: transparent; color: #57674f; }
.btn-quiet:hover { background: #e5e6d7; }
.btn-danger { color: #923c30; background: #f4e5da; border-color: #c7a18c; }
.text-button { color: #3d614c; }
.pill { border-color: #cbc7b7; background: #eeece0; color: #5b6856; border-radius: 2px; font-size: 10px; }
.pill.mint { background: #e4eadc; border-color: #b5c4a7; color: #395d43; }
.pill.amber { background: #f2e5c8; border-color: #d5bc89; color: #7b581d; }
.pill.red { background: #f2dfd4; border-color: #cfaa94; color: #913f31; }
.pill.blue { background: #e1e8e5; border-color: #b4c6c5; color: #3d6270; }
.tab-group { border-radius: 2px; background: #e9e8dd; border-color: #c9ccbc; }
.tab { color: #5b6956; border-radius: 1px; }
.tab.active { background: #d2dcc8; color: #284730; font-weight: 750; }
.filters { padding: 0 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; gap: 5px; }
.filter { background: transparent; border: 1px solid transparent; border-radius: 2px; color: #69705d; font-size: 12px; }
.filter.active { background: #3d5944; border-color: #3d5944; color: #fff9e9; }
.filter:hover { border-color: #a8b29d; }
.section-navigation { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; padding: 0 0 14px; margin-top: -4px; }
.section-navigation > span { margin-right: 9px; color: #747b6a; font-size: 11px; }
.section-navigation .btn { padding: 5px 9px; font-size: 11px; border: 1px solid #cfcdbe; }
section[id^="section-"] { scroll-margin-top: 18px; }
.quest-tracker { padding: 11px 15px; background: #efeddf; border: 1px solid #c9c4ac; border-left: 3px solid #ae8b44; border-radius: 2px; margin-bottom: 16px; }
.quest-tracker small { color: #886a33; }
.quest-tracker h3 { font-size: 13px; }
.quest-tracker p { font-size: 11px; color: #616b5c; }
.pending-banner, .inline-notice { border-radius: 2px; background: #f4e8ce; border-color: #d5bc87; color: #6f5625; }
.beginner-guide { background: #f6f3e5; border: 1px solid #c9c3a8; border-top: 3px solid #a88949; border-radius: 3px; padding: 15px 17px; margin-bottom: 17px; }
.guide-title small { color: #7e6b40; font-size: 10px; }
.guide-title h2 { color: #344b34; font-size: 16px; }
.beginner-guide > p { font-size: 12px; color: #5c6655; }
.guide-facts { font-size: 11px; color: #676c59; }
.guide-facts strong { color: #3c513a; }
.guide-progress { color: #6b704f; }
.turn-result { padding: 10px 14px; border: 1px solid #c9c8b4; border-radius: 2px; background: #e4e6d7; }
.turn-result span { color: #626d57; }
.turn-result .gain { color: #3a6550; }
.turn-result .loss { color: #9a4736; }
.turnbar { background: #f6f3e9; border-color: #c4c0ad; padding: 13px 25px; box-shadow: 0 -3px 0 #e4e1d5; }
.turn-status { color: #4a5b45; }
.turn-status strong { font-size: 12px; }
.turn-detail, .save-hint { color: #6d7463; font-size: 10px; }
.turn-actions .btn { min-width: 100px; padding-block: 10px; }
.live-dot, .action-dot { background: #6d8c54; box-shadow: none; }
.world-grid { grid-template-columns: minmax(0,1fr) 275px; gap: 18px; }
.map-panel { background: #e2e4d9; border: 1px solid #acb19d; }
.map-top { background: #304337; color: #f2efdf; padding: 12px 16px; border-color: #24392d; }
.map-title { font-size: 13px; font-weight: 700; letter-spacing: .2px; }
.map-top .tab-group { border-color: #5e6c57; background: #293c30; }
.map-top .tab { color: #c7ceba; padding: 6px 9px; }
.map-top .tab.active { background: #e0d5b4; color: #32412d; }
.map-canvas { background: #d7ded5; aspect-ratio: 2; min-height: 330px; }
.map-grid { stroke: #879c8b; opacity: .35; }
.map-land { fill: #b7bdab; stroke: #f5f1df; stroke-opacity: .9; stroke-width: .8; }
.map-land:hover { fill: #8fa28c; stroke: #526a52; stroke-opacity: 1; }
.map-land.selected { fill: #819877; stroke: #526846; stroke-opacity: 1; }
.map-route { stroke: #69816b; stroke-width: 1.1; opacity: .48; }
.map-route.bright { stroke: #4c725b; opacity: .8; }
.map-route.warn { stroke: #a3543e; }
.map-node circle { fill: #e8e7d6; stroke: #526c54; }
.map-node .node-icon { stroke: #3d5943; }
.map-node.selected circle { fill: #dbbf75; stroke: #6d6034; }
.map-node.selected .halo { fill: #b3974e; stroke: #8e7a43; opacity: .15; }
.map-node text { fill: #344c39; font-weight: 700; paint-order: stroke; stroke: #d7ded5; stroke-width: 3px; }
.map-ocean { fill: #738b80; letter-spacing: 4px; font-size: 12px; }
.map-info, .map-coords, .map-credit, .map-credit a { color: #536a55; }
.map-info { background: #e3e5d8e8; padding: 5px 7px; border: 1px solid #bec9b6; border-radius: 2px; left: 12px; top: 12px; }
.map-legend { background: #eef0e5; color: #5c6a55; border-color: #bfc7b3; font-size: 10px; }
.legend-border { background: #7b8a70; }
.legend-line { background: #608466; }
.region-cover { background: #e0e5d5; border-bottom: 1px solid #c0c7af; padding: 16px 18px; }
.region-cover:after { display: none; }
.region-cover h2 { color: #354a34; font-size: 24px; }
.region-city { color: #6c795f; }
.region-facts { padding: 15px 17px; gap: 11px; }
.fact-row .label { color: #67715e; }
.fact-row strong { color: #3a5038; }
.agi-foot { background: #eeeddf; border-color: #d2ceba; color: #65705b; }
.field-row { margin-bottom: 13px; }
.field-name { color: #63705c; font-size: 11px; }
.meter { background: #d9ddcc; height: 4px; border-radius: 0; }
.meter > span { background: #527650; border-radius: 0; }
.meter.amber > span { background: #b4934f; }
.meter .threshold { background: #849172; }
.bottleneck { background: #eee4c8; border-color: #ccb77c; border-radius: 2px; color: #7d5c26; padding: 14px; }
.bottleneck h3 { color: #7d5c26; font-size: 13px; }
.bottleneck p { color: #7a6c4b; font-size: 11px; }
.event-grid { gap: 9px; }
.event-card { background: #f4f2e6; border-color: #ccc9b6; border-radius: 2px; padding: 14px 12px; }
.event-card:hover { background: #e9eddf; }
.event-symbol { background: #e5e9d9; color: #55704a; border-radius: 2px; }
.event-symbol.supply { background: #ece1c6; color: #947238; }
.event-copy h3 { color: #3c4e35; font-size: 12px; }
.event-date { color: #747e65; }
.atlas-dossier { margin-top: 18px; border: 1px solid #c8c4af; background: #f2efe3; padding: 14px 17px; }
.atlas-dossier > summary { cursor: pointer; font-size: 12px; color: #4c6144; font-weight: 650; }
.atlas-dossier[open] > summary { margin-bottom: 18px; }
.atlas-dossier > .panel { margin-bottom: 15px; }
.atlas-dossier .model-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.project-card { background: #f9f7ef; border: 1px solid #c9c8b5; border-top: 3px solid #9aab88; border-radius: 2px; min-height: 178px; padding: 17px; }
.project-card:hover { border-color: #778d68; background: #fffdf5; transform: none; }
.project-card h3 { color: #344c31; font-size: 17px; }
.project-card p { font-size: 12px; color: #68705d; }
.project-card .project-effect { color: #496c42; font-size: 12px; }
.project-card .btn-primary { background: #3d5944; color: #fff9e9; }
.project-footer { border-color: #d3d0bc; }
.project-status, .project-reason { color: #72755c; }
.project-grid { gap: 12px; }
.technology-panel { border-color: #b4bea5; margin-top: 24px; }
.tech-phases { gap: 6px; }
.tech-phases li { border-radius: 2px; border-color: #cccdb9; padding: 11px; background: #f0efe2; }
.tech-phases li.known { border-color: #a2b68e; }
.tech-phases li[aria-current] { background: #dce6cf; border-color: #6f8b58; }
.tech-phases strong { color: #425a38; }
.tech-phases span, .tech-phases small { color: #68755c; }
.tech-graph-scroll { background: #eeefe2; border-color: #bec7af; border-radius: 2px; }
.tech-node { background: #f7f6e9; border-color: #b9c3a9; color: #3b5131; border-radius: 2px; }
.tech-node small, .tech-node span, .tech-depth { color: #6a7a5a; }
.tech-node.known { background: #dee8cd; border-color: #7e9b60; }
.tech-node:hover { background: #e6ead8; }
.tech-node.goal { border-color: #9f7a34; box-shadow: none; }
.tech-graph path { stroke: #b0bb9d; }
.tech-graph path.known { stroke: #628447; }
.tech-milestone { background: #f2f2e4; border-color: #c9cfb8; border-radius: 2px; }
.tech-milestone:hover { background: #e7ecda; }
.tech-milestone.known { border-color: #829e65; }
.tech-goal-bar { border-radius: 2px; background: #e3e9d6; }
.model-stages li, .detail-stat, .small-stat, .model-stat, .version-node, .capital-offer, .quest-card { border-radius: 2px; }
.model-stages li { background: #eeefe0; border-color: #c9ceba; }
.model-stages li.active { background: #dfe8cf; border-color: #85a161; }
.form-field select, .form-field input, .region-select, .stock-scenario-inputs select { color: #344a32; background: #fcfaf1; border-color: #bfc4ad; border-radius: 2px; }
input[type=range] { accent-color: #55754b; }
.split-bar, .fund-bar { background: #d9decd; border-radius: 0; }
.split-bar span, .fund-bar > span:first-child { background: #7b9a67; }
.split-bar .blue, .fund-bar > span:last-child { background: #8fa4a1; }
.data-table th { color: #74795f; font-size: 10px; letter-spacing: .2px; font-weight: 700; }
.data-table td, .data-table th, .ledger-table td { border-color: #d8d5c2; }
.data-table td { font-size: 12px; }
.data-table tbody tr:hover { background: #edeee0; }
.exchange-indices { gap: 8px; }
.exchange-indices .panel { background: #f5f4e8; border-top: 3px solid #98ab88; }
.exchange-indices .panel-body { padding: 15px; gap: 5px; }
.exchange-indices strong { color: #3f5838; font-family: ui-monospace, monospace; font-size: 22px; }
.exchange-indices small, .exchange-indices span { color: #68765b; }
.exchange-spark { color: #678751; }
.exchange-meta.mint { color: #476f3a; }
.exchange-meta.red { color: #9c4c37; }
.stock-plot { background: #f5f5e9; border-color: #c8cfb8; border-radius: 2px; }
.stock-plot text { fill: #66775a; }
.stock-grid { stroke: #d3d8c6; }
.stock-series { stroke: #486e3c; }
.stock-series-1 { stroke: #b07634; }
.stock-event-dot { fill: #bd9340; stroke: #faf7e8; }
.stock-hit:hover, .stock-dot { fill: #486e3c; }
.stock-event-line { stroke: #aa8e4e; }
.stock-chart-inspector { background: #eeefdf; border-color: #c6ceb3; border-radius: 2px; }
.stock-contributions .stock-total, .stock-event-history { border-color: #c7cfb3; }
.stock-chart .mint { color: #426a36; }
.stock-chart .red { color: #a04734; }
.stock-chart-legend i { background: #486e3c; }
.stock-chart-legend span+span i { background: #b07634; }
.stock-scenario-summary small { color: #6b765e; }
.stock-scenario-inputs tr { background: #f3f2e7; border-color: #c7ceb5; }
.stock-scenario-inputs td:before { color: #67735b; }
.stock-scenario-inputs select:focus-visible { outline-color: #527249; }
.modal-backdrop { background: #182b1fb8; backdrop-filter: none; }
.modal { background: #f6f3e7; border: 1px solid #b9bca5; border-radius: 4px; box-shadow: 0 16px 70px #14211755; }
.modal-head { background: #304337; color: #f6f2df; padding: 21px 24px 18px; }
.modal-head .eyebrow { color: #c2cbb4; }
.modal-head .icon-btn { color: #e6e7d2; border-color: #64715c; }
.modal-body { padding-top: 21px; }
.modal-intro { color: #5d6d52; }
.modal-actions { background: #eae9d9; border-color: #cacbb4; }
.country-choice, .choice, .contract, .ending-card, .detail-section { border-radius: 2px; }
.country-choice.selected, .choice.selected { background: #e4e9d6; border-color: #698352; }
.timeline-row { border-color: #c4cbb0; }
.timeline-row p { color: #68725c; }
.toast { background: #304337; color: #f8f2dc; border-color: #7a8a65; border-radius: 2px; }
.toast.error { background: #6e4030; color: #fff5e5; }
@media(min-width:1600px) { :root { --nav: 184px; } .world-grid { grid-template-columns: minmax(0,1fr) 300px; } .content { padding-inline: 30px; } }
@media(max-width:1230px) { :root { --nav: 150px; } .nav-index { display:none; } .nav-btn { gap: 10px; } .command-resources .metric { gap: 6px; padding: 11px 8px; } .command-resources .metric-label .icon { display: none; } .command-resources .metric-value { font-size: 15px; } .world-grid { grid-template-columns:minmax(0,1fr) 250px; gap: 14px; } .map-canvas { aspect-ratio:1.8;min-height:300px; } }
@media(max-width:1000px) { .world-grid { grid-template-columns:1fr; } .world-grid>.side-stack { grid-template-columns:repeat(2,minmax(0,1fr)); } .world-grid .beginner-guide { grid-column:1/-1; } .command-resources .metric { flex-direction:column;gap:4px; } .nav-btn .icon { flex-shrink:0; } .topbar { padding-inline:18px; } }
@media(max-width:700px) { .content { padding:17px 16px 110px; } .command-resources .metric-label { font-size:10px; } .command-resources .metric-value { font-size:14px; } .command-resources .metric-value .unit { font-size:10px; } .page-heading h1 { font-size:25px; } .page-subtitle { font-size:11px; } .side-stack .beginner-guide { min-width:0; } .atlas-dossier .model-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } .section-navigation { gap:5px; } .section-navigation .btn { font-size:10px;padding:5px 7px; } .stock-scenario-inputs tr { background:#f3f2e7; } }
@media(max-width:580px) { :root { --nav:0px; } .sidebar { background:#26372f; border-color:#53614e; padding:0; } .nav { padding:6px 5px; } .nav-btn { padding:7px 0; gap:4px; min-height:44px; } .nav-btn .nav-index { display:none; } .nav-btn span { font-size:10px; } .nav-btn .icon { width:17px;height:17px; } .nav-label { display:none; } .topbar { min-height:56px; padding:0 14px; } .top-actions .date { display:block;font-size:10px; } .date small { display:block;margin:0;font-size:10px; } .top-actions .icon-btn { width:27px;height:27px; } .command-resources .metric { padding:10px 3px; } .command-resources .metric-value { font-size:12px;letter-spacing:-.6px; } .command-resources .metric-label { font-size:10px; } .command-resources .metric-value .unit { display:none; } .quest-tracker { padding:10px 11px;margin-bottom:14px; } .quest-tracker .btn { font-size:10px; } .world-grid>.side-stack { grid-template-columns:1fr; } .map-canvas { min-height:220px;aspect-ratio:1.65; } .map-top { padding:12px; } .map-title { font-size:12px; } .map-legend { gap:9px; } .turnbar { padding:10px 13px; } .turn-actions .btn { min-width:84px;padding:10px;font-size:11px; } .turn-actions .btn-primary { min-width:84px; } .turn-status { min-width:90px; } .turn-status strong { font-size:10px; } .turn-detail,.save-hint { display:none; } .project-card { min-height:172px; } .project-card h3 { font-size:17px; } .helper { font-size:11px; } .section-navigation>span { display:none; } .modal-head { padding:19px; } .modal-body { padding-inline:19px; } }

@media(min-width:1001px){.quest-tracker-copy{display:flex;align-items:center;gap:14px}.quest-tracker-copy>small{margin:0;white-space:nowrap}.quest-tracker-copy>span{padding-left:14px;border-left:1px solid #c7c2ac;font-size:11px}.quest-tracker{padding-block:10px}.map-top{padding-block:10px}.map-top .tab-group{padding:2px}.page-heading .eyebrow{margin-bottom:4px}}

@media(min-width:1001px){[data-page=market] .beta-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:12px;gap:15px}.model-stat{padding:14px 18px}.flagship-panel{background:#f5f3e9;border:1px solid #c5c7b0}}

@media(min-width:1001px) {
  .content > .beginner-guide { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:24px; row-gap:8px; padding-block:13px; }
  .content > .beginner-guide .guide-title { grid-column:1/-1; }
  .content > .beginner-guide > p { grid-column:1; margin:0; }
  .content > .beginner-guide .guide-facts { grid-column:1; }
  .content > .beginner-guide .guide-progress { grid-column:1; margin:0; padding:0; border:0; }
  .content > .beginner-guide .guide-actions { grid-column:2; grid-row:2/5; align-self:center; margin:0; justify-content:flex-end; max-width:270px; }
}

[data-page=organization] > .two-column > .side-stack .data-table { min-width:0; table-layout:fixed; }
[data-page=organization] > .two-column > .side-stack .data-table th:first-child { width:64%; }
[data-page=organization] > .two-column > .side-stack .data-table td:last-child,
[data-page=organization] > .two-column > .side-stack .data-table th:last-child { text-align:right; white-space:nowrap; }

.technology-industries { margin:16px 0; border:1px solid var(--line); background:#f0eee2; padding:12px 14px; border-radius:2px; }
.technology-industries > summary { cursor:pointer; font-weight:650; font-size:12px; }
.catalogue-branches { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding-block:15px; }
.catalogue-branches > div { display:flex; justify-content:space-between; gap:8px; border-bottom:1px solid var(--line); padding-bottom:9px; font-size:12px; }
.catalogue-branches small { color:var(--muted); white-space:nowrap; }
.technology-profile { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; padding-block:10px; }
.technology-profile small,.technology-profile strong { display:block; }
.technology-profile small { color:var(--muted); font-size:10px; }
.technology-profile strong { margin-top:6px; font-family:ui-monospace,monospace; }
.technology-sources { display:grid; gap:9px; margin-top:16px; font-size:11px; overflow-wrap:anywhere; }
.technology-sources a { color:#386451; text-decoration:underline; text-underline-offset:3px; }
@media(max-width:700px) { .catalogue-branches { grid-template-columns:repeat(2,minmax(0,1fr)); } .catalogue-branches>div { flex-direction:column; } .technology-profile { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Persistent company ledger: current treasury, settled market activity. */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: minmax(180px,1fr) minmax(540px,760px);
  grid-template-areas: "identity controls" "identity status";
  gap: 4px 24px; padding: 6px 26px 7px;
  box-shadow: 0 3px 9px #26372f0b;
}
.topbar .organization-title { grid-area: identity; min-width: 0; align-self: center; align-items: flex-start; }
.topbar .organization-title>div:last-child { min-width: 0; }
.topbar .org-name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.topbar .org-context { margin-top: 5px; }
.org-resources { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 9px; color: #606957; font-size: 10px; line-height: 1.5; }
.org-resources strong { font-variant-numeric: tabular-nums; color: #354b3c; }
.topbar .top-actions { grid-area: controls; justify-self: end; gap: 9px; }
.topbar .date { white-space: nowrap; }
.company-barometer.command-resources { grid-area: status; width: 100%; background: transparent; border: 0; }
.barometer-caption { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; color: #66705e; font-size: 10px; }
.barometer-caption>span:first-child { color: #3b5140; font-weight: 750; letter-spacing: .4px; }
.barometer-more { margin-left: auto; border: 0; background: transparent; padding: 1px 0 1px 8px; color: #435c48; font: inherit; font-weight: 650; cursor: pointer; }
.company-barometer .metrics { background: #eeecdf; border: 1px solid #cbc7b4; border-radius: 3px; overflow: hidden; }
.company-barometer .metric { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-width: 0; min-height: 70px; padding: 6px 14px; margin: 0; background: transparent; color: #293e2f; text-align: left; border: 0; border-radius: 0; font: inherit; cursor: pointer; }
.company-barometer .metric+.metric { border-left: 1px solid #cbc7b4; }
.company-barometer .metric:hover { background: #e4e7d7; }
.company-barometer .metric:focus-visible, .barometer-more:focus-visible { outline: 2px solid #405f47; outline-offset: -3px; }
.company-barometer .metric-label { color: #535f4f; font-size: 10px; line-height: 1.2; font-weight: 550; }
.company-barometer .metric-value { display: block; margin: 0; color: #293e2f; font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.7px; }
.company-barometer .metric-note { display: block; color: #626b58; font-size:10px; line-height: 1.2; white-space: nowrap; }
.company-barometer .metric.loss .metric-value { color: #91432f; }
.company-barometer .metric.gain .metric-value { color: #38604a; }
.company-status-intro { line-height: 1.8; }
.company-status-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid #d2cebb; margin: 12px 0; background: #f0eee2; }
.company-status-grid>div { display: flex; flex-direction: column; gap: 7px; padding: 15px; min-width: 0; border-bottom: 1px solid #d2cebb; }
.company-status-grid>div:nth-child(odd) { border-right: 1px solid #d2cebb; }
.company-status-grid small, .company-status-grid span { font-size: 11px; color: #626b58; line-height: 1.6; }
.company-status-grid strong { font-size: 19px; color: #304737; overflow-wrap: anywhere; }
.company-status-grid+.helper { margin-bottom: 22px; }
@media(min-width:901px) {
  .barometer-caption { position: absolute; top: -29px; left: 0; right: 300px; margin: 0; }
}
@media(max-width:1230px) {
  .topbar { grid-template-columns: minmax(170px,1fr) minmax(500px,690px); column-gap: 18px; padding-inline: 20px; }
  .company-barometer .metric { padding-inline: 11px; }
  .company-barometer .metric-value { font-size: 19px; }
  .company-barometer .metric-note { font-size:10px; }
}
@media(min-width:901px) and (max-width:1230px) { .barometer-caption { right: 245px; } }
/* The caption sits over the controls row; only its own link takes clicks, and it moves aside when the research inbox is shown. */
.barometer-caption { pointer-events:none; }
.barometer-caption .barometer-more { pointer-events:auto; }
.topbar:has(.research-inbox) .barometer-caption { right:420px; }
@media(min-width:901px) and (max-width:1230px) { .topbar:has(.research-inbox) .barometer-caption { right:365px; } }
@media(min-width:901px) and (max-width:960px) { .topbar:has(.research-inbox) .barometer-caption>span:nth-child(2) { display:none; } }
/* Short laptop screens: the fixed sidebar scrolls instead of cutting off its last buttons. */
@media(min-width:581px) { .sidebar { overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; } }
@media(max-width:900px) {
  .topbar { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "identity controls" "status status"; padding: 10px 18px; row-gap: 10px; }
  .topbar .organization-title { align-items: center; }
  .topbar .org-name { font-size: 14px; }
  .topbar .org-context { margin-top: 2px; }
  .org-resources { display: none; }
  .company-barometer .metric { min-height: 64px; }
}
@media(max-width:580px) {
  .topbar { padding: 9px 12px 10px; gap: 8px; }
  .topbar .org-name { max-width: 135px; font-size: 13px; }
  .topbar .org-avatar { display: none; }
  .topbar .org-context { font-size:10px; }
  .topbar .top-actions { gap: 6px; }
  .topbar .top-actions .divider { display: none; }
  .barometer-caption { margin-bottom: 5px; gap: 9px; font-size:10px; }
  .company-barometer .metric { align-items: flex-start; padding: 8px 6px; gap: 5px; min-height: 64px; }
  .company-barometer .metric-label { font-size:10px; }
  .company-barometer .metric-value { font-size: 15px; letter-spacing: -.6px; }
  .company-barometer .metric-note { font-size:10px; white-space: normal; min-height: 18px; line-height: 1.3; }
  .company-status-grid>div { padding: 11px; }
  .company-status-grid strong { font-size: 16px; }
}

/* Introduce operating rooms when the player has something meaningful to do. */
.menu-progress { margin: 17px 5px 0; padding: 12px 9px; border: 1px solid #64745e; color: #e5e4d1; background: #304336; border-radius: 2px; }
.menu-progress>small { display: flex; justify-content: space-between; gap: 5px; color: #e5e4d1; font-size: 10px; }
.menu-progress p { margin: 9px 0; color: #cbd0bc; font-size: 10px; line-height: 1.7; }
.menu-progress b { color: #f5e6b9; }
.menu-progress button { width: 100%; display: flex; justify-content: space-between; gap: 5px; padding: 5px 0 0; border: 0; background: transparent; color: #f0dfb2; text-align: left; font: inherit; font-size: 10px; cursor: pointer; }
.menu-progress button:focus-visible { outline: 2px solid #e4ca84; outline-offset: 3px; }
.nav-new { margin-left: auto; font-size:10px; letter-spacing: .4px; color: #f4dfa7; font-weight: 750; }
.menu-unlock-notice { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #b2bba0; border-left: 3px solid #637f50; background: #e5ead7; padding: 12px 15px; margin-bottom: 14px; }
.menu-unlock-notice strong { color: #344f39; font-size: 12px; }
.menu-unlock-notice p { color: #59664b; font-size: 11px; margin-top: 5px; line-height: 1.6; }
.navigation-roadmap { border-top: 1px solid #cecbb8; margin: 16px 0; }
.navigation-step { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 2px; border-bottom: 1px solid #cecbb8; }
.navigation-step>div { min-width: 0; }
.navigation-step strong { color: #46523f; font-size: 14px; }
.navigation-step small { display: block; color: #6b6c58; font-size: 10px; line-height: 1.5; margin: 5px 0; }
.navigation-step p { color: #67705b; font-size: 11px; line-height: 1.6; }
.navigation-step.available strong { color: #33533c; }
.navigation-later { flex-shrink: 0; padding: 5px 7px; color: #777762; font-size: 10px; border: 1px solid #d2cebc; }
.company-scale { margin-top: 8px; font-size: 10px; color: #ddcda7; line-height: 1.6; }
.locked-navigation { margin: 10px 5px 0; border-top: 1px solid #56644f; padding-top: 10px; }
.locked-navigation summary { color: #c6c8b7; cursor: pointer; font-size: 11px; padding: 4px 0; }
.locked-navigation summary b { font-weight: 400; margin-left: 5px; }
.nav-locked { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; color: #acb1a3; font: inherit; font-size: 11px; text-align: left; padding: 9px 3px; cursor: help; }
.nav-locked small { color: #b3b8a6; font-size:10px; }
.nav-locked:hover { background: #34463b; color: #e8e8d5; }
.nav-locked:focus-visible, .locked-navigation summary:focus-visible { outline: 2px solid #e4ca84; outline-offset: 2px; }
.navigation-progress { color: #725b35 !important; }
.feature-lesson { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; padding: 15px 18px; border: 1px solid #b5bd9e; border-left: 4px solid #758657; background: #f4f4e7; }
.lesson-copy { min-width: 0; }
.lesson-copy>small { display: block; color: #657049; font-size: 10px; margin-bottom: 5px; }
.lesson-copy>strong { display: block; color: #364f3d; font-size: 14px; }
.lesson-copy ol { display: flex; flex-wrap: wrap; gap: 5px 15px; padding: 0; margin: 9px 0 0; list-style: none; }
.lesson-copy li { color: #686b55; font-size: 10px; line-height: 1.6; }
.lesson-copy li span { display: inline-block; margin-right: 5px; }
.lesson-copy li.is-done { color: #3f6442; }
.lesson-copy>p { color: #6f694e; font-size: 10px; margin-top: 8px; line-height: 1.7; }
.lesson-controls { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.menu-notice-actions { display: flex; flex-shrink: 0; gap: 6px; }
.quest-lesson { border-left: 3px solid #829566; }
#coach-root { position: fixed; inset: 0; z-index: 160; pointer-events: none; }
#coach-root [hidden] { display: none !important; }
.coach-outline { position: fixed; border: 3px solid #a77927; border-radius: 5px; box-shadow: 0 0 0 3px #fff8dcbd; pointer-events: none; transition: opacity .15s; }
.coach-outline>.coach-here { position: absolute; top: -13px; right: -5px; background: #79591f; color: #fff7dc; border: 1px solid #f6eac5; border-radius: 2px; font-size:10px; padding: 2px 5px; }
.coach-tap-demo { position:absolute; width:0; height:0; pointer-events:none; transform-origin:0 0; }
.coach-tap-cursor { position:absolute; left:-2px; top:-2px; width:30px; height:38px; overflow:visible; filter:drop-shadow(0 2px 2px #15241c85); transform-origin:2px 2px; animation:coach-click-cursor 3.2s 3 both; }
.coach-tap-cursor path { fill:#fff9e6; stroke:#4d3e20; stroke-width:1.7; stroke-linejoin:round; }
.coach-tap-ring { position:absolute; left:-11px; top:-11px; width:22px; height:22px; border:2px solid #f0cf83; border-radius:50%; box-shadow:0 0 0 2px #4d3e2070; opacity:0; animation:coach-click-ring 3.2s 3 both; }
#coach-root[data-kind=choose] .coach-tap-demo { display:none; }
#coach-root[data-paused=true] .coach-tap-demo * { animation-play-state:paused; }
@keyframes coach-click-cursor { 0%,10% { opacity:0; transform:translate(8px,10px); } 24%,38% { opacity:1; transform:translate(0,0) scale(1); } 44% { opacity:1; transform:translate(0,0) scale(.84); } 53%,100% { opacity:1; transform:translate(0,0) scale(1); } }
@keyframes coach-click-ring { 0%,39% { opacity:0; transform:scale(.25); } 44% { opacity:.9; transform:scale(.4); } 65%,100% { opacity:0; transform:scale(1.65); } }
html[data-motion=reduced] .coach-tap-demo * { animation:none !important; }
@media(prefers-reduced-motion:reduce) { .coach-tap-demo * { animation:none !important; } }
.coach-card { position: fixed; width: 286px; max-width: calc(100vw - 24px); padding: 13px 15px 10px; color: #edeedc; background: #304337; border: 1px solid #d6c28e; border-radius: 4px; box-shadow: 0 7px 25px #182b1f35; pointer-events: auto; }
.coach-card>small { display: block; color: #d9cca6; font-size:10px; margin-bottom: 6px; }
.coach-card>strong { display: block; font-size: 13px; line-height: 1.5; }
.coach-card>p { color: #e0e2cd; font-size: 11px; line-height: 1.7; margin: 6px 0 10px; }
.coach-card>div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #64705a; padding-top: 7px; }
.coach-card button { border: 0; background: transparent; color: #ead5a1; padding: 3px 0; font: inherit; font-size: 10px; cursor: pointer; }
.coach-card button:hover { color: #fff6db; text-decoration: underline; }
.coach-card button:focus-visible,.coach-resume:focus-visible { outline: 2px solid #e3c681; outline-offset: 3px; }
.coach-resume { position: fixed; right: 18px; bottom: 86px; border: 1px solid #b5a16d; border-radius: 3px; padding: 9px 12px; background: #f5f1de; color: #49553b; font: inherit; font-size: 10px; pointer-events: auto; cursor: pointer; box-shadow: 0 3px 12px #182b1f20; }
.coach-target { scroll-margin-block: 160px 130px; }
@media(max-width:580px) { .coach-card { width: 270px; padding: 11px 12px 8px; }.coach-card>p { font-size: 10px; margin-block: 5px 8px; }.coach-card>strong { font-size: 12px; }.coach-resume { right: 12px; }.coach-target { scroll-margin-block: 310px 140px; } }
@media(prefers-reduced-motion:reduce) { .coach-outline { transition: none; } }
@media(max-width:820px) { .feature-lesson { align-items: flex-start; flex-direction: column; gap: 11px; }.lesson-controls { flex-wrap: wrap; }.menu-notice-actions { flex-wrap: wrap; } }
@media(max-width:580px) { .feature-lesson { padding: 12px; }.lesson-copy ol { flex-direction: column; gap: 4px; }.lesson-controls .btn { font-size: 10px; }.menu-unlock-notice { align-items: flex-start; }.menu-notice-actions .btn { font-size: 10px; padding: 7px; } }
@media(min-width:581px) and (max-width:1040px) { .locked-navigation { margin-inline: 0; }.locked-navigation summary { font-size:10px; }.nav-locked { flex-direction: column; gap: 3px; font-size:10px; }.company-scale { font-size:10px; } }
@media(max-width:580px) { .locked-navigation { margin: 0; padding: 4px 13px; border-top: 0; border-bottom: 1px solid #56644f; }.locked-navigation summary { font-size: 10px; }.locked-navigation>div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 15px; }.menu-progress .company-scale { display: none; } }
@media(min-width:581px) and (max-width:1040px) { .menu-progress { margin-inline: 0; padding: 9px 4px; }.menu-progress>small { flex-direction: column; font-size:10px; }.menu-progress p { display: none; }.menu-progress button { font-size:10px; line-height: 1.5; }.nav-new { position: absolute; right: 4px; bottom: 3px; font-size:10px; } }
@media(max-width:580px) { .menu-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; border-inline: 0; border-radius: 0; padding: 5px 13px; }.menu-progress>small { font-size:10px; gap: 9px; }.menu-progress p { display: none; }.menu-progress button { width: auto; font-size:10px; padding: 2px; }.nav-btn { position: relative; }.nav-new { position: absolute; right: 4px; bottom: 2px; font-size:10px; }.menu-unlock-notice { padding: 10px 11px; gap: 8px; }.menu-unlock-notice strong { font-size: 11px; }.menu-unlock-notice .btn { flex-shrink: 0; padding-inline: 9px; } }
.timeline-detail { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.timeline-detail span { color: #78815e; font-size: 11px; }
.timeline-detail:hover { color: #526b42; text-decoration: underline; }
.timeline-detail:focus-visible { outline: 2px solid #9d7d35; outline-offset: 4px; }

.corporate-board { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; margin:18px 0; }.corporate-seat { border:1px solid #a8b89d; padding:13px 8px; display:flex; flex-direction:column; gap:7px; text-align:center; background:#edf0df; }.corporate-seat small { color:#6e7e65; font-size:10px; }.corporate-seat strong { font-size:12px; font-weight:500; color:#486147; }.corporate-seat.founder { border-color:#a9a06a; background:#e5dfbf; }.corporate-seat.acquirer { border-color:#a77f6a; background:#e3d0b8; }@media(max-width:580px) { .corporate-board { gap:4px; }.corporate-seat { padding:10px 3px; }.corporate-seat strong { font-size:10px; } }

.patent-regions { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:16px; margin:18px 0; border:1px solid #a3b596; }.patent-regions label { display:flex; align-items:center; gap:7px; font-size:12px; min-height:30px; }@media(max-width:600px) { .patent-regions { grid-template-columns:1fr 1fr; } }
