:root {
  color-scheme: light;
  --bg: #f7f8f3;
  --surface: #ffffff;
  --surface-strong: #f2f5ec;
  --ink: #131812;
  --ink-soft: #5d665e;
  --line: #d9dfd1;
  --orange: #f26522;
  --lime: #8cc63e;
  --green: #8cc63e;
  --green-strong: #6ea92b;
  --green-soft: #eef8df;
  --yellow: #f26522;
  --yellow-soft: #fff0e7;
  --red: #cf3f2f;
  --red-soft: #fae2dc;
  --teal: #217c83;
  --blue: #2d5d68;
  --charcoal: #111711;
  --charcoal-2: #1d271d;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(19, 24, 18, 0.1);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), transparent 300px),
    linear-gradient(90deg, rgba(242, 101, 34, 0.05), transparent 38%),
    var(--bg);
  color: var(--ink);
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(140, 198, 62, 0.09), transparent 44%),
    var(--charcoal);
  color: #f8fbf7;
}

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

.brand-logo-card {
  display: grid;
  width: 78px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(140, 198, 62, 0.5);
  border-radius: 8px;
  background: #ffffff;
  padding: 5px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand h1,
.brand p,
.site-card h2,
.site-card p {
  margin: 0;
}

.brand-copy {
  min-width: 0;
}

.brand-copy h1 {
  font-size: 1.75rem;
  line-height: 1;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar .eyebrow {
  color: var(--green);
}

.login-brand-panel .eyebrow,
.brand-copy .eyebrow {
  text-transform: none;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #eef5ed;
  font-weight: 850;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(242, 101, 34, 0.8);
  background: linear-gradient(90deg, rgba(242, 101, 34, 0.24), rgba(140, 198, 62, 0.08));
  color: #ffffff;
}

.site-card {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(140, 198, 62, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.site-card dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.site-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.site-card dt,
.site-card dd {
  margin: 0;
  font-size: 0.86rem;
}

.site-card dt {
  color: #a8b6ae;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 0.78fr);
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(242, 101, 34, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(140, 198, 62, 0.18), transparent 42%),
    var(--bg);
}

.login-brand-panel {
  display: grid;
  align-content: center;
  gap: 28px;
  padding: clamp(28px, 6vw, 72px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    var(--charcoal);
  color: #ffffff;
}

.login-brand-panel img {
  width: min(250px, 58vw);
  aspect-ratio: 1;
  object-fit: contain;
  padding: 16px;
  border: 2px solid rgba(140, 198, 62, 0.55);
  border-radius: 8px;
  background: #ffffff;
}

.login-brand-panel h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.login-brand-panel p:not(.eyebrow) {
  max-width: 54ch;
  margin: 0;
  color: #dbe7d5;
  font-size: 1.05rem;
  line-height: 1.55;
}

.login-card {
  align-self: center;
  width: min(520px, calc(100% - 36px));
  justify-self: center;
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-bottom: 4px solid var(--lime);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(19, 24, 18, 0.14);
}

.login-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.login-form {
  display: grid;
  gap: 13px;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.login-form input,
.login-form select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.login-form input:focus,
.login-form select:focus {
  outline: 2px solid rgba(242, 101, 34, 0.24);
  border-color: var(--yellow);
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 800;
}

.login-access-note {
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--lime);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff, #f7faef);
}

.login-access-note strong {
  display: block;
  margin-bottom: 6px;
}

.login-access-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.route-links .text-button {
  min-height: 42px;
  justify-content: center;
}

.invite-success {
  margin: 0;
  padding: 10px 12px;
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.login-link {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}

.mobile-app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(242, 101, 34, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(140, 198, 62, 0.18), transparent 44%),
    var(--charcoal);
}

.phone-frame {
  width: min(430px, 100%);
  min-height: min(850px, calc(100vh - 44px));
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  overflow: auto;
  border: 8px solid #050705;
  border-radius: 32px;
  background: var(--bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  background: #ffffff;
}

.app-topbar img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.app-topbar span,
.app-select span,
.app-status-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.app-topbar strong {
  display: block;
  margin-top: 2px;
}

.app-login-button {
  margin-left: auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  background: var(--orange);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 950;
  text-decoration: none;
}

.app-select {
  display: grid;
  gap: 6px;
}

.app-select select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
}

.app-status-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--lime);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff, #f7faef);
}

.app-status-card.blocked {
  border-left-color: var(--orange);
}

.app-status-card h1 {
  margin: 6px 0 4px;
  font-size: 1.8rem;
  line-height: 1;
}

.app-status-card p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.app-status-card strong {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 0.82rem;
}

.app-actions {
  display: grid;
  gap: 10px;
}

.danger-action {
  min-height: 48px;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: var(--red);
  color: #ffffff;
  font-weight: 950;
}

.app-brief-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.app-brief-card h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.app-brief-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.app-footer-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.app-footer-links a {
  color: var(--orange);
  font-weight: 950;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.topbar h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.topbar-subtitle {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-weight: 750;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-chip {
  min-height: 42px;
  display: grid;
  align-content: center;
  padding: 6px 12px;
  border: 1px solid rgba(140, 198, 62, 0.38);
  border-radius: var(--radius);
  background: #ffffff;
}

.user-chip span {
  color: var(--green-strong);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.user-chip strong {
  font-size: 0.9rem;
}

.select-field {
  display: grid;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.select-field select {
  min-height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.segmented,
.filter-row {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  gap: 3px;
  box-shadow: 0 7px 20px rgba(19, 24, 18, 0.04);
}

.segmented button,
.filter-row button {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.segmented button.active,
.filter-row button.active {
  background: var(--charcoal);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 var(--yellow);
}

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

.metric {
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 244, 0.98)),
    var(--surface);
  box-shadow: 0 8px 24px rgba(19, 24, 18, 0.06);
}

.metric span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 9px;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink);
}

.metric.normal {
  border-left: 5px solid var(--lime);
}

.metric.warning {
  border-left: 5px solid var(--orange);
}

.metric.critical {
  border-left: 5px solid var(--orange);
}

.metric.muted {
  border-left: 5px solid #8c9690;
}

.dashboard-grid,
.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.command-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
}

.simple-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 18px;
}

.simple-grid .focus-panel,
.people-view .staff-directory-panel {
  grid-column: 1 / -1;
}

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

.two-column.wide-left {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.85fr);
}

.panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 246, 0.98)),
    var(--surface);
  box-shadow: var(--shadow);
}

.map-panel {
  grid-row: span 2;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink);
}

.panel-heading .eyebrow,
.topbar .eyebrow {
  color: var(--orange);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.normal {
  background: var(--green-soft);
  color: var(--green-strong);
}

.status-pill.critical {
  background: var(--red-soft);
  color: var(--red);
}

.status-pill.warning {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.status-pill.muted {
  background: var(--surface-strong);
  color: var(--ink-soft);
}

.site-map {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(140, 198, 62, 0.42);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(19, 24, 18, 0.035) 0 1px,
      transparent 1px 52px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(19, 24, 18, 0.035) 0 1px,
      transparent 1px 52px
    ),
    #eef3e8;
}

.map-lane {
  position: absolute;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  padding-left: 24px;
  background: var(--charcoal-2);
  color: #eef3e8;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.map-lane.north {
  top: 0;
}

.map-lane.south {
  bottom: 0;
}

.map-lane::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 3px dashed rgba(242, 101, 34, 0.85);
}

.zone {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
}

.zone span {
  padding: 6px 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
}

.outer-zone {
  inset: 108px 7% 106px;
  border: 2px dashed var(--yellow);
  color: var(--yellow);
  background: rgba(242, 101, 34, 0.12);
}

.inner-zone {
  inset: 178px 19% 172px 20%;
  border: 2px solid var(--red);
  color: var(--red);
  background: rgba(207, 63, 47, 0.1);
}

.safe-route {
  position: absolute;
  left: 8%;
  bottom: 98px;
  width: 84%;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(140, 198, 62, 0.2);
  color: var(--green-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.smart-taper {
  position: absolute;
  left: 4%;
  top: 78px;
  width: 44%;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 6px solid var(--yellow);
  transform: skewX(-18deg);
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.egress-path {
  position: absolute;
  right: 8%;
  bottom: 78px;
  width: 36%;
  height: 62px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.beam {
  position: absolute;
  width: 4px;
  height: 160px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  background: var(--blue);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.gate-a {
  left: 13%;
  bottom: 104px;
}

.gate-b {
  right: 13%;
  bottom: 104px;
}

.map-marker {
  position: absolute;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 12px 22px rgba(19, 24, 18, 0.2);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 950;
}

.map-marker.camera {
  top: 145px;
  left: 23%;
  background: var(--teal);
}

.map-marker.jetson {
  top: 205px;
  left: 47%;
  background: var(--charcoal);
}

.map-marker.sensor {
  top: 133px;
  right: 18%;
  background: var(--yellow);
  color: #16110a;
}

.map-marker.sensor.alert {
  background: var(--red);
  color: #ffffff;
  animation: pulse 1.8s infinite;
}

.map-marker.vehicle {
  right: 22%;
  bottom: 36px;
  background: var(--blue);
}

.map-marker.cct {
  left: 6%;
  bottom: 150px;
  background: var(--yellow);
}

.map-marker.vms {
  right: 7%;
  top: 84px;
  background: #ffffff;
  color: var(--red);
  border-color: var(--red);
}

.map-marker.person {
  background: var(--green);
}

.person-1 {
  top: 270px;
  left: 34%;
}

.person-2 {
  top: 260px;
  right: 36%;
}

.person-3 {
  top: 300px;
  left: 48%;
}

.person-4 {
  top: 300px;
  right: 26%;
}

@keyframes pulse {
  0% {
    outline: 0 solid rgba(207, 63, 47, 0.5);
  }
  100% {
    outline: 18px solid rgba(207, 63, 47, 0);
  }
}

.control-stack {
  display: grid;
  gap: 10px;
}

.decision-stack {
  display: grid;
  gap: 12px;
}

.decision-card {
  display: grid;
  grid-template-columns: 1fr 58px;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--radius);
  background: #ffffff;
}

.decision-card.critical {
  border-left-color: var(--red);
}

.decision-card.warning {
  border-left-color: var(--yellow);
}

.decision-card.normal {
  border-left-color: var(--green);
}

.decision-card span,
.asset-card span,
.automation-card span,
.evidence-card span,
.comms-card span,
.chain-panel span,
.terminal-screen span,
.impact-grid span,
.speed-details span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.decision-card strong {
  display: block;
  margin-top: 3px;
}

.decision-card p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  line-height: 1.4;
}

.icon-action {
  width: 58px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 950;
}

.primary-action,
.secondary-action,
.text-button {
  border-radius: var(--radius);
  font-weight: 900;
}

a.text-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.primary-action,
.secondary-action {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  text-align: left;
}

.primary-action {
  border-color: var(--orange);
  background: linear-gradient(90deg, var(--orange), #ff7a2d);
  color: #ffffff;
  box-shadow: inset 0 -3px 0 rgba(19, 24, 18, 0.18);
}

.secondary-action {
  border-color: var(--line);
  background:
    linear-gradient(90deg, rgba(140, 198, 62, 0.12), rgba(255, 255, 255, 0.88)),
    var(--surface-strong);
  color: var(--ink);
}

.primary-action span,
.secondary-action span {
  max-width: 45%;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.75;
  text-align: right;
}

.primary-action.compact {
  min-height: 48px;
}

.text-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.text-button:hover,
.icon-action:hover {
  border-color: var(--orange);
  box-shadow: inset 0 -2px 0 var(--lime);
}

.video-panel {
  display: grid;
  gap: 8px;
}

.video-toolbar,
.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.video-toolbar strong {
  color: var(--green);
}

.video-feed {
  position: relative;
  min-height: 215px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 22px),
    #263531;
}

.video-feed::before {
  content: "";
  position: absolute;
  inset: 18% 0 auto;
  height: 88px;
  background: #3f4742;
  transform: skewY(-4deg);
}

.road-edge {
  position: absolute;
  left: 0;
  right: 0;
  top: 44%;
  border-top: 3px dashed rgba(242, 101, 34, 0.9);
}

.detection-box {
  position: absolute;
  display: grid;
  place-items: end start;
  padding: 5px;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.vehicle-box {
  right: 16%;
  top: 34%;
  width: 96px;
  height: 52px;
}

.person-box {
  left: 25%;
  top: 52%;
  width: 52px;
  height: 86px;
  border-color: var(--green);
  color: var(--green-soft);
}

.timestamp {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
}

.impact-grid,
.asset-grid,
.comms-grid {
  display: grid;
  gap: 12px;
}

.focus-panel {
  border-top-color: var(--lime);
}

.simple-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.simple-summary article {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.simple-summary span,
.simple-item span,
.simple-staff-card span,
.clear-down-list span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.simple-summary strong {
  display: block;
  margin-top: 9px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1;
}

.simple-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.simple-item {
  padding: 13px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--radius);
  background: #ffffff;
}

.simple-item.normal {
  border-left-color: var(--lime);
}

.simple-item.warning {
  border-left-color: var(--orange);
}

.simple-item.critical {
  border-left-color: var(--red);
}

.simple-item.muted {
  border-left-color: #8c9690;
}

.simple-item strong {
  display: block;
  margin-top: 4px;
}

.simple-item p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.4;
}

.simple-staff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.simple-staff-card {
  display: grid;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--radius);
  background: #ffffff;
}

.simple-staff-card.allowed {
  border-left-color: var(--lime);
}

.simple-staff-card.blocked {
  border-left-color: var(--orange);
}

.staff-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.staff-card-head strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.staff-card-head p {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.simple-staff-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.simple-staff-card div:has(> dt) {
  min-width: 0;
  padding: 9px;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.simple-staff-card dt,
.simple-staff-card dd {
  margin: 0;
}

.simple-staff-card dt {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.simple-staff-card dd {
  overflow-wrap: anywhere;
  margin-top: 3px;
  font-weight: 900;
}

.clear-down-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.clear-down-list article {
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--radius);
  background: #ffffff;
}

.clear-down-list article.done {
  border-left-color: var(--lime);
}

.clear-down-list article.blocked {
  border-left-color: var(--orange);
}

.clear-down-list strong {
  display: block;
  margin-top: 5px;
}

.clear-down-list p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.4;
}

.client-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: 18px;
}

.client-hero-panel,
.staff-directory-panel {
  grid-column: 1 / -1;
}

.client-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.client-summary article,
.invite-box,
.access-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff, #f7faef);
}

.client-summary article {
  min-height: 96px;
  padding: 14px;
}

.client-summary span,
.invite-box span,
.staff-directory-row span,
.access-note span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.client-summary strong {
  display: block;
  margin-top: 10px;
  font-size: 1.35rem;
}

.invite-box {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.invite-box strong {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px;
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
  background: #ffffff;
  font-size: 0.9rem;
}

.staff-form {
  display: grid;
  gap: 12px;
}

.staff-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.staff-form input,
.staff-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.staff-form input:focus,
.staff-form select:focus {
  outline: 2px solid rgba(242, 101, 34, 0.24);
  border-color: var(--orange);
}

.staff-table {
  display: grid;
  gap: 10px;
}

.staff-directory-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(104px, 0.7fr)) minmax(104px, 0.65fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--radius);
  background: #ffffff;
}

.staff-directory-row.allowed {
  border-left-color: var(--lime);
}

.staff-directory-row.blocked {
  border-left-color: var(--orange);
}

.staff-directory-row strong {
  display: block;
  margin-top: 3px;
}

.row-action,
.row-access {
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 950;
}

.row-action {
  border: 1px solid var(--orange);
  background: var(--yellow-soft);
  color: var(--orange);
}

.row-access.allowed {
  background: var(--green-soft);
  color: var(--green-strong);
}

.row-access.blocked {
  background: var(--yellow-soft);
  color: var(--orange);
}

.access-note {
  margin-top: 18px;
  padding: 14px;
  border-left: 5px solid var(--orange);
}

.access-note.ready {
  border-left-color: var(--lime);
}

.access-note.blocked {
  border-left-color: var(--orange);
}

.access-note strong {
  display: block;
  margin-bottom: 6px;
}

.access-note p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.tm-status-grid,
.responsibility-list {
  display: grid;
  gap: 12px;
}

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

.tm-status-grid article,
.responsibility-list article {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--lime);
  border-radius: var(--radius);
  background: #ffffff;
}

.tm-status-grid article.blocked {
  border-left-color: var(--orange);
}

.tm-status-grid span,
.responsibility-list span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.45;
}

.tm-status-grid strong,
.responsibility-list strong {
  display: block;
  margin-bottom: 6px;
}

.tm-status-grid strong {
  font-size: 1.45rem;
}

.setup-panel {
  grid-column: 1 / -1;
}

.setup-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.setup-overview article,
.setup-row,
.check-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.setup-overview article {
  padding: 14px;
  border-left: 5px solid var(--lime);
}

.setup-overview span,
.setup-row span,
.check-item span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.setup-overview strong,
.setup-row strong,
.check-item strong {
  display: block;
  margin-top: 5px;
}

.setup-list,
.commissioning-list {
  display: grid;
  gap: 10px;
}

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

.setup-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(110px, 0.8fr) minmax(90px, 0.5fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-left: 5px solid var(--lime);
}

.setup-row.monitoring,
.setup-row.standby {
  border-left-color: var(--orange);
}

.check-item {
  min-height: 84px;
  padding: 13px;
  border-left: 5px solid var(--lime);
}

.check-item.in-progress {
  border-left-color: var(--orange);
}

.check-item.pending {
  border-left-color: var(--red);
}

.tm-hit-list,
.battery-grid {
  display: grid;
  gap: 10px;
}

.tm-hit-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(3, minmax(96px, 0.65fr));
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--lime);
  border-radius: var(--radius);
  background: #ffffff;
}

.tm-hit-card.high {
  border-left-color: var(--red);
}

.tm-hit-card.medium {
  border-left-color: var(--orange);
}

.tm-hit-card span,
.battery-card span,
.battery-meta span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.tm-hit-card strong,
.battery-card strong {
  display: block;
  margin-top: 4px;
}

.tm-hit-card p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

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

.battery-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--lime);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff, #f7faef);
}

.battery-card.warning {
  border-left-color: var(--orange);
}

.battery-card.critical {
  border-left-color: var(--red);
}

.battery-large {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef1ec;
}

.battery-large span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), var(--orange));
}

.battery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.impact-grid article {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.impact-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 1.55rem;
}

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

.stock-view {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.9fr);
  gap: 18px;
}

.stock-hero-panel,
.stock-table-panel {
  grid-column: 1 / -1;
}

.stock-summary article {
  border-left: 5px solid var(--lime);
}

.quote-panel,
.connector-list,
.quote-lines {
  display: grid;
  gap: 12px;
}

.quote-total,
.connector-list article,
.quote-lines article {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--lime);
  border-radius: var(--radius);
  background: #ffffff;
}

.quote-total {
  border-left-color: var(--orange);
  background:
    linear-gradient(135deg, rgba(242, 101, 34, 0.09), transparent 55%),
    #ffffff;
}

.quote-panel.locked .quote-total {
  border-left-color: var(--lime);
  background:
    linear-gradient(135deg, rgba(141, 198, 63, 0.12), transparent 55%),
    #ffffff;
}

.quote-control-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr);
  gap: 12px;
}

.quote-stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  min-height: 86px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.quote-stepper button {
  border: 0;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 950;
}

.quote-stepper div {
  display: grid;
  place-items: center;
  align-content: center;
}

.quote-stepper span,
.quote-status-list span,
.quote-document span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-stepper strong {
  font-size: 2rem;
  line-height: 1;
}

.quote-status-list,
.quote-document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
}

.quote-status-list article,
.quote-document-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
  background: #ffffff;
}

.quote-status-list strong,
.quote-document-grid strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 5px;
}

.quote-total span,
.connector-list span,
.quote-lines span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-total strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1;
}

.quote-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.quote-breakdown div {
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.quote-breakdown dt,
.quote-breakdown dd {
  margin: 0;
}

.quote-breakdown dt {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-breakdown dd {
  margin-top: 5px;
  font-weight: 950;
}

.quote-total p,
.connector-list p,
.quote-lines p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.quote-lines strong,
.connector-list strong {
  display: block;
  margin-top: 4px;
}

.quote-lines small {
  display: block;
  margin-top: 8px;
  color: var(--orange);
  font-weight: 900;
}

.quote-document {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--lime);
  border-radius: var(--radius);
  background: #ffffff;
}

.quote-document-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.quote-document-head strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
}

.quote-document-head div:last-child {
  text-align: right;
}

.quote-table-wrap {
  margin-top: 0;
}

.plan-view {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
  gap: 18px;
}

.plan-hero-panel,
.plan-canvas-panel {
  grid-column: 1 / -1;
}

.plan-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.9fr) minmax(190px, 0.8fr) minmax(190px, 0.8fr);
  gap: 12px;
  align-items: end;
}

.drawing-upload {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.drawing-upload input {
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.plan-upload-message {
  margin: 14px 0 0;
  padding: 12px;
  border-left: 5px solid var(--lime);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink-soft);
  font-weight: 850;
}

.plan-canvas {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050705;
}

.plan-canvas img {
  display: block;
  width: 100%;
  height: auto;
}

.plan-canvas.field,
.plan-canvas.mobile {
  max-height: 310px;
  aspect-ratio: 1684 / 1191;
}

.plan-canvas.field img,
.plan-canvas.mobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-overlay {
  position: absolute;
  inset: 0;
}

.plan-marker {
  position: absolute;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
  font-size: 0.68rem;
  font-weight: 950;
}

.plan-marker.planned {
  border-style: dashed;
  background: var(--blue);
}

.plan-marker.bdu {
  background: var(--lime);
  color: var(--ink);
}

.plan-marker.cam,
.plan-marker.net {
  background: var(--teal);
}

.plan-marker.vms {
  background: var(--yellow);
}

.plan-marker.pau {
  background: var(--blue);
}

.plan-canvas.field .plan-marker,
.plan-canvas.mobile .plan-marker {
  width: 28px;
  height: 28px;
  font-size: 0.54rem;
}

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

.placement-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.82fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--lime);
  border-radius: var(--radius);
  background: #ffffff;
}

.placement-card.planned {
  border-left-color: var(--blue);
}

.placement-card span,
.field-route-list span,
.mobile-unit-list span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.placement-card strong {
  display: block;
  margin-top: 4px;
}

.placement-card p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  line-height: 1.4;
}

.placement-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.placement-card dl div {
  padding: 8px;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.placement-card dt,
.placement-card dd {
  margin: 0;
}

.placement-card dt {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.placement-card dd {
  margin-top: 4px;
  font-weight: 900;
}

.field-preview {
  display: grid;
  gap: 12px;
}

.field-route-list,
.mobile-unit-list {
  display: grid;
  gap: 8px;
}

.field-route-list article {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.field-route-list strong,
.mobile-unit-list strong {
  display: block;
}

.field-route-list p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.field-route-list small {
  color: var(--green-strong);
  font-weight: 950;
}

.mobile-field-plan {
  display: grid;
  gap: 10px;
}

.mobile-unit-list article {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.asset-card,
.automation-card,
.evidence-card,
.comms-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.asset-card {
  padding: 14px;
  border-left-width: 5px;
}

.asset-card.normal {
  border-left-color: var(--green);
}

.asset-card.warning {
  border-left-color: var(--yellow);
}

.asset-card strong,
.automation-card strong,
.evidence-card strong,
.comms-card strong {
  display: block;
  margin-top: 3px;
}

.asset-card dl,
.automation-card dl {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.asset-card dl div,
.automation-card dl div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
}

.asset-card dt,
.asset-card dd,
.automation-card dt,
.automation-card dd {
  margin: 0;
  font-size: 0.82rem;
}

.asset-card dt,
.automation-card dt {
  color: var(--ink-soft);
  font-weight: 900;
}

.automation-list,
.evidence-list {
  display: grid;
  gap: 12px;
}

.evidence-list {
  margin-top: 14px;
}

.automation-card {
  padding: 14px;
}

.automation-head,
.evidence-card,
.comms-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.evidence-card,
.comms-card {
  padding: 13px;
}

.evidence-card p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.comms-card time,
.comms-card small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
}

.speed-plan {
  display: grid;
  gap: 16px;
}

.speed-sign {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 12px solid var(--red);
  border-radius: 50%;
  background: #ffffff;
}

.speed-sign span {
  color: var(--ink);
  font-size: 3.25rem;
  font-weight: 950;
  line-height: 0.9;
}

.speed-sign strong {
  margin-top: -32px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.speed-details {
  display: grid;
  gap: 9px;
}

.speed-details div,
.chain-panel div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.speed-details strong,
.chain-panel strong {
  text-align: right;
}

.chain-panel {
  display: grid;
  gap: 9px;
}

.nfc-pass-card {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--lime);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff, #f7faef);
}

.nfc-pass-card.blocked {
  border-left-color: var(--orange);
}

.nfc-pass-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.nfc-pass-header span {
  color: var(--green-strong);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.nfc-pass-card.blocked .nfc-pass-header span {
  color: var(--orange);
}

.nfc-code {
  padding: 12px;
  border: 1px dashed var(--orange);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-weight: 950;
  text-align: center;
}

.barcode {
  width: 100%;
  height: 104px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.nfc-pass-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.wallet-pass {
  position: relative;
  overflow: hidden;
  gap: 16px;
  border: 1px solid rgba(140, 198, 62, 0.4);
  border-left: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 8%, rgba(140, 198, 62, 0.34), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(242, 101, 34, 0.28), transparent 32%),
    linear-gradient(145deg, #101610, #1f2c20 58%, #111711);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(19, 24, 18, 0.22);
}

.wallet-pass.blocked {
  border-color: rgba(242, 101, 34, 0.55);
  background:
    radial-gradient(circle at 18% 8%, rgba(242, 101, 34, 0.28), transparent 34%),
    linear-gradient(145deg, #1e1511, #342019 58%, #111711);
}

.wallet-pass::before {
  content: "";
  position: absolute;
  inset: auto -18% -28% 28%;
  height: 170px;
  border-radius: 50%;
  background: rgba(140, 198, 62, 0.15);
  transform: rotate(-8deg);
}

.wallet-pass > * {
  position: relative;
  z-index: 1;
}

.wallet-pass-top,
.wallet-pass-person,
.wallet-pass-code {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.wallet-pass-top span,
.wallet-pass-person span,
.wallet-pass-instruction span,
.wallet-pass-code span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.wallet-pass-top strong {
  display: block;
  margin-top: 4px;
  font-size: 1.06rem;
}

.wallet-pass-state {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

.wallet-pass-person h3 {
  margin: 8px 0 4px;
  font-size: 1.75rem;
  line-height: 1;
}

.wallet-pass-person p,
.wallet-pass-instruction p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.nfc-mark {
  position: relative;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.nfc-mark span {
  position: absolute;
  border: 3px solid transparent;
  border-right-color: var(--lime);
  border-radius: 50%;
  animation: nfcPulse 1.8s infinite ease-out;
}

.nfc-mark span:nth-child(1) {
  width: 22px;
  height: 22px;
}

.nfc-mark span:nth-child(2) {
  width: 38px;
  height: 38px;
  animation-delay: 0.2s;
}

.nfc-mark span:nth-child(3) {
  width: 54px;
  height: 54px;
  animation-delay: 0.4s;
}

.wallet-pass-instruction {
  padding: 14px;
  border: 2px solid rgba(140, 198, 62, 0.68);
  border-radius: var(--radius);
  background: rgba(140, 198, 62, 0.16);
  box-shadow: inset 0 -3px 0 rgba(140, 198, 62, 0.22);
}

.wallet-pass-instruction strong {
  display: block;
  margin: 6px 0;
  color: #ffffff;
  font-size: 1.42rem;
}

.wallet-pass-code {
  align-items: center;
  padding-top: 2px;
}

.wallet-pass-code strong {
  display: block;
  margin-top: 4px;
  font-size: 1.28rem;
  letter-spacing: 0;
}

.wallet-pass .barcode {
  border-color: rgba(255, 255, 255, 0.18);
}

@keyframes nfcPulse {
  0% {
    opacity: 0.25;
    transform: scale(0.92);
  }
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0.35;
    transform: scale(1.06);
  }
}

.terminal-panel {
  display: grid;
  gap: 14px;
}

.terminal-screen {
  min-height: 210px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: #ffffff;
}

.terminal-screen span,
.terminal-screen p {
  color: #bfccc4;
}

.terminal-screen strong {
  max-width: 14ch;
  font-size: 1.75rem;
  line-height: 1.05;
}

.terminal-screen p {
  margin: 0;
  line-height: 1.45;
}

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

.task-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.task-list span {
  display: grid;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow-soft);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 950;
}

.task-list p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

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

.audit-side-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.platform-user-list,
.platform-user-form,
.notification-list {
  display: grid;
  gap: 10px;
}

.platform-user-row,
.notification-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(92px, 0.8fr) minmax(78px, 0.6fr) minmax(118px, 0.7fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--lime);
  border-radius: var(--radius);
  background: #ffffff;
}

.notification-row {
  grid-template-columns: minmax(190px, 1.5fr) minmax(90px, 0.6fr) minmax(110px, 0.55fr);
}

.notification-row.normal {
  border-left-color: var(--lime);
}

.notification-row.warning {
  border-left-color: var(--orange);
}

.notification-row.critical {
  border-left-color: var(--red);
}

.platform-user-row span,
.platform-user-form span,
.notification-row span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-user-row strong,
.platform-user-row p,
.notification-row strong,
.notification-row p {
  display: block;
  overflow-wrap: anywhere;
  margin: 3px 0 0;
}

.platform-user-row p,
.notification-row p,
.notification-mode {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.notification-mode {
  margin: 0 0 10px;
  font-weight: 900;
}

.platform-user-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.platform-user-form label {
  display: grid;
  gap: 6px;
}

.platform-user-form input,
.platform-user-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.platform-user-form input:focus,
.platform-user-form select:focus {
  outline: 2px solid rgba(242, 101, 34, 0.24);
  border-color: var(--orange);
}

.form-message {
  margin: 10px 0 0;
  color: var(--orange);
  font-weight: 900;
}

.reset-link-box {
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  background: #ffffff;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  font-weight: 900;
}

.login-helper {
  margin: 0 0 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.event-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--radius);
  background: #ffffff;
}

.event-card.normal {
  border-left-color: var(--green);
}

.event-card.warning {
  border-left-color: var(--yellow);
}

.event-card.critical {
  border-left-color: var(--red);
}

.event-card time {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.event-card strong {
  display: block;
  margin-bottom: 3px;
}

.event-card p {
  margin: 0 0 5px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.event-card span,
.person-card small,
.person-card span,
td span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.person-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.person-list h4 {
  margin: 0 0 2px;
}

.person-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.person-card strong,
.person-card small,
.person-card span:not(.status-pill) {
  display: block;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 950;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

td strong,
td span {
  display: block;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
}

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

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

.battery {
  display: inline-flex;
  width: 72px;
  height: 9px;
  margin-right: 8px;
  overflow: hidden;
  border: 1px solid #bdc7bf;
  border-radius: 999px;
  background: #eef1ec;
}

.battery span {
  height: 100%;
  background: var(--green);
}

.rule-stack {
  display: grid;
  gap: 12px;
}

.rule-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--radius);
  background: #ffffff;
}

.rule-card.high {
  border-left-color: var(--red);
}

.rule-card.medium {
  border-left-color: var(--yellow);
}

.rule-card.low {
  border-left-color: var(--green);
}

.rule-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.rule-card span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.rule-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.audit-panel {
  min-height: 580px;
}

.empty-state {
  margin: 0;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-align: center;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: 430px;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-list {
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .site-card {
    width: 100%;
    margin-top: 0;
  }

  .dashboard-grid,
  .command-grid,
  .simple-grid,
  .client-grid,
  .stock-view,
  .plan-view,
  .two-column,
  .two-column.wide-left {
    grid-template-columns: 1fr;
  }

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

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

  .notification-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .workspace,
  .sidebar {
    padding: 18px;
  }

  .login-brand-panel {
    min-height: auto;
    padding: 28px 18px;
  }

  .login-brand-panel img {
    width: 130px;
    padding: 10px;
  }

  .login-card {
    width: calc(100% - 36px);
    margin: 18px 0 28px;
  }

  .topbar {
    display: grid;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .select-field,
  .segmented,
  .filter-row {
    width: 100%;
  }

  .segmented,
  .filter-row {
    overflow-x: auto;
  }

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

  .asset-grid,
  .impact-grid,
  .client-summary,
  .simple-summary,
  .plan-controls,
  .placement-card,
  .quote-control-row,
  .quote-status-list,
  .quote-document-grid,
  .quote-breakdown,
  .tm-status-grid,
  .setup-overview,
  .commissioning-list,
  .clear-down-list,
  .simple-staff-grid,
  .simple-actions,
  .button-row,
  .route-links {
    grid-template-columns: 1fr;
  }

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

  .tm-hit-card,
  .battery-grid {
    grid-template-columns: 1fr;
  }

  .staff-directory-row {
    grid-template-columns: 1fr 1fr;
  }

  .panel-heading {
    display: grid;
  }

  .site-map {
    min-height: 440px;
  }

  .map-marker {
    width: 36px;
    height: 36px;
  }

  .inner-zone {
    inset: 158px 15% 142px 16%;
  }

  .outer-zone {
    inset: 100px 5% 92px;
  }

  .person-card {
    grid-template-columns: 42px 1fr;
  }

  .person-card .status-pill {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .brand {
    width: 100%;
  }

  .nav-list {
    width: 100%;
    grid-auto-flow: row;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .staff-directory-row {
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    display: grid;
  }

  .primary-action span,
  .secondary-action span {
    max-width: none;
    text-align: left;
  }
}
