:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #62717a;
  --line: #d7e0e4;
  --panel: #ffffff;
  --surface: #eef3f4;
  --surface-strong: #dfe8ea;
  --accent: #057e78;
  --accent-dark: #075f5b;
  --accent-soft: rgba(5, 126, 120, 0.1);
  --electric: #35d4c5;
  --copper: #d4942c;
  --amber: #c88617;
  --warn: #b96c10;
  --danger: #b9332a;
  --ok: #237156;
  --info: #2c5f99;
  --rail: #111a20;
  --rail-2: #1c2a31;
  --rail-3: #26373f;
  --field: #f7faf9;
  --shadow: 0 18px 50px rgba(15, 26, 33, 0.12);
  --tight-shadow: 0 10px 28px rgba(15, 26, 33, 0.08);
  --glow: 0 0 0 1px rgba(46, 184, 167, 0.16), 0 22px 70px rgba(5, 126, 120, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(5, 126, 120, 0.06), rgba(200, 134, 23, 0.04) 48%, rgba(238, 243, 244, 0) 78%),
    var(--surface);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

[hidden],
.is-hidden {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(120deg, rgba(9, 16, 20, 0.99), rgba(13, 32, 39, 0.98) 48%, rgba(12, 64, 62, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 56px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 56px);
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 430px);
  gap: 28px;
  width: min(1040px, 100%);
  align-items: center;
}

.login-intel,
.login-card {
  display: grid;
  min-width: 0;
  border-radius: 8px;
}

.login-intel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 28px;
  align-content: start;
  gap: 34px;
  border: 1px solid rgba(134, 210, 203, 0.22);
  background:
    radial-gradient(circle at 62% 40%, rgba(53, 212, 197, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(7, 16, 19, 0.96), rgba(11, 36, 42, 0.95)),
    repeating-linear-gradient(90deg, rgba(53, 212, 197, 0.06) 0, rgba(53, 212, 197, 0.06) 1px, transparent 1px, transparent 38px);
  box-shadow: var(--glow);
  color: #eef8f7;
}

.login-intel::after {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.intel-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.intel-brand strong,
.intel-brand span {
  display: block;
}

.intel-brand strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.05;
}

.intel-brand span {
  margin-top: 4px;
  color: #91b3b8;
  font-size: 12px;
  font-weight: 780;
}

.intel-topline {
  display: grid;
  gap: 10px;
  max-width: 600px;
}

.intel-topline span,
.intel-metrics span,
.eyebrow {
  color: #8fb0b4;
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intel-topline strong {
  max-width: 620px;
  color: #f2faf9;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.92;
}

.intel-topline p {
  max-width: 560px;
  margin: 0;
  color: #b7cace;
  font-size: 16px;
  line-height: 1.5;
}

.ops-radar {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(143, 176, 180, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 38%, rgba(53, 212, 197, 0.09)),
    rgba(255, 255, 255, 0.025);
}

.ops-radar::before,
.ops-radar::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.ops-radar::before {
  inset: 46px;
  border: 1px solid rgba(53, 212, 197, 0.2);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 80px rgba(53, 212, 197, 0.1);
}

.ops-radar::after {
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #35d4c5;
  box-shadow: 0 0 24px rgba(53, 212, 197, 0.86);
  transform: translate(-50%, -50%);
}

.radar-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0, rgba(255, 255, 255, 0.055) 1px, transparent 1px, transparent 44px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 44px);
}

.radar-sweep {
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 230deg, transparent 0deg, transparent 42deg, rgba(53, 212, 197, 0.13) 54deg, transparent 76deg, transparent 360deg);
  opacity: 0.9;
}

.radar-node {
  position: absolute;
  z-index: 1;
  width: 14px;
  height: 14px;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(171, 241, 232, 0.92);
  border-radius: 999px;
  background: rgba(53, 212, 197, 0.3);
  color: #ffffff;
  font-size: 0;
  font-weight: 850;
  box-shadow: 0 0 24px rgba(53, 212, 197, 0.68);
}

.radar-node span {
  display: none;
}

.node-primary {
  top: 28%;
  left: 24%;
}

.node-secondary {
  right: 22%;
  top: 43%;
  border-color: rgba(212, 148, 44, 0.48);
  background: rgba(212, 148, 44, 0.34);
  box-shadow: 0 0 24px rgba(212, 148, 44, 0.58);
}

.node-secondary span {
  color: #ffd894;
}

.node-tertiary {
  bottom: 24%;
  left: 44%;
}

.radar-line {
  position: absolute;
  z-index: 0;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(46, 184, 167, 0.08), rgba(46, 184, 167, 0.72), rgba(200, 134, 23, 0.42));
}

.line-a {
  top: 34%;
  left: 26%;
  width: 46%;
  transform: rotate(18deg);
}

.line-b {
  right: 38%;
  bottom: 28%;
  width: 40%;
  transform: rotate(146deg);
}

.signal-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.signal-stack div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

.signal-stack span {
  display: block;
  color: var(--electric);
  font-size: 11px;
  font-weight: 900;
}

.signal-stack strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 14px;
}

.signal-stack small {
  display: block;
  margin-top: 5px;
  color: #9fb7bb;
  font-size: 12px;
  line-height: 1.35;
}

.intel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.intel-metrics div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.intel-metrics strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-card {
  gap: 18px;
  align-content: start;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 249, 0.98));
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.32);
}

.mfa-card {
  align-self: center;
}

.login-copy h2,
.login-copy p {
  margin: 0;
}

.login-copy h2 {
  margin-top: 8px;
  font-size: 44px;
  line-height: 1;
}

.login-copy p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.identity-strip {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
}

.identity-strip div,
.provisioning-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.identity-strip div {
  min-width: 0;
  padding: 11px 12px;
}

.identity-strip span,
.provisioning-panel span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.identity-strip strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provisioning-panel {
  padding: 13px;
  border-color: rgba(185, 108, 16, 0.38);
  background: #fff8eb;
  color: #4e350a;
}

.provisioning-panel strong {
  display: block;
  font-size: 15px;
}

.provisioning-panel p {
  margin: 6px 0 9px;
  color: #684c18;
  line-height: 1.45;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.primary-button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #0b948c, var(--accent-dark));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(5, 126, 120, 0.22);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.passkey-button {
  min-height: 54px;
  font-size: 16px;
}

.setup-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.setup-panel summary {
  position: relative;
  min-height: 44px;
  padding: 12px 40px 12px 14px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
  list-style: none;
}

.setup-panel summary::-webkit-details-marker {
  display: none;
}

.setup-panel summary::after {
  position: absolute;
  right: 14px;
  top: 50%;
  color: var(--accent);
  content: "+";
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%);
}

.setup-panel[open] summary {
  border-bottom: 1px solid var(--line);
}

.setup-panel[open] summary::after {
  content: "-";
}

.setup-fields {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.wide-button {
  width: 100%;
  justify-content: center;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.auth-message {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
  overflow-x: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(8, 125, 117, 0.1), transparent 38%),
    var(--rail);
  color: #f8fbfc;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-context {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.sidebar-context span {
  display: block;
  color: #87a9ad;
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.sidebar-context strong {
  display: block;
  margin-top: 5px;
  color: #eff7f7;
  font-size: 13px;
  line-height: 1.35;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(53, 212, 197, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 68% 24%, rgba(212, 148, 44, 0.2), transparent 32%),
    radial-gradient(circle at 26% 74%, rgba(53, 212, 197, 0.22), transparent 38%),
    linear-gradient(135deg, #071013, #133238 52%, #0b2226);
  box-shadow: 0 12px 28px rgba(5, 126, 120, 0.22);
  isolation: isolate;
}

.brand-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-icon-frame {
  fill: rgba(238, 248, 247, 0.035);
  stroke: rgba(164, 232, 224, 0.2);
  stroke-width: 1.4;
}

.brand-icon-camera {
  fill: rgba(238, 248, 247, 0.1);
  stroke: rgba(176, 222, 221, 0.64);
  stroke-width: 1.7;
}

.brand-icon-lens-ring {
  fill: rgba(53, 212, 197, 0.12);
  stroke: rgba(238, 248, 247, 0.9);
  stroke-width: 2.6;
}

.brand-icon-lens {
  fill: #35d4c5;
  filter: drop-shadow(0 0 5px rgba(53, 212, 197, 0.76));
}

.brand-icon-route-shadow,
.brand-icon-route {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-icon-route-shadow {
  stroke: rgba(53, 212, 197, 0.28);
  stroke-width: 10;
}

.brand-icon-route {
  stroke: #e4ba55;
  stroke-width: 4;
}

.brand-icon-node {
  fill: #35d4c5;
  stroke: #071013;
  stroke-width: 1.6;
}

.brand-icon-node.is-warn {
  fill: #d4942c;
}

.compact-brand .brand-mark {
  width: 42px;
  height: 42px;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p {
  margin: 0;
}

.brand h1 {
  font-size: 20px;
  line-height: 1.1;
}

.brand p {
  margin-top: 3px;
  color: #aebdc4;
  font-size: 13px;
}

.login-card .brand h1 {
  color: var(--ink);
}

.login-card .brand p {
  color: var(--muted);
  font-weight: 720;
}

.tabs {
  display: grid;
  gap: 8px;
}

.tab {
  width: 100%;
  padding: 12px 13px;
  border-radius: 8px;
  background: transparent;
  color: #d7e0e5;
  text-align: left;
  font-weight: 760;
  transition:
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.tab.is-active,
.tab:hover {
  background: var(--rail-2);
  color: #ffffff;
}

.tab.is-active {
  box-shadow: inset 3px 0 0 #2eb8a7;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.secondary-button,
.action-button {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

.secondary-button {
  flex: 1;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f2c75c;
  color: #121b20;
  font-weight: 800;
}

.workspace {
  min-width: 0;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(238, 243, 244, 0.9)),
    var(--surface);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(215, 224, 228, 0.8);
}

.topbar-tools {
  display: grid;
  width: 100%;
  justify-items: end;
  gap: 10px;
}

.session-tools {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: stretch;
  gap: 8px;
  width: 100%;
}

.session-tools .secondary-button {
  width: 100%;
}

.context-select {
  width: 100%;
  min-width: 0;
  background: #ffffff;
}

.session-chip {
  justify-self: end;
  max-width: 100%;
  overflow: hidden;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar h2 {
  font-size: 32px;
  line-height: 1.12;
}

.topbar p {
  margin-top: 6px;
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  justify-content: stretch;
  gap: 8px;
}

.metric {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f7faf9);
  box-shadow: var(--tight-shadow);
}

.metric strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.control-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.control-strip-item {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 249, 0.98));
  box-shadow: var(--tight-shadow);
}

.control-strip-item:first-child {
  border-color: rgba(5, 126, 120, 0.32);
  box-shadow: var(--tight-shadow), inset 0 3px 0 rgba(5, 126, 120, 0.78);
}

.control-strip-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.control-strip-item strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.queue-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(500px, 1fr) minmax(280px, 330px);
  align-items: start;
  gap: 18px;
  min-height: calc(100vh - 124px);
}

@media (min-width: 1680px) {
  .queue-layout {
    grid-template-columns: minmax(230px, 280px) minmax(560px, 1fr) minmax(340px, 380px);
  }
}

.incident-list-panel,
.camera-workbench,
.detail-panel,
.surface-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.incident-list-panel {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 249, 0.98));
}

.panel-toolbar {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfb;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

select {
  min-height: 38px;
  padding: 0 10px;
}

textarea {
  min-height: 190px;
  padding: 12px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.incident-list {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 196px);
  overflow: auto;
  padding: 14px;
}

.incident-row {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 118px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 8px 22px rgba(17, 24, 28, 0.04);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.incident-row.is-selected,
.incident-row:hover {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(8, 125, 117, 0.08), rgba(255, 255, 255, 0.96));
}

.incident-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(17, 24, 28, 0.08);
}

.incident-row.is-selected {
  box-shadow: inset 3px 0 0 var(--accent), 0 14px 30px rgba(5, 126, 120, 0.12);
}

.row-top,
.meta-row,
.action-row,
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.row-title {
  min-width: 0;
  font-weight: 800;
}

.row-title span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill,
.severity-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill {
  background: var(--surface-strong);
  color: #34444d;
}

.severity-info {
  background: #e6eef9;
  color: var(--info);
}

.severity-low {
  background: #e4f3ed;
  color: var(--ok);
}

.severity-medium {
  background: #fff1d8;
  color: var(--warn);
}

.severity-high,
.severity-urgent {
  background: #fde8e6;
  color: var(--danger);
}

.row-summary {
  display: -webkit-box;
  overflow: hidden;
  color: #334047;
  font-size: 13px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row {
  justify-content: flex-start;
  color: var(--muted);
  font-size: 12px;
}

.detail-panel {
  container-type: inline-size;
  position: sticky;
  top: 18px;
  max-height: clamp(520px, calc(100vh - 340px), 820px);
  padding: 14px;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.98));
}

.detail-empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  color: var(--muted);
  border: 1px dashed rgba(98, 113, 122, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(5, 126, 120, 0.035), rgba(200, 134, 23, 0.035));
  font-weight: 760;
}

.list-empty {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 180px;
  padding: 18px;
  color: #5d6b74;
  text-align: center;
}

.list-empty strong {
  color: #27343b;
  font-size: 15px;
}

.list-empty span {
  font-size: 13px;
}

.camera-workbench {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 28, 33, 0.98), rgba(10, 24, 28, 0.98));
  color: #eff7f7;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.camera-empty-state {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-content: center;
  gap: 18px;
  min-height: clamp(320px, 40vh, 520px);
  padding: 28px;
  background:
    radial-gradient(circle at 22% 32%, rgba(53, 212, 197, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%);
}

.camera-empty-state h3,
.camera-empty-state p {
  margin: 0;
}

.camera-empty-state h3 {
  margin-top: 8px;
  color: #ffffff;
  font-size: clamp(24px, 2vw, 34px);
}

.camera-empty-state p {
  max-width: 420px;
  margin-top: 8px;
  color: #9fb7bb;
  line-height: 1.45;
}

.camera-empty-radar {
  position: relative;
  width: 98px;
  height: 98px;
  border: 1px solid rgba(53, 212, 197, 0.36);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 24px),
    rgba(53, 212, 197, 0.06);
}

.camera-empty-radar span,
.camera-empty-radar i {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.camera-empty-radar span {
  inset: 30px;
  border: 2px solid rgba(53, 212, 197, 0.72);
}

.camera-empty-radar i {
  right: 18px;
  bottom: 18px;
  width: 13px;
  height: 13px;
  background: var(--warn);
  box-shadow: 0 0 18px rgba(212, 148, 44, 0.55);
}

.camera-empty-steps {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.camera-empty-steps span {
  padding: 7px 10px;
  border: 1px solid rgba(143, 176, 180, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cfe0e2;
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.camera-shell {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 12px;
  min-height: 0;
  padding: 14px;
}

.camera-header,
.camera-console,
.camera-status,
.capability-row {
  display: flex;
  align-items: center;
}

.camera-header {
  justify-content: space-between;
  gap: 14px;
}

.camera-header h3,
.camera-header p,
.camera-card h4,
.camera-card p {
  margin: 0;
}

.camera-header h3 {
  margin-top: 5px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.05;
}

.camera-header p {
  margin-top: 5px;
  color: #9fb7bb;
  font-size: 13px;
}

.camera-status {
  flex: 0 0 auto;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(53, 212, 197, 0.24);
  border-radius: 8px;
  background: rgba(53, 212, 197, 0.08);
  color: #bceee8;
  font-size: 12px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 16px rgba(53, 212, 197, 0.86);
}

.camera-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(143, 176, 180, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 38%),
    #071013;
  isolation: isolate;
}

.camera-frame::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0, rgba(255, 255, 255, 0.055) 1px, transparent 1px, transparent 54px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 54px);
  content: "";
}

.camera-frame::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 18%, transparent 80%, rgba(0, 0, 0, 0.34)),
    radial-gradient(circle at 50% 48%, transparent 0, transparent 56%, rgba(0, 0, 0, 0.36) 100%);
  content: "";
  pointer-events: none;
}

.video-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.scene-entry {
  background:
    radial-gradient(circle at 26% 36%, rgba(53, 212, 197, 0.18), transparent 28%),
    linear-gradient(135deg, #071013, #11282c 58%, #0d171b);
}

.scene-parking {
  background:
    linear-gradient(155deg, rgba(212, 148, 44, 0.1), transparent 32%),
    linear-gradient(180deg, #0a1215, #1b2523);
}

.scene-trash {
  background:
    radial-gradient(circle at 70% 24%, rgba(212, 148, 44, 0.14), transparent 22%),
    linear-gradient(135deg, #101716, #132327 56%, #0b1114);
}

.scene-geometry {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.scene-plane {
  position: absolute;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.plane-a {
  left: 9%;
  top: 18%;
  width: 28%;
  height: 21%;
  border: 1px solid rgba(53, 212, 197, 0.14);
}

.plane-b {
  right: 9%;
  top: 22%;
  width: 25%;
  height: 24%;
  border: 1px solid rgba(212, 148, 44, 0.18);
}

.plane-c {
  left: 22%;
  bottom: 13%;
  width: 40%;
  height: 13%;
  transform: skewX(-18deg);
  background: rgba(53, 212, 197, 0.07);
}

.camera-time,
.camera-label {
  position: absolute;
  z-index: 4;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(7, 16, 19, 0.72);
  color: #d8eeee;
  font-size: 11px;
  font-weight: 760;
}

.camera-time {
  top: 10px;
  right: 10px;
}

.camera-label {
  left: 10px;
  bottom: 10px;
}

.zone-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid rgba(53, 212, 197, 0.78);
  background: rgba(53, 212, 197, 0.09);
  pointer-events: none;
}

.zone-zone_south_entry_alcove {
  clip-path: polygon(12% 22%, 88% 21%, 82% 78%, 16% 82%);
}

.zone-zone_east_parking_gate {
  clip-path: polygon(8% 38%, 70% 36%, 74% 94%, 10% 92%);
}

.zone-zone_trash_enclosure {
  clip-path: polygon(20% 20%, 78% 20%, 84% 86%, 16% 88%);
}

.zone-overlay span {
  position: absolute;
  top: 34%;
  left: 20%;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(5, 126, 120, 0.78);
  color: #ffffff;
  font-size: 10px;
  font-weight: 820;
  white-space: nowrap;
}

.signal-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  min-width: 58px;
  min-height: 28px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 860;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.signal-zone_south_entry_alcove {
  top: 51%;
  left: 50%;
}

.signal-zone_east_parking_gate {
  top: 65%;
  left: 41%;
}

.signal-zone_trash_enclosure {
  top: 54%;
  left: 50%;
}

.camera-console {
  display: grid;
  gap: 12px;
}

.camera-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  flex: 1 1 auto;
}

.camera-toggle,
.camera-signal-row {
  min-width: 0;
  border: 1px solid rgba(143, 176, 180, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #eff7f7;
  text-align: left;
}

.camera-toggle {
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 10px;
}

.camera-toggle.is-active,
.camera-toggle:hover,
.camera-signal-row:hover {
  border-color: rgba(53, 212, 197, 0.72);
  background: rgba(53, 212, 197, 0.12);
}

.camera-toggle span,
.camera-toggle strong,
.camera-toggle small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-toggle span {
  color: #ffffff;
  font-weight: 820;
}

.camera-toggle strong,
.camera-toggle small {
  color: #9fb7bb;
  font-size: 11px;
}

.camera-sidecar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: auto;
}

.camera-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(143, 176, 180, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.camera-card h4 {
  color: #ffffff;
  font-size: 12px;
}

.camera-card p,
.camera-empty {
  margin: 6px 0 0;
  color: #9fb7bb;
  font-size: 12px;
  line-height: 1.35;
}

.capability-row {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.capability-row span {
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #cfe0e2;
  font-size: 11px;
  font-weight: 720;
}

.camera-signal-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.camera-signal-row {
  display: grid;
  gap: 3px;
  padding: 8px;
}

.camera-signal-row strong,
.camera-signal-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-signal-row strong {
  color: #ffffff;
  font-size: 12px;
}

.camera-signal-row span {
  color: #9fb7bb;
  font-size: 11px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.detail-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.detail-stack {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.section {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(214, 221, 225, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.section:first-child {
  border-color: rgba(5, 126, 120, 0.24);
  background: linear-gradient(180deg, rgba(5, 126, 120, 0.06), rgba(255, 255, 255, 0.86));
}

.notice-section {
  border-color: rgba(5, 126, 120, 0.3);
}

.action-section {
  border-color: rgba(5, 126, 120, 0.22);
  background: linear-gradient(180deg, rgba(5, 126, 120, 0.07), rgba(255, 255, 255, 0.9));
}

.section h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #27343b;
}

.summary-text {
  color: #34444d;
  line-height: 1.38;
}

.notice-section .summary-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.key-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 8px;
}

.detail-panel .key-values {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.key-value {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.key-value span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.key-value strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: break-word;
}

.detail-panel .key-value strong {
  line-height: 1.14;
  white-space: normal;
}

.disclosure-section {
  overflow: hidden;
  padding: 0;
}

.disclosure-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  color: #27343b;
  cursor: pointer;
  font-size: 14px;
  font-weight: 840;
  list-style: none;
}

.disclosure-section summary::-webkit-details-marker {
  display: none;
}

.disclosure-section summary::after {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid rgba(98, 113, 122, 0.24);
  border-radius: 999px;
  color: var(--accent-dark);
  content: "+";
  font-weight: 900;
}

.disclosure-section[open] summary::after {
  content: "-";
}

.disclosure-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
  border-top: 1px solid rgba(214, 221, 225, 0.7);
}

.detail-panel .timeline,
.detail-panel .entity-list {
  gap: 6px;
}

.detail-panel .timeline li {
  padding: 7px 8px;
}

.detail-panel .entity-item {
  padding: 8px;
}

.timeline {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: #fbfdfc;
}

.timeline small {
  color: var(--muted);
}

.reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reason-list span {
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--surface-strong);
  color: #34444d;
  font-size: 12px;
  font-weight: 700;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.detail-panel .action-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-button {
  border-color: transparent;
  background: linear-gradient(180deg, #0b948c, var(--accent-dark));
  color: #ffffff;
  width: 100%;
  min-height: 36px;
  padding: 7px 8px;
  font-size: 13px;
}

.action-button:hover {
  background: var(--accent-dark);
}

.action-button.secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.action-button.warning {
  background: var(--warn);
}

.action-button.danger {
  background: var(--danger);
}

.surface-panel {
  padding: 18px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbfb);
}

.surface-panel h3 {
  margin-top: 0;
  color: #27343b;
}

.account-properties {
  margin-top: 14px;
}

.account-command {
  display: grid;
  gap: 14px;
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 18px;
  align-items: end;
  border-color: rgba(5, 126, 120, 0.24);
  background:
    linear-gradient(135deg, rgba(5, 126, 120, 0.1), rgba(255, 255, 255, 0.96) 48%, rgba(212, 148, 44, 0.06));
}

.account-hero h3,
.account-hero p {
  margin: 0;
}

.account-hero h3 {
  margin-top: 6px;
  color: #11181c;
  font-size: clamp(26px, 2.2vw, 42px);
  line-height: 1;
}

.account-hero p {
  max-width: 720px;
  margin-top: 10px;
  color: #51616a;
  line-height: 1.45;
}

.account-hero-meta,
.account-stat-grid,
.account-grid,
.control-matrix,
.seat-list {
  display: grid;
  gap: 10px;
}

.account-hero-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-stat {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbfb);
  box-shadow: var(--tight-shadow);
}

.account-stat strong,
.account-stat span {
  display: block;
}

.account-stat strong {
  color: #11181c;
  font-size: 28px;
  line-height: 1;
}

.account-stat span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.account-grid {
  grid-template-columns: 1fr 1.05fr 1fr;
  align-items: stretch;
}

.seat-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seat-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.seat-item strong,
.seat-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-item strong {
  color: #1b272e;
}

.seat-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.control-matrix {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.control-matrix div {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(214, 221, 225, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.control-matrix span,
.control-matrix strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-matrix span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.control-matrix strong {
  margin-top: 5px;
  color: #27343b;
}

.setup-grid,
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.entity-list {
  display: grid;
  gap: 10px;
}

.entity-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.entity-item strong {
  display: block;
}

.entity-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.report-output {
  overflow: auto;
  max-height: calc(100vh - 220px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11181c;
  color: #eaf0f2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* Command UI pass */
body {
  background:
    linear-gradient(180deg, rgba(7, 16, 19, 0.035), rgba(255, 255, 255, 0) 260px),
    linear-gradient(135deg, rgba(5, 126, 120, 0.06), rgba(212, 148, 44, 0.035) 52%, rgba(238, 243, 244, 0.86)),
    var(--surface);
}

.app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(53, 212, 197, 0.08), transparent 34%),
    linear-gradient(145deg, #091215, #111e24 52%, #0c171b);
}

.sidebar .brand-mark {
  width: 42px;
  height: 42px;
}

.sidebar .brand h1 {
  font-size: 18px;
}

.sidebar-context {
  padding: 11px;
}

.tabs {
  gap: 6px;
}

.tab {
  min-height: 44px;
  padding: 11px 12px;
  color: #cad8dd;
}

.tab.is-active {
  background:
    linear-gradient(90deg, rgba(53, 212, 197, 0.16), rgba(255, 255, 255, 0.055));
  box-shadow: inset 3px 0 0 var(--electric);
}

.workspace {
  padding: 20px 22px 28px;
}

.topbar {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: end;
  gap: 20px;
  margin-bottom: 12px;
  padding-bottom: 14px;
}

.topbar h2 {
  font-size: clamp(28px, 2vw, 38px);
}

.topbar p {
  max-width: 720px;
  font-size: 14px;
}

.session-tools {
  grid-template-columns: minmax(0, 0.9fr) minmax(160px, 1.1fr) 92px;
  gap: 8px;
}

.session-chip,
.context-select,
.session-tools .secondary-button {
  min-height: 36px;
}

.session-chip {
  justify-self: stretch;
  display: flex;
  align-items: center;
}

.metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 58px;
  padding: 11px 12px;
}

.metric::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  content: "";
}

.metric-review::before {
  background: var(--warn);
}

.metric-hold::before {
  background: var(--danger);
}

.metric strong {
  font-size: 24px;
}

.metric span {
  font-size: 10px;
}

.control-strip {
  grid-template-columns: 1.3fr 1.1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.control-strip-item {
  min-height: 56px;
  padding: 10px 12px;
}

.control-strip-item.is-primary,
.control-strip-item:first-child {
  border-color: rgba(5, 126, 120, 0.42);
  background:
    linear-gradient(135deg, rgba(5, 126, 120, 0.12), rgba(255, 255, 255, 0.95));
  box-shadow: var(--tight-shadow), inset 0 3px 0 rgba(5, 126, 120, 0.78);
}

.queue-layout {
  grid-template-columns: minmax(248px, 300px) minmax(640px, 1fr) minmax(340px, 390px);
  gap: 14px;
  min-height: auto;
}

@media (max-width: 1540px) and (min-width: 1221px) {
  .queue-layout {
    grid-template-columns: minmax(248px, 300px) minmax(0, 1fr);
  }

  .camera-workbench {
    min-width: 0;
  }

  .detail-panel {
    position: static;
    grid-column: 1 / -1;
    max-height: none;
  }

  .detail-panel .detail-stack {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: start;
  }

  .detail-panel .notice-section,
  .detail-panel .disclosure-section {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1680px) {
  .queue-layout {
    grid-template-columns: minmax(270px, 320px) minmax(760px, 1fr) minmax(380px, 430px);
  }
}

@media (max-width: 1560px) and (min-width: 1351px) {
  .queue-layout {
    grid-template-columns: minmax(250px, 280px) minmax(0, 1fr) minmax(290px, 310px);
  }

  .camera-frame {
    width: 100%;
    height: clamp(330px, 44vh, 430px);
    min-height: 0;
    aspect-ratio: auto;
  }

  .detail-panel {
    position: sticky;
    top: 18px;
    grid-column: auto;
    max-height: calc(100vh - 182px);
    overflow: auto;
  }

  .detail-panel .detail-stack {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .detail-panel .notice-section,
  .detail-panel .disclosure-section {
    grid-column: 1 / -1;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1350px) and (min-width: 1221px) {
  .queue-layout {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  }

  .detail-panel {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
    overflow: visible;
  }

  .camera-frame {
    min-height: clamp(390px, 48vh, 560px);
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
  }
}

.incident-list-panel,
.camera-workbench,
.detail-panel,
.surface-panel {
  border-color: rgba(197, 209, 215, 0.9);
  box-shadow: 0 16px 38px rgba(20, 32, 38, 0.1);
}

.panel-toolbar {
  grid-template-columns: 1fr 120px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
}

select {
  min-height: 36px;
}

.incident-list {
  gap: 8px;
  max-height: calc(100vh - 246px);
  padding: 10px;
}

.incident-row {
  position: relative;
  min-width: 0;
  min-height: 104px;
  padding: 12px;
  overflow: hidden;
}

.incident-row::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(98, 113, 122, 0.24);
  content: "";
}

.incident-row.is-selected::before,
.incident-row:hover::before {
  background: var(--accent);
}

.incident-row.is-selected {
  box-shadow: 0 14px 30px rgba(5, 126, 120, 0.12);
}

.row-title {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-summary {
  -webkit-line-clamp: 2;
}

.row-top,
.meta-row {
  min-width: 0;
}

.meta-row {
  flex-wrap: wrap;
  row-gap: 6px;
}

.row-signal-line {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(98, 113, 122, 0.12);
}

.row-signal-line span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--electric));
}

.camera-workbench {
  background:
    radial-gradient(circle at 24% 18%, rgba(53, 212, 197, 0.14), transparent 30%),
    linear-gradient(180deg, #101d22, #091215 82%);
}

.camera-shell {
  gap: 10px;
  padding: 14px;
}

.camera-header {
  align-items: end;
}

.camera-header h3 {
  font-size: clamp(24px, 2vw, 34px);
}

.camera-status-stack {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: #91b3b8;
  font-size: 11px;
  font-weight: 780;
}

.camera-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.camera-overview div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(143, 176, 180, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.camera-overview span,
.camera-overview strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-overview span {
  color: #8fb0b4;
  font-size: 10px;
  font-weight: 840;
  text-transform: uppercase;
}

.camera-overview strong {
  margin-top: 4px;
  color: #ffffff;
  font-size: 14px;
}

.camera-frame {
  min-height: clamp(430px, 50vh, 650px);
  border-color: rgba(53, 212, 197, 0.44);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 0 1px rgba(53, 212, 197, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.28);
}

.camera-frame-topline {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(7, 16, 19, 0.74);
  color: #d8eeee;
  font-size: 11px;
  font-weight: 780;
}

.camera-frame-topline span {
  color: #91b3b8;
  font-weight: 860;
  text-transform: uppercase;
}

.camera-time {
  top: 10px;
  right: 10px;
}

.camera-label {
  bottom: 12px;
  left: 12px;
}

.signal-marker {
  min-width: 54px;
  min-height: 26px;
  backdrop-filter: blur(8px);
}

.camera-toggle {
  min-height: 68px;
  padding: 10px 12px;
}

.camera-sidecar {
  display: none;
}

.detail-panel {
  top: 14px;
  max-height: calc(100vh - 182px);
  padding: 10px;
}

.section {
  padding: 11px;
}

.notice-section .eyebrow {
  display: block;
  margin-bottom: 5px;
}

.action-section {
  background:
    linear-gradient(180deg, rgba(5, 126, 120, 0.09), rgba(255, 255, 255, 0.94));
}

.action-button {
  min-height: 40px;
}

.key-value {
  min-height: 56px;
}

.setup-grid,
.evidence-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 980px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-card {
    order: 1;
  }

  .login-intel {
    order: 2;
    min-height: 420px;
  }

  .intel-topline strong {
    max-width: 680px;
  }

  .app-shell,
  .topbar,
  .detail-grid,
  .setup-grid,
  .evidence-grid,
  .control-strip {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    gap: 16px;
  }

  .tabs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .tab {
    text-align: center;
  }
}

@container (max-width: 760px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1220px) {
  .queue-layout {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
    max-height: none;
  }

  .control-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .incident-list {
    max-height: none;
  }
}

@media (max-width: 620px) {
  .login-screen {
    padding: 14px;
  }

  .login-card,
  .login-intel {
    padding: 18px;
  }

  .login-copy h2 {
    font-size: 26px;
  }

  .identity-strip,
  .intel-metrics,
  .signal-stack,
  .camera-switcher,
  .camera-sidecar,
  .form-actions {
    grid-template-columns: 1fr;
  }

  .ops-radar {
    min-height: 260px;
  }

  .radar-node {
    width: 14px;
    height: 14px;
    min-width: 0;
    font-size: 0;
  }

  .line-a,
  .line-b {
    display: none;
  }

  .workspace {
    padding: 16px;
  }

  .topbar,
  .topbar-tools,
  .row-top,
  .section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .metrics,
  .session-tools,
  .key-values,
  .control-strip {
    grid-template-columns: 1fr;
  }

  .session-tools,
  .topbar-tools {
    justify-items: stretch;
    justify-content: stretch;
  }

  .context-select {
    min-width: 0;
  }

  .panel-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1220px) {
  .queue-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .camera-workbench {
    order: 1;
  }

  .incident-list-panel {
    order: 2;
  }

  .detail-panel {
    order: 3;
    max-height: none;
  }

  .incident-list {
    max-height: 390px;
  }

  .camera-frame {
    min-height: clamp(360px, 52vh, 560px);
  }

  .account-hero,
  .account-grid,
  .control-matrix {
    grid-template-columns: 1fr;
  }

  .account-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(180deg, rgba(9, 18, 22, 0.05), rgba(238, 243, 244, 0.92) 260px),
      var(--surface);
  }

  .app-shell {
    display: block;
    min-height: 100vh;
    padding-bottom: 78px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    height: auto;
    min-height: 64px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sidebar .brand {
    flex: 1;
    min-width: 0;
  }

  .sidebar .brand-mark {
    width: 40px;
    height: 40px;
  }

  .sidebar .brand h1 {
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar .brand p {
    font-size: 12px;
  }

  .sidebar-context,
  .sidebar-footer {
    display: none;
  }

  .tabs {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    padding: 7px 6px max(7px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 18, 22, 0.98);
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.26);
  }

  .tab {
    display: grid;
    place-items: center;
    min-height: 50px;
    padding: 7px 3px;
    border-radius: 8px;
    font-size: 11px;
    text-align: center;
  }

  .tab.is-active {
    box-shadow: inset 0 3px 0 var(--electric);
  }

  .workspace {
    padding: 14px 12px 20px;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .topbar h2 {
    font-size: 25px;
  }

  .topbar p {
    font-size: 13px;
  }

  .topbar-tools {
    gap: 8px;
    justify-items: stretch;
  }

  .session-tools {
    grid-template-columns: minmax(0, 1fr) 86px;
  }

  .session-chip {
    display: none;
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric {
    min-height: 54px;
    padding: 10px 8px;
  }

  .metric strong {
    font-size: 21px;
  }

  .metric span {
    font-size: 9px;
  }

  .control-strip {
    display: none;
  }

  .queue-layout {
    gap: 12px;
  }

  .incident-list-panel,
  .camera-workbench,
  .detail-panel,
  .surface-panel {
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(20, 32, 38, 0.1);
  }

  .panel-toolbar {
    position: sticky;
    top: 64px;
    z-index: 5;
    grid-template-columns: 1fr 116px;
    padding: 9px;
  }

  .incident-list {
    max-height: none;
    padding: 9px;
  }

  .incident-row {
    min-height: 102px;
  }

  .camera-shell {
    padding: 11px;
  }

  .camera-empty-state {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 280px;
    padding: 20px;
  }

  .camera-empty-radar {
    width: 76px;
    height: 76px;
  }

  .camera-header {
    align-items: start;
  }

  .camera-header h3 {
    font-size: 25px;
  }

  .camera-status-stack {
    justify-items: end;
  }

  .camera-overview {
    display: none;
  }

  .camera-frame {
    width: 100%;
    max-width: 100%;
    height: clamp(220px, 64vw, 260px);
    min-height: 0;
    aspect-ratio: auto;
  }

  .camera-frame-topline {
    max-width: calc(100% - 86px);
  }

  .zone-overlay span {
    font-size: 9px;
  }

  .camera-switcher {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
  }

  .camera-toggle {
    min-width: min(76vw, 240px);
    scroll-snap-align: start;
  }

  .detail-panel {
    padding: 9px;
    overflow: visible;
  }

  .detail-panel .action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-button {
    min-height: 44px;
    font-size: 13px;
  }

  .key-values,
  .detail-panel .key-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .account-hero {
    gap: 12px;
    padding: 14px;
  }

  .account-hero-meta,
  .account-stat-grid,
  .seat-list {
    grid-template-columns: 1fr;
  }

  .report-output {
    max-height: none;
  }
}

@media (max-width: 430px) {
  .workspace {
    padding-right: 10px;
    padding-left: 10px;
  }

  .topbar h2 {
    font-size: 24px;
  }

  .panel-toolbar {
    grid-template-columns: 1fr;
  }

  .camera-frame {
    height: clamp(220px, 64vw, 250px);
    min-height: 0;
  }

  .camera-status {
    padding: 6px 8px;
  }

  .key-values,
  .detail-panel .key-values,
  .detail-panel .action-row {
    grid-template-columns: 1fr;
  }
}
