@font-face {
  font-family: "Bebas Neue";
  src: url("/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Quantico;
  src: url("/fonts/Quantico-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Quantico;
  src: url("/fonts/Quantico-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --bg-2: #101012;
  --surface: rgba(20, 20, 22, 0.86);
  --surface-solid: #141416;
  --surface-2: #1a1a1d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f6;
  --muted: #a3a3ab;
  --faint: #6e6e76;
  --lime: #91dc1f;
  --lime-ink: #0b0b0c;
  --danger: #ff5d5d;
  --ok: #91dc1f;
  --display: "Bebas Neue", Impact, sans-serif;
  --ui: Quantico, "Avenir Next", "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --pad: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.ms {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(145, 220, 31, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--lime-ink); }

.ms-auth {
  min-height: 100vh;
  display: grid;
  align-items: stretch;
}
.ms-auth-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
  display: grid;
  gap: 28px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark img { width: 40px; height: 40px; object-fit: contain; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.brand-mark span {
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 22px;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(56px, 12vw, 92px);
  line-height: 0.86;
  letter-spacing: 0.01em;
  margin: 12px 0 10px;
}
.lede { color: var(--muted); margin: 0; max-width: 38ch; }
.kicker {
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 22px;
}
label.field {
  display: grid;
  gap: 8px;
  margin: 16px 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
input[type="email"], input[type="text"], textarea {
  width: 100%;
  background: #0e0e10;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px 16px;
  letter-spacing: 0;
  text-transform: none;
  font-size: 16px;
}
textarea { min-height: 96px; resize: vertical; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--lime);
  color: var(--lime-ink);
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 13px;
}
.btn.full { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn.quiet { background: transparent; color: var(--muted); padding: 8px 0; }
.fine { color: var(--faint); font-size: 13px; }
.gym-fold { margin-top: 8px; }
.gym-fold summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
}
.gym-fold .glass { margin-top: 12px; box-shadow: none; }

.ms-app {
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ms-col {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.ms-rail { display: none; }
.ms-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
}
.ms-main {
  padding: 8px 20px 28px;
  width: min(820px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  align-content: start;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(145, 220, 31, 0.35);
  background: rgba(145, 220, 31, 0.08);
  color: var(--lime);
  border-radius: 999px;
  padding: 6px 10px 6px 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge img { width: 22px; height: 22px; border-radius: 50%; }
.badge.earned { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.account { position: relative; }
.account summary { list-style: none; cursor: pointer; color: var(--muted); font-size: 14px; }
.account summary::-webkit-details-marker { display: none; }
.account form { margin: 8px 0 0; }

.preview-note {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.test-pill {
  display: block;
  width: fit-content;
  margin: 0 0 8px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: 11px;
  line-height: 1.3;
  padding: 3px 8px;
  border-radius: 999px;
}
.hero-cta { margin: 14px 0 0; }

.stage-hero { display: grid; gap: 18px; margin: 0; }
.stage-row { display: flex; gap: 16px; align-items: center; }
.ring-wrap { position: relative; width: 116px; height: 116px; flex: none; }
.ring { width: 116px; height: 116px; display: block; }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: rgba(255,255,255,0.08); }
.ring .value {
  stroke: var(--lime);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  stroke-dasharray: 327;
  stroke-dashoffset: calc(327 * (1 - var(--p)));
  filter: drop-shadow(0 0 6px rgba(145, 220, 31, 0.45));
  animation: draw 0.9s ease both;
}
.ring-readout {
  position: absolute;
  inset: 22px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 2px;
  animation: rise 0.6s ease 0.15s both;
}
.ring-readout b {
  font-family: var(--display);
  font-size: 28px;
  line-height: 0.9;
  letter-spacing: 0.04em;
}
.ring-readout span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  max-width: 68px;
}
.hello {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.04em;
  margin: 10px 0 0;
}
.stage-copy h1 {
  font-family: var(--display);
  font-size: clamp(42px, 10vw, 68px);
  line-height: 0.9;
  margin: 4px 0 8px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 5px;
  height: 2px;
  background: #2a2a2e;
}
.timeline li {
  display: grid;
  justify-items: center;
  text-align: center;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.15;
  position: relative;
  padding: 0;
  z-index: 1;
}
.timeline li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2a2e;
  border: 2px solid #3a3a40;
  margin: 0 auto 6px;
}
.timeline li.done { color: var(--text); }
.timeline li.done::before {
  background: var(--lime);
  border-color: var(--lime);
  animation: pop 0.45s ease both;
}
.timeline li.now { color: var(--text); font-weight: 700; }
.timeline li.now::before {
  background: var(--bg);
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(145, 220, 31, 0.18);
  animation: pulse 1.8s ease infinite;
}
.action {
  margin: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  background:
    radial-gradient(480px 200px at 100% 0%, rgba(145, 220, 31, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%),
    var(--surface);
  border-color: rgba(145, 220, 31, 0.32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32), 0 0 28px rgba(145, 220, 31, 0.08);
}
.action-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(145, 220, 31, 0.12);
  color: var(--lime);
}
.action-mark svg { width: 22px; height: 22px; }
.action-body { display: grid; gap: 10px; }
.action.solo { grid-template-columns: 1fr; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
}
.action h2 {
  font-family: var(--display);
  font-size: 32px;
  margin: 0;
  letter-spacing: 0.02em;
}
.steps { margin: 0; padding-left: 18px; color: var(--muted); }
.steps li { margin: 6px 0; }
.quiet-links { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; }
.quiet-links a { color: var(--muted); font-size: 14px; border-bottom: 1px solid transparent; }
.quiet-links a:hover { color: var(--text); border-color: var(--line-strong); }

.order-list { display: grid; gap: 12px; margin: 0; }
.order-mini {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1b1b1f, #141416);
  border: 1px solid var(--line);
}
.order-mini.primary {
  background:
    linear-gradient(180deg, rgba(145, 220, 31, 0.1), transparent 46%),
    #161618;
  border-color: rgba(145, 220, 31, 0.28);
  box-shadow: 0 0 24px rgba(145, 220, 31, 0.05);
}
.order-mini strong { font-size: 14px; }
.order-mini span { color: var(--muted); font-size: 13px; }

.chat { display: grid; gap: 10px; }
.bubble {
  max-width: 92%;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.bubble.me { margin-left: auto; background: rgba(145, 220, 31, 0.12); border-color: rgba(145, 220, 31, 0.28); }
.bubble .who { color: var(--faint); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 6px; }

.guide { display: grid; gap: 12px; }
.guide h2 { font-family: var(--display); font-size: 28px; letter-spacing: 0.03em; margin: 0 0 6px; }
.guide article { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
input[type="file"] { color: var(--muted); font-size: 14px; letter-spacing: 0; text-transform: none; }
.card { margin: 8px 0 0; }
.card ul, .card p { color: var(--muted); }
.order-mini .btn { margin: 8px 8px 0 0; }
.num {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(145, 220, 31, 0.12);
  color: var(--lime);
  font-family: var(--display);
  font-size: 20px;
}
.timer {
  font-family: var(--display);
  font-size: clamp(72px, 18vw, 112px);
  letter-spacing: 0.04em;
  line-height: 0.85;
  margin: 4px 0 0;
}
.checkline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}
.coach-prep.action { grid-template-columns: 1fr; }
.coach-prep p { margin: 0; color: var(--muted); }
[data-coach] .hero-title { font-size: clamp(40px, 10vw, 64px); margin-bottom: 0; }
.coach-stage {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #101012;
  aspect-ratio: 16 / 10;
  max-height: 230px;
  border: 1px solid rgba(145, 220, 31, 0.28);
  box-shadow: 0 0 28px rgba(145, 220, 31, 0.08);
}
.coach-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b0b0c;
}
.coach-box {
  position: absolute;
  inset: 14% 12%;
  border: 2px solid rgba(145, 220, 31, 0.85);
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.coach-live-hint {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.78);
  color: var(--text);
  font-size: 13px;
  text-align: center;
}
.coach-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cue-card {
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(145, 220, 31, 0.16), transparent 55%),
    var(--surface);
  border-color: rgba(145, 220, 31, 0.28);
}
[data-coach-panel] { display: grid; gap: 14px; }
[data-coach-panel][hidden] { display: none; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 8px 0 0; }
.verdict-pass { border-color: rgba(145, 220, 31, 0.5); }
.verdict-retake { border-color: rgba(255, 93, 93, 0.55); }

.ms-tabs {
  position: relative;
  flex: none;
  margin: 8px 12px calc(12px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(16, 16, 18, 0.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  padding: 6px;
  z-index: 5;
}
.ms-tabs a {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 0 6px;
  border-radius: 14px;
}
.ms-tabs a[aria-current="page"],
.ms-rail a.navlink[aria-current="page"] { color: var(--lime-ink); background: var(--lime); }
.navlink.is-disabled {
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: 0.38;
  pointer-events: none;
  color: var(--faint);
  padding: 12px;
}
.partner .hero-title { font-size: clamp(44px, 11vw, 80px); }
.partner .timeline { grid-template-columns: repeat(7, 1fr); }
.athlete-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.athlete-switch a {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
}
.athlete-switch a[aria-current="page"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.ms-main.viewer-page {
  width: 100%;
  max-width: none;
  padding: 8px 0 12px;
  gap: 10px;
}
.viewer-page .chip-row,
.viewer-page .kicker,
.viewer-page .hero-title,
.viewer-page .lede,
.viewer-page .viewer-tools,
.viewer-page .preview-note,
.viewer-page .origin-line {
  padding-left: 20px;
  padding-right: 20px;
}
.viewer-page .hero-title { font-size: clamp(42px, 8vw, 72px); margin: 0; }
.ms-main.viewer-page > p.fine { padding-left: 20px; padding-right: 20px; margin: 0; }
.viewer-stage {
  height: calc(100dvh - 300px);
  min-height: 460px;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  border-top: 1px solid rgba(145, 220, 31, 0.28);
  border-bottom: 1px solid rgba(145, 220, 31, 0.28);
  box-shadow: inset 0 0 80px rgba(145, 220, 31, 0.08);
  background: #0b0b0c;
}
.viewer-stage canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.viewer-tools, .arch-toggle { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.partner .ms-tabs { grid-template-columns: repeat(5, 1fr); }
.partner .ms-tabs .navlink {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 0 6px;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.partner .ms-tabs .navlink.is-disabled { padding: 8px 2px 6px; }
.metric-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.metric span { color: var(--faint); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.metric b { display: block; font-family: var(--display); font-size: 36px; line-height: 1; margin-top: 4px; }
.section-title { font-family: var(--display); font-size: 28px; margin: 8px 0; letter-spacing: 0.03em; }
.trend { display: flex; align-items: flex-end; gap: 8px; height: 84px; }
.trend div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.trend i { display: block; width: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--lime), rgba(145, 220, 31, 0.35)); }
.trend em { font-style: normal; font-size: 10px; color: var(--faint); }
select {
  width: 100%;
  background: #0e0e10;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
}
.athlete-card h2 { font-family: var(--display); font-size: 32px; margin: 0 0 4px; }
a.order-mini { color: inherit; }
.ms-tabs svg { width: 20px; height: 20px; }

.origin-line { color: var(--faint); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 4px 0 0; }

@keyframes pulse {
  50% { box-shadow: 0 0 0 7px rgba(145, 220, 31, 0); }
}
@keyframes pop {
  from { transform: scale(0.2); }
  to { transform: scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw {
  from { stroke-dashoffset: 327; }
  to { stroke-dashoffset: calc(327 * (1 - var(--p))); }
}
.stage-hero, .glass { animation: rise 0.45s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 960px) {
  .ms-auth-grid { grid-template-columns: 1.1fr 0.9fr; align-items: end; min-height: 100vh; padding-bottom: 64px; }
  .ms-app { flex-direction: row; align-items: stretch; }
  .ms-rail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px 18px;
    border-right: 1px solid var(--line);
    background: rgba(10, 10, 12, 0.9);
    position: sticky;
    top: 0;
    height: 100vh;
  }
  .ms-rail .brand-mark { margin-bottom: 18px; }
  .ms-rail .brand-mark span { display: none; }
  .ms-rail .brand-mark img { width: 168px; height: auto; }
  .ms-rail a.navlink {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 12px;
    border-radius: 12px;
    color: var(--muted);
  }
  .ms-rail a.navlink[aria-current="page"] { background: rgba(145, 220, 31, 0.12); color: var(--lime); }
  .ms-tabs { display: none; }
  .metric-row { grid-template-columns: repeat(4, 1fr); }
  .ms-main { padding: 28px 40px 64px; }
  .timeline li { font-size: 12px; }
}

.model-credits { padding: 4px 20px 0; margin: 0; font-size: 12px; }
.model-credits summary { cursor: pointer; list-style: none; opacity: 0.75; }
.model-credits summary::-webkit-details-marker { display: none; }
.model-credits summary::before { content: "ⓘ "; }
.model-credits p { margin: 6px 0 0; }
.model-credits a { color: inherit; }

/* Guard designer (/demo/design) */
.design-stage { position: relative; height: clamp(320px, 46dvh, 560px); min-height: 0; background: radial-gradient(120% 90% at 50% 38%, #1b1d1a 0%, #0f100f 55%, #0b0b0c 100%); }
.design-summary { position: absolute; left: 20px; right: 20px; bottom: 12px; margin: 0; font: 400 22px/1 var(--display); letter-spacing: 0.04em; color: var(--text); opacity: 0.85; pointer-events: none; }
.design-controls { display: grid; gap: 14px; padding: 4px 20px 0; }
.design-row { display: grid; gap: 8px; }
.design-row[hidden] { display: none; }
.design-label { margin: 0; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: 400 13px/1 var(--ui); cursor: pointer; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), inset 0 -4px 8px rgba(0,0,0,0.25), inset 0 3px 6px rgba(255,255,255,0.25); }
.swatch.none i { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(255,255,255,0.18) 5px 6px); }
.swatch[aria-pressed="true"] { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.seg { display: flex; gap: 8px; }
.seg .btn[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.design-input { width: 100%; max-width: 320px; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: 400 22px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.design-input:focus { outline: none; border-color: var(--lime); }
.design-controls .fine { margin: 0; }

/* Official designs: compact link + modal (replaces the inline Energy Collection grid) */
.design-catalog-row { gap: 4px; }
.design-catalog-link {
  justify-self: start;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #91dc1f;
  font: 400 26px/1.15 var(--display);
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1.5px;
  cursor: pointer;
}
.design-catalog-link:hover { color: #b6f04a; }
.design-catalog-now {
  margin: 0;
  font: 400 12px/1.3 var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
body.ms.designs-open { overflow: hidden; }
.designs-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
}
.designs-modal[hidden] { display: none; }
.designs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
}
.designs-sheet {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(88dvh, 820px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px 28px;
  border-radius: 22px 22px 0 0;
  background: #040404;
  border: 1px solid rgba(145, 220, 31, 0.28);
  border-bottom: 0;
  box-shadow: 0 -16px 60px rgba(0, 0, 0, 0.55);
}
.designs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}
.designs-head h2 {
  margin: 0;
  font: 400 32px/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f5f5f6;
}
.designs-close {
  appearance: none;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(145, 220, 31, 0.45);
  background: transparent;
  color: #91dc1f;
  font: 700 11px/1 var(--ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.designs-close:hover { background: #91dc1f; color: #040404; }
.decals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.decal {
  display: grid;
  gap: 5px;
  padding: 4px 4px 8px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #121212;
  color: var(--text);
  font: 400 12px/1.1 var(--ui);
  cursor: pointer;
  text-align: center;
}
.decal i {
  display: block;
  aspect-ratio: 3/1;
  border-radius: 8px;
  background: #040404 center/cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.decal.none i { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(255,255,255,.18) 5px 6px); }
.decal[aria-pressed="true"] { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
@media (min-width: 520px) {
  .decals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 700px) {
  .designs-modal { place-items: center; }
  .designs-sheet {
    border-radius: 22px;
    border-bottom: 1px solid rgba(145, 220, 31, 0.28);
    max-height: min(80dvh, 760px);
    padding: 22px 22px 26px;
  }
}
@media (max-width: 959px) {
  .ms-main.design-page { overflow-x: hidden; padding-bottom: 12px; }
  .design-page .hero-title { font-size: clamp(36px, 10vw, 48px); }
  .design-page > .design-stage,
  .design-page .design-stage {
    width: 100%;
    max-width: 100%;
    height: clamp(200px, 28dvh, 280px);
    min-height: 0;
  }
}
@media (min-width: 960px) {
  .ms-main.design-page { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); column-gap: 28px; align-content: start; }
  .design-page > * { grid-column: 1 / -1; }
  .design-page > .design-stage { grid-column: 1; grid-row: span 3; height: min(70dvh, 640px); border: 1px solid rgba(145, 220, 31, 0.28); border-radius: var(--radius); }
  .design-page > .design-controls { grid-column: 2; align-self: start; padding: 0; }
}
.design-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.design-check input { width: 18px; height: 18px; accent-color: var(--lime); }

/* Exploded view (/demo/explode, x31): prerendered frames on #040404, Bebas + Quantico, lime as a small accent only */
body:has(.xv-page), .ms-main.xv-page { background: #040404; }
.ms-main.xv-page { max-width: 1080px; padding: 28px 0 40px; display: grid; gap: 0; justify-items: center; background: #040404; }
.xv-head { width: 100%; box-sizing: border-box; padding: 8px 24px 0; text-align: center; display: grid; gap: 10px; justify-items: center; }
.xv-kicker { margin: 0; font: 700 11px/1 var(--ui); letter-spacing: 0.22em; text-transform: uppercase; color: #8d8d95; }
.xv-title { margin: 0; font: 400 clamp(44px, 8vw, 76px)/0.95 var(--display); letter-spacing: 0.015em; text-transform: uppercase; color: #f5f5f6; }
.xv-title span { color: #91dc1f; }
.xv-sub { margin: 0; max-width: 32ch; font: 400 14px/1.55 var(--ui); color: #9a9aa2; }
.xv-stage { position: relative; margin: 18px 0 0; width: min(100%, 560px); aspect-ratio: 900 / 1120; max-height: calc(100dvh - 230px); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xv-stage canvas { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .7s ease;
  -webkit-mask-image: radial-gradient(ellipse 64% 62% at 50% 48%, #000 76%, transparent 100%); mask-image: radial-gradient(ellipse 64% 62% at 50% 48%, #000 76%, transparent 100%); }
.xv-stage.is-ready canvas { opacity: 1; }
.xv-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.xv-leader { fill: none; stroke: rgba(245, 245, 246, 0.55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.xv-dot { fill: #f5f5f6; }
.xv-tags { position: absolute; inset: 0; pointer-events: none; }
.xv-tag { position: absolute; left: 0; top: 0; margin: 0; display: grid; gap: 5px; max-width: 150px; will-change: transform; }
.xv-tag[data-side="right"] { text-align: right; }
.xv-tag b { font: 400 20px/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; color: #f5f5f6; font-weight: 400; }
.xv-tag span { font: 400 11px/1 var(--ui); letter-spacing: 0.1em; text-transform: uppercase; color: #8d8d95; }
.xv-tag, .xv-leader, .xv-dot { opacity: 0; transition: opacity .18s ease; }
.xv-stage.is-tagged .xv-tag, .xv-stage.is-tagged .xv-leader, .xv-stage.is-tagged .xv-dot { opacity: 1; transition: opacity .5s ease; }
.xv-stage.is-tagged .xv-tag:nth-child(2), .xv-stage.is-tagged .xv-leader:nth-of-type(2) { transition-delay: .08s; }
.xv-stage.is-tagged .xv-tag:nth-child(3), .xv-stage.is-tagged .xv-leader:nth-of-type(3) { transition-delay: .16s; }
.xv-toggle { position: absolute; left: 50%; bottom: 3.5%; transform: translateX(-50%); z-index: 2; margin: 0; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(20, 20, 22, 0.72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); width: 248px; cursor: default; }
.xv-toggle button { position: relative; z-index: 1; height: 38px; border: 0; background: none; border-radius: 999px; cursor: pointer; font: 700 11px/1 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: #8d8d95; transition: color .35s ease; }
.xv-toggle button[aria-pressed="true"] { color: #040404; }
.xv-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #f5f5f6; transition: transform .45s cubic-bezier(.65, 0, .35, 1); }
.xv-toggle button[data-xv="1"][aria-pressed="true"] ~ .xv-pill { transform: translateX(100%); }
.xv-credits { margin-top: 20px; padding: 0 24px; color: #5e5e66; font-size: 11px; }
@media (max-width: 639px) {
  .ms-main.xv-page { padding-top: 18px; }
  .xv-title { font-size: 46px; }
  .xv-sub { display: none; }
  .xv-head { gap: 8px; }
  .xv-stage { margin-top: 0; width: 100%; max-height: calc(100dvh - 250px); }
  .xv-tag { max-width: 84px; }
  .xv-tag b { font-size: 16px; line-height: 0.95; }
  .xv-tag span { font-size: 9px; letter-spacing: 0.08em; }
  .xv-toggle { width: 224px; }
  .xv-toggle button { height: 34px; }
}
