.map-start-actions{position:absolute;z-index:1160;top:12px;left:56px;display:flex;gap:8px;max-width:calc(100% - 190px)}.map-start-actions button{min-height:44px;min-width:110px;padding:10px 14px;box-shadow:0 3px 12px #153f3326}.first-explore{top:68px;padding-right:56px;max-height:220px;overflow:auto}.first-explore-close{position:absolute;right:4px;top:4px;min-width:44px;min-height:44px;border:0;background:transparent;border-radius:8px;font-size:26px;color:#27483d;cursor:pointer}.first-explore[hidden]{display:none!important}.game-view[data-ui-panel=open] .first-explore{display:none}.toast{pointer-events:none}
@media(max-width:850px), (max-width:1100px) and (max-height:500px) and (orientation:landscape){
 .map-start-actions{top:auto;bottom:10px;left:10px;right:10px;max-width:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.map-start-actions button{width:100%;min-width:0;min-height:44px;white-space:normal;padding:9px 8px;font-size:12px}
 .first-explore{top:10px;left:54px;right:62px;max-width:none;max-height:min(160px,calc(100% - 80px));padding:10px 46px 10px 10px;overflow:auto}.first-explore p{font-size:11px;line-height:1.5}.first-explore strong{font-size:12px}.first-explore .button{width:100%;padding:8px;font-size:11px}.first-explore-close{right:0;top:0}
 .game-view[data-ui-panel=open] .sidebar .panel-back{display:block!important;position:sticky;top:0;z-index:6;flex:0 0 auto;min-height:44px;background:#173a3d;color:white}
 .game-view[data-ui-panel=open] .map-start-actions{visibility:hidden}.toast{bottom:64px;max-height:64px;font-size:11px;overflow:hidden}
}
@media(max-width:850px) and (max-height:540px), (max-width:1100px) and (max-height:500px) and (orientation:landscape){
 .game-view[data-ui-panel=open][data-section=scan]{--gz-header:calc(64px + var(--gz-safe-top));--gz-dock:0px}
 .game-view[data-ui-panel=open][data-section=scan] .command-bar{grid-template-rows:44px;padding-bottom:8px}
 .game-view[data-ui-panel=open][data-section=scan] .hud-resources,.game-view[data-ui-panel=open][data-section=scan] .command-dock,.game-view[data-ui-panel=open][data-section=scan] .sidebar .game-hero{display:none!important}
}

.target-filters{margin:12px 0 6px;padding:10px;border:1px solid #b4c6bd;border-radius:10px;background:#f4f8f5;scroll-margin-top:12px}
.target-filters summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:800;color:#254e3b}
.target-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.target-filter-grid label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px;font-weight:700}
.target-filter-grid input,.target-filter-grid select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #b4c6bd;border-radius:7px;padding:8px;background:white;color:#254e3b;font-size:16px}
.target-filter-actions{display:flex;flex-wrap:wrap;gap:8px}.target-filter-actions button{min-height:44px;flex:1}
.target-troops{font-weight:750;color:#254e3b}

/* Desktop only: keep TEST supplies away from loading, GEO/FC and first-exploration controls. */
@media(min-width:851px) and (min-height:501px), (min-width:1101px){
 .map-test-tools,.map-test-tools[open]{left:auto;right:76px;top:70px;width:230px;max-width:calc(100% - 160px);max-height:calc(100% - 86px);overflow:auto;box-sizing:border-box}
}
