/* Planned safeguards: the monitoring outline denotes a conceptual chassis area. */
.safety-feature {
  --safety-ink: #a7e6f1;
  --safety-edge: rgba(133, 207, 224, .35);
  --safety-wash: rgba(104, 188, 209, .08);
  --safety-icon-wash: rgba(112, 201, 223, .11);
}

[data-theme="light"] .safety-feature {
  --safety-ink: #246c7e;
  --safety-edge: rgba(40, 111, 132, .3);
  --safety-wash: rgba(75, 145, 167, .055);
  --safety-icon-wash: rgba(60, 140, 162, .09);
}

.safety-feature .safety-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  margin: 0 0 14px;
  padding: 13px 16px;
  border: 1px solid var(--safety-edge);
  border-radius: 4px;
  background: linear-gradient(110deg, var(--safety-wash), transparent 85%);
}

.safety-feature .safety-callout-icon,
.safety-feature .safety-selector-icon {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--safety-ink);
  border: 1px solid var(--safety-edge);
  border-radius: 4px;
  background: var(--safety-icon-wash);
}

.safety-feature .safety-callout-icon {
  width: 46px;
  height: 46px;
}

.safety-feature .safety-callout-icon svg {
  display: block;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.safety-feature .safety-callout-copy {
  min-width: 0;
}

.safety-feature .safety-callout-context,
.safety-feature .safety-callout-copy strong {
  display: block;
}

.safety-feature .safety-callout-context {
  color: var(--safety-ink);
  font-size: .625rem;
  line-height: 1.6;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.safety-feature .safety-callout-copy strong {
  margin-top: 2px;
  color: var(--text);
  font-size: .9375rem;
  line-height: 1.5;
  font-weight: 600;
}

.safety-feature .safety-callout-progress {
  margin-left: auto;
  color: var(--secondary);
  font-size: .6875rem;
  line-height: 1.5;
  letter-spacing: .05em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.safety-feature .safety-callout-progress b {
  color: var(--safety-ink);
  font-weight: 600;
}

.safety-feature .safety-robot {
  isolation: isolate;
}

.safety-feature .safety-monitoring-zone {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  overflow: visible;
  pointer-events: none;
  transition: opacity .25s ease;
}

.safety-feature .safety-zone-body {
  fill: url(#safety-zone-fill);
  stroke: #98e7f4;
  stroke-width: 1.3;
  stroke-dasharray: 5 6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 7px rgba(89, 205, 230, .3));
}

.safety-feature .safety-robot[data-safety-selected="voltage"] .safety-monitoring-zone,
.safety-feature .safety-robot[data-safety-selected="temperature"] .safety-monitoring-zone {
  opacity: 1;
}

/* Keep the original physical bumper and E-stop anchor positions. */
.safety-feature .safety-marker {
  z-index: 2;
  display: grid;
  place-items: center;
  left: 71%;
  top: 69%;
  width: 36px;
  height: 36px;
  color: #c4f7ff;
  border-color: #a8e8f5;
  background: rgba(11, 43, 52, .72);
  box-shadow: 0 0 0 6px rgba(107, 195, 215, .16), 0 0 25px rgba(82, 205, 232, .32);
  pointer-events: none;
  transition: left .35s ease, top .35s ease, box-shadow .25s ease;
}

.safety-feature .safety-marker svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.safety-feature .safety-robot[data-safety-selected="stop"] .safety-marker {
  left: 30%;
  top: 21%;
}

.safety-feature .safety-robot[data-safety-selected="voltage"] .safety-marker {
  left: 58%;
  top: 48%;
  opacity: 1;
}

.safety-feature .safety-robot[data-safety-selected="temperature"] .safety-marker {
  left: 64%;
  top: 44%;
  opacity: 1;
}

.safety-feature .safety-detail {
  border-left-color: var(--safety-ink);
}

.safety-feature .safety-selectors {
  gap: 10px;
}

.safety-feature .safety-selectors button {
  min-width: 0;
  gap: 11px;
  padding: 12px;
  border-radius: 4px;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.safety-feature .safety-selector-icon {
  width: 34px;
  height: 34px;
  color: var(--secondary);
  background: transparent;
  border-color: var(--line);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.safety-feature .safety-selector-icon svg {
  width: 21px;
  height: 21px;
  margin: 0;
}

.safety-feature .safety-selectors button:hover {
  border-color: var(--safety-edge);
}

.safety-feature .safety-selectors button[aria-pressed="true"] {
  border-color: var(--safety-edge);
  background: var(--safety-wash);
  color: var(--text);
}

.safety-feature .safety-selectors button[aria-pressed="true"] .safety-selector-icon {
  color: var(--safety-ink);
  border-color: var(--safety-edge);
  background: var(--safety-icon-wash);
}

@media (max-width: 1100px) and (min-width: 901px) {
  .safety-feature .safety-selectors button {
    gap: 8px;
    padding: 11px 9px;
    font-size: .8125rem;
  }
}

@media (max-width: 500px) {
  .safety-feature .safety-callout {
    gap: 11px;
    min-height: 72px;
    margin-bottom: 12px;
    padding: 11px 12px;
  }

  .safety-feature .safety-callout-icon {
    width: 40px;
    height: 40px;
  }

  .safety-feature .safety-callout-icon svg {
    width: 24px;
    height: 24px;
  }

  .safety-feature .safety-callout-copy strong {
    font-size: .875rem;
  }

  .safety-feature .safety-callout-context {
    font-size: .5625rem;
    letter-spacing: .08em;
  }

  .safety-feature .safety-callout-progress {
    display: none;
  }

  .safety-feature .safety-marker {
    width: 29px;
    height: 29px;
    box-shadow: 0 0 0 4px rgba(107, 195, 215, .16), 0 0 18px rgba(82, 205, 232, .28);
  }

  .safety-feature .safety-marker svg {
    width: 17px;
    height: 17px;
  }

  .safety-feature .safety-selectors {
    gap: 8px;
  }

  .safety-feature .safety-selectors button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 9px;
    min-height: 106px;
    padding: 12px 10px;
    font-size: .8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .safety-feature .safety-monitoring-zone,
  .safety-feature .safety-marker,
  .safety-feature .safety-selectors button,
  .safety-feature .safety-selector-icon {
    transition: none;
  }
}
