:root{--ink:#203e38;--muted:#74817a;--green:#285e4b;--line:#dce3d9;--paper:#f5f5ee;--orange:#ecaa63}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,.button{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:9px;padding:11px 17px;cursor:pointer;text-decoration:none;display:inline-block}button:hover,.button:hover{border-color:#6c9b83}button:disabled{opacity:.4;cursor:not-allowed}.primary{background:var(--green);border-color:var(--green);color:#fff}.primary span{float:right;margin-left:25px}.quiet{background:transparent;padding:7px 11px}.link{background:none;border:0;padding:16px 0;text-decoration:underline;color:var(--muted)}header{height:90px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4vw;gap:20px}.brand{font-size:35px;font-weight:850;letter-spacing:-3px;color:var(--ink);text-decoration:none;display:flex;align-items:center}.brand>span{color:#c98237}.brand small{font-size:10px;letter-spacing:2px;margin-left:24px;max-width:140px;line-height:1.6}.header-right{display:flex;align-items:center;gap:20px;font-size:12px}.badge{border:1px solid #cbd8c7;border-radius:30px;font-size:9px;letter-spacing:1.3px;padding:7px 12px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:#748775}.eyebrow #clock{float:right;font-size:16px;letter-spacing:0;color:var(--green)}main{max-width:1440px;margin:auto;padding:36px 4vw 55px}.welcome{display:grid;grid-template-columns:1.45fr 1fr;gap:7vw;padding-top:50px}.welcome h1{font-size:clamp(38px,4.7vw,68px);font-weight:600;letter-spacing:-2.7px;line-height:1.07;margin:20px 0}.welcome em{font-style:normal;color:#59866b}.lead{font-size:17px;color:var(--muted);max-width:430px}h1{font-size:32px;letter-spacing:-1px;line-height:1.2;margin:10px 0}h2{font-size:23px;letter-spacing:-.5px;line-height:1.3;margin:12px 0 18px}h3{font-size:16px}p{margin:12px 0}.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px;margin-bottom:22px}.entry{margin-top:60px;align-self:start;padding:34px}.entry .primary{width:100%;margin-top:10px}.hint{font-size:12px;color:var(--muted)}label{display:block;font-size:13px;font-weight:600;margin:16px 0}input:not([type=checkbox]):not([type=radio]),textarea,select{display:block;width:100%;border:1px solid #d8dfd5;border-radius:8px;background:#fafbf7;padding:12px;margin-top:8px;color:var(--ink)}input:focus,textarea:focus,select:focus{outline:2px solid #88bba3;outline-offset:2px}.check{display:flex;gap:9px;align-items:center;font-weight:400}.check input{accent-color:var(--green)}.world{background:radial-gradient(ellipse at 50% 55%,#e4eddf,#edf1e7 70%);border:1px solid #dce6d7;border-radius:20px;position:relative;overflow:hidden;min-height:310px}.world svg{display:block;width:100%;height:auto}.welcome .world{margin-top:25px;max-height:370px}.sky-label{position:absolute;left:22px;top:20px;font-size:9px;letter-spacing:1.8px;color:#6b8975}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#6d9b75;margin-right:6px}.world-note{position:absolute;bottom:20px;left:22px;font-size:12px;font-weight:600}.world-note span{display:block;font-size:10px;font-weight:400;color:var(--muted)}.building{animation:build .65s ease-out}@keyframes build{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:translateY(0)}}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:8px 0 30px;gap:20px}.phase{font-size:12px;padding:9px 15px;border:1px solid #c6d8c6;border-radius:30px;background:#edf3e7}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.stat{background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px 22px}.stat>span{color:var(--muted);font-size:12px}.stat strong{display:block;font-size:29px;font-weight:550;letter-spacing:-1px}.stat small{font-weight:400;font-size:12px;color:var(--muted);margin-left:8px;letter-spacing:0}.meter{height:3px;background:#eef0e8;margin-top:10px}.meter i{height:100%;display:block;background:#8eb49a}.game-grid{display:grid;grid-template-columns:1.13fr 1fr;gap:28px}.material{padding:18px 20px;background:#f3f5ef;border-radius:10px;font-size:13px}.material b{font-size:11px;text-transform:uppercase;letter-spacing:1px}.material p{margin-bottom:0}.choices{margin:20px 0}.choice{border:1px solid var(--line);border-radius:11px;padding:15px;display:flex;align-items:start;gap:12px;cursor:pointer;font-weight:400}.choice:has(input:checked){background:#eff5eb;border-color:#79a78d}.choice input{margin-top:5px;accent-color:var(--green)}.choice strong,.choice small{display:block}.choice small{color:var(--muted);margin-top:5px}.task .primary{width:100%}.accepted{background:#eaf4e8;color:#346b48;padding:20px;border-radius:10px}.accepted p{font-size:13px}.history{padding:5px 12px;color:var(--muted);font-size:12px}.history h3{color:var(--ink)}.waiting{text-align:center;padding:55px 25px}.orbit{font-size:55px;color:#afc6a8}.waiting p{color:var(--muted)}.admin-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:25px}.actions{display:flex;flex-wrap:wrap;gap:10px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:15px}.section-title h2{margin-bottom:5px}.table-wrap{overflow:auto;margin:18px 0}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap;font-size:13px}th{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}th,td{padding:12px 10px;border-bottom:1px solid var(--line)}td:first-child{font-weight:700}td small{display:block;color:#b16650}.note p{font-size:13px;color:var(--muted)}summary{cursor:pointer;font-weight:600}textarea{font-family:ui-monospace,monospace;font-size:12px;resize:vertical}.stream iframe{width:100%;aspect-ratio:16/9;border:0;margin-top:15px}footer{max-width:1440px;padding:22px 4vw;margin:auto;border-top:1px solid var(--line);font-size:11px;color:var(--muted);display:flex;justify-content:space-between;gap:20px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(90px);background:#203e38;color:#fff;padding:13px 22px;border-radius:12px;z-index:100;transition:transform .2s;max-width:90vw}#toast.show{transform:translateX(-50%)}dialog{border:1px solid var(--line);border-radius:18px;color:var(--ink);width:min(480px,95vw);padding:28px}dialog::backdrop{background:#183b3650}.review{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}@media(max-width:950px){.header-right .badge{display:none}.welcome{gap:25px}.welcome h1{font-size:44px}.entry{padding:24px}.game-grid,.admin-grid{grid-template-columns:1fr}.game-grid>section:first-child .world{max-height:420px}.stats{gap:10px}.stat{padding:14px}.section-title{flex-wrap:wrap}}@media(max-width:650px){header{height:75px}.brand small{display:none}.header-right{font-size:10px;gap:8px}.welcome{grid-template-columns:1fr;padding-top:28px}.entry{margin-top:0}.welcome .world{max-height:290px}.welcome h1{font-size:43px}.stats{grid-template-columns:repeat(2,1fr)}.card{padding:21px}.page-heading{align-items:start}.page-heading h1{font-size:27px}.phase{font-size:10px}.world-note{font-size:10px}.world-note span{font-size:9px}footer{display:block}footer span{display:block;margin-top:6px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* Independent vector layers; animations use transform and opacity only. */
.scene-link{color:var(--green);text-decoration:none;font-weight:600}.cluster-world{min-height:0;background:radial-gradient(ellipse at 50% 45%,#faf8ef,#eaece3);isolation:isolate}.cluster-world .cluster-svg{display:block;width:100%;height:auto}.welcome .cluster-world{max-height:none}.scene-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:17px 20px 0;font-size:9px;letter-spacing:1.5px;color:#6c8371}.motion-toggle{font-size:11px;padding:5px 10px;letter-spacing:0;background:#ffffffa8;border-radius:20px}.cluster-caption{padding:0 22px 20px;margin-top:-5px;display:flex;justify-content:space-between;gap:10px;font-size:12px}.cluster-caption span{font-size:10px;color:#7f8c7f}.zone-label{font-family:inherit;font-size:7px;letter-spacing:1px;font-weight:650;fill:#687d68}.zone-pending{opacity:.37}.zone-pending .wind-rotor,.zone-pending .water-ripple{animation:none}.wind-rotor{animation:wind-spin 13s linear infinite;transform-box:view-box;transform-origin:0 0}.flow{animation:pipe-flow 5s linear infinite}.water-ripple{animation:ripple 3.7s ease-out infinite;transform-origin:0 0}.lab-bubbles{animation:bubble-drift 5s ease-in-out infinite}.robot-arm{animation:robot-work 11s ease-in-out infinite;transform-origin:0 0}.campus-truck{animation:delivery 23s ease-in-out infinite}.motion-off .wind-rotor,.motion-off .flow,.motion-off .water-ripple,.motion-off .lab-bubbles,.motion-off .robot-arm,.motion-off .campus-truck{animation-play-state:paused}.cluster-preview{max-width:1250px}.cluster-preview .cluster-world{max-width:1060px;margin:auto}.scene-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 24px;padding:24px 0;font-size:12px;color:#657b6d}.scene-legend i{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:7px}.cluster-preview>.hint{text-align:center}@keyframes wind-spin{to{transform:rotate(360deg)}}@keyframes pipe-flow{to{stroke-dashoffset:-140}}@keyframes ripple{0%{transform:scale(.45);opacity:.8}85%,100%{transform:scale(2.5);opacity:0}}@keyframes bubble-drift{0%,100%{transform:translateY(0);opacity:.5}50%{transform:translateY(-5px);opacity:1}}@keyframes robot-work{0%,15%,65%,100%{transform:rotate(-6deg)}30%,45%{transform:rotate(15deg)}}@keyframes delivery{0%,12%,100%{transform:translate(0,0)}40%,65%{transform:translate(84px,-42px)}88%{transform:translate(0,0)}}@media(max-width:650px){.header-right .scene-link{max-width:90px;line-height:1.4}.cluster-caption{flex-direction:column;gap:2px}.scene-toolbar{padding:14px 14px 0;letter-spacing:.7px}.cluster-preview .page-heading{flex-direction:column;align-items:start}.scene-legend{gap:10px;font-size:10px}.game-grid>section:first-child .cluster-world{max-height:none}.header-right #connection{max-width:100px}}@media(prefers-reduced-motion:reduce){.cluster-world *{animation:none!important}.motion-toggle{display:none}}
.reference-world{background:#e9e3da;min-height:0}.reference-cluster{display:block;width:100%;height:auto;mix-blend-mode:multiply}.reference-world .scene-toolbar{padding-bottom:5px}.scene-view-controls{display:flex;justify-content:flex-end;padding:9px 2px 14px}.scene-style-toggle{font-size:11px;color:var(--muted)}.cluster-preview .scene-container{max-width:1060px;margin:auto}.welcome .reference-world{max-height:none}.game-grid>section:first-child .reference-world{max-height:none}
.reference-cluster{mix-blend-mode:normal}
.reference-stage{position:relative;line-height:0}.reference-motion{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.reference-rotor{animation:reference-wind 15s linear infinite;transform-origin:0 0;transform-box:view-box}.reference-ripple{animation:reference-water 4.8s ease-out infinite;transform-origin:0 0;transform-box:view-box}.reference-ripple.ripple-late{animation-delay:-2.4s}.motion-off .reference-rotor,.motion-off .reference-ripple{animation-play-state:paused}@keyframes reference-wind{from{transform:rotate(18deg)}to{transform:rotate(378deg)}}@keyframes reference-water{0%{transform:scale(.2);opacity:0}15%{opacity:.65}90%,100%{transform:scale(1);opacity:0}}@media(prefers-reduced-motion:reduce){.reference-rotor,.reference-ripple{animation:none!important}.reference-ripple{opacity:0}}

.island-wind,.island-glint,.island-beacon{opacity:.08}
.island-wind{animation:island-breathe 6s ease-in-out infinite}
.island-glint{animation:island-breathe 8s ease-in-out infinite -3s}
.island-beacon{animation:island-breathe 3s ease-in-out infinite -1s}
@keyframes island-breathe{0%,100%{opacity:.08}50%{opacity:.72}}
.motion-off :is(.island-wind,.island-glint,.island-beacon){animation:none;opacity:0}
@media(prefers-reduced-motion:reduce){
  .island-wind,.island-glint,.island-beacon{animation:none;opacity:0}
}

.greenhouse-beds{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;mix-blend-mode:multiply}
.greenhouse-beds--shortage{fill:#c18c45;opacity:.76}
.greenhouse-beds--supplied{fill:#70c97b;opacity:.48}
.greenhouse-warning{display:inline-block;padding:.4rem .55rem;border-radius:.4rem;background:#fff0ca;color:#58370b;font-size:.75rem;font-weight:700;line-height:1.25}
.reference-stage .greenhouse-warning{position:absolute;left:11%;top:62%;max-width:65%}

/* Team feedback panels stay in normal document flow. */
.task .material{margin:20px 0}
.task .accepted,.task .review,.calculation-result{margin-top:20px;position:static}
.game-grid>section{min-width:0}
.effects-panel{margin-top:18px}
.effects-panel h3,.finance-panel h3{margin:0 0 14px}
.condition{display:flex;flex-direction:column;gap:5px;padding:13px 15px;margin:10px 0;background:#f3f5ef;border-radius:10px;line-height:1.5}
.condition--bad{border-left:4px solid #bf763b;background:#fff3e6}
.condition--good{border-left:4px solid #4b8967}
.condition small,.condition span{font-size:13px}
.latest-effect{margin:18px 0}
.effect-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}
.effect-chip{display:inline-block;font-size:12px;line-height:1.5;padding:4px 8px;border-radius:6px;background:#edf1ed;color:#344c44}
.effect-chip--bad{background:#fff0e4;color:#8a481b}
.effect-chip--good{background:#e9f4ec;color:#2b6645}
.indicator-help{margin-top:14px;font-size:13px}
.indicator-help summary{cursor:pointer}
.indicator-help p{line-height:1.6}
.calculation-result{display:flex;flex-direction:column;gap:8px;background:#f3f5ef;padding:16px;border-radius:10px}
.calculation-result+.accepted{margin-top:20px}
.calculation-rules{line-height:2.2}
.task h3{margin-top:24px}
.choice-price{display:block;font-size:14px;font-weight:700;margin-top:10px}
.choice--unavailable{opacity:.65}
.finance-panel{border:1px solid #bacabc;background:#f7faf5}
.finance-panel--low{border:2px solid #c4864e;background:#fff7ed}
.finance-balance{font-weight:700}
.finance-offer{padding:14px 0;border-top:1px solid #dce2d7}
.finance-offer p{font-size:13px;line-height:1.5}
.finance-offer button{white-space:normal}

.finance-panel summary{font-weight:700;cursor:pointer;line-height:1.5}
.budget-alert{padding:14px 18px;background:#fff0da;border:1px solid #c4864e;border-radius:10px;color:#78451f;font-weight:700;margin-bottom:16px}

.management-panel summary{font-weight:700;cursor:pointer;line-height:1.5}

/* Compact player workspace: summary at left, map and task at right. */
body:has(.team-workspace){font-size:14px}
body:has(.team-workspace)>#app>header{height:62px}
body:has(.team-workspace) footer{display:none}
.team-workspace{height:calc(100dvh - 62px);max-width:1600px;padding:12px 24px 16px;display:flex;flex-direction:column;gap:10px}
.team-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.team-topbar h1{font-size:22px;margin:3px 0}
.team-calendar{text-align:right;font-size:13px;font-weight:600}
.team-calendar>span{display:block;color:var(--muted);font-size:11px;font-weight:400}
.team-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:16px;min-height:0;flex:1}
.team-summary,.team-play{min-height:0;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}
.team-summary{padding:14px;background:#fff;border:1px solid var(--line);border-radius:14px}
.team-summary h2{font-size:16px;margin:0 0 10px}
.summary-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.summary-stat{padding:9px 10px;background:#f5f7f2;border-radius:9px}
.summary-stat>span{display:block;color:var(--muted);font-size:11px}
.summary-stat strong{font-size:23px;line-height:1.3}
.summary-stat small{font-size:10px;font-weight:400}
.summary-stat .meter{margin-top:6px;height:4px}
.summary-reserve,.income-summary{padding:10px 0;border-bottom:1px solid var(--line)}
.summary-reserve>span,.income-summary>span{font-size:11px;display:block;color:var(--muted)}
.summary-reserve strong,.income-summary strong{font-size:16px}
.income-summary small{display:block;font-size:10px;color:var(--muted)}
.water-state{font-size:12px;padding:10px 0}
.text-danger{color:#a24f24}
.stability-badge{font-size:11px;margin-top:10px;padding:7px 9px;border-radius:6px}
.stability-badge--good{background:#e9f4ec;color:#2b6645}
.stability-badge--risk{background:#fff0e4;color:#8a481b}
.compact-effect{padding:9px 10px;background:#f4f6f1;border-radius:8px;margin:8px 0;display:flex;flex-direction:column;gap:4px}
.compact-effect strong{font-size:12px;line-height:1.4}
.compact-effect>span,.compact-effect>small{font-size:11px;line-height:1.4}
.compact-effect--bad{background:#fff0e4;border-left:3px solid #bb7239}
.compact-effect--notice{border-left:3px solid #809b79}
.compact-effect button{padding:7px 10px;font-size:12px}
.compact-history{border-top:1px solid var(--line);padding-top:10px;margin-top:10px;font-size:11px}
.compact-history>summary{cursor:pointer;font-weight:600}
.compact-history p{font-size:11px;line-height:1.5}
.team-play .task{padding:16px 20px;margin:0;border-radius:12px}
.team-play .task h2{font-size:19px;margin:8px 0 10px}
.team-play .task .material{margin:10px 0;padding:10px 12px;font-size:12px}
.team-play .material p{margin:5px 0 0}
.team-play .task label{margin:10px 0;font-size:12px}
.team-play .task input:not([type=radio]){padding:8px 10px;margin-top:5px}
.team-play .task .primary{padding:8px 12px}
.team-play .calculation-rules{margin:6px 0;line-height:1.8;font-size:11px}
.team-play .effect-chip{font-size:10px;padding:2px 5px}
.team-play .effect-chips{gap:5px;margin-top:4px}
.team-play .calculation-result{padding:8px 12px;margin-top:8px;display:flex;flex-direction:row;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px}
.team-play .calculation-result .effect-chips{margin:0}
.team-play .task h3{font-size:13px;margin:12px 0 6px}
.team-play .choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.team-play .choice{padding:10px;margin:0!important;align-items:flex-start;min-width:0}
.team-play .choice>span{min-width:0}
.team-play .choice strong{font-size:12px;line-height:1.3}
.team-play .choice small{font-size:10px;line-height:1.4;margin-top:4px}
.team-play .choice-price{font-size:12px;margin-top:6px}
.team-play .task .hint{font-size:10px;margin:7px 0}
.team-play .accepted,.team-play .review{padding:12px;margin-top:12px}
.team-play .accepted p{margin:5px 0;font-size:12px}
.team-play .budget-alert{padding:8px 12px;font-size:12px;margin-bottom:8px}
.team-play .budget-alert button{padding:3px 8px;font-size:11px;float:right}
.team-summary .finance-panel,.team-summary .management-panel{padding:10px;margin:8px 0;border-radius:8px}
.team-summary .finance-panel summary,.team-summary .management-panel summary{font-size:12px}
.team-summary .finance-offer{padding:9px 0;font-size:11px}
.team-summary .finance-offer p{font-size:11px;margin:6px 0}
.team-summary .finance-offer button{font-size:11px;padding:6px 9px}
.team-summary .hint{font-size:10px}
@media(max-width:1050px){
 .team-layout{grid-template-columns:250px minmax(0,1fr);gap:12px}
 .team-workspace{padding:10px 14px}
 .team-play .choices{grid-template-columns:1fr}
 .team-play .choice{display:grid;grid-template-columns:18px 1fr}
}
@media(max-width:700px){
 body:has(.team-workspace)>#app>header{height:56px;padding:0 12px}
 body:has(.team-workspace) .brand small{display:none}
 body:has(.team-workspace) .header-right{gap:10px}
 .team-workspace{height:auto;min-height:calc(100dvh - 56px);padding:10px}
 .team-layout{display:flex;flex-direction:column}
 .team-summary,.team-play{overflow:visible}
 .team-summary{padding:10px}
 .summary-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
 .summary-stat{padding:6px}
 .summary-stat strong{font-size:18px}
 .team-summary .compact-history{font-size:12px}
 .team-calendar{font-size:11px}
 .team-play .choices{grid-template-columns:1fr}
 .team-play .task{padding:14px}
}
@media(min-width:951px) and (max-width:1050px){
 .team-play .choices{grid-template-columns:repeat(3,minmax(0,1fr))}
 .team-play .choice{display:flex}
}
.team-summary{display:flex;flex-direction:column;overflow:hidden}
.summary-fixed{flex:none}
.pending-project{display:block;padding:7px 9px}
.pending-project summary{cursor:pointer;font-size:11px;font-weight:600}
.pending-project summary>span{display:block;margin-top:3px;font-size:10px;color:var(--muted);font-weight:400}
.pending-project small{display:block;margin-top:6px;font-size:11px;line-height:1.4}
@media(max-width:700px){
 .team-summary{overflow:visible}
}

/* Visible player navigation replaces nested sidebar disclosures. */
.team-summary{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px}
.summary-fixed{position:relative;z-index:1;background:white}
.summary-stat>span{font-size:12px}
.summary-reserve>span,.income-summary>span{font-size:12px;line-height:1.45}
.income-summary small{font-size:11px;line-height:1.45}
.stability-badge{font-size:12px;line-height:1.4}
.sidebar-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:10px;border-top:1px solid var(--line);background:white}
.deadline-button{display:flex;flex-direction:column;gap:4px;width:100%;padding:10px;margin:8px 0;text-align:left;background:#f1f5ed;border:1px solid #c6d5c3}
.deadline-button strong{font-size:12px;line-height:1.4}
.deadline-button span{font-size:11px;line-height:1.4}
.deadline-button small{font-size:10px;color:#386a53}
dialog.team-dialog{width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;overflow:hidden;display:none;flex-direction:column;border-radius:16px}
dialog.team-dialog[open]{display:flex}
.team-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 24px;border-bottom:1px solid var(--line);flex:none;background:#f4f7f0}
.team-dialog-header h2{font-size:23px;margin:0 0 5px}
.team-dialog-header span{font-size:13px;color:#5b7065}
.dialog-close{font-size:25px;line-height:1;padding:8px 12px;border-radius:8px;background:white}
.team-dialog-content{overflow:auto;min-height:0;padding:22px 24px;font-size:14px;line-height:1.6}
.panel-intro{font-size:13px;color:#5b7065;margin:0 0 16px}
.opportunity-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.opportunity-card{display:flex;flex-direction:column;padding:18px;border:1px solid #d4dfd1;border-radius:12px;background:#fafcf7;min-width:0}
.opportunity-heading{display:flex;justify-content:space-between;align-items:start;gap:12px}
.opportunity-heading h3{margin:0;font-size:16px;line-height:1.4}
.opportunity-price{white-space:nowrap;color:#285e4b;font-size:15px}
.opportunity-card p{font-size:14px;line-height:1.6;margin:12px 0}
.opportunity-deadline{font-size:13px;font-weight:600;color:#496750;padding:9px 0}
.opportunity-card>button{margin-top:auto;padding:10px;font-size:14px}
.history-item{padding:16px;border:1px solid #d8e3d4;border-radius:10px;background:#f2f7ef}
.history-item strong,.history-item>span{display:block;font-size:14px}
.history-item>span{margin:6px 0;color:#54705d}
.history-item--bad{background:#fff2e4;border-color:#dfbd99}
.team-dialog .effect-chip{font-size:12px}
.income-history{border:1px solid var(--line);border-radius:10px;padding:6px 16px}
.income-history>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.income-history>div:last-child{border:0}
.rules-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.rules-grid>section{padding:16px;border:1px solid var(--line);border-radius:10px}
.rules-grid h3{font-size:16px;margin:0 0 10px}
.dialog-actions{display:flex;gap:12px;margin-top:22px}
@media(max-width:700px){
 .team-summary{grid-template-rows:auto auto auto;gap:8px}
 .opportunity-grid,.rules-grid{grid-template-columns:1fr}
 .team-dialog-content{padding:16px}
 .team-dialog-header{padding:14px 16px}
 .team-dialog-header h2{font-size:19px}
 .sidebar-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-height:650px) and (min-width:701px){
 .summary-stat{padding:5px 8px}
 .summary-stat strong{font-size:20px}
}

.panel-feedback{padding:12px 14px;border-radius:9px;background:#fff0e4;color:#8a481b;border:1px solid #d5ae83}

.age-badge{font-size:11px;font-weight:500;letter-spacing:0;padding:4px 8px;border-radius:6px;background:#e8eee2;color:#47624e;white-space:nowrap;vertical-align:middle}
.competency-label{font-size:11px;color:#617563;margin-bottom:6px}
.age-rating{margin:20px 0;border-top:1px solid var(--line);padding-top:12px}
.age-rating h3{margin:0 0 8px}
.age-rating .team-age-select{padding:6px;font-size:12px;margin:0;min-width:115px}

.access-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding-left:20px}
.access-steps li{padding-right:10px}
.access-steps strong,.access-steps span{display:block}
.access-steps strong{font-size:13px}
.access-steps span{font-size:12px;color:#64796c;margin-top:5px}
.access-controls{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:20px 0 10px}
.access-controls .roster-file-label{flex:1;min-width:200px;margin:0}
.roster-file-label input{padding:9px!important;font-size:12px}
.access-note{padding:10px 12px;background:#fff3e2;border-radius:8px;font-size:12px}
.roster-preview{max-height:48vh;overflow:auto}
.roster-preview table{white-space:normal;font-size:13px}
.roster-preview th{position:sticky;top:0;background:white;z-index:1}
.roster-preview td{vertical-align:top}
.roster-preview td small{display:block;color:#5d7065;font-size:12px;line-height:1.5;margin-top:4px}
.roster-preview .roster-error{background:#fff0e4}
.roster-preview .roster-error td small{color:#964b25}
.age-rating td>small{font-size:11px;max-width:200px;white-space:normal}
.password-dialog{max-width:620px}
@media(max-width:850px){.access-steps{grid-template-columns:1fr}.access-controls{align-items:stretch}.access-controls>*{width:100%}}
/* Three-year scenario: concise status text and non-overlapping map markers. */
.production-summary{display:flex;flex-direction:column;gap:4px;font-size:12px;padding:8px 0;line-height:1.5}
.block-status-list{display:grid;gap:6px;margin:10px 0}
.block-status{display:flex;flex-direction:column;gap:2px;padding:6px 8px;border-left:3px solid #8a9991;background:#f4f6f1;border-radius:4px;font-size:11px;line-height:1.4}
.block-status--good{border-color:#378360}.block-status--warning{border-color:#bb7824;background:#fff6e5}.block-status--danger{border-color:#bd4d42;background:#fff0ec}
.map-status-overlay{position:absolute;inset:0;pointer-events:none}.map-marker{position:absolute;display:grid;place-items:center;width:22px;height:22px;transform:translate(-50%,-50%);background:#7b8a83;color:#fff;border:2px solid #fff;border-radius:50%;font-size:11px;line-height:1;font-weight:700;box-shadow:0 2px 5px #0003;pointer-events:auto}
.map-marker--good{background:#307d59}.map-marker--warning{background:#a96b19}.map-marker--danger{background:#bd443c}
.period-result{display:flex;flex-direction:column;gap:9px;margin-top:14px;padding-top:14px;border-top:1px solid #dce3d9;font-size:13px;line-height:1.5}.chain-result{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.task-story{font-size:14px;line-height:1.6;color:#425e52;margin:14px 0}

.admin-workspace .admin-grid {align-items:start}
.admin-workspace .admin-grid > * {min-width:0}
.admin-stage h2 {font-size:clamp(24px, 3vw, 36px); margin-bottom:4px}
.admin-stage h3 {margin:12px 0 6px}
.admin-scenario-name {color:var(--muted);margin:0}
.admin-finish {border-color:#d9b9ad}
.finish-button {color:#78392b;background:#fff3ed;border:1px solid #d4a995}
.finish-button:enabled:hover {background:#fce4d9}
.admin-registration {margin-top:24px}
.admin-registration > summary {font-weight:700;cursor:pointer}
.admin-registration[open] > summary {margin-bottom:14px}
.report-status {margin:12px 0 4px;font-size:14px}
.team-stream {margin-bottom:10px;border:1px solid var(--line);border-radius:8px;padding:8px}
.team-stream summary {cursor:pointer;font-size:13px;font-weight:700}
.team-stream iframe,.stream-preview iframe {display:block;margin-top:8px;background:#18201e}
.stream-preview {width:min(680px,92vw)}
.stream-preview > .stream {padding:0 16px 16px}
.finish-dialog {width:min(520px,92vw)}

/* FG+ 2026 brand palette. */
.player-brand {
 display:flex; align-items:center; gap:14px; min-width:0;
 color:#273868; text-decoration:none;
}
.player-brand img { display:block; width:auto; height:40px; max-width:100%; object-fit:contain; }
.player-brand span {
 border-left:1px solid #d9e2f0; padding-left:14px;
 font-size:11px; font-weight:700; line-height:1.25; text-transform:uppercase; letter-spacing:.06em;
}
body:has(.player-brand,.admin-workspace,.welcome:not(.welcome--participant)) #app>header { background:#fff; border-bottom:1px solid #d9e2f0; }
body:has(.welcome,.team-workspace,.admin-workspace) {
 --ink:#273868; --muted:#506184; --green:#3c62ac; --line:#d9e2f0;
 --paper:#f2f6fb; --orange:#e84910;
}
.welcome--participant h1 em { color:#3c62ac; }
.welcome .entry,.admin-stage { border-top:4px solid #6dcaf3; }
.welcome .entry .primary,.team-workspace .primary,body:has(.admin-workspace) .primary {
 background:#273868; color:#fff; border-color:#273868;
}
.welcome .entry .primary:hover:not(:disabled),
.team-workspace .primary:hover:not(:disabled),
body:has(.admin-workspace) .primary:hover:not(:disabled) { background:#3c62ac; border-color:#3c62ac; }
body:has(.welcome,.team-workspace,.admin-workspace) :focus-visible {
 outline:2px solid #3c62ac; outline-offset:3px;
}
.team-workspace .summary-stat { background:#eef4fb; }
.team-workspace .meter { background:#dbe7f6; }
.team-workspace .meter i { background:#3c62ac; }
.team-workspace .task { border-top:4px solid #6dcaf3; }
.team-workspace .task .eyebrow { color:#3c62ac; }
.team-workspace .task .material { background:#eef6fc; }
.team-workspace .task .choice:has(input:checked) { border-color:#3c62ac; background:#eef6fc; }
.team-workspace input[type=radio] { accent-color:#3c62ac; }
.team-workspace .task-story,.team-workspace .competency-label { color:var(--muted); }
body:has(.team-workspace,.admin-workspace) .team-dialog-header { background:#eef6fc; }
body:has(.admin-workspace) .team-dialog-header span,
.admin-workspace .access-steps span,.admin-workspace .eyebrow {color:var(--muted)}
.admin-workspace .phase {background:#eef4fb;border-color:var(--line)}
body:has(.admin-workspace) .roster-preview th {background:#eef4fb}
body:has(.admin-workspace,.welcome:not(.welcome--participant)) :is(input:not([type=checkbox]):not([type=radio]),textarea,select) {
 background:#f4f7fc;border-color:var(--line);
}
body:has(.admin-workspace,.welcome:not(.welcome--participant)) :is(input,textarea,select):focus {outline-color:var(--green)}
.admin-workspace input[type=checkbox] {accent-color:var(--green)}
body:has(.admin-workspace) :is(button,.button):hover:not(:disabled) {border-color:var(--green)}
body:has(.admin-workspace) .finish-button:hover:not(:disabled) {border-color:#b97e65}
body:has(.admin-workspace) #toast {background:var(--ink)}
@media(max-width:700px) {
 .player-brand img { height:34px; }
 .player-brand span { display:none; }
}
@media(max-width:420px) {
 .player-brand img { height:30px; max-width:145px; }
 body:has(.player-brand) .header-right { gap:8px; }
}

.team-play .material p {white-space:pre-line}
.decision-hint {margin:0 0 10px;padding:8px 12px;background:#eef6fc;border-radius:8px;font-size:13px;line-height:1.45}

.period-budget{display:grid;gap:5px;padding:12px;border:1px solid #cbd8ea;border-radius:10px;background:#f3f7ff;color:#253660}
.period-budget strong{font-size:1.12em}
.period-budget dl{display:flex;flex-wrap:wrap;gap:8px 20px;margin:4px 0 0}
.period-budget dl div{min-width:105px}
.period-budget dt{font-weight:500}
.period-budget dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums}

.engineering-ruble{display:inline-flex;align-items:center;justify-content:center;width:1.15em;height:1.15em;border:1px solid currentColor;border-radius:50%;font-size:.78em;font-weight:600;line-height:1;vertical-align:.08em;white-space:nowrap}

/* Keep the summary and the host visible while the team works. */
.team-summary {
 display:flex; align-self:start; gap:10px; overflow:visible; min-width:0;
 scrollbar-gutter:auto;
}
.team-summary .stability-badge {margin-top:8px}
.summary-deadline {
 display:grid; gap:3px; padding:9px 11px; border-radius:8px;
 background:#eef4fb; line-height:1.4;
}
.summary-deadline span {font-size:12px}
.summary-deadline button {justify-self:start;padding:4px 8px;font-size:12px}
.team-summary .sidebar-actions {grid-template-columns:repeat(2,minmax(0,1fr));padding-top:8px}
.sidebar-actions .opportunity-launch {grid-column:1/-1;padding:9px 10px;font-size:13px}
.sidebar-actions .opportunity-launch small {display:block;font-size:11px;margin-top:2px;color:#fff}
.sidebar-actions .quiet {padding:6px 8px;font-size:12px}
.team-play {
 display:grid; align-content:start; grid-template-columns:minmax(0,1fr) minmax(190px,25%); gap:12px;
}
.team-task-area {grid-column:1/-1;grid-row:1;min-width:0}
.stage-clock {
 display:inline-flex; align-items:center; gap:8px; border-radius:8px;
 background:#e9f2ff; color:#254985; padding:5px 9px;
}
.stage-clock strong {font-size:19px;min-width:3ch;line-height:1.15;font-variant-numeric:tabular-nums}
.stage-clock--decision {background:#e6f3ee;color:#245a46}
.stage-clock--urgent {background:#fff1e4;color:#8b3f14}
.task .stage-clock {float:right;margin-top:-19px;margin-left:8px}
.task .eyebrow {padding-right:150px}
.stage-progress {display:grid;gap:10px;margin:12px 0}
.stage-counters,.stage-clocks {display:flex;flex-wrap:wrap;gap:8px 16px}
.stage-counters b {margin-left:3px}
.stage-roster {max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:8px}
.stage-roster th {position:sticky;top:0;background:#eef4fb}
.timed-offer {background:#eef6ff;border-color:#9dbbde}
@media(max-width:700px) {
 .team-play .team-media,.team-play:has(.team-media) .team-media {grid-column:1;grid-row:2;position:static}
 .team-play .team-task-area {grid-column:1;grid-row:1}
 .team-summary {align-self:stretch}
 .summary-stats {grid-template-columns:repeat(2,minmax(0,1fr))}
 .team-workspace .header-right {font-size:10px}
 .task .stage-clock {float:none;margin:6px 0 0}
 .task .eyebrow {padding-right:0}
}
.summary-forecast {display:flex;justify-content:space-between;gap:5px;font-size:12px;color:var(--muted)}
.summary-forecast strong {color:var(--ink)}
/* Team workspace keeps the readings beside the task. */
.team-workspace {height:auto;min-height:calc(100dvh - 62px);max-width:1920px}
.team-layout {
 display:grid;grid-template-columns:clamp(220px,21vw,292px) minmax(0,1fr) clamp(220px,24vw,410px);
 grid-template-areas:"summary play broadcast";align-items:start;gap:16px;
}
.team-layout .team-summary,.team-broadcast {
 min-width:0;padding:14px;background:#fff;border:1px solid var(--line);border-radius:14px;
}
.team-layout .team-summary {
 grid-area:summary;position:sticky;top:12px;gap:10px;overflow:visible;
}
.team-broadcast {grid-area:broadcast;position:sticky;top:12px}
.team-layout .team-summary h2,.team-broadcast h2 {margin:0 0 9px;font-size:16px;line-height:20px}
.team-layout .summary-stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.team-layout .summary-stat {padding:7px 9px}
.team-layout .summary-stat strong {font-size:23px}
.team-layout .summary-stat .meter {margin-top:3px}
.team-summary .sidebar-actions {padding-top:8px;gap:6px}
.team-summary .sidebar-actions button {min-height:34px}
.team-summary .summary-forecast {padding:3px 0}
.team-summary .summary-deadline {overflow-wrap:anywhere}
.team-sector-status h3 {margin:0 0 4px;font-size:13px}
.team-sector-status ul {display:grid;gap:3px;margin:0;padding:0;list-style:none}
.team-sector-status .block-status {gap:0;padding:3px 7px;overflow-wrap:anywhere}
.team-sector-status .block-status span {font-size:12px}
.team-sector-status .effect-chips {margin-top:0}
.team-compact-stream-link {display:none;font-size:12px;color:var(--ink)}
.budget-chart {display:grid;gap:5px;margin:0;padding:8px 10px;border-radius:8px;background:#eef4fb}
.budget-chart figcaption {font-weight:650}
.budget-point {font-size:12px}
.budget-columns {display:grid;grid-auto-flow:column;grid-auto-columns:minmax(32px,1fr);gap:3px;overflow-x:auto}
.budget-columns button {display:grid;gap:2px;min-width:0;padding:0;border:0;background:transparent;border-radius:4px}
.budget-columns button:hover,.budget-columns button:focus-visible {background:#d9e7fb}
.budget-bar-track {position:relative;display:block;height:46px}
.budget-bar-track span {
 position:absolute;bottom:var(--bar-position);height:var(--bar-size);inset-inline:3px;
 border-radius:3px;background:#456bb4;
}
.budget-columns button:last-child .budget-bar-track span {background:#244785}
.budget-columns button small {font-size:10px;line-height:1.3}
.team-broadcast .team-stream {
 position:relative;width:100%;aspect-ratio:16 / 9;padding:0;margin:0;overflow:hidden;
 background:#edf3fa;border:0;border-radius:12px;
}
.team-broadcast .stream,.team-broadcast .stream-idle {position:absolute;inset:0}
.team-broadcast .stream {background:#18201e}
.team-broadcast .stream iframe {display:block;width:100%;height:100%;margin:0;border:0}
.team-broadcast .stream-idle {display:grid;place-content:center;padding:12px;text-align:center;color:var(--muted)}
.team-layout .team-play {grid-area:play;display:block;min-width:0;overflow:visible;scrollbar-gutter:auto}
.team-layout .team-play .choices {grid-template-columns:repeat(2,minmax(0,1fr))}
.team-layout .team-play .card {overflow-wrap:anywhere}
.team-layout .team-play .table-wrap {max-width:100%;overflow:auto}
.team-broadcast {scroll-margin-top:12px}
.team-task-header {display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px 16px}
.team-task-header>div:first-child {flex:1 0 min(100%, 240px)}
.team-task-header .eyebrow {padding:0}
.team-task-header .stage-clock {float:none;margin:0;white-space:nowrap}
.team-play .task .team-task-header h2 {margin:4px 0 0}
.team-play .task .task-story {margin:8px 0}
.team-play .task .competency-label {margin:6px 0}
.team-play .task .choices {margin:10px 0}
@media(max-width:1100px) {
 .team-layout {gap:12px}
}
@media(max-width:960px) {
 .team-layout {
   grid-template-columns:minmax(215px,28%) minmax(0,1fr);
   grid-template-areas:"summary play" "summary broadcast";
 }
 .team-broadcast {position:static;width:min(100%,440px)}
 .team-compact-stream-link {display:inline-block}
}
@media(max-width:700px) {
 .team-workspace {min-height:calc(100dvh - 56px)}
 .team-layout {grid-template-columns:minmax(0,1fr);grid-template-areas:"summary" "play" "broadcast"}
 .team-layout .team-summary {position:static}
 .team-layout .team-play .choices {grid-template-columns:minmax(0,1fr)}
 .team-broadcast {width:100%}
}
@media(max-height:600px) {
 .team-layout .team-summary,.team-broadcast {position:static}
}
