/* Map stays visible while the command drawer owns its scrolling. */
body[data-page=dashboard] .sidebar nav{overflow-y:auto;overflow-x:hidden;min-height:0;scrollbar-width:none}.sidebar .nav-item{margin-bottom:3px;min-height:36px;padding-top:9px;padding-bottom:9px}.sidebar nav{flex:1}.sidebar .sidebar-bottom{flex-shrink:0}
.has-world-map #detail-view{inset:12px 18px 58px auto;width:min(570px,calc(100% - 36px));padding:24px;z-index:20;background:#101f29f7;backdrop-filter:blur(18px);border-color:#7e9d8e55;scroll-behavior:smooth}.has-world-map .game-detail-close{top:auto;left:auto;right:18px;bottom:9px;z-index:22;height:39px;background:#182d34}.has-world-map body:not([data-view=home]) .place-panel{visibility:hidden}body.has-world-map:not([data-view=home]) .place-panel{visibility:hidden}.command-launcher{position:absolute;left:24px;bottom:177px;z-index:7;border:1px solid #c5af744d;background:#132831e8;color:#e3c788;border-radius:6px;padding:10px 14px;font-size:11px;letter-spacing:.3px}body:not([data-view=home]) .command-launcher{display:none}.detail-header h1{font-size:25px}.detail-header{margin-bottom:16px}.detail-header p{line-height:1.7}.module-tabs{display:flex;overflow-x:auto;gap:6px;position:sticky;top:-24px;padding:12px 0;background:#101f29;z-index:3;scrollbar-width:thin;margin-bottom:16px}.module-tabs button{background:#20343d;border:1px solid #adc3ac22;color:#b6c8c8;border-radius:5px;white-space:nowrap;padding:8px 11px;font-size:11px}.module-tabs .active{background:#d8b67522;color:#e5c685;border-color:#d8b67566}.sim-content{display:grid;gap:14px}.sim-card{background:#172b34;border:1px solid #89a49a26;border-radius:9px;padding:19px;min-width:0}.sim-card h2{font-size:17px;margin:0 0 13px;letter-spacing:-.3px}.sim-card h3{font-size:13px;margin:8px 0}.sim-card p{font-size:12px;color:#acbfc0;line-height:1.8}.sim-card .sim-muted{font-size:11px;color:#8ba4a8;margin-top:-5px}.sim-card .button{min-height:36px;font-size:11px;padding:9px 12px;margin:5px 5px 5px 0;max-width:100%;white-space:normal}.sim-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.sim-form>.button{grid-column:1/-1;margin:3px 0}.sim-form>label:only-of-type{grid-column:1/-1}.sim-field{font-size:11px;display:flex;flex-direction:column;gap:7px;color:#bbccc7;min-width:0}.sim-field input,.sim-field select{min-width:0;width:100%;padding:10px;border:1px solid #9ab09d36;background:#10232d;color:#e0e9df;border-radius:5px;font-size:12px;height:40px}.sim-field input[type=range]{padding:0;accent-color:var(--gold)}.sim-tag{display:inline-block;font-size:9px;letter-spacing:.5px;background:#d8b67512;border:1px solid #d8b67535;color:#dac591;border-radius:4px;padding:5px 8px;margin:0 6px 5px 0}.sim-tag.success{color:#8bdfac;background:#62bb8c16;border-color:#62bb8c55}.sim-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sim-metrics>div{padding:13px;border:1px solid #90ac9d26;border-radius:6px}.sim-metrics b{display:block;font-size:19px;overflow-wrap:anywhere;color:#e1e7da}.sim-metrics span{display:block;font-size:10px;color:#8da8ab;margin-top:7px}.sim-progress{margin:13px 0}.sim-progress>span{display:flex;justify-content:space-between;font-size:10px;color:#9fb7b7;gap:10px}.sim-progress b{color:#d0dfd3;font-weight:500}.sim-progress progress{appearance:none;width:100%;height:5px;border:0;border-radius:5px;overflow:hidden;background:#0b1c24;margin-top:7px}.sim-progress progress::-webkit-progress-bar{background:#0b1c24}.sim-progress progress::-webkit-progress-value{background:#cbb77d}.sim-progress progress::-moz-progress-bar{background:#cbb77d}.sim-row{padding:10px 0;border-bottom:1px solid #8ba39124;overflow-wrap:anywhere}.sim-row:last-child{border-bottom:0}.sim-row>span{font-size:9px;color:#829d9e}.sim-row p{margin:6px 0}.sim-empty{padding:15px;border:1px dashed #8ba39140;border-radius:6px}.sim-feedback{font-size:12px;line-height:1.6;color:#9bdbb3;position:sticky;top:40px;background:#13252b;z-index:3}.sim-feedback:not(:empty){padding:12px;border:1px solid #89c69744;border-radius:6px;margin-bottom:15px}.sim-feedback.error{color:#f3b6a6;border-color:#c5746555}.sim-footer{color:#7d969c;font-size:10px;line-height:1.6;margin:18px 0 4px}.sim-task{display:flex;align-items:center;width:100%;gap:10px;padding:13px 0;background:none;border:0;border-bottom:1px solid #87a29233;color:#c8d7d1;text-align:left;font-size:12px}.sim-task>span{color:#c6ab70}.sim-task.done>span{color:#88c89e}.sim-task>b{margin-left:auto;color:#c6ab70}.sim-launch-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sim-launch-grid button{display:flex;gap:9px;align-items:center;background:#172c35;border:1px solid #90a99c30;border-radius:7px;padding:15px 12px;color:#ccd9d4;font-size:12px;text-align:left}.sim-launch-grid svg{width:17px;height:17px;color:#c7b47e}.sim-launch-grid b{margin-left:auto;color:#8ea8a4}.sim-business{padding:15px 0;border-bottom:1px solid #8ba39124}.tech-route{border-left:2px solid #b9a36c;background:#d8b67508;padding:15px;color:#b8cbc4;font-size:12px;line-height:2.2}.country-roster{max-height:290px;overflow:auto;scrollbar-width:thin;margin-top:14px}.country-roster article{padding:10px 0;border-bottom:1px solid #7c998936}.country-roster b{display:block;margin-bottom:8px;font-size:14px}.country-roster article[hidden]{display:none}.ledger-scroll{overflow:auto;max-height:350px}.ledger-scroll table{font-size:11px;width:100%;border-collapse:collapse}.ledger-scroll td,.ledger-scroll th{padding:10px 7px;text-align:left;border-bottom:1px solid #90a99c30}.cosmetic-preview{text-align:center;border:1px solid var(--gold);border-radius:10px;padding:25px;margin-bottom:15px;background:radial-gradient(ellipse at center,#b7ab7d18,transparent)}.cosmetic-preview .avatar{margin:auto;width:60px;height:60px;background:#d8b67520;color:var(--gold);font-size:27px}.sim-note{border-left:2px solid #a9b87b;padding-left:10px}body[data-theme=teal]{--gold:#7ed1c5}body[data-theme=violet]{--gold:#b6a1e2}.low-motion *{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}.high-contrast .sim-card,.high-contrast .place-panel,.high-contrast #detail-view{background:#08151f;border-color:#c3d8cb}.high-contrast p,.high-contrast small{color:#d8e5df!important}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #e9ce8f;outline-offset:3px}.has-world-map #detail-view .detail-grid{grid-template-columns:1fr}.has-world-map #detail-view .detail-card.wide{grid-column:auto}.has-world-map #detail-view .data-table{min-width:0}.has-world-map #detail-view .data-table td,.has-world-map #detail-view .data-table th{font-size:10px;padding:8px 4px}.city-inventory{max-height:180px;overflow:auto;scrollbar-width:thin}.city-content select{max-width:100%}.city-extra-links{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}.city-extra-links button{flex:1;font-size:10px;padding:8px;border:1px solid #94ac9636;color:#c8d8ce;background:#1a3039;border-radius:4px}.city-batch-label{display:block;font-size:11px;margin:10px 0}.city-batch-label input{margin-top:6px;width:100%;height:36px;background:#10232d;color:#dce5d9;border:1px solid #8ba39140;border-radius:5px;padding:8px}.sim-refresh{font-size:10px;color:#a9c4bc;background:transparent;border:1px solid #8fa99844;border-radius:5px;padding:7px 11px}
@media(max-width:700px){.has-world-map #detail-view{inset:170px 8px 53px;width:auto;padding:16px;border-radius:12px}.has-world-map .game-detail-close{right:9px;bottom:6px}.command-launcher{left:auto;right:15px;bottom:auto;top:15px;padding:7px 9px;font-size:9px}.has-world-map .welcome-row h1{font-size:18px;max-width:225px}.sim-card{padding:15px}.module-tabs{top:-16px}.sim-form{grid-template-columns:1fr}.sim-form>.button{grid-column:auto}.sim-launch-grid button{font-size:10px;padding:12px 9px}.sim-card h2{font-size:16px}.sim-metrics b{font-size:16px}.sidebar nav{overflow:visible}.sim-field input,.sim-field select{font-size:16px}.city-inventory{max-height:130px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}}
.place-simulation{border:1px solid #a0b89c2a;background:#243a3d66;padding:12px;border-radius:7px;margin:12px 0}.place-simulation p{font-size:11px;line-height:1.8;color:#b3c9c4}.command-launcher{bottom:190px}.has-world-map .world-hint{max-width:290px}.city-extra-links{display:grid;grid-template-columns:1fr 1fr}.sim-refresh:hover{background:#aac3b21a}.sim-form .button{cursor:pointer}
@media(max-width:700px){.command-launcher{bottom:auto;top:15px}.has-world-map .welcome-row{pointer-events:none}.has-world-map .world-tools{top:85px}}
/* Unified command shell: explicit module selection, contextual navigation, shared forms. */
.has-world-map #detail-view{width:min(580px,calc(100% - 36px));padding:22px;scrollbar-gutter:stable}.detail-header{position:relative;padding:0 0 15px;border-bottom:1px solid #a1b7a225;margin-bottom:14px}.detail-header h1{font-size:25px;margin:10px 0}.detail-header .section-kicker{font-size:8px;letter-spacing:2px}.detail-header p{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.header-role{font-size:10px;color:var(--gold);border-left:1px solid #a5baab44;padding-left:9px}.sim-refresh{margin-top:12px}.module-toolbar{display:flex;align-items:center;gap:10px;padding:0 0 9px}.module-toolbar>label{font-size:8px;letter-spacing:1.4px;color:#90aba8}.module-toolbar>select{flex:1;min-width:0;background:#20373d;color:#e1e8db;border:1px solid #92aa9844;border-radius:6px;font-size:12px;padding:10px}.module-toolbar>span{font-size:10px;color:#90aba8}.module-tabs{position:static;display:flex;overflow:visible;padding:0;background:transparent;gap:5px;margin-bottom:17px}.module-tabs button{flex:1;min-width:0;font-size:10px;padding:9px 6px;white-space:normal}.sim-card{padding:18px;border-color:#8ca78f2c;box-shadow:0 7px 20px #0000000d}.sim-card h2{display:flex;align-items:center;gap:9px;font-size:16px}.sim-card h2:before{content:'';width:3px;height:14px;background:var(--gold);border-radius:2px;opacity:.65;flex-shrink:0}.sim-form{padding-top:12px;border-top:1px solid #8ca78f24}.sim-form input:invalid:not(:placeholder-shown){box-shadow:none}.sim-form-hint{font-size:10px;line-height:1.7;color:#d3b995;grid-column:1/-1;margin:0}.sim-form-hint:empty{display:none}.sim-feedback{top:0;box-shadow:0 4px 10px #0002}.sim-feedback:not(:empty){display:block}.work-summary{display:flex;align-items:center;gap:12px;margin-bottom:16px}.work-summary>svg{width:38px;height:38px;padding:8px;border:1px solid #c9b37b55;border-radius:8px;color:var(--gold);background:#b7a77510}.work-summary>div{flex:1}.work-summary h3{font-size:17px;margin:0}.work-summary p{font-size:11px;margin:4px 0}.work-summary .sim-tag{font-size:8px;margin:0}.personal-market{display:flex;flex-direction:column}.market-line{display:grid;grid-template-columns:1fr 36px auto;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #8ca78f24}.market-line>div{display:grid;grid-template-columns:22px 1fr;gap:5px;font-size:12px;align-items:center}.market-line svg{width:16px;height:16px;color:#bdb185;grid-row:1/3}.market-line small{font-size:10px;color:#91aaa7;grid-column:2}.market-line>b{font-size:14px;text-align:center}.market-line .button{margin:0;font-size:9px}.sim-card .button:disabled{opacity:.42;cursor:not-allowed}.module-toolbar select:focus{border-color:var(--gold)}.sim-footer{border-top:1px solid #8ca78f24;padding-top:13px}.city-feedback:not(:empty){padding:10px;border-radius:6px;background:#233b36;color:#b7e0bc}.city-feedback.error{background:#4b302a;color:#f2b9a6}.sim-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:700px){.has-world-map #detail-view{width:auto;padding:16px;inset:145px 8px 53px}.detail-header h1{font-size:23px}.module-toolbar select{font-size:16px}.module-toolbar>span{display:none}.module-tabs button{padding:9px 4px;font-size:10px}.sim-card{padding:15px}.market-line{gap:7px;grid-template-columns:1fr 24px auto}.market-line .button{font-size:8px;padding:8px;min-height:34px}.work-summary{flex-wrap:wrap}.work-summary .sim-tag{margin-left:50px}.sim-form-hint{grid-column:1}.sim-form{grid-template-columns:1fr}.city-feedback{font-size:11px}}
.notification-button>span:not([hidden]){width:auto!important;min-width:14px;height:14px!important;display:grid;place-items:center;font-size:8px;line-height:14px;border-radius:8px;padding:0 3px;background:#c7b17c;color:#0b1d25;right:-1px;top:0}.notification-button>span[hidden]{display:none!important}
@media(max-width:700px){.resources>span:nth-child(2){display:flex}.resources>span:nth-child(2)>small{display:none}.resources{gap:5px}.resources>span{gap:3px}.breadcrumb #view-title,.breadcrumb>span:nth-of-type(2){display:none}.breadcrumb #country-breadcrumb{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar{gap:5px}.resources .icon-button{width:25px}.sim-field select{max-width:100%}}
