/* LAST CITY / salvaged control room.
   Refined with unslop by Damir Sokolovsky (@heydamir),
   https://heydamir.design/unslop — CC BY 4.0. */
body.pixel-app.idle-desk {
    --field-bg:#171c1e; --field-panel:#30383a; --field-raised:#30383a; --field-sunken:#232b2d;
    --field-line:#414a49; --field-ink:#eee8dc; --field-muted:#b5bbb6;
    --field-gold:#d4b17c; --field-green:#b5bbb6; --field-teal:#b5bbb6;
    --bg:#171c1e; --bg-dark:#171c1e; --panel:#30383a; --panel-light:#30383a;
    --border:#414a49; --text:#eee8dc; --muted:#b5bbb6;
    --x-bg:#30383a; --x-bg-raised:#30383a; --x-bg-sunken:#232b2d;
    --x-line:#414a49; --x-text:#eee8dc; --x-text-dim:#b5bbb6; --x-accent:#d4b17c;
    padding:64px 0 0; background:#171c1e; color:#eee8dc;
    font-family:'Segoe UI',system-ui,sans-serif; line-height:1.5; font-size:14px; font-variant-numeric:tabular-nums lining-nums;
}
body.idle-desk :is(button,input,select,textarea,p,small,span,strong,b,summary) { font-family: 'Segoe UI',system-ui,sans-serif; }
body.idle-desk :is(h1,h2,h3,h4) { font-family:'Segoe UI',system-ui,sans-serif; letter-spacing:0; }
body.idle-desk :is(button,summary,a):focus-visible { outline:2px solid #d4b17c; outline-offset:3px; }
body.idle-desk button { transition:background-color .12s, border-color .12s, filter .1s; min-height:40px; }
body.idle-desk button:active:not(:disabled) { transform:translateY(2px); filter:brightness(1.15); }
body.idle-desk .top-header {
    position:fixed; inset:0 0 auto; height:64px; width:100%; padding:0 24px;
    flex-direction:row; align-items:center; gap:24px; background:#232b2d;
    border:0; border-bottom:3px solid #171c1e; box-shadow:none;
}
body.idle-desk .logo-section { display:flex; padding:0; gap:12px; align-items:center; }
body.idle-desk .field-brand-mark { position:static; display:block; color:#d4b17c; }
body.idle-desk .field-brand-mark svg { width:29px; height:32px; }
body.idle-desk .logo-section h1 { display:flex; gap:8px; font-family:'Segoe UI',system-ui,sans-serif; font-size:25px; letter-spacing:0; line-height:1; }
body.idle-desk .logo-section h1 span { display:inline; font-family:'Segoe UI',system-ui,sans-serif; font-size:25px; color:#d4b17c; }
body.idle-desk .studio-name { display:none; }
.idle-edition { display:flex; align-items:center; gap:8px; color:#b5bbb6; font:11px/1.3 Consolas,monospace; letter-spacing:0; padding-left:24px; border-left:1px solid #414a49; }
.idle-edition i { height:8px; width:6px; background:#b5bbb6; box-shadow:none; }
.idle-edition span { font:11px Consolas,monospace!important; color:#99a39d; margin-left:12px; }
body.idle-desk .header-buttons { margin-left:auto; display:flex; flex-direction:row; flex-wrap:nowrap; padding:0; gap:12px; border:0; width:auto; }
body.idle-desk .header-buttons > * { flex:0 0 auto; }
body.idle-desk #guideButton { font-size:12px; padding:8px 12px; background:#30383a; border:1px solid #646f6b; color:#eee8dc; }
body.idle-desk .player-settings { width:auto; }
body.idle-desk .player-settings > summary { font-size:12px; padding:8px 12px; color:#b5bbb6; border:1px solid #646f6b; }
body.idle-desk .player-settings > summary::after { content:none; }
body.idle-desk .settings-menu { top:72px; right:16px; left:auto; bottom:auto; width:350px; max-height:calc(100dvh - 92px); padding:20px; background:#30383a; border:1px solid #99a39d; box-shadow:none; }
body.idle-desk .settings-menu button { background:#30383a; border-color:#646f6b; color:#eee8dc; font-size:12px; }
body.idle-desk .settings-menu p { color:#b5bbb6; font-size:12px; }
#idleMobileStore { display:none; }
#idleDesk { display:grid; grid-template-columns:minmax(250px,27%) minmax(0,1fr) minmax(270px,25%); align-items:start; min-height:calc(100dvh - 64px); }
#idleAction { position:sticky; top:64px; height:calc(100dvh - 64px); overflow-y:auto; border-right:1px solid #414a49; background:#232b2d; scrollbar-width:thin; }
.idle-panel-heading { padding:16px 20px 12px; display:flex; justify-content:space-between; gap:12px; border-bottom:1px solid #414a49; }
.idle-panel-heading span { font:11px Consolas,monospace!important; letter-spacing:0; color:#99a39d; }
.idle-panel-heading b { font-size:11px; letter-spacing:0; color:#b5bbb6; text-align:right; }
body.idle-desk .wallet-bar { position:relative; top:auto; width:100%; min-height:0; display:flex; flex-wrap:wrap; padding:20px 24px 16px; gap:12px; background:#232b2d; border:0; border-bottom:1px solid #414a49; text-align:center; }
body.idle-desk .wallet-primary { display:flex; flex:0 0 100%; flex-direction:column; align-items:center; gap:1px; min-width:0; }
body.idle-desk .wallet-primary > span { font:11px Consolas,monospace; letter-spacing:0; color:#d4b17c; }
body.idle-desk .wallet-primary #walletBalance { display:block; max-width:100%; overflow-wrap:anywhere; font:500 clamp(34px,3.6vw,58px)/1.18 'Segoe UI',system-ui,sans-serif; letter-spacing:0; font-variant-numeric:tabular-nums lining-nums; color:#eee8dc!important; text-shadow:none; }
body.idle-desk .wallet-primary #walletRate { color:#b5bbb6; font:600 13px/1.8 'Segoe UI',sans-serif; }
#idleNotation { min-height:24px; padding:1px 8px; background:transparent; border:1px solid #646f6b; color:#b5bbb6; font:11px Consolas,monospace!important; margin:4px 0 4px; }
body.idle-desk .wallet-secondary { padding:0 8px 0 0; border:0; min-width:50px; gap:0; flex:1; }
body.idle-desk .wallet-secondary > span { font-size:11px; color:#99a39d; letter-spacing:0; }
body.idle-desk .wallet-secondary > strong { font-size:20px; color:#d4b17c; font-variant-numeric:tabular-nums; }
body.idle-desk .wallet-level { display:flex; flex-direction:column; padding:0 12px; min-width:90px; flex:1.5; border-left:1px solid #646f6b; }
body.idle-desk .wallet-level .level-head { display:flex; flex-direction:row; gap:4px; }
body.idle-desk .wallet-level .level-head span { font-size:11px; }
body.idle-desk .wallet-level .level-head strong { color:#d4b17c; font-size:11px; }
body.idle-desk .wallet-level small { font-size:11px; color:#99a39d; }
body.idle-desk .level-track { height:4px; background:#414a49; }
body.idle-desk #levelFill { background:#d4b17c; }
body.idle-desk .wallet-luck { display:none; }
body.idle-desk .field-wallet-population { display:flex; padding:0; margin:0; gap:8px; flex:1; justify-content:center; }
body.idle-desk .field-wallet-population svg { width:17px; }
body.idle-desk .field-wallet-population span { font-size:11px; }
body.idle-desk .field-wallet-population strong { font-size:19px; color:#eee8dc; }
.idle-action-art { position:relative; height:152px; background:#232b2d; image-rendering:pixelated; }
.idle-action-art-label { position:absolute; bottom:8px; width:100%; display:flex; justify-content:center; align-items:center; gap:8px; color:#b5bbb6; letter-spacing:0; font-size:11px; }
.idle-action-art-label i { width:4px; height:4px; background:#d4b17c; }
body.idle-desk #idleGatherMount .city-panel { display:flex!important; flex-direction:column; align-items:center; padding:8px 24px 0; gap:12px; }
body.idle-desk #idleGatherMount .energy-button { position:relative; display:grid; justify-items:center; align-content:center; gap:8px; width:210px; max-width:100%; aspect-ratio:1; height:auto; min-height:0; flex:none; padding:20px; border:1px solid #414a49; border-radius:50%; background:#232b2d; color:#232b2d; box-shadow:none; text-shadow:none; font-size:13px; letter-spacing:0; touch-action:none; user-select:none; transition:filter .08s,box-shadow .08s,transform .08s; }
body.idle-desk #idleGatherMount .energy-button:hover { filter:none; box-shadow:none; }
body.idle-desk #idleGatherMount .energy-button { border-radius:50%!important; }
body.idle-desk #idleGatherMount .energy-button:active,body.idle-desk #idleGatherMount .energy-button.idle-holding { transform:translateY(3px) scale(.98); }
body.idle-desk #idleGatherMount .energy-button-icon { display:block; font-size:54px; height:64px; line-height:1; }
body.idle-desk #idleGatherMount .energy-button-icon svg { width:64px; height:64px; }
body.idle-desk #idleGatherMount .energy-button small { font:500 23px 'Segoe UI',system-ui,sans-serif; color:#30383a; }
body.idle-desk #idleGatherMount .combo-meter { width:100%; min-width:0; flex:none; padding:12px 0 0; }
body.idle-desk .combo-copy { font-size:11px; color:#b5bbb6; }
body.idle-desk .combo-track { height:4px; background:#414a49; }
body.idle-desk #comboBar { background:#d4b17c; }
body.idle-desk #comboBonus { font-size:11px; color:#99a39d; }
#idleHoldHint { margin:8px 16px 16px; font-size:11px; color:#99a39d; text-align:center; }
#idleZoneAction { display:none; margin:16px auto; width:calc(100% - 40px); background:#d4b17c; color:#171c1e; border:1px solid #414a49; }
body.idle-desk:not([data-zone="1"]) #idleGatherMount,body.idle-desk:not([data-zone="1"]) #idleHoldHint { display:none; }
body.idle-desk:not([data-zone="1"]) #idleZoneAction { display:block; }
.idle-city-details { margin:12px 16px; border:1px solid #414a49; background:#232b2d; }
.idle-city-details > summary { padding:8px 12px; font-size:11px; color:#b5bbb6; cursor:pointer; }
.idle-city-details > summary span { float:right; font:11px Consolas,monospace!important; color:#b5bbb6; }
body.idle-desk #idleAction .field-scene { border:0; padding:0; background:#30383a; box-shadow:none; }
body.idle-desk #idleAction .field-scene-heading,body.idle-desk #idleAction .field-scene-footer { display:none; }
body.idle-desk #idleAction #cityCanvas { height:192px; }
body.idle-desk #idleAction #cityBuilderPanel { display:block!important; }
body.idle-desk #idleAction .city-side { display:none!important; }
body.idle-desk #idleAction .city-shell { display:block; }
body.idle-desk #idleAction .city-overlay-left { display:none; }
body.idle-desk #idleAction .city-overlay-right { right:8px; top:8px; gap:3px; }
body.idle-desk #idleAction .city-round { width:24px; height:24px; min-height:24px; font-size:12px; }
body.idle-desk:not([data-zone="1"]) .idle-city-details,body.idle-desk[data-mode="build"] .idle-city-details { display:none; }
.idle-left-foot { text-align:center; margin:24px 16px; padding-top:16px; border-top:1px solid #414a49; color:#99a39d; }
.idle-left-foot span { display:block; font:11px Consolas,monospace!important; letter-spacing:0; }
.idle-left-foot strong { font:17px 'Segoe UI',system-ui,sans-serif!important; color:#b5bbb6; letter-spacing:0; }
/* The center uses real tabs, in one place, with one active workspace. */
body.idle-desk .game-container { display:flex; flex-direction:column; align-items:stretch; min-width:0; width:100%; max-width:none; margin:0; padding:0 20px 64px; background:#232b2d; }
#idleWorkspace { display:flex; flex-direction:column; min-width:0; width:100%; max-width:100%; }
body.pixel-app.idle-desk .logo-section h1 { display:flex; }
body.idle-desk .stage-tabs { order:-5; margin:0 -20px; padding:12px 16px 12px; background:#30383a; gap:4px; display:flex; flex-wrap:wrap; border-bottom:1px solid #414a49; }
body.idle-desk .stage-tab { min-height:32px; padding:4px 8px; font:11px 'Segoe UI',sans-serif; border:1px solid #646f6b; background:#30383a; color:#b5bbb6; }
body.idle-desk .stage-tab.active { color:#d4b17c; background:#414a49; border-color:#d4b17c; box-shadow:none; }
body.idle-desk .stage-tab.locked { opacity:.45; }
body.idle-desk .game-container > .game-mode-tabs { order:-4; position:sticky; inset:auto; top:64px; z-index:119; width:calc(100% + 40px); margin:0 -20px 20px; padding:12px 8px 0; display:flex; flex-direction:row; flex-wrap:nowrap; gap:3px; overflow-x:auto; overflow-y:hidden; background:#232b2d; border:0; border-bottom:3px solid #d4b17c; scrollbar-width:thin; }
body.idle-desk .game-mode-tabs::before { display:none; }
body.idle-desk .game-mode-tab { display:flex; flex-direction:column; flex:1 0 61px; gap:4px; align-items:center; justify-content:center; min-height:60px; padding:8px 8px; color:#b5bbb6; font-size:11px; white-space:nowrap; border:1px solid #646f6b; border-bottom:0; background:#232b2d; text-align:center; }
body.idle-desk .game-mode-tab .nav-icon { width:18px; height:20px; color:#99a39d; }
body.idle-desk .game-mode-tab .nav-icon svg { width:18px; height:20px; }
body.idle-desk .game-mode-tab.active { background:#232b2d; color:#232b2d; border-color:#d4b17c; box-shadow:none; }
body.idle-desk .game-mode-tab.active .nav-icon { color:#414a49; }
body.idle-desk .game-mode-tab .ready-badge { position:absolute; top:3px; right:3px; background:#d4b17c; color:#30383a; font-size:11px; }
body.idle-desk .settlement-heading { order:-3; padding:0 0 16px; margin-bottom:16px; border-bottom:1px solid #414a49; scroll-margin-top:140px; }
body.idle-desk .settlement-heading h2 { font-size:31px; line-height:1.15; color:#eee8dc; margin:4px 0 8px; }
body.idle-desk .settlement-heading .field-kicker { font:11px Consolas,monospace; color:#d4b17c; letter-spacing:0; }
body.idle-desk .settlement-heading p:not(.field-kicker) { font-size:12px; color:#99a39d; line-height:1.6; }
body.idle-desk .field-live { color:#b5bbb6; font-size:11px; margin-top:16px; }
body.idle-desk #cityServiceHud { order:-2; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; margin:0 0 16px; overflow:visible; }
body.idle-desk #cityServiceHud[hidden] { display:none; }
body.idle-desk .service-cell { padding:8px; min-height:52px; background:#30383a; border:1px solid #646f6b; flex:none; }
body.idle-desk .service-cell[role="button"]:hover { background:#414a49; border-color:#d4b17c; }
body.idle-desk .service-cell .service-icon { font-size:15px; width:19px; color:#b5bbb6; }
body.idle-desk .service-copy small { font-size:11px; color:#99a39d; }
body.idle-desk .service-copy strong { font-size:13px; color:#eee8dc; }
body.idle-desk .service-copy i { font-size:11px; color:#99a39d; }
body.idle-desk #settlementHub { display:block!important; }
body.idle-desk #settlementHub .settlement-main { display:none; }
body.idle-desk .settlement-rail { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
body.idle-desk #fieldObjectiveMount { grid-column:1/-1; }
body.idle-desk #fieldRenewalMount,body.idle-desk .field-path { grid-column:1/-1; }
body.idle-desk:not([data-mode="city"]) #settlementHub,body.idle-desk:not([data-zone="1"]) #settlementHub { display:none!important; }
body.idle-desk #fieldExpeditionObjective { margin:0 0 16px; }
body.idle-desk .milestone-panel { background:#232b2d; border:1px solid #d4b17c; border-top:3px solid #d4b17c; padding:16px; }
body.idle-desk .milestone-copy .eyebrow { color:#d4b17c; font-size:11px; }
body.idle-desk #milestoneTitle { font:500 22px/1.3 'Segoe UI',system-ui,sans-serif; color:#d4b17c; }
body.idle-desk #milestoneDetail { color:#b5bbb6; font-size:12px; }
body.idle-desk #milestoneAction { background:#232b2d; border:1px solid #414a49; color:#30383a; font-size:12px; }
body.idle-desk .milestone-progress { background:#414a49; }
body.idle-desk #milestoneBar { background:#d4b17c; }
body.idle-desk :is(.field-beacon,.field-path,.field-tutorial,.city-renewal) { background:#30383a; border-color:#646f6b; }
body.idle-desk .field-beacon { padding:16px; background:#232b2d; }
body.idle-desk .field-beacon h3,body.idle-desk .field-path h3 { font-size:20px; color:#eee8dc; }
body.idle-desk .field-beacon p { color:#b5bbb6; font-size:12px; }
body.idle-desk .field-beacon header { color:#d4b17c; font-size:11px; }
body.idle-desk .field-beacon button { background:#414a49; border:1px solid #99a39d; color:#d4b17c; font-size:12px; padding:8px; }
body.idle-desk .field-beacon small { font-size:11px; color:#99a39d; }
body.idle-desk .field-beacon-modules i { background:#414a49; }
body.idle-desk .field-beacon-modules .restored { background:#d4b17c; box-shadow:none; }
body.idle-desk #fieldSupplyMount .dispatch-card { background:#30383a; border-color:#646f6b; padding:16px; }
body.idle-desk #fieldSupplyMount .dispatch-card h2 { font-size:20px; color:#eee8dc; }
body.idle-desk #fieldSupplyMount .dispatch-card p { font-size:12px; color:#b5bbb6; }
body.idle-desk #fieldSupplyMount .dispatch-card button { background:#414a49; border:1px solid #414a49; color:#eee8dc; font-size:12px; }
body.idle-desk #fieldSupplyMount .dispatch-card small { color:#b5bbb6; font-size:11px; }
body.idle-desk .field-journey { grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; }
body.idle-desk .field-journey button { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:4px; padding:8px; border:1px solid #646f6b; background:#30383a; font-size:11px!important; color:#b5bbb6; }
body.idle-desk .field-journey button small { color:#99a39d; font-size:11px; }
body.idle-desk .field-journey button.current { border-color:#d4b17c; }
body.idle-desk #fieldConnections { grid-template-columns:1fr; gap:16px; margin-top:24px; padding-top:20px; border-color:#414a49; }
body.idle-desk #fieldConnections h3 { font-size:18px; }
body.idle-desk #fieldConnections p { font-size:12px; color:#b5bbb6; }
body.idle-desk #fieldConnections button { font-size:11px; color:#d4b17c; }
body.idle-desk #fieldConnections small { color:#99a39d; }
/* Permanent store: legible prices, owned counts, and explicit affordable batches. */
#idleStore { position:sticky; top:64px; height:calc(100dvh - 64px); overflow-y:auto; background:#232b2d; border-left:1px solid #414a49; scrollbar-width:thin; }
.idle-store-title { display:flex; align-items:center; justify-content:space-between; padding:20px 20px 16px; background:#232b2d; border-bottom:1px solid #646f6b; }
.idle-store-title p { margin:0 0 4px; color:#d4b17c; font:11px Consolas,monospace!important; letter-spacing:0; }
.idle-store-title h2 { margin:0; font:500 33px/1 'Segoe UI',system-ui,sans-serif!important; color:#d4b17c; }
.idle-store-title svg { width:42px; height:44px; color:#d4b17c; }
.idle-store-tabs { display:flex; padding:8px 12px 0; gap:4px; }
.idle-store-tabs button { flex:1; min-height:32px; font-size:11px; padding:4px; background:#414a49; border:1px solid #646f6b; color:#b5bbb6; }
.idle-store-tabs button[aria-pressed="true"] { background:#414a49; border-color:#d4b17c; color:#d4b17c; }
.idle-bulk { display:flex; margin:12px 12px 0; border:1px solid #646f6b; padding:8px; gap:4px; }
.idle-bulk legend { padding:0 4px; color:#b5bbb6; font:11px Consolas,monospace; letter-spacing:0; }
.idle-bulk button { flex:1; min-height:36px; background:#30383a; color:#b5bbb6; border:1px solid #646f6b; font:500 12px 'Segoe UI',sans-serif; }
.idle-bulk button[aria-pressed="true"] { color:#30383a; background:#d4b17c; border-color:#d4b17c; box-shadow:none; }
.idle-allowance { color:#99a39d; font-size:11px; margin:8px 16px 16px; line-height:1.5; }
.idle-store-row { display:grid; grid-template-columns:43px minmax(0,1fr) 37px; gap:12px; width:100%; padding:16px 12px; min-height:104px!important; text-align:left; border:0; border-top:1px solid #646f6b; border-bottom:2px solid #171c1e; border-left:4px solid #d4b17c; color:#eee8dc; background:#232b2d; }
.idle-store-row:hover:not(:disabled) { background:#232b2d; filter:none; }
.idle-store-row:disabled { opacity:.62; border-left-color:#646f6b; filter:saturate(.6); }
.idle-store-icon { display:grid; align-content:center; color:#d4b17c; }
.idle-store-icon svg { width:40px; height:40px; filter:none; }
.idle-store-copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
.idle-store-copy > strong { font:500 18px/1.1 'Segoe UI',system-ui,sans-serif!important; color:#eee8dc; }
.idle-store-copy > small { font-size:11px; color:#b5bbb6; line-height:1.4; }
.idle-store-cost { color:#d4b17c; font:500 12px/1.5 Consolas,monospace!important; font-variant-numeric:tabular-nums; }
.idle-store-owned { display:flex; flex-direction:column; justify-content:center; align-items:flex-end; gap:2px; color:#b5bbb6; }
.idle-store-owned b { font:500 28px/1 'Segoe UI',system-ui,sans-serif!important; color:#b5bbb6; font-variant-numeric:tabular-nums; }
.idle-store-owned small { font-size:11px; color:#b5bbb6; }
.idle-store-funding { height:2px; margin-top:4px; background:#646f6b; }
.idle-store-funding i { display:block; height:100%; background:#d4b17c; }
.idle-store-foot { padding:24px 20px 12px; color:#99a39d; }
.idle-store-foot span { font:17px 'Segoe UI',system-ui,sans-serif!important; color:#d4b17c; }
.idle-store-foot p { font-size:11px; line-height:1.7; color:#99a39d; }
#idleStoreAll { margin:4px 16px 20px; width:calc(100% - 30px); background:#414a49; border:1px solid #646f6b; color:#b5bbb6; font-size:12px; }
/* Every tab shares these paper, steel and copper materials. */
body.idle-desk :is(.building-card,.upgrade-card,.tech-card,.zone-card,.zone-console,.zone-console-card,.resource-card,.research-shell,.research-node,.combat-heading,.combat-card,.combat-shell,.pet-card,.egg-card,.companion-heading,.inventory-panel,.glyph-heading,.glyph-console,.glyph-research,.glyph-collection,.glyph-tier,.glyph-surface,.glyph-station,.glyph-research-card,.archive-heading,.story-index,.story-reader,.stats-hero,.stat-group,.contract-card,.infrastructure-grid > button,.preservation-card,.city-block) { background:#232b2d; border:1px solid #646f6b; box-shadow:none; }
body.idle-desk :is(.building-card,.upgrade-card,.tech-card,.pet-card,.egg-card,.stat-group,.glyph-tier) { padding:16px; }
body.idle-desk :is(.upgrade-card p,.building-card p,.tech-card p,.glyph-heading p,.companion-heading p,.research-heading p,.combat-heading p,.story-reader p) { color:#b5bbb6; font-size:12px; line-height:1.65; }
body.idle-desk :is(.buy-button,.buy-upgrade-button,.tech-card button,.zone-actions button,.glyph-roll-controls button,.hatch-button,.hatch-action,.research-node button,.egg-controls button) { background:#232b2d; border:1px solid #414a49; color:#eee8dc; font-size:12px; padding:8px 12px; }
body.idle-desk :is(.purchase-tabs,.glyph-family-index,.companion-tabs,.story-filters,.glyph-family-tabs) button { background:#414a49; border:1px solid #646f6b; color:#b5bbb6; font-size:11px; padding:8px 12px; }
body.idle-desk :is(.purchase-tabs,.glyph-family-index,.companion-tabs,.story-filters,.glyph-family-tabs) button[aria-pressed="true"] { background:#d4b17c; border-color:#d4b17c; color:#eee8dc; }
body.idle-desk .upgrade-hub { position:static; top:auto; padding:16px; background:#30383a; border-color:#646f6b; }
body.idle-desk :is(.building-panel,.upgrade-grid,.infrastructure-grid) { grid-template-columns:1fr!important; }
body.idle-desk .purchase-heading h2,body.idle-desk :is(.companion-heading,.glyph-heading,.research-heading,.combat-heading) h2 { font-size:27px; }
body.idle-desk .purchase-heading > span,body.idle-desk #purchaseHelp { font-size:11px; color:#b5bbb6; }
body.idle-desk :is(.resource-icon,.building-icon,.upgrade-icon) { background:#414a49; color:#d4b17c; }
body.idle-desk :is(.building-top h3,.upgrade-name) { font-size:19px; color:#eee8dc; }
body.idle-desk .building-stats { color:#b5bbb6; font-size:12px; }
body.idle-desk .building-stats strong { font-variant-numeric:tabular-nums; color:#d4b17c; font-size:14px; }
body.idle-desk .glyph-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
body.idle-desk .glyph-tier { gap:8px; }
body.idle-desk .glyph-tier.discovered { background:#414a49; border-color:var(--glyph-color); }
body.idle-desk .glyph-tier h4 { font-size:18px; }
body.idle-desk .glyph-tier :is(strong,span,small) { font-size:11px; }
body.idle-desk .glyph-family-tabs { display:flex; overflow-x:auto; }
body.idle-desk .glyph-family-tabs button { flex:0 0 145px; }
body.idle-desk .stage-panel .zone-scene { background:#232b2d; padding:20px; border:1px solid #99a39d; }
body.idle-desk :is(.zone-quest,.zone-workshop,.zone-actions button,.search-sites button,.assembly-piece,.guardian-shield,.relay-tower-card) { background-color:#414a49; border-color:#646f6b; color:#eee8dc; font-size:12px; }
body.idle-desk .zone-lore,body.idle-desk .zone-pet-summary,body.idle-desk .activity-tip { color:#b5bbb6; font-size:12px; }
body.idle-desk .pet-art { background-color:#414a49; }
body.idle-desk .city-tool { background:#414a49; border-color:#646f6b; color:#b5bbb6; }
body.idle-desk .city-tool.active { background:#d4b17c; color:#d4b17c; border-color:#d4b17c; }
body.idle-desk .city-block :is(button,.city-tray-entry) { background:#414a49; color:#b5bbb6; border-color:#646f6b; }
body.idle-desk #idlePlannerMount { display:none; }
body.idle-desk[data-mode="build"] #idlePlannerMount { display:block; }
body.idle-desk #idlePlannerMount .city-shell { display:flex; flex-direction:column; }
body.idle-desk #idlePlannerMount #cityBuilderPanel { display:block!important; }
body.idle-desk #idlePlannerMount #cityCanvas { height:380px; }
body.idle-desk #idlePlannerMount .city-side { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
body.idle-desk .city-tray-item { min-height:64px; flex-shrink:0; }
body.idle-desk .city-tray { max-height:332px; }
body.idle-desk dialog:not(.start-screen) { background:#30383a; color:#eee8dc; border:1px solid #414a49; box-shadow:none; }
body.idle-desk dialog::backdrop { background:#171c1e; }
body.idle-desk dialog :is(input,textarea,select) { background:#232b2d; border-color:#646f6b; color:#eee8dc; font-size:14px; }
body.idle-desk dialog :is(button,.secondary-button) { background:#414a49; border-color:#99a39d; color:#eee8dc; font-size:12px; }
body.idle-desk :is(.guide-section h3,.guide-title,.guide-heading h2) { color:#d4b17c; }
body.idle-desk .guide-section :is(p,li) { color:#b5bbb6; font-size:13px; line-height:1.75; }
body.idle-desk .save-status-row { position:static; order:10; background:none; border-top:1px solid #414a49; padding:16px 0; margin-top:24px; gap:8px; flex-wrap:wrap; justify-content:flex-start; }
body.idle-desk .save-status-row :is(.cloud-save-status,.auto-save-indicator) { font-size:11px; color:#99a39d; }
body.idle-desk .terminal-log-panel { display:none; }
body.idle-desk .terminal-receipt { display:none; }
body.idle-desk .notification { bottom:20px; right:20px; margin:0; padding:16px 20px; background:#414a49; border:1px solid #414a49; color:#eee8dc; font-size:13px; }
body.idle-desk .floating-gain { display:block; font:500 24px/1.3 'Segoe UI',system-ui,sans-serif; color:#d4b17c; text-shadow:none; z-index:220; animation:idleGain .76s cubic-bezier(.22,1,.36,1) both; }
body.idle-desk .interaction-ripple { display:block; }
body.idle-desk .floating-gain.critical-gain { color:#b5bbb6; font-size:33px; text-shadow:none; }
@keyframes idleGain { from { opacity:1; transform:translate(-50%,0); } to { opacity:0; transform:translate(-50%,-56px); } }
body.idle-desk .crt-overlay { opacity:.06; }
body.idle-desk #mobileGather { display:none!important; }
/* The title screen and secondary panels use the same new identity. */
body.idle-desk dialog.start-screen { background:#232b2d; }
body.idle-desk .start-brand { color:#b5bbb6; }
body.idle-desk .start-brand > p > span { color:#d4b17c; }
body.idle-desk .start-preview-badge { background:#30383a; border-color:#646f6b; color:#b5bbb6; }
body.idle-desk .start-copy h1 { font:500 clamp(65px,7vw,106px)/.95 'Segoe UI',system-ui,sans-serif; letter-spacing:0; color:#eee8dc; text-shadow:none; }
body.idle-desk .start-copy h1 > span { color:#d4b17c; font-family:'Segoe UI',system-ui,sans-serif; }
body.idle-desk .start-copy .start-tagline { color:#d4b17c; font-size:15px; }
body.idle-desk .start-copy #startDescription { color:#b5bbb6; font-size:13px; }
body.idle-desk .start-copy .start-save-summary { border-color:#646f6b; }
body.idle-desk .start-copy .start-save-summary strong { font-size:12px; color:#d4b17c; }
body.idle-desk .start-copy .start-save-summary span:not(.start-save-dot) { font-size:11px; color:#b5bbb6; }
body.idle-desk .start-screen .intro-start-button { color:#30383a; background:#232b2d; border:1px solid #414a49; font-size:15px; letter-spacing:0; }
body.idle-desk .field-start-art { background:#414a49; border:1px solid #414a49; box-shadow:none; transform:rotate(1deg); }
body.idle-desk .field-start-art > div { background:#30383a; color:#b5bbb6; }
body.idle-desk .field-start-art > div small { color:#b5bbb6; font-size:11px; }
body.idle-desk :is(.start-daily,.start-news,.start-inline-panel) { background:#30383a; border:1px solid #646f6b; }
body.idle-desk .start-news .news-ticker-track span { color:#b5bbb6; font-size:12px; }
body.idle-desk .start-daily strong { color:#d4b17c; }
body.idle-desk .start-daily small { color:#b5bbb6; font-size:11px; }
body.idle-desk .start-secondary button { font-size:11px!important; color:#b5bbb6!important; }
body.idle-desk .start-footer { border-color:#646f6b; color:#99a39d; font-size:11px; }
@media(min-width:1600px) { #idleDesk { grid-template-columns:minmax(310px,26%) minmax(0,1fr) minmax(340px,24%); } body.idle-desk .glyph-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:1150px) and (min-width:761px) {
    #idleDesk { grid-template-columns:245px minmax(0,1fr); }
    #idleStore { position:static; grid-column:2; height:auto; border-top:1px solid #414a49; }
    #idleAction { grid-row:1 / span 2; }
    body.idle-desk .game-container { padding-left:16px; padding-right:16px; }
    body.idle-desk .game-container > .game-mode-tabs { width:calc(100% + 32px); margin-left:-16px; margin-right:-16px; }
    body.idle-desk .stage-tabs { margin-left:-16px; margin-right:-16px; }
    #idleMobileStore { display:block; background:#414a49; border:1px solid #646f6b; color:#d4b17c; font-size:11px; padding:4px 12px; }
    #idleMobileStore svg { height:16px; width:16px; margin-right:4px; }
    #idleStoreRows { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .idle-edition span { display:none; }
}
@media(max-width:760px) {
    body.pixel-app.idle-desk { padding-top:152px; }
    body.idle-desk .top-header { height:56px; padding:0 12px; gap:12px; }
    body.idle-desk .logo-section h1,body.idle-desk .logo-section h1 span { font-size:20px; display:inline; }
    body.idle-desk .field-brand-mark svg { width:23px; height:28px; }
    .idle-edition { display:none; }
    body.idle-desk .header-buttons { gap:8px; }
    body.idle-desk .player-settings > summary { font-size:11px; padding:8px; }
    body.idle-desk #guideButton { font-size:11px; padding:8px; }
    body.idle-desk .settings-menu { top:60px; width:calc(100vw - 24px); left:12px; right:12px; max-height:calc(100dvh - 80px); }
    #idleDesk { display:flex; flex-direction:column; }
    #idleAction { width:100%; position:static; height:auto; overflow:visible; border-right:0; border-bottom:1px solid #414a49; }
    .idle-panel-heading,.idle-left-foot,.idle-city-details { display:none; }
    body.idle-desk .wallet-bar { position:fixed; top:56px; left:0; z-index:135; height:96px; padding:8px 16px; display:grid; grid-template-columns:minmax(0,1fr) 65px 85px; align-items:center; gap:8px; text-align:left; border-bottom:2px solid #646f6b; background:#30383a; }
    body.idle-desk .wallet-primary { align-items:flex-start; gap:0; }
    body.idle-desk .wallet-primary #walletBalance { font-size:35px; letter-spacing:0; }
    body.idle-desk .wallet-primary #walletRate { font-size:11px; }
    body.idle-desk .wallet-primary > span { font-size:11px; letter-spacing:0; }
    #idleNotation { position:absolute; bottom:4px; right:16px; margin:0; min-height:24px; font-size:11px!important; }
    body.idle-desk .wallet-secondary { padding:0; min-width:0; }
    body.idle-desk .wallet-secondary > strong { font-size:18px; }
    body.idle-desk .wallet-level { min-width:0; padding:0 0 12px 8px; }
    body.idle-desk .wallet-level .level-head { flex-direction:column; gap:0; }
    body.idle-desk .wallet-level .level-head strong { font-size:11px; }
    body.idle-desk .wallet-level small,body.idle-desk .field-wallet-population { display:none; }
    .idle-action-art { height:100px; background-position:center 61%; }
    body.idle-desk #idleGatherMount .city-panel { display:flex; flex-direction:row; padding:12px 16px; gap:16px; }
    body.idle-desk #idleGatherMount .energy-button { width:auto; flex:1; aspect-ratio:auto; height:72px; min-height:72px; border-radius:2px; grid-template-columns:40px 1fr; grid-template-rows:1fr 1fr; padding:12px 16px; column-gap:12px; row-gap:0; box-shadow:none; border:1px solid #414a49; font-size:12px; letter-spacing:0; }
    body.idle-desk #idleGatherMount .energy-button-icon { display:block; height:40px; font-size:34px; grid-row:1/span 2; align-self:center; }
    body.idle-desk #idleGatherMount .energy-button { border-radius:2px!important; }
    body.idle-desk #idleGatherMount .energy-button-icon svg { width:40px; height:40px; }
    body.idle-desk #idleGatherMount .energy-button small { font-size:18px; }
    body.idle-desk #idleGatherMount .combo-meter { width:105px; flex:0 0 105px; padding:0; }
    body.idle-desk #comboBonus { font-size:11px; }
    #idleHoldHint { font-size:11px; margin:2px 12px 12px; }
    body.idle-desk:not([data-mode="city"]) .idle-action-art,body.idle-desk:not([data-mode="city"]) #idleGatherMount,body.idle-desk:not([data-mode="city"]) #idleHoldHint { display:none; }
    body.idle-desk .game-container { padding:0 16px 36px; margin:0; }
    body.idle-desk .stage-tabs { margin:0 -12px; padding:8px 12px; }
    body.idle-desk .stage-tab { font-size:11px; padding:4px 8px; min-height:28px; }
    body.idle-desk .game-container > .game-mode-tabs { width:calc(100% + 28px); inset:auto; top:152px; position:sticky; margin:0 -12px 16px; padding:8px 8px 0; border-radius:0; background:#232b2d; }
    body.idle-desk .game-mode-tab { flex:0 0 70px; min-height:52px; padding:8px 8px; font-size:11px; }
    body.idle-desk .settlement-heading { scroll-margin-top:224px; }
    body.idle-desk .settlement-heading h2 { font-size:29px; }
    body.idle-desk .settlement-heading p:not(.field-kicker) { font-size:12px; }
    body.idle-desk #cityServiceHud { grid-template-columns:repeat(3,minmax(0,1fr)); }
    body.idle-desk .service-cell { min-width:0; padding:8px; min-height:48px; }
    body.idle-desk .service-copy i { display:none; }
    body.idle-desk .service-copy strong { font-size:12px; }
    body.idle-desk .settlement-rail { grid-template-columns:1fr; }
    body.idle-desk .field-journey button { padding:8px 4px; font-size:11px!important; }
    body.idle-desk .field-journey button small { font-size:11px; }
    body.idle-desk #idleStore { position:static; width:100%; height:auto; border-left:0; border-top:1px solid #414a49; padding-bottom:60px; scroll-margin-top:56px; }
    body.idle-desk .idle-store-row { grid-template-columns:50px minmax(0,1fr) 45px; padding:16px 20px; gap:12px; }
    #idleMobileStore { display:flex; align-items:center; gap:4px; background:#414a49; border:1px solid #646f6b; color:#d4b17c; padding:4px 8px; font-size:11px; }
    #idleMobileStore svg { width:15px; height:16px; }
    body.idle-desk #mobileGather:not([hidden]) { display:flex!important; position:fixed; bottom:16px; right:16px; width:auto; min-width:160px; min-height:44px; padding:12px 16px; background:#232b2d; border:1px solid #414a49; box-shadow:none; color:#30383a; font-size:12px; z-index:148; touch-action:none; }
    body.idle-desk.field-gather-visible #mobileGather { display:none!important; }
    body.idle-desk .notification { bottom:72px; font-size:12px; }
    body.idle-desk #idlePlannerMount #cityCanvas { height:300px; }
    body.idle-desk #idlePlannerMount .city-side { grid-template-columns:1fr; }
    body.idle-desk .glyph-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    body.idle-desk .start-copy h1 { font-size:67px; }
    body.idle-desk .field-start-art { transform:none; }
}
@media(max-width:390px) {
    body.idle-desk .logo-section { gap:4px; }
    body.idle-desk .logo-section h1,body.idle-desk .logo-section h1 span { font-size:17px; }
    body.idle-desk .top-header { gap:4px; padding:0 8px; }
    body.idle-desk #guideButton { display:block; font-size:0; min-width:28px; padding:4px; }
    body.idle-desk #guideButton::after { content:'?'; font-size:14px; }
    body.idle-desk #idleGatherMount .city-panel { padding:12px 12px; gap:8px; }
    body.idle-desk #idleGatherMount .energy-button { padding:8px; grid-template-columns:27px 1fr; column-gap:8px; font-size:11px; }
    body.idle-desk #idleGatherMount .energy-button-icon svg { width:29px; height:28px; }
    body.idle-desk #idleGatherMount .combo-meter { flex-basis:86px; width:86px; }
    body.idle-desk #cityServiceHud { grid-template-columns:repeat(2,minmax(0,1fr)); }
    body.idle-desk .glyph-grid { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) { body.idle-desk *,body.idle-desk *::before,body.idle-desk *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
/* Craft decisions: one neutral instrument ramp, amber for the active task,
   a single interface face plus tabular mono figures. Existing pixel art
   remains the detailed, colored content of the screen. */
body.pixel-app.idle-desk {
 --field-bg:#171c1e; --field-panel:#202628; --field-raised:#2a3233; --field-sunken:#151a1c;
 --field-line:#3c4544; --field-ink:#eee8dc; --field-muted:#b5bbb6;
 --field-gold:#d4b17c; --field-green:#b4c8ad; --field-teal:#b3c2b9;
 --bg:#171c1e; --bg-dark:#151a1c; --panel:#202628; --panel-light:#2a3233;
 --border:#3c4544; --text:#eee8dc; --muted:#b5bbb6;
 --x-bg:#202628; --x-bg-raised:#2a3233; --x-bg-sunken:#151a1c; --x-line:#3c4544;
 --x-text:#eee8dc; --x-text-dim:#b5bbb6; --x-text-faint:#99a39d; --x-accent:#d4b17c;
 --x-research:#b4c8ad; --x-good:#b4c8ad; --x-bad:#d2a18e;
 background:#171c1e; color:#eee8dc;
}
body.idle-desk,body.idle-desk :is(button,input,select,textarea,p,small,span,strong,b,summary,h1,h2,h3,h4) { font-family:'Segoe UI',system-ui,sans-serif; text-transform:none; font-style:normal; letter-spacing:0; }
body.idle-desk :is(h1,h2,h3,h4,strong,b) { font-weight:500; }
body.idle-desk :is(button,summary) { border-width:1px; border-style:solid; box-shadow:none; text-shadow:none; }
body.idle-desk .top-header { border-bottom:1px solid #3c4544; }
#idleAction { border-right:1px solid #3c4544; background:#1c2224; }
#idleStore { border-left:1px solid #3c4544; background:#1c2224; }
#idleAction,#idleStore { overflow-x:hidden; }
/* Purposeful UI motion; action handlers never wait for these effects. */
body.idle-desk .game-container > .game-mode-tabs { position:sticky; }
.ui-tab-indicator { position:absolute; left:0; bottom:0; width:1px; height:2px; background:#d4b17c; transform-origin:left center; pointer-events:none; display:none; }
.ui-motion-enabled .ui-tab-indicator { display:block; }
#fieldCityTier { display:inline-block; }
body.idle-desk.ui-motion-enabled .game-mode-tab.active { border-bottom-color:transparent; }
body.idle-desk .settings-menu,body.idle-desk .idle-store-row { transform-origin:top center; }
body.idle-desk.ui-motion-enabled .idle-store-row:hover:not(:disabled) .idle-store-icon { transform:translateY(-2px); }
body.idle-desk.ui-motion-enabled .idle-store-icon { transition:transform 160ms cubic-bezier(.22,1,.36,1); }
body.idle-desk.vfx-disabled :is(button,.idle-store-icon) { transition:none!important; }
@media(prefers-reduced-motion:reduce) { .ui-tab-indicator { display:none!important; } body.idle-desk.ui-motion-enabled .game-mode-tab.active { border-bottom-color:#d4b17c; } }
body.idle-desk .logo-section h1,body.idle-desk .logo-section h1 span { font-size:22px; font-weight:500; color:#eee8dc; }
body.idle-desk .header-buttons :is(button,summary) { font-size:12px; min-height:36px; }
.idle-edition,.idle-edition span { font:400 12px/16px 'Segoe UI',sans-serif!important; color:#99a39d; }
.idle-edition i { width:4px; height:4px; }
.idle-panel-heading { padding:20px 24px 8px; }
.idle-panel-heading span,.idle-panel-heading b { font-size:12px; color:#b5bbb6; }
body.idle-desk .wallet-bar { padding:16px 24px 24px; background:none; border:0; text-align:left; }
body.idle-desk .wallet-primary { align-items:flex-start; gap:4px; }
body.idle-desk .wallet-primary > span { font-size:12px; color:#b5bbb6; }
body.idle-desk .wallet-primary #walletBalance { font:500 clamp(36px,3.6vw,52px)/1.1 Consolas,'Cascadia Code',monospace; color:#eee8dc!important; letter-spacing:-.02em; }
body.idle-desk .wallet-primary #walletRate { font:400 14px/20px Consolas,monospace; color:#b4c8ad; }
body.idle-desk :is(.wallet-secondary > span,.wallet-level .level-head span,.field-wallet-population span,.wallet-level small) { font-size:11px; line-height:16px; }
body.idle-desk :is(.wallet-secondary > strong,.field-wallet-population strong) { font:500 20px/24px Consolas,monospace; }
body.idle-desk .wallet-level .level-head strong { font-size:12px; }
#idleNotation { min-height:28px; font:400 11px/16px Consolas,monospace!important; margin-top:4px; }
.idle-action-art { background:var(--idle-scene) center 61%/cover; margin:0 16px; height:144px; }
.idle-action-art-label { left:12px; bottom:8px; width:auto; justify-content:flex-start; padding:4px 8px; background:#171c1ed9; font-size:11px; color:#e0e4d7; }
.idle-action-art-label i { display:none; }
body.idle-desk #idleGatherMount .city-panel { padding:24px 24px 0; gap:16px; }
body.idle-desk #idleGatherMount .energy-button { width:192px; padding:24px; background:#dac7a2; border:1px solid #e5d5b3; color:#292d28; font-size:14px; font-weight:500; }
body.idle-desk #idleGatherMount .energy-button:hover { background:#e5d5b3; box-shadow:none; filter:none; }
body.idle-desk #idleGatherMount .energy-button-icon { height:48px; color:#454b3d; }
body.idle-desk #idleGatherMount .energy-button-icon svg { width:48px; height:48px; }
body.idle-desk #idleGatherMount .energy-button small { font:500 24px/28px Consolas,monospace; color:#292d28; }
body.idle-desk :is(.combo-copy,#comboBonus,#idleHoldHint) { font-size:11px; line-height:16px; color:#b5bbb6; }
body.idle-desk .game-mode-tab { background:none; border:0; border-bottom:2px solid transparent; min-height:60px; padding:12px 8px; font-size:12px; color:#b5bbb6; }
body.idle-desk .game-mode-tab.active { background:#2a3233; border:0; border-bottom:2px solid #d4b17c; color:#eee8dc; }
body.idle-desk .game-mode-tab .nav-icon,body.idle-desk .game-mode-tab .nav-icon svg { width:16px; height:16px; color:inherit; }
body.idle-desk .game-mode-tab .ready-badge { background:none; color:#d4b17c; padding:0; font:400 11px/16px Consolas,monospace; }
body.idle-desk .game-container > .game-mode-tabs { border-bottom:1px solid #414a49; gap:0; padding:4px 12px 0; scrollbar-width:none; }
body.idle-desk .game-mode-tabs::-webkit-scrollbar { display:none; }
body.idle-desk .city-block :is(p,small,li),body.idle-desk .inspect-note,body.idle-desk .job-benefit { font-size:12px; line-height:20px; }
body.idle-desk .stage-tab { font-size:12px; background:none; border-color:transparent; }
body.idle-desk .stage-tab.active { background:#2a3233; border:1px solid #646f6b; color:#eee8dc; }
body.idle-desk .settlement-heading { padding:4px 0 24px; margin-bottom:20px; }
body.idle-desk .settlement-heading h2 { font-size:30px; font-weight:500; }
body.idle-desk .settlement-heading .field-kicker { font-size:12px; color:#99a39d; }
body.idle-desk .settlement-heading p:not(.field-kicker) { font-size:14px; line-height:20px; color:#b5bbb6; }
body.idle-desk .field-live { font-size:11px; color:#b5bbb6; }
body.idle-desk .field-live i { display:none; }
body.idle-desk #cityServiceHud { margin-bottom:24px; gap:8px; }
body.idle-desk .service-cell { padding:12px; min-height:68px; border:1px solid #3c4544; }
body.idle-desk .service-cell .service-icon { display:none; }
body.idle-desk .service-copy small,body.idle-desk .service-copy i { font-size:11px; line-height:16px; color:#b5bbb6; }
body.idle-desk .service-copy strong { font:400 16px/20px Consolas,monospace; }
body.idle-desk :is(.milestone-panel,.field-beacon,.field-path),body.idle-desk #fieldSupplyMount .dispatch-card { padding:20px; }
body.idle-desk .milestone-panel { border:1px solid #555b50; border-left:2px solid #b59d77; }
body.idle-desk .milestone-copy .eyebrow { color:#b5bbb6; font-size:12px; }
body.idle-desk #milestoneTitle { font:500 22px/28px 'Segoe UI',sans-serif; }
body.idle-desk #milestoneDetail { font-size:13px; line-height:20px; color:#b5bbb6; }
body.idle-desk #milestoneAction { background:#30383a; border:1px solid #707b70; color:#eee8dc; font-size:13px; }
body.idle-desk .field-beacon h3,body.idle-desk .field-path h3,body.idle-desk #fieldSupplyMount .dispatch-card h2 { font-size:20px; line-height:28px; }
body.idle-desk .field-beacon p,body.idle-desk #fieldSupplyMount .dispatch-card p { font-size:13px; line-height:20px; }
body.idle-desk .field-beacon header,body.idle-desk #fieldSupplyMount .dispatch-topline { font-size:12px; }
body.idle-desk .field-beacon-modules .restored { background:#d4b17c; }
body.idle-desk .field-beacon button,body.idle-desk #fieldSupplyMount .dispatch-card button { background:#30383a; border:1px solid #59645e; color:#eee8dc; padding:12px; }
.idle-store-title { padding:24px 20px 16px; background:none; border-bottom:0; }
.idle-store-title p { font-size:12px; color:#99a39d; }
.idle-store-title h2 { font:500 28px/32px 'Segoe UI',sans-serif!important; }
.idle-store-title svg { display:none; }
.idle-store-tabs button[aria-pressed="true"],.idle-bulk button[aria-pressed="true"] { background:#30383a; border-color:#a8916e; color:#eee8dc; }
.idle-bulk button { font-weight:500; }
.idle-store-row { grid-template-columns:32px minmax(0,1fr) 40px; min-height:112px!important; padding:20px 16px; gap:12px; background:none; border:0; border-top:1px solid #3c4544; }
.idle-store-row:hover:not(:disabled) { background:#2a3233; }
.idle-store-row:disabled { opacity:.5; filter:none; }
.idle-store-row { border:0!important; border-top:1px solid #3c4544!important; }
body.idle-desk .wallet-level .level-head { flex-direction:column; align-items:flex-start; gap:0; }
body.idle-desk .wallet-level .level-head :is(span,strong) { white-space:nowrap; }
body.idle-desk .field-wallet-population > svg { display:none; }
.idle-store-icon svg { width:28px; height:28px; }
.idle-store-copy > strong { font:500 16px/20px 'Segoe UI',sans-serif!important; color:#eee8dc; }
.idle-store-copy > small,.idle-store-owned small,.idle-allowance { font-size:11px; line-height:16px; color:#b5bbb6; }
.idle-store-cost { font:400 13px/20px Consolas,monospace!important; color:#d4b17c; }
.idle-store-owned b { font:400 24px/28px Consolas,monospace!important; color:#c0c8bd; }
.idle-store-funding { display:none; }
.idle-store-foot span,.idle-store-foot p,.idle-left-foot strong { font:400 12px/20px 'Segoe UI',sans-serif!important; color:#99a39d; }
body.idle-desk .field-journey button small { font-size:11px; }
body.idle-desk .field-journey button { font-size:12px!important; }
body.idle-desk .stage-panel .zone-scene { background:linear-gradient(90deg,#171c1ef5,#171c1eb0 60%,#171c1e30),var(--world-art) right center/cover; }
body.idle-desk .field-start-art { transform:none; }
body.idle-desk .field-start-art::after { display:none; }
body.idle-desk .start-copy h1 { font:500 clamp(52px,6vw,80px)/1.06 'Segoe UI',sans-serif; letter-spacing:-.025em; }
body.idle-desk .start-copy h1 > span { font:inherit; }
body.idle-desk .start-screen .intro-start-button { background:#dac7a2; color:#292d28; border:1px solid #e5d5b3; }
body.idle-desk .start-preview-badge { padding:0; border:0; background:none; }
body.idle-desk .start-copy .start-save-summary strong { font-size:13px; }
body.idle-desk .start-secondary button,body.idle-desk .start-footer { font-size:12px!important; }
body.idle-desk .crt-overlay { display:none; }
body.idle-desk button { transition:background-color 160ms cubic-bezier(.22,1,.36,1),border-color 160ms cubic-bezier(.22,1,.36,1),transform 120ms cubic-bezier(.22,1,.36,1); }
body.idle-desk .floating-gain { font:500 24px/1.3 Consolas,monospace; text-shadow:0 1px 2px #101615; color:#e9d6af; }
body.idle-desk .floating-gain.critical-gain { font-size:28px; color:#e0cbe8; }
body.idle-desk .interaction-ripple { display:none; }
@media(max-width:760px) {
 body.idle-desk .top-header { height:56px; gap:8px; padding:0 12px; }
 .idle-action-art { height:112px; }
 body.pixel-app.idle-desk { padding-top:152px; }
 body.idle-desk .wallet-bar { top:56px; height:96px; padding:12px 16px; background:#202628; }
 body.idle-desk .wallet-primary #walletBalance { font-size:32px; }
 body.idle-desk .wallet-primary #walletRate { font-size:12px; }
 body.idle-desk .wallet-primary { gap:0; }
 #idleNotation { font-size:11px!important; min-height:24px; }
 body.idle-desk .game-container > .game-mode-tabs { top:152px; padding:4px 8px 0; }
 body.idle-desk .game-mode-tab { flex:0 0 88px; min-height:56px; padding:8px; font-size:12px; }
 body.idle-desk .logo-section h1,body.idle-desk .logo-section h1 span { font-size:18px; }
 body.idle-desk .header-buttons { gap:4px; }
 body.idle-desk .header-buttons :is(button,summary) { font-size:12px; padding:8px; }
 body.idle-desk #idleGatherMount .city-panel { flex-direction:row; padding:16px; gap:12px; }
 body.idle-desk #idleGatherMount .energy-button { width:auto; height:72px; min-height:72px; padding:12px; grid-template-columns:32px 1fr; font-size:13px; }
 body.idle-desk #idleGatherMount .energy-button-icon,body.idle-desk #idleGatherMount .energy-button-icon svg { width:32px; height:32px; }
 body.idle-desk #idleGatherMount .energy-button small { font-size:20px; }
 body.idle-desk #cityServiceHud { gap:8px; }
 body.idle-desk .service-cell { padding:8px; min-height:56px; }
 body.idle-desk .settlement-heading { scroll-margin-top:232px; }
 body.idle-desk .settlement-heading h2 { font-size:28px; }
 body.idle-desk .field-journey button { font-size:11px!important; }
 body.idle-desk .field-journey button small { font-size:11px; overflow-wrap:anywhere; }
 body.idle-desk #mobileGather:not([hidden]) { background:#dac7a2; border:1px solid #e5d5b3; color:#292d28; }
}
@media(max-width:390px) {
 body.idle-desk .header-buttons #guideButton { font-size:0; min-width:28px; padding:4px; }
 body.idle-desk .logo-section { gap:4px; }
 body.idle-desk .logo-section h1,body.idle-desk .logo-section h1 span { font-size:16px; }
 body.idle-desk .top-header { padding:0 8px; gap:4px; }
 body.idle-desk #idleGatherMount .energy-button { grid-template-columns:1fr; }
 body.idle-desk #idleGatherMount .energy-button-icon { display:none; }
}
