:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#44546A;background:#fff;font-synthesis:none;letter-spacing:0;color-scheme:light;--ink:#44546A;--accent:#00468C;--muted:#6e7a8a;--line:#e0e5eb;--surface:#f6f8fb;--good:#008C95;--danger:#BE2443}
/* Session reports and progression remain readable on a narrow phone. */
.progress-table,.price-history,.ranking-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed;margin:12px 0 20px;font-variant-numeric:tabular-nums}
.progress-table th,.progress-table td,.price-history td,.ranking-table th,.ranking-table td{text-align:left;padding:9px 5px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.price-history td:first-child{width:44%}.price-history td:last-child{width:20%;text-align:right}.price-history progress{display:block;width:100%;height:7px;accent-color:#008C95}
.current{background:#eaf6f2;color:#006f65}.result-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 0;border-block:1px solid var(--line)}.result-metrics b{font-size:24px;display:block}.result-metrics span{font-size:12px;color:var(--muted)}
#modal h2[tabindex="-1"]{outline:none}
.result-warning{border-left:3px solid #BE2443;padding-left:12px}.ranking-tabs{display:flex;gap:5px;margin-top:15px}.ranking-tabs button{flex:1;font-size:12px}.publish-row{display:flex;gap:6px;margin-top:8px}.publish-row input{min-width:0;flex:1;width:100%;font-size:16px;border:1px solid var(--line);border-radius:4px;padding:8px}.publish-row button{font-size:12px;padding:0 8px}
.run-history{display:grid;gap:5px;margin:12px 0}.run-history button{justify-content:space-between;text-align:left;padding:10px;font-size:12px;gap:8px}.run-history button>*{min-width:0;overflow-wrap:anywhere}.run-history small{display:block;margin-top:3px;color:var(--muted);font-weight:400}.run-history b{text-align:right;flex:none}.road-market small{display:block;color:var(--muted);margin-top:4px}
#modal details{padding:12px 0}#modal details summary{cursor:pointer;font-size:13px;min-height:36px}#modal .help-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}#modal .help-tabs button{padding:0 4px;font-size:12px}
*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select{font:inherit}button{cursor:pointer;color:inherit;background:#fff;border:1px solid var(--line);min-height:44px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 13px}button:hover{background:var(--surface);border-color:#8497B0}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #1267E4;outline-offset:2px}button:disabled{opacity:.4;cursor:default}button.active{background:#00468C0c;border-color:#00468C55;color:#00468C}svg{width:19px;height:19px;stroke-width:1.8;flex-shrink:0}button.icon{width:44px;padding:0;background:transparent;border-color:transparent;flex-shrink:0}button.icon:hover{background:#ADB8CA20}h1,h2,h3,p{margin:0}#app{height:100vh;height:100dvh;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top)}header{height:86px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:24px;background:white;z-index:3}.brand{display:flex;align-items:center;gap:10px}.brand img{border-radius:8px}h1{font-size:22px;font-weight:650;white-space:nowrap;color:#083569}h1 span{display:block;font-size:11px;font-weight:450;color:var(--muted);margin-top:3px}.metrics{display:flex;gap:46px;align-items:center}.caption{font-size:11px;color:var(--muted);display:block;margin-bottom:6px}.metrics strong{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1}.metrics strong span{font-size:15px;color:var(--muted);margin-left:3px}.balance{display:block;text-align:left;width:180px;min-height:60px;padding:5px 8px;border-color:transparent;background:transparent}.balance-track{height:5px;background:linear-gradient(90deg,#E3111280,#00CC6640 40%,#00CC6640 60%,#1267E480);position:relative;margin:12px 0 8px}.balance-track:after{content:"";position:absolute;left:50%;top:-3px;width:1px;height:11px;background:#008C95}.balance-track b{position:absolute;top:-4px;width:13px;height:13px;border:3px solid white;background:#44546A;border-radius:50%;z-index:1;left:50%;transform:translateX(-50%);transition:left .5s}.ends{display:flex;justify-content:space-between;font-size:9px;color:var(--muted)}.header-actions{display:flex;gap:4px}
.view-tabs{height:48px;flex-shrink:0;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:white;z-index:3}.view-tabs>div{display:flex;gap:4px;height:100%}.view-tabs button{font-size:12px;min-height:44px;border:0;border-radius:0;position:relative;background:transparent}.view-tabs button.active:after{content:"";position:absolute;bottom:0;height:2px;left:10px;right:10px;background:var(--accent)}#chapter{font-size:11px;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
#map-wrap{flex:1;position:relative;min-height:0;overflow:hidden;background:#f7f9fc}canvas{width:100%;height:100%;display:block;touch-action:none}.map-caption{position:absolute;left:28px;top:22px;pointer-events:none}.map-caption span{display:block;font-size:12px;font-weight:550}.map-caption small{display:block;color:#8497B0;font-size:10px;margin-top:6px}.market{position:absolute;right:28px;top:20px;max-width:330px;font-size:12px;background:#f7f9fce8;padding:4px 0}.market>div{display:flex;gap:10px;align-items:center}.market b{font-weight:550}.market #clock{font-variant-numeric:tabular-nums;color:#8497B0;padding-left:16px}.live-dot{width:6px;height:6px;background:#00CC66;border-radius:50%}.market p{font-size:11px;margin-top:9px;line-height:1.5;color:var(--muted);max-width:300px}#notice{position:absolute;top:70px;left:50%;transform:translateX(-50%);text-align:center;font-size:12px;color:#008C95;background:#fffffff0;padding:9px 16px;border-radius:4px;max-width:80%;pointer-events:none}#notice:empty{display:none}.network-status{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);width:min(450px,calc(100% - 48px));padding:12px 14px;text-align:left;align-items:flex-start;background:#ffffffed;box-shadow:0 2px 10px #44546A08;border-color:#dbe3ed;gap:12px}.network-status>span:nth-child(2){flex:1;min-width:0}.network-status b{font-size:12px;display:block;margin-bottom:4px}.network-status small{display:block;font-size:11px;color:var(--muted);line-height:1.45}.network-status>svg{width:14px;margin-top:3px}#status-symbol{color:#008C95;padding-top:1px}.network-status[data-tone=warn]{border-color:#FED20A;background:#fffef5}.network-status[data-tone=danger]{border-color:#BE244380;background:#fff8fa}.network-status[data-tone=danger] #status-symbol{color:#BE2443}.map-tools{position:absolute;left:22px;bottom:22px;display:flex;gap:1px;background:#ffffffeb;border:1px solid var(--line);border-radius:6px}.map-tools button{border:0;min-height:40px}.map-tools #roads-info{font-size:11px;padding:0 10px;border-left:1px solid var(--line);border-radius:0}#crisis{position:absolute;bottom:82px;left:28px;width:180px;font-size:10px;color:var(--muted)}#crisis>div{display:flex;align-items:center;justify-content:space-between;margin:6px 0}progress{width:100px;height:5px;accent-color:#BE2443}#surplus{accent-color:#1267E4}
footer{min-height:76px;padding:12px 28px calc(12px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:18px;background:white;border-top:1px solid var(--line);z-index:3}.build-tools,.time-tools{display:flex;gap:8px}.build-tools b{font-size:11px;color:#00468C;background:#00468C0d;min-width:20px;padding:3px 4px;border-radius:3px}.inventory{display:flex;gap:18px;align-items:center;font-size:12px;color:var(--muted)}.inventory span{display:flex;align-items:center;gap:5px}.inventory svg{width:16px;height:16px}.time-tools button{background:transparent}.time-tools button:first-child{width:50px}#rewards{font-size:12px;font-variant-numeric:tabular-nums;min-width:80px}
#inspector{position:absolute;right:22px;bottom:20px;width:338px;background:white;box-shadow:0 6px 30px #44546A18;border:1px solid var(--line);border-radius:8px;padding:16px;max-height:calc(100% - 78px);overflow:auto;z-index:4;overscroll-behavior:contain}#inspector .heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;position:sticky;top:-16px;background:white;z-index:2;padding:6px 0;border-bottom:1px solid var(--line)}#inspector h2{font-size:17px;font-weight:600}#inspector h2 small{font-size:9px;font-weight:400;color:var(--muted);display:block;margin-top:4px}.station-stats{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:12px}.station-stats b{display:block;color:var(--ink);font-size:20px;margin-bottom:3px;font-weight:550}.arrival-summary{font-size:11px;padding:10px 0;border-top:1px solid var(--line);color:var(--muted)}.fuel-row{border-top:1px solid var(--line);padding:8px 0}.fuel-row summary{cursor:pointer;list-style:none;min-height:36px}.fuel-row summary::-webkit-details-marker{display:none}.fuel-row[open] summary>svg{transform:rotate(180deg)}.fuel-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;gap:8px}.fuel-label>svg{width:14px;height:14px}.fuel-label>span:nth-child(2){margin-left:auto;color:var(--muted)}.fuel-badge{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:12px;white-space:nowrap}.fuel-symbol{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:5px;background:color-mix(in srgb,var(--fuel) 12%,white);border-left:4px solid var(--fuel);color:#44546A}.fuel-symbol svg{width:15px;height:15px}.fuel-stock{height:4px;background:#eff2f6;margin:8px 0 12px}.fuel-stock i{display:block;height:100%;max-width:100%;transition:width .4s}.price{width:100%;accent-color:#00468C;height:34px;margin:4px 0 0;cursor:pointer}.price-name{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;gap:8px}.price-name b{color:var(--ink);font-weight:550}.price-ticks{display:flex;justify-content:space-between;font-size:9px;color:var(--muted)}.price-effect{font-size:11px;line-height:1.5;margin:12px 0 5px}.price-effect b{display:block;font-weight:600;color:#00468C}.price-effect span{display:block;color:var(--muted);margin-top:4px}.price-effect .price-result{border-left:2px solid #8497B0;padding-left:8px;margin-top:10px;color:#44546A}#station-tools{border-top:1px solid var(--line);margin-top:6px}#station-tools>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;font-size:12px;cursor:pointer;list-style:none}#station-tools>summary::-webkit-details-marker{display:none}.section-label{font-size:10px;color:var(--muted);margin:16px 0 10px}.controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.controls>button{flex:1;font-size:12px}.stepper{display:flex;align-items:center;justify-content:space-between;width:100%;padding-top:12px;font-size:12px}.stepper div{display:flex;gap:10px;align-items:center}.stepper button{width:40px;padding:0}.stepper small{color:var(--muted)}select{background:#fff;border:1px solid var(--line);border-radius:4px;min-height:44px;max-width:100%;padding:6px;font-size:12px;flex:1;min-width:0}.divider{border:0;border-top:1px solid var(--line);margin:18px 0}.fuel-legend{display:flex;flex-wrap:wrap;gap:12px}.depot-fuel{display:flex;align-items:center;justify-content:space-between;margin:9px 0;font-size:11px}
#market-panel{position:absolute;inset:0;overflow:auto;z-index:5;background:white;overscroll-behavior:contain}.analytics-inner{max-width:800px;margin:auto;padding:26px 30px 36px}.analytics-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.eyebrow{font-size:10px;color:var(--muted)}.analytics-heading h2{font-size:26px;margin-top:6px;font-weight:600}.paused-label{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}.paused-label svg{width:13px}.market-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;border-bottom:1px solid var(--line);padding-bottom:20px}.market-overview span{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}.market-overview b{font-size:13px;font-weight:550}.market-toolbar{display:flex;gap:15px;align-items:center;margin:18px 0}.market-toolbar label{font-size:11px;color:var(--muted)}.market-toolbar select{flex:none;width:210px}.market-advice{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.6;color:#00468C;padding:12px 0 20px}.market-advice svg{margin-top:2px;width:17px}.market-table-label{display:flex;justify-content:space-between;padding-bottom:10px;font-size:10px;color:var(--muted);border-bottom:1px solid var(--line)}.fuel-market-row{display:grid;grid-template-columns:1fr 120px;gap:12px 24px;border-bottom:1px solid var(--line);padding:15px 0}.fuel-market-name small{display:block;font-size:10px;color:var(--muted);margin-top:6px}.fuel-market-share{padding-top:5px}.fuel-market-share b{display:block;text-align:right;font-size:14px;font-variant-numeric:tabular-nums;font-weight:550}.share-track{height:4px;background:#eff2f6;margin-top:10px}.share-track i{display:block;height:100%;min-width:0}.fuel-market-detail{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted)}.availability{color:#00468C;text-align:right}.future .fuel-market-share b{font-size:11px;color:var(--muted);font-weight:400}.future .availability{color:var(--muted)}.data-note{font-size:11px;color:var(--muted);line-height:1.6;margin-top:18px}.market-outlook{margin-top:26px;border-top:1px solid var(--line);padding-top:20px}.market-outlook h3{font-size:14px;font-weight:600;margin-bottom:12px}.market-outlook p{font-size:12px;line-height:1.7;margin:10px 0}.market-outlook .fuel-badge{vertical-align:middle}.show-market canvas{visibility:hidden}
dialog{border:1px solid var(--line);border-radius:8px;width:min(460px,calc(100% - 28px));padding:26px;color:var(--ink);background:white;max-height:85dvh}dialog::backdrop{background:#44546A30;backdrop-filter:blur(3px)}dialog h2{font-size:23px;margin:10px 0}dialog p{font-size:12px;line-height:1.65;color:var(--muted);margin:12px 0 18px}dialog .choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}dialog .choices button{height:112px;flex-direction:column;font-size:13px}dialog .choices svg{width:28px;height:28px;color:#00468C}dialog .menu-items{display:flex;flex-direction:column;gap:10px;margin-top:22px}dialog .primary{background:#00468C;color:white;border-color:#00468C}dialog .result{font-size:56px;font-variant-numeric:tabular-nums;margin:22px 0 6px}dialog dl{display:grid;grid-template-columns:1fr auto;gap:12px;font-size:12px;color:var(--muted)}dialog dd{margin:0;color:var(--ink)}.road-legend>div{display:flex;align-items:center;gap:16px;margin:24px 0}.road-legend b{display:block;font-size:12px}.road-legend small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.road-sample{width:48px;height:12px;background:#ADB8CA;display:flex;flex-direction:column;justify-content:space-evenly;flex-shrink:0}.road-sample.lanes-2{height:16px}.road-sample.lanes-3{height:20px;background:#8497B0}.road-sample.lanes-4{height:24px;background:#44546A}.road-sample i{display:block;border-top:1px dashed white}#debug{position:absolute;left:12px;top:80px;max-width:calc(100% - 24px);max-height:65%;overflow:auto;background:#000000df;color:#00CC66;font-size:11px;padding:12px;pointer-events:none;white-space:pre-wrap;z-index:6}[hidden]{display:none!important}
@media(max-width:1100px){.network-status{left:auto;right:22px;transform:none;width:360px}.metrics{gap:26px}.inventory{gap:10px}}
@media(max-width:760px){header{height:110px;padding:7px 14px;display:grid;grid-template-columns:1fr auto;gap:2px}.brand img{width:25px;height:25px}.brand{gap:8px}h1{font-size:18px}h1 span{display:none}.header-actions{grid-column:2;grid-row:1}.header-actions .icon{height:36px;min-height:36px;width:36px}.metrics{grid-column:1/-1;grid-row:2;justify-content:space-between;gap:12px}.metrics strong{font-size:23px}.caption{font-size:10px;margin-bottom:5px}.balance{width:132px;min-height:56px;padding:3px 0}.balance-track{margin-top:10px}.view-tabs{height:44px;padding:0 12px;gap:6px}.view-tabs button{font-size:11px;padding:0 8px;gap:6px}.view-tabs button svg{width:16px}.view-tabs #chapter{font-size:10px;max-width:140px}.map-caption{left:16px;top:14px}.map-caption span{font-size:11px}.map-caption small{display:none}.market{top:12px;right:16px;font-size:10px;max-width:180px}.market>div{gap:5px}.market #clock{padding-left:4px}.market p{font-size:9px;max-width:170px;text-align:right}.market b{max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#notice{top:48px;font-size:11px;width:max-content;max-width:90%;padding:7px 12px}.network-status{bottom:62px;left:12px;right:12px;transform:none;width:auto;padding:10px 12px;gap:9px}.network-status b{font-size:11px}.network-status small{font-size:10px;line-height:1.4}.network-status svg{width:16px;height:16px}.map-tools{left:12px;bottom:12px}.map-tools button.icon{width:40px;min-height:40px}.map-tools #roads-info{padding:0 9px}footer{min-height:92px;display:grid;grid-template-columns:1fr auto;gap:6px;padding:8px 12px calc(8px + env(safe-area-inset-bottom))}.build-tools{gap:5px}.build-tools button{padding:0 9px;gap:6px;font-size:12px}.build-tools button svg{width:16px}.inventory{grid-row:2;grid-column:1/-1;justify-content:center;gap:24px;font-size:10px}.inventory svg{width:13px;height:13px}.time-tools{gap:3px}.time-tools button{padding:0 7px}.time-tools button:first-child{width:41px}#rewards{font-size:10px;min-width:55px}#rewards svg{display:none}#inspector{right:10px;left:10px;bottom:8px;width:auto;max-height:calc(100% - 42px);padding:12px 14px}#inspector .heading{top:-12px;margin-bottom:9px}.station-stats{margin-bottom:9px}#crisis{left:auto;right:14px;bottom:13px;width:100px;font-size:8px}#crisis progress{width:48px}.analytics-inner{padding:18px 18px 28px}.analytics-heading{margin-bottom:18px}.analytics-heading h2{font-size:23px}.market-overview{gap:10px;grid-template-columns:1fr 1fr}.market-overview>div:last-child{grid-column:1/-1;display:flex;align-items:center;gap:9px}.market-overview>div:last-child span{margin:0}.market-overview b{font-size:12px}.fuel-market-row{grid-template-columns:1fr 78px;gap:10px 16px}.market-toolbar{gap:10px}.market-toolbar select{width:auto;flex:1}}
@media(max-width:360px){header{padding:6px 12px;height:104px}.metrics{gap:8px}.metrics .caption{font-size:9px}.balance{width:116px}.build-tools button{padding:0 6px}.inventory{gap:16px}.time-tools button{padding:0 4px}.view-tabs #chapter{max-width:116px}.map-caption{left:12px}.market{right:12px}.market b{max-width:95px}.fuel-badge{font-size:11px;gap:6px}.fuel-symbol{width:26px}.fuel-market-detail{font-size:9px;gap:6px}}
@media(max-height:650px) and (max-width:760px){footer{min-height:66px}.inventory{display:none}.network-status{bottom:59px;padding:8px 10px}.network-status small{max-height:28px;overflow:hidden}.map-tools{bottom:10px}.map-caption,.market{top:9px}#notice{top:36px}#inspector{max-height:calc(100% - 12px)}.station-stats b{font-size:18px}}
.build-tools b{white-space:nowrap}.station-bonus{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0}.station-bonus>div{min-width:0}.station-bonus b{display:block;font-size:11px;font-weight:550}.station-bonus small{display:block;font-size:10px;color:var(--muted);line-height:1.5;margin-top:4px}.station-bonus button{min-width:60px;padding:0 10px;flex-shrink:0;font-size:12px}.bonus-state{font-size:10px;color:var(--muted);line-height:1.5;margin:10px 0 14px}dialog .choices button{height:auto;min-height:156px;padding:16px 10px}dialog .choices small{font-size:10px;line-height:1.5;color:var(--muted)}
@media(max-width:360px){#build-depot>span{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.view-tabs .network-status{position:static;inset:auto;transform:none;width:auto;max-width:240px;height:36px;min-height:36px;padding:0 10px;gap:7px;align-items:center;box-shadow:none;background:transparent;border:0;border-radius:5px;text-align:left}
.view-tabs .network-status b{font-size:11px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.view-tabs .network-status>svg{margin:0;width:13px;height:13px}.view-tabs .network-status #status-symbol{display:flex;align-items:center;padding:0}.view-tabs .network-status #status-symbol svg{width:15px;height:15px}.view-tabs .network-status[data-tone=warn]{background:#FED20A14;color:#6b5900}.view-tabs .network-status[data-tone=danger]{background:#BE24430d;color:#BE2443}
footer .map-tools{position:static;inset:auto;transform:none;display:flex;gap:6px;align-items:center;border:0;background:transparent;padding:0;box-shadow:none}.camera-switch{display:flex;gap:2px;padding:3px;background:#edf1f6;border-radius:7px}.map-tools .camera-switch button{min-height:36px;min-width:90px;padding:0 12px;border:0;border-radius:5px;color:var(--muted);font-size:12px;background:transparent;box-shadow:none}.map-tools .camera-switch button.active{color:var(--accent);background:#fff;box-shadow:0 1px 3px #44546A18}.map-tools .camera-switch svg{width:17px;height:17px}.map-tools #roads-info{border:0;width:40px;min-height:40px;padding:0;background:transparent}.view-tabs #chapter{max-width:none}#inspector{border-color:#dae2ec;box-shadow:0 12px 36px #1a35521a}.station-stats{padding:4px 0 8px}.station-stats b{font-variant-numeric:tabular-nums}.market{background:#f5f7fae8}.map-caption small{font-size:10px;color:var(--muted)}#notice{box-shadow:0 3px 14px #44546A09;pointer-events:none}.resource-list{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.resource-list>span{display:flex;gap:6px;align-items:center;font-size:11px}.resource-list svg{width:16px;height:16px}
@media(max-width:760px){header{height:104px}.view-tabs .network-status{max-width:156px;padding:0 5px;gap:5px}.view-tabs .network-status b{font-size:10px}.view-tabs .network-status>svg{display:none}footer{min-height:104px;grid-template-columns:1fr auto;gap:5px;padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}.build-tools{grid-row:1;grid-column:1}.time-tools{grid-row:1;grid-column:2}footer .map-tools{grid-row:2;grid-column:1/-1;justify-content:center;gap:10px}.map-tools .camera-switch button{min-height:32px;min-width:98px;font-size:11px}.map-tools #roads-info{min-height:38px}#inspector{max-height:48%;bottom:0;left:0;right:0;border-radius:8px 8px 0 0;border-bottom:0;padding:10px 16px 16px}#inspector .heading{top:-10px;padding-top:4px;margin-bottom:8px}#inspector h2{font-size:16px}#inspector h2 small{display:none}.station-stats{padding:0;margin-bottom:8px}.station-stats b{font-size:18px}.map-caption small{display:none}.inspecting #notice{display:none}}
@media(max-width:360px){header{height:98px}.view-tabs .network-status{max-width:118px}.view-tabs .network-status b{font-size:9px}.map-tools .camera-switch button{min-width:92px}#inspector{padding-left:12px;padding-right:12px}}
@media(max-width:760px){.inspecting .map-caption,.inspecting .market{display:none}}
.resource-list{display:grid;grid-template-columns:1fr;gap:0}.resource-list>div{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.resource-list b{margin-left:auto}
#inspector.compact-station{height:310px;max-height:none;overflow:hidden;padding:12px 14px;display:flex;flex-direction:column;gap:8px}
#inspector.compact-station .heading{position:static;padding:0 0 6px;margin:0;flex:none;border:0;min-height:38px}
.compact-station .heading h2{font-size:15px}.station-mini{display:flex;gap:12px;font-size:10px;color:var(--muted);margin-top:3px}.station-mini b{color:var(--ink);font-variant-numeric:tabular-nums}.panel-actions{display:flex}.panel-actions button.icon{width:34px;min-height:36px}.panel-actions svg{width:17px}
.station-tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:3px;background:#edf1f6;border-radius:6px;gap:3px;flex:none}.station-tabs button{font-size:11px;min-height:32px;padding:0 4px;gap:5px;border:0;background:transparent}.station-tabs button.active{background:white;box-shadow:0 1px 3px #44546A15}.station-tabs svg{width:14px;height:14px}
.station-tab-body{min-height:0;flex:1;display:flex;flex-direction:column;gap:5px}.fuel-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.fuel-choice{min-height:40px;padding:3px;gap:0;flex-direction:column;border-left:3px solid var(--fuel);border-radius:4px;font-size:11px}.fuel-choice>span{display:flex;align-items:center;gap:5px}.fuel-choice svg{width:13px;height:13px}.fuel-choice small{font-size:9px;font-weight:400;color:var(--muted);margin-top:2px;white-space:nowrap}.fuel-choice.selected{outline:1px solid var(--accent);background:color-mix(in srgb,var(--fuel) 12%,white)}.fuel-choice.low-stock{background:#fff0f3}.fuel-choice.low-stock small{color:var(--danger);font-weight:700}.fuel-choice.unowned{border-left-color:#dce3ec;background:#f8fafc}
.quick-price-name{display:flex;align-items:center;font-size:11px;gap:8px;height:24px;min-height:24px}.quick-price-name>b{margin-left:auto;font-weight:550}.quick-price-name button.icon{width:26px;min-height:26px}.quick-price-name svg{width:15px;height:15px}.compact-station .price{margin:0;height:26px;min-height:26px}.compact-station .price-ticks{margin-top:-5px;font-size:9px}#quick-price-effect{font-size:10px;line-height:1.4;color:var(--accent);min-height:16px;font-variant-numeric:tabular-nums}
.station-power{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;margin:5px 0}.station-power>span small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.pump-stepper{display:flex;align-items:center;gap:8px}.pump-stepper button{width:32px;min-height:40px;padding:0}.station-power #marketing{font-size:11px;min-height:40px;padding:0 8px;gap:5px}.station-power #marketing svg{width:16px}.quick-upgrades{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.quick-upgrades button{display:flex;flex-direction:column;padding:9px 3px;gap:5px;min-height:104px;font-size:10px}.quick-upgrades b{font-weight:550;white-space:nowrap}.quick-upgrades small{font-size:9px}.quick-upgrades span{font-size:9px;color:var(--muted)}.station-footnote{font-size:10px;color:var(--muted);margin-top:6px;text-align:center}.delivery-heading{display:flex;justify-content:space-between;font-size:11px;margin:7px 0}.delivery-heading span{font-size:10px;color:var(--muted)}.source-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.source-picker button{min-height:50px;font-size:11px;flex-direction:column;gap:4px;padding:5px}.source-picker svg{width:16px;height:16px}.delivery-state{font-size:11px;color:var(--muted);margin-top:8px}
#critical-alert{display:flex;align-items:center;gap:12px;padding:10px 28px;border-bottom:1px solid #BE244360;border-left:4px solid #BE2443;background:#fff0f3;color:#93223a;flex:none;min-height:62px}#critical-alert>svg{width:22px;height:22px;flex:none}#critical-alert>div{flex:1;min-width:0}#critical-alert b{font-size:12px}#critical-alert p{font-size:11px;line-height:1.4;margin-top:3px}#critical-alert button{width:36px;min-height:36px;padding:0;border-color:#BE244340;background:white;color:#93223a}.is-critical{background:#fff0f3!important;color:#BE2443!important;box-shadow:inset 0 0 0 1px #BE244370;border-radius:5px}.metrics>.is-critical{padding:6px}.is-critical b,.is-critical strong,.is-critical .caption{color:#BE2443!important}#queue-metric.is-critical{padding:2px 4px}
@media(max-width:760px){#app.station-open header{height:48px;display:flex;padding-top:4px;padding-bottom:4px}#app.station-open .metrics{display:none}#app.station-open footer{min-height:48px;display:flex;padding:3px 12px calc(3px + env(safe-area-inset-bottom));justify-content:center}#app.station-open .build-tools,#app.station-open .time-tools{display:none}#app.station-open .map-tools{width:100%}#inspector.compact-station{height:258px;padding:8px 12px;gap:5px}.fuel-choice{min-height:36px}.quick-upgrades button{min-height:85px;padding:6px 2px}.station-power{margin:2px 0}.station-tabs button{min-height:30px}#critical-alert{gap:7px;padding:7px 10px;min-height:68px}#critical-alert>svg{display:none}#critical-alert b{font-size:11px}#critical-alert p{font-size:10px}#critical-alert button{width:30px;min-height:36px;flex:none}#critical-alert svg{width:15px}}
@media(max-width:360px){#inspector.compact-station{height:248px;padding:6px 10px;gap:4px}.fuel-choice{min-height:34px}.quick-upgrades button{min-height:82px}.station-power{font-size:11px}.station-mini{font-size:9px}}
#inspector.compact-station .heading{padding:0;min-height:36px}.station-tab-body{gap:2px}.fuel-picker{gap:4px}
@media(max-width:760px){#inspector.compact-station{height:260px;gap:4px}}
@media(max-width:360px){#inspector.compact-station{height:252px}}
.quick-upgrades{grid-template-columns:repeat(var(--upgrade-count,3),minmax(0,1fr))}.quick-upgrades b{white-space:normal;text-align:center}.quick-upgrades small{text-align:center;line-height:1.3}
.compact-station .quick-upgrades button{min-height:44px;height:48px;padding:3px;gap:1px;position:relative;font-size:9px}.quick-upgrades svg{width:16px;height:16px}.quick-upgrades button>span{position:absolute;right:3px;top:3px;font-size:8px}.quick-bonuses{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:4px}.quick-bonuses button{height:46px;min-height:44px;padding:2px;font-size:8px;flex-direction:column;gap:3px}.quick-bonuses svg{width:17px;height:17px}.quick-bonuses span{text-align:center;line-height:1.3}.quick-bonuses b{font-weight:500}.station-footnote{margin-top:3px;font-size:9px}.build-fuels{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.build-fuels label{font-size:12px;display:flex;gap:8px;flex-direction:column}.build-fuels select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:4px;background:white;color:var(--ink);padding:8px}#critical-alert[data-tone=hint]{background:#f0f7fc;border-color:#1267E4;color:#00468C}
#panel-feedback{position:absolute;bottom:8px;left:10px;right:10px;padding:9px 12px;background:#fff0f3;color:#BE2443;border:1px solid #BE2443;border-radius:6px;font-size:11px;line-height:1.4;z-index:2}
.compact-station .price{appearance:none;-webkit-appearance:none;background:transparent;padding:0 2px;border:0;border-radius:4px;accent-color:var(--accent)}.compact-station .price::-webkit-slider-runnable-track{height:4px;background:#dce3ec;border-radius:2px}.compact-station .price::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:20px;height:20px;margin-top:-8px;border-radius:50%;border:2px solid white;background:var(--accent);box-shadow:0 0 0 1px #00468c55}.compact-station .price::-moz-range-track{height:4px;background:#dce3ec;border-radius:2px}.compact-station .price::-moz-range-thumb{width:16px;height:16px;border:2px solid white;border-radius:50%;background:var(--accent)}.compact-station .price:focus-visible{outline:1px solid #1267e466;outline-offset:0}
.is-critical #status-symbol{color:#BE2443}


/* Prevent browser gestures on game controls while retaining market scrolling. */
html,body{overscroll-behavior:none;touch-action:pan-x pan-y}button,input,select{touch-action:manipulation}footer,canvas,.station-tabs,.quick-upgrades,.quick-bonuses{touch-action:none}#market-panel,dialog{touch-action:pan-y}
.map-tools .camera-switch button{min-width:76px;padding:0 8px}
@media(max-width:760px){.map-tools .camera-switch button{min-width:72px;padding:0 7px}footer .map-tools{gap:4px}.map-tools .camera-switch svg{width:14px}}
@media(pointer:coarse){select,input:not([type=range]){font-size:16px}.build-fuels select{font-size:16px}}
.fuel-capacity{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px;font-size:11px}.fuel-capacity button{min-height:30px;padding:3px 8px;font-size:11px;gap:5px}.fuel-capacity svg{width:15px;height:15px}
.station-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.station-tabs button{gap:3px;font-size:10px}.station-tabs svg{width:12px;height:12px;flex:none}
.pump-selection{display:flex;gap:6px;min-height:38px}.pump-selection select{flex:1;min-width:0;width:0}.pump-selection button{font-size:11px;padding:3px 7px;min-height:38px;gap:4px;flex:none}.pump-selection svg{width:15px}
.pump-selection select,.pump-slot-grid select{background:white;color:var(--ink);border:1px solid var(--line);border-radius:4px;min-height:38px;padding:3px 4px;font-size:13px}
.pump-slot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:3px}.pump-slot-grid label{border-left:3px solid var(--fuel);display:flex;align-items:center;gap:3px;min-width:0}.pump-slot-grid label>span{font-size:9px;color:var(--muted);padding-left:3px;flex:none}.pump-slot-grid select{width:100%;min-width:0;font-size:12px}.pump-change-status{font-size:10px;color:var(--accent);margin-top:4px}
@media(pointer:coarse){.pump-selection select,.pump-slot-grid select{font-size:16px}.pump-slot-grid label>span{display:none}}
.pump-number-strip{display:flex;gap:4px;overflow-x:auto;flex:none;scrollbar-width:none;touch-action:pan-x}.pump-number-strip button{flex:0 0 34px;height:32px;min-height:32px;padding:2px;font-size:11px;flex-direction:column;gap:3px}.pump-number-strip button>span{display:flex;gap:2px;height:3px}.pump-number-strip i{width:5px;height:3px}.pump-number-strip .active,.pump-slot-strip .active{border-color:var(--accent);background:#edf5ff}
.issue-fuels{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;margin:18px 0}
.pump-editor-heading{display:flex;align-items:center;justify-content:space-between;min-height:28px;font-size:11px}.pump-editor-heading button{min-height:28px;font-size:10px;padding:2px 6px;gap:3px}.pump-editor-heading svg{width:13px}
.pump-slot-strip{display:flex;gap:4px;min-height:28px}.pump-slot-strip button{height:28px;min-height:28px;min-width:34px;padding:2px 6px;font-size:10px;border-bottom:3px solid var(--fuel,var(--line));border-radius:4px}.pump-slot-strip button.icon{margin-left:auto;width:28px;min-width:28px;border:0}.pump-slot-strip svg{width:13px;height:13px}.pump-fuel-picker .fuel-choice{min-height:34px}.pump-change-status{margin-top:1px;font-size:9px;min-height:12px}
.unmet-demand{grid-column:1/-1;display:grid;grid-template-columns:1fr 110px;gap:6px 12px;font-size:11px}.unmet-demand progress{width:100%;height:8px;align-self:center;accent-color:#BE2443}.unmet-demand small{grid-column:1/-1;font-size:10px;color:var(--muted)}.demand-critical{background:#fff0f3;border-left:3px solid #BE2443;padding-left:8px}.demand-countdown{color:#BE2443;font-size:12px}.road-market{margin-top:24px;border-top:1px solid var(--line);padding-top:16px}.road-market h3{font-size:14px;margin-bottom:12px}.road-market>div{display:flex;justify-content:space-between;gap:12px;font-size:11px;padding:8px 0;border-bottom:1px solid var(--line)}.road-market b{white-space:nowrap}
@media(max-width:760px){#inspector.compact-station{height:288px}.fuel-capacity{font-size:10px}.fuel-capacity button{font-size:10px}}
@media(max-width:360px){#inspector.compact-station{height:278px}}
@media(max-width:360px) and (max-height:650px){#app.station-open #critical-alert{min-height:34px;padding:3px 8px}#app.station-open #critical-alert p{display:none}#app.station-open #critical-alert button{min-height:28px;height:28px}}

.action-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.action-groups button{min-height:38px;padding:3px;font-size:11px;gap:3px}.action-groups svg{width:14px;height:14px}.action-groups .active,.power-levels .active{border-color:var(--accent);background:#edf5ff}.action-hint{font-size:12px;line-height:1.35;margin:7px 0}.action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.action-grid button{min-width:0;min-height:42px;padding:5px;font-size:12px;flex-wrap:wrap;gap:4px}.action-grid small{width:100%;font-size:10px;color:var(--muted)}.action-grid svg{width:16px;height:16px}.utilities{display:grid;gap:4px;margin-top:5px}.utility-row{display:flex;justify-content:space-between;gap:5px;align-items:center;border-top:1px solid var(--line);padding-top:5px;min-height:58px}.utility-row b{display:flex;align-items:center;gap:5px;font-size:12px}.utility-row small{display:block;font-size:10px;line-height:1.3;margin-top:3px}.utility-row svg{width:15px;height:15px}.utility-controls{display:flex;gap:3px}.utility-controls button{min-height:38px;font-size:11px;padding:3px 6px;gap:2px}.power-levels{display:flex;gap:2px}.power-levels button{width:28px;padding:2px}.source-picker{display:flex;overflow-x:auto;flex-wrap:nowrap}.source-picker button{flex:none;min-height:36px}.compact-station .delivery-state{font-size:11px;line-height:1.3}.compact-station .delivery-heading{font-size:12px;min-height:22px}.compact-station .station-power{font-size:11px;min-height:42px}.market #fuel-trends{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 8px;max-width:245px;margin-left:auto;margin-top:5px}.market #fuel-trends span{display:inline-flex;align-items:center;gap:3px;font-size:10px;white-space:nowrap}.market #fuel-trends i{width:7px;height:7px;border-radius:50%}
@media(max-width:760px){.map-caption{max-width:115px}.market #fuel-trends{max-width:215px}.action-grid button{min-height:40px}.action-hint{font-size:11px;margin:5px 0}.utility-controls{gap:2px}}
@media(max-width:360px){.action-groups button{font-size:9px}.action-groups svg{display:none}.utility-row small{font-size:9px}.utility-controls button{font-size:10px;padding:2px 4px}.power-levels button{width:24px}.utility-row{min-height:49px}.action-grid button{min-height:34px;font-size:10px}.action-hint{font-size:10px}.market #fuel-trends{max-width:175px}}
.compact-station .delivery-heading{margin:0}.compact-station .source-picker{flex-shrink:0;min-height:38px}.compact-station .source-picker button{flex-direction:row;min-height:38px}.compact-station .delivery-state{margin-top:0}
@media(min-width:761px){#inspector.compact-station{height:360px}}
@media(max-width:360px){#inspector.compact-station{height:304px}.action-groups button{min-height:32px}.compact-station .station-power{min-height:36px}.action-grid button{min-height:32px}}
/* The guided first session pauses simulation, but leaves the map and controls usable. */
#onboarding{flex:none;display:flex;align-items:center;gap:16px;padding:12px 28px;background:#f0f8f7;border-bottom:1px solid #b9dcd7;border-left:4px solid #008C95}
.guide-copy{flex:1;min-width:0}.guide-copy small{display:block;font-size:11px;color:#426f71;margin-bottom:4px}.guide-copy b{font-size:14px;color:#083569}.guide-copy p{font-size:12px;line-height:1.4;margin-top:4px;max-width:660px}.guide-actions{display:flex;gap:5px;align-items:center}.guide-actions button{font-size:12px;white-space:nowrap}.guide-target{outline:2px solid #008C95;outline-offset:-2px}
.help-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:16px 0}.help-tabs button{font-size:13px}.help-items{margin:12px 0 20px}.help-items section{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.help-items section>svg{color:var(--good);margin-top:2px}.help-items b{font-size:14px}.help-items p{font-size:13px;line-height:1.55;margin-top:5px}.help-note{font-size:12px!important;line-height:1.5}#modal h3{font-size:16px}#modal .heading{display:flex;align-items:center;justify-content:space-between;gap:8px}#restart-guide{width:100%}
@media(max-width:760px){
 #onboarding{padding:9px 12px;gap:8px;flex-wrap:wrap}.guide-copy{flex-basis:100%}.guide-copy b{font-size:13px}.guide-copy small{font-size:10px;margin-bottom:2px}.guide-copy p{font-size:12px;margin-top:2px}.guide-actions{width:100%}.guide-actions button{min-height:36px;padding:0 10px}.guide-actions #guide-skip{margin-left:auto;width:36px}.learning #notice{display:none}
 .learning.station-open .guide-copy p{display:none}
}
/* Readable labels and finger-sized controls on iPhone-class viewports. */
@media(min-width:361px) and (max-width:760px){
 #inspector.compact-station{height:342px;gap:6px;padding:10px 12px}
 .station-mini{font-size:11px}.station-tabs button{min-height:40px;font-size:11px}.station-tabs svg{width:14px;height:14px}
 .fuel-choice,.pump-fuel-picker .fuel-choice{min-height:42px;font-size:12px}.fuel-choice small{font-size:10px}
 .fuel-capacity{min-height:24px;font-size:11px}.quick-price-name{font-size:12px;min-height:28px}.quick-price-name button.icon{min-height:28px;width:32px}
 .compact-station .price{min-height:32px}.compact-station .price-ticks{font-size:10px}#quick-price-effect{font-size:11px}
 .pump-number-strip{min-height:40px}.pump-number-strip button{min-height:40px;flex-basis:40px;font-size:12px}.pump-editor-heading{min-height:34px;font-size:12px}.pump-editor-heading button{min-height:34px;font-size:11px}
 .pump-slot-strip{min-height:34px}.pump-slot-strip button{min-height:34px;height:34px;min-width:40px;font-size:11px}.pump-change-status{font-size:10px;line-height:1.3;min-height:26px}
 .pump-stepper button{width:40px;min-height:44px}.compact-station .quick-upgrades button{height:54px;font-size:11px}.quick-upgrades button>span{font-size:9px}.quick-bonuses button{height:54px;font-size:10px}.station-power #marketing{min-height:44px;font-size:12px}.station-footnote{font-size:11px}.delivery-state{font-size:13px;line-height:1.5}
 .map-tools .camera-switch button{min-height:40px;font-size:12px}
}
@media(max-height:700px) and (min-width:361px) and (max-width:760px){#inspector.compact-station{height:320px;padding-top:6px;padding-bottom:6px;gap:3px}.station-tabs button{min-height:36px}.fuel-choice,.pump-fuel-picker .fuel-choice{min-height:38px}.pump-number-strip,.pump-number-strip button{min-height:36px}.pump-change-status{min-height:22px}}
@media(orientation:landscape) and (max-height:500px){#onboarding{padding:6px 12px}.guide-copy{flex-basis:auto}.guide-copy p{display:none}.guide-actions{width:auto}.help-items section{padding:10px 0}}

/* Persistent risk, compact station navigation and two-row season legend. */
.failure-strip{flex:none;display:flex;align-items:center;gap:10px;min-height:27px;width:100%;padding:4px 24px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fff;font-size:11px;color:var(--muted)}
#failure-label{min-width:92px;text-align:left}#failure-gauge{display:block;position:relative;flex:1;height:5px;overflow:hidden;background:#e6ebef;border-radius:2px}#failure-fill{display:block;height:100%;width:0;background:#008C95;transition:width .45s linear}.failure-end{font-size:10px}
.failure-strip[data-tone=warn] #failure-fill{background:#c59013}.failure-strip[data-tone=danger]{background:#fff2f4;color:#BE2443}.failure-strip[data-tone=danger] #failure-fill{background:#BE2443}
.station-navigation{display:flex;align-items:center;gap:0;flex:none}.station-navigation .icon{width:36px;min-width:36px;min-height:40px;padding:4px}.station-navigation span{min-width:18px;text-align:center;font-size:11px;color:var(--muted)}
.market #fuel-trends{display:grid;grid-template-columns:repeat(4,max-content);gap:4px 7px;max-width:none;width:max-content}
.station-tab-body[data-view=fuel] .fuel-choice{min-height:58px;gap:2px}.fuel-choice [data-fuel-stock]{font-size:10px;color:var(--ink)}.fuel-choice [data-fuel-stock].low-stock{color:#BE2443}
@media(max-width:760px){.failure-strip{padding:3px 14px;min-height:24px}.map-tools .camera-switch button{min-width:62px;padding:0 5px;gap:3px}.map-tools #roads-info{display:none}.map-tools{justify-content:center}.station-tab-body[data-view=fuel] .fuel-choice{min-height:54px}.market #fuel-trends span{font-size:10px;gap:2px}.market #fuel-trends{gap:4px 5px}}
@media(max-width:360px){.map-tools .camera-switch button{min-width:58px;font-size:11px}.station-navigation .icon{width:32px;min-width:32px}.station-navigation span{min-width:15px}.market #fuel-trends span{font-size:9px}.market #fuel-trends{gap:3px}.station-tab-body[data-view=fuel] .fuel-choice{min-height:47px}.fuel-choice [data-fuel-stock]{font-size:9px}}

/* Notifications use a real-time queue; the history stays available in the menu. */
#notice{display:flex;align-items:center;gap:12px;pointer-events:auto;z-index:3;width:max-content;max-width:min(640px,92%);padding:12px 14px;font-size:16px;line-height:1.45;text-align:left;border:1px solid #b9dcd7;background:#fff}
#notice-text{min-width:0;overflow-wrap:anywhere}#notice .icon{width:36px;min-height:36px;color:var(--muted)}
.event-history p{padding:12px 0;border-bottom:1px solid var(--line)}.event-history b{display:block;color:var(--accent);font-variant-numeric:tabular-nums}
.fuel-choice [data-fuel-load]{white-space:normal;line-height:1.2;overflow-wrap:anywhere}
[data-supply-rate].active{border-color:var(--accent);background:#edf5ff;color:var(--accent)}
@media(min-width:1100px){#inspector [data-supply-rate]{font-size:18px}#supply-state{font-size:16px;line-height:1.4}.depot-fuel{font-size:16px}#inspector:not(.compact-station) .station-stats{font-size:16px}#inspector:not(.compact-station) .station-stats b{font-size:28px}}
.market-event{padding:14px 0;font-size:14px;line-height:1.6;color:var(--ink)}
@media(max-width:760px){#notice{font-size:14px;padding:10px 12px;gap:6px}.market b{white-space:normal;line-height:1.25}.market #fuel-trends{grid-template-columns:repeat(4,minmax(0,1fr));width:225px;gap:4px}.market #fuel-trends span{font-size:9px;gap:2px;justify-content:flex-end}}
@media(max-width:360px){.market #fuel-trends{width:196px;font-size:8px}}

/* Larger desktop controls without scaling the canvas coordinate system or mobile UI. */
@media(min-width:1100px){
 body{font-size:20px}button{min-height:60px;padding:0 18px;gap:10px}svg{width:28px;height:28px}button.icon{width:60px}
 header{height:116px;gap:30px;padding:0 32px}.brand img{width:52px;height:52px}h1{font-size:34px}h1 span{font-size:16px}.caption{font-size:18px}.metrics{gap:34px}.metrics strong{font-size:48px}.metrics strong span{font-size:24px}.balance{width:240px}.ends{font-size:14px}.balance-track{height:8px}
 .view-tabs{height:64px;padding:0 32px}.view-tabs button{font-size:20px}.view-tabs .network-status b{font-size:17px}.view-tabs .network-status{max-width:50%;width:auto}.failure-strip{font-size:16px;min-height:36px;padding:5px 32px}.failure-end{font-size:14px}#failure-label{min-width:150px}#failure-gauge{height:7px}
 footer{min-height:96px;padding:14px 24px;gap:10px}.build-tools button{font-size:20px}.build-tools b{font-size:17px}.map-tools .camera-switch button{min-height:54px;min-width:94px;font-size:18px;padding:0 10px}.map-tools .camera-switch svg{width:24px;height:24px}.station-navigation .icon{width:44px;min-width:44px;min-height:54px}.station-navigation span{font-size:18px;min-width:25px}.map-tools #roads-info{width:44px;min-height:54px}.time-tools button:first-child{width:60px}#rewards{font-size:18px;min-width:95px}
 .map-caption span{font-size:18px}.map-caption small{font-size:14px}.market{font-size:18px;max-width:470px}.market p{font-size:16px;max-width:450px}.market #fuel-trends{gap:6px 14px}.market #fuel-trends span{font-size:16px}.market #fuel-trends i{width:10px;height:10px}
 #inspector,#inspector.compact-station{width:620px;right:22px;bottom:16px;height:min(620px,calc(100% - 105px));max-height:calc(100% - 105px);padding:20px 24px;gap:12px}#inspector .heading{min-height:56px}#inspector h2,.compact-station .heading h2{font-size:28px}.station-mini{font-size:18px;margin-top:6px}.panel-actions button.icon{width:52px;min-height:52px}.panel-actions svg{width:26px;height:26px}
 .station-tab-body{overflow-y:auto;gap:10px;padding:2px 2px 8px}.station-tabs{padding:5px;gap:4px}.station-tabs button{font-size:18px;min-height:52px;gap:6px}.station-tabs svg{width:20px;height:20px}
 .fuel-picker{gap:8px}.fuel-choice,.pump-fuel-picker .fuel-choice{min-height:68px;font-size:21px;padding:6px;gap:4px}.station-tab-body[data-view=fuel] .fuel-choice{min-height:94px}.fuel-choice small,.fuel-choice [data-fuel-stock]{font-size:16px}.fuel-choice svg{width:22px;height:22px}.fuel-capacity{font-size:18px;min-height:32px}
 .quick-price-name{font-size:18px;height:auto;min-height:40px}.quick-price-name button.icon{width:40px;min-height:40px}.quick-price-name svg{width:24px;height:24px}.compact-station .price{height:40px;min-height:40px}.compact-station .price-ticks{font-size:14px}#quick-price-effect{font-size:17px;min-height:26px}.compact-station .price::-webkit-slider-thumb{width:28px;height:28px;margin-top:-12px}
 .pump-number-strip{min-height:54px;gap:8px}.pump-number-strip button{min-height:54px;height:54px;flex-basis:54px;font-size:20px}.pump-number-strip i{width:8px;height:5px}.pump-editor-heading{font-size:20px;min-height:48px}.pump-editor-heading button{font-size:17px;min-height:44px}.pump-editor-heading svg{width:22px}.pump-slot-strip{min-height:44px;gap:8px}.pump-slot-strip button{min-width:52px;height:44px;min-height:44px;font-size:17px}.pump-slot-strip button.icon{width:44px}.pump-slot-strip svg{width:22px;height:22px}.pump-change-status{font-size:16px;line-height:1.4;min-height:22px}
 .action-groups button{font-size:17px;min-height:50px}.action-groups svg{width:20px;height:20px}.action-hint{font-size:18px;margin:8px 0;line-height:1.4}.action-grid{gap:10px}.action-grid button{min-height:60px;font-size:18px;padding:8px}.action-grid small{font-size:16px}.action-grid svg{width:24px;height:24px}.compact-station .station-power{font-size:18px;min-height:56px}.pump-stepper button{width:50px;min-height:50px}.station-footnote{font-size:16px}
 .utility-row{min-height:82px;gap:12px}.utility-row b{font-size:20px}.utility-row small{font-size:16px}.utility-controls button{min-height:48px;font-size:18px;padding:4px 8px}.power-levels button{width:36px}.utility-row svg{width:22px;height:22px}.compact-station .delivery-heading{font-size:20px;min-height:30px}.delivery-heading span{font-size:16px}.compact-station .source-picker{min-height:50px}.compact-station .source-picker button{min-height:50px;font-size:18px}.compact-station .delivery-state{font-size:18px;line-height:1.4}#panel-feedback{font-size:17px}
 #critical-alert{padding:12px 30px;gap:16px;min-height:80px}#critical-alert b{font-size:18px}#critical-alert p{font-size:16px}#critical-alert button{min-height:48px;width:48px}
 dialog{width:min(780px,calc(100% - 60px));padding:32px}dialog h2{font-size:36px}dialog p,dialog dl{font-size:18px}dialog .choices button{height:auto;min-height:210px;font-size:22px;padding:22px}dialog .choices small{font-size:17px;line-height:1.45}dialog .choices svg{width:44px;height:44px}.eyebrow{font-size:16px}.resource-list{font-size:20px;gap:20px}.resource-list svg{width:26px;height:26px}#modal .help-tabs button{font-size:18px}#modal h3{font-size:24px}.help-items b{font-size:20px}.help-items p{font-size:18px}.help-note{font-size:17px!important}
 .analytics-inner{max-width:1150px;padding:32px 42px}.analytics-heading h2{font-size:38px}.market-overview b{font-size:22px}.market-overview span,.market-table-label,.market-toolbar label{font-size:17px}.market-toolbar select{font-size:20px;min-height:56px;width:300px}.market-event,.market-advice{font-size:20px}.fuel-badge{font-size:21px}.fuel-symbol{width:40px;height:40px}.fuel-symbol svg{width:24px;height:24px}.fuel-market-row{grid-template-columns:1fr 220px;padding:22px 0}.fuel-market-name small,.fuel-market-detail,.unmet-demand,.data-note,.road-market>div,.market-outlook p{font-size:17px}.fuel-market-share b{font-size:24px}.unmet-demand small{font-size:16px}.market-outlook h3,.road-market h3{font-size:22px}.road-market p{font-size:18px}
 .progress-table,.price-history,.ranking-table,.run-history button{font-size:17px}.result-metrics b{font-size:36px}.result-metrics span{font-size:18px}
}
@media(min-width:1600px){#inspector,#inspector.compact-station{width:740px;height:min(700px,calc(100% - 115px))}.station-tabs button{font-size:21px}.fuel-choice{font-size:24px}.fuel-choice small,.fuel-choice [data-fuel-stock]{font-size:18px}}
@media(min-width:1100px){
 #map-wrap{--station-panel-width:620px}
 #inspector,#inspector.compact-station{width:var(--station-panel-width);top:16px;bottom:16px;height:auto;max-height:none}
 #map-wrap.inspecting .market{right:calc(var(--station-panel-width) + 44px);max-width:410px}
}
@media(min-width:1600px){#map-wrap{--station-panel-width:740px}}
@media(min-width:361px) and (max-width:760px){#critical-alert b{font-size:13px}#critical-alert p{font-size:12px;line-height:1.35}}

/* Recommendations are separate from game warnings and never cover station controls. */
.benzup-card{border:1px solid var(--line);border-left:3px solid var(--good);border-radius:6px;background:#fff;padding:16px;margin:16px 0;text-align:left;overflow-wrap:anywhere}
.benzup-brand{display:flex;align-items:center;gap:8px;color:var(--accent);font-size:12px;font-weight:600;padding-right:20px;flex-wrap:wrap}.benzup-brand small{color:var(--muted);font-size:11px;font-weight:400}.benzup-brand svg{width:18px;height:18px}
#modal .benzup-card h3,.benzup-card h3{font-size:18px;line-height:1.3;margin:10px 0 6px}.benzup-card p,#modal .benzup-card p{font-size:14px;line-height:1.5;margin:6px 0 12px;color:var(--ink)}
.application-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--accent);font-size:14px;font-weight:600;text-decoration:none}.application-link:hover{text-decoration:underline}.application-link:focus-visible{outline:3px solid #1267E4;outline-offset:2px}
#partner-banner{position:absolute;bottom:14px;left:20px;z-index:5;width:min(420px,calc(100% - 40px));max-height:70%;overflow:auto;box-shadow:0 3px 18px #44546a12;border-radius:6px}#partner-banner .benzup-card{margin:0;padding:14px 18px}#partner-banner .partner-dismiss{position:absolute;right:2px;top:2px;min-height:36px;width:36px;height:36px}#partner-banner .partner-dismiss svg{width:18px}
.install-identity{display:flex;align-items:center;gap:14px;margin:20px 0}.install-identity span{display:block;font-size:13px;color:var(--muted);margin-top:5px}.install-steps{padding-left:24px;font-size:15px;line-height:1.6}.install-steps li{padding-left:4px;margin:14px 0}
#install-nudge{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;width:min(540px,calc(100% - 24px));padding:10px 12px;background:white;border:1px solid var(--line);border-radius:6px;box-shadow:0 3px 16px #44546a12;z-index:5;font-size:14px}#install-nudge span{flex:1;min-width:0}#install-nudge button{font-size:13px;padding:0 8px;min-height:44px}#install-nudge button.icon{width:32px;min-width:32px;padding:0}#install-nudge img{flex-shrink:0}
#storage-warning{display:flex;align-items:center;justify-content:center;gap:12px;flex-shrink:0;background:#fff1f4;color:#9d1937;padding:4px 12px;font-size:13px}#storage-warning button{font-size:13px;min-height:40px}
@media(max-width:760px){#partner-banner{left:12px;bottom:10px;width:calc(100% - 24px)}#partner-banner .benzup-card{padding:10px 14px}.benzup-card h3,#modal .benzup-card h3{font-size:16px}.benzup-card p,#modal .benzup-card p{font-size:13px}#partner-banner .benzup-card p{margin-bottom:4px}#install-nudge{gap:6px;font-size:12px}#install-nudge img{width:26px;height:26px}.install-steps{font-size:14px}.install-identity{margin:12px 0}.offer-list .benzup-card{padding:12px}}
@media(max-height:610px){#partner-banner{max-height:60%}#partner-banner .benzup-card p{display:none}}
#partner-compact{display:flex;align-items:center;justify-content:center;gap:12px;flex-shrink:0;border-top:1px solid var(--line);background:white;padding:5px 20px;font-size:13px;min-width:0}#partner-compact>span{min-width:0;line-height:1.3}#partner-compact b{display:block;color:var(--good);font-size:11px;margin-bottom:2px}#partner-compact .application-link{flex-shrink:0}#partner-compact .partner-dismiss{width:36px;min-height:36px}
@media(max-width:760px){#partner-compact{gap:6px;padding:4px 12px;font-size:11px}#partner-compact .application-link{font-size:12px;gap:4px}#partner-compact .application-link svg{width:14px}#partner-compact .partner-dismiss{width:28px}#partner-compact .partner-dismiss svg{width:16px}}
