/* Shared Device center — web, PWA and Android (Capacitor). */
#ngm-device-root {
  position: fixed; inset: 0; z-index: 39;
  background: radial-gradient(1200px 600px at 50% -10%, #10213a 0, var(--bg, #0b0f1a) 55%);
  color: var(--text, #dbe4f5);
  font-family: var(--font-ui, "Segoe UI", system-ui, sans-serif);
  overflow: hidden;
  padding-bottom: calc(var(--tabbar-h, 60px) + env(safe-area-inset-bottom));
}
#ngm-device-root[hidden] { display: none !important; }
body.ngm-device-open { overflow: hidden; }

.ngm-device-shell { height: 100%; display: flex; flex-direction: column; max-width: 1180px; margin: 0 auto; }
.ngm-device-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid var(--panel-border, #22314a);
  background: rgba(8, 13, 23, .9); backdrop-filter: blur(10px);
}
.ngm-device-heading { min-width: 0; }
.ngm-device-kicker { font-size: 9.5px; letter-spacing: .14em; color: var(--muted, #8fa2c2); font-weight: 800; }
.ngm-device-head h2 { margin: 2px 0 0; font-size: 21px; line-height: 1.1; outline: none; }
.ngm-device-head p { margin: 3px 0 0; font-size: 11px; color: var(--muted, #8fa2c2); }
.ngm-device-head-actions { display: flex; gap: 6px; flex: none; }
.ngm-device-icon {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--panel-border, #22314a);
  background: var(--panel, #0f1a2c); color: var(--text, #dbe4f5); font-size: 18px; cursor: pointer;
}
.ngm-device-icon:focus-visible, .ngm-device-btn:focus-visible, .ngm-device-card button:focus-visible, .ngm-audio-event:focus-visible {
  outline: 2px solid var(--accent, #ffb020); outline-offset: 2px;
}
.ngm-device-body { overflow: auto; padding: 12px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* status + hero */
.ngm-device-status-strip { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.ngm-device-chip { border: 1px solid var(--panel-border, #22314a); border-radius: 999px; background: rgba(15,26,44,.72); color: var(--muted, #8fa2c2); padding: 4px 8px; font-size: 10px; }
.ngm-device-chip b { color: var(--text, #dbe4f5); font-weight: 700; }
.ngm-device-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  padding: 14px 15px; margin-bottom: 10px; border: 1px solid #284366; border-radius: 16px;
  background: linear-gradient(135deg, rgba(27,48,79,.9), rgba(12,22,38,.94)); box-shadow: inset 0 1px 0 #ffffff0a;
}
.ngm-device-hero h2 { margin: 4px 0 4px; font-size: 21px; line-height: 1.15; }
.ngm-device-hero p { margin: 0; max-width: 680px; color: #9fb0ca; font-size: 11.5px; line-height: 1.4; }
.ngm-device-hero-meta { flex: none; }
.ngm-device-feature { border: 1px solid #355882; border-radius: 16px; background: linear-gradient(130deg, rgba(19,39,65,.96), rgba(9,18,32,.96)); padding: 12px; margin-bottom: 12px; }
.ngm-device-feature-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ngm-device-feature-head h3 { margin: 3px 0 0; font-size: 15px; }
.ngm-device-feature-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 10px; }
.ngm-device-meter { display: flex; align-items: end; gap: 2px; height: 42px; width: 92px; padding: 4px; border: 1px solid #26405e; border-radius: 8px; background: #091321; }
.ngm-device-meter i { flex: 1; height: calc(var(--v) * 100%); min-height: 2px; border-radius: 2px 2px 0 0; background: linear-gradient(#7fd3ff, #36d6b1); opacity: .9; }
.ngm-device-feature-copy { min-width: 0; display: grid; gap: 2px; }
.ngm-device-feature-copy b { font-size: 12.5px; }
.ngm-device-feature-copy span { color: var(--muted, #8fa2c2); font-size: 10.5px; line-height: 1.35; overflow-wrap: anywhere; }
.ngm-device-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 14px 2px 7px; }
.ngm-device-section-head h3 { margin: 0; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: #ffcf70; }
.ngm-device-section-head span { color: var(--muted, #8fa2c2); font-size: 10px; }
.ngm-device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ngm-device-card { min-width: 0; border: 1px solid var(--panel-border, #22314a); border-radius: 13px; background: rgba(15,26,44,.86); padding: 10px; display: grid; gap: 6px; }
.ngm-device-card-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ngm-device-card-icon { width: 24px; height: 24px; flex: none; color: #7fd3ff; }
.ngm-device-card-icon svg { width: 24px; height: 24px; display: block; }
.ngm-device-card h3 { margin: 0; font-size: 12.5px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.ngm-device-card p { margin: 0; font-size: 10.5px; line-height: 1.35; color: var(--muted, #8fa2c2); }
.ngm-device-card-note { font-size: 10px; color: #ffcf70; line-height: 1.35; }
.ngm-device-card .ngm-device-actions { margin-top: auto; }
.ngm-device-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.ngm-device-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.ngm-device-backrow { position: sticky; top: -12px; z-index: 3; padding: 5px 0; background: rgba(8,13,23,.92); backdrop-filter: blur(8px); }
.ngm-device-btn {
  border: 1px solid var(--panel-border, #22314a); border-radius: 8px; background: #16233a; color: var(--text, #dbe4f5);
  padding: 7px 9px; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center;
}
.ngm-device-btn.primary { background: var(--accent, #ffb020); border-color: var(--accent, #ffb020); color: #08101f; }
.ngm-device-btn.danger { background: #3a1420; border-color: #7d2638; color: #ffd7dd; }
.ngm-device-btn:disabled { opacity: .45; cursor: not-allowed; }
.ngm-device-pill { display: inline-block; border-radius: 999px; padding: 2px 7px; font-size: 9.5px; font-weight: 800; white-space: nowrap; }
.ngm-device-pill.ok { background: #123a2a; color: #7bf0b0; }
.ngm-device-pill.warn { background: #3a2c10; color: #ffcf70; }
.ngm-device-pill.bad { background: #3a1420; color: #ff9aab; }
.ngm-device-pill.muted { background: #16233a; color: #a9b8d3; }
.ngm-device-note { border: 1px solid var(--panel-border, #22314a); border-radius: 10px; background: #0a1220; color: var(--muted, #8fa2c2); padding: 8px 9px; font-size: 10.5px; line-height: 1.4; margin: 8px 0; }
.ngm-device-fine { color: #8fa2c2; font-size: 10px; line-height: 1.4; margin: 6px 0; }
.ngm-device-warning { border-color: #7d2638; background: #2a1018; color: #ffd7dd; }
.ngm-device-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; line-height: 1.45; color: #b9c8e2; white-space: pre-wrap; word-break: break-word; }
.ngm-device-list { display: grid; gap: 7px; margin-top: 8px; }
.ngm-device-object { border: 1px solid var(--panel-border, #22314a); border-radius: 12px; background: #0a1220; padding: 9px; }
.ngm-device-object-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ngm-device-object-head b { display: block; font-size: 12.5px; }
.ngm-device-object-head small { color: var(--muted, #8fa2c2); font-size: 10px; }
.ngm-device-object-head > span { color: var(--muted, #8fa2c2); font-size: 9.5px; white-space: nowrap; }
.ngm-device-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 7px 0; overflow: hidden; border: 1px solid #1b2a43; border-radius: 9px; }
.ngm-device-facts span { min-width: 0; background: #0d1829; padding: 6px 7px; display: grid; gap: 2px; }
.ngm-device-facts small { color: var(--muted, #8fa2c2); font-size: 8.5px; letter-spacing: .03em; text-transform: uppercase; }
.ngm-device-facts b { color: #dce6f7; font-size: 10.5px; overflow-wrap: anywhere; }
.ngm-device-tech { margin-top: 7px; }
.ngm-device-tech summary { cursor: pointer; color: #7fd3ff; font-size: 10.5px; }
.ngm-device-tech[open] summary { margin-bottom: 6px; }
.ngm-device-caps { display: grid; gap: 4px; }
.ngm-device-cap { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 5px 0; border-bottom: 1px solid #1b2a43; font-size: 11px; }
.ngm-device-file { display: inline-flex; align-items: center; gap: 5px; border: 1px dashed #3b5a82; border-radius: 8px; padding: 6px 8px; color: #9fd8ff; font-size: 10.5px; cursor: pointer; }
.ngm-device-file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ngm-device-photo { width: min(100%, 360px); border-radius: 10px; border: 1px solid #2b3b57; display: block; }

/* audio analyzer */
.ngm-audio-shell { display: grid; gap: 9px; padding-bottom: 14px; }
.ngm-audio-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ngm-audio-top h3 { margin: 2px 0 0; font-size: 18px; }
.ngm-audio-statusline { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; color: #9fb0ca; font-size: 10px; }
.ngm-audio-statusline > span { display: inline-flex; align-items: center; }
.ngm-audio-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ngm-audio-basic { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 8px; align-items: stretch; }
.ngm-audio-visual, .ngm-audio-result { min-width: 0; border: 1px solid var(--panel-border, #22314a); border-radius: 12px; background: rgba(10,18,32,.9); padding: 8px; }
.ngm-audio-spectrum { height: 100px; margin: 0; }
.ngm-audio-level { display: flex; justify-content: space-between; gap: 5px; color: #8fa2c2; font-size: 9.5px; }
.ngm-audio-level b { color: #dce6f7; font-size: 10.5px; }
.ngm-audio-result { display: grid; align-content: start; gap: 4px; }
.ngm-audio-result > b { font-size: 16px; line-height: 1.15; }
.ngm-audio-result-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; color: #9fb0ca; font-size: 10px; }
.ngm-audio-toplist { color: #9fd8ff; font-size: 10px; min-height: 13px; overflow-wrap: anywhere; }
.ngm-audio-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.ngm-audio-disclosure { border: 1px solid var(--panel-border, #22314a); border-radius: 12px; background: rgba(10,18,32,.68); padding: 8px 9px; }
.ngm-audio-disclosure > summary { cursor: pointer; color: #7fd3ff; font-size: 11px; font-weight: 700; }
.ngm-audio-disclosure[open] > summary { margin-bottom: 7px; }
.ngm-audio-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ngm-audio-charts > div { min-width: 0; }
.ngm-audio-charts > div:last-child { grid-column: 1 / -1; }
.ngm-device-canvas { width: 100%; height: 110px; display: block; margin: 4px 0; border: 1px solid var(--panel-border, #22314a); border-radius: 9px; background: #0a1220; }
.ngm-audio-charts .ngm-device-canvas { height: 132px; }
.ngm-audio-metrics, .ngm-audio-expert { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 7px 0; }
.ngm-audio-metrics span, .ngm-audio-expert span { min-width: 0; background: #0d1829; border: 1px solid #1b2a43; border-radius: 8px; padding: 6px; display: grid; gap: 2px; }
.ngm-audio-metrics small, .ngm-audio-expert small { color: #8fa2c2; font-size: 8.5px; text-transform: uppercase; letter-spacing: .03em; }
.ngm-audio-metrics b, .ngm-audio-expert b { color: #dce6f7; font-size: 10.5px; overflow-wrap: anywhere; }
.ngm-audio-filters { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.ngm-audio-filters select, .ngm-audio-notify-row input, .ngm-audio-trim input {
  background: #0b1423; border: 1px solid #2b3b57; color: #dbe4f5; border-radius: 7px; padding: 6px 7px; font: inherit; font-size: 10.5px; min-width: 0; max-width: 100%;
}
.ngm-audio-timeline { display: grid; gap: 4px; max-height: 240px; overflow: auto; padding-right: 2px; }
.ngm-audio-event { display: flex; align-items: flex-start; gap: 7px; width: 100%; text-align: left; border: 1px solid #22314a; border-radius: 9px; background: #0d1829; color: #dbe4f5; padding: 7px; cursor: pointer; }
.ngm-audio-event.active { border-color: #ffb020; background: #16233a; }
.ngm-audio-event-dot { width: 7px; height: 7px; border-radius: 50%; background: #36d6b1; margin-top: 4px; flex: none; }
.ngm-audio-event b { display: block; font-size: 11px; }
.ngm-audio-event small { color: #8fa2c2; font-size: 9.5px; }
.ngm-audio-event-detail { border: 1px solid #2b3b57; border-radius: 10px; background: #0a1220; padding: 8px; margin-top: 7px; }
.ngm-audio-sample { border: 1px solid #2b3b57; border-radius: 10px; background: #0a1220; padding: 8px; display: grid; gap: 6px; margin-top: 7px; }
.ngm-audio-sample > div:first-child { display: grid; gap: 2px; }
.ngm-audio-sample small { color: #8fa2c2; font-size: 10px; overflow-wrap: anywhere; }
.ngm-audio-sample audio { width: 100%; max-width: 520px; }
.ngm-audio-trim { display: flex; flex-wrap: wrap; align-items: end; gap: 5px; }
.ngm-audio-trim label { display: grid; gap: 2px; color: #8fa2c2; font-size: 9.5px; }
.ngm-audio-trim input { width: 82px; }
.ngm-audio-toggle { display: flex; align-items: center; gap: 6px; color: #dce6f7; font-size: 10.5px; margin: 6px 0; }
.ngm-audio-notify-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ngm-audio-notify-row label { display: grid; gap: 2px; color: #8fa2c2; font-size: 9.5px; }
.ngm-audio-notify-row input { width: 90px; }
.ngm-audio-notify-cats { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 6px; color: #a9b8d3; font-size: 10px; }
.ngm-audio-notify-cats label { display: inline-flex; align-items: center; gap: 4px; }
.ngm-sensors-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 10px; align-items: center; }
.ngm-compass { border: 1px solid #2b3b57; border-radius: 13px; background: #0a1220; padding: 6px; display: grid; justify-items: center; }
.ngm-compass svg { width: 100%; max-height: 130px; display: block; }
.ngm-compass > span { display: flex; align-items: baseline; gap: 6px; margin-top: -10px; }
.ngm-compass > span b { font-size: 18px; }
.ngm-compass > span small { color: #8fa2c2; font-size: 9.5px; }

/* toast / web camera */
.ngm-device-toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h, 60px) + 16px); transform: translateX(-50%); z-index: 45; max-width: min(92vw, 460px); background: #16233a; border: 1px solid #2b3b57; color: var(--text, #dbe4f5); border-radius: 10px; padding: 8px 11px; font-size: 11px; box-shadow: 0 8px 24px #0008; }
#ngm-web-camera { position: fixed; inset: 0; z-index: 46; background: #02060d; display: grid; grid-template-rows: 1fr auto; gap: 8px; padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
#ngm-web-camera video { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; background: #000; }
#ngm-web-camera .ngm-device-actions-row { justify-content: center; }
#ngm-web-camera .ngm-device-note { margin: 0; }

@media (max-width: 760px) {
  .ngm-device-body { padding: 10px; }
  .ngm-device-hero { align-items: flex-start; }
  .ngm-device-hero h2 { font-size: 19px; }
  .ngm-device-feature-body { grid-template-columns: auto minmax(0, 1fr); }
  .ngm-device-feature-body > .ngm-device-actions { grid-column: 1 / -1; }
  .ngm-device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ngm-audio-basic { grid-template-columns: 1fr; }
  .ngm-audio-charts { grid-template-columns: 1fr; }
  .ngm-audio-charts > div:last-child { grid-column: auto; }
  .ngm-sensors-layout { grid-template-columns: 170px minmax(0, 1fr); }
}
@media (max-width: 430px) {
  .ngm-device-head h2 { font-size: 18px; }
  .ngm-device-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ngm-audio-metrics, .ngm-audio-expert { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ngm-sensors-layout { grid-template-columns: 1fr; }
  .ngm-compass { max-width: 280px; width: 100%; justify-self: center; }
  .ngm-audio-top { display: block; }
  .ngm-audio-statusline { justify-content: flex-start; margin-top: 5px; }
}
@media (max-width: 360px) {
  .ngm-device-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1000px) {
  .ngm-device-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ngm-audio-charts { grid-template-columns: 1.15fr .85fr; }
  .ngm-audio-charts > div:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Sky Lab — DEMO simulator */
#ngm-skylab-root {
  position: fixed; inset: 0; z-index: 44; background: #070c15; color: var(--text, #dbe4f5);
  font-family: "Segoe UI", system-ui, sans-serif; overflow: hidden;
}
#ngm-skylab-root[hidden] { display: none !important; }
body.ngm-skylab-open { overflow: hidden; }
.ngm-skylab-shell { height: 100%; display: flex; flex-direction: column; max-width: 1100px; margin: 0 auto; }
.ngm-skylab-head { display: flex; justify-content: space-between; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 14px 10px; border-bottom: 1px solid #22314a; background: #080d17; }
.ngm-skylab-head h2 { margin: 2px 0; font-size: 20px; }
.ngm-skylab-head p { margin: 0; font-size: 11px; color: #8fa2c2; }
.ngm-skylab-kicker { font-size: 10px; letter-spacing: .14em; font-weight: 800; color: #ffb020; }
.ngm-skylab-demo { background: #3a1420; color: #ff9aab; border-radius: 999px; padding: 2px 7px; }
.ngm-skylab-head-actions { display: flex; gap: 6px; }
.ngm-skylab-icon { width: 38px; height: 38px; border-radius: 11px; border: 1px solid #22314a; background: #0f1a2c; color: #dbe4f5; font-size: 18px; cursor: pointer; }
.ngm-skylab-toolbar { padding: 9px 12px; border-bottom: 1px solid #22314a; background: #0a1220; display: grid; gap: 7px; }
.ngm-skylab-toolbar label { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #8fa2c2; }
.ngm-skylab-toolbar select, .ngm-skylab-toolbar input { background: #0b1423; border: 1px solid #22314a; color: #dbe4f5; border-radius: 7px; padding: 5px 6px; font-size: 11px; }
.ngm-skylab-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.ngm-skylab-btn { border: 1px solid #22314a; border-radius: 8px; background: #16233a; color: #dbe4f5; padding: 6px 9px; font-size: 10.5px; font-weight: 700; cursor: pointer; }
.ngm-skylab-btn.primary { background: #ffb020; border-color: #ffb020; color: #08101f; }
.ngm-skylab-btn.danger { background: #3a1420; border-color: #7d2638; color: #ffd7dd; }
.ngm-skylab-origin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ngm-skylab-origin input { width: 108px; }
.ngm-skylab-status { margin-left: auto; color: #ffcf70; font-size: 10.5px; font-weight: 800; }
.ngm-skylab-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 0; }
.ngm-skylab-list { overflow: auto; border-right: 1px solid #22314a; padding: 8px; background: #080d17; }
.ngm-skylab-item { width: 100%; text-align: left; border: 1px solid #22314a; border-radius: 9px; background: #0f1a2c; color: #dbe4f5; padding: 8px; margin-bottom: 6px; cursor: pointer; }
.ngm-skylab-item.active { border-color: #ffb020; background: #16233a; }
.ngm-skylab-item b { display: block; font-size: 12px; }
.ngm-skylab-item small { color: #8fa2c2; font-size: 10px; }
.ngm-skylab-editor { overflow: auto; padding: 12px; }
.ngm-skylab-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ngm-skylab-editor label { display: grid; gap: 2px; font-size: 10.5px; color: #8fa2c2; }
.ngm-skylab-editor input, .ngm-skylab-editor select { background: #0b1423; border: 1px solid #22314a; color: #dbe4f5; border-radius: 7px; padding: 6px; font-size: 11px; width: 100%; box-sizing: border-box; }
.ngm-skylab-hint, .ngm-skylab-empty { color: #8fa2c2; font-size: 11px; line-height: 1.4; margin-top: 10px; }
.ngm-skylab-toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 47; background: #16233a; border: 1px solid #2b3b57; color: #dbe4f5; border-radius: 10px; padding: 8px 11px; font-size: 11px; max-width: 92vw; }
@media (max-width: 700px) {
  .ngm-skylab-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .ngm-skylab-list { max-height: 32vh; border-right: 0; border-bottom: 1px solid #22314a; }
  .ngm-skylab-editor-grid { grid-template-columns: 1fr; }
  .ngm-skylab-status { width: 100%; margin-left: 0; }
}

/* ── Vision AI — lokalna analiza obrazu ─────────────────────────────────── */
.ngm-vision-statusline{display:flex;align-items:center;gap:7px;margin:8px 0;font-size:11px;color:var(--ngm-muted,#93a8c4)}
.ngm-vision-dot{width:9px;height:9px;border-radius:50%;background:#42556e;box-shadow:0 0 0 2px rgba(66,85,110,.25)}
.ngm-vision-dot.running{background:#6ee7a0;box-shadow:0 0 0 2px rgba(110,231,160,.22)}
.ngm-vision-dot.loading{background:#ffcf70;box-shadow:0 0 0 2px rgba(255,207,112,.22)}
.ngm-vision-dot.error{background:#ff7b8a;box-shadow:0 0 0 2px rgba(255,123,138,.22)}
.ngm-vision-stage{position:relative;width:100%;aspect-ratio:4/3;max-height:42dvh;margin:8px 0;border:1px solid #22344b;border-radius:12px;overflow:hidden;background:#02060d}
.ngm-vision-stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#02060d;display:block}
.ngm-vision-boxes{position:absolute;inset:0;pointer-events:none}
.ngm-vision-box{position:absolute;pointer-events:auto;background:transparent;border:1.5px solid rgba(125,211,252,.95);border-radius:5px;padding:0;cursor:pointer;box-shadow:0 0 0 1px rgba(2,6,13,.55),0 0 10px rgba(125,211,252,.22)}
.ngm-vision-box.selected{border-color:#f5f3ff;box-shadow:0 0 0 2px rgba(245,243,255,.8)}
.ngm-vision-box.confirmed{border-color:#6ee7a0}
.ngm-vision-box.rejected{border-color:#ff7b8a;opacity:.55}
.ngm-vision-box span{position:absolute;left:-1px;top:-18px;max-width:170px;padding:1px 4px;border-radius:4px;background:rgba(4,12,24,.86);color:#dff6ff;font:600 9.5px/1.35 system-ui;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.ngm-vision-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:#8fa2c2;font-size:11px;background:radial-gradient(circle at 50% 60%,#0e2036,#02060d 70%)}
.ngm-vision-list{display:grid;gap:5px;margin-top:6px}
.ngm-vision-row{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;border:1px solid #22344b;background:#0a1729;color:#e6eefc;border-radius:8px;padding:6px 8px;font-size:11.5px;cursor:pointer}
.ngm-vision-row.selected{border-color:#7dd3fc;box-shadow:inset 0 0 0 1px rgba(125,211,252,.3)}
.ngm-vision-row small{display:block;color:#93a8c4;font-size:9.5px}
.ngm-vision-detail{margin-top:7px}
.ngm-vision-history{display:grid;gap:5px;margin-top:6px}
.ngm-vision-history-row{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;border:1px solid #22344b;background:#0a1729;color:#e6eefc;border-radius:7px;padding:5px 7px;font-size:11px;cursor:pointer}
.ngm-vision-history-row small{display:block;color:#93a8c4;font-size:9.5px}
@media(max-width:520px){.ngm-vision-stage{aspect-ratio:3/4;max-height:38dvh}}
.ngm-vision-placeholder[hidden]{display:none!important}
