:root {
  --bg: #0a0a0c;
  --charcoal: #121214;
  --panel: #16161b;
  --line: rgba(255,255,255,.12);
  --ink: #f7f4ee;
  --muted: #b7b3c7;
  --lime: #b6ff3b;
  --blue: #3ec4ff;
  --pink: #ff3fa6;
  --gold: #ffd24a;
  --orange: #ff7a1a;
  --purple: #9b5cff;
  --white: #ffffff;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); }
body {
  margin: 0;
  min-height: 100%;
  font-family: Nunito, "Avenir Next", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}
h1, h2, .display {
  font-family: "Luckiest Guy", "Arial Black", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 4px 0 #000, 0 10px 18px rgba(0,0,0,.45);
}
.stage-glow, .stage-texture, .confetti { position: fixed; inset: 0; pointer-events: none; }
.stage-glow {
  z-index: 0;
  background:
    radial-gradient(ellipse at 8% -10%, rgba(255,122,26,.28), transparent 42%),
    radial-gradient(ellipse at 92% 0%, rgba(62,196,255,.24), transparent 40%),
    radial-gradient(ellipse at 100% 100%, rgba(155,92,255,.22), transparent 46%),
    radial-gradient(ellipse at 40% 120%, rgba(255,63,166,.12), transparent 40%);
}
.stage-texture {
  z-index: 0;
  opacity: .22;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
  mix-blend-mode: overlay;
}
.confetti { z-index: 1; }
.star, .heart, .dot { position: absolute; display: block; }
.star { width: 14px; height: 14px; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.star.s1 { top: 78px; left: 28%; background: var(--blue); }
.star.s2 { top: 36px; right: 22%; background: var(--lime); }
.star.s3 { bottom: 140px; left: 8%; background: var(--orange); }
.heart { width: 14px; height: 14px; background: var(--pink); transform: rotate(-12deg); clip-path: path("M12 2C9.5-1 5 1.2 6 5.5 2 1.4-2 4.2 2 9.5 6 14 12 18 12 18s6-4 10-8.5C26 4.2 22 1.4 18 5.5 19 1.2 14.5-1 12 2z"); }
.heart.h1 { top: 120px; right: 7%; }
.heart.h2 { bottom: 210px; right: 16%; background: var(--blue); }
.dot { width: 8px; height: 8px; border-radius: 2px; transform: rotate(18deg); }
.dot.d1 { top: 190px; left: 12%; background: var(--gold); }
.dot.d2 { top: 64px; left: 62%; background: var(--pink); }
.dot.d3 { bottom: 90px; right: 10%; background: var(--lime); }

.shop-header, main, .shop-footer { position: relative; z-index: 2; }
.shop-header { max-width: 1280px; margin: 0 auto; padding: 22px 24px 8px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-lockup { display: flex; align-items: center; gap: 16px; min-width: 0; text-decoration: none; color: inherit; }
.brand-mark { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #111, 0 0 0 6px var(--gold), 0 0 24px rgba(62,196,255,.55); background: #000; }
.eyebrow, .section-kicker { display: block; color: var(--blue); font-size: .72rem; letter-spacing: .16em; font-weight: 900; text-transform: uppercase; }
h1 { margin: 2px 0 0; font-size: clamp(1.8rem, 5vw, 3.15rem); line-height: .95; color: var(--white); }
.shop-header p { margin: 8px 0 0; color: var(--gold); font-weight: 800; }
.live-pill {
  background: #111;
  border: 2px solid var(--lime);
  box-shadow: 0 0 18px rgba(182,255,59,.25);
  padding: 10px 14px;
  border-radius: 999px;
  display: flex; gap: 9px; align-items: center;
  font-weight: 800; white-space: nowrap;
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(182,255,59,.18), 0 0 12px var(--lime); }
main { max-width: 1280px; margin: 0 auto; padding: 8px 24px 28px; }
.hidden { display: none !important; }

.fleet-intro { margin: 8px 0 18px; }
.fleet-intro h2 { margin: 4px 0 8px; font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--white); }
.fleet-sub { margin: 0; color: var(--muted); font-weight: 700; max-width: 42rem; }
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.printer-card {
  appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.25)), var(--panel);
  border: 2px solid #2a2a32;
  border-radius: 26px;
  overflow: hidden;
  padding: 0 0 16px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.printer-card:hover { transform: translateY(-3px); }
.printer-card.glow-print { border-color: var(--lime); box-shadow: 0 0 0 1px rgba(182,255,59,.25), 0 0 28px rgba(182,255,59,.28); }
.printer-card.glow-idle { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(255,210,74,.25), 0 0 26px rgba(255,210,74,.28); }
.printer-card.glow-error { border-color: var(--pink); box-shadow: 0 0 0 1px rgba(255,63,166,.28), 0 0 28px rgba(255,122,26,.28); }
.card-cam {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #07070a;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(62,196,255,.28), 0 0 22px rgba(255,63,166,.16);
}
.card-cam img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.card-cam img:not([src]), .card-cam img[src=""] { visibility: hidden; }
.card-cam .cam-placeholder {
  z-index: 0;
  filter: saturate(1.08) contrast(1.04);
}
.card-cam .cam-live { z-index: 1; opacity: 0; }
.card-cam .cam-live.is-live { opacity: 1; }
.card-cam-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #c9c4d8; font-weight: 800; padding: 16px; text-align: center; z-index: 2; }
.status-burst {
  display: inline-block;
  padding: 8px 14px 7px;
  font-family: "Luckiest Guy", system-ui, sans-serif;
  font-size: .82rem;
  letter-spacing: .04em;
  color: #111;
  background: var(--gold);
  clip-path: polygon(7% 18%, 18% 0, 36% 12%, 50% 0, 66% 14%, 82% 2%, 97% 20%, 100% 48%, 90% 68%, 98% 88%, 76% 100%, 56% 90%, 40% 100%, 22% 88%, 4% 100%, 0 72%, 10% 52%, 0 28%);
  text-shadow: none;
}
.printer-card .status-burst { position: absolute; top: 12px; right: 12px; z-index: 2; }
.status-burst.print { background: var(--lime); }
.status-burst.ready { background: var(--gold); }
.status-burst.error { background: var(--pink); color: #fff; }
.status-burst.offline { background: var(--orange); }
.card-body { padding: 14px 16px 0; }
.printer-card h3 { margin: 0; font-size: 1.45rem; color: var(--white); }
.card-model { margin: 2px 0 8px; color: var(--blue); font-weight: 800; font-size: .86rem; }
.card-job { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.card-stats { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 12px; color: var(--muted); font-weight: 800; }
.card-stats strong { color: var(--white); }
.card-progress-row { display: flex; gap: 12px; align-items: stretch; margin-top: 10px; }
.card-progress-row .card-stats { margin-top: 0; flex: 1; }
.card-eta strong { color: var(--lime); text-shadow: 0 0 10px rgba(182,255,59,.35); }
.card-waterline {
  width: 14px;
  flex: 0 0 14px;
  border-radius: 999px;
  background: rgba(230, 244, 255, .08);
  border: 1px solid rgba(62,196,255,.35);
  overflow: hidden;
  position: relative;
  min-height: 52px;
  box-shadow: inset 0 0 10px rgba(62,196,255,.12);
}
.card-waterline-fill {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, var(--lime), #8fd61f);
  box-shadow: 0 0 12px rgba(182,255,59,.45);
}

.detail-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 16px; }
.back-btn {
  display: inline-block;
  text-decoration: none;
  color: #111;
  background: var(--blue);
  font-family: "Luckiest Guy", system-ui, sans-serif;
  letter-spacing: .04em;
  padding: 10px 16px 8px;
  transform: rotate(-2deg);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  box-shadow: 0 6px 0 #146a96;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 18px; }
.panel-heading { padding: 18px 20px 12px; display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 1.35rem; color: var(--white); }
.mini-badge { border-radius: 999px; background: rgba(62,196,255,.16); color: var(--blue); border: 1px solid rgba(62,196,255,.4); padding: 7px 10px; font-size: .75rem; font-weight: 850; white-space: nowrap; }
.camera-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #07070a;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(62,196,255,.32), 0 0 28px rgba(182,255,59,.12), 0 0 36px rgba(62,196,255,.16);
}
.camera-stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.camera-stage img:not([src]), .camera-stage img[src=""] { visibility: hidden; }
.camera-placeholder {
  z-index: 0;
  filter: saturate(1.1) contrast(1.05);
}
.camera-placeholder.is-dismissed { opacity: 0; visibility: hidden; }
.camera-hold { z-index: 1; opacity: 0; }
.camera-hold.is-visible { opacity: 1; }
#cameraFeed { z-index: 2; opacity: 0; }
#cameraFeed.is-live { opacity: 1; }
.camera-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #dbe3ef; font-weight: 800; padding: 20px; text-align: center; z-index: 2; }
.job-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px 18px; }
.job-strip .label { display: block; font-size: .67rem; color: var(--muted); letter-spacing: .12em; font-weight: 900; }
.job-strip strong { display: block; margin-top: 3px; font-size: 1.08rem; overflow-wrap: anywhere; }
.friendly-state {
  background: var(--gold);
  color: #111;
  padding: 8px 12px 6px;
  font-family: "Luckiest Guy", system-ui, sans-serif;
  letter-spacing: .03em;
  transform: rotate(2deg);
  text-align: center;
}
.map-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.view-toggle {
  display: flex;
  background: #0d0d12;
  border: 1px solid rgba(62,196,255,.4);
  border-radius: 999px;
  overflow: hidden;
}
.view-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 12px;
  cursor: pointer;
}
.view-toggle button.is-active {
  background: var(--lime);
  color: #111;
  box-shadow: 0 0 16px rgba(182,255,59,.35);
}
.slicer-note {
  margin: 0 20px 10px;
  color: var(--gold);
  font-weight: 800;
  font-size: .82rem;
}
.map-wrap { position: relative; padding: 0 20px; }
.elev-wrap { min-height: 280px; }
#bedMap { display: block; width: 100%; max-height: 525px; position: relative; z-index: 2; }
.elev-canvas, .elev-overlay {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
}
.elev-overlay { position: absolute; left: 20px; right: 20px; top: 0; width: calc(100% - 40px); pointer-events: none; z-index: 2; }
.elev-canvas { position: relative; z-index: 1; }
.waterline { stroke: var(--lime); stroke-width: 3; stroke-dasharray: 10 8; opacity: .92; filter: drop-shadow(0 0 6px rgba(182,255,59,.7)); }
.waterline-label { fill: var(--lime); font-size: 22px; font-weight: 850; letter-spacing: .08em; }
.elev-head-block { fill: var(--orange); stroke: #fff; stroke-width: 3; }
.elev-head-tip { fill: var(--gold); stroke: #fff; stroke-width: 2; }
.elev-head.hidden { display: none; }
.part-preview {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  width: calc(100% - 40px);
  height: auto;
  max-height: 525px;
  pointer-events: none;
  z-index: 1;
}
.bed-floor { fill: #0d0d12; stroke: #3a3a46; stroke-width: 5; }
.bed-grid { stroke: #3a3a46; stroke-width: 2; opacity: .72; }
.grid-line { stroke: #3a3a46; stroke-width: 2; }
.head-trail { stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.head-halo { fill: #ffb79e; opacity: .4; }
.head-dot { fill: var(--orange); stroke: white; stroke-width: 6; }
.head-halo.idle { fill: var(--blue); opacity: .14; }
.head-dot.idle { fill: #3a3a46; stroke: #6a6a78; stroke-width: 4; opacity: .55; }
.axis-label { fill: var(--muted); font-size: 32px; font-weight: 750; letter-spacing: .05em; }
.axis-label.axis-center { text-anchor: middle; }
.map-unavailable { display: none; }
.xyz-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.xyz-row div { padding: 13px 16px; border-right: 1px solid var(--line); min-width: 0; }
.xyz-row div:last-child { border-right: 0; }
.xyz-row span { display: block; font-size: .65rem; letter-spacing: .08em; color: var(--muted); font-weight: 850; }
.xyz-row strong { display: block; margin-top: 2px; font-size: .98rem; overflow-wrap: anywhere; }
.progress-panel { margin-top: 18px; padding: 20px 22px 22px; }
.progress-copy { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.progress-number { font-size: clamp(3rem, 8vw, 5.4rem); line-height: .92; font-family: "Luckiest Guy", system-ui, sans-serif; letter-spacing: .02em; color: var(--lime); text-shadow: 0 4px 0 #000; }
.progress-number small { font-size: .42em; margin-left: 5px; color: var(--muted); font-family: Nunito, sans-serif; }
.progress-facts { display: flex; gap: 28px; flex-wrap: wrap; justify-content: flex-end; }
.progress-facts span { display: block; color: var(--muted); font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.progress-facts strong { display: block; font-size: 1.2rem; margin-top: 2px; }
.progress-facts .eta-clock strong {
  color: var(--lime);
  text-shadow: 0 0 12px rgba(182,255,59,.4);
}
.progress-track { height: 16px; background: #23232c; border-radius: 999px; margin-top: 16px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, var(--lime), var(--blue)); box-shadow: 0 0 18px rgba(182,255,59,.5); transition: width .35s ease; }
.recordings-panel { margin-top: 18px; }
.recordings-empty { padding: 8px 20px 20px; color: var(--muted); font-weight: 750; }
.recordings-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  padding: 0 20px 20px;
}
.recording-card {
  background: #0d0d12;
  border: 1px solid rgba(62,196,255,.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(182,255,59,.08);
}
.recording-card video { width: 100%; display: block; background: #07070a; max-height: 180px; }
.recording-card figcaption {
  padding: 8px 12px 10px;
  font-size: .78rem;
  font-weight: 800;
  color: var(--gold);
  overflow-wrap: anywhere;
}
.telemetry-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.tool-temps { display: contents; }
.metric-card { background: var(--panel); border: 1px solid var(--line); border-radius: 19px; padding: 17px; min-width: 0; }
.metric-card.hot { background: rgba(255,122,26,.12); border-color: rgba(255,122,26,.4); }
.card-tools { margin-top: 8px; color: var(--muted); font-size: .78rem; font-weight: 750; }
.card-tools strong { color: var(--white); }
.metric-card span { display: block; color: var(--muted); font-size: .74rem; font-weight: 800; }
.metric-card strong { display: block; margin: 5px 0 2px; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.03em; overflow-wrap: anywhere; }
.metric-card small { display: block; color: var(--muted); font-weight: 650; overflow-wrap: anywhere; }
.advanced-panel { margin-top: 18px; }
.advanced-panel summary { list-style: none; cursor: pointer; min-height: 68px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.advanced-panel summary::-webkit-details-marker { display: none; }
.advanced-panel summary strong { display: block; margin-top: 2px; font-size: 1.05rem; }
.summary-note { color: var(--muted); font-size: .77rem; font-weight: 700; text-align: right; }
.telemetry-tools { border-top: 1px solid var(--line); padding: 14px 20px; display: flex; align-items: center; gap: 12px; }
.telemetry-tools label { font-size: .82rem; font-weight: 800; }
.telemetry-tools input { flex: 1; min-height: 42px; border: 1px solid #3a3a46; border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 16px; background: #0d0d12; color: var(--ink); }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 13px; border-bottom: 1px solid #26262e; }
th { background: #101014; color: var(--muted); position: sticky; top: 0; }
td:first-child { font-weight: 750; width: 42%; }
td:last-child { overflow-wrap: anywhere; }

.shop-footer { max-width: 1280px; margin: 0 auto 18px; padding: 0 24px 28px; }
.footer-icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  background: var(--blue);
  color: #fff;
  border-radius: 18px;
  padding: 16px 12px;
}
.footer-icons div { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 800; font-size: .82rem; }
.footer-icons svg { width: 34px; height: 34px; stroke: #fff; stroke-width: 2.4; fill: none; }
.shop-footer p { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: .82rem; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .telemetry-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .shop-header, main, .shop-footer { padding-left: 14px; padding-right: 14px; }
  .shop-header { align-items: flex-start; }
  .brand-mark { width: 68px; height: 68px; }
  .shop-header p { display: none; }
  .live-pill { padding: 8px 10px; font-size: .76rem; }
  .fleet-grid { grid-template-columns: 1fr; }
  .job-strip, .progress-copy { align-items: flex-start; flex-direction: column; }
  .progress-facts { justify-content: flex-start; gap: 18px; }
  .telemetry-grid { grid-template-columns: repeat(2, 1fr); }
  .xyz-row { grid-template-columns: repeat(2, 1fr); }
  .xyz-row div:nth-child(2) { border-right: 0; }
  .xyz-row div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .advanced-panel summary { align-items: flex-start; flex-direction: column; }
  .summary-note { text-align: left; }
  .telemetry-tools { align-items: stretch; flex-direction: column; }
  .footer-icons { grid-template-columns: 1fr; }
}
@media (max-width: 410px) {
  .telemetry-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
