/* Mėnulio Miestas control centre. Scoped to the operational workspace. */
.dashboard-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
#operations-dialog .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
#operations-dialog {
  --dash-bg: #070b16;
  --dash-panel: #0b1120;
  --dash-line: #233047;
  --dash-muted: #8390a7;
  --dash-cyan: #20c6d5;
  --dash-purple: #a376ee;
  --dash-green: #55d69c;
  position: fixed;
  inset: 10px;
  width: calc(100vw - 20px);
  max-width: none;
  height: calc(100dvh - 20px);
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #2c3f5c;
  border-radius: 15px;
  background: radial-gradient(ellipse at 75% 0, #1912374a, transparent 45%), var(--dash-bg);
  box-shadow:
    0 20px 100px #000a,
    inset 0 1px 0 #74bdd712;
  color: #edf2fa;
  backdrop-filter: none;
  z-index: 100;
}
#operations-dialog::backdrop {
  background: #030610e8;
  backdrop-filter: blur(10px);
}
#operations-dialog[open] {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  grid-template-rows: 76px minmax(0, 1fr);
}
#operations-dialog svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dashboard-rail {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #23304780;
  background: linear-gradient(180deg, #0a0c1e, #070b15 65%);
  padding: 22px 12px 14px;
}
.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 26px;
  text-decoration: none;
}
.dashboard-brand > img {
  width: 39px;
  height: 39px;
  object-fit: contain;
}
.dashboard-brand > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dashboard-brand > span img {
  width: 86px;
  height: 20px;
  object-fit: contain;
}
.rail-caption {
  color: #53617b;
  font-size: 8px;
  letter-spacing: 0.15em;
  padding: 14px 13px 15px;
}
.dashboard-navigation {
  flex-direction: column;
  gap: 7px;
  border: 0;
  margin: 0;
  overflow: visible;
}
.dashboard-navigation button {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 12px;
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #8c9bb4;
  font-size: 11px;
  font-weight: 500;
  white-space: normal;
  text-align: left;
}
.dashboard-navigation button svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.dashboard-navigation button:hover {
  color: #daeaf6;
  background: #18213970;
}
.dashboard-navigation button.active {
  color: #4ddaea;
  border-color: #17899b66;
  background: linear-gradient(110deg, #0c455866, #0a253b55);
  box-shadow:
    inset 3px 0 0 #1fb6ce,
    0 0 19px #08adcb0d;
}
.dashboard-navigation button.active:after {
  display: none;
}
.rail-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.rail-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #66899b;
  font:
    9px ui-monospace,
    monospace;
  padding: 13px;
}
.rail-live i,
.dashboard-live-pill i,
.equipment-total i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2ad7a2;
  box-shadow: 0 0 8px #2ad7a240;
}
.rail-return {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 10px;
  color: #9baabe;
  background: #101727;
  border: 1px solid #253249;
  border-radius: 6px;
  font-size: 10px;
}
.rail-return:hover {
  background: #1c2840;
  color: #fff;
}
.rail-return svg {
  width: 16px;
  height: 16px;
}
#operations-dialog .operations-header {
  grid-column: 2;
  grid-row: 1;
  padding: 0 24px;
  gap: 15px;
  border-bottom: 1px solid #29364d80;
  background: transparent;
}
#operations-dialog .operations-identity {
  display: block;
  min-width: 200px;
}
.dashboard-eyebrow {
  font:
    8px ui-monospace,
    monospace;
  color: #6c7893;
  letter-spacing: 0.12em;
}
#operations-dialog .operations-identity h2 {
  margin: 5px 0 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.system-health {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(350px, 28vw);
  padding: 10px 12px;
  border: 1px solid #28304a;
  background: #0d1220;
  border-radius: 7px;
}
.health-icon {
  color: var(--dash-cyan);
  display: flex;
}
.health-icon svg {
  width: 21px;
  height: 21px;
}
.system-health > div {
  flex: 1;
}
.system-health > div > span {
  display: block;
  margin-bottom: 7px;
  color: #c9d3e3;
  font-size: 9px;
}
.health-track {
  height: 4px;
  border-radius: 5px;
  background: #151f31;
  overflow: hidden;
}
.health-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #139aca, #34d99d);
  transition: width 0.3s;
}
.system-health > strong {
  color: #59d8c6;
  background: #07393d77;
  border: 1px solid #11616766;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 550;
}
.system-health[data-status='attention'] > strong {
  color: #e8bb63;
  background: #46361466;
  border-color: #987d334f;
}
.system-health[data-status='stopped'] > strong {
  color: #ffa396;
  background: #48202c;
  border-color: #8a3d45;
}
.system-health[data-status='paused'] > strong {
  color: #a0abbe;
  background: #172030;
  border-color: #35445c;
}
.dashboard-notifications,
.dashboard-language {
  position: relative;
  padding: 7px;
  background: transparent;
  color: #8194b2;
}
.dashboard-notifications svg {
  width: 20px;
  height: 20px;
  display: block;
}
.dashboard-notifications b {
  position: absolute;
  right: -2px;
  top: 0;
  min-width: 14px;
  height: 14px;
  border-radius: 20px;
  background: #9672e9;
  color: #0b0814;
  font:
    9px ui-monospace,
    monospace;
  padding: 2px;
}
.dashboard-language {
  font-size: 10px;
}
.operator-badge {
  border-left: 1px solid #25324a;
  padding-left: 15px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.operator-badge > svg {
  width: 30px;
  height: 32px;
  padding: 6px;
  color: #73b3cb;
  background: #112238;
  border: 1px solid #315170;
  border-radius: 6px;
}
.operator-badge strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
}
.operator-badge span {
  display: block;
  margin-top: 4px;
  color: #78869f;
  font-size: 8px;
}
#operations-dialog .operations-header > .close-button {
  position: static;
  width: 29px;
  height: 29px;
  border: 1px solid #29374e;
  color: #7e92ab;
  background: transparent;
  font-size: 18px;
}
.dashboard-workspace {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr);
}
.dashboard-page-heading {
  padding: 13px 0 13px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.dashboard-breadcrumb {
  display: none;
  align-items: center;
  gap: 8px;
  color: #65738e;
  font-size: 8px;
  margin: 0 0 6px;
}
.dashboard-breadcrumb b {
  font-weight: 400;
  color: #38465e;
}
.dashboard-page-heading h3 {
  font-size: 21px;
  letter-spacing: -0.035em;
  font-weight: 580;
  margin: 0;
}
.dashboard-page-heading > div > p:last-child {
  color: var(--dash-muted);
  margin: 5px 0 0;
  font-size: 10px;
}
.dashboard-live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  color: #74bcb4;
  white-space: nowrap;
}
.dashboard-live-pill time {
  color: #90a1ba;
  margin-left: 3px;
}
.is-paused .dashboard-live-pill i {
  background: #8694ad;
  box-shadow: none;
}
#operations-dialog .operations-toolbar {
  grid-column: 2;
  grid-row: 1;
  padding: 0 24px 0 15px;
  gap: 5px;
  border: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
#operations-dialog .operations-toolbar > button {
  min-height: 29px;
  font-size: 9px;
  padding: 6px 8px;
  border: 1px solid #25344c;
  background: #101828;
  color: #acb8cd;
  white-space: nowrap;
}
#operations-dialog .operations-toolbar > button:hover {
  background: #1c2b43;
}
#operations-dialog .operations-toolbar .stop-fleet {
  margin-left: 6px;
  border-color: #9b545455;
  background: #32172255;
  color: #e5a29a;
}
#operations-dialog .operations-toolbar .stop-fleet[aria-pressed='true'] {
  color: #ffd9d3;
  background: #722f3e;
}
#operations-dialog .speed-controls {
  background: #0b1120;
  border-color: #25344c;
}
#operations-dialog .speed-controls button {
  min-height: 23px;
  font-size: 9px;
  padding: 4px 6px;
}
#operations-dialog .speed-controls button[aria-pressed='true'] {
  background: #5d3893;
}
.toolbar-spacer {
  display: none;
}
#operations-dialog .operations-body {
  grid-column: 1 / -1;
  grid-row: 2;
  padding: 0 24px 16px;
  min-height: 0;
  scrollbar-color: #2b3a57 transparent;
}
#operations-dialog .operations-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 17px;
}
.dashboard-metric {
  position: relative;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 18px;
  min-height: 90px;
  padding: 12px 18px;
  border: 1px solid #2a3049;
  border-radius: 9px;
  background: linear-gradient(135deg, #14132c88, #0b111ecc);
}
.dashboard-metric:hover {
  border-color: #537080;
  background: linear-gradient(135deg, #1b1b3d, #0d1a29);
}
.dashboard-metric-icon {
  display: inline-flex;
  color: var(--metric-color);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--metric-color) 25%, transparent));
}
.dashboard-metric-icon svg {
  width: 32px;
  height: 32px;
}
.metric-cyan {
  --metric-color: #25c0e5;
}
.metric-violet {
  --metric-color: #a376ee;
}
.metric-green {
  --metric-color: #65d398;
}
.metric-amber {
  --metric-color: #d8ad63;
}
.dashboard-metric > div > span {
  color: #b9c6db;
  font-size: 11px;
}
#operations-dialog .dashboard-metric strong {
  font-size: 28px;
  font-weight: 570;
  margin: 5px 0;
  line-height: 1;
  letter-spacing: -0.03em;
}
.dashboard-metric small {
  display: block;
  color: var(--metric-color);
  font-size: 10px;
}
.dashboard-metric small b {
  font-weight: 500;
}
.metric-corner {
  position: absolute;
  right: 13px;
  top: 10px;
  font-size: 11px;
  color: #516079;
}
#operations-dialog .operations-metrics .has-alarm {
  background: linear-gradient(135deg, #271737aa, #131125);
  border-color: #74559266;
}
#operations-dialog .operations-metrics .has-alarm strong {
  color: #c4a1fc;
}
.dashboard-overview-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr 1.12fr;
  gap: 15px;
  align-items: stretch;
}
.dash-card,
#operations-dialog .ops-camera-card,
#operations-dialog .ops-fleet-card {
  border: 1px solid #222e43;
  border-radius: 9px;
  background: linear-gradient(145deg, #0e1524c9, #080e1b);
  padding: 16px;
  min-width: 0;
}
.dash-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 12px;
}
.dash-card-heading h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #d0dced;
}
.dash-card-id {
  color: #596e87;
  font:
    8px ui-monospace,
    monospace;
  white-space: nowrap;
}
.dash-text-action {
  background: none;
  font-size: 8px;
  color: #8e90b4;
  padding: 0;
  white-space: nowrap;
}
.dash-text-action:hover {
  color: #40d1d9;
}
.chart-range-label select {
  max-width: 128px;
  background: #0a101d;
  color: #97a9c1;
  border: 1px solid #26324a;
  border-radius: 4px;
  padding: 5px;
  font-size: 8px;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #98a6bc;
  font-size: 9px;
  margin-bottom: 8px;
}
.chart-legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.chart-legend i {
  width: 13px;
  height: 2px;
  border-radius: 2px;
}
.legend-cyan {
  background: #20c6d5;
}
.legend-purple {
  background: #a376ee;
}
.chart-legend b {
  color: #536780;
  margin-left: auto;
  font-weight: 400;
  font-size: 7px;
}
.dashboard-chart {
  position: relative;
  margin: 0 -4px 3px;
}
#dashboard-trend {
  width: 100%;
  height: 154px;
  display: block;
  overflow: visible;
}
#operations-dialog #dashboard-chart-grid path {
  stroke: #1c283b;
  stroke-width: 0.6;
}
#operations-dialog #dashboard-chart-grid text,
#operations-dialog #dashboard-chart-times text {
  fill: #667e9a;
  stroke: none;
  font:
    10px ui-monospace,
    monospace;
}
#operations-dialog #dashboard-trend-area {
  stroke: none;
}
#operations-dialog .trend-line {
  fill: none;
  stroke-width: 2;
}
#operations-dialog .trend-line.inspected {
  stroke: #20c6d5;
}
#operations-dialog .trend-line.delivered {
  stroke: #a376ee;
}
#operations-dialog #dashboard-trend-dot {
  fill: #54e4eb;
  stroke: #0f6272;
  stroke-width: 5;
  paint-order: stroke;
}
#dashboard-chart-tooltip {
  position: absolute;
  top: 3px;
  left: 4px;
  right: 4px;
  text-align: center;
  padding: 7px;
  background: #102435f2;
  color: #c5e3eb;
  border: 1px solid #256577;
  border-radius: 5px;
  font-size: 9px;
  pointer-events: none;
}
.chart-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #1b2638;
  padding-top: 10px;
  color: #637c95;
  font-size: 9px;
}
.equipment-card .dash-card-heading {
  margin-bottom: 10px;
}
.equipment-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  width: 100%;
  text-align: left;
  background: none;
  border-bottom: 1px solid #1a2536;
}
.equipment-row:hover {
  background: #13334330;
}
.equipment-icon {
  color: #35afbc;
  padding: 5px;
  border-radius: 5px;
  background: #12333870;
  display: flex;
}
.equipment-icon svg {
  width: 16px;
  height: 16px;
}
.equipment-row > span:nth-child(2) {
  min-width: 0;
}
.equipment-row strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #d1d8e8;
}
.equipment-row small {
  display: block;
  color: #687d98;
  font-size: 9px;
  margin-top: 3px;
}
.equipment-state {
  margin-left: auto;
  font-size: 9px;
  color: #64c29a;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.equipment-state i {
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
}
.equipment-state.attention {
  color: #d7b564;
}
.equipment-state.paused,
.equipment-state.standby {
  color: #8595b1;
}
.equipment-total {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #5e7390;
  padding-top: 12px;
}
.equipment-total strong {
  display: flex;
  gap: 7px;
  align-items: center;
  font-weight: 400;
  color: #9ab3c5;
}
.floor-card .dash-card-heading {
  margin-bottom: 6px;
}
#dashboard-floor-map svg {
  display: block;
  width: 100%;
  height: 165px;
}
#operations-dialog .floor-outline {
  stroke: #385372;
  fill: #0a162150;
  stroke-width: 1.2;
}
#operations-dialog .floor-rack {
  fill: #19283e;
  stroke: #34506e;
  stroke-width: 0.65;
}
#operations-dialog .floor-route {
  fill: none;
  stroke: #137c96;
  stroke-width: 1;
  stroke-dasharray: 3 6;
}
#operations-dialog .floor-label {
  fill: #577b96;
  stroke: none;
  font:
    7px ui-monospace,
    monospace;
  letter-spacing: 1px;
}
#operations-dialog .floor-safety {
  fill: #13677b16;
  stroke: #1e738c;
  stroke-width: 1;
  rx: 2;
}
#operations-dialog .floor-qc {
  fill: #4c288126;
  stroke: #8153b5;
  stroke-width: 1;
  rx: 2;
}
#operations-dialog .floor-buffer {
  fill: #116c7822;
  stroke: #257c83;
  stroke-width: 1;
  rx: 2;
}
#operations-dialog .floor-conveyor {
  stroke: #7786bb;
  stroke-width: 6;
}
#operations-dialog .floor-zone text {
  fill: #4ed3e4;
  stroke: none;
  font:
    10px ui-monospace,
    monospace;
}
#operations-dialog .quality-zone text {
  fill: #b992ea;
}
#operations-dialog .buffer-zone text {
  font-size: 8px;
}
.floor-zone {
  cursor: pointer;
  outline-offset: 3px;
}
.floor-zone:hover {
  filter: brightness(1.8);
}
#operations-dialog .floor-zone.is-alert .floor-safety {
  fill: #a157302d;
  stroke: #dfab60;
}
#operations-dialog .floor-zone.is-alert text {
  fill: #ffd28d;
}
#operations-dialog .map-vehicle {
  color: #37d8ee;
}
#operations-dialog .map-vehicle rect {
  fill: #1fa2bf;
  stroke: #73e4f2;
  stroke-width: 0.8;
}
#operations-dialog .vehicle-halo {
  fill: #11bfdb18;
  stroke: none;
}
#operations-dialog .map-vehicle.is-held {
  color: #dfac60;
}
#operations-dialog .map-vehicle.is-held rect {
  fill: #b18b40;
  stroke: #ffcc84;
}
#operations-dialog .map-shuttles rect {
  fill: #a581ef;
  stroke: #cab0ff;
  stroke-width: 0.5;
}
#operations-dialog .map-person {
  fill: #a8bfcb;
  stroke: #0a1828;
  stroke-width: 0.5;
}
#operations-dialog .map-person.is-detected {
  fill: #ffa576;
  stroke: #e8b075;
  stroke-width: 2;
}
.dashboard-zone-status {
  display: flex;
  gap: 7px;
  margin-top: 4px;
}
.dashboard-zone-status button {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 6px;
  background: #0c202a;
  color: #8ebcca;
  border: 1px solid #21505d;
  border-radius: 5px;
  padding: 6px 7px;
  font:
    8px ui-monospace,
    monospace;
}
.dashboard-zone-status button i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2dc6a4;
}
.dashboard-zone-status button span {
  margin-left: auto;
  color: #4eccb1;
}
.dashboard-zone-status button.is-alert {
  border-color: #805b365f;
  background: #302413;
}
.dashboard-zone-status button.is-alert span {
  color: #e9bd65;
}
.dashboard-zone-status button.is-alert i {
  background: #e9bd65;
}
.dash-card-hint {
  margin: 10px 0 0;
  color: #4e6a85;
  font-size: 8px;
}
.overview-camera-mount {
  min-width: 0;
}
#operations-dialog .overview-camera-mount .ops-camera-card {
  height: 100%;
}
#operations-dialog .ops-section-title h3 {
  font-size: 12px;
  font-weight: 500;
  color: #d0dced;
}
#operations-dialog .overview-camera-mount .ops-section-title {
  display: block;
  margin-bottom: 11px;
}
#operations-dialog .overview-camera-mount .camera-switch {
  margin-top: 11px;
}
#operations-dialog .camera-switch button {
  color: #8d9eb8;
  background: #10192b;
  border-color: #293853;
  font-size: 8px;
  padding: 5px 8px;
  border-radius: 4px;
}
#operations-dialog .camera-switch button.active {
  color: #47dae5;
  border-color: #16778b;
  background: #063c4a65;
}
#operations-dialog .camera-frame {
  border: 1px solid #26394b;
  border-radius: 6px;
}
#operations-dialog .overview-camera-mount .camera-frame {
  aspect-ratio: 2;
}
#operations-dialog .camera-frame.is-alert {
  border-color: #ae824966;
  box-shadow: 0 0 0 1px #d6a14611;
}
#operations-dialog .camera-feed-label {
  top: 9px;
  font-size: 7px;
}
#operations-dialog .camera-feed-label > span:last-child {
  font-size: 7px;
}
#operations-dialog .overview-camera-mount .camera-feed-label > span:last-child {
  display: none;
}
#operations-dialog .camera-status-row {
  gap: 8px;
  align-items: center;
}
#operations-dialog .camera-status-row > span {
  font-size: 9px;
  color: #6bcbc0;
}
#operations-dialog .camera-status-row > span.is-alert {
  color: #e3b67b;
}
#operations-dialog .camera-status-row button {
  font-size: 8px;
  padding: 5px 7px;
  min-height: 25px;
  color: #93bad0;
  border-color: #2b3c52;
  background: #102338;
}
#operations-dialog .overview-camera-mount .ops-note {
  display: none;
}
#operations-dialog .ops-note {
  color: #6f88a3;
  font-size: 10px;
}
.tasks-card .dash-card-heading {
  margin-bottom: 12px;
}
.batch-summary {
  display: flex;
  border-bottom: 1px solid #203044;
  padding-bottom: 11px;
  gap: 18px;
  margin-bottom: 5px;
}
.batch-summary > div {
  flex: 1;
}
.batch-summary span {
  display: block;
  font-size: 8px;
  color: #6f839e;
  white-space: nowrap;
}
.batch-summary strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: #b4c8e2;
  margin-top: 5px;
}
.dashboard-task {
  display: block;
  width: 100%;
  padding: 10px 0 8px;
  background: none;
  border-bottom: 1px solid #1c293b;
  text-align: left;
}
.dashboard-task > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.dashboard-task strong {
  font-size: 10px;
  color: #c9d6e9;
  font-weight: 500;
  white-space: nowrap;
}
.dashboard-task strong span {
  color: #8596b3;
  font-weight: 400;
}
.task-badge {
  font-weight: 400;
  color: #b496e6;
  padding: 3px 5px;
  background: #311b5144;
  border-radius: 3px;
  font-size: 7px;
  white-space: nowrap;
}
.task-badge.held {
  color: #e6b367;
  background: #a2672c26;
}
.dashboard-task p {
  color: #7089a5;
  font-size: 8px;
  margin: 6px 0;
}
.task-progress {
  height: 3px;
  background: #152338;
  border-radius: 4px;
}
.task-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #168ab2, #22c8d5);
  border-radius: inherit;
}
.dashboard-task small {
  display: block;
  text-align: right;
  color: #4e728c;
  font-size: 7px;
  margin-top: 4px;
}
.dashboard-task-link {
  display: block;
  font-size: 8px;
  color: #68baca;
  background: none;
  text-align: left;
  padding: 11px 0 0;
}
.tasks-complete {
  text-align: center;
  padding: 32px 8px;
}
.tasks-complete svg {
  width: 30px;
  height: 30px;
  color: #65d398;
  margin: 0 auto 13px;
  display: block;
}
.tasks-complete strong {
  font-size: 12px;
  font-weight: 500;
  color: #a9daca;
}
.tasks-complete p {
  font-size: 10px;
  color: #7895a6;
  line-height: 1.7;
}
.dashboard-activity-row {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #1b2739;
  align-items: start;
}
.dashboard-activity-row > i {
  width: 5px;
  height: 5px;
  background: #5987a1;
  border-radius: 50%;
  margin-top: 4px;
}
.dashboard-activity-row.warning > i {
  background: #ca9c65;
}
.dashboard-activity-row.success > i {
  background: #39bb9c;
}
.dashboard-activity-row p {
  color: #a0b4cc;
  font-size: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.7;
  margin: 0;
}
.dashboard-activity-row time {
  font:
    8px ui-monospace,
    monospace;
  color: #57718d;
  padding-top: 3px;
}
.dashboard-batch-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 17px;
  padding-top: 8px;
  font-size: 9px;
  color: #6f88a3;
}
.dashboard-batch-progress strong {
  color: #a8c4cf;
  font-weight: 500;
}
.dashboard-batch-progress > div {
  flex-basis: 100%;
  height: 4px;
  background: #142339;
  border-radius: 4px;
}
.dashboard-batch-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #694dc4, #b381ec);
}
#operations-dialog .ops-footnote {
  font-size: 8px;
  color: #4b6882;
  border-top: 0;
  padding: 16px 0 0;
  margin: 0;
}
.dashboard-footer-version {
  margin-left: auto;
  color: #394f67;
  font:
    7px ui-monospace,
    monospace;
}
#operations-dialog .operations-grid {
  gap: 16px;
}
#operations-dialog .operations-table {
  font-size: 11px;
}
#operations-dialog .operations-table td {
  font-size: 11px;
  padding: 13px 9px;
  border-color: #23304770;
}
#operations-dialog .operations-table th {
  font-size: 9px;
  color: #7187a3;
  padding: 11px 9px;
}
#operations-dialog .ops-fleet-card .table-scroll {
  max-height: 360px;
}
#operations-dialog .pair-status-card {
  background: linear-gradient(120deg, #26183f66, #112d3544);
  border-color: #51447266;
  margin-top: 15px;
}
#operations-dialog .quality-kpis > div {
  background: #10192a;
  border-color: #2c3a51;
}
#operations-dialog .quality-kpis strong {
  color: #66d6bf;
}
#operations-dialog .quality-kpis .quality-reject-metric {
  background: #331e302b;
  border-color: #594055;
}
#operations-dialog .quality-kpis .quality-reject-metric strong {
  color: #dfa195;
}
#operations-dialog .quality-class {
  background: #10192a;
  border-color: #273a53;
}
#operations-dialog .ops-alert {
  background: #101827;
  border-color: #293b50;
}
#operations-dialog .ops-alert.is-active {
  background: #3b2b213c;
  border-color: #a5784c66;
}
#operations-dialog .ops-events {
  border: 1px solid #28364e;
  border-radius: 9px;
  background: #0d1422;
  padding: 10px 18px;
}
#operations-dialog .ops-events li {
  border-color: #23304780;
  padding: 14px 0;
}
#operations-dialog .ops-events p {
  font-size: 11px;
}
#ops-pane-inventory > .ops-section-title {
  margin: 23px 0 12px;
}
#ops-pane-inventory > .table-scroll,
#ops-pane-quality > .table-scroll {
  border: 1px solid #26344b;
  border-radius: 8px;
  background: #0b1422;
  padding: 0 10px;
}
.cameras-camera-mount {
  max-width: 1000px;
  margin: 0 auto;
}
.cameras-camera-mount .camera-frame {
  max-height: 54vh;
}
.cameras-camera-mount .camera-frame canvas {
  object-fit: contain;
}
#operations-dialog [hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  #operations-dialog[open] {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .dashboard-navigation button {
    font-size: 12px;
  }
  .dashboard-overview-grid {
    gap: 20px;
  }
  .dash-card,
  #operations-dialog .ops-camera-card,
  #operations-dialog .ops-fleet-card {
    padding: 20px;
  }
  #dashboard-trend,
  #dashboard-floor-map svg {
    height: 235px;
  }
  .equipment-row {
    padding: 14px 0;
  }
}
@media (max-width: 1250px) {
  #operations-dialog[open] {
    grid-template-columns: 75px minmax(0, 1fr);
  }
  .dashboard-rail {
    padding: 19px 11px 12px;
  }
  .dashboard-brand {
    padding: 0 4px 21px;
  }
  .dashboard-brand > span,
  .rail-caption,
  .rail-return span,
  .rail-live {
    display: none;
  }
  .dashboard-navigation {
    margin-top: 18px;
  }
  .dashboard-navigation button {
    flex-direction: column;
    gap: 7px;
    padding: 10px 3px;
    min-height: 63px;
    font-size: 7px;
    text-align: center;
  }
  .dashboard-navigation button svg {
    width: 20px;
    height: 20px;
  }
  .rail-return {
    justify-content: center;
    padding: 12px 3px;
  }
  .dashboard-live-pill {
    display: none;
  }
  .operator-badge {
    display: none;
  }
  .dashboard-metric {
    gap: 12px;
    padding: 14px;
  }
  .dashboard-metric-icon svg {
    width: 27px;
    height: 27px;
  }
  #operations-dialog .operations-header {
    padding: 0 20px;
  }
  #operations-dialog .operations-body {
    padding: 0 20px 14px;
  }
  .dashboard-page-heading {
    padding-left: 20px;
  }
  #operations-dialog .operations-toolbar {
    padding-right: 20px;
  }
  #operations-dialog .operations-toolbar > button {
    font-size: 8px;
    padding: 6px;
  }
  .dashboard-overview-grid {
    grid-template-columns: 1.15fr 1fr 1.05fr;
    gap: 11px;
  }
  .dash-card,
  #operations-dialog .ops-camera-card {
    padding: 12px;
  }
  .equipment-row {
    gap: 6px;
  }
  .equipment-row small {
    font-size: 7px;
  }
  .equipment-state {
    font-size: 7px;
  }
  .dashboard-task > div:first-child {
    flex-wrap: wrap;
  }
}
@media (max-width: 980px) {
  #operations-dialog {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border-width: 0;
  }
  #operations-dialog[open] {
    grid-template-rows: 70px minmax(0, 1fr);
  }
  .dashboard-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  .dashboard-page-heading {
    padding: 15px 18px 11px;
  }
  .dashboard-page-heading h3 {
    font-size: 20px;
  }
  .dashboard-live-pill {
    display: flex;
    margin-left: auto;
  }
  #operations-dialog .operations-toolbar {
    grid-column: 1;
    grid-row: 2;
    padding: 0 18px 13px;
    justify-content: flex-start;
  }
  #operations-dialog .operations-toolbar > button {
    font-size: 9px;
  }
  #operations-dialog .operations-toolbar .stop-fleet {
    margin-left: auto;
  }
  #operations-dialog .operations-body {
    grid-row: 3;
    padding: 0 18px 16px;
  }
  .dashboard-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .trend-card {
    grid-column: 1;
  }
  .equipment-card {
    grid-column: 2;
  }
  .floor-card {
    grid-column: 2;
    grid-row: 2;
  }
  .overview-camera-mount {
    grid-column: 1;
    grid-row: 2;
  }
  .tasks-card {
    grid-column: 1;
  }
  .incidents-card {
    grid-column: 2;
  }
  .dashboard-metric {
    padding: 13px 11px;
    min-height: 95px;
    gap: 9px;
  }
  .dashboard-metric-icon svg {
    width: 23px;
    height: 23px;
  }
  .dashboard-metric > div > span {
    font-size: 9px;
  }
  #operations-dialog .dashboard-metric strong {
    font-size: 26px;
  }
  .dashboard-metric small {
    font-size: 8px;
  }
  #operations-dialog .operations-metrics {
    gap: 10px;
  }
  .system-health {
    width: 230px;
  }
  #operations-dialog .operations-identity {
    min-width: 150px;
  }
  #operations-dialog .operations-identity h2 {
    font-size: 16px;
  }
  .dashboard-footer-version {
    display: none;
  }
  #operations-dialog .operations-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  #operations-dialog[open] {
    grid-template-columns: 1fr;
    grid-template-rows: 67px minmax(0, 1fr) 63px;
  }
  .dashboard-rail {
    grid-column: 1;
    grid-row: 3;
    padding: 0;
    border: 0;
    border-top: 1px solid #29334f;
    background: #0a1020;
    z-index: 3;
  }
  .dashboard-brand,
  .rail-bottom {
    display: none;
  }
  .dashboard-navigation {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    flex: 1;
    margin: 0;
    padding: 5px 3px 3px;
    gap: 2px;
    overflow: visible;
  }
  .dashboard-navigation button {
    min-height: 0;
    font-size: 8px;
    padding: 4px 0;
    gap: 5px;
    border-radius: 5px;
    border: 0;
    justify-content: center;
  }
  .dashboard-navigation button svg {
    width: 18px;
    height: 18px;
  }
  .dashboard-navigation button.active {
    box-shadow: inset 0 2px 0 #25aec8;
  }
  #operations-dialog .operations-header {
    grid-column: 1;
    padding: 0 14px;
    gap: 11px;
  }
  #operations-dialog .operations-identity {
    min-width: 0;
    flex: 1;
    padding-left: 37px;
    background: url('./assets/emblem-web.png') no-repeat left center / 30px 32px;
  }
  #operations-dialog .operations-identity h2 {
    font-size: 15px;
    letter-spacing: -0.035em;
  }
  .dashboard-eyebrow {
    font-size: 6px;
  }
  .system-health {
    display: none;
  }
  .dashboard-notifications {
    padding: 3px;
  }
  .dashboard-notifications svg {
    width: 18px;
    height: 18px;
  }
  .dashboard-language {
    font-size: 9px;
    padding: 3px;
  }
  #operations-dialog .operations-header > .close-button {
    width: 25px;
    height: 25px;
    font-size: 17px;
  }
  .dashboard-workspace {
    grid-column: 1;
    grid-row: 2;
  }
  .dashboard-page-heading {
    padding: 13px 14px 10px;
    gap: 8px;
  }
  .dashboard-breadcrumb {
    display: none;
  }
  .dashboard-page-heading h3 {
    font-size: 20px;
  }
  .dashboard-page-heading > div > p:last-child {
    font-size: 9px;
    margin-top: 5px;
    max-width: 270px;
  }
  .dashboard-live-pill {
    display: none;
  }
  #operations-dialog .operations-toolbar {
    padding: 0 14px 12px;
    gap: 4px;
    flex-wrap: wrap;
  }
  #operations-dialog .operations-toolbar > button {
    min-height: 29px;
    font-size: 8px;
    padding: 5px 7px;
  }
  #operations-dialog .operations-toolbar .stop-fleet {
    flex: none;
    width: auto;
    margin-left: auto;
  }
  #operations-dialog .speed-controls button {
    font-size: 8px;
  }
  #operations-dialog .operations-body {
    padding: 0 14px 14px;
  }
  #operations-dialog .operations-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 13px;
  }
  .dashboard-metric {
    min-height: 100px;
    padding: 13px;
    gap: 12px;
  }
  .dashboard-metric-icon svg {
    width: 24px;
    height: 24px;
  }
  .dashboard-metric > div > span {
    font-size: 9px;
  }
  #operations-dialog .dashboard-metric strong {
    font-size: 28px;
  }
  .dashboard-metric small {
    font-size: 8px;
  }
  .metric-corner {
    font-size: 9px;
    right: 7px;
    top: 7px;
  }
  .dashboard-overview-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .trend-card {
    order: 0;
  }
  .overview-camera-mount {
    order: 1;
  }
  .equipment-card {
    order: 2;
  }
  .floor-card {
    order: 3;
  }
  .tasks-card {
    order: 4;
  }
  .incidents-card {
    order: 5;
  }
  .dash-card,
  #operations-dialog .ops-camera-card,
  #operations-dialog .ops-fleet-card {
    padding: 14px;
  }
  .dash-card-heading h3 {
    font-size: 12px;
  }
  #dashboard-trend {
    height: 166px;
  }
  #dashboard-floor-map svg {
    height: 230px;
  }
  .equipment-row {
    padding: 11px 0;
    gap: 10px;
  }
  .equipment-row strong {
    font-size: 11px;
  }
  .equipment-row small {
    font-size: 9px;
  }
  .equipment-state {
    font-size: 9px;
  }
  .equipment-total {
    font-size: 9px;
  }
  #operations-dialog .ops-section-title {
    flex-wrap: wrap;
  }
  #operations-dialog .camera-switch {
    margin-top: 3px;
  }
  #operations-dialog .camera-switch button {
    padding: 6px 8px;
    font-size: 8px;
  }
  #operations-dialog .camera-status-row {
    flex-wrap: wrap;
  }
  #operations-dialog .camera-status-row > span {
    flex: 1;
    font-size: 8px;
  }
  #operations-dialog .camera-feed-label > span:last-child {
    display: none;
  }
  #operations-dialog .operations-table td {
    font-size: 9px;
    padding: 12px 5px;
  }
  #operations-dialog .operations-table th {
    font-size: 8px;
    padding: 10px 5px;
  }
  #operations-dialog .ops-events {
    padding: 6px 11px;
  }
  #operations-dialog .ops-events p {
    font-size: 10px;
  }
  #operations-dialog .ops-events li {
    grid-template-columns: 34px 6px 1fr;
    gap: 8px;
  }
  #operations-dialog .quality-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  #operations-dialog .ops-footnote {
    font-size: 7px;
    line-height: 1.5;
  }
  .cameras-camera-mount .camera-frame {
    max-height: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .health-track i {
    transition: none;
  }
}

.equipment-state.stopped {
  color: #e99d90;
}

#operations-dialog .map-junction {
  fill: #103d39;
  stroke: #49bdac;
  stroke-width: 1.5;
}
#operations-dialog .map-junction.is-held {
  fill: #684b19;
  stroke: #fbbf24;
}
#operations-dialog .map-shuttles.is-held rect {
  fill: #fbbf24;
}
#operations-dialog .map-shuttles .vehicle-halo {
  fill: #9d73e32a;
  stroke: none;
}
#dashboard-equipment-list {
  max-height: 265px;
  overflow: auto;
}

#operations-dialog #pair-task {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
}
#operations-dialog #pair-task b {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #c5b3e6;
}
#operations-dialog #pair-task small {
  display: block;
  font-size: 10px;
  color: #90a9b9;
}
@media (max-width: 600px) {
  #operations-dialog #pair-task {
    grid-template-columns: 1fr;
  }
}
