/* Gameplay-only responsive shell. Editors do not load this stylesheet. */
.mobile-ui,.mobile-only{display:none}
@media (max-width:760px), (max-height:500px) and (pointer:coarse){
  :root{--mobile-nav-h:calc(62px + env(safe-area-inset-bottom,0px));--mobile-head:calc(48px + env(safe-area-inset-top,0px))}
  body.mobile-game{overflow:hidden;overscroll-behavior:none}
  .mobile-game .app{height:calc(var(--mobile-vh,100dvh) - var(--mobile-nav-h));grid-template-rows:var(--mobile-head) 42px minmax(0,1fr);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
  .mobile-game .shell,.mobile-game .battlefield,.mobile-game .battlefield.forces-open{grid-template-columns:minmax(0,1fr);min-width:0}
  .mobile-game .play-shell{grid-template-rows:minmax(0,1fr) 48px}
  .mobile-game .rail,.mobile-game .topbar>.top-separator,.mobile-game .topbar>[data-action=return-center],.mobile-game .topbar>[data-action=toggle-performance],.mobile-game .top-editor-entry,.mobile-game #research-glance,.mobile-game .top-meta,.mobile-game .brand-sub,.mobile-game .brand-name,.mobile-game .doctrine-name{display:none}
  .mobile-game .topbar{padding:env(safe-area-inset-top,0px) 8px 0;gap:8px;min-width:0;z-index:5}
  .mobile-game .brand{gap:5px;flex:none}.mobile-game .brand-mark{width:25px;height:25px;font-size:20px}.mobile-game .alpha{font-size:10px;white-space:nowrap}
  .mobile-game .country-button{display:flex;min-width:0;flex:1;max-width:none;padding:4px;font-size:13px}.mobile-game #country-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-game .country-button .flag{font-size:18px}
  .mobile-game .mobile-resources{font-size:12px;flex:none;padding:4px 8px}
  .mobile-game .resourcebar{display:flex;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;gap:0;padding:0 6px;scrollbar-width:none;min-height:0;height:42px}
  .mobile-game .resource{flex:0 0 auto;padding:2px 8px;border:0;min-width:85px;min-height:40px}.mobile-game .res-name{font-size:10px}.mobile-game .res-value{font-size:12px}.mobile-game .res-rate{display:none}.mobile-game .res-icon{font-size:16px}
  .mobile-game .footerbar{padding:0 8px;gap:8px;justify-content:space-between;position:relative;z-index:65;min-width:0}.mobile-game .footerbar .play{width:44px;height:44px;min-height:44px}
  .mobile-game .footerbar .speed-control,.mobile-game .footerbar .tempo-control,.mobile-game .footerbar .time-display-toggle,.mobile-game .footer-news,.mobile-game .save-indicator{display:none}
  .mobile-game .clock{margin:0;min-width:0}.mobile-game #clock{font-size:13px}.mobile-game #clock-note{font-size:10px;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-game.mobile-tempo-open .speed-control{display:flex;position:absolute;bottom:48px;left:0;right:0;background:#142731;padding:8px;justify-content:space-around;gap:4px;border-top:1px solid #607578;flex-wrap:wrap;z-index:120}
  .mobile-game.mobile-tempo-open .tempo-control{display:flex;position:absolute;bottom:110px;left:0;right:0;background:#142731;padding:8px;gap:8px;font-size:13px}
  .mobile-game.mobile-tempo-open .time-display-toggle{display:block;position:absolute;bottom:171px;right:8px;z-index:120}
  .mobile-game .mobile-ui{display:contents}.mobile-game .mobile-only{display:block}
  .mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;z-index:110;left:0;right:0;bottom:0;height:var(--mobile-nav-h);padding:4px env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);background:#10202a;border-top:1px solid #48616a;box-sizing:border-box}
  .mobile-nav button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;border:0;background:transparent;color:#b0c2ca;border-radius:8px;margin:0 3px;padding:3px;min-width:0;min-height:48px}.mobile-nav button>span{font-size:21px;line-height:23px}.mobile-nav small{font-size:11px}.mobile-nav .active{color:#edd19c;background:#294049;box-shadow:inset 0 2px #d1b171}
  .mobile-game button,.mobile-game summary{touch-action:manipulation;min-height:44px}.mobile-game button{font-size:13px}.mobile-game button.icon{min-width:44px;width:44px;height:44px}
  .mobile-game input:not([type=checkbox]):not([type=radio]),.mobile-game select,.mobile-game textarea{font-size:16px;min-height:44px;max-width:100%;min-width:0}.mobile-game :is(input[type=checkbox],input[type=radio]){min-width:22px;min-height:22px}.mobile-game label:has(input[type=checkbox]){min-height:44px;align-items:center}
  .mobile-game .map-top,.mobile-game .map-mode-strip,.mobile-game .map-hint,.mobile-game .map-legend,.mobile-game #map-tooltip{display:none!important}
  .mobile-game .pause-pill{top:8px;left:8px;transform:none;font-size:11px;pointer-events:none}
  .mobile-game .interaction-mode{top:8px;bottom:auto;right:8px;max-width:180px;padding:8px 12px;font-size:13px}
  .mobile-game .map-tools,.mobile-game .has-command-deck .map-tools{top:60px;bottom:auto;right:8px;gap:3px}
  .mobile-game .map-tools>.map-options>summary{width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;padding:0;font-size:22px}.mobile-game .map-options>summary span,.mobile-game .map-options>summary small{display:none}
  .mobile-game .map-tools>[data-action=fit-map]{display:none}.mobile-game .map-options-body{position:fixed;inset:calc(var(--mobile-top,0px) + var(--mobile-head)) 8px calc(var(--mobile-nav-h) + 8px);width:auto;max-width:none;max-height:calc(var(--mobile-vh,100dvh) - var(--mobile-head) - var(--mobile-nav-h) - 8px);overflow:auto;z-index:130;padding:12px;background:#122630}
  .mobile-game .map-options-body>.mobile-only{width:100%;margin-bottom:10px}.mobile-game .map-mode-menu{position:fixed!important;inset:auto 8px calc(var(--mobile-nav-h) + 60px)!important;width:auto!important;max-height:calc(var(--mobile-vh,100dvh) - var(--mobile-nav-h) - 120px);overflow:auto;z-index:130}
  .mobile-game .mobile-inspector-toggle{display:block;left:8px;right:auto;top:auto;bottom:8px;height:44px;min-height:44px;max-width:180px}.mobile-game[data-mobile-panel=site] .mobile-inspector-toggle,.mobile-game .has-command-deck .mobile-inspector-toggle{display:none}
  .mobile-game .inspector{display:none;position:fixed;left:8px;right:8px;bottom:calc(var(--mobile-nav-h) + 48px);top:auto;width:auto;height:55dvh;max-height:calc(var(--mobile-vh,100dvh) - var(--mobile-head) - var(--mobile-nav-h) - 52px);z-index:60;border:1px solid #647e85;border-radius:14px 14px 0 0;box-shadow:0 -12px 35px #0008;background:#11232d;transform:none}
  .mobile-game .inspector.mobile-open{display:flex;flex-direction:column}.mobile-game .inspector-header{padding:10px 12px;flex:none}.mobile-game .inspector-header h2{font-size:19px}.mobile-game .inspector-header .responsive-close{display:block}.mobile-game .inspector-tabs{flex:none}.mobile-game .inspector-content{flex:1;overflow:auto;min-height:0;padding:12px;overscroll-behavior:contain}.mobile-game .inspector-content p{font-size:13px}.mobile-game.mobile-sheet-expanded .inspector{height:calc(var(--mobile-vh,100dvh) - var(--mobile-head) - var(--mobile-nav-h) - 54px)}
  .mobile-game .forces-panel,.mobile-game .forces-detail-drawer,.mobile-game .forces-detail-drawer.forces-transport-window,.mobile-game .territory-manager{position:fixed;top:calc(var(--mobile-top,0px) + var(--mobile-head));bottom:calc(var(--mobile-nav-h) + 48px);left:8px;right:8px;width:auto;height:auto;max-width:none;max-height:calc(var(--mobile-vh,100dvh) - var(--mobile-head) - var(--mobile-nav-h) - 48px);z-index:70;border-radius:12px 12px 0 0;background:#11232d;box-shadow:0 -6px 28px #0008}
  .mobile-game .forces-detail-drawer{z-index:75}.mobile-game .forces-detail-tabs{flex-wrap:wrap;padding:7px}.mobile-game .forces-details{padding:12px}.mobile-game .forces-resize{display:none}.mobile-game .forces-roster{flex:1;min-height:0;overflow:auto}.mobile-game .forces-branches{overflow-x:auto}.mobile-game .force-row .force-main{min-width:0}.mobile-game .force-main strong{font-size:13px}
  .mobile-game .force-context-menu,.mobile-game .map-base-panel{position:fixed!important;inset:auto 8px calc(var(--mobile-nav-h) + 50px)!important;max-height:calc(var(--mobile-vh,100dvh) - var(--mobile-head) - var(--mobile-nav-h) - 58px);width:auto!important;max-width:none;overflow:auto;z-index:135}
  .mobile-game .command-deck.command-deck-compact{left:8px;right:8px;bottom:0;transform:none;width:auto;max-height:39%;overflow-y:auto;z-index:30;padding:0}.mobile-game .command-deck-compact .combat-values{display:none}.mobile-game .command-deck-heading{padding:6px 8px}.mobile-game .command-deck-heading strong{font-size:12px;min-width:0}.mobile-game .command-deck .quick-orders{display:flex;overflow-x:auto;flex-wrap:nowrap;gap:4px;padding:5px 8px}.mobile-game .command-deck .quick-orders>button{flex:0 0 auto;width:auto;min-height:48px;padding:6px 9px;display:flex;flex-direction:column;gap:3px}.mobile-game .command-deck .command-label{display:block;font-size:11px}.mobile-game .command-deck .more-orders{position:static;flex:none}.mobile-game .command-deck .more-orders>summary{min-height:48px;padding:10px}.mobile-game .command-deck .more-orders>div{position:fixed;inset:auto 8px calc(var(--mobile-nav-h) + 54px);width:auto;max-height:50dvh;overflow:auto;z-index:140;background:#18323e;padding:10px}.mobile-game .command-deck .more-orders button{min-height:44px}
  .mobile-game .mobile-selection-tools{display:none;position:absolute;left:8px;top:60px;z-index:31;max-width:calc(100% - 70px)}.mobile-game .has-command-deck .mobile-selection-tools{display:flex;flex-direction:column;align-items:start;gap:4px}.mobile-game .mobile-selection-tools button{font-size:11px;background:#18323ef0;padding:4px 8px}.mobile-game[data-mobile-panel=site] .mobile-selection-tools{display:none}
  .mobile-game .command-deck-body{padding:8px}.mobile-game .command-behavior{flex-wrap:wrap}.mobile-game .order-banner{position:absolute;top:58px;bottom:auto;left:8px;right:60px;transform:none;width:auto;flex-wrap:wrap;padding:8px;z-index:40;font-size:13px}.mobile-game .order-banner.visible~.mobile-selection-tools{display:none}
  .mobile-game .construction-planner{top:auto;bottom:0;left:8px;right:8px;width:auto;max-height:45%;overflow:auto;z-index:50}.mobile-game .construction-planner header{position:sticky;top:0;background:#142936;z-index:1}.mobile-game .construction-planner button{min-height:44px}
  .mobile-more{position:fixed;z-index:100;left:8px;right:8px;top:calc(var(--mobile-top,0px) + var(--mobile-head));bottom:calc(var(--mobile-nav-h) + 4px);max-height:calc(var(--mobile-vh,100dvh) - var(--mobile-head) - var(--mobile-nav-h) - 4px);overflow:auto;border:1px solid #5c727a;border-radius:12px;background:#112630;padding:12px;box-shadow:0 5px 40px #000b}.mobile-more header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.mobile-more header button{min-width:44px}.mobile-menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobile-menu-grid button{text-align:left;padding:12px;font-size:14px;background:#203c47;border-color:#45626a}.mobile-more p{font-size:13px;line-height:1.5;color:#b4c9cb}
  .mobile-order-confirm{position:fixed;z-index:140;left:8px;right:8px;bottom:calc(var(--mobile-nav-h) + 50px);background:#183341;border:1px solid #e4c68c;border-radius:12px;padding:14px;box-shadow:0 8px 40px #000b}.mobile-order-confirm>strong{font-size:15px}.mobile-order-confirm p{font-size:12px;margin:6px 0 12px}.mobile-order-confirm>div{display:flex;gap:8px}.mobile-order-confirm button{flex:1;min-height:48px}
  .mobile-game #modal[open]{position:fixed!important;inset:calc(var(--mobile-top,0px) + var(--mobile-head)) 8px calc(var(--mobile-nav-h) + 52px)!important;width:auto!important;height:auto!important;max-width:none;max-height:calc(var(--mobile-vh,100dvh) - var(--mobile-head) - var(--mobile-nav-h) - 52px);margin:0!important;display:flex;flex-direction:column;z-index:100;border-radius:12px;transform:none!important}
  .mobile-game #modal .dialog-head{flex:none;min-height:56px;padding:10px 12px;cursor:default;touch-action:pan-y}.mobile-game #modal h2{font-size:20px}.mobile-game #modal .dialog-body{flex:1;min-height:0;max-height:none!important;overflow:auto;padding:12px;overscroll-behavior:contain}.mobile-game .window-move{display:none}
  .mobile-game #modal.planning-picking{top:auto!important;max-height:38%;height:auto!important}.mobile-game #modal.planning-picking~.menu-shade{display:none}.mobile-game:has(#modal.planning-picking) #menu-shade{display:none}
  .mobile-game .research-workspace,.mobile-game .diplo-workspace,.mobile-game .operation-layout{grid-template-columns:minmax(0,1fr)}.mobile-game .research-tree-scroll{max-height:none;overflow:visible}.mobile-game .research-tree{width:auto!important;height:auto!important;display:grid;gap:8px}.mobile-game .research-links{display:none}.mobile-game .research-node{position:static;width:100%;height:auto;min-height:86px;font-size:13px}.mobile-game .research-node strong{font-size:14px}.mobile-game .research-node>small{font-size:12px}.mobile-game .research-detail.tech-card{position:static;scroll-margin-top:12px}.mobile-game .research-detail p,.mobile-game .research-detail button{font-size:13px}.mobile-game .research-workspace:has(.research-detail){display:flex;flex-direction:column}.mobile-game .research-workspace> *{width:100%}
  .mobile-game .diplo-country-list{max-height:35dvh}.mobile-game .diplo-detail{max-height:none}.mobile-game .diplo-detail p,.mobile-game .diplo-detail button,.mobile-game .diplomatic-offer p{font-size:13px}.mobile-game .diplo-resource-grid{grid-template-columns:1fr 1fr}.mobile-game .operation-history{position:static;width:auto;max-width:100%}.mobile-game .operation-history-body{max-height:none}.mobile-game .planning-dialog table{font-size:12px}
  .mobile-game .toast-stack{right:8px;left:8px;bottom:calc(var(--mobile-nav-h) + 55px);width:auto;pointer-events:none;z-index:160}.mobile-game .modal-toasts{position:static;max-height:25dvh;overflow:auto}.mobile-game .toast{font-size:13px;max-width:100%}
  .mobile-game .community-panel{inset:calc(var(--mobile-top,0px) + 8px) 8px auto;width:auto;height:calc(var(--mobile-vh,100dvh) - 16px);max-height:none}.mobile-game .community-body{flex:1;overflow:auto;min-height:0}
  /* Entry, account, cloud saves, lobby and hosting forms. Not editor pages. */
  body:not(.mobile-game) :is(button,.button,input,select){min-height:44px;touch-action:manipulation}body:not(.mobile-game) :is(input,select,textarea){font-size:16px;max-width:100%;min-width:0}
  .entry-header{padding:12px;gap:8px;flex-wrap:wrap}.entry-header .brand{font-size:14px}.entry-main{padding:18px 12px}.entry-grid,.entry-choice,.entry-choices,.form-grid{grid-template-columns:minmax(0,1fr)!important}.entry-card{min-width:0}.entry-card p{font-size:14px}
  body:not(.mobile-game) dialog{box-sizing:border-box;max-width:calc(100vw - 16px);width:calc(100vw - 16px);max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 16px);padding:18px;overflow:auto;overscroll-behavior:contain}#details>.close,#details>form{position:sticky;top:0;z-index:2}.close{min-width:44px}
  .center-header,.site-header{padding:12px;flex-wrap:wrap}.mode-grid{grid-template-columns:minmax(0,1fr)}a[data-capability="map.edit"],a[data-capability="scenario.edit"]{display:none}.welcome-access{min-width:0}.welcome h1{font-size:42px}.standalone{padding:16px;max-width:100%}#detail-content{overflow-wrap:anywhere;min-width:0}#detail-content pre{white-space:pre-wrap}#detail-content table{display:block;overflow:auto;max-width:100%}.game-card,.room-card,.operation-card{min-width:0;overflow-wrap:anywhere}
  .mobile-game #modal.research-dialog:not(.mobile-research-detail) .research-detail{display:none}
  .mobile-game #modal.mobile-research-detail .research-tree-scroll{display:none}
  .mobile-game #modal.diplomacy-dialog:not(.mobile-detail) .diplo-detail{display:none}
  .mobile-game #modal.mobile-detail .diplo-countries{display:none}
  .mobile-game #modal .diplo-country-list{max-height:none}
  .mobile-game [data-action=open-editor],.mobile-game .campaign-editor-entry{display:none}
  body:not(.mobile-game){padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
  body:not(.mobile-game) dialog[open]{position:fixed;inset:calc(var(--mobile-top,0px) + 8px) 0 auto;margin:0 auto;max-height:calc(var(--mobile-vh,100dvh) - 16px)}
  [hidden]{display:none!important}
}
@media (max-height:500px) and (pointer:coarse){
  .mobile-game .app{grid-template-rows:var(--mobile-head) minmax(0,1fr)}.mobile-game .resourcebar{display:none}.mobile-game .command-deck.command-deck-compact{max-height:55%;right:66px}.mobile-game .map-tools>.map-options{display:none}.mobile-game .mobile-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mobile-game .map-tools{top:8px!important}.mobile-game .interaction-mode{right:62px;top:8px}.mobile-game .mobile-selection-tools{top:8px;left:8px}.mobile-game .pause-pill{display:none}
}

/* 0.112: map-first HUD. Details are progressive, not permanently stacked. */
@media (max-width:760px), (max-height:500px) and (pointer:coarse){
  :root{--mobile-nav-h:calc(52px + env(safe-area-inset-bottom,0px));--mobile-head:calc(44px + env(safe-area-inset-top,0px))}
  /* Hidden resources leave only header + map in normal grid flow. */
  .mobile-game .app{grid-template-rows:var(--mobile-head) minmax(0,1fr)}
  .mobile-game .app>.shell{grid-row:2;min-height:0}
  .mobile-game .play-shell{grid-template-rows:minmax(0,1fr)}
  .mobile-game .topbar{gap:4px;padding-right:4px;padding-left:6px}
  .mobile-game .topbar>.brand,.mobile-game .resourcebar,.mobile-game .footerbar,.mobile-game .pause-pill,.mobile-game .interaction-mode{display:none}
  .mobile-game .country-button{font-size:12px;gap:5px;min-width:50px}.mobile-game .country-button .flag{font-size:17px}
  .mobile-game .mobile-hud{display:flex;align-items:center;gap:4px;flex:none;height:44px}
  .mobile-game .mobile-resources{min-width:46px;height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 4px;font-size:18px;border:0;background:transparent;gap:0}
  .mobile-game .mobile-resources small{font-size:10px;line-height:12px}.mobile-game .mobile-tempo{border:0;background:transparent;padding:2px 4px;min-width:84px;max-width:124px;height:44px}
  .mobile-game .mobile-hud .clock{display:block;text-align:center}.mobile-game .mobile-hud #clock{font-size:12px;white-space:nowrap;line-height:18px}.mobile-game .mobile-hud #clock-note{display:none}
  .mobile-game.mobile-reconnecting .mobile-hud #clock-note{display:block;color:#f0c784;font-size:10px;max-width:112px;overflow:hidden;text-overflow:ellipsis}
  .mobile-game .mobile-hud .play{flex:none;width:44px;height:44px;min-height:44px;padding:9px;border-radius:9px}
  .mobile-nav{padding-top:0}.mobile-nav button{margin:0 2px;padding:2px;min-height:48px;gap:0}.mobile-nav button>span{font-size:18px;line-height:20px}.mobile-nav small{font-size:10px}
  .mobile-game.mobile-tempo-open .footerbar{display:flex;position:fixed;left:8px;right:8px;bottom:calc(var(--mobile-nav-h) + 6px);z-index:145;flex-direction:column;align-items:stretch;background:#142731;padding:8px;border:1px solid #647e85;border-radius:12px;max-height:calc(var(--mobile-vh,100dvh) - var(--mobile-head) - var(--mobile-nav-h) - 12px);overflow:auto;box-shadow:0 8px 30px #0008}
  .mobile-game .mobile-tempo-heading{display:flex;align-items:center;justify-content:space-between}.mobile-game .mobile-tempo-heading button{width:44px}
  .mobile-game.mobile-tempo-open .time-control{display:block}.mobile-game.mobile-tempo-open .speed-control,.mobile-game.mobile-tempo-open .tempo-control,.mobile-game.mobile-tempo-open .time-display-toggle{display:flex;position:static;width:auto;border:0;padding:0;gap:4px;min-width:0;justify-content:space-between;align-items:center}
  .mobile-game.mobile-tempo-open .speed-control button{flex:1;padding:4px;min-width:38px}.mobile-game.mobile-tempo-open .tempo-control select{flex:1;max-width:65%}
  .mobile-game .mobile-map-toggle{position:absolute;right:8px;top:8px;width:44px;height:44px;z-index:42;background:#142b35ec;font-size:23px;border-radius:12px}
  .mobile-game .map-tools,.mobile-game .has-command-deck .map-tools{display:none;top:58px!important;right:8px;bottom:auto}
  .mobile-game.mobile-tools-open .map-tools{display:flex}.mobile-game .map-tools>.map-options{display:block}
  .mobile-game .map-options:has(.map-options-body) .map-options-body{bottom:calc(var(--mobile-nav-h) + 6px);max-height:calc(var(--mobile-vh,100dvh) - var(--mobile-head) - var(--mobile-nav-h) - 12px)}
  .mobile-game[data-mobile-panel=more] .mobile-map-toggle,.mobile-game[data-mobile-panel=modal] .mobile-map-toggle,.mobile-game[data-mobile-panel=army] .mobile-map-toggle,.mobile-game[data-mobile-panel=cities] .mobile-map-toggle{display:none}
  .mobile-game .inspector{bottom:calc(var(--mobile-nav-h) + 6px);height:auto;max-height:160px;border-radius:12px}
  .mobile-game:not(.mobile-sheet-expanded) .inspector>:not(.inspector-header):not(.inspector-tabs){display:none}
  .mobile-game:not(.mobile-sheet-expanded) .inspector-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px;padding:4px 8px}
  .mobile-game:not(.mobile-sheet-expanded) .inspector-header .between{grid-row:1;grid-column:2;gap:4px;display:flex}
  .mobile-game:not(.mobile-sheet-expanded) .inspector-header h2{grid-row:1;grid-column:1;font-size:16px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-game:not(.mobile-sheet-expanded) .inspector-header .eyebrow,.mobile-game:not(.mobile-sheet-expanded) .inspector-header>:not(.between):not(h2){display:none}
  .mobile-game .inspector-tabs{padding:0 5px 4px;gap:4px}.mobile-game .inspector-tabs button{padding:4px;flex:1;font-size:12px}
  .mobile-game.mobile-sheet-expanded .inspector{height:calc(var(--mobile-vh,100dvh) - var(--mobile-head) - var(--mobile-nav-h) - 12px);max-height:calc(var(--mobile-vh,100dvh) - var(--mobile-head) - var(--mobile-nav-h) - 12px)}
  .mobile-game.mobile-sheet-expanded .inspector-header{padding:5px 10px}.mobile-game.mobile-sheet-expanded .inspector-header h2{font-size:17px;margin:4px 0}
  .mobile-game .forces-panel,.mobile-game .forces-detail-drawer,.mobile-game .forces-detail-drawer.forces-transport-window,.mobile-game .territory-manager{bottom:calc(var(--mobile-nav-h) + 6px);max-height:calc(var(--mobile-vh,100dvh) - var(--mobile-head) - var(--mobile-nav-h) - 12px)}
  .mobile-game .command-deck.command-deck-compact{bottom:6px;right:8px;left:8px;width:auto;max-height:112px;border-radius:12px;overflow:hidden}
  .mobile-game .command-deck-heading{padding:0 6px;min-height:42px;gap:6px}.mobile-game .command-deck-heading strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;font-size:12px}.mobile-game .command-deck-heading strong>svg{display:none}
  .mobile-game .command-deck .quick-orders{padding:0 6px 6px;gap:4px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible}
  .mobile-game .command-deck .quick-orders>button{min-width:0;width:100%;height:44px;min-height:44px;padding:3px;gap:1px;font-size:13px}.mobile-game .command-deck .quick-orders>button svg{height:20px;width:20px}.mobile-game .command-deck .command-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .mobile-game:not(.mobile-commands-expanded) .command-deck>:not(.command-deck-heading):not(.quick-orders){display:none}
  .mobile-game:not(.mobile-commands-expanded) .quick-orders>:not([data-action=move]):not([data-action=attack]):not([data-action=halt]):not([data-mobile=commands]){display:none}
  .mobile-game .mobile-selection-tools{display:none!important;position:static;max-width:none;padding:6px;gap:6px}.mobile-game .mobile-selection-tools button{flex:1;min-width:0}
  .mobile-game.mobile-commands-expanded .command-deck{max-height:calc(var(--mobile-vh,100dvh) - var(--mobile-head) - var(--mobile-nav-h) - 12px);overflow:auto;background:#142b35}
  .mobile-game.mobile-commands-expanded .command-deck-heading{position:sticky;top:0;background:#142b35;z-index:2}
  .mobile-game.mobile-commands-expanded .mobile-selection-tools{display:flex!important;flex-direction:row;align-items:stretch}
  .mobile-game.mobile-commands-expanded .more-orders{grid-column:1 / -1}.mobile-game.mobile-commands-expanded .more-orders>div{position:static;width:auto;max-height:none;display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px}
  .mobile-game.mobile-commands-expanded .more-orders:not([open])>div{display:none}
  .mobile-game .command-deck .command-behavior{padding:6px}.mobile-game .command-deck .combat-values{display:none}
  .mobile-game[data-mobile-panel=site] .command-deck,.mobile-game[data-mobile-panel=army] .command-deck,.mobile-game[data-mobile-panel=cities] .command-deck,.mobile-game[data-mobile-panel=modal] .command-deck,.mobile-game[data-mobile-panel=more] .command-deck,.mobile-game.mobile-order-picking .command-deck{display:none}
  .mobile-game .order-banner{top:auto;bottom:6px;left:8px;right:8px;width:auto;max-width:none;padding:4px 8px;flex-wrap:nowrap;gap:6px;border-radius:10px;font-size:12px}.mobile-game .order-banner>span{flex:1}.mobile-game .order-banner button{flex:none}
  .mobile-game.mobile-target-pending .order-banner{visibility:hidden}.mobile-game .mobile-order-confirm{bottom:calc(var(--mobile-nav-h) + 6px);padding:8px 10px}.mobile-game .mobile-order-confirm>strong{font-size:13px}.mobile-game .mobile-order-confirm p{display:none}.mobile-game .mobile-order-confirm>div{margin-top:6px}.mobile-game .mobile-order-confirm button{min-height:44px}
  .mobile-game .mobile-more{top:auto;bottom:calc(var(--mobile-nav-h) + 6px);max-height:calc(var(--mobile-vh,100dvh) - var(--mobile-head) - var(--mobile-nav-h) - 12px);padding:8px;border-radius:14px}.mobile-more header{margin:0 0 4px;padding-left:4px}.mobile-more>p:not(.mobile-connection){display:none}.mobile-more .mobile-connection{margin:8px 4px 0;font-size:11px}
  .mobile-menu-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-bottom:8px}.mobile-menu-tabs button{border:0;background:#203742}.mobile-menu-tabs [aria-selected=true]{color:#edd19c;box-shadow:inset 0 -2px #d1b171;background:#294650}
  .mobile-game .mobile-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.mobile-game .mobile-menu-grid button{padding:8px;font-size:12px;min-height:48px}
  .mobile-game #modal[open]{bottom:calc(var(--mobile-nav-h) + 6px)!important;max-height:calc(var(--mobile-vh,100dvh) - var(--mobile-head) - var(--mobile-nav-h) - 12px)}
  .mobile-game #modal .dialog-head{padding:4px 8px;min-height:48px}.mobile-game #modal h2{font-size:17px}.mobile-game #modal .dialog-body{padding:8px}
  .mobile-game .research-node{min-height:64px}.mobile-game .research-node>small{font-size:11px}.mobile-game .research-node strong{font-size:13px}
  .mobile-game .toast-stack{bottom:calc(var(--mobile-nav-h) + 116px)}.mobile-game .toast-stack .toast{padding:8px;font-size:12px}
}
