
/* MIRAM Orbital Zones · all zones */
#zoneScreen.zo-active{position:relative;background:radial-gradient(1200px 500px at 70% -10%,rgba(38,214,188,.14),transparent 50%),linear-gradient(180deg,#04111f 0%,#071523 100%);border:1px solid #16344a;border-radius:24px;padding:18px 18px 24px 86px;color:#eaf6ff;box-shadow:0 24px 60px rgba(0,0,0,.28)}
#zoneScreen.zo-active .zone-header{position:relative;align-items:center;padding-bottom:18px;margin-bottom:10px;border-bottom:1px solid rgba(106,165,204,.15)}
#zoneScreen.zo-active .zone-header::after{content:'';position:absolute;inset:auto -18px -1px -18px;height:1px;background:linear-gradient(90deg,transparent,#33ffd066,transparent)}
#zoneScreen.zo-active .back-btn,#zoneScreen.zo-active .workspace-zone-actions button,#zoneScreen.zo-active .filter-btn,#zoneScreen.zo-active .filters-bar select,#zoneScreen.zo-active .filters-bar input,#zoneScreen.zo-active .zo-filter,#zoneScreen.zo-active .zo-mode-btn,#zoneScreen.zo-active .zo-chip,#zoneScreen.zo-active .zo-action,#zoneScreen.zo-active .zo-link,#zoneScreen.zo-active .zo-primary,#zoneScreen.zo-active .zo-item, #zoneScreen.zo-active .zo-rail-btn{transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease}
#zoneScreen.zo-active .back-btn:hover,#zoneScreen.zo-active .workspace-zone-actions button:hover,#zoneScreen.zo-active .filter-btn:hover,#zoneScreen.zo-active .zo-filter:hover,#zoneScreen.zo-active .zo-mode-btn:hover,#zoneScreen.zo-active .zo-chip:hover,#zoneScreen.zo-active .zo-action:hover,#zoneScreen.zo-active .zo-link:hover,#zoneScreen.zo-active .zo-primary:hover,#zoneScreen.zo-active .zo-item:hover,#zoneScreen.zo-active .zo-rail-btn:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.25)}
#zoneScreen.zo-active .back-btn,#zoneScreen.zo-active .workspace-zone-actions button{background:linear-gradient(180deg,#10263b,#0b1a2a)!important;color:#eff9ff!important;border:1px solid #28435d!important;border-radius:14px!important;padding:12px 18px!important}
#zoneScreen.zo-active .workspace-danger{border-color:#b53f55!important;color:#ff8ea3!important}
#zoneScreen.zo-active #zoneTitle{margin:0;font-size:30px;line-height:1.1;color:#f7fbff;letter-spacing:-.02em;text-shadow:0 0 22px rgba(51,255,208,.16)}
#zoneScreen.zo-active .zo-eyebrow{display:flex;align-items:center;gap:12px;margin-bottom:6px;color:#9ec4db;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
#zoneScreen.zo-active .zo-eyebrow::before{content:'';width:9px;height:9px;border-radius:50%;background:#3dffc7;box-shadow:0 0 14px #1affbf}
#zoneScreen.zo-active .zo-subtitle{margin:2px 0 12px;color:#b3cadb;font-size:15px}
#zoneScreen.zo-active .zo-rail{position:absolute;left:10px;top:14px;bottom:14px;width:56px;display:flex;flex-direction:column;align-items:center;gap:14px;padding:12px 8px;border-radius:18px;background:linear-gradient(180deg,rgba(8,29,47,.92),rgba(7,19,34,.9));border:1px solid #17364b;box-shadow:inset 0 0 0 1px rgba(101,184,255,.05)}
#zoneScreen.zo-active .zo-rail-logo{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;font-size:24px;font-weight:800;color:#6ae8ff;background:linear-gradient(135deg,#0e2030,#10273c)}
#zoneScreen.zo-active .zo-rail-btn{width:40px;height:40px;border:1px solid #244a67;background:#0f2234;color:#d5ebfb;border-radius:14px;display:grid;place-items:center;font-size:16px}
#zoneScreen.zo-active .zo-rail-btn.active{background:linear-gradient(180deg,#12384f,#10273c);color:#7effd9;border-color:#37d3bb;box-shadow:0 0 0 1px rgba(55,211,187,.3),0 0 20px rgba(55,211,187,.15)}
#zoneScreen.zo-active .zo-chips{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-left:auto}
#zoneScreen.zo-active .zo-chip{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:14px;border:1px solid #204059;background:#0d1f30;color:#eaf5fe;font-size:15px;font-weight:650}
#zoneScreen.zo-active .zo-chip .n{padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.08);font-size:14px}
#zoneScreen.zo-active .zo-chip.green{border-color:#11c191;color:#a9ffe6}
#zoneScreen.zo-active .zo-chip.yellow{border-color:#e0ad42;color:#ffe08e}
#zoneScreen.zo-active .zo-chip.gray{border-color:#4a6b84;color:#d5e6f3}
#zoneScreen.zo-active .zo-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0 16px}
#zoneScreen.zo-active .zo-stat{display:flex;align-items:center;gap:16px;min-height:88px;padding:18px 20px;border-radius:20px;border:1px solid #21445e;background:linear-gradient(145deg,rgba(12,31,48,.92),rgba(9,25,39,.96));position:relative;overflow:hidden}
#zoneScreen.zo-active .zo-stat::after{content:'';position:absolute;right:-30px;bottom:-36px;width:170px;height:100px;background:radial-gradient(circle at center,rgba(53,255,207,.2),transparent 68%)}
#zoneScreen.zo-active .zo-stat i{display:grid;place-items:center;width:50px;height:50px;border-radius:16px;border:1px solid rgba(255,255,255,.1);font-style:normal;font-size:24px;background:rgba(255,255,255,.04)}
#zoneScreen.zo-active .zo-stat small{display:block;color:#b7cddd;font-size:13px;margin-bottom:6px}
#zoneScreen.zo-active .zo-stat strong{font-size:42px;line-height:1;letter-spacing:-.03em}
#zoneScreen.zo-active .zo-stat b{font-size:16px;color:#dcebf7}
#zoneScreen.zo-active .filters-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;background:rgba(6,20,33,.78);border:1px solid #18364c;border-radius:18px;padding:12px 14px;margin:0 0 14px}
#zoneScreen.zo-active .filters-bar input,#zoneScreen.zo-active .filters-bar select,#zoneScreen.zo-active .zo-filter{background:#0b1827!important;border:1px solid #24445f!important;color:#edf7ff!important;border-radius:14px!important;min-height:46px;padding:10px 14px!important}
#zoneScreen.zo-active .filter-btn{min-height:46px;padding:10px 14px;border-radius:14px;border:1px solid #25415d;background:#102236;color:#d3e7f5}
#zoneScreen.zo-active .filter-btn.active{background:linear-gradient(180deg,#2982ff,#1168df);border-color:#4ba4ff;color:#fff;box-shadow:0 0 0 1px rgba(75,164,255,.2),0 10px 24px rgba(16,104,223,.24)}
#zoneScreen.zo-active .zo-shell{display:grid;gap:14px}
#zoneScreen.zo-active .zo-toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}
#zoneScreen.zo-active .zo-toolbar-left,#zoneScreen.zo-active .zo-toolbar-right{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
#zoneScreen.zo-active .zo-mode-btn{padding:11px 16px;border-radius:14px;border:1px solid #22435d;background:#102236;color:#dcedf8;font-weight:700}
#zoneScreen.zo-active .zo-mode-btn.active{background:linear-gradient(180deg,#10354a,#0d2538);border-color:#2ed9bc;color:#9bffe5;box-shadow:0 0 0 1px rgba(46,217,188,.24),0 0 22px rgba(46,217,188,.12)}
#zoneScreen.zo-active .zo-grid{display:grid;grid-template-columns:minmax(420px,.88fr) minmax(540px,1.12fr);gap:16px}
#zoneScreen.zo-active .zo-board{background:linear-gradient(180deg,rgba(10,25,39,.95),rgba(9,22,35,.97));border:1px solid #1d3f58;border-radius:24px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 20px 44px rgba(0,0,0,.22)}
#zoneScreen.zo-active .zo-board-header{display:flex;justify-content:space-between;align-items:center;padding:18px 18px 12px;color:#f0f8ff}
#zoneScreen.zo-active .zo-board-header strong{font-size:17px}
#zoneScreen.zo-active .zo-board-header span{font-size:13px;color:#a8c1d5}
#zoneScreen.zo-active .zo-list-head{display:grid;grid-template-columns:minmax(0,1fr) 82px 82px 110px;padding:0 18px 12px;color:#93b0c5;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
#zoneScreen.zo-active .zo-list{display:flex;flex-direction:column;gap:10px;max-height:min(70vh,760px);overflow:auto;padding:0 14px 14px}
#zoneScreen.zo-active .zo-item{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 82px 82px 110px;gap:10px;align-items:center;padding:14px;border-radius:18px;border:1px solid #274863;background:linear-gradient(180deg,#10263a,#0d2032);color:#edf8ff;text-align:left}
#zoneScreen.zo-active .zo-item.selected{border-color:#2fe7c2;box-shadow:0 0 0 1px rgba(47,231,194,.24),0 0 28px rgba(47,231,194,.12);background:linear-gradient(180deg,#113048,#0f2437)}
#zoneScreen.zo-active .zo-product{display:flex;gap:12px;align-items:center;min-width:0}
#zoneScreen.zo-active .zo-product img{width:58px;height:58px;border-radius:14px;background:#f8fbff;object-fit:contain;padding:4px;flex:0 0 auto}
#zoneScreen.zo-active .zo-product-text{min-width:0}
#zoneScreen.zo-active .zo-product-text strong{display:block;font-size:14px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#zoneScreen.zo-active .zo-product-text small{display:block;color:#49b9ff;font-size:12px;overflow-wrap:anywhere;margin-top:5px}
#zoneScreen.zo-active .zo-q,#zoneScreen.zo-active .zo-w,#zoneScreen.zo-active .zo-p{font-size:14px;text-align:center}
#zoneScreen.zo-active .zo-p{color:#bfd3e2;font-size:13px;overflow-wrap:anywhere}
#zoneScreen.zo-active .zo-detail-top{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:18px;align-items:start;padding:20px 20px 10px}
#zoneScreen.zo-active .zo-photo-box{width:120px;height:132px;border-radius:18px;display:grid;place-items:center;background:#f7fbff;border:1px solid #2a4b63;overflow:hidden;padding:8px}
#zoneScreen.zo-active .zo-photo-box img{width:100%;height:100%;object-fit:contain}
#zoneScreen.zo-active .zo-title-wrap h3{margin:0 0 12px;font-size:20px;line-height:1.34;color:#f6fbff;overflow-wrap:anywhere}
#zoneScreen.zo-active .zo-track{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;border:1px solid #2f5574;background:#133149;color:#53c2ff;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px}
#zoneScreen.zo-active .zo-detail-metrics{display:flex;gap:10px}
#zoneScreen.zo-active .zo-mini{min-width:106px;padding:14px 16px;border-radius:18px;border:1px solid #22455f;background:#0d1e2e;text-align:left}
#zoneScreen.zo-active .zo-mini small{display:block;color:#a6c1d4;font-size:12px;margin-bottom:8px}
#zoneScreen.zo-active .zo-mini strong{font-size:34px;line-height:1.05;color:#f6fcff}
#zoneScreen.zo-active .zo-mini b{font-size:22px;color:#f6fcff}
#zoneScreen.zo-active .zo-details{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);gap:12px;padding:0 20px 16px}
#zoneScreen.zo-active .zo-col{border-radius:18px;border:1px solid #22445e;background:#0a2030;overflow:hidden}
#zoneScreen.zo-active .zo-field{display:grid;grid-template-columns:minmax(120px,38%) minmax(0,1fr);gap:10px;align-items:start;padding:11px 14px;border-bottom:1px solid rgba(74,120,150,.28);font-size:14px}
#zoneScreen.zo-active .zo-field:last-child{border-bottom:0}
#zoneScreen.zo-active .zo-label{color:#a9c4d6;font-size:12px;font-weight:700;text-transform:none}
#zoneScreen.zo-active .zo-value{color:#f2faff;min-width:0;overflow-wrap:anywhere;line-height:1.45}
#zoneScreen.zo-active .zo-value.long{white-space:pre-wrap;max-height:120px;overflow:auto}
#zoneScreen.zo-active .zo-pill{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:999px;border:1px solid #1eca93;background:#0a4835;color:#9dffde;font-size:12px;font-weight:800;letter-spacing:.01em}
#zoneScreen.zo-active .zo-pill.yellow{border-color:#d2a441;background:#3b2b11;color:#ffe08c}
#zoneScreen.zo-active .zo-pill.gray{border-color:#45637c;background:#1a3043;color:#cde1f0}
#zoneScreen.zo-active .zo-field-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#zoneScreen.zo-active .zo-link,#zoneScreen.zo-active .zo-action,#zoneScreen.zo-active .zo-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:10px 14px;border-radius:12px;border:1px solid #2a4c66;background:#123149;color:#d9efff;text-decoration:none;font-size:13px;font-weight:700}
#zoneScreen.zo-active .zo-primary{background:linear-gradient(180deg,#108eff,#0f6ede);border-color:#47a7ff;color:#fff}
#zoneScreen.zo-active .zo-detail-actions{padding:0 20px 20px;display:flex;flex-direction:column;gap:12px}
#zoneScreen.zo-active .zo-action-group{display:flex;gap:10px;flex-wrap:wrap}
#zoneScreen.zo-active .zo-empty{padding:28px;color:#b9cedd;line-height:1.65}
#zoneScreen.zo-active #zoLegacyTable{display:none}
#zoneScreen.zo-active.zo-legacy #zoLegacyTable{display:block;overflow:auto}
#zoneScreen.zo-active.zo-legacy .zo-shell-main{display:none}
#zoneScreen:not(.zo-active) .zo-eyebrow,#zoneScreen:not(.zo-active) .zo-subtitle,#zoneScreen:not(.zo-active) .zo-stats,#zoneScreen:not(.zo-active) .zo-shell,#zoneScreen:not(.zo-active) .zo-rail{display:none!important}
@media(max-width:1280px){#zoneScreen.zo-active{padding-left:18px}#zoneScreen.zo-active .zo-rail{display:none}#zoneScreen.zo-active .zo-grid{grid-template-columns:minmax(360px,.9fr) minmax(420px,1.1fr)}#zoneScreen.zo-active .zo-detail-top{grid-template-columns:100px minmax(0,1fr)}#zoneScreen.zo-active .zo-detail-metrics{grid-column:1/-1}}
@media(max-width:960px){#zoneScreen.zo-active .zo-grid{grid-template-columns:1fr}#zoneScreen.zo-active .zo-list{max-height:300px}#zoneScreen.zo-active .zo-detail-top{grid-template-columns:96px minmax(0,1fr)}#zoneScreen.zo-active .zo-detail-metrics{grid-column:1/-1}#zoneScreen.zo-active .zo-details{grid-template-columns:1fr}}
@media(max-width:640px){#zoneScreen.zo-active{padding:14px;border-radius:18px}#zoneScreen.zo-active #zoneTitle{font-size:24px}#zoneScreen.zo-active .zo-stats{grid-template-columns:1fr;gap:10px}#zoneScreen.zo-active .zo-list-head,#zoneScreen.zo-active .zo-item{grid-template-columns:minmax(0,1fr) 62px 62px}#zoneScreen.zo-active .zo-list-head span:last-child,#zoneScreen.zo-active .zo-p{display:none}#zoneScreen.zo-active .zo-detail-top{grid-template-columns:88px minmax(0,1fr);gap:12px;padding:16px}#zoneScreen.zo-active .zo-photo-box{width:88px;height:100px}#zoneScreen.zo-active .zo-mini{min-width:92px;padding:12px}#zoneScreen.zo-active .zo-mini strong{font-size:28px}#zoneScreen.zo-active .zo-details{padding:0 16px 14px}#zoneScreen.zo-active .zo-detail-actions{padding:0 16px 16px}#zoneScreen.zo-active .zo-field{grid-template-columns:minmax(96px,34%) minmax(0,1fr)}#zoneScreen.zo-active .filters-bar{padding:10px}#zoneScreen.zo-active .zo-chip{font-size:14px}}
@media(prefers-reduced-motion:reduce){#zoneScreen.zo-active *{transition:none!important;animation:none!important;transform:none!important}}


/* MIRAM / Mobile Orbital v2: readable rows + modal details; no horizontal page scrolling */
#zoneScreen.zo-active,
#zoneScreen.zo-active .zo-shell,
#zoneScreen.zo-active .zo-grid,
#zoneScreen.zo-active .zo-board{box-sizing:border-box;min-width:0;max-width:100%}
#zoneScreen.zo-active .zo-toggle{display:inline-flex;align-items:center;gap:9px;min-height:30px;color:#e6f6ff;cursor:pointer}
#zoneScreen.zo-active .zo-toggle input{position:absolute;opacity:0;width:1px;height:1px}
#zoneScreen.zo-active .zo-toggle-slider{width:42px;height:24px;background:#678299;border-radius:30px;position:relative;display:inline-block;transition:background .2s}
#zoneScreen.zo-active .zo-toggle-slider:after{content:'';position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:white;box-shadow:0 1px 5px #0005;transition:transform .2s}
#zoneScreen.zo-active .zo-toggle input:checked + .zo-toggle-slider{background:#05ba87}
#zoneScreen.zo-active .zo-toggle input:checked + .zo-toggle-slider:after{transform:translateX(18px)}
#zoneScreen.zo-active .zo-toggle input:focus-visible + .zo-toggle-slider{outline:2px solid #67e6ff;outline-offset:3px}
#zoneScreen.zo-active .zo-photo-box{cursor:zoom-in}
#zoneScreen.zo-active .zo-item:focus-visible{outline:2px solid #66e6ff;outline-offset:2px}
@media(max-width:820px){
 #zoneScreen.zo-active{width:100%;padding:12px 11px 22px!important;border-radius:17px;overflow-x:clip}
 #zoneScreen.zo-active .zone-header{gap:8px;padding-bottom:12px;margin-bottom:10px}
 #zoneScreen.zo-active #zoneTitle{font-size:clamp(19px,5.5vw,25px)!important;min-width:0;flex:1 1 100%}
 #zoneScreen.zo-active .zone-header .back-btn{font-size:13px!important;padding:9px 12px!important;min-height:39px}
 #zoneScreen.zo-active .workspace-zone-actions{width:100%}
 #zoneScreen.zo-active .workspace-zone-actions button{min-height:38px;padding:8px 10px!important;font-size:12px}
 #zoneScreen.zo-active .zo-eyebrow{flex-direction:column;align-items:flex-start;gap:9px;font-size:10px;letter-spacing:.07em}
 #zoneScreen.zo-active .zo-eyebrow:before{display:none}
 #zoneScreen.zo-active .zo-chips{width:100%;margin:0;display:flex;gap:7px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding:3px 1px 6px}
 #zoneScreen.zo-active .zo-chips::-webkit-scrollbar{display:none}
 #zoneScreen.zo-active .zo-chip{flex:0 0 auto;min-height:39px;font-size:12px;padding:7px 10px;gap:5px}
 #zoneScreen.zo-active .zo-subtitle{font-size:12px;line-height:1.45;margin:7px 0 10px}
 #zoneScreen.zo-active .zo-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px;margin:11px 0}
 #zoneScreen.zo-active .zo-stat{min-width:0;display:flex;flex-direction:column;align-items:flex-start;min-height:80px;padding:10px;gap:6px;border-radius:13px}
 #zoneScreen.zo-active .zo-stat i{width:24px;height:24px;font-size:16px;border-radius:8px;flex:0 0 auto}
 #zoneScreen.zo-active .zo-stat small{font-size:10px;line-height:1.23;min-height:24px;margin-bottom:4px;white-space:normal}
 #zoneScreen.zo-active .zo-stat strong{font-size:clamp(17px,5.5vw,25px)}
 #zoneScreen.zo-active .zo-stat b{font-size:10px}
 #zoneScreen.zo-active .filters-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:10px}
 #zoneScreen.zo-active .filters-bar input#zoneSearch{grid-column:1/-1;flex:none!important;width:100%;box-sizing:border-box;min-width:0;min-height:44px;font-size:14px!important}
 #zoneScreen.zo-active .filters-bar #zoneSort{grid-column:1/-1;width:100%;box-sizing:border-box;min-width:0;min-height:43px;font-size:12px}
 #zoneScreen.zo-active .filters-bar .filter-btn{min-width:0;min-height:39px;font-size:11px;padding:7px 3px}
 #zoneScreen.zo-active .filters-bar>span{grid-column:1/-1;margin:0!important;font-size:12px;color:#b9d5e7}
 #zoneScreen.zo-active .zo-shell{display:block;margin-top:8px}
 #zoneScreen.zo-active .zo-toolbar{display:flex;flex-direction:column;gap:10px;align-items:stretch;margin:0 0 12px}
 #zoneScreen.zo-active .zo-toolbar-left{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%}
 #zoneScreen.zo-active .zo-toolbar .zo-filter{width:100%;max-width:none!important;min-width:0;min-height:40px;font-size:12px;padding:8px 7px!important}
 #zoneScreen.zo-active .zo-toolbar-right{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
 #zoneScreen.zo-active .zo-mode-btn{min-width:0;min-height:44px;padding:9px 8px;font-size:13px}
 #zoneScreen.zo-active .zo-grid{display:block!important;width:100%;min-width:0}
 #zoneScreen.zo-active .zo-board{width:100%;min-width:0;border-radius:18px;overflow:hidden}
 #zoneScreen.zo-active .zo-board-header{padding:15px 14px 11px;gap:9px}
 #zoneScreen.zo-active .zo-board-header strong{font-size:16px;line-height:1.3}
 #zoneScreen.zo-active .zo-board-header span{font-size:12px;white-space:nowrap}
 #zoneScreen.zo-active .zo-list-head{display:none!important}
 #zoneScreen.zo-active .zo-list{display:flex!important;flex-direction:column!important;gap:9px!important;overflow:visible!important;max-height:none!important;min-height:0!important;height:auto!important;padding:0 10px 12px!important;scrollbar-width:auto}
 #zoneScreen.zo-active .zo-item{display:grid!important;flex:0 0 auto!important;box-sizing:border-box!important;width:100%!important;height:auto!important;max-height:none!important;min-height:98px!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:8px 10px!important;align-items:center!important;overflow:visible!important;margin:0!important;padding:11px!important;border-radius:15px;text-align:left}
 #zoneScreen.zo-active .zo-product{grid-column:1/-1;grid-row:1;display:flex;align-items:center;gap:12px;min-width:0}
 #zoneScreen.zo-active .zo-product img{width:64px!important;height:64px!important;min-width:64px!important;flex:0 0 64px!important;padding:3px;border-radius:12px}
 #zoneScreen.zo-active .zo-product-text{min-width:0;flex:1}
 #zoneScreen.zo-active .zo-product-text strong{display:-webkit-box!important;white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;line-height:1.35;max-width:100%}
 #zoneScreen.zo-active .zo-product-text small{display:block;white-space:normal;overflow-wrap:anywhere;word-break:break-word;font-size:11px;line-height:1.32;margin-top:5px}
 #zoneScreen.zo-active .zo-q{grid-row:2;grid-column:1;justify-self:start;margin-left:76px!important;text-align:left!important;font-size:12px;font-weight:800;white-space:nowrap;color:#b3ffe3}
 #zoneScreen.zo-active .zo-q:before{content:'Количество: ';font-size:11px;font-weight:500;color:#9ebdd3}
 #zoneScreen.zo-active .zo-w{grid-row:2;grid-column:2;text-align:right!important;justify-self:end;font-size:12px;font-weight:700;color:#e4f5ff;white-space:nowrap}
 #zoneScreen.zo-active .zo-w:before{content:'Вес: ';font-size:11px;font-weight:500;color:#9ebdd3}
 #zoneScreen.zo-active .zo-p{display:none!important}
 #zoneScreen.zo-active #zoDetails{display:none}
 #zoneScreen.zo-active.zo-legacy #zoLegacyTable{display:block;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
 #zoneScreen.zo-active.zo-legacy .zo-grid{display:none!important}
 #zoneScreen.zo-active #zoMobileDialog:not([open]){display:none!important}
 #zoneScreen.zo-active #zoMobileDialog[open]{box-sizing:border-box!important;display:block!important;position:fixed!important;inset:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#071423!important;color:#f3f9ff!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;box-shadow:none!important}
 #zoneScreen.zo-active #zoMobileDialog::backdrop{background:rgba(1,7,13,.82)}
 #zoneScreen.zo-active #zoMobileDialog .zo-mobile-header{position:sticky;top:0;z-index:100;display:flex;gap:12px;align-items:center;justify-content:space-between;padding:calc(env(safe-area-inset-top,0px) + 12px) 16px 12px;border-bottom:1px solid #28475f;background:rgba(7,22,37,.97);backdrop-filter:blur(14px)}
 #zoneScreen.zo-active #zoMobileDialog .zo-mobile-header strong{font-size:15px;color:#f1faff}
 #zoneScreen.zo-active #zoMobileDialog .zo-modal-close{border:1px solid #2e5a76;background:#102e43;color:#fff;min-height:44px;border-radius:11px;padding:10px 13px;font-size:13px;font-weight:750}
 #zoneScreen.zo-active #zoMobileDialog #zoDetails{display:block!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-width:0!important;max-width:100%!important;overflow:visible!important;padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
 #zoneScreen.zo-active #zoMobileDialog .zo-detail-top{display:grid;grid-template-columns:84px minmax(0,1fr)!important;gap:12px;padding:16px!important;align-items:start}
 #zoneScreen.zo-active #zoMobileDialog .zo-photo-box{width:84px!important;height:96px!important;padding:5px;border-radius:14px}
 #zoneScreen.zo-active #zoMobileDialog .zo-title-wrap{min-width:0}
 #zoneScreen.zo-active #zoMobileDialog .zo-title-wrap h3{font-size:clamp(16px,5vw,21px)!important;line-height:1.35;margin-bottom:10px;overflow-wrap:anywhere;word-break:break-word}
 #zoneScreen.zo-active #zoMobileDialog .zo-track{font-size:12px!important;line-height:1.4;display:block;white-space:normal;text-align:left;overflow-wrap:anywhere;max-width:100%;min-height:42px}
 #zoneScreen.zo-active #zoMobileDialog .zo-detail-metrics{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr;gap:9px;width:100%;margin-top:3px}
 #zoneScreen.zo-active #zoMobileDialog .zo-mini{min-width:0!important;padding:13px;min-height:76px}
 #zoneScreen.zo-active #zoMobileDialog .zo-mini small{font-size:12px;margin-bottom:7px}
 #zoneScreen.zo-active #zoMobileDialog .zo-mini strong{font-size:28px}
 #zoneScreen.zo-active #zoMobileDialog .zo-mini b{font-size:19px}
 #zoneScreen.zo-active #zoMobileDialog .zo-details{grid-template-columns:minmax(0,1fr)!important;gap:10px!important;padding:0 14px 16px!important}
 #zoneScreen.zo-active #zoMobileDialog .zo-col{min-width:0}
 #zoneScreen.zo-active #zoMobileDialog .zo-field{display:grid;grid-template-columns:minmax(0,33%) minmax(0,1fr)!important;gap:9px;padding:12px 11px;font-size:13px;min-height:47px;align-items:center}
 #zoneScreen.zo-active #zoMobileDialog .zo-label{font-size:11px;line-height:1.4}
 #zoneScreen.zo-active #zoMobileDialog .zo-value{font-size:12px;overflow-wrap:anywhere;word-break:break-word}
 #zoneScreen.zo-active #zoMobileDialog .zo-field-actions{display:flex;flex-wrap:wrap;gap:7px;min-width:0}
 #zoneScreen.zo-active #zoMobileDialog .zo-link,#zoneScreen.zo-active #zoMobileDialog .zo-action,#zoneScreen.zo-active #zoMobileDialog .zo-primary{font-size:12px;min-height:43px;max-width:100%;white-space:normal;padding:9px 12px}
 #zoneScreen.zo-active #zoMobileDialog .zo-pill{max-width:100%;white-space:normal;overflow-wrap:anywhere}
 #zoneScreen.zo-active #zoMobileDialog .zo-detail-actions{padding:0 14px 15px!important}
 #zoneScreen.zo-active #zoMobileDialog .zo-action-group{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #zoneScreen.zo-active #zoMobileDialog .zo-action-group>*{min-width:0}
}
@media(max-width:380px){
 #zoneScreen.zo-active .zo-product img{width:54px!important;height:54px!important;min-width:54px!important;flex-basis:54px!important}
 #zoneScreen.zo-active .zo-q{margin-left:66px!important}
 #zoneScreen.zo-active .zo-stats{gap:4px}
 #zoneScreen.zo-active .zo-stat{padding:8px}
 #zoneScreen.zo-active .zo-stat small{font-size:9px}
}

/* ============================================================================
   MIRAM ORBITAL ZONES · PC layout hotfix 2026-11-01
   Desktop card rows must NEVER flex-shrink when there are many stock items.
   This override is deliberately appended after the previous mobile rules.
   ============================================================================ */
#zoneScreen.zo-active .zo-item{
  flex:0 0 auto !important;
  flex-shrink:0 !important;
  min-height:82px;
  height:auto;
  max-height:none;
  box-sizing:border-box;
  overflow:visible;
}
#zoneScreen.zo-active .zo-item .zo-product,
#zoneScreen.zo-active .zo-item .zo-product-text,
#zoneScreen.zo-active .zo-board,
#zoneScreen.zo-active .zo-title-wrap,
#zoneScreen.zo-active .zo-details,
#zoneScreen.zo-active .zo-col,
#zoneScreen.zo-active .zo-field,
#zoneScreen.zo-active .zo-value{
  min-width:0;
}
#zoneScreen.zo-active .zo-list{
  min-height:0;
  flex-shrink:1;
  scrollbar-gutter:stable;
  overscroll-behavior:contain;
}
#zoneScreen.zo-active .zo-stat-copy{
  min-width:0;
  max-width:100%;
}
#zoneScreen.zo-active .zo-stat strong{
  max-width:100%;
  overflow-wrap:anywhere;
}
@media (min-width:821px){
  #zoneScreen.zo-active{
    box-sizing:border-box;
    max-width:100%;
    min-width:0;
    overflow-x:clip;
  }
  #zoneScreen.zo-active .zo-shell,
  #zoneScreen.zo-active .zo-shell-main,
  #zoneScreen.zo-active .zo-grid{
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    min-width:0;
  }
  #zoneScreen.zo-active .zo-grid{
    display:grid;
    grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);
    align-items:start;
    gap:14px;
  }
  #zoneScreen.zo-active .zo-board{
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    min-width:0;
    overflow:hidden;
  }
  #zoneScreen.zo-active .zo-list{
    display:flex;
    flex-direction:column;
    gap:9px;
    max-height:min(70vh,760px);
    overflow-x:hidden;
    overflow-y:auto;
    padding:0 12px 14px;
  }
  #zoneScreen.zo-active .zo-list-head,
  #zoneScreen.zo-active .zo-item{
    grid-template-columns:minmax(0,1fr) minmax(42px,56px) minmax(48px,62px) minmax(56px,72px);
    column-gap:8px;
  }
  #zoneScreen.zo-active .zo-item{
    min-height:84px !important;
    padding:11px 12px;
    align-items:center;
  }
  #zoneScreen.zo-active .zo-list-head{
    padding-left:24px;
    padding-right:18px;
    font-size:10px;
  }
  #zoneScreen.zo-active .zo-product{
    gap:10px;
    min-width:0;
    width:100%;
  }
  #zoneScreen.zo-active .zo-product img{
    display:block;
    flex:0 0 54px;
    width:54px;
    min-width:54px;
    height:54px;
    object-fit:contain;
  }
  #zoneScreen.zo-active .zo-product-text{
    min-width:0;
    flex:1 1 auto;
  }
  #zoneScreen.zo-active .zo-product-text strong{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    line-clamp:2;
    white-space:normal;
    line-height:1.35;
    max-height:2.7em;
    overflow:hidden;
    text-overflow:ellipsis;
    overflow-wrap:anywhere;
    font-size:12px;
  }
  #zoneScreen.zo-active .zo-product-text small{
    display:block;
    font-size:11px;
    overflow-wrap:anywhere;
    line-height:1.25;
  }
  #zoneScreen.zo-active .zo-q,
  #zoneScreen.zo-active .zo-w,
  #zoneScreen.zo-active .zo-p{
    font-size:12px;
    min-width:0;
    overflow-wrap:anywhere;
    text-align:center;
  }
  #zoneScreen.zo-active .zo-detail-top{
    grid-template-columns:minmax(86px,104px) minmax(0,1fr);
    gap:12px;
    padding:16px 16px 12px;
  }
  #zoneScreen.zo-active .zo-photo-box{
    width:100%;
    height:108px;
    min-width:0;
  }
  #zoneScreen.zo-active .zo-title-wrap h3{
    margin:0 0 10px;
    font-size:clamp(15px,1.4vw,20px);
    line-height:1.35;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  #zoneScreen.zo-active .zo-track{
    box-sizing:border-box;
    max-width:100%;
    min-width:0;
    white-space:normal;
    text-align:left;
    overflow-wrap:anywhere;
    word-break:break-word;
    line-height:1.4;
  }
  #zoneScreen.zo-active .zo-detail-metrics{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    width:100%;
  }
  #zoneScreen.zo-active .zo-mini{
    min-width:0;
    padding:11px 13px;
  }
  #zoneScreen.zo-active .zo-mini strong{
    font-size:clamp(21px,2vw,30px);
  }
  #zoneScreen.zo-active .zo-mini b{
    font-size:clamp(16px,1.5vw,22px);
  }
  #zoneScreen.zo-active .zo-details{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    padding:0 16px 12px;
  }
  #zoneScreen.zo-active .zo-field{
    box-sizing:border-box;
    grid-template-columns:minmax(70px,36%) minmax(0,1fr);
    gap:8px;
    padding:10px 11px;
    min-height:44px;
  }
  #zoneScreen.zo-active .zo-label{font-size:11px;}
  #zoneScreen.zo-active .zo-value{
    font-size:12px;
    line-height:1.55;
    white-space:normal;
    word-break:break-word;
    overflow-wrap:anywhere;
  }
  #zoneScreen.zo-active .zo-detail-actions{padding:0 16px 16px;}
  #zoneScreen.zo-active .zo-action-group{flex-wrap:wrap;}
  #zoneScreen.zo-active .zo-action-group > *{max-width:100%;}
}
@media (min-width:821px) and (max-width:1330px){
  #zoneScreen.zo-active .zo-grid{
    grid-template-columns:minmax(0,0.95fr) minmax(0,1.05fr);
    gap:11px;
  }
  #zoneScreen.zo-active .zo-details{grid-template-columns:minmax(0,1fr);}
  #zoneScreen.zo-active .zo-item,
  #zoneScreen.zo-active .zo-list-head{
    grid-template-columns:minmax(0,1fr) 44px 50px;
  }
  #zoneScreen.zo-active .zo-p,
  #zoneScreen.zo-active .zo-list-head span:last-child{display:none;}
}
@media (min-width:821px) and (max-width:1090px){
  #zoneScreen.zo-active .zo-grid{grid-template-columns:minmax(0,1fr);}
  #zoneScreen.zo-active .zo-list{max-height:320px;}
  #zoneScreen.zo-active .zo-details{grid-template-columns:repeat(2,minmax(0,1fr));}
}
