/* V12 map-only presentation. Existing APIs, coordinates and export styles remain authoritative. */
@media screen {
.v12-ops-pro{--vp-bg:#f3f7fc;--vp-card:#fff;--vp-text:#15243d;--vp-muted:#64748b;--vp-line:#e0e8f2;--vp-blue:#0967ff;--vp-soft:#eef4ff;color:var(--vp-text);background:var(--vp-bg);padding:14px;border-radius:18px;font-family:Inter,Segoe UI,Arial,sans-serif}
.v12-ops-pro[data-v12-theme=dark]{--vp-bg:#0b1523;--vp-card:#132235;--vp-text:#eaf2ff;--vp-muted:#a5b8ce;--vp-line:#293e55;--vp-blue:#5ba2ff;--vp-soft:#1a3450;color-scheme:dark}
.v12-ops-pro *{box-sizing:border-box}
.v12-ops-pro .ops-command-hero{padding:4px 2px 12px;border:0;margin:0;gap:10px}
.v12-ops-pro .ops-command-hero h2{font-size:23px;color:var(--vp-text);letter-spacing:-.6px;margin:4px 0}
.v12-ops-pro .ops-command-hero p,.v12-ops-pro .muted,.v12-ops-pro .ops-map-foot{color:var(--vp-muted)}
.v12-version{font-size:9px;letter-spacing:1px;background:var(--vp-soft);color:var(--vp-blue);padding:5px 7px;border-radius:5px;vertical-align:middle}
.v12-ops-pro .ops-command-eyebrow{font-size:9px;letter-spacing:1.8px;color:var(--vp-blue)}
.v12-ops-pro button,.v12-ops-pro select,.v12-ops-pro input{color:var(--vp-text);background:var(--vp-card);border-color:var(--vp-line)}
.v12-ops-pro button{cursor:pointer}.v12-ops-pro button:focus-visible,.v12-ops-pro summary:focus-visible{outline:3px solid #39c5d3;outline-offset:2px}
.v12-ops-pro .ops-command-actions{gap:6px}.v12-ops-pro .ops-command-actions input{max-width:170px}
.v12-theme-switch{display:flex;gap:3px;padding:3px;background:var(--vp-soft);border-radius:9px}
.v12-theme-switch button{font-size:11px;padding:7px 9px;border:0;border-radius:6px;white-space:nowrap}
.v12-theme-switch button[aria-pressed=true]{color:var(--vp-blue);box-shadow:0 2px 7px #10204018;background:var(--vp-card);font-weight:700}
.v12-ops-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0 0 10px}
.v12-metric{display:flex;align-items:center;gap:10px;padding:13px 10px;background:var(--vp-card);border:1px solid var(--vp-line);box-shadow:0 3px 10px #19365a06;border-radius:12px;min-width:0}
.v12-metric-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:11px;background:#e8f1ff;color:#0867ff;font-size:23px;font-weight:700;flex-shrink:0}
.v12-metric.green .v12-metric-icon{background:#dcf7e9;color:#009b54}.v12-metric.red .v12-metric-icon{background:#ffe7ec;color:#ed3554}.v12-metric.purple .v12-metric-icon{background:#f0e6ff;color:#8735e7}
.v12-metric>div{min-width:0}.v12-metric small{font-size:10px;display:block;white-space:nowrap}.v12-metric strong{font-size:25px;line-height:1.3;display:block}.v12-metric div>span{display:block;font-size:8px;color:var(--vp-muted);line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v12-ops-tools{margin-bottom:10px}.v12-ops-tools>button{display:block;font-size:11px;padding:8px 12px;border:1px solid var(--vp-line);border-radius:8px}.v12-tools-content{display:none;gap:8px;flex-wrap:wrap}.v12-ops-pro[data-tools-open=true] .v12-tools-content{display:flex;margin-top:8px}.v12-tools-content>.panel{margin:0;flex:1;min-width:0;background:var(--vp-card);border-color:var(--vp-line);padding:10px}.v12-tools-content>details{width:100%;flex-basis:100%!important;background:var(--vp-card);border-color:var(--vp-line)}
.v12-ops-pro .ops-stage{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:10px;align-items:start}
.v12-ops-pro .ops-map-holder{border:1px solid var(--vp-line);border-radius:14px;overflow:hidden;box-shadow:0 4px 18px #172c4808;background:var(--vp-card)}
.v12-ops-pro .ops-map-head{padding:10px 12px;gap:8px;background:var(--vp-card);color:var(--vp-text)}
.v12-ops-pro .ops-map-head strong{font-size:12px}.v12-ops-pro .ops-map-head-actions{gap:6px}.v12-ops-pro .ops-map-head select,.v12-ops-pro .ops-map-head button{font-size:10px;min-height:32px}
.v12-ops-pro #ops-map{height:560px;min-height:400px;background:#dce8ee}
.v12-ops-pro[data-v12-theme=dark] #ops-map .leaflet-tile-pane{filter:brightness(.54) saturate(.65)}
.v12-ops-pro .ops-command-mapfilters{top:10px;left:44px;gap:4px;max-width:calc(100% - 55px)}
.v12-ops-pro .ops-command-mapfilters button{background:var(--vp-card);color:var(--vp-text);border:1px solid var(--vp-line);border-radius:7px;font-size:10px;padding:6px 8px;box-shadow:0 2px 6px #09233e12}
.v12-ops-pro .ops-command-mapfilters button[aria-pressed=true]{background:#0867ff;color:white;border-color:#0867ff}
.v12-ops-pro .ops-command-legend{padding:9px 12px;background:var(--vp-card);border-color:var(--vp-line);color:var(--vp-muted);font-size:10px;gap:12px}.v12-ops-pro .ops-map-foot{background:var(--vp-card);font-size:9px;padding:7px 12px}
.v12-ops-pro .ops-right{height:auto;max-height:680px;overflow:auto;min-width:0;scrollbar-width:thin;background:transparent;padding:0;border:0}
.v12-project-detail{border:1px solid var(--vp-line);border-radius:14px;background:var(--vp-card);overflow:hidden;box-shadow:0 4px 18px #172c4808;color:var(--vp-text)}
.v12-detail-hero{display:flex;gap:11px;padding:15px 12px;position:relative;align-items:center}
.v12-project-art{width:56px;height:60px;background:linear-gradient(145deg,#e1f2ff,#b9d7ff);color:#0967ff;border-radius:10px;display:grid;place-items:center;flex-shrink:0}.v12-project-art svg{width:30px;height:30px}
.v12-detail-hero>div:nth-child(2){flex:1;min-width:0;padding-right:22px}.v12-detail-hero small{font-size:8px;letter-spacing:.7px;color:var(--vp-muted)}.v12-detail-hero h3{font-size:14px;line-height:1.35;margin:4px 0 7px;color:var(--vp-text);overflow-wrap:anywhere}
.v12-sheet-close{position:absolute;right:9px;top:10px;border:0;background:var(--vp-soft)!important;width:28px;height:28px;border-radius:50%;font-size:21px;line-height:1}
.v12-status{font-size:9px;font-weight:700;display:inline-block;border-radius:5px;padding:4px 6px;background:#edf1f7;color:#50617c}.v12-status.ok{background:#ddf8e9;color:#087c42}.v12-status.short{background:#fff0d6;color:#9d5800}.v12-status.critical{background:#ffe5e9;color:#bd2440}.v12-status.planned{background:#e4efff;color:#0867ff}
.v12-detail-tabs{display:flex;gap:4px;padding:0 10px 12px;overflow:auto;scrollbar-width:thin}.v12-detail-tabs button{flex:1;border:0;border-radius:7px;background:var(--vp-soft);font-size:10px;padding:9px 6px;white-space:nowrap}.v12-detail-tabs button[aria-selected=true]{background:#0867ff;color:white;box-shadow:0 3px 9px #0867ff20}
.v12-detail-body{padding:0 12px 10px}.v12-detail-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 14px}.v12-detail-kpis>div{background:var(--vp-soft);border-radius:8px;padding:9px 7px}.v12-detail-kpis small{font-size:8px;color:var(--vp-muted);display:block}.v12-detail-kpis b{font-size:20px;display:block;margin-top:3px}
.v12-detail-section-head{display:flex;justify-content:space-between;gap:6px;align-items:center;margin:8px 0}.v12-detail-section-head h4{font-size:11px;margin:0}.v12-detail-section-head>span{font-size:9px;color:var(--vp-muted)}
.v12-duty-row{display:flex;align-items:center;gap:7px;padding:9px 0;border-bottom:1px solid var(--vp-line)}.v12-person-avatar{background:var(--vp-soft);color:var(--vp-blue);width:27px;height:30px;display:grid;place-items:center;border-radius:7px;font-size:12px;font-weight:700;flex-shrink:0}.v12-duty-person{min-width:0;flex:1}.v12-duty-person strong{display:block;font-size:11px;line-height:1.35;overflow-wrap:anywhere}.v12-duty-person small{display:block;font-size:9px;color:var(--vp-muted);line-height:1.6;overflow-wrap:anywhere}.v12-duty-time{display:flex;gap:8px;align-items:center;font-size:10px;margin:3px 0}.v12-duty-time i{font-style:normal;color:var(--vp-muted);white-space:nowrap}.v12-duty-state{font-size:8px;background:var(--vp-soft);color:var(--vp-muted);padding:5px;border-radius:5px;max-width:70px;text-align:center}.v12-duty-state.live{background:#dbf6e7;color:#087b42}
.v12-detail-footer{display:flex;gap:6px;flex-wrap:wrap;padding:8px 12px}.v12-detail-footer a,.v12-detail-footer button{font-size:10px}.v12-data-note{font-size:9px!important;line-height:1.5;color:var(--vp-muted);padding:0 12px 12px;margin:0!important}.v12-coordinate-card{padding:12px;background:var(--vp-soft);border-radius:10px}.v12-coordinate-card span,.v12-coordinate-card strong{display:block;font-size:12px;margin-bottom:8px}.v12-coordinate-card p,.v12-empty{font-size:11px;color:var(--vp-muted)}
.v12-detail-empty{padding:35px 20px;text-align:center}.v12-detail-empty svg{width:40px;height:40px;color:#0867ff}.v12-detail-empty h3{font-size:16px;color:var(--vp-text)}.v12-detail-empty p{font-size:12px;color:var(--vp-muted);line-height:1.6}
.v12-project-directory{margin-top:10px;background:var(--vp-card);border:1px solid var(--vp-line);border-radius:12px;padding:12px}.v12-project-directory>summary{font-size:12px;font-weight:700;cursor:pointer}.v12-ops-pro .ops-proj{background:var(--vp-card);color:var(--vp-text);border-color:var(--vp-line)}
.v12-ops-pro .leaflet-tooltip.v12-project-tooltip{background:transparent;border:0;box-shadow:none;padding:0;margin:0!important;color:var(--vp-text);white-space:normal}.v12-project-tooltip:before{display:none!important}
.v12-map-label{display:flex;gap:7px;align-items:center;background:var(--vp-card);color:var(--vp-text);border:1px solid var(--vp-line);border-left:3px solid #9aa7bb;border-radius:10px;padding:9px 10px;width:174px;box-shadow:0 4px 12px #142a4430;cursor:pointer;--pin:#8292aa}.v12-map-label.ok{--pin:#03aa5d}.v12-map-label.short{--pin:#f39a08}.v12-map-label.critical{--pin:#f34257}.v12-map-label.planned{--pin:#0867ff}.v12-map-label{border-left-color:var(--pin)}.v12-label-pin{color:var(--pin);flex-shrink:0}.v12-label-pin svg{width:27px;height:33px}.v12-map-label>div{min-width:0}.v12-map-label strong{display:block;font-size:10px;line-height:1.3;overflow-wrap:anywhere}.v12-label-count{display:block;font-size:10px;font-weight:700;margin:4px 0;color:var(--pin)}.v12-map-label small{display:block;color:var(--pin);font-size:8px;font-weight:700}
.v12-label-connectors{position:absolute;inset:0;z-index:450;pointer-events:none;width:100%;height:100%;overflow:hidden}.v12-label-connectors line{stroke:#587594;stroke-width:1.3;stroke-opacity:.6}
#v12-label-density,.v12-detail-reopen{position:absolute;z-index:650;bottom:12px;left:12px;border:1px solid var(--vp-line);border-radius:8px;background:var(--vp-card);color:var(--vp-text);padding:9px;font-size:11px;box-shadow:0 3px 12px #142a4420}.v12-detail-reopen{left:auto;right:12px}.v12-ops-pro [hidden]{display:none!important}
.v12-ops-pro[data-detail-open=false] #ops-command-preview:has(.v12-project-detail:not(.v12-detail-empty)){display:none}
.v12-ops-pro .ops-command-timeline{background:var(--vp-card);border-color:var(--vp-line);color:var(--vp-text);margin-top:10px}
.v12-ops-pro .ops-command-overview,.v12-ops-pro .ops-disclaimer,.v12-ops-pro .ops-command-preview,.v12-ops-pro .ops-list-controls,.v12-ops-pro .ops-project-card{background:var(--vp-card);color:var(--vp-text);border-color:var(--vp-line)}
.v12-ops-pro .ops-command-overview h3,.v12-ops-pro .ops-command-timeline h3,.v12-ops-pro .ops-command-timeline-event b,.v12-ops-pro .ops-project-head strong,.v12-ops-pro .ops-right-title h2{color:var(--vp-text)}
.v12-ops-pro .ops-command-table th,.v12-ops-pro .ops-command-table tr.is-active,.v12-ops-pro .ops-command-tabs,.v12-ops-pro .ops-command-detail-head{background:var(--vp-soft);color:var(--vp-text)}
.v12-ops-pro .ops-command-table td,.v12-ops-pro .ops-command-table th{border-color:var(--vp-line)}.v12-ops-pro .ops-command-table button{background:transparent;color:var(--vp-text)}
.v12-ops-pro .ops-command-timeline-event{background:var(--vp-card);border-color:var(--vp-line);color:var(--vp-text)}.v12-ops-pro .ops-command-timeline-event span{color:var(--vp-muted)}
.v12-ops-pro .ops-command-empty,.v12-ops-pro .ops-project-note{color:var(--vp-muted)}
.v12-ops-pro .ops-map-head strong,.v12-ops-pro .ops-layer-label{color:var(--vp-text)}
.v12-ops-pro .ops-command-table tr[data-active=true]{background:var(--vp-soft)}
.v12-ops-pro .v12-map-theme{display:none}.v12-ops-pro .ops-fullscreen .v12-map-theme{display:block}
.v12-ops-pro .leaflet-popup-content-wrapper,.v12-ops-pro .leaflet-popup-tip{background:var(--vp-card);color:var(--vp-text)}
.v12-ops-pro .leaflet-popup{opacity:1!important}.v12-ops-pro .ops-popup small{color:var(--vp-muted)}
.v12-ops-pro .ops-command-timeline-event strong{color:var(--vp-blue)}
.v12-ops-pro .ops-fullscreen .ops-right{display:block!important;position:absolute;right:12px;top:65px;width:370px;max-height:calc(100dvh - 85px);z-index:700;pointer-events:none}.v12-ops-pro .ops-fullscreen #ops-command-preview{pointer-events:auto}.v12-ops-pro .ops-fullscreen .v12-project-directory{display:none}.v12-ops-pro .ops-fullscreen .v12-detail-empty{display:none}.v12-ops-pro .ops-fullscreen .ops-map-head{background:var(--vp-card)}
@media(min-width:1600px){.v12-ops-pro .ops-stage{grid-template-columns:minmax(0,1fr) 420px}.v12-ops-pro #ops-map{height:640px}.v12-ops-pro .ops-right{max-height:750px}}
@media(max-width:1100px) and (min-width:768px){.v12-ops-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.v12-ops-pro .ops-stage{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:767px){
.v12-ops-pro{padding:8px;border-radius:12px}.v12-ops-pro .ops-command-hero h2{font-size:19px}.v12-ops-pro .ops-command-hero p{display:none}.v12-ops-pro .ops-command-actions{width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start}.v12-ops-pro .ops-command-actions input{max-width:none;min-width:0;flex:1;font-size:13px;width:100px}.v12-ops-pro .ops-command-status{font-size:10px;padding:5px}.v12-theme-switch button{min-height:36px}
.v12-ops-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.v12-metric{padding:8px;gap:7px;border-radius:9px}.v12-metric-icon{width:31px;height:32px;font-size:20px;border-radius:8px}.v12-metric strong{font-size:22px;line-height:1.1}.v12-metric small{font-size:10px}.v12-metric div>span{font-size:8px;max-width:115px}
.v12-ops-tools>button{display:block;width:100%;padding:10px;text-align:left;font-size:11px;border:1px solid var(--vp-line);border-radius:9px}.v12-tools-content{display:none;margin-top:6px}.v12-ops-pro[data-tools-open=true] .v12-tools-content{display:block}.v12-tools-content>.card{margin-bottom:6px}
.v12-ops-pro #ops-map{height:65dvh;min-height:390px;max-height:none}.v12-ops-pro .ops-map-head{padding:8px}.v12-ops-pro .ops-map-head strong{font-size:11px}.v12-ops-pro .ops-map-head-actions{width:auto;gap:4px}.v12-ops-pro .ops-map-head select,.v12-ops-pro .ops-map-head button{font-size:11px;min-height:38px;padding:6px}.v12-ops-pro .ops-layer-label{font-size:0}.v12-ops-pro .ops-command-mapfilters{left:42px;top:8px;gap:3px}.v12-ops-pro .ops-command-mapfilters button{font-size:9px;padding:5px;min-height:31px}
.v12-map-label{width:139px;padding:7px;gap:5px;border-radius:8px}.v12-map-label strong{font-size:9px}.v12-label-pin svg{width:21px;height:26px}.v12-label-count{font-size:9px;margin:3px 0}.v12-map-label small{font-size:8px}
.v12-ops-pro .ops-right{max-height:none;overflow:visible}.v12-ops-pro #ops-command-preview{display:none}.v12-ops-pro[data-detail-open=true] #ops-command-preview,.v12-ops-pro[data-detail-open=true] .ops-fullscreen #ops-command-preview{display:block;position:fixed;bottom:calc(65px + env(safe-area-inset-bottom,0px));left:10px;right:10px;z-index:10010;max-height:56dvh;overflow:auto;border-radius:16px;box-shadow:0 -8px 40px #061d3a35;background:var(--vp-card);overscroll-behavior:contain}
.v12-ops-pro .ops-fullscreen .ops-right{position:static;width:auto;max-height:none}.v12-ops-pro[data-detail-open=true] .ops-fullscreen #ops-command-preview{bottom:max(10px,env(safe-area-inset-bottom));max-height:54dvh}.v12-ops-pro .ops-fullscreen .v12-detail-reopen{bottom:max(12px,env(safe-area-inset-bottom))}
.v12-detail-hero{padding:13px 12px}.v12-sheet-close{width:36px;height:36px}.v12-detail-tabs button{min-height:36px}.v12-duty-row{padding:8px 0}.v12-duty-person strong{font-size:12px}.v12-duty-time{font-size:11px}.v12-duty-state{font-size:9px}.v12-detail-body{padding-bottom:4px}
.v12-ops-pro .ops-command-legend{gap:8px;font-size:9px}.v12-ops-pro .ops-map-foot{font-size:8px}.v12-project-directory{margin-top:0}.v12-detail-empty{display:none}
}
}

.v13-radio-code{display:block;font-size:11px;line-height:1.5;color:var(--vp-text);border:1px solid var(--vp-line);background:var(--vp-soft);border-radius:6px;padding:2px 5px;margin:5px 0;white-space:nowrap}.v13-radio-code b{font-variant-numeric:tabular-nums}.v12-map-label .v13-radio-code{font-size:10px;margin:4px 0;padding:1px 4px}

/* Desktop: detail and QR continue in page flow; fullscreen and mobile retain their bounds. */
@media screen and (min-width:768px){
 .v12-ops-pro .ops-stage:not(.ops-fullscreen){align-items:start}
 .v12-ops-pro .ops-stage:not(.ops-fullscreen) .ops-right{height:auto;max-height:none;overflow:visible;align-self:start}
 .v12-ops-pro .ops-stage:not(.ops-fullscreen) #ops-command-preview{max-height:none;overflow:visible}
}
