/* ScoutTract mobile map-first + report UX + maintenance banner. Brand: navy #1F2A44, copper #B87333. */
.st-map-ctrls,.st-pin-card,.st-more-tab,.st-more-sheet{display:none}
/* ---------------------------------------------------------------- phones */
html:has(body.ga-mobile),body.ga-mobile{overflow-x:hidden;max-width:100vw}
body.ga-mobile .topbar{overflow:hidden;max-width:100vw;padding-left:calc(10px + env(safe-area-inset-left));padding-right:calc(10px + env(safe-area-inset-right))}
body.ga-mobile .topbar .top-actions{min-width:0;flex:0 1 auto}
body.ga-mobile #logout,body.ga-mobile .top-actions .top-link{display:none!important}  /* in the More sheet */
body.ga-mobile .topbar .brand{min-width:0;overflow:hidden}
/* old stacked controls overlapped and ran off the right edge: replaced by one labelled column */
body.ga-mobile.ga-explore #gaMobileMapHost .map-zoom,body.ga-mobile.ga-explore #gaMobileMapHost .ga-map-fab{display:none!important}
body.ga-mobile.ga-explore #gaMobileMapHost .st-map-ctrls{display:flex;flex-direction:column;gap:6px;position:absolute;z-index:7;
  right:calc(10px + env(safe-area-inset-right));bottom:calc(var(--ga-sheet-peek,92px) + 16px);max-height:calc(100% - var(--ga-sheet-peek,92px) - 70px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;box-sizing:border-box;scroll-padding:4px;padding:2px}
.st-ctrl{flex-shrink:0;width:52px;min-height:52px;padding:4px 0 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  background:#1F2A44f2;color:#fff;border:1px solid #B87333;border-radius:12px;box-shadow:0 2px 8px #0006;cursor:pointer;touch-action:manipulation}
.st-ctrl span{font-size:19px;line-height:22px}.st-ctrl small{font:600 10px/12px Inter,system-ui,sans-serif;letter-spacing:.01em;white-space:nowrap}
.st-ctrl:active{transform:scale(.96)}.st-ctrl:focus-visible{outline:3px solid #f3d48b;outline-offset:2px}
.st-ctrl.on{background:#1d4f8f}.st-ctrl.follow{background:#2f8cff;border-color:#fff}.st-ctrl[aria-pressed=true]#stCtrlMeasure{background:#B87333}
.st-ctrl.busy span{animation:st-spin 1s linear infinite}
@media (max-height:600px){body.ga-mobile.ga-explore #gaMobileMapHost .st-map-ctrls{flex-wrap:nowrap;flex-direction:column;gap:2px}.st-ctrl small{display:none}.st-ctrl{width:46px;min-height:46px}}
/* attribution collapsed into MapLibre's (i) button */
body.ga-mobile #gaMobileMapHost .maplibregl-ctrl-attrib.maplibregl-compact{min-height:28px;margin:0 calc(8px + env(safe-area-inset-right)) 8px 0;background:#ffffffd9}
body.ga-mobile #gaMobileMapHost .maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button{width:28px;height:28px}
body.ga-mobile #gaMobileMapHost .maplibregl-ctrl-attrib.maplibregl-compact-show{max-width:calc(100vw - 90px)}
body.ga-mobile #gaMobileMapHost .map-credit{display:none!important}
body.ga-mobile #gaMobileMapHost .maplibregl-ctrl-bottom-right{right:auto;left:0}
/* dropped pin card */
body.ga-mobile.ga-explore #gaMobileMapHost .st-pin-card:not(.hidden){display:block;position:absolute;z-index:8;left:calc(10px + env(safe-area-inset-left));right:calc(74px + env(safe-area-inset-right));
  top:calc(10px + env(safe-area-inset-top));background:#101f2ef7;color:#eaf1f6;border:1px solid #B87333;border-radius:12px;padding:10px 12px;box-shadow:0 4px 18px #0008}
.st-pin-head{display:flex;justify-content:space-between;align-items:center}.st-pin-coords{font:600 15px/1.4 ui-monospace,monospace;margin:4px 0;user-select:all}
.st-pin-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.st-pin-actions>*{min-height:44px;flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center}
.st-x{min-width:44px;min-height:44px;background:transparent;border:0;color:inherit;font-size:18px;cursor:pointer}
/* bottom nav: 4 primary tabs + More (no clipped labels) */
body.ga-mobile .rail{overflow-x:hidden!important;justify-content:space-around}
body.ga-mobile .rail>.rail-tab:not(.st-primary):not(.st-more-tab),body.ga-mobile .rail>.rail-link{display:none!important}
body.ga-mobile .rail>.rail-tab.st-primary,body.ga-mobile .rail>.st-more-tab{display:flex;flex:1 1 0;width:auto!important;min-width:0!important;max-width:96px;min-height:52px!important;flex-direction:column;align-items:center;justify-content:center}
body.ga-mobile .rail>.rail-tab small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
body.ga-mobile .st-more-sheet:not(.hidden){display:flex;position:fixed;inset:0;z-index:200;background:#0008;align-items:flex-end}
.st-more-inner{width:100%;background:#101f2e;border-top:2px solid #B87333;border-radius:16px 16px 0 0;padding:6px 12px calc(14px + env(safe-area-inset-bottom));max-height:80vh;overflow:auto}
.st-more-head{display:flex;justify-content:space-between;align-items:center;color:#eaf1f6}
.st-more-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px}
.st-more-item{min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#17293b;color:#eaf1f6;border:1px solid #263c50;border-radius:12px;cursor:pointer}
.st-more-item span{font-size:20px}.st-more-item small{font-size:11px}.st-more-item.active{border-color:#B87333;background:#1F2A44}
/* workspace panels on phones: no "Panel N / Collapse" bars or corner resize handles */
body.ga-mobile .ga-panel-manager,body.ga-mobile .ga-layout-bar,body.ga-mobile .ga-resize-help,body.ga-mobile .map-resize-handle{display:none!important}
body.ga-mobile .ga-managed-panel{resize:none!important;width:auto!important;height:auto!important;max-width:100%}
body.ga-mobile .ga-managed-panel.ga-panel-collapsed>:not(.ga-panel-manager){display:revert!important}
/* ------------------------------------------------------------ report UX */
.st-progress{margin-top:8px;border:1px solid #3b5c70;border-radius:10px;padding:10px;background:#0f2433;font-size:13px}
.st-progress.hidden{display:none}.st-progress.st-error{border-color:#e7969b;color:#f5c6c9}
.st-prog-head{display:flex;align-items:center;gap:8px}.st-elapsed{margin-left:auto;color:#93a9bc;font-variant-numeric:tabular-nums}
.st-spinner{width:18px;height:18px;border:3px solid #B8733355;border-top-color:#B87333;border-radius:50%;animation:st-spin .9s linear infinite;flex:none}
.st-steps{margin:8px 0 4px 18px;padding:0}.st-steps li{color:#7f98ab;margin:2px 0}.st-steps li.active{color:#fff;font-weight:600}.st-steps li.done{color:#8fd19e}.st-steps li.done::marker{content:'✓ '}
.st-report-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.st-report-actions .st-ok{flex-basis:100%;margin:0;color:#8fd19e;font-weight:700}
.st-report-actions>a,.st-report-actions>button{min-height:44px;flex:1 1 30%;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
button[aria-busy=true]{opacity:.75;cursor:progress}
.st-print-overlay{position:fixed;inset:0;z-index:300;background:#fff;display:flex;flex-direction:column}
.st-print-bar{display:flex;align-items:center;gap:8px;justify-content:space-between;background:#1F2A44;color:#fff;padding:calc(6px + env(safe-area-inset-top)) 10px 6px;border-bottom:2px solid #B87333}
.st-print-bar button{min-height:44px}.st-print-overlay iframe{flex:1;border:0;width:100%;background:#fff}
body.st-print-open{overflow:hidden}
@media print{body.st-print-open>*:not(.st-print-overlay){display:none!important}.st-print-bar{display:none!important}}
/* ----------------------------------------------------- Drone/ODM maintenance */
.st-maint-banner{display:flex;flex-direction:column;gap:4px;margin:12px;padding:14px 16px;border:2px solid #B87333;border-radius:12px;background:#B873331f;color:#f6dcc4}
.st-maint-banner b{font-size:17px;color:#ffd3a8}.st-maint-banner span{font-size:13px;color:#e6cdb6}
.st-maintenance .odm-workspace{opacity:.45;filter:grayscale(.7);pointer-events:none;user-select:none}
@keyframes st-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.st-spinner,.st-ctrl.busy span{animation:none}}
/* mobile accordion: summary already shows the panel title */
body.ga-mobile .ga-accordion > .ga-managed-panel > .card-title,
body.ga-mobile .ga-accordion > .ga-managed-panel > .ga-panel-manager + .card-title{display:none}
/* phones: the (i) attribution used to sit bottom-left, under the party toolbar's SOS button. Park it top-left,
   on the Zoom badge row, just right of the badge (the parcel-lines chip sits below the badge) (party toolbar, draw tools and scale bar stay bottom-left). */
body.ga-mobile #gaMobileMapHost .maplibregl-ctrl-bottom-right,body.ga-mobile.ga-explore #gaMobileMapHost .maplibregl-ctrl-bottom-right{top:58px;bottom:auto;right:auto;left:73px}
body.ga-mobile #gaMobileMapHost .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib.maplibregl-compact{margin:0 0 0 10px}
/* "Me" switch: keep my location on (LOCATION.md) */
.st-sw{display:inline-block;width:30px;height:16px;border-radius:9px;background:#5b6680;position:relative;margin:3px 0 2px;transition:background .15s}
.st-sw i{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;transition:left .15s}
[aria-checked=true] .st-sw{background:#2f8cff}[aria-checked=true] .st-sw i{left:16px}
.st-ctrl.st-ctrl-me.on{background:#1d4f8f;border-color:#8fc1ff}
.st-desk-loc button{width:auto!important;min-width:29px;display:flex;align-items:center;justify-content:center;gap:4px;padding:0 6px!important;font:600 11px/1 Inter,system-ui,sans-serif;color:#1F2A44}
.st-desk-loc button span{font-size:16px}.st-desk-loc #stDeskLocate.on{color:#2f8cff}.st-desk-loc #stDeskLocate.follow{background:#2f8cff;color:#fff}
.st-desk-loc .st-sw{margin:0}.st-desk-loc #stDeskLocate.busy span{animation:st-spin 1s linear infinite}
body.ga-mobile .st-desk-loc{display:none}
