/* SENTROS — local command intelligence.
   Canonical stylesheet: one definition per exact selector in each responsive scope.
   Existing operational controls, neural-core HUD and voice interaction share these tokens.
   Ring motion is decorative; voice waveform animates only during actual speaking/listening. */

/* 01 · Theme and foundations */
:root {
  color-scheme: dark;
  --bg: #040a12;
  --sidebar: #06101a;
  --surface: #081520;
  --surface-raised: #0c1d2a;
  --surface-hover: #112b3a;
  --border: #1c394b;
  --border-soft: #142c3c;
  --text: #e4f5ff;
  --muted: #8aa9bf;
  --faint: #63879d;
  --primary: #0c2748;
  --primary-hover: #163d6b;
  --accent: #64efff;
  --accent-dark: #123b49;
  --blue: #81b7ff;
  --danger: #ff889d;
  --warning: #f5c274;
  --success: #75dfbf;
  --radius: 8px;
  --shadow: 0 18px 55px #0005;
  font-family: "Segoe UI Variable","Segoe UI",Arial,sans-serif;
  font-synthesis: none;
  --mono: "Cascadia Code",Consolas,"Courier New",monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(ellipse at 80% 0,#103c592b,transparent 55%);
}

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

button,a,input,select,textarea {
  -webkit-tap-highlight-color: transparent;
}

button,a,select {
  touch-action: manipulation;
}

button {
  cursor: pointer;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button svg,a svg {
  flex-shrink: 0;
}

svg {
  vertical-align: middle;
}

button:disabled {
  cursor: not-allowed;
  opacity: .42;
  transform: none!important;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: #236b65;
  color: white;
}

[hidden] {
  display: none!important;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-thumb {
  background: #304258;
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* 02 · Workspace shell */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 224px;
  flex: 0 0 224px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  padding: 29px 16px 18px;
  background: linear-gradient(180deg,#081622,#040d16 78%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 26px;
}

.brand-logo,.reactor-logo,.hud-logo,.footer-logo,.voice-logo {
  display: block;
  object-fit: cover;
  object-position: center 51%;
  filter: url(#sentros-white-lettering);
}

.brand-logo {
  width: 184px;
  height: 34px;
  max-width: 100%;
}

.brand-subtitle {
  display: block;
  padding-left: 2px;
  color: #779eaf;
  font-size: 8px;
  letter-spacing: 1.55px;
  text-transform: uppercase;
  font-family: var(--mono);
}

.nav-section {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  color: #638da6;
  padding: 0 13px;
  margin: 19px 0 10px;
  font-family: var(--mono);
}

.nav-item {
  position: relative;
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 5px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 10px 12px;
  background: transparent;
  color: #87a5ba;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  transition: background .16s,color .16s,border-color .16s;
}

.nav-item:hover {
  color: #d7f6ff;
  background: #102a3b;
  border-color: #1a4358;
}

.nav-item.active {
  color: #9af5ff;
  border-color: #2d768c;
  background: linear-gradient(95deg,#123d50,#092b3b);
  box-shadow: inset 0 0 18px #4dddff05;
}

.nav-item.active:before {
  content: "";
  width: 2px;
  height: 18px;
  border-radius: 3px;
  position: absolute;
  left: -17px;
  background: var(--accent);
  box-shadow: 0 0 12px #64efff80;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  opacity: .9;
}

.nav-label {
  flex: 1;
}

.nav-count {
  font-size: 9px;
  min-width: 19px;
  padding: 1px 5px;
  border-radius: 3px;
  text-align: center;
  background: #213647;
  color: #b8d0df;
  border: 1px solid #375067;
  font-family: var(--mono);
}

.nav-item.active .nav-count {
  background: #174e5e;
  color: #b7f9ff;
  border-color: #387e8a;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
}

.site-card {
  border: 1px solid var(--border);
  padding: 13px 12px;
  border-radius: 5px;
  background: #0b202d80;
  display: flex;
  gap: 10px;
  align-items: center;
  border-color: #203e51;
}

.site-card strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}

.site-card small,.site-card .muted {
  display: block;
  font-size: 10px;
  margin-top: 2px;
}

.site-card>svg {
  color: #6f879f;
}

.avatar {
  width: 31px;
  height: 31px;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  background: #183746;
  color: #c8eaf3;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid #41556b;
  border-color: #396072;
  font-family: var(--mono);
}

.sidebar-footer {
  color: var(--faint);
  font-size: 10px;
  margin: 16px 11px 0;
}

.main {
  margin-left: 224px;
  min-width: 0;
  flex: 1;
}

.topbar {
  height: 70px;
  padding: 0 34px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #050e18dd;
}

.breadcrumb {
  color: #648aa2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
}

.breadcrumb strong,.breadcrumb .current {
  font-weight: 500;
  color: #c2dce9;
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
  color: #536c85;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--accent);
  box-shadow: 0 0 8px #64efff55;
}

.status-dot.warning {
  background: var(--warning);
}

.status-dot.danger {
  background: var(--danger);
}

.connection-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8fb9c7;
  font-size: 9px;
  white-space: nowrap;
  font-family: var(--mono);
}

.connection-pill .status-dot {
  width: 5px;
  height: 5px;
}

.role-select {
  padding: 7px 27px 7px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: #a8cada;
  background: #0c1d2a;
  font-size: 10px;
  max-width: 165px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #86aebe;
  transition: background .16s,color .16s;
}

.icon-button:hover {
  background: #103345;
  color: #c7f7ff;
  border-color: #235368;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.notification-dot {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 3px var(--bg);
}

.workspace {
  max-width: 1850px;
  padding: 29px 34px 42px;
  margin: auto;
  padding-bottom: 35px;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.eyebrow {
  text-transform: uppercase;
  color: var(--accent);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.9px;
  margin-bottom: 6px;
  font-family: var(--mono);
}

.page-title {
  font-size: 27px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -.65px;
  margin: 0 0 6px;
}

.page-subtitle {
  color: #85a5bb;
  font-size: 11px;
  margin: 0;
  max-width: 720px;
  line-height: 1.7;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.button {
  min-height: 36px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #112634;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.5;
  transition: background .16s,border-color .16s,transform .16s,box-shadow .16s;
  white-space: nowrap;
  border-color: #2c5065;
  color: #b9d9e6;
}

.button svg {
  width: 15px;
  height: 15px;
}

.button:hover {
  background: #17394a;
  border-color: #548c9f;
  transform: translateY(-1px);
  color: #e7fcff;
}

.button.primary {
  background: linear-gradient(110deg,#153c69,var(--primary));
  color: #e4f5ff;
  border-color: #2b5d92;
  box-shadow: 0 0 18px rgba(12,39,72,0.45),inset 0 1px 0 rgba(228,245,255,0.18);
}

.button.primary:hover {
  background: linear-gradient(110deg,#1e518a,var(--primary-hover));
  border-color: #407ec4;
  box-shadow: 0 0 24px rgba(12,39,72,0.65);
  color: #ffffff;
}

.button.secondary {
  background: #102733;
  color: #b4d4e4;
}

.button.danger {
  background: #351f2e;
  border-color: #6e3e52;
  color: #ffb0bf;
}

.button.danger:hover {
  background: #512935;
}

.button.small {
  min-height: 29px;
  padding: 5px 10px;
  font-size: 10px;
  gap: 6px;
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: #7eacc0;
}

.button.ghost:hover {
  background: #113144;
  color: #bbf2fa;
}

.demo-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #2b4250;
  border-radius: 4px;
  padding: 9px 12px;
  background: #0a2330;
  color: #82adbf;
  font-size: 9px;
  margin-bottom: 22px;
  border-color: #214252;
}

.demo-banner svg {
  height: 14px;
  width: 14px;
  flex-shrink: 0;
  color: #74bdd3;
}

.demo-banner strong {
  color: #b5d8e3;
  font-weight: 600;
}

.demo-banner a,.demo-banner button {
  margin-left: auto;
}

.demo-banner .badge {
  margin-left: auto;
}

/* 03 · Operations overview */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  min-width: 0;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 16px 17px;
  background: linear-gradient(125deg,#0c2231,#07141f);
  overflow: hidden;
  border-color: #204052;
}

.stat-card:after {
  content: "";
  position: absolute;
  width: 32px;
  height: 2px;
  border-radius: 0;
  background: #488d9f;
  right: auto;
  bottom: 0;
  pointer-events: none;
  left: 17px;
  box-shadow: 0 0 9px #64efff26;
}

.stat-label {
  color: #92b0c4;
  font-size: 11px;
  display: block;
  margin-bottom: 12px;
}

.stat-value {
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -1.1px;
  line-height: 1;
  margin-bottom: 11px;
  font-variant-numeric: tabular-nums;
  color: #d8effb;
  font-family: var(--mono);
}

.stat-value small {
  font-size: 16px;
  color: #667d96;
  font-weight: 400;
  letter-spacing: 0;
}

.stat-note {
  color: #658aa2;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stat-note.good {
  color: #79bba2;
}

.stat-note.warning {
  color: #cca973;
}

.stat-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #0d3341;
  color: #7bdded;
  border: 1px solid #28576b;
}

.stat-icon svg {
  width: 16px;
  height: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0,1.95fr) minmax(300px,1fr);
  gap: 22px;
  align-items: start;
}

.panel {
  min-width: 0;
  background: linear-gradient(135deg,#0a1926,#06131f);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.panel+.panel {
  margin-top: 22px;
}

.panel-header {
  min-height: 68px;
  padding: 18px 19px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(90deg,#0d24323b,transparent);
}

.panel-title {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: .1px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c9e4f2;
}

.panel-title svg {
  color: #85a0b5;
  width: 16px;
  height: 16px;
}

.panel-subtitle {
  font-size: 10px;
  color: #628aa0;
  margin: 4px 0 0;
}

.panel-body {
  padding: 18px 19px;
}

.panel-header .button.ghost {
  font-size: 10px;
  padding: 3px 0;
  min-height: 25px;
}

.panel-header .badge {
  font-size: 9px;
}

.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 13px;
  padding: 16px;
}

.camera-card {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: #050e17;
  border: 1px solid #27394a;
  min-width: 0;
  isolation: isolate;
  border-color: #2a4a5e;
  transition: border-color .25s,box-shadow .25s;
}

.camera-scene {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: #0a2230;
  display: block;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  text-align: left;
  color: inherit;
  border-radius: 0;
}

.camera-scene>img,.camera-scene>video,.camera-scene>svg {
  height: 100%;
  width: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.7) contrast(1.05);
  transition: transform .6s;
}

.camera-card:hover .camera-scene>img {
  transform: scale(1.025);
}

.camera-name {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px #000;
}

.camera-meta {
  font-size: 8px;
  color: #b4bec7;
  letter-spacing: .25px;
  margin-top: 2px;
}

.feed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #071923b3;
  border: 1px solid #75939842;
  border-radius: 2px;
  padding: 3px 5px;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c8dedf;
  backdrop-filter: blur(3px);
  font-family: var(--mono);
}

.feed-badge .status-dot {
  height: 4px;
  width: 4px;
}

.camera-timestamp {
  font-family: Consolas,monospace;
  font-size: 8px;
  color: #e2ecef;
  text-shadow: 0 1px 3px black;
}

.camera-placeholder {
  aspect-ratio: 1.59;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  background: repeating-linear-gradient(0deg,transparent,transparent 2px,#7793a703 2px,#7793a703 3px),radial-gradient(ellipse,#142330,#0a121d);
  color: #678096;
  padding: 30px;
  text-align: center;
  font-size: 11px;
}

.camera-placeholder svg {
  width: 30px;
  height: 30px;
  color: #405d72;
}

.camera-placeholder small {
  display: block;
  font-size: 9px;
  color: #50687e;
}

.camera-offline-label {
  color: #b49278;
}

.camera-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  color: #708ca2;
  font-size: 9px;
  border-top: 1px solid #203444;
  background: #0e1b29;
}

.camera-footer .status-dot {
  height: 4px;
  width: 4px;
}

.camera-grid.single {
  grid-template-columns: 1fr;
}

.camera-grid.single .camera-scene {
  aspect-ratio: 16/9;
}

.camera-page .camera-grid {
  padding: 0;
  gap: 20px;
}

.camera-page .camera-name {
  font-size: 13px;
}

.camera-page .camera-overlay {
  padding: 15px;
}

.camera-page .camera-scene {
  aspect-ratio: 16/9;
}

/* 04 · Incidents and activity */
.incident-list {
  padding: 0 17px;
}

.incident-card {
  padding: 17px 0;
  border-bottom: 1px solid var(--border-soft);
}

.incident-card:last-child {
  border-bottom: 0;
}

.incident-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.incident-title {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 550;
  margin: 0;
  color: #d0e8f4;
}

.incident-summary {
  font-size: 10px;
  line-height: 1.65;
  color: #7f9fb5;
  margin: 6px 0 9px;
}

.incident-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #6d96ad;
  font-size: 9px;
  margin-top: 7px;
}

.incident-meta svg {
  width: 11px;
  height: 11px;
}

.incident-meta>span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.incident-actions {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.severity,.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 550;
  white-space: nowrap;
  border: 1px solid transparent;
}

.severity {
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .75px;
  font-family: var(--mono);
}

.severity:before {
  content: "";
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: currentColor;
}

.severity.high,.badge.warning {
  background: #382e1d;
  color: #edc07e;
  border-color: #624b263d;
}

.severity.critical,.badge.danger {
  background: #38212e;
  color: #fa8f9d;
  border-color: #7043553d;
}

.severity.medium {
  background: #293329;
  color: #d8cd81;
  border-color: #6d704432;
}

.severity.low,.badge.info {
  background: #1a2d42;
  color: #8ebef5;
  border-color: #385a773d;
}

.badge.success {
  background: #143a32;
  color: #7fdbc0;
  border-color: #3267523d;
}

.badge.neutral {
  background: #142b3d;
  color: #94b7ce;
  border-color: #24465a;
}

.empty-state {
  padding: 35px 22px;
  text-align: center;
  color: #7f97ad;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.empty-state>svg {
  height: 30px;
  width: 30px;
  color: #4e6b83;
  margin-bottom: 4px;
}

.empty-state strong {
  display: block;
  color: #bacbd9;
  font-size: 13px;
  font-weight: 500;
}

.empty-state p {
  margin: 0;
  max-width: 330px;
}

.empty-state .button {
  margin-top: 8px;
}

.activity-list {
  padding: 3px 19px 6px;
}

.activity-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}

.activity-item:last-child {
  border: 0;
}

.activity-dot {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  display: grid;
  place-items: center;
  background: #5ccbdc;
  color: #72cbb7;
  margin-top: 2px;
  flex-shrink: 0;
  margin: 6px 3px 0 0;
  box-shadow: 0 0 0 3px #16415570;
  transform: rotate(45deg);
}

.activity-dot svg {
  height: 12px;
  width: 12px;
}

.activity-dot.warning {
  background: #332d23;
  color: #d9ae68;
}

.activity-dot.info {
  background: #203148;
  color: #86afd8;
}

.activity-copy {
  min-width: 0;
  flex: 1;
  color: #a5b9cc;
  font-size: 10px;
}

.activity-copy strong {
  font-weight: 500;
  color: #d3dfeb;
}

.activity-copy p {
  margin: 3px 0;
  color: #6f879f;
  font-size: 9px;
}

.activity-time {
  font-size: 8px;
  color: #688097;
  white-space: nowrap;
  padding-top: 3px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

.data-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #081925;
  color: #618da6;
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 12px 19px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
}

.data-table td {
  padding: 15px 19px;
  border-bottom: 1px solid var(--border-soft);
  color: #88acc3;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr {
  transition: background .15s;
}

.data-table tbody tr:hover {
  background: #102a3b;
}

.data-table td strong {
  color: #bedcea;
  font-weight: 500;
}

.data-table .button {
  font-size: 9px;
  min-height: 26px;
  padding: 4px 8px;
}

.person-cell {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 140px;
}

.person-cell strong {
  display: block;
  color: #dce6f0;
  font-weight: 500;
  font-size: 11px;
}

.person-cell small {
  display: block;
  font-size: 9px;
  color: #708aa2;
  margin-top: 2px;
}

.person-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 5px;
  color: #9bc8d8;
  background: #183241;
  font-size: 9px;
  font-weight: 650;
  flex-shrink: 0;
  border: 1px solid #3a4c5d;
  border-color: #2e5368;
  font-family: var(--mono);
}

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

.mono {
  font-family: Consolas,"Courier New",monospace;
  font-size: .94em;
  font-variant-numeric: tabular-nums;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 300px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #071b2a;
  padding: 0 12px;
  border-color: #23495e;
}

.search-input svg {
  width: 15px;
  height: 15px;
  color: #718aa3;
}

.search-input input {
  width: 100%;
  min-width: 0;
  background: transparent;
  color: var(--text);
  border: 0;
  padding: 10px 0;
  font-size: 11px;
  outline: none;
}

.search-input:focus-within {
  border-color: #55a5bb;
  box-shadow: 0 0 0 2px #64efff0a;
}

.search-input input:focus-visible {
  outline: none;
}

.search-input::placeholder,.search-input input::placeholder {
  color: #657f97;
}

.filter-group {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.filter-button {
  border: 1px solid var(--border);
  background: #0b1e2a;
  color: #7cabc0;
  border-radius: 3px;
  padding: 7px 11px;
  font-size: 10px;
  border-color: #244354;
}

.filter-button:hover {
  color: #e0ebf4;
  background: #182b3d;
}

.filter-button.active {
  background: #123f50;
  color: #abedfb;
  border-color: #34788e;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(290px,1fr);
  gap: 22px;
  align-items: start;
}

.detail-list {
  display: grid;
  gap: 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 11px;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row>span:first-child {
  color: #819bb1;
}

.detail-row>span:last-child,.detail-row>strong {
  color: #d1deeb;
  font-weight: 450;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}

.notification-list {
  display: grid;
  gap: 0;
  padding: 0;
}

.notification-item {
  position: relative;
  border: 0;
  border-radius: 0;
  padding: 18px 20px;
  background: transparent;
  display: flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  margin: 0;
}

.notification-item.unread {
  border-left: 3px solid #65cbb8;
  background: #0c29393b;
  border-left-color: #64d9ec;
}

.notification-item>svg {
  color: #80c5bd;
  flex-shrink: 0;
  margin-top: 3px;
}

.notification-item h3 {
  font-size: 13px;
  font-weight: 550;
  margin: 0 0 5px;
}

.notification-item p {
  color: #8fa5ba;
  font-size: 11px;
  margin: 0 0 9px;
}

.notification-item small {
  font-size: 9px;
  color: #657e95;
}

.notification-item .incident-actions {
  margin-top: 13px;
}

.notification-item .notification-body {
  flex: 1;
  min-width: 0;
}

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

.device-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 20px;
}

.device-card>svg {
  width: 25px;
  height: 25px;
  margin-bottom: 20px;
  color: #8cafc2;
}

.device-card h3 {
  font-size: 13px;
  font-weight: 550;
  margin: 0 0 5px;
}

.device-card p {
  font-size: 10px;
  color: #7993aa;
  margin: 0 0 13px;
}

.device-card .badge {
  margin-bottom: 10px;
}

.device-card .detail-row {
  font-size: 10px;
  padding: 9px 0;
}

.device-card .button {
  margin-top: 15px;
}

.device-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 17px;
}

.device-top>svg {
  width: 24px;
  height: 24px;
  color: #82acbd;
}

/* 05 · Forms and visitor tablet */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 19px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  position: relative;
  font-size: 11px;
  color: #c2d2e1;
  font-weight: 500;
}

.field.full {
  grid-column: 1/-1;
}

.field>label,.field>span:first-child {
  font-size: 11px;
  font-weight: 550;
  color: #c2d2e1;
}

.field input,.field select,.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #2b4056;
  border-radius: 4px;
  background: #061522;
  padding: 10px 12px;
  color: #d9f0fc;
  min-height: 40px;
  font-size: 12px;
  transition: border-color .16s,box-shadow .16s;
  border-color: #2b4e65;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.65;
}

.field input::placeholder,.field textarea::placeholder {
  color: #557e99;
}

.field input:focus,.field select:focus,.field textarea:focus {
  border-color: #5ebad0;
  box-shadow: 0 0 0 3px #64efff09;
  outline: none;
}

.field input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #4e5364;
}

.field input[type=file] {
  font-size: 11px;
  padding: 7px;
}

.field input[type=file]::file-selector-button {
  font: inherit;
  padding: 5px 8px;
  background: #223b4d;
  color: #dce8f1;
  border: 0;
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
}

.field small {
  color: #7e96ac;
  font-size: 10px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 25px;
  padding-top: 21px;
  border-top: 1px solid var(--border-soft);
}

.form-hint {
  font-size: 10px;
  color: #7a92a8;
  line-height: 1.7;
  margin: 7px 0 0;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  color: #a1b6c8;
  line-height: 1.65;
}

.checkbox-field input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.checkbox-field label {
  cursor: pointer;
}

.field-error {
  font-size: 10px;
  color: var(--danger);
  margin-top: 4px;
}

.required {
  color: #7ba99e;
}

.tablet-shell {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% -5%,#0d638c3b,transparent 53%),var(--bg);
  padding-bottom: 67px;
}

.tablet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 40px;
  border-bottom: 1px solid var(--border-soft);
  gap: 15px;
  background: #06121ac4;
}

.tablet-header .brand {
  margin: 0;
}

.tablet-header .brand-subtitle {
  font-size: 8px;
}

.tablet-main {
  width: 100%;
  max-width: 900px;
  margin: auto;
  padding: 44px 28px 60px;
}

.tablet-main>.eyebrow {
  text-align: center;
}

.tablet-main>.page-title {
  text-align: center;
  font-size: 29px;
  margin-top: 8px;
}

.tablet-main>.page-subtitle {
  text-align: center;
  margin: 10px auto 28px;
}

.tablet-card {
  background: linear-gradient(135deg,#0c2131,#071722);
  border: 1px solid #293d50;
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 20px 90px #0003,inset 0 1px 0 #88dfff0d;
  border-color: #315a72;
}

.tablet-card h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.4px;
  margin: 0 0 5px;
}

.tablet-card .form-grid {
  gap: 22px;
}

.tablet-card .field>label {
  font-size: 12px;
}

.tablet-card .field input,.tablet-card .field select {
  min-height: 47px;
  font-size: 13px;
}

.tablet-card .button {
  min-height: 44px;
  font-size: 12px;
  padding: 11px 18px;
}

.tablet-card .form-actions {
  margin-top: 5px;
}

.tablet-card .page-subtitle {
  margin-bottom: 27px;
}

.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 28px auto 32px;
  max-width: 590px;
}

.step {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  position: relative;
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: #677f96;
}

.step:after {
  content: "";
  position: absolute;
  left: calc(50% + 25px);
  right: calc(-50% + 25px);
  top: 15px;
  height: 1px;
  background: #2a3c50;
}

.step:last-child:after {
  display: none;
}

.step-number {
  display: grid;
  place-items: center;
  height: 31px;
  width: 31px;
  background: #0c273a;
  border: 1px solid #30455b;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  border-color: #315a73;
  font-family: var(--mono);
}

.step.active {
  color: #b3e9f8;
}

.step.active .step-number {
  background: #174c63;
  color: #a5edff;
  border-color: #66b1c9;
  box-shadow: 0 0 20px #64efff15;
}

.step.complete {
  color: #80bbc7;
}

.step.complete .step-number {
  background: #123b4a;
  color: #9ce4e9;
  border-color: #396d80;
}

.step.complete:after {
  background: #427e93;
}

.dropzone {
  border: 1px dashed #3b596c;
  border-radius: 6px;
  padding: 27px 22px;
  text-align: center;
  background: #0b2637;
  transition: background .2s,border-color .2s;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  color: #8fbbd0;
  font-size: 12px;
  cursor: pointer;
  border-color: #396e85;
}

.dropzone:hover,.dropzone.dragover {
  background: #103b4d;
  border-color: #71c2d8;
}

.dropzone>svg {
  width: 29px;
  height: 29px;
  color: #71aea7;
}

.dropzone strong {
  font-size: 12px;
  color: #d2e2ed;
  font-weight: 550;
}

.dropzone small {
  color: #6d889e;
  font-size: 10px;
}

.dropzone input {
  max-width: 100%;
  margin-top: 8px;
}

.invoice-preview {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border);
  background: #0d1724;
  padding: 13px;
  border-radius: 9px;
  margin: 15px 0 23px;
}

.invoice-preview img {
  width: 110px;
  max-height: 150px;
  object-fit: contain;
  background: #e9edef;
  border-radius: 5px;
}

.invoice-preview .muted {
  font-size: 10px;
}

.invoice-preview strong {
  font-size: 12px;
  font-weight: 500;
}

.tablet-status {
  text-align: center;
  max-width: 580px;
  margin: auto;
  padding: 20px 0;
}

.tablet-status>svg {
  height: 54px;
  width: 54px;
  padding: 14px;
  color: var(--accent);
  background: #173d34;
  border: 1px solid #2d6553;
  border-radius: 50%;
  margin-bottom: 20px;
}

.tablet-status h2 {
  font-size: 25px;
  margin-bottom: 12px;
}

.tablet-status p {
  font-size: 12px;
  color: #90a8bd;
  line-height: 1.8;
}

.visit-reference {
  font-family: Consolas,monospace;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 15px;
  border: 1px dashed #3e5a69;
  background: #0b2a3b;
  border-radius: 5px;
  margin: 22px 0;
  color: #b6e0d9;
  border-color: #3c768b;
}

.tablet-status .badge {
  font-size: 11px;
  padding: 5px 11px;
  margin: 0 auto 15px;
}

.timeline {
  position: relative;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  padding: 0 0 23px 27px;
  border-left: 1px solid #33485b;
  margin-left: 5px;
  font-size: 11px;
  color: #9bb1c6;
}

.timeline-item:before {
  content: "";
  width: 9px;
  height: 9px;
  position: absolute;
  left: -5px;
  top: 5px;
  border: 2px solid #5a9989;
  background: #162d2e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--surface);
}

.timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline-item strong {
  display: block;
  color: #d4e1eb;
  font-weight: 500;
}

.timeline-item small {
  font-size: 9px;
  color: #7891a7;
  display: block;
  margin-top: 4px;
}

.timeline-item.complete:before {
  background: #71cdb2;
}

.timeline-item.pending:before {
  border-color: #50687d;
  background: #142334;
}

/* 06 · Dialogs and feedback */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #01060dcc;
  backdrop-filter: blur(9px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  animation: fade-in .16s ease-out;
}

.modal {
  width: 100%;
  max-width: 700px;
  max-height: calc(100dvh - 50px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(130deg,#0d2435,#061620);
  border: 1px solid #344d64;
  border-radius: 9px;
  box-shadow: 0 30px 100px #0009,0 0 60px #2387ae12;
  animation: modal-in .2s ease-out;
  border-color: #3d7894;
}

.modal.wide {
  max-width: 930px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: #0b2331;
}

.modal-header h2,.modal-header h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.3px;
  margin: 0;
}

.modal-body {
  padding: 23px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
}

.modal-body p {
  font-size: 12px;
  color: #99afc4;
}

.modal-body .camera-scene {
  border-radius: 8px;
  overflow: hidden;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: #071b28;
}

.modal-footer .form-hint {
  margin-right: auto;
}

.modal-image {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.toast-stack {
  position: fixed;
  z-index: 250;
  bottom: auto;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  pointer-events: none;
  max-width: calc(100vw - 40px);
  top: 84px;
}

.toast {
  pointer-events: auto;
  display: flex;
  gap: 11px;
  align-items: center;
  background: #113345;
  color: #d0f1fa;
  border: 1px solid #3d6677;
  border-radius: 5px;
  padding: 13px 17px;
  box-shadow: 0 10px 35px #0005;
  max-width: 400px;
  font-size: 12px;
  animation: toast-in .22s ease-out;
  border-color: #417c95;
}

.toast svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.toast.success {
  background: #14392f;
  border-color: #3c7260;
  color: #c3efdc;
}

.toast.error {
  background: #3d2531;
  border-color: #794355;
  color: #ffd7dc;
}

.skeleton {
  background: linear-gradient(100deg,#142235 30%,#1a2d42 50%,#142235 70%);
  background-size: 220% 100%;
  animation: shimmer 1.7s infinite;
  border-radius: 8px;
  min-height: 30px;
}

.section-gap {
  margin-top: 23px;
}

.site-map {
  position: relative;
  min-height: 205px;
  background-color: #0c1b2a;
  background-image: linear-gradient(#2b465228 1px,transparent 1px),linear-gradient(90deg,#2b465228 1px,transparent 1px);
  background-size: 21px 21px;
  border: 1px solid #233d4c;
  border-radius: 9px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  overflow: hidden;
}

.map-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 1px solid #3e687457;
  background: #1b3f4561;
  border-radius: 5px;
  padding: 12px 8px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .7px;
  text-align: center;
  color: #8db8c0;
}

.map-zone svg {
  width: 16px;
  height: 16px;
  margin-bottom: 6px;
  color: #76c7b4;
}

.map-zone.active {
  border-color: #8ea768;
  background: #3c4d2e4a;
  color: #c6d6a7;
}

.map-zone.warning {
  border-color: #a8814f;
  background: #5a452433;
  color: #d1b67e;
}

.map-zone .status-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 4px;
  height: 4px;
}

.site-map-caption {
  display: flex;
  justify-content: space-between;
  color: #6e889e;
  font-size: 9px;
  margin-top: 9px;
}

.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 23px;
}

.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 11px 0 13px;
  background: transparent;
  color: #7d96ae;
  font-size: 11px;
  white-space: nowrap;
}

.tab.active {
  border-bottom-color: var(--accent);
  color: #a4e7d6;
}

.tab:hover {
  color: #d8e8f2;
}

.panel-note {
  display: flex;
  gap: 7px;
  padding: 10px 17px;
  border-top: 1px solid var(--border-soft);
  color: #607e95;
  font-size: 9px;
}

.panel-note svg {
  height: 12px;
  width: 12px;
  flex-shrink: 0;
}

.inline-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #86a899;
}

.inline-status.warning {
  color: #c3a166;
}

.inline-status .status-dot {
  height: 5px;
  width: 5px;
}

.text-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #83c9de;
  font-size: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.text-link:hover {
  color: #bcf9ff;
}

.divider {
  height: 1px;
  background: var(--border-soft);
  margin: 21px 0;
}

.page-footer {
  color: #557187;
  font-size: 9px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #8fa8be;
}

.metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #76cbb0;
}

.visually-hidden {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  padding: 0!important;
  margin: -1px!important;
  overflow: hidden!important;
  clip: rect(0,0,0,0)!important;
  white-space: nowrap!important;
  border: 0!important;
}

body.modal-open {
  overflow: hidden;
}

/* 07 · Application composition */
.icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.sidebar>.site-card {
  padding: 11px 9px;
  gap: 7px;
  margin-bottom: 9px;
  background: #0b202d80;
}

.site-card-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 29px;
  border-radius: 4px;
  background: #133241;
  flex-shrink: 0;
  color: #81bfd1;
}

.site-card-icon svg {
  width: 14px;
  height: 14px;
}

.site-card>div {
  min-width: 0;
  flex: 1;
}

.site-card div>span {
  display: block;
  font-size: 8px;
  color: #7b94aa;
  margin-top: 2px;
}

.site-card>.status-dot {
  width: 5px;
  height: 5px;
}

.local-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 11px;
  color: #76b9c7;
  border: 1px solid #27483f;
  border-radius: 5px;
  background: #0b273180;
  margin-bottom: 20px;
  border-color: #244754;
}

.local-card>svg {
  width: 16px;
  height: 16px;
}

.local-card strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #abd7df;
}

.local-card span {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  color: #7097a7;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding: 18px 4px 0;
}

.user-card>div {
  min-width: 0;
  flex: 1;
}

.user-card strong {
  font-size: 10px;
  color: #c6d4e2;
  display: block;
  font-weight: 550;
}

.user-card span:not(.avatar) {
  font-size: 8px;
  color: #6b879f;
}

.user-card .avatar {
  height: 29px;
  width: 29px;
  font-size: 9px;
}

.user-card .icon-button {
  height: 23px;
  width: 23px;
}

.user-card .icon-button svg {
  height: 13px;
  width: 13px;
}

.topbar-divider {
  height: 19px;
  width: 1px;
  background: var(--border);
}

.top-avatar {
  background: #143641;
  border-color: #386878;
  color: #b4e8ee;
}

.workspace-footer {
  max-width: 1850px;
  margin: auto;
  padding: 0 34px 24px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 8px;
  color: #4d7a93;
  letter-spacing: 1px;
  padding-bottom: 88px;
  font-family: var(--mono);
}

.workspace-footer>span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.workspace-footer .icon {
  height: 11px;
  width: 11px;
  color: #72928e;
}

.footer-logo {
  width: 80px;
  height: 16px;
  flex-shrink: 0;
}

.footer-dot {
  color: #496a7a;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 27px;
}

.stat-top .stat-label {
  margin: 0;
  max-width: none;
  min-height: 0;
  font-size: 10px;
}

.stat-top .stat-icon {
  position: static;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.stat-top .stat-icon svg {
  width: 15px;
  height: 15px;
}

.stat-icon.tone-0 {
  color: #7bdded;
  background: #0d3341;
}

.stat-icon.tone-1 {
  color: #e9bd81;
  background: #33291b;
  border-color: #58452e;
}

.stat-icon.tone-2 {
  color: #adb4ee;
  background: #252741;
  border-color: #414767;
}

.stat-icon.tone-3 {
  color: #80c4ee;
  background: #142d46;
  border-color: #294e6e;
}

.stat-card .stat-value {
  margin-bottom: 9px;
}

.stat-card .stat-note {
  font-size: 9px;
}

.panel-foot {
  padding: 11px 16px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  line-height: 1.6;
  color: #718ca4;
}

.panel-foot svg {
  height: 12px;
  width: 12px;
  color: #749ca4;
}

.count-dot {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: #352c1d;
  color: #ecc586;
  font-size: 9px;
  margin-left: 3px;
  border: 1px solid #59472d;
  font-family: var(--mono);
}

.panel-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 17px;
  border-top: 1px solid var(--border-soft);
  font-size: 10px;
  color: #82b6c9;
  transition: background .16s,color .16s;
}

.panel-link:hover {
  background: #103044;
  color: #bdf7ff;
}

.panel-link svg,.text-link svg {
  width: 13px;
  height: 13px;
  margin-left: 2px;
}

.readiness-list {
  padding: 4px 17px;
}

.readiness-list>div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 10px;
  color: #9cb0c3;
}

.readiness-list>div:last-child {
  border-bottom: 0;
}

.readiness-list>div>svg {
  width: 14px;
  height: 14px;
  color: #7293a8;
}

.readiness-list>div>.badge {
  margin-left: auto;
  font-size: 8px;
}

.camera-scene>img,.camera-scene>video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zone-marker {
  position: absolute;
  left: 30%;
  top: 39%;
  width: 36%;
  height: 37%;
  border: 1px dashed #dab97968;
  transform: skewY(-6deg);
  pointer-events: none;
  background: #e1b96807;
}

.zone-marker span {
  position: absolute;
  left: 0;
  top: -13px;
  white-space: nowrap;
  font-family: Consolas,monospace;
  font-size: 5px;
  letter-spacing: 1px;
  color: #e2c790;
  opacity: .8;
}

.camera-wall {
  padding: 0;
  gap: 22px;
}

.camera-wall .feed-badge {
  font-size: 8px;
}

.camera-wall .zone-marker span {
  font-size: 7px;
}

.incident-time {
  font-size: 8px;
  color: #6c96ad;
  white-space: nowrap;
  font-family: var(--mono);
}

.incident-meta>.icon {
  height: 11px;
  width: 11px;
}

.severity:has(svg):before {
  display: none;
}

.severity svg {
  width: 10px;
  height: 10px;
}

.incident-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.incident-status-row .badge {
  font-size: 8px;
}

.incident-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
  align-items: start;
}

.incident-grid>.incident-card {
  padding: 21px;
  background: linear-gradient(130deg,#0d202e,#06131e);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.incident-grid .incident-title {
  font-size: 14px;
  margin-top: 16px;
}

.incident-grid .incident-summary {
  font-size: 11px;
  min-height: 53px;
}

.incident-grid .incident-actions {
  margin-top: 19px;
  padding-top: 15px;
  border-top: 1px solid var(--border-soft);
}

.incident-grid>.empty-state {
  grid-column: 1/-1;
}

.person-cell>div>span,.table-secondary {
  display: block;
  font-size: 9px;
  margin-top: 3px;
  color: #738ba3;
}

.purpose-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  text-transform: capitalize;
  font-size: 10px;
  color: #92a9bb;
}

.purpose-cell svg {
  width: 13px;
  height: 13px;
  color: #7693a8;
}

.panel>.toolbar {
  padding: 17px 19px;
  margin: 0;
  border-bottom: 1px solid var(--border-soft);
}

.mini-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin: 26px 0 23px;
  color: #809ab0;
  font-size: 11px;
}

.mini-stats>span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mini-stats strong {
  font-size: 21px;
  color: #c2e7f4;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
}

.supervisor-select {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #819bae;
  font-size: 10px;
}

.supervisor-select select {
  min-height: 36px;
  max-width: 260px;
  padding: 8px 10px;
  border: 1px solid #2e465b;
  border-radius: 4px;
  background: #0b2230;
  color: #b6d9e8;
  font-size: 11px;
  border-color: #2a5268;
}

.device-grid>.panel,.split-grid>.panel {
  margin-top: 0;
}

.device-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.device-card .stat-icon,.notification-item .stat-icon,.tablet-card-heading .stat-icon {
  position: static;
  flex-shrink: 0;
}

.device-card-top .badge {
  margin: 0;
}

.device-card h2 {
  font-size: 14px;
  letter-spacing: -.2px;
  margin: 0 0 5px;
  font-weight: 550;
}

.device-card.planned {
  background: linear-gradient(135deg,#0a202d,#06121d);
  border-style: dashed;
}

.device-card.planned>.stat-icon {
  margin-bottom: 22px;
}

.device-card.planned p {
  line-height: 1.9;
  max-width: 310px;
  margin: 10px 0 20px;
}

.activity-copy>strong {
  display: block;
  text-transform: capitalize;
  color: #bfdbe9;
}

.activity-copy>span {
  display: block;
  overflow-wrap: anywhere;
  font-size: 9px;
  color: #6892ab;
  line-height: 1.7;
  margin-top: 3px;
}

.activity-copy>.activity-time {
  font-size: 8px;
  color: #527e99;
  margin-top: 5px;
  padding: 0;
  font-family: var(--mono);
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item>.stat-icon {
  height: 34px;
  width: 34px;
}

.notification-item>div:not(.notification-actions) {
  flex: 1;
  min-width: 0;
}

.notification-item .muted {
  font-size: 9px;
  color: #738fa5;
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.recipient-card {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}

.recipient-card:first-child {
  padding-top: 2px;
}

.recipient-card:last-of-type {
  border: 0;
}

.recipient-card strong {
  font-size: 11px;
  font-weight: 550;
}

.recipient-card p {
  font-size: 10px;
  margin: 2px 0;
}

.tablet-header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.tablet-header-right .badge {
  font-size: 9px;
  letter-spacing: .75px;
  padding: 5px 9px;
}

.tablet-header-right .text-link {
  font-size: 11px;
}

.tablet-intro {
  text-align: center;
  margin-bottom: 23px;
}

.tablet-intro .eyebrow {
  font-size: 9px;
  margin-bottom: 10px;
}

.tablet-intro h1 {
  font-size: 31px;
  letter-spacing: -.85px;
  font-weight: 450;
  line-height: 1.3;
  margin: 0 0 10px;
}

.tablet-intro p {
  font-size: 12px;
  color: #8da5b9;
  margin: 0;
}

.tablet-demo-note {
  width: fit-content;
  margin: 0 auto;
  padding: 6px 11px;
  border: 1px solid #29444b;
  background: #0b2633;
  border-radius: 3px;
  font-size: 9px;
  color: #7db1c3;
  border-color: #285061;
}

.tablet-help {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 21px;
  font-size: 9px;
  color: #6e8a9f;
}

.tablet-help>span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tablet-help .status-dot {
  width: 5px;
  height: 5px;
}

.tablet-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 9px;
  color: #58798b;
  margin: 0 auto;
  padding: 0 20px 23px;
}

.tablet-footer svg {
  height: 12px;
  width: 12px;
  color: #6c9e96;
}

.tablet-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 29px;
}

.tablet-card-heading>.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: #153d50;
  color: #7bdded;
  border-color: #2d6178;
}

.tablet-card-heading>.stat-icon svg {
  height: 21px;
  width: 21px;
}

.tablet-card-heading p {
  font-size: 11px;
  margin: 5px 0 0;
  color: #819fb5;
}

.tablet-card-heading h2 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -.35px;
}

.field .optional {
  position: absolute;
  top: 1px;
  right: 0;
  font-size: 9px!important;
  color: #657f97!important;
  font-weight: 400!important;
}

.full {
  grid-column: 1/-1;
}

.field.full+.form-hint {
  margin-top: 0;
}

.form-actions .form-hint {
  margin: 0 auto 0 0;
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-actions .form-hint svg {
  height: 12px;
  width: 12px;
}

.tablet-card .field.full {
  gap: 9px;
}

.info-box {
  border: 1px solid #294958;
  border-radius: 5px;
  padding: 13px 15px;
  margin: 17px 0;
  background: #0b2838;
  color: #8cb6cc;
  font-size: 11px;
  line-height: 1.8;
  border-color: #2a5368;
}

.info-box>.icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  color: #7fafbc;
}

.info-box p {
  font-size: 11px;
  margin: 5px 0 0;
  color: #8caabb;
}

.info-box strong {
  font-weight: 550;
  color: #b2d0da;
}

.visit-summary-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: #0b1927;
  border: 1px solid #273d4f;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 11px;
  color: #7e9aaf;
}

.visit-summary-strip strong {
  font-weight: 550;
  color: #bfd0dc;
}

.visit-summary-strip .mono {
  margin-left: auto;
}

.invoice-preview:empty {
  display: none;
}

.invoice-preview>span {
  font-size: 11px;
  overflow-wrap: anywhere;
  min-width: 0;
}

.status-illustration {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 22px;
  color: #9fe8fb;
  background: #123951;
  border: 1px solid #596044;
  box-shadow: 0 0 0 9px #437ea310,0 0 30px #64efff15;
  border-color: #376e87;
}

.status-illustration .icon {
  height: 30px;
  width: 30px;
  stroke-width: 1.5;
}

.status-illustration.success {
  color: #91e5bc;
  border-color: #3c7556;
  background: #1c4638;
  box-shadow: 0 0 0 9px #459e6910;
}

.status-illustration.danger {
  color: #edacb1;
  border-color: #79525f;
  background: #402c38;
  box-shadow: 0 0 0 9px #99506410;
}

.tablet-status .visit-reference {
  font-size: 23px;
}

.visit-reference>span,.visit-reference>strong {
  display: block;
}

.visit-reference>span:first-child {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1.8px;
  color: #77adbf;
  margin-bottom: 8px;
}

.visit-reference>strong {
  font-family: Consolas,monospace;
  font-size: 23px;
  font-weight: 550;
  color: #b6effc;
  letter-spacing: 2.5px;
}

.visit-reference>span:last-child {
  font-family: "Segoe UI",Arial,sans-serif;
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 400;
  color: #819da7;
  margin-top: 7px;
}

.tablet-status .timeline {
  text-align: left;
  max-width: 270px;
  margin: 26px auto;
}

.tablet-status .timeline-item {
  font-size: 11px;
  padding-bottom: 19px;
  padding-left: 24px;
  display: flex;
  gap: 7px;
  align-items: center;
}

.tablet-status .timeline-item>svg {
  height: 13px;
  width: 13px;
  color: #679c88;
}

.tablet-status .timeline-item:last-child {
  padding-bottom: 0;
}

.tablet-status .timeline-item:before {
  top: 5px;
}

.tablet-status>.button {
  margin-top: 10px;
}

.detail-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 21px;
}

.detail-hero h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -.3px;
}

.detail-hero p {
  margin: 3px 0 0;
  font-size: 11px;
}

.detail-hero>.badge {
  margin-left: auto;
}

.person-avatar.large {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 14px;
}

.invoice-document {
  margin: 23px 0;
}

.invoice-document h3 {
  font-size: 12px;
  font-weight: 550;
  color: #b2cbd8;
  margin: 0 0 12px;
}

.invoice-document>img {
  display: block;
  max-width: 100%;
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  border: 1px solid #334651;
  border-radius: 7px;
  background: #0a1521;
}

.incident-evidence {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #304753;
  background: #06111b;
}

.incident-evidence>img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.incident-evidence>.feed-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 8px;
  background: #05111ed1;
}

.modal .camera-card {
  margin-bottom: 18px;
}

.modal-body>h3 {
  font-size: 16px;
  font-weight: 550;
  margin: 12px 0;
}

.modal-body>.field {
  margin-top: 22px;
}

.modal .camera-scene {
  border-radius: 0;
}

.roi-fields {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}

.roi-fields>label {
  font-size: 9px;
  color: #7698ad;
  font-weight: 400;
}

.roi-fields input {
  margin-top: 6px;
  font-size: 11px;
  min-height: 34px;
  padding: 8px;
}

.form-error {
  font-size: 11px;
  color: #ed9ba8;
  padding: 11px 13px;
  background: #382332;
  border: 1px solid #613849;
  border-radius: 7px;
}

.boot-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
  text-align: center;
  padding: 30px;
}

.boot-state>svg {
  width: 36px;
  height: 36px;
  color: #71cbb8;
  margin-bottom: 16px;
}

.boot-state h1 {
  font-size: 25px;
  font-weight: 550;
}

.boot-state p {
  color: #849eb6;
  max-width: 460px;
  font-size: 12px;
  margin: 0 0 25px;
}

/* Entry and identity · shared by startup, account access and workspace approval. */
.boot-sequence {
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
  background: radial-gradient(ellipse at 50% 43%,#123b4c66,transparent 52%);
}

.boot-sequence::before,.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(#64efff04 1px,transparent 1px),linear-gradient(90deg,#64efff04 1px,transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 35% 50%,#000,transparent 78%);
}

.boot-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.boot-wordmark .brand-logo {
  width: 240px;
  height: 44px;
  max-width: 70vw;
}

.boot-wordmark>span {
  display: block;
  margin-top: 8px;
  font: 8px var(--mono);
  letter-spacing: 3px;
  color: var(--muted);
}

.boot-reactor,.auth-reactor {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  aspect-ratio: 1;
  color: var(--accent);
  border-radius: 50%;
  background: radial-gradient(circle,#64efff0c,transparent 61%);
}

.boot-reactor {
  width: min(245px,64vw);
  margin: 46px 0 32px;
}

.boot-reactor::after,.auth-reactor::after {
  content: "";
  position: absolute;
  inset: 24%;
  border: 1px solid #64efff26;
  border-radius: 50%;
  background: radial-gradient(circle,#64efff0a,transparent 72%);
  box-shadow: 0 0 36px #64efff0a,inset 0 0 25px #64efff07;
}

.boot-ring,.auth-reactor>span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #64efff28;
  border-top-color: #64efffc9;
  border-bottom-color: #64efff85;
  animation: orbit-turn 26s linear infinite;
  pointer-events: none;
}

.boot-ring:nth-child(2),.auth-reactor>span:nth-child(2) {
  inset: 9%;
  border: 1px dashed #64efff3b;
  animation-direction: reverse;
  animation-duration: 46s;
}

.boot-ring:nth-child(3),.auth-reactor>span:nth-child(3) {
  inset: 17%;
  border: 2px solid transparent;
  border-left-color: #64efff82;
  border-right-color: #64efff82;
  animation-duration: 19s;
}

.reactor-logo {
  width: 150px;
  height: 26px;
  max-width: 78%;
  z-index: 1;
}

.boot-sequence #boot-status {
  font: 11px var(--mono);
  letter-spacing: .3px;
  margin-bottom: 18px;
  color: #bddde9;
}

.boot-progress {
  width: min(240px,65vw);
  height: 2px;
  overflow: hidden;
  background: #153140;
}

.boot-progress>span {
  display: block;
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg,transparent,var(--accent),transparent);
  animation: boot-connect 2s ease-in-out infinite;
}

.boot-skip {
  margin-top: 21px;
  min-height: 40px;
  padding: 8px 18px;
  color: var(--muted);
  font-size: 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
}

.boot-skip:hover {
  color: var(--text);
  border-color: var(--border);
  background: #64efff06;
}

.boot-caption {
  margin-top: 50px;
  font: 8px var(--mono);
  color: var(--faint);
  letter-spacing: 1.6px;
}

.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(360px,1fr);
  gap: clamp(36px,7vw,112px);
  align-items: center;
  padding: clamp(28px,4vw,64px) clamp(30px,6vw,110px);
  background: radial-gradient(ellipse at 24% 53%,#1140534a,transparent 57%),radial-gradient(ellipse at 90% 10%,#16476c21,transparent 42%),var(--bg);
}

.auth-story,.auth-panel {
  position: relative;
  min-width: 0;
  z-index: 1;
}

.auth-story .brand {
  width: fit-content;
  margin: 0 0 clamp(28px,3.4vh,44px);
}

.auth-story .brand-logo {
  width: 230px;
  height: 42px;
}

.auth-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font: 9px var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 17px;
}

.auth-eyebrow::before {
  content: "";
  width: 23px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px #64efff40;
}

.auth-story h1 {
  font-size: clamp(36px,3.8vw,58px);
  line-height: 1.1;
  font-weight: 450;
  letter-spacing: -2px;
  margin: 0 0 22px;
  max-width: 650px;
  text-wrap: balance;
}

.auth-story h1 em,.auth-story h1 span {
  color: var(--accent);
  font-style: normal;
}

.auth-description {
  color: #98b6c8;
  font-size: 14px;
  line-height: 1.85;
  max-width: 420px;
  margin: 0;
}

.auth-reactor {
  width: min(240px,70%);
  margin: 24px auto 20px;
}

.auth-panel {
  width: 100%;
  max-width: 510px;
  justify-self: end;
  padding: clamp(24px,3vw,42px);
  border: 1px solid #2a4c5e;
  border-top-color: #47788b;
  border-radius: 12px;
  background: linear-gradient(145deg,#0e2332e6,#07131fed);
  box-shadow: 0 26px 90px #0005,inset 0 1px #a4f4ff08;
  animation: modal-in .4s ease both;
}

.auth-panel::before {
  content: "";
  position: absolute;
  height: 1px;
  top: -1px;
  left: 24%;
  right: 24%;
  background: linear-gradient(90deg,transparent,#82f1ff,transparent);
  box-shadow: 0 0 15px #64efff38;
}

.auth-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 23px;
}

.auth-panel-header h2,.auth-panel>h2 {
  font-size: 25px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -.5px;
  margin: 0 0 9px;
}

.auth-panel>p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  margin: 0 0 22px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 25px;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: #040d16a6;
}

.auth-tabs button {
  min-height: 39px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
  background: transparent;
  transition: color .18s,background .18s,border-color .18s;
}

.auth-tabs button.active {
  color: var(--accent);
  border-color: #2a4c60;
  background: #102b3b;
  box-shadow: 0 2px 8px #0003;
}

.auth-tabs button:hover:not(.active) {
  color: var(--text);
  background: #112333;
}

.auth-form {
  display: grid;
  gap: 20px;
}

.auth-form.form-grid {
  gap: 18px 16px;
}

.auth-form .field input,.auth-form .field select {
  min-height: 45px;
  background: #06121ee6;
}

.auth-form>.button,.auth-form>.full {
  width: 100%;
}

.auth-form .button.primary {
  min-height: 45px;
  font-size: 12px;
  letter-spacing: .2px;
}

.auth-form .form-error:empty {
  display: none;
}

.auth-id-actions {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 12px;
}

.auth-id-actions .form-hint {
  flex: 1 1 160px;
  margin: 0;
  line-height: 1.5;
}

.auth-id-refresh {
  min-height: 28px;
  padding: 4px 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--accent);
  font-size: 10px;
  white-space: nowrap;
}

.auth-id-refresh:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #92b4c6;
  font-size: 11px;
  line-height: 1.7;
  padding: 13px 14px;
  background: #0a23304f;
  border: 1px solid #254555;
  border-radius: 6px;
}

.auth-security-note>svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.auth-status-card {
  margin: 20px 0;
  padding: 23px 19px;
  border: 1px solid #3a645b;
  border-radius: 7px;
  background: #13312d75;
  color: #c7e9e0;
}

.auth-status-card>svg {
  height: 28px;
  width: 28px;
  color: var(--success);
  margin-bottom: 9px;
}

.auth-status-card h3,.auth-status-card>strong {
  display: block;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 550;
}

.auth-status-card p {
  margin: 0 0 15px;
  line-height: 1.8;
  color: #a6c6bf;
  font-size: 12px;
}

.auth-footer {
  border-top: 1px solid var(--border);
  padding-top: 17px;
  margin-top: 24px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.8;
}

.auth-footer>svg {
  width: 12px;
  height: 12px;
  margin-right: 4px;
  color: var(--muted);
}

.auth-account-badge,.workspace-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #2d5062;
  border-radius: 5px;
  color: #afd3e1;
  background: #0b2533;
  font: 9px var(--mono);
  line-height: 1.5;
}

.auth-account-badge>svg,.workspace-lock-pill>svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.auth-account-badge {
  font-size: 8px;
}

.auth-active #voice-root {
  display: none;
}

.account-list {
  display: grid;
  gap: 12px;
}

.account-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px 24px;
  padding: 18px;
  background: #091b28;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.account-identity {
  flex: 1 1 190px;
  min-width: 0;
}

.account-identity strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.account-identity small,.account-identity p {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.account-workspace {
  color: var(--accent);
  font: 10px var(--mono);
  padding: 5px 8px;
  background: #11313f;
  border: 1px solid #285063;
  border-radius: 4px;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sr-only {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  padding: 0!important;
  margin: -1px!important;
  overflow: hidden!important;
  clip: rect(0,0,0,0)!important;
  white-space: nowrap!important;
  border: 0!important;
}

.is-offline {
  color: #ec9b9f;
}

.sidebar::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 85px;
  width: 1px;
  height: 150px;
  background: linear-gradient(transparent,#64efff90,transparent);
  pointer-events: none;
}

.stat-card:nth-child(2):after {
  background: #bd9865;
}

.panel:before,.panel:after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 11px;
  height: 11px;
  pointer-events: none;
  opacity: .75;
}

.panel:before {
  top: 0;
  left: 0;
  border-top: 1px solid #589bb4;
  border-left: 1px solid #589bb4;
  border-top-left-radius: 7px;
}

.panel:after {
  right: 0;
  bottom: 0;
  border-right: 1px solid #366f89;
  border-bottom: 1px solid #366f89;
  border-bottom-right-radius: 7px;
}

.camera-card:hover {
  border-color: #4e8fa9;
  box-shadow: 0 0 20px #2d96bd12;
}

.feed-badge.live {
  border-color: #488e83;
  color: #b9f5dd;
  background: #0c3129c9;
}

.badge.info,.severity.low {
  color: #92d3f7;
  background: #102f43;
  border-color: #24516b;
}

.keyboard-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #688fa6;
  font: 8px var(--mono);
}

.keyboard-hint kbd {
  padding: 2px 4px;
  border: 1px solid #294c60;
  background: #0b2030;
  border-radius: 3px;
  font: inherit;
}

/* 08 · Sentros intelligence core */
.hud-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(240px,1.15fr) 250px minmax(155px,.65fr);
  align-items: center;
  gap: 18px;
  min-height: 266px;
  padding: 27px 31px;
  margin-bottom: 23px;
  overflow: hidden;
  border: 1px solid #28556c;
  border-radius: 6px;
  background: radial-gradient(ellipse at 57% 48%,#0d567145,transparent 40%),linear-gradient(105deg,#071827,#04101b 70%,#081c2a);
  box-shadow: inset 0 0 65px #2babda07,0 12px 38px #0003;
}

.hud-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .4;
  pointer-events: none;
  background-image: linear-gradient(#2960801b 1px,transparent 1px),linear-gradient(90deg,#2960801b 1px,transparent 1px);
  background-size: 27px 27px;
  mask-image: linear-gradient(90deg,transparent,#000 50%,#000);
}

.hud-hero::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #4fc4e824;
  border-radius: 2px;
  pointer-events: none;
  clip-path: polygon(0 0,26px 0,26px 1px,1px 1px,1px 26px,0 26px,0 0,100% 0,100% 26px,calc(100% - 1px) 26px,calc(100% - 1px) 1px,calc(100% - 26px) 1px,calc(100% - 26px) 0,100% 0,100% 100%,calc(100% - 26px) 100%,calc(100% - 26px) calc(100% - 1px),calc(100% - 1px) calc(100% - 1px),calc(100% - 1px) calc(100% - 26px),100% calc(100% - 26px),100% 100%,0 100%,0 calc(100% - 26px),1px calc(100% - 26px),1px calc(100% - 1px),26px calc(100% - 1px),26px 100%,0 100%);
}

.hud-intro {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hud-intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  font-size: 8px;
  letter-spacing: 2px;
  color: #7ecee4;
}

.hud-title {
  margin: 0 0 12px;
  font-size: clamp(26px,2.5vw,38px);
  line-height: 1.15;
  font-weight: 450;
  letter-spacing: -.8px;
}

.hud-title span {
  display: block;
  color: #91ecff;
  text-shadow: 0 0 26px #63dbff25;
}

.hud-subtitle {
  margin: 0 0 19px;
  max-width: 285px;
  color: #759eb6;
  font-size: 10px;
  line-height: 1.8;
}

.hud-intro .button {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .4px;
  padding: 9px 13px;
  background: #10394b;
  border-color: #357990;
  color: #b7f5ff;
  box-shadow: inset 0 0 20px #56e8ff08;
}

.hud-intro .button:hover {
  background: #18516a;
  border-color: #67c4da;
}

.hud-orbit {
  position: relative;
  width: 242px;
  height: 242px;
  display: grid;
  place-items: center;
  justify-self: center;
  flex-shrink: 0;
}

.hud-orbit::before {
  content: "";
  position: absolute;
  inset: -11px;
  border: 1px solid #30617b3d;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg,transparent 0deg 14deg,#4783986e 14deg 14.4deg,transparent 14.4deg 15deg);
  mask-image: radial-gradient(transparent 68%,#000 69%,#000 70%,transparent 71%);
}

.hud-orbit::after {
  content: "";
  position: absolute;
  inset: -24px;
  border: 1px dashed #3a78962e;
  border-radius: 50%;
}

.hud-orbit-ring {
  position: absolute;
  inset: 6px;
  border: 1px solid #2b718d;
  border-radius: 50%;
  background: conic-gradient(from 15deg,transparent 0 19%,#73e9ffb3 19% 28%,transparent 28% 63%,#4bafd4b0 63% 83%,transparent 83%);
  mask-image: radial-gradient(transparent 68%,#000 69%);
  animation: orbit-turn 42s linear infinite;
  box-shadow: 0 0 20px #53cfff10;
}

.hud-orbit-ring.ring-two {
  inset: 21px;
  border: 1px dashed #76dff49c;
  background: conic-gradient(transparent 0 48%,#abf6ff 48% 66%,transparent 66%);
  animation-duration: 30s;
  animation-direction: reverse;
}

.hud-orbit-ring.ring-three {
  inset: 39px;
  border: 2px solid #327894;
  border-top-color: #a0f4ff;
  border-bottom-color: #6addea;
  background: none;
  mask-image: none;
  animation-duration: 19s;
}

.hud-core {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 139px;
  height: 139px;
  border: 1px solid #5bb9d4;
  border-radius: 50%;
  background: radial-gradient(circle,#b8fbff 0%,#53d0f24d 3%,#0a668655 24%,#0a253ce6 62%,#154b6580 69%);
  box-shadow: inset 0 0 30px #4cdeff16,0 0 20px #37bdf71b;
  overflow: hidden;
}

.hud-core::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid #438cad66;
  border-radius: 50%;
}

.hud-core::after {
  content: "";
  position: absolute;
  width: 65px;
  height: 65px;
  border: 1px solid #b9f6ff55;
  transform: rotate(45deg);
  box-shadow: 0 0 20px #6fedff1a;
}

.hud-logo {
  position: relative;
  z-index: 2;
  width: 130px;
  height: 24px;
}

.hud-core small {
  position: relative;
  z-index: 2;
  margin-top: 5px;
  color: #98d8e8;
  font: 6px var(--mono);
  letter-spacing: 2px;
}

.hud-sweep {
  position: absolute;
  inset: 19px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,transparent 76%,#61e1ff18 99%,#8eecff50 100%);
  animation: orbit-turn 12s linear infinite;
  pointer-events: none;
}

.hud-orbit-label {
  position: absolute;
  z-index: 3;
  font: 6px var(--mono);
  letter-spacing: 1.2px;
  color: #6291aa;
  background: #071826;
  padding: 2px 5px;
}

.hud-orbit-label.north {
  top: -6px;
}

.hud-orbit-label.south {
  bottom: -6px;
}

.hud-orbit-node {
  position: absolute;
  z-index: 3;
  width: 5px;
  height: 5px;
  background: #b5f5ff;
  border-radius: 50%;
  box-shadow: 0 0 9px #62e8ff;
}

.hud-orbit-node.one {
  left: 16px;
  top: 60px;
}

.hud-orbit-node.two {
  right: 23px;
  bottom: 47px;
  width: 3px;
  height: 3px;
}

.hud-telemetry {
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 2;
  padding-left: 25px;
  border-left: 1px solid #20516a88;
}

.hud-telemetry-item {
  display: grid;
  gap: 5px;
}

.hud-telemetry-item>span {
  color: #688fa8;
  font: 7px var(--mono);
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.hud-telemetry-item>strong {
  font: 24px var(--mono);
  color: #bce9f4;
  font-weight: 400;
  line-height: 1.1;
}

.hud-telemetry-item>strong small {
  font: 8px var(--mono);
  color: #6a9ab1;
  margin-left: 5px;
}

.hud-telemetry-item.warning>strong {
  color: #e7c28c;
}

.hud-status-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #81bac7;
  font: 7px var(--mono);
  letter-spacing: .9px;
  text-transform: uppercase;
}

.hud-status-line .status-dot {
  width: 4px;
  height: 4px;
}

.hud-signal {
  display: flex;
  align-items: end;
  height: 17px;
  gap: 3px;
  margin-top: 8px;
}

.hud-signal i {
  width: 3px;
  height: 4px;
  background: #528ea3;
  opacity: .6;
}

.hud-signal i:nth-child(2n) {
  height: 9px;
  background: #71c2d7;
}

.hud-signal i:nth-child(3n) {
  height: 14px;
  background: #7adcfa;
}

.hud-signal i:nth-child(4n) {
  height: 6px;
}

/* 09 · Voice command bridge */
#voice-root {
  position: relative;
  z-index: 90;
}

.voice-dock {
  --voice-color: #6ce5ff;
  position: fixed;
  right: 23px;
  bottom: 20px;
  z-index: 90;
  width: 365px;
  max-width: calc(100vw - 34px);
  max-height: min(80dvh,740px);
  overflow: hidden;
  border: 1px solid #39768e;
  border-radius: 9px;
  background: linear-gradient(145deg,#0b2537f5,#04131ff7);
  box-shadow: 0 18px 60px #0009,0 0 35px #2997be19;
  backdrop-filter: blur(20px);
  transition: border-color .25s,box-shadow .25s;
}

.voice-dock::before {
  content: "";
  position: absolute;
  top: 0;
  left: 23px;
  right: 23px;
  height: 1px;
  background: linear-gradient(90deg,transparent,var(--voice-color),transparent);
  opacity: .9;
  pointer-events: none;
}

.voice-dock.listening,.voice-dock[data-state=listening] {
  --voice-color: #8dffe1;
  border-color: #63b6b9;
  box-shadow: 0 18px 60px #0009,0 0 35px #3eeec021;
}

.voice-dock.speaking,.voice-dock[data-state=speaking] {
  --voice-color: #b0c7ff;
  border-color: #6888c7;
}

.voice-dock.busy,.voice-dock[data-state=thinking] {
  --voice-color: #ffd58c;
  border-color: #8d7650;
}

.voice-dock.error,.voice-dock[data-state=error] {
  --voice-color: #ff9bb4;
  border-color: #984b67;
}

.voice-dock.voice-compact {
  width: 244px;
  max-height: 68px;
  border-radius: 7px;
}

.voice-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 65px;
  padding: 11px 16px;
  border: 0;
  background: transparent;
  color: #c8eaf5;
  text-align: left;
  cursor: pointer;
}

.voice-toggle:hover {
  background: #16435b40;
}

.voice-toggle>span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.voice-toggle .voice-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #bde7f6;
  font: 9px var(--mono);
  letter-spacing: 1px;
  font-weight: 500;
  white-space: nowrap;
}

.voice-logo {
  width: 98px;
  height: 18px;
  flex-shrink: 0;
}

.voice-compact .voice-badge {
  display: none;
}

.voice-toggle small,.voice-toggle .voice-status {
  display: block;
  font-size: 8px;
  color: #729fb8;
  margin-top: 4px;
  line-height: 1.4;
}

.voice-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid #63b9d1;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--voice-color);
  background: radial-gradient(circle,#a6eeff29 0 17%,#154e723b 18% 49%,#0b2439 50% 60%,#62c6e233 61% 63%,transparent 65%);
  box-shadow: 0 0 17px #64efff16;
}

.voice-orb::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid transparent;
  border-top-color: var(--voice-color);
  border-bottom-color: #2e7997;
  border-radius: 50%;
  opacity: .8;
  animation: orbit-turn 9s linear infinite;
}

.voice-orb::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid #65cee94a;
  border-radius: 50%;
}

.voice-orb svg {
  width: 16px;
  height: 16px;
  color: var(--voice-color);
}

.voice-wave {
  display: block;
  width: 17px;
  height: 14px;
  background: repeating-linear-gradient(90deg,var(--voice-color) 0 2px,transparent 2px 4px);
  clip-path: polygon(0 36%,12% 36%,12% 13%,24% 13%,24% 29%,35% 29%,35% 0,47% 0,47% 21%,59% 21%,59% 37%,71% 37%,71% 18%,83% 18%,83% 40%,100% 40%,100% 60%,83% 60%,83% 82%,71% 82%,71% 63%,59% 63%,59% 79%,47% 79%,47% 100%,35% 100%,35% 71%,24% 71%,24% 87%,12% 87%,12% 64%,0 64%);
  opacity: .7;
  transform-origin: center;
}

.voice-dock.listening .voice-wave,.voice-dock.speaking .voice-wave,.voice-dock[data-state=listening] .voice-wave,.voice-dock[data-state=speaking] .voice-wave {
  animation: voice-level .6s ease-in-out infinite alternate;
}

.voice-dock[data-state=paused] .voice-orb::before {
  animation-play-state: paused;
  opacity: .5;
}

.voice-panel {
  max-height: calc(min(80dvh,740px) - 65px);
  padding: 0 17px 17px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid #1d465c;
}

.voice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 0;
}

.voice-toolbar>strong {
  font-size: 11px;
  font-weight: 500;
  color: #b4deee;
}

.voice-status {
  color: #9ad0e3;
  font: 10px var(--mono);
  line-height: 1.7;
}

.voice-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 5px;
  border: 1px solid #2f5c73;
  border-radius: 3px;
  color: #87bdcf;
  background: #0e2d3f;
  font: 7px var(--mono);
  text-transform: uppercase;
  letter-spacing: .8px;
}

.voice-context {
  color: #6b96b1;
  font-size: 9px;
  line-height: 1.75;
  margin: 0 0 11px;
}

.voice-transcript,.voice-reply {
  margin: 9px 0;
  padding: 11px 12px;
  border: 1px solid #23475d;
  border-radius: 4px;
  background: #051623;
  color: #97bdd3;
  font-size: 11px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.voice-transcript {
  border-left: 2px solid #498aa9;
}

.voice-transcript:empty,.voice-reply:empty {
  display: none;
}

.voice-transcript strong,.voice-reply strong {
  color: #c5e8f4;
  font-weight: 550;
}

.voice-reply {
  border-color: #285366;
  background: #0c2937;
  color: #b0d5e5;
}

.voice-controls {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.voice-controls .button {
  flex: 1;
  min-height: 36px;
  font-size: 9px;
  padding: 8px 10px;
}

.voice-controls .button.primary {
  background: var(--primary);
  border-color: #2b5d92;
  color: #e4f5ff;
  box-shadow: 0 0 17px rgba(12,39,72,0.3);
}

.voice-controls .button.primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

.voice-settings {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #22465c;
}

.voice-settings>summary,.voice-command-list>summary {
  color: #87bdd2;
  font: 9px var(--mono);
  cursor: pointer;
  padding: 2px 0 9px;
}

.voice-settings label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #78a6bf;
  font-size: 9px;
  margin-bottom: 8px;
}

.voice-settings select,.voice-settings input[type=number],.voice-settings input[type=text] {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 8px;
  border: 1px solid #2c526b;
  border-radius: 4px;
  background: #061a28;
  color: #a9d0e2;
  font-size: 10px;
}

.voice-settings input[type=range] {
  width: 100%;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--accent);
}

.voice-settings input[type=checkbox] {
  accent-color: var(--accent);
}

.voice-setting-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin-top: 9px;
}

.voice-setting-grid>label:first-child {
  grid-column: 1/-1;
}

.voice-setting-grid .full {
  grid-column: 1/-1;
}

.voice-note {
  margin: 9px 0;
  color: #7299af;
  font-size: 9px;
  line-height: 1.75;
}

.voice-command-list {
  padding: 12px 0 0;
  margin-top: 12px;
  border-top: 1px solid #22465c;
}

.voice-command-item {
  padding: 8px 10px;
  margin: 8px 0;
  border: 1px solid #1e4055;
  border-radius: 4px;
  background: #092232;
  color: #8bbbd1;
  font-size: 10px;
  line-height: 1.8;
  text-align: left;
}

.voice-command-item>span,.voice-command-item small {
  display: block;
  color: #648ea8;
  font-size: 8px;
  margin-top: 3px;
}

.voice-confirmation {
  padding: 13px;
  margin: 12px 0;
  border: 1px solid #80653d;
  border-radius: 5px;
  background: #332819;
  color: #e1c394;
  font-size: 11px;
  line-height: 1.75;
}

.voice-confirmation .voice-controls {
  margin-bottom: 8px;
}

.voice-confirmation strong {
  color: #f5dba9;
  font-weight: 550;
}

.voice-confirmation p {
  margin: 7px 0;
}

.voice-confirmation small {
  font-size: 8px;
  color: #bbaa86;
}

.voice-history {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.voice-input-form {
  display: flex;
  align-items: stretch;
  gap: 7px;
  margin-top: 14px;
}

.voice-input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid #315e76;
  border-radius: 4px;
  background: #041420;
  color: #b8e2f2;
  font-size: 11px;
}

.voice-input::placeholder {
  color: #668da6;
}

.voice-input:focus {
  border-color: #65bace;
  outline: none;
  box-shadow: 0 0 0 2px #64efff0a;
}

.voice-input-form .icon-button {
  height: auto;
  min-width: 34px;
  border: 1px solid #2b566d;
  background: #0d3041;
  color: #9fd2e5;
  font-size: 21px;
}

.voice-collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #285269;
  border-radius: 4px;
  background: #0b2a3c;
  color: #8ac2d6;
}

.listening-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8aead2;
  font: 9px var(--mono);
}

.listening-indicator::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px #72f1d814;
  animation: signal-pulse 1.6s ease-in-out infinite;
}

/* 10 · Voice-guided arrival and document camera */
.tablet-voice-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 13px 18px;
  padding: 21px;
  margin: 24px 0 0;
  border: 1px solid #38748f;
  border-radius: 7px;
  background: radial-gradient(ellipse at 15% 30%,#1a678247,transparent 68%),#091f2f;
  overflow: hidden;
}

.tablet-voice-intro::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 26px;
  width: 37px;
  height: 37px;
  border: 1px solid #68c2db;
  border-radius: 50%;
  background: radial-gradient(circle,#baf9ff50,transparent 50%);
  box-shadow: 0 0 0 5px #265c753d,0 0 0 9px #3c7e8e20,0 0 22px #66c8ff21;
}

.tablet-voice-intro>div {
  padding-left: 55px;
}

.tablet-voice-intro strong,.tablet-voice-intro h2 {
  display: block;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 500;
  color: #c2eefb;
}

.tablet-voice-intro p {
  margin: 0;
  max-width: 390px;
  color: #82aac3;
  font-size: 10px;
  line-height: 1.75;
}

.tablet-voice-intro>.form-hint {
  grid-column: 1/-1;
  padding-top: 9px;
  margin: 0;
  border-top: 1px solid #254759;
  color: #6b97b0;
  font-size: 8px;
  line-height: 1.75;
}

.tablet-voice-start {
  min-height: 41px;
  flex-shrink: 0;
  font-size: 10px;
}

.tablet-auto-stage {
  padding: 20px;
  border: 1px solid #2f6984;
  border-radius: 7px;
  background: linear-gradient(145deg,#0d3043,#061a29);
  margin: 18px 0 22px;
}

.tablet-voice-step {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  color: #c2e8f5;
  font-size: 16px;
  font-weight: 450;
}

.tablet-voice-step>span:first-child {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  padding: 3px;
  border: 1px solid #4a849e;
  border-radius: 4px;
  background: #174357;
  color: #a5e2f1;
  font: 10px var(--mono);
}

.tablet-live-transcript {
  min-height: 66px;
  margin: 12px 0;
  padding: 13px 16px;
  border-left: 2px solid #57afc6;
  border-radius: 0 5px 5px 0;
  background: #061a27;
  color: #b1d9eb;
  font-size: 14px;
  line-height: 1.7;
}

.tablet-live-transcript:empty::before {
  content: "Listening for your response…";
  color: #567e98;
  font-style: italic;
  font-size: 12px;
}

.tablet-camera-preview {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #386d89;
  border-radius: 7px;
  background: #020a11;
  aspect-ratio: 4/3;
  margin: 0 0 16px;
}

.tablet-camera-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tablet-camera-frame {
  position: absolute;
  inset: 12% 13%;
  border: 1px dashed #82dceb99;
  pointer-events: none;
  box-shadow: 0 0 0 120px #0006;
}

.tablet-camera-frame::before,.tablet-camera-frame::after {
  content: "";
  position: absolute;
  width: 27px;
  height: 27px;
  border-color: #a8f4ff;
  border-style: solid;
}

.tablet-camera-frame::before {
  top: -2px;
  left: -2px;
  border-width: 3px 0 0 3px;
}

.tablet-camera-frame::after {
  bottom: -2px;
  right: -2px;
  border-width: 0 3px 3px 0;
}

.camera-capture-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  color: #ddfbff;
  font: 26px var(--mono);
  text-shadow: 0 0 20px #000;
  background: #05152135;
}

.camera-capture-overlay span,.camera-capture-overlay small {
  font: 10px var(--mono);
  letter-spacing: 1px;
}

.tablet-capture-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 17px 0 5px;
}

.tablet-capture-actions .button {
  min-height: 42px;
}

#invoice-form>.button[data-voice-action=camera] {
  margin-bottom: 18px;
}

/* 11 · Responsive composition — centralized, large screens to small. */

@media(min-width:1600px) {
  .workspace {
    padding: 34px 42px 48px;
  }

  .topbar {
    padding: 0 42px;
  }

  .page-title {
    font-size: 29px;
  }

  .camera-scene {
    aspect-ratio: 1.65;
  }

  .camera-name {
    font-size: 13px;
  }

  .camera-meta,.camera-timestamp {
    font-size: 9px;
  }

  .feed-badge {
    font-size: 8px;
  }

  .incident-title {
    font-size: 13px;
  }

  .incident-summary {
    font-size: 11px;
  }

  .incident-meta {
    font-size: 10px;
  }

  .panel-header {
    min-height: 73px;
  }

  .stat-card {
    padding: 22px;
  }

  .stat-value {
    font-size: 34px;
  }

  .data-table td {
    padding: 17px 22px;
  }

  .panel-title {
    font-size: 14px;
  }

  .workspace-footer {
    padding-left: 42px;
    padding-right: 42px;
  }

  .incident-grid .incident-card {
    padding: 24px;
  }

  .incident-grid .incident-title {
    font-size: 15px;
  }

  .hud-hero {
    min-height: 284px;
    grid-template-columns: minmax(280px,1fr) 290px minmax(180px,.75fr);
    padding: 30px 40px;
  }

  .hud-orbit {
    width: 255px;
    height: 255px;
  }

  .hud-core {
    width: 152px;
    height: 152px;
  }

  .hud-title {
    font-size: 40px;
  }

  .hud-subtitle {
    font-size: 11px;
    max-width: 315px;
  }

  .hud-telemetry {
    gap: 20px;
    padding-left: 36px;
  }

  .hud-telemetry-item>span {
    font-size: 8px;
  }

  .hud-telemetry-item>strong {
    font-size: 27px;
  }

}

@media(max-width:1280px) {
  .sidebar {
    width: 204px;
    flex-basis: 204px;
    padding-left: 13px;
    padding-right: 13px;
  }

  .main {
    margin-left: 204px;
  }

  .brand {
    margin-left: 0;
    margin-right: 0;
  }

  .brand-subtitle {
    font-size: 8px;
  }

  .workspace {
    padding: 26px 24px 35px;
  }

  .topbar {
    padding: 0 24px;
    height: 68px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0,1.8fr) minmax(270px,1fr);
    gap: 17px;
  }

  .stat-grid {
    gap: 11px;
  }

  .stat-card {
    padding: 16px 14px;
  }

  .stat-icon {
    right: 12px;
    top: 13px;
    width: 27px;
    height: 27px;
  }

  .stat-label {
    font-size: 10px;
  }

  .stat-value {
    font-size: 28px;
  }

  .stat-note {
    font-size: 9px;
  }

  .camera-grid {
    gap: 10px;
    padding: 12px;
  }

  .camera-scene {
    aspect-ratio: 1.45;
  }

  .camera-name {
    font-size: 10px;
  }

  .camera-meta {
    font-size: 7px;
  }

  .panel-header {
    padding: 16px;
  }

  .panel-title {
    font-size: 12px;
  }

  .incident-list {
    padding: 0 14px;
  }

  .incident-card {
    padding: 15px 0;
  }

  .topbar-actions {
    gap: 12px;
  }

  .page-title {
    font-size: 25px;
  }

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

  .split-grid {
    grid-template-columns: minmax(0,1.4fr) minmax(260px,1fr);
    gap: 17px;
  }

  .data-table th,.data-table td {
    padding-left: 15px;
    padding-right: 15px;
  }

  .workspace-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .sidebar>.site-card {
    padding: 10px 8px;
  }

  .site-card strong {
    font-size: 9px;
  }

  .site-card div>span {
    font-size: 7px;
  }

  .stat-top {
    gap: 5px;
  }

  .stat-top .stat-label {
    font-size: 9px;
  }

  .stat-top .stat-icon {
    width: 25px;
    height: 25px;
  }

  .stat-card .stat-note {
    font-size: 8px;
  }

  .incident-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 15px;
  }

  .incident-grid>.incident-card {
    padding: 18px;
  }

  .notification-actions {
    flex-direction: column;
    align-items: end;
    gap: 4px;
  }

  .notification-item .muted {
    font-size: 8px;
  }

  .hud-hero {
    grid-template-columns: minmax(205px,1fr) 210px minmax(130px,.65fr);
    min-height: 245px;
    gap: 13px;
    padding: 24px;
  }

  .hud-title {
    font-size: 30px;
  }

  .hud-subtitle {
    max-width: 235px;
    font-size: 9px;
  }

  .hud-orbit {
    width: 205px;
    height: 205px;
  }

  .hud-core {
    width: 110px;
    height: 110px;
  }

  .hud-logo {
    width: 104px;
    height: 20px;
  }

  .hud-core small {
    font-size: 5px;
  }

  .hud-core::after {
    width: 52px;
    height: 52px;
  }

  .hud-orbit-ring.ring-three {
    inset: 33px;
  }

  .hud-telemetry {
    padding-left: 18px;
    gap: 14px;
  }

  .hud-telemetry-item>strong {
    font-size: 23px;
  }

  .hud-telemetry-item>span {
    font-size: 6px;
  }

  .hud-status-line {
    font-size: 6px;
    letter-spacing: .5px;
  }

}

@media(max-width:1100px) {
  .auth-shell {
    gap: 30px;
    padding: 34px;
    grid-template-columns: minmax(0,1fr) minmax(340px,1fr);
  }

  .auth-story h1 {
    font-size: 43px;
    letter-spacing: -1.6px;
  }

  .auth-reactor {
    width: 230px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-side {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
    align-items: start;
  }

  .dashboard-side>.panel+.panel {
    margin-top: 0;
  }

  .camera-scene {
    aspect-ratio: 16/9;
  }

  .camera-name {
    font-size: 12px;
  }

  .camera-meta {
    font-size: 8px;
  }

  .camera-grid {
    gap: 15px;
    padding: 16px;
  }

  .stat-icon {
    width: 23px;
    height: 23px;
    right: 10px;
  }

  .stat-icon svg {
    height: 13px;
    width: 13px;
  }

  .stat-label {
    max-width: 75px;
    min-height: 30px;
    margin-bottom: 7px;
  }

  .topbar .connection-pill {
    display: none;
  }

  .heading-actions {
    gap: 6px;
  }

  .heading-actions .button {
    padding: 7px 10px;
    font-size: 10px;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .page-heading {
    align-items: start;
  }

  .toolbar {
    align-items: start;
    flex-wrap: wrap;
  }

  .search-input {
    width: 280px;
  }

  .supervisor-select {
    flex-direction: column;
    align-items: start;
    gap: 5px;
  }

  .supervisor-select select {
    max-width: 220px;
  }

  .mini-stats {
    gap: 22px;
  }

  .stat-top .stat-label {
    font-size: 9px;
  }

  .stat-top .stat-icon {
    width: 22px;
    height: 22px;
  }

  .stat-top .stat-icon svg {
    height: 12px;
    width: 12px;
  }

  .notification-item {
    align-items: start;
  }

  .hud-hero {
    grid-template-columns: minmax(200px,1fr) 205px;
    min-height: 267px;
  }

  .hud-telemetry {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0 0;
    border-left: 0;
    border-top: 1px solid #20516a88;
    gap: 14px;
  }

  .hud-telemetry-item {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .hud-telemetry-item>strong {
    font-size: 18px;
  }

  .hud-telemetry-item>span {
    font-size: 6px;
    max-width: 65px;
    line-height: 1.6;
  }

  .hud-telemetry-item>strong small {
    font-size: 6px;
  }

  .hud-signal {
    display: none;
  }

}

@media(max-width:768px) {
  .auth-shell {
    grid-template-columns: minmax(0,1fr);
    gap: 28px;
    padding: 28px 24px 40px;
    align-content: start;
  }

  .auth-story {
    width: 100%;
    max-width: 510px;
    justify-self: center;
  }

  .auth-story .brand {
    margin-bottom: 30px;
  }

  .auth-story h1 {
    font-size: 36px;
    max-width: 420px;
    letter-spacing: -1.2px;
    margin-bottom: 13px;
  }

  .auth-description {
    font-size: 12px;
    max-width: 440px;
  }

  .auth-reactor {
    display: none;
  }

  .auth-panel {
    justify-self: center;
    padding: 28px;
  }

  .auth-eyebrow {
    margin-bottom: 13px;
  }

  .workspace-lock-pill {
    max-width: 175px;
    font-size: 8px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    inset: auto;
    padding: 16px 18px 0;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    z-index: 20;
    overflow: visible;
  }

  .brand {
    margin: 0 0 15px 0;
    gap: 8px;
  }

  .brand-logo {
    width: 168px;
    height: 32px;
  }

  .brand-subtitle {
    font-size: 7px;
    letter-spacing: 1.4px;
  }

  .sidebar nav,.sidebar .nav-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin: 0 -18px;
    padding: 0 18px 10px;
    scrollbar-width: none;
  }

  .sidebar nav::-webkit-scrollbar,.sidebar .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-section {
    display: none;
  }

  .nav-item {
    width: auto;
    min-height: 35px;
    padding: 8px 11px;
    gap: 7px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-bottom: 0;
    font-size: 10px;
  }

  .nav-item svg {
    height: 15px;
    width: 15px;
  }

  .nav-item.active:before {
    display: none;
  }

  .nav-count {
    font-size: 8px;
    min-width: 16px;
  }

  .sidebar-bottom {
    display: none;
  }

  .main {
    margin-left: 0;
  }

  .topbar {
    height: 53px;
    padding: 0 20px;
  }

  .breadcrumb {
    font-size: 10px;
    gap: 8px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .role-select {
    padding: 5px 20px 5px 7px;
    font-size: 10px;
    max-width: 139px;
  }

  .topbar-actions .avatar {
    height: 26px;
    width: 26px;
    font-size: 9px;
  }

  .icon-button {
    height: 29px;
    width: 29px;
  }

  .workspace {
    padding: 24px 20px 30px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-subtitle {
    font-size: 11px;
  }

  .page-heading {
    gap: 13px;
    margin-bottom: 18px;
    flex-wrap: wrap;
  }

  .heading-actions {
    margin-top: 2px;
  }

  .demo-banner {
    font-size: 9px;
    align-items: start;
    line-height: 1.7;
    padding: 9px 10px;
    margin-bottom: 19px;
  }

  .demo-banner svg {
    margin-top: 2px;
  }

  .stat-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 11px;
    margin-bottom: 20px;
  }

  .stat-card {
    padding: 16px 17px;
  }

  .stat-label {
    font-size: 10px;
    min-height: 0;
    max-width: none;
    margin-bottom: 13px;
  }

  .stat-icon {
    width: 27px;
    height: 27px;
    top: 13px;
    right: 15px;
  }

  .stat-icon svg {
    width: 15px;
    height: 15px;
  }

  .stat-value {
    font-size: 29px;
  }

  .dashboard-grid {
    gap: 18px;
  }

  .panel+.panel {
    margin-top: 18px;
  }

  .dashboard-side {
    display: block;
  }

  .dashboard-side>.panel+.panel {
    margin-top: 18px;
  }

  .camera-grid {
    gap: 11px;
    padding: 12px;
  }

  .camera-scene {
    aspect-ratio: 16/9;
  }

  .camera-name {
    font-size: 10px;
  }

  .camera-meta {
    font-size: 7px;
  }

  .camera-timestamp {
    font-size: 7px;
  }

  .feed-badge {
    font-size: 6px;
    padding: 2px 4px;
  }

  .camera-footer {
    font-size: 8px;
  }

  .panel-title {
    font-size: 13px;
  }

  .panel-header {
    min-height: 64px;
  }

  .incident-card {
    padding: 16px 2px;
  }

  .incident-title {
    font-size: 13px;
  }

  .incident-summary {
    font-size: 11px;
  }

  .incident-meta {
    font-size: 10px;
  }

  .incident-actions .button {
    font-size: 10px;
    min-height: 30px;
  }

  .activity-copy {
    font-size: 11px;
  }

  .activity-copy p {
    font-size: 10px;
  }

  .activity-time {
    font-size: 9px;
  }

  .toolbar {
    margin-bottom: 17px;
    gap: 12px;
  }

  .filter-button {
    font-size: 10px;
  }

  .search-input {
    width: 100%;
  }

  .device-grid {
    gap: 13px;
  }

  .device-card {
    padding: 16px;
  }

  .tablet-header {
    padding: 19px 22px;
  }

  .tablet-main {
    padding: 30px 20px 40px;
  }

  .tablet-main>.page-title {
    font-size: 27px;
  }

  .tablet-card {
    padding: 25px;
  }

  .tablet-header .connection-pill {
    font-size: 9px;
  }

  .tablet-header .button {
    font-size: 10px;
    padding: 7px 10px;
  }

  .stepper {
    margin-bottom: 27px;
  }

  .form-grid {
    gap: 16px;
  }

  .modal-backdrop {
    padding: 18px;
  }

  .modal {
    max-height: calc(100dvh - 36px);
  }

  .modal-header {
    padding: 17px 19px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    padding: 15px 19px;
  }

  .toast-stack {
    bottom: auto;
    right: 17px;
    top: 17px;
  }

  .page-footer {
    flex-wrap: wrap;
  }

  .sidebar>.brand {
    margin: 0 0 15px;
  }

  .sidebar>.site-card {
    display: none;
  }

  .sidebar .sidebar-bottom {
    display: none;
  }

  .topbar-divider {
    display: none;
  }

  .workspace-footer {
    padding: 0 20px 24px;
    font-size: 7px;
    padding-bottom: 97px;
  }

  .stat-top .stat-label {
    font-size: 10px;
  }

  .stat-top .stat-icon {
    height: 28px;
    width: 28px;
  }

  .stat-top .stat-icon svg {
    width: 15px;
    height: 15px;
  }

  .stat-card .stat-note {
    font-size: 9px;
  }

  .camera-wall {
    gap: 15px;
  }

  .camera-wall .feed-badge {
    font-size: 7px;
  }

  .camera-wall .zone-marker span {
    font-size: 5px;
  }

  .tablet-header-right {
    gap: 13px;
  }

  .tablet-header-right .badge {
    font-size: 8px;
  }

  .tablet-header-right .text-link {
    font-size: 9px;
  }

  .tablet-intro h1 {
    font-size: 27px;
  }

  .tablet-intro p {
    font-size: 11px;
  }

  .tablet-help {
    font-size: 8px;
    gap: 13px;
  }

  .tablet-card-heading h2 {
    font-size: 18px;
  }

  .tablet-card-heading p {
    font-size: 10px;
  }

  .tablet-card-heading>.stat-icon {
    height: 38px;
    width: 38px;
  }

  .tablet-card .form-actions {
    margin-top: 3px;
  }

  .supervisor-select {
    flex-direction: row;
    align-items: center;
  }

  .supervisor-select select {
    max-width: 270px;
  }

  .notification-item {
    flex-wrap: wrap;
    gap: 10px;
  }

  .notification-actions {
    margin-left: 44px;
    flex-direction: row;
    align-items: center;
    width: calc(100% - 44px);
  }

  .incident-grid .incident-title {
    font-size: 13px;
  }

  .incident-grid .incident-summary {
    font-size: 10px;
    min-height: 48px;
  }

  .incident-grid>.incident-card {
    padding: 17px;
  }

  .mini-stats {
    font-size: 10px;
    gap: 19px;
    margin-top: 20px;
  }

  .mini-stats strong {
    font-size: 20px;
  }

  .panel>.toolbar {
    padding: 15px;
  }

  .tablet-card-heading {
    margin-bottom: 24px;
  }

  .sidebar::after {
    display: none;
  }

  .hud-hero {
    padding: 23px;
    gap: 14px 20px;
    grid-template-columns: minmax(180px,1fr) 205px;
    min-height: 271px;
  }

  .hud-title {
    font-size: 29px;
  }

  .hud-intro .eyebrow {
    font-size: 7px;
    letter-spacing: 1.5px;
  }

  .hud-subtitle {
    font-size: 9px;
    margin-bottom: 17px;
  }

  .hud-intro .button {
    font-size: 8px;
  }

  .hud-orbit {
    width: 192px;
    height: 192px;
  }

  .hud-orbit-ring {
    inset: 3px;
  }

  .hud-orbit-ring.ring-two {
    inset: 18px;
  }

  .hud-orbit-ring.ring-three {
    inset: 30px;
  }

  .hud-core {
    width: 105px;
    height: 105px;
  }

  .hud-telemetry {
    gap: 10px;
  }

  .hud-telemetry-item>strong {
    font-size: 18px;
  }

  .hud-status-line {
    font-size: 6px;
  }

  .voice-dock {
    bottom: 13px;
    right: 13px;
    width: 355px;
    max-height: 77dvh;
  }

  .voice-panel {
    max-height: calc(77dvh - 65px);
  }

  .voice-dock.voice-compact {
    width: 230px;
  }

  .tablet-voice-intro {
    gap: 13px;
    padding: 20px;
  }

  .tablet-voice-intro strong {
    font-size: 15px;
  }

  .tablet-voice-start {
    font-size: 9px;
  }

}

@media(max-width:480px) {
  .auth-shell {
    gap: 22px;
    padding: 23px 16px 32px;
  }

  .auth-story .brand {
    margin-bottom: 24px;
  }

  .auth-story h1 {
    font-size: 30px;
  }

  .auth-panel {
    padding: 22px 18px;
  }

  .auth-panel-header h2,.auth-panel>h2 {
    font-size: 23px;
  }

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

  .account-row {
    padding: 14px;
    gap: 13px;
  }

  .account-actions {
    width: 100%;
  }

  .account-actions>.button {
    flex: 1;
  }

  .boot-caption {
    font-size: 7px;
    letter-spacing: 1px;
  }

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

  .sidebar {
    padding-left: 15px;
    padding-right: 15px;
  }

  .sidebar nav,.sidebar .nav-list {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .topbar {
    padding: 0 15px;
  }

  .breadcrumb>span:first-child {
    display: none;
  }

  .topbar-actions {
    gap: 5px;
  }

  .page-title {
    font-size: 23px;
  }

  .page-subtitle {
    line-height: 1.7;
  }

  .eyebrow {
    font-size: 8px;
  }

  .heading-actions {
    width: 100%;
    margin-top: 4px;
  }

  .heading-actions .button {
    flex: 1;
    min-height: 34px;
    font-size: 10px;
  }

  .stat-grid {
    gap: 10px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-label {
    font-size: 10px;
    max-width: 98px;
    min-height: 30px;
    margin-bottom: 3px;
  }

  .stat-icon {
    width: 23px;
    height: 23px;
    right: 11px;
    top: 11px;
  }

  .stat-value {
    font-size: 28px;
    margin-bottom: 9px;
  }

  .stat-note {
    font-size: 9px;
    line-height: 1.6;
  }

  .camera-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .camera-scene {
    aspect-ratio: 16/9;
  }

  .camera-name {
    font-size: 12px;
  }

  .camera-meta,.camera-timestamp {
    font-size: 8px;
  }

  .feed-badge {
    font-size: 7px;
  }

  .panel-header {
    padding: 15px;
  }

  .panel-body {
    padding: 16px;
  }

  .panel-subtitle {
    font-size: 9px;
  }

  .panel-header .button {
    font-size: 9px;
  }

  .button {
    white-space: normal;
  }

  .panel-header .button,.heading-actions .button {
    white-space: nowrap;
  }

  .device-grid {
    grid-template-columns: 1fr;
  }

  .split-grid {
    gap: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    gap: 8px;
  }

  .form-actions .button {
    flex: 1;
    min-height: 40px;
  }

  .tablet-header {
    padding: 17px 16px;
  }

  .tablet-header .brand-subtitle {
    display: none;
  }

  .tablet-header .connection-pill {
    display: none;
  }

  .tablet-header .brand-logo {
    width: 142px;
    height: 28px;
  }

  .tablet-main {
    padding: 27px 14px 35px;
  }

  .tablet-main>.page-title {
    font-size: 25px;
  }

  .tablet-main>.page-subtitle {
    font-size: 11px;
    margin-bottom: 22px;
  }

  .tablet-card {
    padding: 20px 18px;
    border-radius: 13px;
  }

  .tablet-card h2 {
    font-size: 18px;
  }

  .tablet-card .form-grid {
    gap: 19px;
  }

  .tablet-card .button {
    min-height: 45px;
    padding: 10px 12px;
    font-size: 11px;
  }

  .stepper {
    margin: 24px 0;
  }

  .step {
    font-size: 9px;
    gap: 8px;
  }

  .step:after {
    left: calc(50% + 21px);
    right: calc(-50% + 21px);
  }

  .dropzone {
    padding: 23px 15px;
  }

  .invoice-preview {
    gap: 10px;
    padding: 11px;
  }

  .invoice-preview img {
    width: 80px;
    max-height: 120px;
  }

  .tablet-status h2 {
    font-size: 23px;
  }

  .tablet-status p {
    font-size: 11px;
  }

  .visit-reference {
    font-size: 20px;
  }

  .tabs {
    gap: 20px;
    overflow-x: auto;
  }

  .tab {
    font-size: 10px;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal {
    max-height: calc(100dvh - 20px);
    border-radius: 12px;
  }

  .modal-header {
    padding: 15px 17px;
  }

  .modal-header h2 {
    font-size: 16px;
  }

  .modal-body {
    padding: 18px 16px;
  }

  .modal-footer {
    padding: 13px 16px;
  }

  .modal-footer .button {
    flex: 1;
    min-height: 38px;
  }

  .notification-item {
    padding: 16px 14px;
    gap: 10px;
  }

  .notification-item h3 {
    font-size: 12px;
  }

  .site-map {
    padding: 13px;
    gap: 8px;
    min-height: 190px;
  }

  .map-zone {
    font-size: 8px;
    padding: 9px 5px;
  }

  .toast-stack {
    right: 12px;
    bottom: auto;
    max-width: calc(100vw - 24px);
    top: 12px;
  }

  .toast {
    font-size: 11px;
    padding: 11px 14px;
  }

  .data-table th,.data-table td {
    padding-left: 14px;
    padding-right: 14px;
  }

  .filter-group {
    gap: 5px;
  }

  .filter-button {
    padding: 7px 9px;
    font-size: 9px;
  }

  .workspace-footer {
    padding: 0 14px 20px;
    font-size: 6px;
    gap: 7px;
  }

  .workspace-footer>span {
    gap: 4px;
  }

  .workspace-footer .icon {
    width: 9px;
    height: 9px;
  }

  .stat-top .stat-icon {
    height: 24px;
    width: 24px;
  }

  .stat-top .stat-label {
    font-size: 9px;
  }

  .stat-top {
    margin-bottom: 10px;
  }

  .stat-card .stat-note {
    font-size: 8px;
  }

  .camera-wall .feed-badge {
    font-size: 7px;
  }

  .incident-grid {
    grid-template-columns: 1fr;
  }

  .incident-grid .incident-summary {
    min-height: 0;
    font-size: 11px;
  }

  .incident-grid .incident-title {
    font-size: 14px;
  }

  .incident-grid .incident-actions {
    margin-top: 15px;
  }

  .supervisor-select {
    flex-direction: column;
    align-items: start;
    width: 100%;
    font-size: 9px;
  }

  .supervisor-select select {
    max-width: 100%;
    width: 100%;
    font-size: 11px;
  }

  .mini-stats {
    gap: 11px;
    justify-content: space-between;
    font-size: 8px;
  }

  .mini-stats>span {
    gap: 6px;
  }

  .mini-stats strong {
    font-size: 18px;
  }

  .tablet-header-right .badge {
    display: none;
  }

  .tablet-header-right .text-link {
    font-size: 8px;
  }

  .tablet-intro h1 {
    font-size: 26px;
    max-width: 290px;
    margin: 0 auto 11px;
  }

  .tablet-intro p {
    font-size: 11px;
    max-width: 300px;
    margin: auto;
    line-height: 1.8;
  }

  .tablet-intro .eyebrow {
    font-size: 8px;
  }

  .tablet-demo-note {
    font-size: 8px;
    padding: 5px 8px;
  }

  .tablet-card-heading {
    gap: 10px;
    margin-bottom: 23px;
  }

  .tablet-card-heading h2 {
    font-size: 17px;
  }

  .tablet-card-heading p {
    font-size: 10px;
    line-height: 1.7;
  }

  .tablet-card-heading>.stat-icon {
    height: 35px;
    width: 35px;
  }

  .tablet-card-heading>.stat-icon svg {
    height: 17px;
    width: 17px;
  }

  .tablet-help {
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
    font-size: 8px;
  }

  .tablet-footer {
    font-size: 8px;
  }

  .tablet-card .form-actions .form-hint {
    width: 100%;
    flex-basis: 100%;
    margin-bottom: 8px;
    font-size: 8px;
  }

  .visit-summary-strip {
    gap: 5px 12px;
    font-size: 10px;
  }

  .visit-summary-strip .mono {
    width: 100%;
    margin: 0;
  }

  .tablet-status .visit-reference>strong {
    font-size: 21px;
  }

  .detail-hero h3 {
    font-size: 15px;
  }

  .detail-hero p {
    font-size: 10px;
  }

  .detail-hero {
    gap: 9px;
  }

  .person-avatar.large {
    height: 38px;
    width: 38px;
    font-size: 12px;
  }

  .detail-hero>.badge {
    font-size: 8px;
  }

  .roi-fields {
    gap: 6px;
  }

  .roi-fields input {
    padding: 6px;
    font-size: 10px;
  }

  .notification-actions .button {
    font-size: 9px;
  }

  .notification-item .muted {
    font-size: 8px;
  }

  .panel-foot {
    font-size: 8px;
  }

  .readiness-list>div {
    font-size: 10px;
  }

  .tablet-status .timeline-item {
    font-size: 10px;
  }

  .hud-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 24px 21px 18px;
    min-height: 0;
  }

  .hud-intro {
    text-align: center;
  }

  .hud-intro .eyebrow {
    justify-content: center;
    font-size: 7px;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
  }

  .hud-title {
    font-size: 30px;
    margin-bottom: 12px;
  }

  .hud-title br {
    display: none;
  }

  .hud-title span {
    display: inline;
  }

  .hud-subtitle {
    margin: 0 auto 16px;
    max-width: 265px;
    font-size: 10px;
  }

  .hud-intro .button {
    min-height: 34px;
  }

  .hud-orbit {
    width: 178px;
    height: 178px;
    align-self: center;
    margin: 3px 0 8px;
  }

  .hud-orbit::after {
    inset: -16px;
  }

  .hud-orbit-ring.ring-three {
    inset: 26px;
  }

  .hud-orbit-ring.ring-two {
    inset: 15px;
  }

  .hud-core {
    height: 99px;
    width: 99px;
  }

  .hud-logo {
    width: 92px;
    height: 18px;
  }

  .hud-telemetry {
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 16px;
    gap: 12px 22px;
  }

  .hud-telemetry-item>strong {
    font-size: 20px;
  }

  .hud-telemetry-item>span {
    font-size: 6px;
  }

  .hud-status-line {
    width: 100%;
    justify-content: center;
    font-size: 7px;
    padding-top: 3px;
  }

  .voice-dock {
    left: 10px;
    right: 10px;
    bottom: max(10px,env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    max-height: 75dvh;
    border-radius: 8px;
  }

  .voice-panel {
    padding: 0 14px 15px;
    max-height: calc(75dvh - 63px);
  }

  .voice-dock.voice-compact {
    left: auto;
    width: 218px;
  }

  .voice-toggle {
    min-height: 63px;
    padding: 10px 13px;
    gap: 10px;
  }

  .voice-toggle .voice-brand {
    font-size: 9px;
  }

  .voice-toggle small,.voice-toggle .voice-status {
    font-size: 7px;
  }

  .voice-orb {
    width: 35px;
    height: 35px;
  }

  .voice-settings select {
    min-height: 38px;
  }

  .voice-input {
    min-height: 42px;
    font-size: 12px;
  }

  .voice-controls .button {
    min-height: 40px;
  }

  .tablet-voice-intro {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 19px 17px;
  }

  .tablet-voice-intro::before {
    top: 25px;
    left: 22px;
    width: 33px;
    height: 33px;
  }

  .tablet-voice-intro>div {
    padding-left: 52px;
  }

  .tablet-voice-intro strong {
    font-size: 15px;
  }

  .tablet-voice-intro .tablet-voice-start {
    width: 100%;
    min-height: 43px;
    font-size: 10px;
  }

  .tablet-auto-stage {
    padding: 18px 15px;
  }

  .tablet-voice-step {
    font-size: 14px;
  }

  .tablet-live-transcript {
    min-height: 62px;
    padding: 11px 13px;
    font-size: 13px;
  }

  .tablet-capture-actions .button {
    flex: 1;
    font-size: 10px;
  }

}

/* Compact desktop entry keeps the sign-in action and access note in view. */
@media(min-width:769px) and (max-height:800px) {
  .auth-shell {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .auth-story .brand {
    margin-bottom: 26px;
  }

  .auth-story h1 {
    margin-bottom: 16px;
  }

  .auth-reactor {
    width: 190px;
    margin: 18px auto 16px;
  }

  .auth-panel {
    padding: 24px 28px;
  }

  .auth-panel-header {
    margin-bottom: 16px;
  }

  .auth-panel>p {
    margin-bottom: 12px;
  }

  .auth-tabs {
    margin-bottom: 18px;
  }

  .auth-tabs button {
    min-height: 36px;
  }

  .auth-form.form-grid {
    gap: 14px 16px;
  }

  .auth-form .field input,.auth-form .field select {
    min-height: 41px;
  }

  .auth-footer {
    margin-top: 18px;
    padding-top: 12px;
  }
}

/* 12 · Motion and accessibility */

@keyframes fade-in { from{opacity:0}to{opacity:1} }

@keyframes modal-in { from{opacity:0;transform:translateY(9px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)} }

@keyframes toast-in { from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)} }

@keyframes shimmer { 0%{background-position:100% 0}100%{background-position:-100% 0} }

@keyframes orbit-turn { to { transform: rotate(360deg); } }

@keyframes voice-level { from { transform: scaleY(.6); opacity: .5; } to { transform: scaleY(1.65); opacity: 1; } }

@keyframes signal-pulse { 50% { box-shadow: 0 0 0 7px #72f1d806; opacity: .65; } }

@keyframes boot-connect { from { transform: translateX(-110%); } to { transform: translateX(330%); } }

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
    scroll-behavior: auto!important;
  }

  .camera-card:hover .camera-scene>img {
    transform: none;
  }

  .button:hover {
    transform: none;
  }

}

/* Perception overlays + event feed (server-side inference; minimal, CCTV-first). */
.perception-overlay{position:absolute;inset:0;pointer-events:none;z-index:3;}
.pbox{position:absolute;border:1px solid var(--accent);border-radius:2px;opacity:.9;}
.plabel{position:absolute;left:0;top:-1.35em;font-family:var(--mono);font-size:10px;line-height:1.2;white-space:nowrap;color:var(--accent);background:#040a12cc;padding:1px 5px;border:1px solid var(--border-soft);border-radius:3px;}
.perception-row{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:baseline;padding:9px 2px;border-top:1px solid var(--border-soft);}
.perception-type{font-family:var(--mono);font-size:12px;letter-spacing:.04em;color:var(--text);}
.perception-cam{font-size:12px;color:var(--muted);}
.perception-meta{margin-left:auto;font-family:var(--mono);font-size:11px;color:var(--faint);}

/* 13 · Command wall — viewport-locked 2x2, no page scroll, dashboard-themed tiles. */
:root{--wall-corner:var(--accent);--wall-line:#1d252d;--wall-head:#d7dee1;}
.app-shell.page-cameras{height:100dvh;min-height:100dvh;overflow:hidden;}
.page-cameras .main{display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden;}
.page-cameras .topbar{flex-shrink:0;}
.workspace--wall{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden!important;max-width:none;margin:0!important;align-self:stretch;padding:14px 18px!important;}
.wall-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);gap:0;overflow:hidden;}
.wall-layout--full{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;}
.wall-grid.camera-grid.camera-wall{padding:0;gap:12px;margin:0;height:100%;max-height:100%;width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));min-height:0;min-width:0;overflow:hidden;}
.wall-tile{position:relative;display:block;aspect-ratio:16/9;width:100%;height:auto;max-height:100%;max-width:100%;justify-self:center;align-self:center;min-height:0;min-width:0;overflow:hidden;background:#05080c;border:1px solid var(--wall-line);border-radius:2px;isolation:isolate;}
.wall-tile:hover{border-color:#2c3a44;box-shadow:none;}
.wall-corner{position:absolute;width:15px;height:15px;z-index:8;pointer-events:none;border:0 solid var(--wall-corner);}
.wall-corner.tl{top:-1px;left:-1px;border-top-width:2px;border-left-width:2px;}
.wall-corner.tr{top:-1px;right:-1px;border-top-width:2px;border-right-width:2px;}
.wall-corner.bl{bottom:-1px;left:-1px;border-bottom-width:2px;border-left-width:2px;}
.wall-corner.br{bottom:-1px;right:-1px;border-bottom-width:2px;border-right-width:2px;}
.wall-head{position:absolute;top:0;left:0;right:0;z-index:7;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px 20px;background:linear-gradient(#03101ad9,transparent);font-family:var(--mono);font-size:10px;letter-spacing:1.2px;color:var(--wall-head);white-space:nowrap;pointer-events:none;}
.wall-head .wall-id{text-shadow:0 1px 4px #000;}
.wall-head .wall-head-right,.wall-head .wall-select{pointer-events:auto;}
.wall-id{overflow:hidden;text-overflow:ellipsis;min-width:0;}
.wall-head-right{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.wall-live{font-size:9px!important;letter-spacing:1.2px!important;background:transparent!important;border:0!important;padding:0!important;color:var(--accent)!important;}
.wall-live .status-dot{width:6px!important;height:6px!important;background:var(--accent)!important;box-shadow:0 0 8px #64efff88!important;}
.wall-live:not(.live) .status-dot{background:#8a9aa4!important;box-shadow:none!important;}
.wall-live:not(.live){color:#8a9aa4!important;}
.wall-select{font-family:var(--mono);font-size:9px;letter-spacing:.8px;color:#b9d9e6;background:#0c1d2a;border:1px solid var(--border);border-radius:3px;padding:3px 5px;max-width:76px;cursor:pointer;}
.wall-select:hover{border-color:var(--accent);}
.wall-select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px #64efff22;}
.wall-select option{background:#0c1d2a;color:#d9f0fc;}
.wall-scene.camera-scene{flex:1;min-height:0;min-width:0;width:100%;height:auto;aspect-ratio:auto!important;padding:0;border:0;border-radius:0;background:#000;display:block;position:relative;overflow:hidden;cursor:pointer;}
.wall-grid.camera-grid.camera-wall .wall-scene.camera-scene{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;flex:none;min-height:0;aspect-ratio:auto!important;}
.wall-scene>img,.wall-scene>video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;filter:saturate(.72) contrast(1.06)!important;}
.wall-offline.camera-placeholder{position:absolute;inset:0;aspect-ratio:auto!important;background:radial-gradient(ellipse,#142330,#0a121d);padding:12px;}
.wall-foot{position:absolute;bottom:0;left:0;right:0;z-index:7;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 16px 10px;background:linear-gradient(transparent,#03101ad9);font-family:var(--mono);font-size:9px;letter-spacing:.6px;color:#aeb9be;white-space:nowrap;pointer-events:none;text-shadow:0 1px 4px #000;}
.wall-foot .wall-res{overflow:hidden;text-overflow:ellipsis;}
.camera-grid:not(.camera-wall) .wall-scene{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;}
.camera-grid:not(.camera-wall) .wall-select{display:none;}
.modal .wall-scene{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;}
.modal .wall-tile{min-height:220px;}
@media(max-width:1100px){
  .app-shell.page-cameras,.page-cameras .main{height:auto;overflow:visible;}
  .workspace--wall{overflow:visible!important;}
  .wall-layout{grid-template-columns:minmax(0,1fr);overflow:visible;}
  .wall-grid.camera-grid.camera-wall{grid-template-columns:minmax(0,1fr);grid-template-rows:none;overflow:visible;height:auto;width:100%;max-height:none;}
  .wall-grid.camera-grid.camera-wall .wall-scene{min-height:220px;}
}

/* Overview live-tracking strip (compact, CCTV-first). */
.perception-strip{display:flex;flex-wrap:wrap;gap:8px;padding:10px 2px 2px;}
.perception-strip .pchip{font-family:var(--mono);font-size:11px;letter-spacing:.03em;color:var(--text);border:1px solid var(--border-soft);border-radius:4px;padding:3px 8px;background:#08152080;}
.perception-strip .pchip strong{color:var(--accent);font-weight:600;}
