.xr-telecom {
  --xr-tel-ink: #e6f7fb;
  --xr-tel-muted: #abc0cb;
  --xr-tel-accent: #72e5ef;
  --xr-tel-line: rgba(114, 229, 239, .25);
  color: var(--xr-tel-ink);
  background: #07151d;
  border: 1px solid var(--xr-tel-line);
  border-radius: 16px;
  padding: clamp(1rem, 3vw, 1.5rem);
  margin-top: 2rem;
  min-width: 0;
}

.xr-telecom .xr-kicker {
  color: var(--xr-tel-accent);
}

.xr-telecom .xr-intro,
.xr-telecom .xr-note {
  color: var(--xr-tel-muted);
  max-width: 68ch;
}

.xr-telecom .xr-note {
  font-size: .9rem;
  margin-bottom: 0;
}

.xr-telecom .xr-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block: 1rem;
}

.xr-telecom .xr-button {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
}

.xr-telecom .xr-button[aria-pressed="true"] {
  border-color: var(--xr-tel-accent);
  color: var(--xr-tel-ink);
  box-shadow: inset 0 0 0 1px var(--xr-tel-accent);
}

.xr-telecom .xr-stage {
  border: 1px solid var(--xr-tel-line);
  border-radius: 12px;
  background: rgba(13, 32, 42, .75);
  min-width: 0;
}

.xr-telecom .xr-result {
  color: var(--xr-tel-ink);
}

.xr-tel-steps {
  margin-bottom: .75rem !important;
}

.xr-tel-alarm-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: 1rem;
}

.xr-tel-alarm-node {
  flex: 1 1 0;
  border: 1px solid var(--xr-tel-line);
  border-radius: 9px;
  padding: .7rem .45rem;
  text-align: center;
  color: var(--xr-tel-muted);
  font-size: .88rem;
}

.xr-tel-alarm-node.xr-tel-current {
  border-color: var(--xr-tel-accent);
  color: var(--xr-tel-ink);
  background: rgba(114, 229, 239, .1);
}

.xr-tel-alarm-link {
  color: var(--xr-tel-accent);
}

.xr-tel-math {
  margin-top: .75rem;
  color: var(--xr-tel-muted);
  font-size: .88rem;
}

.xr-tel-math summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--xr-tel-accent);
  cursor: pointer;
}

.xr-tel-math p {
  max-width: 55ch;
  margin: .35rem 0 0;
}

.xr-telecom input[type="range"] {
  display: block;
  width: 100%;
  min-height: 32px;
  accent-color: var(--xr-tel-accent);
}

.xr-telecom .xr-label {
  display: block;
  color: var(--xr-tel-muted);
  margin-block: .5rem .25rem;
}

.xr-tel-fiber-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1rem;
}

.xr-tel-fiber-cut {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(114, 229, 239, .08);
}

.xr-tel-fiber-cut::after {
  position: absolute;
  left: calc(100% - 5px);
  top: 50%;
  width: 0;
  height: 3px;
  content: "";
  background: var(--xr-tel-accent);
  box-shadow: 0 0 12px rgba(114, 229, 239, .9);
  transition: width .2s ease;
}

.xr-tel-fiber-stage[data-step="inspect"] .xr-tel-jacket {
  box-shadow: 0 0 0 4px rgba(114, 229, 239, .14);
}

.xr-tel-fiber-stage[data-step="inspect"] .xr-tel-cladding {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .4);
}

.xr-tel-fiber-stage[data-step="connect"] .xr-tel-fiber-cut::after {
  width: 30px;
}

.xr-tel-fiber-stage[data-step="connect"] .xr-tel-jacket {
  box-shadow: 0 0 0 4px rgba(114, 229, 239, .18), 0 0 22px rgba(114, 229, 239, .28);
}

.xr-tel-fiber-stage[data-step="test"] .xr-tel-fiber-cut::after {
  width: 100px;
  height: 4px;
}

.xr-tel-fiber-stage[data-step="test"] .xr-tel-core {
  box-shadow: 0 0 0 4px rgba(114, 229, 239, .2), 0 0 18px rgba(114, 229, 239, .95);
}

.xr-tel-jacket {
  display: grid;
  place-items: center;
  width: 86px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #23546a;
  border: 2px solid #72e5ef;
}

.xr-tel-cladding {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d9eef4;
  border: 2px solid white;
}

.xr-tel-core {
  position: relative;
  width: 15px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #72e5ef;
  box-shadow: 0 0 12px rgba(114, 229, 239, .8);
}

.xr-tel-fiber-key {
  list-style: none;
  display: grid;
  gap: .55rem;
  padding: 0;
  margin: 0;
  color: var(--xr-tel-muted);
  font-size: .88rem;
}

.xr-tel-fiber-key li {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.xr-tel-swatch {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.xr-tel-swatch-jacket { background: #23546a; border: 1px solid #72e5ef; }
.xr-tel-swatch-cladding { background: #d9eef4; }
.xr-tel-swatch-core { background: #72e5ef; }

.xr-telecom :focus-visible {
  outline: 2px solid var(--xr-tel-accent);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .xr-tel-alarm-stage { gap: .25rem; padding: .65rem; }
  .xr-tel-alarm-node { font-size: .76rem; padding: .6rem .25rem; }
  .xr-tel-fiber-stage { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .xr-telecom *,
  .xr-telecom *::before,
  .xr-telecom *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
