@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Sans+SC:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --ink: #11110f;
  --paper: #f2f0e9;
  --line: rgba(17, 17, 15, 0.13);
  --muted: rgba(17, 17, 15, 0.45);
  --accent: #ff6920;
  --accent-soft: #ffd4bc;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-zh: "Noto Sans SC", "PingFang SC", sans-serif;
  --font-display: "Outfit", "Noto Sans SC", sans-serif;
  --font-mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-zh);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
label:has(+ input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ambient,
.ambient::before,
.ambient::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient {
  overflow: hidden;
  z-index: 0;
  background:
    radial-gradient(circle at 51% 50%, rgba(255, 255, 255, 0.94) 0 18%, transparent 48%),
    linear-gradient(135deg, #f3f1ea, #eceae3);
}

.ambient::before {
  content: "";
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 15, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
}

.ambient::after {
  content: "";
  background: linear-gradient(90deg, transparent 0 49.95%, rgba(17, 17, 15, 0.05) 50%, transparent 50.05%);
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.8;
  transition: background 800ms var(--ease), transform 1200ms var(--ease);
}

.orb-one {
  width: 28vw;
  height: 28vw;
  top: -15vw;
  right: 2vw;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.orb-two {
  width: 22vw;
  height: 22vw;
  bottom: -12vw;
  left: 23vw;
  background: color-mix(in srgb, var(--accent-soft) 40%, transparent);
}

.grain {
  position: absolute;
  inset: -100%;
  opacity: 0.055;
  animation: grain 9s steps(10) infinite;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(3%, -2%); }
  40% { transform: translate(-2%, 3%); }
  60% { transform: translate(2%, 2%); }
  80% { transform: translate(-3%, -1%); }
}

.showcase-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr) 58px;
  width: 100vw;
  height: 100vh;
  min-height: 680px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(24px, 3.2vw, 56px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 112px;
  height: auto;
}

.project-meta,
.top-actions,
.live-status {
  display: flex;
  align-items: center;
}

.project-meta {
  gap: 13px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.project-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.top-actions {
  justify-content: flex-end;
  gap: 22px;
}

.live-status {
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.live-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3dbb68;
  box-shadow: 0 0 0 4px rgba(61, 187, 104, 0.12);
  animation: breathe 2.4s ease-in-out infinite;
}

@keyframes breathe {
  50% { box-shadow: 0 0 0 7px rgba(61, 187, 104, 0); }
}

.icon-button,
.stage-arrow,
.overview-close {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 250ms ease, transform 250ms ease;
}

.icon-button:hover { background: white; transform: rotate(4deg); }
.icon-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.viewer {
  display: grid;
  grid-template-columns: minmax(190px, 18.5vw) minmax(520px, 1fr) minmax(270px, 22vw);
  min-height: 0;
}

.version-nav,
.details-panel {
  position: relative;
  z-index: 3;
  min-height: 0;
  padding: clamp(34px, 5vh, 64px) clamp(24px, 3vw, 50px) 28px;
  background: rgba(242, 240, 233, 0.5);
  backdrop-filter: blur(18px);
}

.version-nav {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.version-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 4vh, 42px);
  margin: 12px 0;
}

.version-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  text-align: left;
  background: transparent;
  opacity: 0.36;
  cursor: pointer;
  transition: opacity 300ms ease, transform 500ms var(--ease);
}

.version-item:hover { opacity: 0.72; transform: translateX(3px); }
.version-item.active { opacity: 1; }

.version-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: calc(-1 * clamp(24px, 3vw, 50px));
  width: 0;
  height: 18px;
  border-radius: 0 99px 99px 0;
  background: var(--accent);
  transition: width 500ms var(--ease), background 600ms var(--ease);
}

.version-item.active::before { width: 5px; }

.version-index {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
}

.version-text strong,
.version-text span {
  display: block;
}

.version-text strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.version-text span {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.nav-foot {
  display: grid;
  gap: 10px;
}

.progress-track {
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.progress-track i {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--accent);
  transition: width 700ms var(--ease), background 600ms var(--ease);
}

.nav-foot > span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}

.nav-foot b {
  color: var(--ink);
  font-weight: 500;
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.23) 50%),
    radial-gradient(circle at 68% 50%, color-mix(in srgb, var(--accent-soft) 22%, transparent), transparent 32%);
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 10px;
  height: 10px;
  opacity: 0.35;
  border: solid var(--ink);
}

.stage::before { top: 22px; left: 22px; border-width: 1px 0 0 1px; }
.stage::after { right: 22px; bottom: 22px; border-width: 0 1px 1px 0; }

.phone-scene {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  perspective: 1300px;
  touch-action: pan-y;
}

.scene-number {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  font-family: var(--font-display);
  font-size: clamp(200px, 30vw, 430px);
  font-weight: 600;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(17, 17, 15, 0.06);
  transform: translate(-50%, -50%);
  user-select: none;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  transition: border-color 600ms ease;
}

.orbit-one { width: min(32vw, 490px); height: min(32vw, 490px); }
.orbit-two { width: min(25vw, 380px); height: min(41vw, 620px); transform: translate(-50%, -50%) rotate(31deg); }

.phone {
  position: relative;
  width: auto;
  height: min(calc(100% - 24px), 732px);
  aspect-ratio: 375 / 812;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: clamp(29px, 4vh, 38px);
  background: #171717;
  box-shadow:
    0 46px 55px rgba(25, 20, 14, 0.22),
    0 13px 24px rgba(25, 20, 14, 0.17),
    inset 0 0 0 1px rgba(255,255,255,.12);
  transform: translateY(0);
  transition: transform 650ms var(--ease), opacity 300ms ease;
  animation: phone-in 900ms var(--ease) both;
}

.phone:hover { transform: translateY(-5px); }

@keyframes phone-in {
  from { opacity: 0; transform: translateY(38px) scale(0.94); }
}

.phone.is-switching { opacity: 0; transform: translateY(18px) scale(.96); }

.phone-shadow {
  position: absolute;
  top: calc(50% + min(40vh, 360px));
  left: 50%;
  width: min(29vw, 360px);
  height: 34px;
  border-radius: 50%;
  background: rgba(17, 17, 15, 0.16);
  filter: blur(19px);
  transform: translate(-50%, -50%);
}

.phone-island {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 8;
  width: 37%;
  height: 19px;
  border-radius: 99px;
  background: #050505;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: clamp(24px, 3.4vh, 32px);
  background: #f8f8f8;
}

.phone-shine {
  position: absolute;
  inset: 6px;
  z-index: 10;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.18), transparent 18% 74%, rgba(255,255,255,.08));
  mix-blend-mode: screen;
}

.stage-arrow {
  position: absolute;
  top: 50%;
  z-index: 12;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 250ms ease, background 250ms ease, transform 250ms ease;
}

.phone-scene:hover .stage-arrow,
.stage-arrow:focus-visible { opacity: 1; }
.stage-arrow:hover { background: white; }
.stage-prev { left: 4%; }
.stage-next { right: 4%; }
.stage-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.stage-hint {
  position: absolute;
  right: 26px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stage-hint i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }

.details-panel {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

.details-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.version-code {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted);
}

.detail-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.detail-main h2 {
  max-width: 9em;
  margin: 0 0 18px;
  font-size: clamp(1.25rem, calc(2vw - 0.125rem), 1.875rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.05em;
}

.detail-main > p {
  max-width: 28em;
  margin: 0;
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted);
}

.palette-block {
  margin-top: clamp(28px, 4.5vh, 46px);
}

.palette-block > span {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 500;
}

.palette {
  display: flex;
  height: 23px;
}

.palette button {
  position: relative;
  width: 23px;
  margin-left: -4px;
  padding: 0;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
  transition: transform 250ms var(--ease);
}

.palette button:first-child { margin-left: 0; }
.palette button:hover { z-index: 2; transform: translateY(-4px); }

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.keywords span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 9px;
  color: var(--muted);
}

.detail-actions {
  display: grid;
  gap: 9px;
}

.upload-button,
.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 250ms var(--ease), box-shadow 250ms ease, background 250ms ease;
}

.upload-button {
  color: white;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.play-button {
  border: 1px solid var(--line);
  background: transparent;
}

.upload-button:hover,
.play-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(17,17,15,.09); }
.play-button:hover { background: rgba(255,255,255,.55); }
.upload-button svg,
.play-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.play-button svg { fill: currentColor; stroke-linejoin: round; }
.play-button.is-playing svg { fill: none; }

.footer-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(24px, 3.2vw, 56px);
  border-top: 1px solid var(--line);
}

.overview-button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  padding: 0;
  border: 0;
  font-size: 10px;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
}

.overview-button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.footer-bar p { margin: 0; font-size: 9px; color: var(--muted); }

.keyboard-hints {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

kbd {
  display: grid;
  place-items: center;
  width: 24px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  box-shadow: inset 0 -2px 0 rgba(17,17,15,.05);
}

/* In-phone shared UI */
.app-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding-top: 34px;
  overflow: hidden;
  font-family: var(--font-zh);
  color: var(--app-ink);
  background: var(--app-bg);
}

.app-status {
  position: absolute;
  top: 11px;
  left: 18px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  width: calc(100% - 36px);
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: 600;
  color: inherit;
}

.app-status span:last-child { letter-spacing: .08em; }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 5px;
}

.app-brand-logo {
  display: block;
  width: 59px;
  height: auto;
}

.app-avatar,
.app-icon-button {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.app-avatar { width: 22px; height: 22px; font-size: 8px; font-weight: 700; }
.app-icon-button { width: 22px; height: 22px; border: 1px solid var(--app-line); }
.app-icon-button svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.app-content {
  flex: 1;
  padding: 10px 14px 64px;
  overflow: hidden;
}

.app-kicker {
  margin: 0 0 5px;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: .11em;
  text-transform: uppercase;
  opacity: .5;
}

.app-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.055em;
}

.app-title em { color: var(--app-accent); font-style: normal; }

.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 31px;
  margin-top: 13px;
  padding: 0 10px;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius-sm);
  font-size: 7px;
  opacity: .9;
}

.search-box svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; opacity: .5; }

.app-filters { display: flex; gap: 5px; margin: 9px 0 12px; }
.app-filter { padding: 5px 8px; border: 1px solid var(--app-line); border-radius: 99px; font-size: 6px; }
.app-filter.active { color: var(--app-accent-ink); border-color: var(--app-accent); background: var(--app-accent); }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 9px 0 7px; }
.section-head strong { font-size: 9px; }
.section-head span { font-size: 6px; opacity: .45; }

.recipe-list { display: grid; gap: 7px; }
.recipe-card { position: relative; padding: 10px; border: 1px solid var(--app-line); border-radius: var(--app-radius); background: var(--app-card); box-shadow: var(--app-shadow); }
.recipe-top { display: flex; gap: 8px; align-items: center; }
.company-logo { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border-radius: 8px; color: white; font-family: var(--font-display); font-size: 8px; font-weight: 700; background: var(--logo); }
.recipe-name { flex: 1; min-width: 0; }
.recipe-name strong, .recipe-name span { display: block; }
.recipe-name strong { font-size: 8px; }
.recipe-name span { margin-top: 2px; overflow: hidden; font-size: 5.5px; white-space: nowrap; text-overflow: ellipsis; opacity: .45; }
.parameter { align-self: flex-start; font-family: var(--font-display); font-size: 7px; font-weight: 700; color: var(--app-accent); }
.recipe-tags { display: flex; gap: 4px; margin-top: 8px; }
.recipe-tags span { padding: 3px 5px; border-radius: 4px; font-size: 5px; background: var(--app-soft); }

.hero-card {
  position: relative;
  min-height: 92px;
  margin: 11px 0 13px;
  padding: 13px;
  overflow: hidden;
  border-radius: var(--app-radius);
  color: var(--hero-ink);
  background: var(--hero-bg);
}

.hero-card::after { content: ""; position: absolute; right: -13px; bottom: -22px; width: 82px; height: 82px; border: 1px solid currentColor; border-radius: 50%; opacity: .16; }
.hero-card p { margin: 0 0 5px; font-size: 6px; opacity: .65; }
.hero-card h3 { max-width: 8em; margin: 0; font-size: 13px; line-height: 1.35; }
.hero-card button { position: absolute; left: 13px; bottom: 12px; padding: 5px 8px; border: 0; border-radius: 99px; color: var(--button-ink); font-size: 5.5px; font-weight: 700; background: var(--button-bg); }
.hero-art { position: absolute; right: 12px; top: 20px; width: 60px; height: 60px; }
.hero-art i { position: absolute; border-radius: 50%; background: currentColor; }
.hero-art i:nth-child(1) { width: 42px; height: 42px; right: 0; opacity: .16; }
.hero-art i:nth-child(2) { width: 25px; height: 25px; top: 25px; left: 0; opacity: .3; }
.hero-art i:nth-child(3) { width: 14px; height: 14px; right: 8px; bottom: 0; opacity: .55; }

.app-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 53px;
  border-top: 1px solid var(--app-line);
  background: color-mix(in srgb, var(--app-bg) 92%, transparent);
  backdrop-filter: blur(12px);
}

.app-nav span { display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; font-size: 5px; opacity: .36; }
.app-nav span.active { color: var(--app-accent); opacity: 1; }
.app-nav svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.uploaded-design { width: 100%; height: 100%; object-fit: cover; object-position: top center; background: white; }
.uploaded-badge { position: absolute; z-index: 12; left: 50%; bottom: 12px; padding: 5px 8px; border-radius: 99px; color: white; font-size: 6px; white-space: nowrap; background: rgba(0,0,0,.66); backdrop-filter: blur(8px); transform: translateX(-50%); }

.reference-image-preview {
  padding-top: 0;
  background: #0e151d;
}

.reference-image-preview .uploaded-design {
  object-fit: cover;
  object-position: center;
}

.html-swipe-preview {
  position: relative;
  isolation: isolate;
  padding: 0;
  touch-action: none;
  background: #131316;
}

.html-swipe-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #131316;
  pointer-events: none;
  opacity: 0;
  contain: strict;
  transition: opacity 560ms cubic-bezier(.25, 1, .5, 1);
  will-change: opacity;
}

.html-swipe-primary {
  z-index: 3;
  opacity: 1;
}

.html-swipe-secondary {
  z-index: 2;
}

.html-swipe-preview.is-secondary .html-swipe-primary {
  z-index: 2;
  opacity: 0;
}

.html-swipe-preview.is-secondary .html-swipe-secondary {
  z-index: 3;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .html-swipe-frame { transition-duration: 1ms; }
}

.phone.reference-image-device {
  aspect-ratio: 382 / 812;
}

.phone.reference-image-device .phone-island,
.phone.reference-image-device .phone-shine {
  display: none;
}

.embedded-preview {
  position: relative;
  padding-top: 0;
  background: #131316;
}

.embedded-design {
  display: block;
  position: absolute;
  width: 375px;
  height: 812px;
  max-width: none;
  max-height: none;
  border: 0;
  background: #131316;
  pointer-events: none;
  transform-origin: top left;
}

.embedded-preview.theme-blue,
.crisp-embedded-design {
  background: #f6f6f6;
}

/* Four visual directions */
.theme-warm {
  --app-bg: #fffaf6;
  --app-card: #fff;
  --app-ink: #211812;
  --app-accent: #ff6920;
  --app-accent-ink: #fff;
  --app-soft: #fff0e6;
  --app-line: #efe4dc;
  --app-radius: 13px;
  --app-radius-sm: 10px;
  --app-shadow: 0 7px 15px rgba(143,45,0,.045);
  --hero-bg: linear-gradient(135deg, #ff6920, #ffa15f);
  --hero-ink: #fff;
  --button-bg: #fff;
  --button-ink: #e95610;
}
.theme-warm .app-avatar { color: #fff; background: #ff6920; }

.theme-blue {
  --app-bg: #060b13;
  --app-card: linear-gradient(145deg, #0f1a2a, #09111e);
  --app-ink: #eaf4fa;
  --app-accent: #19e8ff;
  --app-accent-ink: #031014;
  --app-soft: #101d2d;
  --app-line: rgba(64, 211, 231, .22);
  --app-radius: 8px;
  --app-radius-sm: 7px;
  --app-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 8px 22px rgba(0,0,0,.2);
  --hero-bg: linear-gradient(145deg, #0e1c2d, #101a2a 60%, #08212c);
  --hero-ink: #eaf4fa;
  --button-bg: #19e8ff;
  --button-ink: #031014;
}
.theme-blue .app-avatar { color: #031014; background: #19e8ff; box-shadow: 0 0 14px rgba(25,232,255,.38); }
.theme-blue .app-brand-logo { filter: invert(1); opacity: .94; }
.theme-blue .search-box,
.theme-blue .hero-card,
.theme-blue .recipe-card { box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 0 18px rgba(25,232,255,.035); }
.theme-blue .hero-card { border: 1px solid rgba(25,232,255,.28); }
.theme-blue .hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 54%, rgba(25,232,255,.08) 54.5%, transparent 55% 100%);
}
.theme-blue .hero-art { right: 13px; top: 13px; width: 68px; height: 69px; filter: drop-shadow(0 0 8px rgba(25,232,255,.35)); }
.theme-blue .hero-art i { border-radius: 3px; background: linear-gradient(145deg, #27364b, #090e16 65%); border: 1px solid rgba(25,232,255,.48); }
.theme-blue .hero-art i:nth-child(1) { right: 8px; width: 43px; height: 58px; opacity: 1; }
.theme-blue .hero-art i:nth-child(2) { top: 20px; left: 0; width: 40px; height: 18px; border-radius: 9px; opacity: 1; box-shadow: inset 0 0 8px rgba(25,232,255,.24); }
.theme-blue .hero-art i:nth-child(3) { right: 13px; bottom: -1px; width: 34px; height: 10px; border-radius: 50% 50% 3px 3px; opacity: 1; background: #07101a; box-shadow: 0 0 9px rgba(25,232,255,.34); }
.theme-blue .company-logo { color: #031014; background: #19e8ff !important; box-shadow: 0 0 10px rgba(25,232,255,.22); }
.theme-blue .app-nav { background: rgba(6,11,19,.92); }

.theme-lime {
  --app-bg: #f0f2e9;
  --app-card: #f8f9f2;
  --app-ink: #10130e;
  --app-accent: #b8f52a;
  --app-accent-ink: #10130e;
  --app-soft: #e5ebd7;
  --app-line: rgba(16,19,14,.36);
  --app-radius: 2px;
  --app-radius-sm: 2px;
  --app-shadow: 3px 3px 0 #10130e;
  --hero-bg: #10130e;
  --hero-ink: #f1f2e9;
  --button-bg: #b8f52a;
  --button-ink: #10130e;
}
.theme-lime .app-header { border-bottom: 1px solid var(--app-line); }
.theme-lime .app-avatar { border-radius: 2px; background: #b8f52a; }
.theme-lime .company-logo { border-radius: 2px; }
.theme-lime .app-title { font-size: 21px; font-weight: 800; text-transform: uppercase; }

.theme-ivory {
  --app-bg: #f4eee4;
  --app-card: #fbf7f0;
  --app-ink: #301e18;
  --app-accent: #b33b2e;
  --app-accent-ink: #fff8ee;
  --app-soft: #eadfd2;
  --app-line: rgba(67,43,34,.16);
  --app-radius: 18px;
  --app-radius-sm: 99px;
  --app-shadow: 0 8px 20px rgba(64,35,26,.065);
  --hero-bg: #d9c1aa;
  --hero-ink: #301e18;
  --button-bg: #b33b2e;
  --button-ink: #fff;
}
.theme-ivory .app-avatar { color: #fff; background: #b33b2e; }
.theme-ivory .app-title { font-family: Georgia, "Songti SC", serif; font-weight: 600; }
.theme-ivory .hero-card h3 { font-family: Georgia, "Songti SC", serif; font-weight: 500; }

/* Overview */
.overview {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(24px, 4vw, 62px);
  color: #f4f1e8;
  background: #10110f;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 450ms var(--ease), transform 600ms var(--ease), visibility 450ms;
}

.overview.open { opacity: 1; visibility: visible; transform: translateY(0); }

.overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: clamp(20px, 4vh, 44px);
}

.overview-head .eyebrow { color: rgba(255,255,255,.4); }
.overview-head h2 { margin: 10px 0 0; font-size: clamp(24px, 3vw, 46px); font-weight: 500; letter-spacing: -.05em; }
.overview-close { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: white; }
.overview-close:hover { background: rgba(255,255,255,.1); transform: rotate(5deg); }
.overview-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.15);
}

.overview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(16px, 2vw, 30px);
  overflow: hidden;
  border: 0;
  color: white;
  text-align: left;
  background: #151614;
  cursor: pointer;
}

.overview-card::before { content: ""; position: absolute; inset: auto -30% -35% 20%; height: 60%; border-radius: 50%; background: var(--card-accent); opacity: .1; filter: blur(35px); transition: opacity 300ms ease; }
.overview-card:hover::before { opacity: .3; }
.overview-card-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 8px; color: rgba(255,255,255,.4); }
.overview-card-top i { width: 12px; height: 12px; border-radius: 50%; background: var(--card-accent); }
.mini-phone-wrap { display: grid; flex: 1; place-items: center; min-height: 0; overflow: hidden; }
.mini-phone { display: block; width: min(13vw, 150px); aspect-ratio: 375 / 812; padding: 4px; overflow: hidden; border: 1px solid rgba(255,255,255,.23); border-radius: 24px; background: #050505; box-shadow: 0 24px 32px rgba(0,0,0,.28); transition: transform 500ms var(--ease); }
.overview-card:hover .mini-phone { transform: translateY(-8px) rotate(-1.5deg); }
.mini-phone-screen { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 20px; }
.mini-phone .app-preview { transform-origin: top left; }
.overview-card-footer,
.overview-card-footer strong,
.overview-card-footer small { display: block; }
.overview-card-footer strong { font-size: clamp(16px, 1.5vw, 23px); font-weight: 500; }
.overview-card-footer small { margin: 4px 0 0; font-family: var(--font-display); font-size: 8px; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 26px;
  padding: 10px 14px;
  border-radius: 99px;
  color: white;
  font-size: 10px;
  background: rgba(17,17,15,.88);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 250ms ease, transform 350ms var(--ease);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* XBREW showroom — AI hardware control room */
:root {
  color-scheme: dark;
  --ink: #f2f0e9;
  --paper: #080a0b;
  --line: rgba(224, 230, 226, 0.13);
  --muted: rgba(224, 230, 226, 0.46);
}

body {
  color: var(--ink);
  background: var(--paper);
}

.ambient {
  background:
    radial-gradient(ellipse 34% 70% at 53% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 72%),
    radial-gradient(circle at 92% -8%, rgba(255, 105, 32, 0.12), transparent 28%),
    linear-gradient(145deg, #0b0e0f 0%, #080a0b 52%, #101312 100%);
}

.ambient::before {
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(210, 224, 218, 0.043) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 224, 218, 0.043) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 65% 80% at 52% 50%, black, transparent 88%);
}

.ambient::after {
  opacity: 0.75;
  background:
    linear-gradient(90deg, transparent 49.93%, rgba(255,255,255,.055) 50%, transparent 50.07%),
    linear-gradient(180deg, transparent 74.9%, rgba(255,105,32,.05) 75%, transparent 75.1%);
}

.orb {
  filter: blur(18px);
  opacity: 0.5;
}

.orb-one {
  top: -20vw;
  right: -5vw;
  background: color-mix(in srgb, var(--accent) 26%, transparent);
}

.orb-two {
  bottom: -17vw;
  left: 32vw;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.grain { opacity: 0.085; mix-blend-mode: screen; }

.topbar {
  background: rgba(7, 9, 10, 0.82);
  border-color: var(--line);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.018);
  backdrop-filter: blur(24px) saturate(120%);
}

.brand-logo {
  filter: invert(1);
  opacity: 0.94;
}

.project-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .08em;
  color: rgba(242,240,233,.72);
}

.project-meta i {
  width: 5px;
  height: 5px;
  background: #ff6920;
  box-shadow: 0 0 12px rgba(255,105,32,.86);
}

.live-status { color: rgba(224,230,226,.42); }
.live-status i {
  background: #9dfa38;
  box-shadow: 0 0 0 4px rgba(157,250,56,.08), 0 0 16px rgba(157,250,56,.48);
}

.icon-button {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.025);
}

.icon-button:hover {
  color: #080a0b;
  background: var(--accent);
  border-color: var(--accent);
}

.version-nav,
.details-panel {
  background: rgba(7, 9, 10, 0.74);
  border-color: var(--line);
  backdrop-filter: blur(26px) saturate(125%);
}

.eyebrow {
  color: rgba(220,228,224,.35);
  letter-spacing: .22em;
}

.version-item {
  margin-inline: -12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  opacity: .28;
}

.version-item:hover {
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.06);
}

.version-item.active {
  opacity: 1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 85%);
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
}

.version-item::before {
  top: 50%;
  left: calc(-1 * clamp(12px, 2vw, 38px));
  height: 28px;
  border-radius: 0 2px 2px 0;
  transform: translateY(-50%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent);
}

.version-item.active::before { width: 3px; }
.version-index { color: var(--accent); }
.version-text span { color: rgba(224,230,226,.36); }
.version-item.active .version-text span { color: rgba(224,230,226,.55); }

.progress-track { background: rgba(255,255,255,.1); }
.progress-track i { box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 50%, transparent); }
.nav-foot > span { color: rgba(224,230,226,.35); }
.nav-foot b { color: var(--ink); }

.stage {
  background:
    radial-gradient(ellipse 45% 68% at 50% 51%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 71%),
    linear-gradient(rgba(210,224,218,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210,224,218,.035) 1px, transparent 1px),
    linear-gradient(125deg, rgba(255,255,255,.018), transparent 36%),
    #0a0d0e;
  background-size: auto, 44px 44px, 44px 44px, auto, auto;
  box-shadow: inset 0 0 120px rgba(0,0,0,.48);
}

.stage::before,
.stage::after {
  width: 14px;
  height: 14px;
  opacity: .48;
  border-color: rgba(225,232,228,.58);
}

.scene-number {
  color: transparent;
  -webkit-text-stroke-color: rgba(230,236,233,.035);
}

.orbit {
  border-color: color-mix(in srgb, var(--accent) 29%, transparent);
  box-shadow: inset 0 0 38px color-mix(in srgb, var(--accent) 3%, transparent);
}

.phone {
  border-color: rgba(255,255,255,.38);
  background: linear-gradient(145deg, #252a2b, #020303 34% 70%, #323738);
  box-shadow:
    0 54px 68px rgba(0,0,0,.72),
    0 0 80px color-mix(in srgb, var(--accent) 13%, transparent),
    0 10px 22px rgba(0,0,0,.62),
    inset 0 0 0 1px rgba(255,255,255,.16);
}

.phone-shadow {
  background: color-mix(in srgb, var(--accent) 20%, #000);
  opacity: .46;
  filter: blur(24px);
}

.stage-arrow {
  color: rgba(242,240,233,.7);
  border-color: rgba(255,255,255,.14);
  background: rgba(8,10,11,.66);
}

.stage-arrow:hover {
  color: #080a0b;
  border-color: var(--accent);
  background: var(--accent);
}

.stage-hint { color: rgba(224,230,226,.28); }
.stage-hint i { box-shadow: 0 0 9px var(--accent); }

.version-code {
  color: rgba(224,230,226,.48);
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.025);
}

.detail-main h2 { color: #f2f0e9; }
.detail-main > p { color: rgba(224,230,226,.47); }
.palette-block > span { color: rgba(242,240,233,.78); }
.palette button { border-color: #0a0c0d; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }

.keywords span {
  color: rgba(224,230,226,.48);
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.018);
}

.upload-button {
  color: #080a0b;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 10px 28px color-mix(in srgb, var(--accent) 13%, transparent);
}

.play-button {
  color: rgba(242,240,233,.78);
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.025);
}

.play-button:hover { color: white; background: rgba(255,255,255,.07); }

.footer-bar {
  background: rgba(7,9,10,.88);
  border-color: var(--line);
  backdrop-filter: blur(20px);
}

.footer-bar p {
  font-family: var(--font-mono);
  color: rgba(224,230,226,.28);
  letter-spacing: .1em;
}

.overview-button { color: rgba(242,240,233,.78); }
kbd { color: rgba(242,240,233,.46); border-color: rgba(255,255,255,.14); box-shadow: inset 0 -2px 0 rgba(255,255,255,.04); }

.overview {
  background:
    radial-gradient(circle at 50% 120%, rgba(255,105,32,.09), transparent 42%),
    #070909;
}

.overview-grid,
.overview-card { border-color: rgba(255,255,255,.13); }
.overview-card { background: linear-gradient(155deg, #111415, #0b0d0e); }
.toast { color: #080a0b; background: rgba(242,240,233,.92); }

/* Daylight calibration — brushed aluminum lab */
:root {
  color-scheme: light;
  --ink: #171b19;
  --paper: #e8ebe7;
  --line: rgba(20, 27, 23, 0.14);
  --muted: rgba(20, 27, 23, 0.48);
}

body {
  color: var(--ink);
  background: var(--paper);
}

.ambient {
  background:
    radial-gradient(ellipse 38% 72% at 53% 49%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 72%),
    radial-gradient(circle at 92% -8%, rgba(255, 105, 32, 0.15), transparent 28%),
    linear-gradient(145deg, #f0f2ef 0%, #e4e7e3 52%, #dce1dc 100%);
}

.ambient::before {
  opacity: .78;
  background-image:
    linear-gradient(rgba(21, 29, 25, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 29, 25, 0.055) 1px, transparent 1px);
}

.ambient::after {
  opacity: .52;
  background:
    linear-gradient(90deg, transparent 49.93%, rgba(20,27,23,.08) 50%, transparent 50.07%),
    linear-gradient(180deg, transparent 74.9%, rgba(255,105,32,.07) 75%, transparent 75.1%);
}

.orb { opacity: .42; }
.grain { opacity: .035; mix-blend-mode: multiply; }

.topbar {
  background: rgba(238, 241, 237, 0.84);
  border-color: var(--line);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.55);
}

.brand-logo { filter: none; opacity: .96; }

.project-meta { color: rgba(23,27,25,.68); }
.icon-button {
  color: #171b19;
  border-color: rgba(20,27,23,.16);
  background: rgba(255,255,255,.34);
}

.version-nav,
.details-panel {
  background: rgba(232, 235, 231, 0.78);
  border-color: var(--line);
  box-shadow: inset 0 0 36px rgba(255,255,255,.18);
}

.eyebrow { color: rgba(20,27,23,.4); }
.version-item:hover {
  background: rgba(255,255,255,.35);
  border-color: rgba(20,27,23,.08);
}

.version-item.active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 13%, transparent), rgba(255,255,255,.12) 82%);
  border-color: color-mix(in srgb, var(--accent) 27%, transparent);
}

.version-text span { color: rgba(20,27,23,.34); }
.version-item.active .version-text span { color: rgba(20,27,23,.52); }
.progress-track { background: rgba(20,27,23,.12); }
.nav-foot > span { color: rgba(20,27,23,.38); }
.nav-foot b { color: #171b19; }

.stage {
  background:
    radial-gradient(ellipse 45% 68% at 50% 51%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 71%),
    linear-gradient(rgba(20,27,23,.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,27,23,.052) 1px, transparent 1px),
    linear-gradient(125deg, rgba(255,255,255,.52), transparent 38%),
    #e3e6e2;
  background-size: auto, 44px 44px, 44px 44px, auto, auto;
  box-shadow: inset 0 0 120px rgba(42,52,47,.1);
}

.stage::before,
.stage::after { border-color: rgba(20,27,23,.48); }
.scene-number { -webkit-text-stroke-color: rgba(20,27,23,.04); }
.orbit { border-color: color-mix(in srgb, var(--accent) 34%, transparent); }

.phone {
  border-color: rgba(22,27,25,.68);
  box-shadow:
    0 46px 58px rgba(30,35,32,.25),
    0 0 76px color-mix(in srgb, var(--accent) 11%, transparent),
    0 12px 24px rgba(30,35,32,.2),
    inset 0 0 0 1px rgba(255,255,255,.25);
}

.phone-shadow { opacity: .24; }

.stage-arrow {
  color: rgba(20,27,23,.72);
  border-color: rgba(20,27,23,.15);
  background: rgba(248,249,247,.68);
}

.stage-hint { color: rgba(20,27,23,.34); }
.version-code {
  color: rgba(20,27,23,.48);
  border-color: rgba(20,27,23,.14);
  background: rgba(255,255,255,.24);
}

.detail-main h2 { color: #171b19; }
.detail-main > p { color: rgba(20,27,23,.53); }
.palette-block > span { color: rgba(20,27,23,.8); }
.palette button { border-color: #e8ebe7; box-shadow: 0 0 0 1px rgba(20,27,23,.1); }

.keywords span {
  color: rgba(20,27,23,.54);
  border-color: rgba(20,27,23,.14);
  background: rgba(255,255,255,.22);
}

.play-button {
  color: rgba(20,27,23,.78);
  border-color: rgba(20,27,23,.16);
  background: rgba(255,255,255,.25);
}

.play-button:hover { color: #111513; background: rgba(255,255,255,.58); }

.footer-bar {
  background: rgba(235,238,234,.88);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

.footer-bar p { color: rgba(20,27,23,.35); }
.overview-button { color: rgba(20,27,23,.78); }
kbd { color: rgba(20,27,23,.5); border-color: rgba(20,27,23,.15); box-shadow: inset 0 -2px 0 rgba(20,27,23,.04); }

.overview {
  color: #171b19;
  background:
    radial-gradient(circle at 50% 120%, rgba(255,105,32,.13), transparent 42%),
    #e3e6e2;
}

.overview-head .eyebrow { color: rgba(20,27,23,.42); }
.overview-close { color: #171b19; border-color: rgba(20,27,23,.2); }
.overview-close:hover { background: rgba(20,27,23,.08); }
.overview-grid { border-color: rgba(20,27,23,.18); background: rgba(20,27,23,.16); }
.overview-card { color: #171b19; background: linear-gradient(155deg, #f3f5f2, #e8ebe7); }
.overview-card-top { color: rgba(20,27,23,.42); }
.overview-card-footer small { color: rgba(20,27,23,.44); }

/* Production theme — XBREW Cyan Intelligence System */
:root {
  color-scheme: dark;
  --ink: #eaf4fa;
  --paper: #070b14;
  --line: rgba(110, 145, 171, .22);
  --muted: rgba(202, 220, 233, .48);
  --accent: #19e8ff;
  --accent-soft: #079cb5;
}

body {
  color: var(--ink);
  background: var(--paper);
}

.ambient {
  background:
    radial-gradient(ellipse 34% 72% at 51% 51%, rgba(25,232,255,.13), transparent 70%),
    radial-gradient(circle at 88% -14%, rgba(34,92,128,.2), transparent 36%),
    radial-gradient(circle at 13% 112%, rgba(7,156,181,.1), transparent 34%),
    linear-gradient(142deg, #09101b 0%, #050810 46%, #09111d 100%);
}

.ambient::before {
  opacity: .78;
  background-image:
    linear-gradient(rgba(93,143,173,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,143,173,.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 82% 92% at 50% 50%, #000 30%, transparent 91%);
}

.ambient::after {
  opacity: .8;
  background:
    linear-gradient(90deg, transparent 49.93%, rgba(25,232,255,.07) 50%, transparent 50.07%),
    linear-gradient(180deg, transparent 74.93%, rgba(25,232,255,.045) 75%, transparent 75.07%);
}

.orb { filter: blur(30px); opacity: .42; }
.orb-one { background: rgba(25,232,255,.16); }
.orb-two { background: rgba(7,156,181,.14); }
.grain { opacity: .075; mix-blend-mode: screen; }

.topbar,
.footer-bar {
  border-color: var(--line);
  background: rgba(6, 11, 19, .88);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.025), 0 12px 42px rgba(0,0,0,.16);
  backdrop-filter: blur(26px) saturate(130%);
}

.brand-logo { filter: invert(1) brightness(1.15); opacity: .96; }
.project-meta {
  color: rgba(231,244,250,.76);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .095em;
}
.project-meta i {
  width: 4px;
  height: 4px;
  background: var(--accent);
  box-shadow: 0 0 4px var(--accent), 0 0 14px rgba(25,232,255,.75);
}

.icon-button {
  color: rgba(234,244,250,.75);
  border-color: rgba(112,151,177,.3);
  background: linear-gradient(145deg, rgba(29,43,59,.74), rgba(8,14,24,.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.icon-button:hover {
  color: #031014;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 20px rgba(25,232,255,.34);
}

.version-nav,
.details-panel {
  border-color: var(--line);
  background:
    linear-gradient(155deg, rgba(18,29,44,.86), rgba(6,11,19,.91) 52%, rgba(10,18,29,.88));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    inset 0 0 48px rgba(3,7,13,.26);
  backdrop-filter: blur(26px) saturate(122%);
}

.eyebrow { color: rgba(169,194,211,.46); letter-spacing: .22em; }

.version-item {
  margin-inline: -12px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  opacity: .34;
}

.version-item:hover {
  background: rgba(75,117,142,.07);
  border-color: rgba(112,151,177,.13);
}

.version-item.active {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(25,232,255,.13), rgba(25,232,255,.025) 62%, transparent),
    linear-gradient(145deg, rgba(27,45,63,.7), rgba(9,16,27,.25));
  border-color: rgba(25,232,255,.42);
  box-shadow: inset 0 0 18px rgba(25,232,255,.035), 0 0 22px rgba(25,232,255,.055);
}

.version-item::before {
  top: 50%;
  left: calc(-1 * clamp(12px, 2vw, 38px));
  height: 30px;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 0 7px var(--accent), 0 0 22px rgba(25,232,255,.65);
}
.version-item.active::before { width: 3px; }
.version-index { color: var(--accent); text-shadow: 0 0 12px rgba(25,232,255,.45); }
.version-text span { color: rgba(168,193,210,.39); }
.version-item.active .version-text span { color: rgba(203,222,234,.62); }
.progress-track { background: rgba(111,147,172,.17); }
.progress-track i { background: var(--accent); box-shadow: 0 0 12px rgba(25,232,255,.72); }
.nav-foot > span { color: rgba(180,204,219,.42); }
.nav-foot b { color: var(--ink); }

.stage {
  background:
    radial-gradient(ellipse 43% 67% at 50% 51%, rgba(25,232,255,.135), transparent 72%),
    linear-gradient(rgba(83,130,158,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83,130,158,.065) 1px, transparent 1px),
    linear-gradient(125deg, rgba(112,169,198,.035), transparent 36%),
    #070c15;
  background-size: auto, 42px 42px, 42px 42px, auto, auto;
  box-shadow: inset 0 0 150px rgba(0,0,0,.58);
}

.stage::before,
.stage::after {
  width: 16px;
  height: 16px;
  opacity: .72;
  border-color: rgba(86,190,211,.6);
}
.scene-number { -webkit-text-stroke-color: rgba(99,162,190,.04); }
.orbit {
  border-color: rgba(25,232,255,.29);
  box-shadow: inset 0 0 42px rgba(25,232,255,.025), 0 0 28px rgba(25,232,255,.025);
}
.orbit-one { border-style: solid dashed solid solid; }
.orbit-two { border-style: dashed solid solid dashed; opacity: .72; }

.phone {
  height: min(calc(100% - 16px), 752px);
  padding: 6px;
  border-color: rgba(144,175,194,.62);
  background: linear-gradient(145deg, #384451 0%, #080c12 22% 72%, #43505c 100%);
  box-shadow:
    0 58px 72px rgba(0,0,0,.72),
    0 0 54px rgba(25,232,255,.13),
    0 12px 26px rgba(0,0,0,.66),
    inset 0 0 0 1px rgba(225,241,248,.16);
}
.phone:hover { transform: translateY(-4px); }
.phone-screen { background: #060b13; }
.phone-shine { background: linear-gradient(115deg, rgba(226,244,250,.18), transparent 15% 76%, rgba(25,232,255,.065)); }
.phone-shadow { background: rgba(25,232,255,.23); opacity: .52; filter: blur(28px); }

.stage-arrow {
  color: rgba(225,239,247,.76);
  border-color: rgba(111,151,177,.3);
  background: linear-gradient(145deg, rgba(25,38,54,.82), rgba(7,13,22,.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 8px 24px rgba(0,0,0,.28);
}
.stage-arrow:hover {
  color: #031014;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 22px rgba(25,232,255,.35);
}
.stage-hint { color: rgba(180,204,219,.38); }
.stage-hint i { background: var(--accent); box-shadow: 0 0 9px var(--accent); }

.version-code {
  color: rgba(183,207,221,.55);
  border-color: rgba(112,151,177,.26);
  background: linear-gradient(145deg, rgba(29,43,59,.6), rgba(8,14,24,.5));
}
.detail-main h2 { color: #f0f8fb; text-wrap: balance; }
.detail-main > p { color: rgba(195,215,227,.54); }
.palette-block > span { color: rgba(233,244,249,.76); }
.palette button { border-color: #0a111d; box-shadow: 0 0 0 1px rgba(128,164,187,.18); }
.keywords span {
  color: rgba(190,214,227,.58);
  border-color: rgba(112,151,177,.24);
  background: linear-gradient(145deg, rgba(27,41,57,.48), rgba(8,14,23,.4));
}

.upload-button {
  color: #031014;
  border-color: #58f1ff;
  background: linear-gradient(180deg, #6af4ff, #19e8ff 54%, #0bc2d8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58), 0 0 20px rgba(25,232,255,.3), 0 12px 30px rgba(4,118,137,.22);
}
.upload-button:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 0 30px rgba(25,232,255,.42), 0 14px 34px rgba(4,118,137,.26); }
.play-button {
  color: rgba(228,241,248,.78);
  border-color: rgba(112,151,177,.28);
  background: linear-gradient(145deg, rgba(28,42,58,.56), rgba(7,13,22,.5));
}
.play-button:hover { color: #fff; border-color: rgba(25,232,255,.42); background: rgba(25,232,255,.075); }

.footer-bar { border-color: var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.02); }
.footer-bar p { color: rgba(170,197,213,.35); font-family: var(--font-mono); letter-spacing: .1em; }
.overview-button { color: rgba(226,240,247,.76); }
.overview-button:hover { color: var(--accent); }
kbd { color: rgba(192,213,225,.54); border-color: rgba(112,151,177,.28); box-shadow: inset 0 -2px 0 rgba(0,0,0,.28); }

.overview {
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 112%, rgba(25,232,255,.1), transparent 42%),
    linear-gradient(145deg, #080e18, #05080f);
}
.overview-head .eyebrow { color: rgba(169,194,211,.46); }
.overview-close { color: var(--ink); border-color: rgba(112,151,177,.3); }
.overview-close:hover { color: #031014; border-color: var(--accent); background: var(--accent); }
.overview-grid { border-color: rgba(112,151,177,.24); background: rgba(112,151,177,.17); }
.overview-card {
  color: var(--ink);
  background: linear-gradient(155deg, #111c2b, #080e18 68%);
}
.overview-card-top { color: rgba(185,208,222,.5); }
.overview-card-footer small { color: rgba(185,208,222,.46); }
.toast {
  color: #031014;
  border: 1px solid rgba(255,255,255,.56);
  background: rgba(79,241,255,.94);
  box-shadow: 0 0 24px rgba(25,232,255,.28);
}

/* Production theme v2 — Sky Blue Soft Intelligence */
:root {
  color-scheme: light;
  --ink: #101526;
  --paper: #dceafd;
  --line: rgba(50, 83, 137, .12);
  --muted: #5f6f89;
  --text-secondary: #53627b;
  --text-tertiary: #697892;
  --accent: #326df5;
  --accent-soft: #dbe8ff;
  --surface: rgba(250, 252, 255, .86);
  --surface-solid: #f8fbff;
  --shadow-soft: 0 22px 58px rgba(54, 94, 152, .14);
  --shadow-float: 0 34px 72px rgba(42, 78, 134, .2);
  --radius-panel: 26px;
  --radius-control: 15px;
}

body {
  color: var(--ink);
  background: #bdd6fa;
}

.ambient {
  background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.52), transparent 27%),
    radial-gradient(circle at 84% 84%, rgba(112,159,234,.22), transparent 30%),
    linear-gradient(145deg, #c9dfff 0%, #b5d0f8 48%, #c5dcfc 100%);
}

.ambient::before {
  opacity: .34;
  background-image:
    linear-gradient(rgba(62,105,171,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62,105,171,.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 78% 85% at 50% 50%, #000, transparent 88%);
}

.ambient::after {
  opacity: .65;
  background:
    radial-gradient(circle at 72% 17%, rgba(255,255,255,.7) 0 3px, transparent 4px),
    radial-gradient(circle at 27% 79%, rgba(50,109,245,.22) 0 4px, transparent 5px);
}

.orb { opacity: .5; filter: blur(24px); }
.orb-one { background: rgba(255,255,255,.74); }
.orb-two { background: rgba(69,118,230,.16); }
.grain { opacity: .025; mix-blend-mode: multiply; }

.showcase-shell { padding: 12px; gap: 12px; }

.topbar,
.footer-bar {
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(249,252,255,.76);
  box-shadow: 0 10px 30px rgba(61,99,153,.1), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(28px) saturate(120%);
}

.brand-logo { filter: none; opacity: .94; }
.project-meta {
  color: rgba(16,21,38,.68);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .045em;
}
.project-meta i {
  width: 5px;
  height: 5px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(50,109,245,.09);
}

.icon-button {
  color: #17305f;
  border-color: rgba(56,90,146,.13);
  background: rgba(255,255,255,.7);
  box-shadow: 0 8px 20px rgba(65,98,151,.09), inset 0 1px 0 rgba(255,255,255,.95);
}
.icon-button:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 10px 26px rgba(50,109,245,.25);
}

.viewer {
  gap: 12px;
  min-height: 0;
}

.version-nav,
.details-panel {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: var(--radius-panel);
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(245,249,255,.76));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(26px) saturate(115%);
}

.eyebrow { color: #60708a; letter-spacing: .18em; }

.version-item {
  color: #53627a;
  margin-inline: -5px;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 16px;
  opacity: 1;
}
.version-item:hover {
  color: #263855;
  background: rgba(50,109,245,.055);
  border-color: rgba(50,109,245,.08);
}
.version-item.active {
  color: #fff;
  opacity: 1;
  border-color: rgba(255,255,255,.72);
  background: linear-gradient(145deg, #477df7, #2f68ef);
  box-shadow: 0 13px 28px rgba(50,109,245,.24), inset 0 1px 0 rgba(255,255,255,.28);
}
.version-item::before { display: none; }
.version-index { color: #527bd0; }
.version-item.active .version-index { color: #fff; }
.version-text span { color: #718099; }
.version-item.active .version-text span { color: rgba(255,255,255,.72); }
.progress-track { height: 3px; border-radius: 99px; background: rgba(50,83,137,.1); }
.progress-track i { border-radius: inherit; background: var(--accent); box-shadow: 0 4px 12px rgba(50,109,245,.22); }
.nav-foot > span { color: #62718a; }
.nav-foot b { color: var(--ink); }

.stage {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 47%, rgba(255,255,255,.58), transparent 31%),
    radial-gradient(circle at 9% 88%, rgba(78,127,223,.14), transparent 28%),
    linear-gradient(145deg, #c4dcfd, #aecaf4 58%, #bfd8fb);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -28px 70px rgba(74,111,177,.08), var(--shadow-soft);
}
.stage::before,
.stage::after {
  z-index: 0;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  filter: blur(.1px);
}
.stage::before { top: -92px; left: -72px; width: 230px; height: 230px; }
.stage::after { right: -65px; bottom: -80px; width: 190px; height: 190px; }
.scene-number { -webkit-text-stroke-color: rgba(255,255,255,.15); }
.orbit {
  border-color: rgba(255,255,255,.58);
  box-shadow: inset 0 0 48px rgba(255,255,255,.08), 0 0 30px rgba(79,120,189,.06);
}
.orbit-one { border-style: solid; }
.orbit-two { border-style: dashed; opacity: .72; }

.phone {
  border-color: rgba(255,255,255,.96);
  background: linear-gradient(145deg, #ffffff, #dce7f5 24% 78%, #ffffff);
  box-shadow:
    0 42px 70px rgba(46,76,123,.25),
    0 12px 26px rgba(55,92,146,.16),
    inset 0 0 0 1px rgba(76,102,143,.13);
}
.phone-screen { background: #f8fbff; }
.phone-shine { background: linear-gradient(115deg, rgba(255,255,255,.45), transparent 16% 78%, rgba(117,161,236,.07)); }
.phone-shadow { background: rgba(54,94,151,.3); opacity: .42; filter: blur(25px); }

.stage-arrow {
  color: #234376;
  border-color: rgba(50,83,137,.12);
  background: rgba(255,255,255,.76);
  box-shadow: 0 11px 26px rgba(51,88,145,.13), inset 0 1px 0 rgba(255,255,255,.9);
}
.stage-arrow:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(50,109,245,.26);
}
.stage-hint { color: #536784; }
.stage-hint i { background: var(--accent); box-shadow: none; }

.version-code {
  color: #326df5;
  border-color: rgba(50,109,245,.13);
  background: rgba(50,109,245,.07);
}
.detail-main h2 { color: #11182b; }
.detail-main > p { color: #53627b; }
.palette-block > span { color: rgba(18,28,48,.76); }
.palette button { border-color: #f8fbff; box-shadow: 0 0 0 1px rgba(50,83,137,.1), 0 6px 14px rgba(52,84,135,.08); }
.keywords span {
  color: #5c6a82;
  border-color: rgba(50,83,137,.1);
  background: rgba(255,255,255,.62);
  box-shadow: 0 6px 16px rgba(54,91,145,.055);
}
.upload-button {
  color: #fff;
  border-color: #326df5;
  background: linear-gradient(145deg, #477df7, #2f68ef);
  box-shadow: 0 14px 30px rgba(50,109,245,.26), inset 0 1px 0 rgba(255,255,255,.3);
}
.upload-button:hover { box-shadow: 0 18px 36px rgba(50,109,245,.32), inset 0 1px 0 rgba(255,255,255,.34); }
.play-button {
  color: #24416f;
  border-color: rgba(50,83,137,.12);
  background: rgba(255,255,255,.62);
  box-shadow: 0 8px 20px rgba(54,91,145,.07);
}
.play-button:hover { color: #326df5; border-color: rgba(50,109,245,.22); background: #fff; }

.footer-bar { color: var(--ink); }
.footer-bar p { color: #63728a; }
.overview-button { color: rgba(23,41,70,.76); }
.overview-button:hover { color: var(--accent); }
kbd {
  color: rgba(35,58,96,.54);
  border-color: rgba(50,83,137,.1);
  background: rgba(255,255,255,.56);
  box-shadow: inset 0 -2px 0 rgba(50,83,137,.06);
}

/* Reference-driven blue/white app direction */
.theme-blue {
  --app-bg: #f7faff;
  --app-card: #ffffff;
  --app-ink: #11182d;
  --app-accent: #326df5;
  --app-accent-ink: #ffffff;
  --app-soft: #edf3ff;
  --app-line: rgba(55,86,139,.1);
  --app-radius: 15px;
  --app-radius-sm: 12px;
  --app-shadow: 0 9px 22px rgba(60,94,147,.08), inset 0 1px 0 rgba(255,255,255,.9);
  --hero-bg: linear-gradient(145deg, #4a80f7, #326df5 58%, #275fdc);
  --hero-ink: #ffffff;
  --button-bg: #ffffff;
  --button-ink: #326df5;
}
.theme-blue .app-avatar { color: #fff; background: #326df5; box-shadow: 0 7px 15px rgba(50,109,245,.24); }
.theme-blue .app-brand-logo { filter: none; opacity: .9; }
.theme-blue .search-box { background: rgba(255,255,255,.72); box-shadow: 0 7px 18px rgba(58,92,145,.06); }
.theme-blue .hero-card { border: 1px solid rgba(255,255,255,.5); box-shadow: 0 13px 26px rgba(50,109,245,.2); }
.theme-blue .hero-card::before { background: radial-gradient(circle at 82% 22%, rgba(255,255,255,.22), transparent 30%); }
.theme-blue .hero-art { filter: drop-shadow(0 8px 12px rgba(10,52,151,.18)); }
.theme-blue .hero-art i { border-color: rgba(255,255,255,.65); background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(211,227,255,.72)); }
.theme-blue .hero-art i:nth-child(2) { box-shadow: inset 0 0 8px rgba(50,109,245,.16); }
.theme-blue .hero-art i:nth-child(3) { background: rgba(255,255,255,.9); box-shadow: 0 7px 12px rgba(16,55,135,.16); }
.theme-blue .company-logo { color: #fff; background: #326df5 !important; box-shadow: 0 7px 15px rgba(50,109,245,.18); }
.theme-blue .app-nav { background: rgba(248,251,255,.93); }

.overview {
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(255,255,255,.56), transparent 30%),
    linear-gradient(145deg, #c8dfff, #b5d0f8);
}
.overview-head .eyebrow { color: #60708a; }
.overview-close { color: #17305f; border-color: rgba(50,83,137,.12); background: rgba(255,255,255,.65); }
.overview-close:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.overview-grid { gap: 12px; border: 0; background: transparent; }
.overview-card {
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 26px;
  background: rgba(249,252,255,.8);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.94);
}
.overview-card-top { color: #5d6c85; }
.overview-card-footer small { color: #697892; }
.mini-phone { border-color: rgba(255,255,255,.95); background: #e8f0fb; box-shadow: 0 24px 40px rgba(51,87,141,.18); }
.toast {
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(50,109,245,.94);
  box-shadow: 0 15px 32px rgba(50,109,245,.24);
}

@media (max-width: 1080px) {
  .viewer { grid-template-columns: 170px minmax(440px, 1fr) 240px; }
  .version-nav, .details-panel { padding-inline: 24px; }
  .version-item::before { left: -24px; }
}

@media (max-width: 820px) {
  body { overflow: auto; }
  .showcase-shell { min-height: 100svh; height: auto; grid-template-rows: 64px auto 54px; }
  .topbar { grid-template-columns: 1fr auto; padding-inline: 18px; }
  .project-meta { display: none; }
  .live-status { display: none; }
  .viewer { display: flex; width: 100%; min-width: 0; min-height: calc(100svh - 118px); overflow-x: hidden; flex-direction: column; }
  .version-nav { order: 2; width: 100%; min-width: 0; padding: 18px; border: 0; border-top: 1px solid var(--line); }
  .version-nav > .eyebrow, .nav-foot { display: none; }
  .version-list { display: grid; width: 100%; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; }
  .version-item { display: block; margin-inline: 0; padding: 10px 8px; border: 1px solid var(--line); border-radius: 10px; text-align: center; opacity: .78; }
  .version-item.active { color: #fff; border-color: var(--accent); background: var(--accent); }
  .version-item::before, .version-text span { display: none; }
  .version-index { display: block; margin-bottom: 2px; padding: 0; color: inherit; }
  .version-text strong { font-size: 10px; white-space: nowrap; }
  .version-text { display: block; min-width: 0; }
  .version-text strong { overflow: hidden; text-overflow: ellipsis; }
  .stage { order: 1; width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); min-height: 610px; }
  .phone-scene { padding-top: 0; }
  .phone { width: min(52vw, 230px); height: auto; }
  .phone-shadow { top: calc(50% + min(27vh, 245px)); }
  .stage-arrow { opacity: 1; }
  .stage-hint { display: none; }
  .details-panel { order: 3; width: 100%; min-width: 0; padding: 28px 22px; border: 0; border-top: 1px solid var(--line); }
  .detail-main { padding: 45px 0; }
  .detail-main h2 { max-width: none; }
  .detail-main > p { max-width: none; }
  .detail-actions { grid-template-columns: 1fr 1fr; }
  .footer-bar { padding-inline: 18px; }
  .footer-bar p, .keyboard-hints { display: none; }
  .overview { overflow: auto; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); min-height: 900px; }
  .mini-phone { width: min(27vw, 140px); }
}

@media (max-width: 520px) {
  .brand-logo { width: 101px; }
  .viewer { min-height: 0; }
  .stage { min-height: 560px; }
  .phone-scene { padding-top: 0; }
  .version-item { padding-inline: 3px; }
  .version-text strong { font-size: 9px; }
  .detail-actions { grid-template-columns: 1fr; }
  .overview { padding: 20px; }
  .overview-head h2 { max-width: 8em; }
  .overview-grid { gap: 1px; }
  .overview-card { padding: 14px 10px; }
  .mini-phone { width: 30vw; }
}

/* Premium silver hardware shell — sampled from the supplied device mockup. */
.phone.reference-image-device {
  height: min(calc(100% - 16px), 752px);
  aspect-ratio: 2150 / 4417;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: clamp(31px, 4.1vh, 42px);
  background: transparent url("./assets/phone-silver-frame.png") center / 100% 100% no-repeat;
  box-shadow: none;
  filter:
    drop-shadow(0 34px 32px rgba(32, 53, 91, .25))
    drop-shadow(0 10px 13px rgba(23, 39, 70, .18));
}

.phone.reference-image-device .phone-screen {
  position: absolute;
  top: 1.75%;
  right: 4.7%;
  bottom: 2.65%;
  left: 4.7%;
  z-index: 1;
  width: auto;
  height: auto;
  overflow: hidden;
  border-radius: clamp(24px, 3.15vh, 30px);
  background: #0d151f;
  box-shadow: 0 0 0 .6px rgba(255,255,255,.08);
}

.phone.reference-image-device:hover {
  transform: translateY(-4px);
  filter:
    drop-shadow(0 40px 36px rgba(32, 53, 91, .28))
    drop-shadow(0 12px 15px rgba(23, 39, 70, .2));
}

@media (max-width: 820px) {
  .phone.reference-image-device {
    width: min(55vw, 244px);
    height: auto;
  }
}

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

/* --------------------------------------------------------------------------
   Electric Intelligence design system
   Extracted from the supplied Boltshift-style AI productivity reference.
   This final layer themes the showroom shell only; embedded app HTML remains
   isolated inside its iframes and keeps its original visuals and behavior.
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --ink: #f4f9ff;
  --paper: #020711;
  --line: rgba(71, 145, 255, .2);
  --muted: #91a5c2;
  --accent: #168cff;
  --accent-soft: #1de5ff;
  --text-secondary: #b2c1d6;
  --text-tertiary: #7188a8;
  --surface: rgba(7, 20, 39, .82);
  --surface-solid: #071426;
  --shadow-soft: 0 24px 64px rgba(0, 5, 16, .44);
  --shadow-float: 0 34px 90px rgba(0, 8, 26, .68);
  --radius-panel: 16px;
  --radius-control: 10px;
  --electric-border: rgba(55, 139, 255, .28);
  --electric-glow: 0 0 16px rgba(22, 140, 255, .23), 0 0 44px rgba(22, 140, 255, .1);
  --electric-grid: rgba(54, 111, 190, .065);
}

html { background: var(--paper); }

body {
  color: var(--ink);
  background: var(--paper);
}

::selection {
  color: #001124;
  background: #67dfff;
}

button:focus-visible,
label:has(+ input:focus-visible) {
  outline-color: #68dfff;
  box-shadow: 0 0 0 4px rgba(22, 140, 255, .18);
}

.ambient {
  background:
    radial-gradient(ellipse 34% 58% at 50% 48%, rgba(0, 103, 255, .18), transparent 72%),
    radial-gradient(circle at 92% 2%, rgba(19, 104, 230, .12), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(0, 74, 184, .09), transparent 34%),
    linear-gradient(152deg, #061326 0%, #020916 46%, #01040a 78%, #000205 100%);
}

.ambient::before {
  opacity: .7;
  background-image:
    linear-gradient(var(--electric-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--electric-grid) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 78% 86% at 50% 51%, #000 20%, transparent 92%);
}

.ambient::after {
  opacity: 1;
  background:
    radial-gradient(ellipse 76% 68% at 50% 45%, transparent 45%, rgba(0, 2, 7, .58) 100%),
    linear-gradient(90deg, rgba(0, 2, 8, .28), transparent 16% 84%, rgba(0, 2, 8, .32));
}

.ambient .orb {
  opacity: .5;
  filter: blur(48px);
  mix-blend-mode: screen;
}

.ambient .orb-one {
  top: -18vw;
  right: 2vw;
  background: rgba(25, 118, 255, .16);
}

.ambient .orb-two {
  bottom: -17vw;
  left: 28vw;
  background: rgba(0, 179, 255, .12);
}

.grain {
  opacity: .045;
  mix-blend-mode: screen;
}

.showcase-shell {
  grid-template-rows: 68px minmax(0, 1fr) 52px;
  gap: 10px;
  padding: 10px;
}

.topbar,
.footer-bar {
  color: var(--ink);
  border: 1px solid rgba(53, 119, 216, .19);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(11, 28, 52, .8), rgba(3, 12, 25, .86));
  box-shadow:
    inset 0 1px 0 rgba(162, 208, 255, .05),
    0 18px 50px rgba(0, 4, 14, .24);
  backdrop-filter: blur(24px) saturate(135%);
}

.brand-logo {
  width: 110px;
  filter: invert(1) brightness(1.22);
  opacity: .98;
}

.project-meta {
  color: #aabbd2;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: .055em;
}

.project-meta i {
  width: 5px;
  height: 5px;
  background: #40a9ff;
  box-shadow: 0 0 0 5px rgba(22, 140, 255, .08), 0 0 18px rgba(22, 140, 255, .7);
}

.icon-button {
  color: #eaf6ff;
  border-color: rgba(92, 171, 255, .38);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(36, 147, 255, .95), rgba(7, 92, 207, .92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    0 0 12px rgba(31, 151, 255, .5),
    0 0 28px rgba(11, 106, 255, .3);
}

.icon-button:hover {
  color: #fff;
  border-color: #87ddff;
  background: linear-gradient(180deg, #45baff, #0c78e8);
  box-shadow: 0 0 18px rgba(45, 174, 255, .7), 0 0 36px rgba(15, 104, 255, .36);
  transform: translateY(-1px);
}

.viewer { gap: 10px; }

.version-nav,
.details-panel {
  color: var(--ink);
  border-color: var(--electric-border);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(152deg, rgba(11, 30, 55, .88), rgba(3, 13, 27, .9) 56%, rgba(4, 17, 34, .86));
  box-shadow:
    inset 0 1px 0 rgba(144, 199, 255, .055),
    inset 0 0 55px rgba(0, 10, 27, .34),
    0 24px 64px rgba(0, 4, 14, .28);
  backdrop-filter: blur(26px) saturate(135%);
}

.eyebrow {
  color: #6882a7;
  letter-spacing: .23em;
  text-shadow: 0 0 20px rgba(22, 140, 255, .18);
}

.version-item {
  color: #a6b9d0;
  margin-inline: -8px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  opacity: .48;
}

.version-item:hover {
  color: #e4f2ff;
  opacity: .82;
  border-color: rgba(64, 145, 255, .18);
  background: rgba(18, 73, 145, .1);
  transform: translateX(3px);
}

.version-item.active {
  color: #fff;
  opacity: 1;
  border-color: rgba(71, 161, 255, .55);
  background:
    radial-gradient(circle at 82% 20%, rgba(72, 198, 255, .16), transparent 42%),
    linear-gradient(135deg, rgba(20, 116, 255, .48), rgba(5, 42, 102, .54));
  box-shadow:
    inset 0 1px 0 rgba(169, 219, 255, .18),
    inset 0 0 22px rgba(17, 129, 255, .11),
    0 0 18px rgba(22, 140, 255, .14);
}

.version-item::before {
  display: block;
  top: 50%;
  left: -17px;
  width: 0;
  height: 28px;
  border-radius: 0 3px 3px 0;
  background: #2da5ff;
  box-shadow: 0 0 10px rgba(45, 165, 255, .9), 0 0 24px rgba(22, 140, 255, .45);
  transform: translateY(-50%);
}

.version-item.active::before { width: 3px; }
.version-index { color: #309eff; text-shadow: 0 0 12px rgba(22, 140, 255, .48); }
.version-item.active .version-index { color: #74d9ff; }
.version-text span { color: #627b9c; }
.version-item.active .version-text span { color: #91b5dd; }

.progress-track {
  height: 2px;
  border-radius: 99px;
  background: rgba(76, 131, 201, .16);
}

.progress-track i {
  border-radius: inherit;
  background: linear-gradient(90deg, #176cff, #29b9ff);
  box-shadow: 0 0 12px rgba(31, 151, 255, .7);
}

.nav-foot > span { color: #5f7899; }
.nav-foot b { color: #cfe7ff; }

.stage {
  overflow: hidden;
  border: 1px solid rgba(49, 127, 236, .28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 49%, rgba(0, 112, 255, .24) 0 11%, rgba(0, 82, 210, .13) 22%, transparent 48%),
    radial-gradient(ellipse 58% 76% at 50% 52%, rgba(8, 96, 230, .12), transparent 70%),
    linear-gradient(var(--electric-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--electric-grid) 1px, transparent 1px),
    linear-gradient(145deg, #07162b, #020a17 54%, #01050d);
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
  box-shadow:
    inset 0 1px 0 rgba(139, 201, 255, .08),
    inset 0 0 140px rgba(0, 2, 10, .65),
    0 26px 70px rgba(0, 3, 12, .36);
}

.stage::before,
.stage::after {
  z-index: 1;
  width: 15px;
  height: 15px;
  border-radius: 0;
  background: transparent;
  filter: none;
  opacity: .62;
  border-color: rgba(76, 167, 255, .7);
}

.stage::before {
  top: 18px;
  left: 18px;
  border-width: 1px 0 0 1px;
}

.stage::after {
  right: 18px;
  bottom: 18px;
  border-width: 0 1px 1px 0;
}

.phone-scene::before,
.phone-scene::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.phone-scene::before {
  z-index: 0;
  width: min(72%, 760px);
  height: 1px;
  opacity: .55;
  background: linear-gradient(90deg, transparent, rgba(36, 144, 255, .75) 22%, transparent 43% 57%, rgba(36, 144, 255, .75) 78%, transparent);
  box-shadow: 0 0 12px rgba(22, 140, 255, .5);
}

.phone-scene::after {
  z-index: 0;
  width: min(31vw, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .92;
  background:
    radial-gradient(circle, transparent 39%, rgba(30, 208, 255, .2) 40%, rgba(17, 118, 255, .4) 42%, transparent 46%),
    radial-gradient(circle, rgba(0, 105, 255, .2), rgba(0, 51, 155, .08) 48%, transparent 69%);
  filter: drop-shadow(0 0 18px rgba(16, 149, 255, .5)) drop-shadow(0 0 54px rgba(0, 75, 255, .26));
}

.scene-number { display: none; }

.orbit {
  z-index: 1;
  border-color: rgba(44, 181, 255, .58);
  box-shadow:
    inset 0 0 36px rgba(0, 151, 255, .09),
    0 0 12px rgba(38, 180, 255, .46),
    0 0 54px rgba(15, 88, 255, .22);
  will-change: transform;
}

.orbit-one {
  width: min(30vw, 410px);
  height: min(30vw, 410px);
  border-width: 2px;
  border-style: solid dashed solid solid;
  animation: electric-orbit-a 18s linear infinite;
}

.orbit-two {
  width: min(24vw, 340px);
  height: min(39vw, 560px);
  border-style: dashed solid solid dashed;
  opacity: .78;
  animation: electric-orbit-b 24s linear infinite;
}

@keyframes electric-orbit-a {
  to { transform: translate(-50%, -50%) rotate(342deg); }
}

@keyframes electric-orbit-b {
  to { transform: translate(-50%, -50%) rotate(391deg); }
}

.phone {
  z-index: 3;
  border-color: rgba(157, 194, 225, .76);
  background: linear-gradient(145deg, #617080 0%, #111923 18% 74%, #7b8794 100%);
  box-shadow:
    0 48px 72px rgba(0, 2, 9, .74),
    0 0 46px rgba(16, 128, 255, .2),
    0 12px 26px rgba(0, 4, 13, .7),
    inset 0 0 0 1px rgba(230, 245, 255, .2);
}

.phone.reference-image-device {
  filter:
    drop-shadow(0 38px 34px rgba(0, 4, 17, .72))
    drop-shadow(0 0 24px rgba(23, 126, 255, .2));
}

.phone.reference-image-device:hover {
  filter:
    drop-shadow(0 44px 38px rgba(0, 4, 17, .74))
    drop-shadow(0 0 34px rgba(23, 126, 255, .3));
}

.phone-shadow {
  z-index: 1;
  opacity: .62;
  background: rgba(0, 112, 255, .32);
  filter: blur(30px);
}

.stage-arrow {
  color: #d8efff;
  border-color: rgba(71, 158, 255, .34);
  background: linear-gradient(145deg, rgba(16, 41, 72, .88), rgba(3, 12, 25, .92));
  box-shadow:
    inset 0 1px 0 rgba(169, 218, 255, .08),
    0 10px 30px rgba(0, 4, 15, .42),
    0 0 18px rgba(22, 140, 255, .08);
}

.stage-arrow:hover {
  color: #fff;
  border-color: #65cfff;
  background: linear-gradient(180deg, #2aabff, #0a6de0);
  box-shadow: 0 0 22px rgba(34, 161, 255, .58), 0 12px 30px rgba(0, 42, 118, .44);
}

.stage-hint { color: #5f789a; }
.stage-hint i { background: #2da5ff; box-shadow: 0 0 10px rgba(45, 165, 255, .9); }

.version-code {
  color: #72caff;
  border-color: rgba(65, 158, 255, .34);
  background: rgba(17, 79, 151, .16);
  box-shadow: inset 0 1px 0 rgba(171, 220, 255, .06), 0 0 18px rgba(22, 140, 255, .08);
}

.detail-main h2 {
  color: #f5faff;
  text-shadow: 0 0 30px rgba(30, 137, 255, .12);
  text-wrap: balance;
}

.detail-main > p { color: #8197b5; }
.palette-block > span { color: #b9cbe0; }

.palette button {
  border-color: #081426;
  box-shadow: 0 0 0 1px rgba(105, 172, 255, .22), 0 0 16px rgba(16, 110, 255, .08);
}

.keywords span {
  color: #91a9c5;
  border-color: rgba(72, 145, 235, .24);
  background: rgba(13, 43, 82, .22);
  box-shadow: inset 0 1px 0 rgba(154, 205, 255, .035);
}

.upload-button,
.play-button {
  color: #fff;
  border-color: #62cbff;
  background: linear-gradient(180deg, #28a9ff, #096fdd 58%, #0758b9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    0 0 16px rgba(31, 151, 255, .5),
    0 12px 32px rgba(0, 67, 167, .32);
}

.upload-button:hover,
.play-button:hover {
  color: #fff;
  border-color: #62cbff;
  background: linear-gradient(180deg, #28a9ff, #096fdd 58%, #0758b9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    0 0 24px rgba(31, 151, 255, .66),
    0 16px 36px rgba(0, 67, 167, .4);
}

.footer-bar p {
  color: #536b8d;
  font-family: var(--font-mono);
  letter-spacing: .11em;
}

.overview-button { color: #a8bed7; }
.overview-button:hover { color: #53baff; }

kbd {
  color: #82a1c6;
  border-color: rgba(72, 145, 235, .22);
  background: rgba(12, 37, 70, .26);
  box-shadow: inset 0 -2px 0 rgba(0, 3, 12, .36), 0 0 14px rgba(22, 140, 255, .04);
}

.overview {
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 108%, rgba(0, 113, 255, .2), transparent 43%),
    linear-gradient(145deg, #061426, #010610 66%);
}

.overview-head .eyebrow { color: #6683a9; }
.overview-close { color: #d9efff; border-color: rgba(72, 145, 235, .32); }
.overview-close:hover { color: #fff; border-color: #5bc5ff; background: #0e80ed; box-shadow: 0 0 22px rgba(22, 140, 255, .38); }
.overview-grid { border-color: rgba(65, 139, 231, .2); background: rgba(41, 111, 204, .13); }

.overview-card {
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 84%, rgba(0, 107, 255, .12), transparent 38%),
    linear-gradient(155deg, #0b203b, #030b18 68%);
}

.overview-card-top { color: #6e89aa; }
.overview-card-footer small { color: #7289a8; }
.mini-phone { border-color: rgba(130, 186, 234, .38); background: #020814; box-shadow: 0 28px 54px rgba(0, 3, 12, .6), 0 0 28px rgba(22, 140, 255, .1); }

.toast {
  color: #fff;
  border: 1px solid rgba(107, 201, 255, .7);
  background: rgba(7, 104, 216, .94);
  box-shadow: 0 0 24px rgba(22, 140, 255, .42), 0 14px 34px rgba(0, 4, 16, .5);
}

@media (max-width: 820px) {
  .showcase-shell { gap: 8px; padding: 8px; }
  .topbar,
  .footer-bar,
  .version-nav,
  .details-panel,
  .stage { border-radius: 13px; }
  .version-item { margin-inline: 0; border-color: rgba(64, 145, 255, .16); background: rgba(7, 28, 57, .48); }
  .version-item.active { border-color: rgba(82, 174, 255, .64); }
  .version-item::before { display: none; }
  .details-panel,
  .version-nav { border-color: rgba(55, 139, 255, .22); }
  .phone-scene::after { width: min(66vw, 360px); }
}

@media (max-width: 520px) {
  .showcase-shell { grid-template-rows: 60px auto 50px; }
  .brand-logo { width: 98px; }
  .stage { min-height: 570px; }
  .phone-scene::before { width: 88%; }
}

/* Dual-device hero — the second handset presents the companion screen state. */
.phone-deck {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(calc(100% - 156px), 720px);
  height: 100%;
  gap: clamp(18px, 1.8vw, 26px);
  perspective: 1500px;
}

.phone-deck .phone {
  flex: 0 0 auto;
  height: min(calc(100% - 92px), 620px);
  animation-delay: 60ms;
}

.phone-deck .phone.reference-image-device {
  height: min(calc(100% - 92px), 620px);
}

.phone-primary {
  transform: none;
}

.phone-companion {
  pointer-events: none;
  opacity: 1;
  transform: none;
  animation-delay: 170ms;
}

.companion-static-preview,
.companion-static-preview .embedded-design {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 1;
  transform: none;
}

.phone-primary:hover {
  transform: translateY(-4px);
}

.phone-companion:hover {
  transform: none;
}

.phone-primary.is-switching,
.phone-companion.is-switching {
  opacity: 0;
  transform: translateY(14px) scale(.96);
}

.phone-deck .phone.reference-image-device:hover {
  transform: translateY(-4px);
}

.phone-deck .phone-companion.reference-image-device,
.phone-deck .phone-companion.reference-image-device:hover {
  transform: none;
}

.phone-deck .phone-companion.reference-image-device.is-switching {
  transform: translateY(14px) scale(.96);
}

.phone-deck + .stage-arrow,
.phone-deck ~ .stage-arrow {
  z-index: 12;
}

@media (max-width: 1180px) {
  .phone-deck {
    width: min(calc(100% - 120px), 640px);
    gap: 14px;
  }

  .phone-deck .phone,
  .phone-deck .phone.reference-image-device {
    height: min(calc(100% - 104px), 550px);
  }
}

@media (max-width: 820px) {
  .phone-deck {
    width: 100%;
    gap: 0;
  }

  .phone-deck .phone,
  .phone-deck .phone.reference-image-device {
    width: min(55vw, 244px);
    height: auto;
  }

  .phone-primary,
  .phone-primary:hover,
  .phone-deck .phone.reference-image-device:hover {
    transform: none;
  }

  .phone-companion { display: none; }
}

/* Right-side narrative: remove keyword chips and tighten the vertical rhythm. */
.details-panel .keywords {
  display: none;
}

.details-panel .detail-main {
  justify-content: flex-start;
  padding-top: clamp(16px, 2.2vh, 28px);
}

.details-panel .interaction-description {
  position: relative;
  z-index: 2;
  display: block;
  visibility: visible;
  opacity: 1;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(91, 158, 237, .18);
  font-size: 0.6875rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.details-panel .interaction-description strong {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.details-panel #detailDescription {
  color: rgba(255, 255, 255, 0.8);
}

.details-panel .interaction-description span {
  display: block;
}

.details-panel .interaction-description span + span {
  margin-top: 7px;
}

.details-panel .interaction-description + .palette-block {
  margin-top: 22px;
}

@media (max-width: 820px) {
  .details-panel .detail-main {
    padding: 36px 0 20px;
  }
}
