*{box-sizing:border-box}
body{user-select:none}
.coord-input{user-select:text}
html,body{height:100%;overflow:hidden}
body{font-family:"Trebuchet MS","Lucida Sans Unicode","Lucida Grande",sans-serif;margin:0;min-height:100vh;background:linear-gradient(135deg,#0b1220 0%,#101a2b 45%,#0b1f24 100%);color:#e5e7eb}
:root{--product-row-bg:rgba(8,12,22,0.65);--product-row-alt-bg:rgba(12,18,33,0.7);--product-cell-special-bg:rgba(15,23,42,0.75);--product-cell-border:rgba(148,163,184,0.2)}
.layout{display:flex;min-height:100vh}
h1{margin:0 0 12px;color:#67e8f9;font-size:22px;font-family:"Palatino Linotype","Book Antiqua",Palatino,serif;letter-spacing:0.5px}
.left-stack{position:absolute;left:8px;top:44px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;z-index:6}
.right-stack{position:absolute;right:12px;top:52px;display:flex;flex-direction:column;gap:6px;z-index:6;align-items:flex-end}
.mode-switch{position:absolute;left:-4px;top:-4px;display:flex;align-items:center;gap:6px;background:rgba(2,6,20,0.92);border:1px solid rgba(248,250,252,0.55);backdrop-filter:blur(6px);box-shadow:0 10px 24px rgba(2,6,23,0.7);padding:8px 8px 4px 12px;border-radius:0 0 14px 0;width:min(189px,calc(100vw - 6px));z-index:8}
.mode-logo{display:block;height:17px;max-width:46px;width:auto;opacity:0.98;filter:invert(1) contrast(1.18) brightness(1.05) drop-shadow(0 0 6px rgba(103,232,249,0.35)) drop-shadow(0 8px 14px rgba(0,0,0,0.55))}
.mode-btn{flex:1 1 0;min-width:0;text-align:center;border:1px solid rgba(148,163,184,0.25);background:rgba(15,23,42,0.32);color:rgba(229,231,235,0.6);text-decoration:none;border-radius:0 0 8px 8px;padding:8px 7px 4px;position:relative;top:-4px;font-size:9.5px;font-weight:800;letter-spacing:0.08em;text-transform:uppercase;cursor:pointer;transition:all 0.15s ease}
.mode-btn:hover{border-color:rgba(94,234,212,0.6);color:#67e8f9;box-shadow:0 0 0 1px rgba(94,234,212,0.2)}
.mode-btn.active{border-color:rgba(94,234,212,0.9);color:#67e8f9;box-shadow:0 0 0 1px rgba(94,234,212,0.45);background:rgba(12,74,110,0.85);color:#e5e7eb}
.coord-overlay{position:relative;padding:4px 8px;border-radius:10px;background:rgba(2,6,20,0.92);border:1px solid rgba(248,250,252,0.55);backdrop-filter:blur(6px);box-shadow:0 10px 24px rgba(2,6,23,0.7);width:min(205px,calc(100vw - 20px));max-width:205px;flex:0 0 auto}
.status-panel{position:relative;padding:4px 6px;border-radius:10px;background:rgba(2,6,20,0.92);border:1px solid rgba(248,250,252,0.55);backdrop-filter:blur(6px);box-shadow:0 10px 24px rgba(2,6,23,0.7);width:min(170px,calc(100vw - 12px));max-width:170px;flex:0 0 auto}
.status-header{display:flex;align-items:center;justify-content:flex-start;gap:6px}
.status-title{font-size:11px;color:#f8fafc;font-weight:700;white-space:nowrap}
.status-pill{font-size:8px;padding:1px 4px;border-radius:999px;border:1px solid rgba(148,163,184,0.45);background:rgba(15,23,42,0.9);color:#e5e7eb;font-weight:700;letter-spacing:0.02em;text-transform:uppercase;margin-left:auto}
.status-pill.ok{color:#22d3ee;border-color:rgba(34,211,238,0.5);box-shadow:0 0 0 1px rgba(34,211,238,0.25)}
.status-pill.warn{color:#fbbf24;border-color:rgba(251,191,36,0.5);box-shadow:0 0 0 1px rgba(251,191,36,0.25)}
.status-pill.err{color:#fca5a5;border-color:rgba(252,165,165,0.5);box-shadow:0 0 0 1px rgba(252,165,165,0.25)}
.status-label{font-size:9px;color:#cbd5f5;white-space:nowrap;text-align:left;width:auto}
.status-value{font-size:10px;color:#e5e7eb;text-align:left;word-break:break-word}
.status-value.status-link{cursor:pointer;color:#67e8f9}
.status-value.status-link:hover{text-decoration:underline}
.status-value .total-muted{color:rgba(226,232,240,0.5);font-weight:600}
.status-value.muted{color:#94a3b8}
.status-error{color:#fca5a5}
.status-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:4px}
.status-meta.triple{grid-template-columns:0.8fr 1.2fr 0.9fr}
.status-meta-col{display:flex;flex-direction:column;gap:1px}
.opacity-overlay{position:relative;padding:5px 8px;border-radius:10px;background:rgba(2,6,20,0.92);border:1px solid rgba(248,250,252,0.55);backdrop-filter:blur(6px);box-shadow:0 12px 30px rgba(2,6,23,0.7);width:min(220px,calc(100% - 24px));transition:width 0.2s ease}
.opacity-overlay.collapsed{width:120px}
.opacity-overlay.is-transitioning .overlay-body{opacity:0;pointer-events:none}
.satellite-panel.is-transitioning .overlay-body{opacity:0;pointer-events:none}
.opacity-header{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer}
.opacity-title{font-size:12px;color:#f8fafc;font-weight:700;white-space:nowrap}
.opacity-hint{font-size:14px;color:#9ca3af;white-space:nowrap}
.overlay-body{margin-top:6px;opacity:0;overflow:hidden;transform-origin:top;transform:scaleY(1);transition:transform 0.2s ease, opacity 0.2s ease, margin-top 0.2s ease;visibility:hidden}
.overlay-ready .overlay-body{visibility:visible}
.overlay-body.ready{opacity:1}
.opacity-overlay.collapsed .overlay-body{transform:scaleY(0);opacity:0;margin-top:0;pointer-events:none}
.overlay-body,
.pass-panel .overlay-body,
.opacity-overlay .overlay-body{transition:transform 0.2s ease, opacity 0.2s ease, margin-top 0.2s ease, max-height 0.2s ease, padding 0.2s ease;}
body:not(.app-ready) .overlay-body{opacity:0;max-height:0;padding-top:0;padding-bottom:0;transform:scaleY(0.96)}
body:not(.app-ready) .opacity-overlay,
body:not(.app-ready) .pass-panel,
body:not(.app-ready) .satellite-panel{
  opacity:0;
  transform:translateY(-6px) scale(0.98);
  pointer-events:none;
}
.satellite-panel{position:relative;padding:6px 8px;border-radius:10px;background:rgba(2,6,20,0.92);border:1px solid rgba(248,250,252,0.55);backdrop-filter:blur(6px);box-shadow:0 10px 24px rgba(2,6,23,0.7);width:min(215px,calc(100vw - 20px));max-width:215px;transition:width 0.1s ease;flex:0 0 auto}
.satellite-panel.collapsed{width:120px;height:34px}
.satellite-panel.collapsed .overlay-body{transform:scaleY(0);opacity:0;margin-top:0;pointer-events:none}
.sat-list{max-height:240px;overflow-y:auto;overflow-x:hidden;font-size:9px;line-height:1.3;color:#e5e7eb;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,0.7) rgba(2,6,20,0.9)}
.sat-list::-webkit-scrollbar{width:8px}
.sat-list::-webkit-scrollbar-track{background:rgba(2,6,20,0.9);border-radius:999px}
.sat-list::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(148,163,184,0.9),rgba(94,234,212,0.6));border-radius:999px;border:2px solid rgba(2,6,20,0.9)}
.sat-list::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,rgba(148,163,184,1),rgba(94,234,212,0.85))}
.sat-table{width:min(230px,100%);border-collapse:collapse;font-size:9px}
.sat-table th,.sat-table td{padding:2px 4px;border-bottom:1px solid rgba(148,163,184,0.2);text-align:left;vertical-align:top}
.sat-table th{color:#a5b4fc;font-weight:700;font-size:8px;letter-spacing:0.04em;text-transform:uppercase;position:sticky;top:0;background:rgba(2,6,20,0.96);z-index:1}
.sat-table td{color:#e5e7eb;white-space:nowrap}
.sat-table tbody tr{cursor:pointer}
.sat-table tbody tr:hover{background:rgba(148,163,184,0.12)}
.sat-table tbody tr.selected{background:rgba(59,130,246,0.2)}
.sat-table th:nth-child(1),.sat-table td:nth-child(1){width:42%}
.sat-table th:nth-child(2),.sat-table td:nth-child(2){width:14%}
.sat-table th:nth-child(3),.sat-table td:nth-child(3){width:44%}
.cat-dot{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:4px;vertical-align:middle}
.cat-opt-bsky-2{background:#38bdf8}
.cat-opt-bsky-3{background:#10b981}
.cat-opt-kmps{background:#a855f7}
.cat-sar-umbra{background:#f97316}
.cat-sar-kmps{background:#f59e0b}
.cat-unknown{background:#94a3b8}
.pass-panel{position:relative;padding:6px 8px;border-radius:10px;background:rgba(2,6,20,0.92);border:1px solid rgba(248,250,252,0.55);backdrop-filter:blur(6px);box-shadow:0 10px 24px rgba(2,6,23,0.7);width:min(330px,calc(100vw - 18px));max-width:330px;flex:0 0 auto;transition:width 0.1s ease}
.pass-panel.empty{width:min(160px,calc(100vw - 20px));max-width:160px}
.pass-panel.collapsed{width:160px;height:34px}
.pass-panel.collapsed .overlay-body{transform:scaleY(0);opacity:0;margin-top:0;pointer-events:none}
.pass-header{display:flex;align-items:center;justify-content:flex-start;gap:8px;cursor:pointer}
.pass-arrow{font-size:14px;color:#9ca3af;white-space:nowrap}
.pass-title{font-size:12px;color:#f8fafc;font-weight:700;white-space:nowrap;display:flex;align-items:center;gap:6px}
.pass-count{font-size:9px;color:#67e8f9;background:rgba(94,234,212,0.18);border:1px solid rgba(94,234,212,0.35);border-radius:999px;padding:1px 6px;font-weight:700;letter-spacing:0.03em}
.pass-actions{display:flex;align-items:center;gap:6px;margin-left:auto}
.pass-mini-btn{--pass-btn-border: rgba(148,163,184,0.25);--pass-btn-bg: rgba(7,11,20,0.75);border:1px solid var(--pass-btn-border);background:var(--pass-btn-bg);color:#e5e7eb;width:22px;height:22px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.pass-mini-btn.active{--pass-btn-border: rgba(94,234,212,0.95);--pass-btn-bg: rgba(94,234,212,0.2);border-color:var(--pass-btn-border);background:var(--pass-btn-bg);box-shadow:0 0 0 1px rgba(94,234,212,0.5)}
.pass-mini-btn:hover{border-color:var(--pass-btn-border);background:var(--pass-btn-bg);box-shadow:none}
.pass-mini-btn:not(.active) .pass-icon-day,
.pass-mini-btn:not(.active) .pass-icon-night{filter:saturate(0.4) brightness(0.85);opacity:0.6}
.pass-mini-btn:focus-visible{outline:2px solid rgba(94,234,212,0.7);outline-offset:2px}
.pass-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:4px 0 8px 0;padding-bottom:2px}
.pass-filters.all-row{grid-template-columns:repeat(5,minmax(0,1fr))}
.pass-filter-btn{width:100%;border:1px solid rgba(148,163,184,0.35);background:rgba(10,15,28,0.9);color:#e5e7eb;font-size:8px;padding:2px 4px;border-radius:5px;cursor:pointer;display:flex;align-items:center;gap:3px;line-height:1.1;justify-content:flex-start}
.pass-filter-btn .cat-dot{margin-right:2px}
.pass-filter-btn.active{border-color:rgba(94,234,212,0.8);color:#67e8f9;box-shadow:0 0 0 1px rgba(94,234,212,0.45)}
.transit-cell{display:inline-flex;align-items:center;gap:4px}
.transit-icon{display:inline-flex;align-items:center;justify-content:center;width:12px}
.transit-icon-empty{width:12px;height:12px}
.transit-text{display:inline-block}
.pass-icon{display:inline-block;width:10px;height:10px;position:relative;flex-shrink:0}
.pass-icon-day{border-radius:50%;background:radial-gradient(circle at 40% 40%,#fff7c2 0%,#fde047 55%,#f59e0b 85%);box-shadow:0 0 0 1px rgba(234,179,8,0.8),0 0 6px rgba(250,204,21,0.8)}
.pass-icon-day::before{content:"";position:absolute;left:50%;top:50%;width:2px;height:2px;background:transparent;box-shadow:0 -7px #fbbf24,0 7px #fbbf24,7px 0 #fbbf24,-7px 0 #fbbf24,5px 5px #fbbf24,-5px 5px #fbbf24,5px -5px #fbbf24,-5px -5px #fbbf24;border-radius:1px;transform:translate(-50%,-50%)}
.pass-icon-night{width:11px;height:11px;border-radius:50%;background:radial-gradient(circle at 35% 40%,#dce4ff 0%,#b8c3e6 60%,#94a3b8 90%);box-shadow:0 0 0 1px rgba(148,163,184,0.55),0 0 6px rgba(59,130,246,0.25)}
.pass-icon-night::before{content:"";position:absolute;left:52%;top:10%;width:11px;height:11px;border-radius:50%;background:#0b1222}
.pass-icon-night::after{content:"";position:absolute;left:72%;top:20%;width:3px;height:3px;background:#e2e8f0;box-shadow:0 0 4px rgba(226,232,240,0.9);transform:rotate(45deg);border-radius:1px}
.pass-list{max-height:200px;overflow-y:auto;overflow-x:hidden;font-size:9px;line-height:1.3;color:#e5e7eb;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,0.7) rgba(2,6,20,0.9)}
.pass-panel.empty .pass-list{max-height:70px}
.pass-list::-webkit-scrollbar{width:8px}
.pass-list::-webkit-scrollbar-track{background:rgba(2,6,20,0.9);border-radius:999px}
.pass-list::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(148,163,184,0.9),rgba(94,234,212,0.6));border-radius:999px;border:2px solid rgba(2,6,20,0.9)}
.pass-list::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,rgba(148,163,184,1),rgba(94,234,212,0.85))}
.pass-table{width:100%;border-collapse:collapse;font-size:9px;table-layout:fixed}
.pass-table th,.pass-table td{padding:2px 4px;border-bottom:1px solid rgba(148,163,184,0.2);text-align:left;vertical-align:top;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pass-table th{color:#a5b4fc;font-weight:700;font-size:8px;letter-spacing:0.04em;text-transform:uppercase;position:sticky;top:0;background:rgba(2,6,20,0.96);z-index:1}
.pass-table tbody tr{cursor:pointer}
.pass-table tbody tr.selected{background:rgba(239,68,68,0.18)}
.pass-table th:nth-child(1),.pass-table td:nth-child(1){width:22%}
.pass-table th:nth-child(2),.pass-table td:nth-child(2){width:14%}
.pass-table th:nth-child(3),.pass-table td:nth-child(3){width:28%}
.pass-table th:nth-child(4),.pass-table td:nth-child(4){width:8%}
.pass-table th:nth-child(5),.pass-table td:nth-child(5){width:10%}
.pass-table th:nth-child(6),.pass-table td:nth-child(6){width:12%}
.opacity-row{display:flex;align-items:center;gap:6px}
.opacity-label{font-size:9px;color:#cbd5f5;white-space:nowrap}
.opacity-slider-ui{position:relative;width:85px;height:14px;cursor:pointer;touch-action:none}
.opacity-track{position:absolute;left:0;right:0;top:5px;height:4px;background:rgba(248,250,252,0.3);border-radius:999px}
.opacity-fill{position:absolute;left:0;top:5px;height:4px;background:rgba(248,250,252,0.7);border-radius:999px;width:100%}
.opacity-thumb{position:absolute;top:2px;left:100%;width:10px;height:10px;border-radius:50%;background:#f8fafc;border:2px solid rgba(2,6,23,0.9);transform:translateX(-50%)}
.layer-toggles{display:flex;gap:8px;margin-top:6px;flex-wrap:nowrap;overflow-x:auto;touch-action:none}
.layer-toggle{cursor:grab}
.layer-toggle:active{cursor:grabbing}
.layer-toggles.compact{gap:6px}
.layer-toggle{display:flex;align-items:center;gap:4px;font-size:10px;color:#e5e7eb}
.layer-toggle input{width:12px;height:12px}
.layer-toggle.dragging{background:rgba(248,250,252,0.12);border-radius:6px;padding:2px 4px}
.coord-header{display:flex;align-items:center;gap:8px}
.coord-title{font-size:12px;color:#f8fafc;font-weight:700;white-space:nowrap}
.coord-row{display:flex;align-items:center;gap:6px;flex:1;max-width:none;min-width:0;justify-content:flex-start}
.coord-input{flex:0 0 auto;width:min(130px,100%);max-width:130px;padding:4px 8px;border-radius:8px;border:1px solid rgba(148,163,184,0.2);background:#0b1220;color:#e5e7eb;font-size:11px}
.map-panel{display:flex;flex-direction:column;gap:0;padding:0;flex:1}
.map-header{display:flex;flex-direction:column;gap:6px}
.map{flex:1;min-height:360px;border-radius:0;border:0;box-shadow:none}
.map-wrap{position:relative;flex:1;min-height:100vh}
.map-wrap.loading .map,
.map-wrap.loading .grid-labels,
.map-wrap.loading .north-indicator,
.map-wrap.loading .right-stack,
.map-wrap.loading .left-stack,
.map-wrap.loading .map-overlay{opacity:0;pointer-events:none;transition:opacity 0.2s ease}
.map-loading{position:absolute;inset:0;display:none;align-items:center;justify-content:center;gap:10px;z-index:20;background:radial-gradient(circle at 50% 50%,rgba(0,0,0,0.3),rgba(0,0,0,0.5));backdrop-filter:blur(4px)}
.map-loading.show,.map-wrap.loading .map-loading{display:flex}
.map-loading-dot{width:12px;height:12px;border-radius:50%;background:#67e8f9;box-shadow:0 0 0 6px rgba(103,232,249,0.18);animation:pulse 1s ease-in-out infinite}
.map-loading-text{color:#e5e7eb;font-weight:700;letter-spacing:0.04em}
.map-loading-steps{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#e5e7eb;margin-top:4px}
.map-step{display:flex;align-items:center;gap:6px;padding:5px 8px;border-radius:8px;background:rgba(255,255,255,0.04);border:1px solid rgba(103,232,249,0.25)}
.map-step-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 2px rgba(34,197,94,0.25)}
.map-step[data-state="pending"] .map-step-dot{background:#fbbf24;box-shadow:0 0 0 2px rgba(251,191,36,0.25)}
.map-step[data-state="loading"] .map-step-dot{background:#38bdf8;box-shadow:0 0 0 2px rgba(56,189,248,0.25)}
.map-step[data-state="error"] .map-step-dot{background:#ef4444;box-shadow:0 0 0 2px rgba(239,68,68,0.25)}
.map-step-label{font-weight:700;letter-spacing:0.04em}
.map-step-state{margin-left:auto;color:rgba(229,231,235,0.8);font-weight:600;font-size:11px}
@keyframes pulse{0%{transform:scale(0.9);opacity:0.7}50%{transform:scale(1.05);opacity:1}100%{transform:scale(0.9);opacity:0.7}}
.map-wrap .map{height:100%}
.map{cursor:crosshair}
.mapboxgl-canvas{cursor:crosshair !important}
.mapboxgl-canvas-container.mapboxgl-interactive{cursor:crosshair !important}
.mapboxgl-canvas-container.mapboxgl-interactive .mapboxgl-canvas{cursor:crosshair !important}
.grid-labels{position:absolute;inset:0;pointer-events:none;z-index:5;font-family:"Trebuchet MS","Lucida Sans Unicode","Lucida Grande",sans-serif}
.grid-label{position:absolute;font-size:10px;color:rgba(248,250,252,0.8);text-shadow:0 1px 2px rgba(2,6,23,0.8);white-space:nowrap;transform-origin:left center}
.north-indicator{position:absolute;right:16px;top:16px;width:32px;height:32px;border-radius:10px;background:rgba(2,6,23,0.9);border:1px solid rgba(248,250,252,0.55);box-shadow:0 10px 24px rgba(2,6,23,0.7);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;z-index:6;cursor:pointer}
.north-arrow{width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:10px solid #f8fafc}
.north-text{font-size:9px;color:#f8fafc;font-weight:700;line-height:1}
.map-overlay{position:absolute;right:16px;bottom:10px;padding:8px 10px;border-radius:10px;background:rgba(2,6,23,0.9);border:1px solid rgba(248,250,252,0.55);backdrop-filter:blur(6px);box-shadow:0 12px 30px rgba(2,6,23,0.7);text-align:right}
.map-overlay-meta{display:flex;justify-content:flex-end;align-items:center;gap:6px;font-size:9px;color:#9ca3af;text-transform:none !important;letter-spacing:0.02em}
.map-overlay-value{font-size:12px;color:#f8fafc;font-weight:600;margin-top:2px;display:flex;align-items:center;gap:6px;justify-content:flex-end}
.tz-toggle{border:1px solid rgba(148,163,184,0.4);background:rgba(15,23,42,0.8);color:#e5e7eb;font-size:9px;padding:2px 6px;border-radius:6px;cursor:pointer;transition:all 0.15s ease}
.tz-toggle:hover{border-color:rgba(94,234,212,0.6);box-shadow:0 0 0 1px rgba(94,234,212,0.25)}
.tz-toggle.active{border-color:rgba(94,234,212,0.8);color:#67e8f9;box-shadow:0 0 0 1px rgba(94,234,212,0.45)}
.map-load{font-size:9px;color:#f8fafc}
.marker-dot{width:14px;height:14px;border-radius:50%;background:#ef4444;border:2px solid #0b1220;box-shadow:0 0 0 3px rgba(239,68,68,0.35)}
.marker-preview{display:none !important}
.satellite-preview{display:none !important}
.mapboxgl-ctrl-bottom-right{display:none !important}
.mapboxgl-ctrl-bottom-left{left:-3px !important}
.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0}
.mapboxgl-ctrl:not(.mapboxgl-ctrl-scale){display:none !important}
.mapboxgl-ctrl-scale{margin-bottom:20px}
.mapboxgl-ctrl-scale{font-family:"Trebuchet MS","Lucida Sans Unicode","Lucida Grande",sans-serif;font-size:10px;color:#f8fafc !important;background:rgba(2,6,23,0.92) !important;border:1px solid rgba(248,250,252,0.45) !important;border-radius:6px;padding:2px 6px}
@media (max-width:900px){
  .map-wrap{min-height:100vh}
  .map-overlay{right:12px;bottom:76px}
  .mapboxgl-ctrl-bottom-left{bottom:62px !important}
  .north-indicator{right:12px;top:12px}
  .right-stack{right:12px;top:52px}
  .debug-log{font-size:9px}
  .debug-input{font-size:9px}
  .debug-title{font-size:10px}
  .debug-console{max-height:40vh}
  .satellite-panel{width:min(320px,calc(100vw - 24px))}
  .satellite-panel.collapsed{width:120px;height:34px}
  .sat-list{max-height:180px;font-size:9px}
  .pass-panel{width:min(330px,calc(100vw - 22px))}
  .pass-panel.empty{width:min(240px,calc(100vw - 22px));max-width:240px}
  .status-panel{width:min(320px,calc(100vw - 24px))}
  .pass-list{max-height:160px;font-size:9px}
  .pass-panel.empty .pass-list{max-height:70px}
  .mapboxgl-ctrl-scale{margin-bottom:10px}
}
.modal-backdrop{position:fixed;inset:0;background:rgba(2,6,23,0.8);backdrop-filter:blur(4px);display:none;align-items:flex-start;justify-content:center;overflow:auto;padding:20px;z-index:40}
.modal-backdrop.open{display:flex}
.modal{background:#0b1220;border:1px solid rgba(148,163,184,0.4);border-radius:12px;box-shadow:0 20px 44px rgba(0,0,0,0.5);width:min(1200px,calc(100% - 12px));max-width:1200px;color:#e5e7eb}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid rgba(148,163,184,0.25)}
.modal-title-group{display:flex;align-items:center;gap:10px}
.modal-title{font-size:14px;font-weight:700;letter-spacing:0.03em}
.modal-tz-toggle{padding:3px 8px;font-size:10px}
.modal-close{border:1px solid rgba(148,163,184,0.35);background:rgba(15,23,42,0.9);color:#e5e7eb;border-radius:6px;padding:4px 10px;cursor:pointer;font-size:11px}
.modal-body{padding:12px 14px;overflow:auto;max-height:80vh}
.table-scroll{overflow:auto;max-height:55vh;border:1px solid rgba(148,163,184,0.2);border-radius:10px;position:relative}
.data-table{width:100%;border-collapse:collapse;font-size:11px;min-width:840px;user-select:text}
.products-table{min-width:1100px}
.products-table th:first-child,.products-table td:first-child{width:180px}
.products-table th:nth-child(7),.products-table td:nth-child(7){width:60px}
.products-table th:nth-child(8),.products-table td:nth-child(8){width:60px}
.products-table tr{background:var(--product-row-bg) !important}
.products-table tr:nth-child(even){background:var(--product-row-alt-bg) !important}
.data-table th,.data-table td{padding:6px 8px;border-bottom:1px solid rgba(148,163,184,0.15);text-align:left;vertical-align:top;user-select:text;white-space:normal;word-break:break-word}
.data-table th{background:rgba(2,6,23,0.92);position:sticky;top:0;z-index:1;color:#a5b4fc;font-weight:700;font-size:11px}
.data-table tr:nth-child(even){background:rgba(15,23,42,0.6)}
.data-table.products-table tr{background:var(--product-row-bg) !important}
.data-table.products-table tr:nth-child(odd){background:var(--product-row-bg) !important}
.data-table.products-table tr:nth-child(even){background:var(--product-row-alt-bg) !important}
.plan-table{min-width:1000px}
.table-stats{margin-top:10px;padding:8px 10px;border:1px solid rgba(148,163,184,0.2);border-radius:8px;background:rgba(8,12,22,0.85);color:#e5e7eb;font-size:11px;max-width:420px}
.stats-table{width:100%;border-collapse:collapse;font-size:11px;table-layout:fixed}
.stats-table th,.stats-table td{padding:4px 6px;border-bottom:1px solid rgba(148,163,184,0.2);text-align:right}
.stats-table th:first-child,.stats-table td:first-child{text-align:left}
.stats-table th:first-child,.stats-table td:first-child{width:35%}
.stats-table th:nth-child(2),.stats-table td:nth-child(2){width:9%;text-align:center}
.stats-table th:nth-child(3),.stats-table td:nth-child(3){width:9%;text-align:center}
.stats-table th:nth-child(4),.stats-table td:nth-child(4){width:9%;text-align:center}
.stats-table th:nth-child(5),.stats-table td:nth-child(5){width:9%;text-align:center}
.stats-table th:nth-child(6),.stats-table td:nth-child(6){width:9%;text-align:center}
.stats-table th:nth-child(7),.stats-table td:nth-child(7){width:20%;text-align:center}
.stats-table th:last-child,.stats-table td:last-child{text-align:center}
.stats-table th{color:#a5b4fc;font-weight:700;background:rgba(2,6,23,0.85);letter-spacing:0.02em;text-transform:uppercase;font-size:10px}
.stats-table tr:last-child th,.stats-table tr:last-child td{border-bottom:none}
.timestamp-cell{background:rgba(12,18,33,0.9);white-space:nowrap;border-left:1px solid rgba(79,70,229,0.3)}
.timestamp-cell .ts-line{display:flex;gap:8px;align-items:center;padding:2px 0;border-bottom:1px dashed rgba(148,163,184,0.15)}
.timestamp-cell .ts-line:last-child{border-bottom:none}
.timestamp-cell .ts-label{color:#a5b4fc;font-weight:700;min-width:50px;letter-spacing:0.35px;font-size:10px}
.timestamp-cell .ts-value{color:#e2e8f0;font-size:11px;min-width:40px;white-space:nowrap}
.timestamp-cell{min-width:200px}
.satellite-cell{background:rgba(10,14,28,0.9);white-space:nowrap;border-left:1px solid rgba(59,130,246,0.25)}
.satellite-cell .sat-line{display:flex;gap:6px;align-items:center;justify-content:flex-start;padding:2px 0;border-bottom:1px dashed rgba(148,163,184,0.12)}
.satellite-cell .sat-line:last-child{border-bottom:none}
.satellite-cell .sat-label{color:#a5b4fc;font-weight:700;min-width:70px;letter-spacing:0.35px;font-size:10px;flex-shrink:0}
.satellite-cell .sat-value{color:#e2e8f0;font-size:11px;min-width:60px;text-align:right;display:flex;align-items:center;gap:4px;justify-content:flex-end;flex:1;white-space:nowrap}
.image-cell{background:rgba(8,14,24,0.9);white-space:nowrap;border-left:1px solid rgba(59,130,246,0.25)}
.image-cell .img-line{display:flex;gap:6px;align-items:center;justify-content:flex-start;padding:2px 0;border-bottom:1px dashed rgba(148,163,184,0.12)}
.image-cell .img-line:last-child{border-bottom:none}
.image-cell .img-label{color:#a5b4fc;font-weight:700;min-width:70px;letter-spacing:0.35px;font-size:10px;flex-shrink:0}
.image-cell .img-value{color:#e2e8f0;font-size:11px;min-width:60px;display:flex;align-items:center;gap:4px;text-align:right;justify-content:flex-end;flex:1;white-space:nowrap}
.location-cell{background:rgba(8,14,24,0.9);white-space:nowrap;border-left:1px solid rgba(59,130,246,0.25)}
.location-cell .img-line{display:flex;gap:8px;align-items:center;padding:2px 0;border-bottom:1px dashed rgba(148,163,184,0.12)}
.location-cell .img-line:last-child{border-bottom:none}
.location-cell .img-label{color:#a5b4fc;font-weight:700;min-width:30px;letter-spacing:0.35px;font-size:10px}
.location-cell .img-value{color:#e2e8f0;font-size:11px;min-width:30px;display:inline-flex;align-items:center;gap:4px}
.location-cell .loc-value{margin-left:auto;text-align:right;justify-content:flex-end;white-space:nowrap}
.description-cell{background:rgba(10,14,28,0.9);white-space:normal;border-left:1px solid rgba(16,185,129,0.35)}
.description-cell .desc-line{display:flex;gap:6px;align-items:flex-start;padding:2px 0;border-bottom:1px dashed rgba(148,163,184,0.12)}
.description-cell .desc-line:last-child{border-bottom:none}
.description-cell .desc-label{color:#a5b4fc;font-weight:700;min-width:44px;letter-spacing:0.25px;font-size:10px}
.description-cell .desc-value{color:#e2e8f0;font-size:11px;line-height:1.35}
.timestamp-cell,
.satellite-cell,
.image-cell,
.location-cell,
.description-cell{
  background:var(--product-cell-special-bg);
  border-left:1px solid var(--product-cell-border);
}
.preview-wrap{margin-top:4px;margin-left:8px;text-align:right}
.preview-wrap img{max-width:130px;max-height:80px;border:1px solid rgba(148,163,184,0.2);border-radius:6px;display:inline-block}
.preview-thumb{cursor:zoom-in}
.preview-popup{position:fixed;display:none;z-index:60;background:rgba(5,10,20,0.95);border:1px solid rgba(148,163,184,0.4);border-radius:10px;box-shadow:0 18px 40px rgba(0,0,0,0.55);padding:6px}
.preview-popup img{max-width:480px;max-height:360px;display:block;border-radius:8px;border:1px solid rgba(148,163,184,0.35)}
.preview-popup.show{display:block}
.ortho-mark{display:inline-block;font-weight:800;margin-right:4px}
.ortho-yes{color:#22c55e}
.ortho-no{color:#ef4444}
.data-link{color:#8be9fd;font-weight:700;text-decoration:none;border-bottom:1px dashed rgba(139,233,253,0.6)}
.data-link:hover{color:#c7f9ff;border-bottom-color:rgba(199,249,255,0.95)}
.table-meta{font-size:11px;color:#94a3b8;margin-bottom:8px}
.modal-body{scrollbar-width:thin;scrollbar-color:rgba(124,58,237,0.75) rgba(15,23,42,0.85)}
.modal-body::-webkit-scrollbar{width:14px;height:14px}
.modal-body::-webkit-scrollbar-track{background:linear-gradient(180deg,rgba(10,12,24,0.95),rgba(19,17,35,0.92));border-radius:12px;box-shadow:inset 0 0 0 1px rgba(124,58,237,0.15)}
.modal-body::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(124,58,237,0.9),rgba(6,182,212,0.85));border-radius:12px;border:3px solid rgba(10,12,24,0.95);box-shadow:0 0 0 1px rgba(15,23,42,0.5) inset,0 2px 10px rgba(124,58,237,0.35)}
.modal-body::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,rgba(139,92,246,1),rgba(34,211,238,0.95));box-shadow:0 0 0 1px rgba(15,23,42,0.55) inset,0 4px 14px rgba(124,58,237,0.45)}
.debug-console{position:fixed;right:16px;bottom:10px;width:min(420px,calc(100% - 32px));max-height:55vh;background:rgba(3,8,18,0.95);border:1px solid rgba(248,250,252,0.35);border-radius:12px;box-shadow:0 16px 36px rgba(2,6,23,0.65);display:none;flex-direction:column;z-index:30}
.debug-console.open{display:flex}
.debug-header{display:flex;align-items:center;justify-content:space-between;padding:6px 8px;border-bottom:1px solid rgba(148,163,184,0.25)}
.debug-title{font-size:11px;font-weight:700;color:#e5e7eb;letter-spacing:0.04em;text-transform:uppercase}
.debug-actions{display:flex;gap:6px}
.debug-btn{font-size:10px;color:#e5e7eb;background:rgba(15,23,42,0.8);border:1px solid rgba(148,163,184,0.35);border-radius:6px;padding:2px 6px;cursor:pointer}
.debug-btn:hover{background:rgba(30,41,59,0.9)}
.debug-log{flex:1;overflow:auto;padding:8px;font-family:"Consolas","Courier New",monospace;font-size:10px;line-height:1.4}
.debug-line{margin-bottom:4px;color:#e2e8f0}
.debug-line:last-child{margin-bottom:0}
.debug-line.debug-warn{color:#facc15}
.debug-line.debug-error{color:#fca5a5}
.debug-line.debug-info{color:#a5b4fc}
.debug-time{color:#94a3b8;margin-right:6px}
.debug-input-row{padding:6px 8px;border-top:1px solid rgba(148,163,184,0.25)}
.debug-input{width:100%;background:#0b1220;border:1px solid rgba(148,163,184,0.35);border-radius:6px;padding:4px 6px;color:#e5e7eb;font-size:10px;font-family:"Consolas","Courier New",monospace}
