/* ===== RGB_FlightZone 2.0 • iPhone / Netlify ===== */
:root{--rgb20-safe-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:70px;-webkit-text-size-adjust:100%}
body{overflow-x:hidden;overscroll-behavior-y:contain}
.mobile-brand,.mobile-tabbar,.mobile-zone-import,.mobile-install-tip,.mobile-hide-filters{display:none}
button,input,select,textarea{touch-action:manipulation}
.mobile-zone-import{border:1px solid #1ac765;border-radius:8px;background:linear-gradient(110deg,#061e13,#10311d);padding:10px 12px;align-items:center;flex-wrap:wrap;gap:10px;margin:9px 0;color:#c5ffda}
.mobile-zone-import strong{font:12px 'Share Tech Mono',monospace;display:block;color:#67ff9e;margin-bottom:2px}
.mobile-zone-import small{display:block;font-size:11px;color:#b1d6bf;line-height:1.3}
.mobile-zone-import small.bad{color:#ffb582}.mobile-zone-import.loaded{border-color:#167c48}
.mobile-file-label{cursor:pointer;background:#19b766;color:#001d0c;border:1px solid #61ff9e;border-radius:6px;padding:10px;font:11px 'Share Tech Mono',monospace;white-space:nowrap;min-height:40px;display:grid;place-items:center}
#mobileDeleteSnapshot{border:1px solid #336a4b;background:#0d291a;color:#aad7bb;border-radius:6px;padding:10px;min-height:40px;font-size:11px}
@media(max-width:800px){
 html,body,.shell{width:100%;max-width:100%;min-width:0}
 body{padding-bottom:calc(75px + var(--rgb20-safe-bottom))}
 .mobile-brand{position:sticky;top:0;z-index:1300;display:flex;align-items:center;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top,0px)) 13px 9px;height:auto;min-height:56px;background:#020d09f5;border-bottom:1px solid #186a37;backdrop-filter:blur(16px);box-shadow:0 6px 22px #000b}
 .mobile-brand strong{font:700 18px 'Rajdhani',sans-serif;white-space:nowrap}.mobile-brand em{font-style:normal;color:#29f579}.mobile-brand-mark{font-size:24px;color:#28ff75;margin-right:5px}
 .mobile-brand-status{font:10px 'Share Tech Mono',monospace;letter-spacing:.5px;color:#72f5a6;white-space:nowrap}.mobile-brand-status i{display:inline-block;background:#24ff74;box-shadow:0 0 9px #24ff74;border-radius:50%;width:6px;height:6px;margin-right:5px}
 .shell{display:block;min-height:auto}.sidebar{display:none!important}
 .main{width:100%!important;min-width:0!important;max-width:100vw!important;padding:9px 9px 22px!important;overflow:clip}
 .main>*{min-width:0}
 .topbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:0 2px;margin:5px 0 8px}
 .topbar>div:first-child{flex:1 1 180px}.topbar h1{font-size:17px;line-height:1.15;margin:0}.topbar .eyebrow,.topbar p{display:none}.version{font-size:9px}
 .weather-badge{min-width:125px;max-width:180px;padding:6px 9px;gap:7px;border-radius:7px;margin-left:auto}
 .weather-badge .meteo-icon{font-size:18px}.weather-badge strong{font-size:11px}.weather-badge small{font-size:9px}.weather-badge button{padding:6px}
 .rgb-wire-banner{height:22px;max-height:22px;overflow:hidden;opacity:.75;border-radius:0;margin:3px 0 8px}
 .system-banner{display:flex;gap:4px;margin:0 0 8px;padding:6px 8px;font-size:9px}
 .system-banner span:first-child{display:none}.system-banner span:nth-child(2){font-size:9px}.system-banner b{font-size:9px}
 .mobile-zone-import{display:flex}
 .mobile-zone-import>div{flex:1 1 145px;min-width:130px}
 .quick-filter-dock{padding:8px 10px;margin-bottom:8px;position:relative!important;top:auto!important;max-width:100%;overflow:hidden;box-shadow:none}
 .quick-filter-heading{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:10px}
 .quick-filter-heading strong{font-size:11px}
 .quick-filter-heading span{font-size:9px;flex:1 1 100px}
 #jumpDetailedFilters{font-size:9px;padding:5px 6px}
 .quick-filter-controls{display:block}
 .quick-zone-list{display:flex;flex-wrap:nowrap!important;gap:6px;overflow-x:auto;padding:4px 1px 8px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
 .quick-zone-list>.filter-chip{flex:0 0 auto;white-space:nowrap;min-height:38px;padding:8px 10px}
 .quick-filter-check{display:flex;gap:14px;font-size:11px;align-items:center;flex-wrap:wrap}
 .quick-filter-check label{white-space:nowrap}
 .quick-filter-hint{display:none}
 .workspace{display:flex!important;flex-direction:column!important;gap:9px!important;min-width:0!important;align-items:stretch!important}
 .workspace>.map-column,.workspace>.right-column{display:contents!important}
 .workspace .mapcard{order:1;display:block;min-width:0;width:100%;overflow:hidden}
 .workspace .filters{order:2;display:none;min-width:0;width:100%}
 .workspace .filters.mobile-show{display:block}
 .workspace .planner{order:3;min-width:0;width:100%;padding:12px}
 .workspace .helper{order:4;min-width:0;width:100%;padding:12px}
 .workspace .weather-panel{order:5;min-width:0;width:100%;padding:12px}
 .workspace .zone-analysis{order:6;min-width:0;width:100%;padding:12px}
 .workspace .jur-card{order:7;min-width:0;width:100%;grid-area:auto!important;padding:12px;}
 .workspace .lower-grid{order:8;display:grid!important;grid-template-columns:1fr 1fr!important;min-width:0;width:100%;gap:8px}
 .workspace .saveactions{order:9;width:100%;min-width:0}
 .workspace .filters,.workspace .mapcard,.workspace .planner,.workspace .helper,.workspace .weather-panel,.workspace .zone-analysis{grid-area:auto!important}
 .map-actions{position:relative!important;top:auto!important;left:auto!important;right:auto!important;display:flex!important;flex-direction:column;gap:7px!important;padding:9px!important;background:#05170fee;pointer-events:auto!important;z-index:1!important}
 .map-search{max-width:none;width:100%;min-width:0;padding:4px 5px 4px 9px;min-height:41px}
 .map-search input{font-size:16px!important;padding:6px}
 .map-search button{min-height:34px}
 .map-tools{width:100%;justify-content:space-between!important;display:flex!important;flex-wrap:wrap!important;gap:5px!important}
 .map-tools button,.mapmode{min-height:38px!important;font-size:10px!important;padding:7px 8px!important}
 .basemap-switch{order:-2;display:flex;flex:1 1 100%;gap:4px}.basemap-switch button{flex:1}
 #locateMe{order:0}.map-tools #drawPolygon,.map-tools #drawCircle{order:2}
 #mobileLegendToggle{order:1}
 .map-frame{position:relative;display:block;min-width:0}
 #map{width:100%;height:clamp(340px,55svh,650px)!important;min-height:340px;touch-action:pan-x pan-y}
 .dflight-legend{display:none!important;position:relative!important;top:auto!important;left:auto!important;margin:0!important;max-width:none!important;width:100%!important;min-width:0!important;border-radius:0!important;box-shadow:none!important;padding:10px 12px!important}
 .dflight-legend.mobile-show{display:block!important}
 .legend-row{margin:4px 0!important}.legend-mini{font-size:10px}
 .leaflet-control-container .leaflet-top{top:10px}
 .leaflet-control-attribution{font-size:8px!important}
 .mapstatus{font-size:9px;gap:6px;padding:8px;flex-wrap:wrap}
 .mapstatus>span{flex:1 1 180px}
 .basemap-notice{font-size:9px;min-height:24px}
 .legend{gap:9px;line-height:1.4;font-size:9px}
 .legend-note{flex-basis:100%}
 .filter-split,.formgrid{grid-template-columns:minmax(0,1fr)!important}
 .field.full{grid-column:auto}.field input,.field select,.field textarea{min-height:44px;font-size:16px!important}
 select,input[type=date],input[type=time]{max-width:100%}
 .filter-chip{min-height:38px}.toggle-label{white-space:normal}
 .source-controls,.layer-row{gap:8px}
 .section-heading{flex-wrap:wrap;gap:7px}
 .tag{white-space:normal;max-width:100%;word-break:break-word}
 .flow-actions{flex-wrap:wrap;gap:7px}.flow-actions button{min-height:44px;min-width:0;flex:1 1 140px}
 .mobile-hide-filters{display:block;width:100%;background:#0d3823;color:#b0ffcc;border:1px solid #2e965d;border-radius:4px;padding:10px;margin-bottom:9px;font-size:11px}
 .weather-values{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .weather-values>div{min-width:0}
 .wx-days{grid-template-columns:repeat(4,minmax(0,1fr))}.wx-day{padding:6px 4px}
 .wx-day strong{font-size:10px}.wx-day small{font-size:9px}
 .wx-hours{scroll-snap-type:x mandatory}.wx-hour{scroll-snap-align:start}
 .wx-limits>div{flex-direction:row!important}
 .rgb-livewire{width:100%;min-width:0;margin:12px 0 8px;overflow:hidden}
 .wire-toolbar{flex-wrap:wrap;gap:9px}.wire-links{flex-wrap:wrap}.news-strip a{min-width:210px}
 .rgb-profile-dialog,.profile-dialog{max-width:calc(100vw - 24px)!important;width:calc(100vw - 24px)!important;max-height:calc(100svh - 35px)!important;overflow:auto!important;padding:13px!important;margin:auto!important}
 .rgb-profile-dialog input,.rgb-profile-dialog textarea{font-size:16px!important}
 .rgb-profile-dialog .profile-grid{grid-template-columns:1fr!important}
 .rgb-profile-dialog .flow-actions{flex-wrap:wrap}
 .mobile-install-tip{display:block;background:#081d13;border:1px solid #277d48;border-radius:7px;padding:12px;margin:12px 0}
 .mobile-install-tip b{color:#69ffab;font:12px 'Share Tech Mono',monospace}.mobile-install-tip p{font-size:11px;line-height:1.5;color:#b3d9c3;margin:6px 0}
 .mobile-install-tip button{color:#82ffb9;background:none;border:1px solid #236b43;padding:7px 10px;border-radius:4px}
 .mobile-tabbar{display:flex;position:fixed;z-index:1500;left:0;right:0;bottom:0;padding:6px 6px calc(5px + var(--rgb20-safe-bottom));height:calc(67px + var(--rgb20-safe-bottom));background:#020e0aee;border-top:1px solid #23874d;backdrop-filter:blur(16px);box-shadow:0 -8px 24px #000b;gap:3px}
 .mobile-tabbar button{background:none;color:#95bba4;border:1px solid transparent;flex:1;min-width:0;padding:4px 1px;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}
 .mobile-tabbar button.active{background:#0d3520;border-color:#25a861;color:#51ffa0}
 .mobile-tabbar span{font-size:20px;line-height:1.1}.mobile-tabbar small{font:10px 'Rajdhani',sans-serif}
 .profile-dialog::backdrop{background:#000c}
 .rgb-radar{transform:scale(.8)}
 footer{padding:8px 2px;color:#8bbca0;font-size:9px}
}
@media(max-width:375px){
 .mobile-brand strong{font-size:15px}
 .mobile-file-label{font-size:10px}
 .map-tools button{font-size:9px!important;padding:7px 6px!important}
 .quick-filter-heading #jumpDetailedFilters{width:100%}
 .weather-values{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .workspace .lower-grid{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){.mobile-tabbar{backdrop-filter:none}}
