/* Player screen: goal, time and KPIs stay visible while choosing tasks. */
:root { --ink:#203b3b; --muted:#647675; --line:#dce5e1; --purple:#526653; --green:#25846a; --bg:#eef2ef; --red:#b35647; }
body { min-width:760px; background:#eef2ef; }
.header { height:66px; padding:0 28px; gap:45px; }
.brand { font-size:20px; min-width:205px; }
.brand-mark { background:#466b5b; border-radius:12px; }
.brand-mark>span { color:#d4e6bc; }
.brand small { color:#69796f; }
.top-nav { gap:24px; }
.top-nav button { font-size:12px; color:#65726e; }
.top-nav button.active { color:#365d4a; }
.top-nav button.active:after { background:#73916b; }
.header-end { gap:15px; }
.save-status { font-size:10px; color:#687a70; }
.profile small { color:#687a70; }
.workspace { height:calc(100dvh - 66px); min-height:680px; padding:0 22px 12px; gap:14px; grid-template-columns:minmax(0,1fr) 470px; grid-template-rows:190px minmax(0,1fr) 78px; grid-template-areas:'overview overview' 'stage decisions' 'timeline timeline'; }
.overview { padding:0; overflow:visible; border:0; background:none; min-width:0; }
.mission { display:flex; align-items:center; gap:34px; height:88px; }
.mission-copy { min-width:0; flex:1; }
.eyebrow { color:#6f7e72; letter-spacing:1.3px; font-size:9px; }
.mission h1 { font-size:23px; letter-spacing:-.6px; font-weight:650; margin:5px 0 5px; line-height:1.15; }
.mission p { display:flex; align-items:center; gap:7px; margin:0; font-size:11px; color:#5e7065; }
.mission p svg { width:14px; height:14px; color:#56815a; }
.mission p .text-button { font-size:11px; text-decoration:underline; margin-left:5px; white-space:nowrap; }
.mission-score { display:flex; flex-direction:column; gap:2px; border-right:1px solid #d2ddd3; padding-right:30px; }
.mission-score>span { font-size:10px; color:#617467; }
.mission-score strong { font-size:29px; letter-spacing:-1px; font-weight:600; color:#486644; }
.mission-score small { color:#788675; font-size:12px; font-weight:450; margin-left:4px; letter-spacing:0; }
.mission-time { width:250px; }
.mission-time>span { color:#3f5c48; font-size:12px; font-weight:600; }
.mission-time>strong { float:right; font-size:15px; }
.mission-time>strong small { font-size:10px; font-weight:400; color:#5e7264; }
.mission-time>small { color:#71816f; font-size:9px; }
.time-track { height:5px; border-radius:5px; overflow:hidden; background:#d9e1d5; margin:9px 0 3px; }
.time-track i { display:block; height:100%; background:#75915d; transition:width .5s; }
.kpi-grid { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(145px,1fr); grid-template-columns:none; gap:9px; height:102px; overflow-x:auto; padding-bottom:2px; }
.kpi-card { text-align:left; border:1px solid #dce4db; border-radius:12px; background:#fffefb; padding:11px 13px 9px; display:flex; flex-direction:column; min-width:0; box-shadow:0 3px 7px #293d2a04; transition:transform .2s,border-color .2s,background .2s; }
.kpi-card:hover { border-color:#819b72; transform:translateY(-2px); background:white; }
.kpi-name { font-size:11px; color:#5a6f63; display:flex; justify-content:space-between; align-items:center; gap:4px; white-space:nowrap; }
.kpi-help { font-size:8px; border:1px solid #c8d4c5; color:#758c6b; width:13px; height:13px; display:inline-grid; place-items:center; border-radius:50%; }
.kpi-card>strong { display:block; font-size:25px; letter-spacing:-.8px; margin:3px 0 1px; font-weight:650; line-height:1.2; color:#29493c; white-space:nowrap; font-variant-numeric:tabular-nums; }
.kpi-target { color:#78836f; font-size:10px; }
.kpi-delta { display:block; font-size:9px; margin-top:auto; padding-top:4px; color:#7a8578; white-space:nowrap; }
.kpi-delta.positive { color:#247d62; }
.kpi-delta.negative { color:#ac5e45; }
.kpi-cash { background:#e3ecdb; border-color:#ccdac0; }
.kpi-cash:hover { background:#edf4e8; }
.kpi-cash>strong { font-size:25px; }
.at-target { border-bottom:3px solid #78a171; }
.stage { border:1px solid #d5ded9; border-radius:17px; background:#dfe9e5; isolation:isolate; }
.stage-heading { top:17px; left:21px; right:21px; z-index:3; }
.stage-heading .eyebrow { font-size:8px; color:#677d74; }
.stage-heading h1 { font-size:19px; color:#2b4b41; font-weight:600; margin:5px 0 0; }
.stage-heading .button { font-size:10px; min-height:32px; background:#f8fcf4c9; border-color:#cddcd3; }
.live-badge { background:#e8f1e5; border-color:#cddcc9; color:#497752; font-size:9px; }
.briefing { top:77px; left:21px; right:21px; padding:10px 0 0; border-color:#cbdad2; gap:10px; }
.briefing-step { font-size:9px; color:#4f7465; margin-top:2px; }
.briefing p { font-size:11px; line-height:1.55; margin:0; color:#4e6a5e; max-width:650px; }
.office { inset:105px 0 0; }
.office-legend { position:absolute; bottom:15px; left:20px; z-index:3; font-size:10px; color:#466858; display:flex; flex-direction:column; gap:5px; pointer-events:none; }
.office-legend button { pointer-events:auto; text-align:left; background:none; border:0; padding:0; color:#3d6351; font-size:10px; width:max-content; text-decoration:underline; }
.scene-info { display:none; }
.scene-controls { bottom:17px; right:18px; z-index:3; background:#ffffffc7; border-color:#cfddd4; }
.scene-controls .icon-button { color:#4f6d5e; height:28px; width:28px; }
.room-label { font-size:10px; padding:7px 10px; background:#fffffff0; color:#3c554c; border-color:#c8d7cb; border-radius:20px; box-shadow:0 4px 14px #233f2d15; font-weight:550; }
.room-label i { width:6px; height:6px; }
.room-label.selected { background:#344f45; border-color:#344f45; color:#fff; box-shadow:0 4px 18px #254c3b33; }
.room-label .plan-dot { background:#86b983; box-shadow:0 0 0 3px #86b98329; }
.market-card { bottom:auto; top:131px; left:20px; max-width:200px; padding:9px 11px; background:#f9fbeddf; border-color:#d1dcc9; box-shadow:none; z-index:2; }
.market-card h3 { font-size:11px; color:#426044; margin:3px 0; }
.market-card p { font-size:10px; color:#60715c; }
.market-card .eyebrow { font-size:7px; }
.market-card .market-factors { display:none; }
.market-card .news-icon { display:none; }
.market-card:empty { display:none; }
.decisions-panel { padding:17px 18px 13px; border:1px solid #d8e1d9; border-radius:17px; background:#fffefb; display:flex; flex-direction:column; gap:0; overflow:hidden; min-height:0; }
.decisions-heading { display:flex; justify-content:space-between; align-items:center; flex:none; }
.decisions-heading h2 { margin:3px 0 0; font-weight:650; font-size:20px; letter-spacing:-.5px; }
.decisions-heading .eyebrow { font-size:8px; }
.decisions-heading .icon-button { color:#6f856b; background:transparent; }
.department-tabs { border:0; padding:12px 0 8px; gap:5px; flex:none; }
.department-tabs button { height:34px; display:flex; align-items:center; justify-content:center; gap:4px; border:1px solid #dce5dc; color:#62755f; font-size:9px; padding:0 5px; position:relative; border-radius:7px; }
.department-tabs button svg { width:13px; height:13px; }
.department-tabs button.active { background:#e5edde; border-color:#9bb58e; color:#3f613d; }
.department-tabs button i { position:absolute; top:-4px; right:-3px; width:12px; height:12px; border-radius:50%; background:#638859; color:white; font-size:8px; font-style:normal; }
.decision-guide { background:#f2f5ec; color:#637357; border-radius:7px; display:flex; gap:7px; align-items:center; font-size:10px; line-height:1.5; padding:7px 9px; margin-bottom:10px; flex:none; }
.decision-guide svg { width:16px; height:16px; }
.choices-scroll { overflow:auto; min-height:0; flex:1; padding-right:4px; scrollbar-width:thin; scrollbar-color:#bdcbb7 transparent; }
.action-card { padding:10px 11px 8px; margin:0 0 8px; border-color:#dce4da; border-radius:10px; background:white; }
.action-card:hover { border-color:#9bb38c; }
.action-card.selected { background:#f0f6e9; border-color:#7f9e6c; box-shadow:inset 3px 0 #7f9e6c; }
.action-title { font-size:13px; }
.action-select { display:flex; width:100%; gap:8px; align-items:center; border:0; padding:0; background:none; text-align:left; font-size:13px; font-weight:600; }
.action-select small { font-size:9px; color:#72925b; font-weight:500; margin-left:auto; white-space:nowrap; }
.choice-radio { margin:0; height:17px; width:17px; border-color:#becdb6; font-size:11px; color:white; }
.selected .choice-radio { border-color:#64854f; background:#64854f; }
.selected .choice-radio:after { display:none; }
.action-card p { font-size:11px; line-height:1.45; color:#61715d; margin:5px 0 7px; }
.effects { gap:4px; }
.effect { font-size:9px; background:#eaf2e7; color:#457b4e; padding:3px 5px; }
.effect.bad { color:#a65f49; background:#fcf0e6; }
.effect.neutral { color:#5e7a86; background:#edf2f5; }
.choice-hint { font-size:10px; color:#6e7957; margin-top:7px; }
.choice-hint summary { cursor:pointer; width:max-content; list-style:none; display:flex; align-items:center; gap:4px; }
.choice-hint summary:after { content:'+'; margin-left:3px; }
.choice-hint[open] summary:after { content:'−'; }
.choice-hint summary svg { width:12px; height:12px; }
.choice-hint[open] { border-top:1px solid #e1e9da; padding-top:7px; }
.choice-hint p { color:#4b674a; margin-bottom:2px; }
.input-control { padding-top:6px; margin:7px 0; border-color:#dfe8d6; }
.input-control label { color:#657a59; font-size:10px; align-items:center; }
.input-value { font-size:11px; color:#385b36; border-color:#c2d0b6; padding:3px; }
.input-control input[type=range] { accent-color:#6f8c56; height:10px; }
.plan-preview { flex:none; margin-top:7px; padding:10px 11px; background:#f2f5ec; border:1px solid #dce6d1; border-radius:10px; }
.plan-preview>div:first-child { display:flex; justify-content:space-between; align-items:center; }
.plan-preview strong { font-size:11px; font-weight:600; color:#4d6544; }
.count-badge { font-size:9px; background:#e4eddb; color:#587846; padding:3px 5px; }
.plan-preview p { font-size:10px; color:#627456; margin:5px 0 0; line-height:1.5; }
.plan-preview .text-button { font-size:10px; display:block; margin-top:6px; color:#4b7351; }
.plan-warning { background:#fff1e9; border-color:#dfac85; }
.plan-warning p { color:#9b5536; }
.pending-tasks { display:flex; flex-wrap:wrap; gap:4px; }
.pending-tasks button { border:1px solid #cad9bd; background:#fffefb; color:#517643; font-size:9px; border-radius:5px; padding:4px 6px; margin-top:6px; }
.pending-tasks button span { margin-left:5px; }
.timeline { padding:11px 17px; border:1px solid #d9e2d6; border-radius:13px; grid-template-columns:minmax(0,1fr) 235px; gap:25px; }
.timeline-top { font-size:11px; margin-bottom:0; }
.timeline-title small,.timeline-hint { color:#65795f; font-size:9px; }
.timeline-node { color:#7c8d70; font-size:9px; margin-top:12px; height:20px; border-color:#dce6d2; }
.timeline-node>span { margin-top:4px; }
.timeline-node.done { border-color:#adc29a; color:#72925e; }
.timeline-node.active { color:#3f653d; }
.timeline-node.done:before,.timeline-node.active:before { background:#72965e; }
.timeline-node.active:before { box-shadow:0 0 0 3px #e9f0df; }
.playback .icon-button { color:#6f8461; }
.timeline-actions { gap:4px; }
.timeline-actions .button { min-height:37px; font-size:12px; border-radius:8px; }
.timeline-actions small { color:#687b60; font-size:9px; }
.button.primary { background:#456d4e; border-color:#456d4e; box-shadow:0 4px 12px #436d4e20; }
.button.primary:hover { background:#345a3c; }
.text-button { color:#4e744f; }
.goal-detail { border-bottom:1px solid #dce5d6; padding:15px 0; }
.goal-detail:first-child { padding-top:0; }
.goal-detail>div { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.goal-detail h3 { font-size:15px; margin:0; }
.goal-detail strong { font-size:20px; color:#456c48; }
.goal-detail strong small { font-size:13px; font-weight:400; }
.goal-detail p { font-size:12px; line-height:1.7; color:#5b7159; }
.modal-header p,.help-card p,.history-entry p,.feedback-item p { color:#637365; }
.help-card p,.feedback-item p { font-size:12px; }
.modal-footer>.muted { font-size:11px; }
.toasts { bottom:104px; }
.toast { background:#355d46; border-color:#577958; font-size:12px; }
.kpi-updated { animation:kpi-confirm .8s ease-out; }
@keyframes kpi-confirm { 0% { box-shadow:0 0 0 4px #a7c28d; transform:translateY(-3px); } 100% { box-shadow:0 0 0 0 transparent; transform:none; } }
@media(min-width:1700px) { .workspace { grid-template-columns:minmax(0,1fr) 540px; grid-template-rows:205px minmax(0,1fr) 85px; padding:0 32px 16px; gap:17px; }.mission { height:95px; }.kpi-grid { height:110px; }.kpi-card { padding:13px 18px; }.kpi-card>strong { font-size:30px; }.decisions-panel { padding:22px; }.action-card { padding:14px; }.action-card p { font-size:12px; }.effect { font-size:10px; }.briefing p { font-size:12px; }.office { inset:112px 0 0; } }
@media(max-width:1250px) { .workspace { grid-template-columns:minmax(0,1fr) 425px; padding:0 14px 10px; gap:10px; }.header { gap:22px; padding:0 20px; }.header .brand { min-width:190px; }.top-nav { gap:14px; }.mission { gap:20px; }.mission h1 { font-size:21px; }.mission-time { width:225px; }.mission-score { padding-right:18px; }.kpi-card { padding:11px 9px; }.kpi-card>strong { font-size:22px; }.kpi-name { font-size:10px; }.kpi-delta { font-size:8px; }.kpi-help { display:none; }.stage-heading { left:16px; right:16px; }.briefing { left:16px; right:16px; }.stage-heading h1 { font-size:17px; }.live-badge { display:flex; }.decisions-panel { padding:14px; } }
@media(max-width:1000px) { body { min-width:0; }.header { gap:15px; }.header .brand { min-width:155px; font-size:18px; }.profile>span:not(.avatar),.header-divider,.save-status { display:none; }.top-nav { gap:9px; }.top-nav button { font-size:10px; }.workspace { height:auto; min-height:calc(100dvh - 66px); grid-template-columns:minmax(0,1fr) 390px; grid-template-rows:auto 520px 85px; }.mission { height:auto; min-height:100px; gap:12px; }.mission-time { width:190px; flex:none; }.mission-time>strong { display:none; }.mission h1 { font-size:19px; }.mission p { font-size:10px; flex-wrap:wrap; }.mission-score { display:none; }.kpi-grid { grid-auto-columns:minmax(135px,1fr); grid-template-columns:none; height:108px; margin-bottom:5px; }.kpi-card>strong { font-size:22px; }.stage-heading .button { display:none; }.briefing p { font-size:10px; }.market-card { display:none; }.timeline { gap:12px; grid-template-columns:minmax(0,1fr) 195px; }.timeline-title small,.timeline-hint { display:none; } }
@media(max-width:760px) { .header { padding:0 12px; }.brand small { font-size:6px; }.header .brand { min-width:145px; }.brand-mark { width:30px; height:30px; font-size:21px; }.top-nav button[data-view=teacher] { display:none; }.header-end .profile { display:none; }.workspace { grid-template-columns:1fr; grid-template-areas:'overview' 'decisions' 'stage' 'timeline'; grid-template-rows:auto 580px 440px 85px; padding:0 10px 10px; }.mission { min-height:110px; }.mission h1 { font-size:18px; }.mission-time { width:135px; }.mission-time>small { font-size:8px; }.mission-time>span { font-size:11px; }.mission p .text-button { margin-left:0; }.kpi-grid { height:108px; }.timeline { position:sticky; bottom:8px; z-index:5; padding:8px; grid-template-columns:minmax(0,1fr) 170px; }.timeline-actions small { display:none; }.timeline-actions .button { font-size:10px; }.timeline-title { font-size:10px; }.playback { display:none; }.timeline-node { font-size:8px; }.scenario-grid { grid-template-columns:1fr; }.toasts { bottom:108px; }.form-grid,.help-grid { grid-template-columns:1fr; }.results-summary { grid-template-columns:1fr 1fr; } }
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

/* Compact desktop choices keep the initial alternatives together. */
@media(min-width:1001px) and (max-width:1699px) {
  .workspace { grid-template-rows:172px minmax(0,1fr) 72px; gap:12px; }
  .mission { height:76px; }
  .kpi-grid { height:96px; overflow-y:hidden; }
  .kpi-card { padding:9px 12px 8px; }
  .kpi-card>strong { font-size:24px; }
  .decisions-panel { padding:14px 16px 12px; }
  .decisions-heading .eyebrow { display:none; }
  .decisions-heading h2 { margin:0; font-size:19px; }
  .decisions-heading .icon-button { width:28px; height:28px; }
  .department-tabs { padding:8px 0; }
  .department-tabs button { height:30px; }
  .decision-guide { font-size:9px; padding:5px 7px; margin-bottom:7px; }
  .action-card { padding:8px 10px 6px; margin-bottom:6px; }
  .action-card:not(.selected) .effects { margin-top:6px; }
  .plan-preview { padding:8px 10px; }
  .plan-preview p { font-size:9px; }
  .plan-preview .text-button { font-size:9px; }
  .timeline { padding:9px 15px; }
}

@media(min-width:1001px) and (max-width:1699px) {
 .decision-guide { display:none; }
 .choice-hint { margin-top:5px; font-size:9px; }
 .department-tabs { padding-bottom:10px; }
}
