.agentic-factory-3d {
  width: 100%;
  contain: layout;
}
.agentic-factory-3d {
  color-scheme: dark;
  --bg: #000000;
  --white: #f4f1ea;
  --amber: #ff7a1a;
  --muted: #81848b;
  --line: rgba(244, 241, 234, 0.11);
}
.agentic-factory-3d, .agentic-factory-3d * {
  box-sizing: border-box;
}
.agentic-factory-3d {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}
.agentic-factory-3d {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--white);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
.agentic-factory-3d {
  position: relative;
  overflow: hidden;
}
.agentic-factory-3d button,
.agentic-factory-3d a {
  -webkit-tap-highlight-color: transparent;
}
.agentic-factory-3d button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.agentic-factory-3d button:focus-visible,
.agentic-factory-3d a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 5px;
}
.agentic-factory-3d #scene {
  position: absolute;
  inset: 0;
  touch-action: none;
  outline: none;
}
.agentic-factory-3d #scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.agentic-factory-3d .vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 48%,
    transparent 30%,
    rgba(0, 0, 0, 0.12) 64%,
    rgba(0, 0, 0, 0.65) 100%
  );
}
.agentic-factory-3d .topbar {
  position: absolute;
  inset: 28px 32px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.agentic-factory-3d .identity {
  display: flex;
  gap: 13px;
  align-items: center;
}
.agentic-factory-3d .mark {
  width: 30px;
  height: 30px;
  border: 1px solid #55502f;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--amber);
  background: #1c1b14;
}
.agentic-factory-3d .identity strong {
  display: block;
  font-weight: 550;
  letter-spacing: -0.2px;
  font-size: 13px;
}
.agentic-factory-3d .identity small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: 1.55px;
  color: #73777f;
  text-transform: uppercase;
}
.agentic-factory-3d .status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.1px;
  color: #a6a79f;
}
.agentic-factory-3d .status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px #ff7a1a60;
}
.agentic-factory-3d .status.paused i {
  background: #777;
  box-shadow: none;
}
.agentic-factory-3d .status span:last-child {
  font-variant-numeric: tabular-nums;
  color: #646971;
  margin-left: 12px;
}
.agentic-factory-3d .scene-heading {
  position: absolute;
  top: 110px;
  left: 24%;
  right: 24%;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #959790;
  text-transform: uppercase;
}
.agentic-factory-3d .scene-heading:before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--amber);
}
.agentic-factory-3d .scene-heading .index {
  margin-left: auto;
  color: #4e535b;
  font-size: 9px;
  letter-spacing: 1px;
}
.agentic-factory-3d .coordinates {
  position: absolute;
  top: 150px;
  right: 33px;
  color: #52575f;
  writing-mode: vertical-rl;
  font:
    9px ui-monospace,
    Menlo,
    SFMono-Regular,
    monospace;
  letter-spacing: 1.5px;
  pointer-events: none;
}
.agentic-factory-3d .controls {
  position: absolute;
  bottom: 79px;
  left: 26px;
  right: 26px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  z-index: 5;
}
.agentic-factory-3d .mode-bar {
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 5px;
  border: 1px solid #ffffff13;
  border-radius: 12px;
  background: rgba(25, 28, 32, 0.87);
  box-shadow:
    0 8px 30px #0003,
    inset 0 1px 0 #ffffff03;
  backdrop-filter: blur(16px);
}
.agentic-factory-3d .mode-bar button {
  border: 0;
  background: none;
  color: #a2a4a8;
  white-space: nowrap;
  padding: 11px 15px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  border-radius: 8px;
  transition:
    background 0.2s,
    color 0.2s;
}
.agentic-factory-3d .mode-bar button:hover {
  background: #ffffff08;
  color: var(--white);
}
.agentic-factory-3d .mode-bar button[aria-pressed='true'] {
  background: var(--amber);
  color: #211c0d;
  box-shadow: 0 2px 12px #ff7a1a12;
}
.agentic-factory-3d svg {
  flex-shrink: 0;
  display: block;
}
.agentic-factory-3d .mode-bar svg {
  width: 14px;
  height: 14px;
}
.agentic-factory-3d .camera-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.agentic-factory-3d .camera-row .caption {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #555b65;
  margin-right: 9px;
}
.agentic-factory-3d .camera-row button {
  border: 0;
  background: transparent;
  color: #6e747e;
  padding: 5px 9px;
  font-size: 10px;
  transition: color 0.2s;
}
.agentic-factory-3d .camera-row button:hover,
.agentic-factory-3d .camera-row button[aria-pressed='true'] {
  color: var(--white);
}
.agentic-factory-3d .camera-row button[aria-pressed='true']:after {
  content: '';
  display: block;
  width: 3px;
  height: 3px;
  background: var(--amber);
  border-radius: 50%;
  margin: 5px auto -8px;
}
.agentic-factory-3d .camera-row .divider {
  width: 1px;
  height: 13px;
  background: var(--line);
  margin: 0 8px;
}
.agentic-factory-3d .camera-row #play {
  padding: 5px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}
.agentic-factory-3d .footer {
  position: absolute;
  bottom: 25px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.agentic-factory-3d .wordmark {
  font-size: 11px;
  letter-spacing: -0.1px;
  color: #6d7178;
  text-decoration: none;
  pointer-events: auto;
}
.agentic-factory-3d .wordmark span {
  color: #a1a49f;
}
.agentic-factory-3d .hint {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #636972;
  font-size: 10px;
}
.agentic-factory-3d .hint svg {
  color: #8c8f91;
}
.agentic-factory-3d .footer-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font:
    9px ui-monospace,
    Menlo,
    SFMono-Regular,
    monospace;
  letter-spacing: 1.5px;
  color: #3f454d;
}
.agentic-factory-3d #labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.agentic-factory-3d .station-label {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.3s;
  will-change: transform;
  pointer-events: none;
  min-width: 138px;
}
.agentic-factory-3d .station-label.visible {
  opacity: 1;
}
.agentic-factory-3d .station-label .stem {
  height: 26px;
  width: 1px;
  background: linear-gradient(#ff7a1a00, #ff7a1a70);
  margin: 0 0 0 10px;
}
.agentic-factory-3d .station-label .label-card {
  background: #14171bee;
  backdrop-filter: blur(10px);
  border: 1px solid #ff7a1a40;
  border-radius: 6px;
  padding: 10px 13px;
  box-shadow: 0 4px 20px #0003;
}
.agentic-factory-3d .station-label .label-title {
  font-weight: 550;
  font-size: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}
.agentic-factory-3d .station-label .label-title span {
  color: var(--amber);
  font:
    9px ui-monospace,
    Menlo,
    monospace;
}
.agentic-factory-3d .station-label .label-meta {
  font-size: 9px;
  color: #8e939c;
  margin: 6px 0 0 24px;
  white-space: nowrap;
}
.agentic-factory-3d #tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.15s;
  padding: 11px 14px;
  border: 1px solid #ffffff1a;
  background: #171a20ed;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px #0005;
  border-radius: 7px;
  max-width: 240px;
}
.agentic-factory-3d #tooltip.visible {
  opacity: 1;
}
.agentic-factory-3d #tooltip strong {
  font-size: 12px;
  font-weight: 550;
}
.agentic-factory-3d #tooltip strong span {
  font-size: 10px;
  color: var(--amber);
  margin-right: 8px;
}
.agentic-factory-3d #tooltip p {
  font-size: 10px;
  color: #9b9fa7;
  margin: 6px 0 0;
  line-height: 1.5;
}
.agentic-factory-3d #journey {
  position: absolute;
  left: 24%;
  right: 24%;
  top: 148px;
  opacity: 0;
  transform: translateY(-5px);
  transition: 0.4s;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 13px;
}
.agentic-factory-3d #journey.visible {
  opacity: 1;
  transform: none;
}
.agentic-factory-3d .journey-icon {
  width: 28px;
  height: 28px;
  border: 1px solid #ff7a1a40;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--amber);
}
.agentic-factory-3d #journey strong {
  font-size: 11px;
  font-weight: 500;
}
.agentic-factory-3d #journey small {
  display: block;
  font-size: 9px;
  margin-top: 4px;
  color: #7e858d;
}
.agentic-factory-3d #journey .track {
  height: 2px;
  background: #ffffff0b;
  flex: 1;
  margin-left: 8px;
}
.agentic-factory-3d #journey .track i {
  display: block;
  height: 100%;
  background: var(--amber);
  width: 0;
}
.agentic-factory-3d #loading {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8c8f95;
  font-size: 11px;
  transition: opacity 0.4s;
  z-index: 20;
}
.agentic-factory-3d #loading i {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  border: 1px solid #ff7a1a22;
  border-top-color: var(--amber);
  animation: agentic-factory-3d-spin 1s linear infinite;
}
@keyframes agentic-factory-3d-spin {
  to {
    transform: rotate(360deg);
  }
}
.agentic-factory-3d #loading.done {
  opacity: 0;
  pointer-events: none;
}
.agentic-factory-3d #error {
  position: absolute;
  left: 27.5%;
  right: 27.5%;
  top: 40%;
  border: 1px solid #ff7a1a30;
  background: #191b1f;
  padding: 24px;
  border-radius: 12px;
  display: none;
  font-size: 13px;
  line-height: 1.7;
}
.agentic-factory-3d #error strong {
  color: var(--amber);
  font-weight: 500;
}
.agentic-factory-3d #error p {
  color: #9da1a8;
  margin: 8px 0 0;
}
.agentic-factory-3d #error button {
  border: 1px solid #ffffff22;
  background: #25292e;
  padding: 8px 14px;
  border-radius: 5px;
  margin-top: 14px;
}
@media (min-width: 1600px) {
  .agentic-factory-3d .topbar {
    inset: 38px 46px auto;
  }
  .agentic-factory-3d .scene-heading {
    top: 142px;
  }
  .agentic-factory-3d .controls {
    bottom: 100px;
    gap: 20px;
  }
  .agentic-factory-3d .mode-bar button {
    padding: 13px 20px;
    font-size: 12px;
  }
  .agentic-factory-3d .camera-row button {
    font-size: 11px;
    padding: 5px 12px;
  }
  .agentic-factory-3d .footer {
    bottom: 35px;
    left: 46px;
    right: 46px;
  }
  .agentic-factory-3d #journey {
    top: 182px;
  }
  .agentic-factory-3d .coordinates {
    right: 47px;
    top: 185px;
  }
}
@media (max-width: 900px) {
  .agentic-factory-3d .topbar {
    inset: 24px 22px auto;
  }
  .agentic-factory-3d .identity strong {
    font-size: 12px;
  }
  .agentic-factory-3d .identity small {
    font-size: 8px;
    letter-spacing: 1.1px;
  }
  .agentic-factory-3d .status {
    font-size: 9px;
  }
  .agentic-factory-3d .status span:last-child {
    display: none;
  }
  .agentic-factory-3d .scene-heading {
    left: 22px;
    right: 22px;
    top: 105px;
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .agentic-factory-3d .coordinates {
    display: none;
  }
  .agentic-factory-3d .controls {
    left: 12px;
    right: 12px;
    bottom: 84px;
    gap: 18px;
  }
  .agentic-factory-3d .mode-bar {
    gap: 1px;
    padding: 4px;
    border-radius: 10px;
  }
  .agentic-factory-3d .mode-bar button {
    padding: 11px 10px;
    font-size: 10px;
    gap: 6px;
  }
  .agentic-factory-3d .mode-bar svg {
    width: 12px;
    height: 12px;
  }
  .agentic-factory-3d .camera-row {
    gap: 0;
  }
  .agentic-factory-3d .camera-row .caption {
    font-size: 8px;
    margin-right: 6px;
  }
  .agentic-factory-3d .camera-row button {
    padding: 5px 8px;
    font-size: 9px;
  }
  .agentic-factory-3d .camera-row .divider {
    margin: 0 5px;
  }
  .agentic-factory-3d .footer {
    bottom: 25px;
    left: 22px;
    right: 22px;
    align-items: flex-end;
  }
  .agentic-factory-3d .hint {
    font-size: 9px;
    max-width: 175px;
    line-height: 1.6;
  }
  .agentic-factory-3d .footer-center {
    display: none;
  }
  .agentic-factory-3d .vignette {
    background: radial-gradient(ellipse at 50% 47%, transparent 20%, #00000080 100%);
  }
  .agentic-factory-3d #loading {
    left: 50%;
  }
  .agentic-factory-3d #error {
    left: 7%;
    right: 7%;
    top: 35%;
  }
  .agentic-factory-3d #journey {
    left: 24px;
    right: 24px;
    top: 143px;
  }
  .agentic-factory-3d .station-label {
    min-width: 100px;
  }
  .agentic-factory-3d .station-label .label-card {
    padding: 7px 9px;
  }
  .agentic-factory-3d .station-label .label-title {
    font-size: 10px;
    gap: 7px;
  }
  .agentic-factory-3d .station-label .label-meta {
    font-size: 8px;
    margin-left: 0;
  }
  .agentic-factory-3d .station-label .stem {
    height: 17px;
  }
}
@media (max-width: 360px) {
  .agentic-factory-3d .mode-bar button {
    padding: 10px 7px;
  }
  .agentic-factory-3d .mode-bar svg {
    display: none;
  }
  .agentic-factory-3d .camera-row .caption {
    display: none;
  }
  .agentic-factory-3d .status {
    display: none;
  }
}
@media (max-height: 570px) {
  .agentic-factory-3d .topbar {
    top: 16px;
  }
  .agentic-factory-3d .scene-heading {
    top: 70px;
  }
  .agentic-factory-3d .controls {
    bottom: 50px;
    gap: 8px;
  }
  .agentic-factory-3d .footer {
    bottom: 14px;
  }
  .agentic-factory-3d #journey {
    top: 96px;
  }
  .agentic-factory-3d .mode-bar button {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .agentic-factory-3d, .agentic-factory-3d * {
    transition: none !important;
  }
  .agentic-factory-3d #loading i {
    animation: none;
  }
}
