/* ============================================================
   AIALPHAVIDEOS.CLOUD — Create / Onboarding flow
   Builds on styles.css tokens. 4-step wizard.
   ============================================================ */

/* ---------- shell ---------- */
.nav-slim { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; position: relative; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg-soft);
  padding: 9px 15px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--gold); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 var(--gold-glow);} 70%{box-shadow:0 0 0 7px transparent;} 100%{box-shadow:0 0 0 0 transparent;} }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; border-radius: 10px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--fg); margin: 4px auto; transition: .3s; }
.nav-slim .exit { font-size: 14px; font-weight: 600; color: var(--fg-mute); transition: color .2s; }
.nav-slim .exit:hover { color: var(--gold); }

.create { padding: clamp(22px,4vw,40px) 0 110px; }
.create-head { max-width: 760px; margin: 0 auto clamp(26px,4vw,40px); text-align: center; }
.create-head .eyebrow { margin-bottom: 16px; }
.create-head .eyebrow::before { display: none; }
.create-head h1 { font-size: clamp(28px,4vw,46px); line-height: 1.02; }
.create-head h1 .stroke { background: linear-gradient(180deg,var(--gold),var(--gold-deep)); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* ---------- top stepper ---------- */
.flow-steps { display: flex; align-items: center; max-width: 720px; margin: 0 auto clamp(28px,4vw,44px); }
.flow-steps .node { display: flex; flex-direction: column; align-items: center; gap: 9px; position: relative; }
.flow-steps .node .ball {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  border: 1px solid var(--line-2); color: var(--fg-mute); background: var(--surface-2);
  transition: .35s var(--ease); position: relative;
}
.flow-steps .node .ball svg { width: 19px; height: 19px; }
.flow-steps .node.active .ball { background: linear-gradient(180deg,var(--gold),var(--gold-2)); color:#1a1400; border-color: transparent; box-shadow: 0 0 0 5px var(--gold-glow); transform: scale(1.06); }
.flow-steps .node.done .ball { background: rgba(233,196,106,0.16); color: var(--gold); border-color: rgba(233,196,106,0.3); }
.flow-steps .node .lbl { font-family: var(--display); font-size: 12.5px; font-weight: 600; color: var(--fg-mute); letter-spacing: .01em; white-space: nowrap; }
.flow-steps .node.active .lbl { color: var(--fg); }
.flow-steps .node.done .lbl { color: var(--fg-soft); }
.flow-steps .seg { flex: 1; height: 2px; background: var(--line-2); margin: 0 8px; position: relative; top: -16px; border-radius: 2px; overflow: hidden; }
.flow-steps .seg::after { content:""; position:absolute; inset:0; width:0; background: linear-gradient(90deg,var(--gold),var(--gold-2)); transition: width .5s var(--ease); }
.flow-steps .seg.fill::after { width: 100%; }

/* ---------- panel card ---------- */
.flow-card {
  max-width: 880px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg,var(--surface),var(--bg-1));
  padding: clamp(24px,3.4vw,44px);
  box-shadow: 0 50px 110px -60px #000;
}
.panel { display: none; }
.panel.active { display: block; opacity: 1; animation: pfade .45s var(--ease); }
@keyframes pfade { from{ transform: translateY(12px);} to{ transform:none;} }

.panel-head { margin-bottom: 26px; }
.panel-head h2 { font-size: clamp(22px,3vw,30px); }
.panel-head .lede { font-size: 15.5px; color: var(--fg-mute); margin-top: 9px; max-width: 560px; }

/* ---------- method tabs (photo & voice) ---------- */
.mtabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); margin-bottom: 22px; }
.mtabs button { font-family: var(--display); font-weight: 600; font-size: 13.5px; padding: 9px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--fg-mute); cursor: pointer; transition: .25s; display: inline-flex; align-items: center; gap: 8px; }
.mtabs button svg { width: 15px; height: 15px; }
.mtabs button.on { background: linear-gradient(180deg,var(--gold),var(--gold-2)); color: #1a1400; }
.mtab-pane { display: none; }
.mtab-pane.on { display: block; }

/* ---------- dropzone ---------- */
.dropzone {
  border: 1.5px dashed var(--line-2); border-radius: var(--radius);
  background: rgba(255,255,255,0.015);
  padding: clamp(30px,5vw,56px) 28px; text-align: center; cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
}
.dropzone:hover { border-color: var(--gold); background: var(--gold-glow); }
.dropzone.drag { border-color: var(--gold); background: var(--gold-glow); transform: scale(1.01); }
.dropzone .dz-icon { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--gold-glow); border: 1px solid rgba(233,196,106,0.3); color: var(--gold); }
.dropzone .dz-icon svg { width: 30px; height: 30px; }
.dropzone h3 { font-size: 19px; }
.dropzone p { font-size: 14px; color: var(--fg-mute); margin-top: 7px; }
.dropzone .dz-formats { font-size: 12px; color: var(--fg-faint); margin-top: 16px; font-family: var(--display); letter-spacing: .04em; }
.dz-or { text-align: center; color: var(--fg-faint); font-size: 13px; margin: 16px 0; font-family: var(--display); letter-spacing: .1em; }

.asset-id-field {
  width: min(960px, 100%);
  margin: 16px auto 0;
  text-align: center;
}
.asset-id-field label {
  display: block;
  margin-bottom: 10px;
  text-align: center;
}
.asset-id-field input {
  width: 100%;
  max-width: none;
  display: block;
  padding: 0 12px;
  height: 30px;
  min-height: 30px;
  font-size: 14px;
}
.asset-id-preview {
  width: min(294px, 100%);
  margin: 0 auto 12px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
}
.asset-id-preview img {
  display: block;
  width: 100%;
  height: 147px;
  object-fit: cover;
  background: #0c0d11;
}
.asset-id-preview__meta {
  padding: 8px 10px 10px;
  text-align: left;
}
.asset-id-preview__tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(233,196,106,0.28);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--gold);
  background: var(--gold-glow);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.asset-id-preview__meta strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  word-break: break-word;
}
.asset-id-preview__hint {
  display: inline-block;
  margin-top: 5px;
  color: var(--fg-faint);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sample-avatars {
  max-width: 980px;
  margin: 0 auto;
}
.sample-avatars__head {
  text-align: center;
  margin-bottom: 18px;
}
.sample-avatars__head h3 {
  font-size: 24px;
}
.sample-avatars__head p {
  margin-top: 8px;
  color: var(--fg-mute);
}
.sample-avatars__status {
  min-height: 22px;
  margin-bottom: 16px;
  text-align: center;
  color: var(--fg-faint);
  font-size: 13px;
  font-family: var(--display);
  letter-spacing: .03em;
}
.sample-avatars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.sample-avatar-card {
  border: 1px solid var(--line-2);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.sample-avatar-card:hover {
  border-color: rgba(233,196,106,0.6);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}
.sample-avatar-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #0c0d11;
}
.sample-avatar-card--contain img {
  object-fit: contain;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
    #0c0d11;
}
.sample-avatar-card__body {
  padding: 14px 16px 16px;
  text-align: left;
  color: #f6f5f1;
}
.sample-avatar-card__body strong {
  display: block;
  font-size: 15px;
  word-break: break-word;
  color: #f6f5f1;
}
.sample-avatar-card__filename {
  color: #f6f5f1;
}
.sample-avatar-card__meta {
  margin-top: 8px;
  color: #8b8e96;
  font-size: 12px;
  text-transform: capitalize;
}
.sample-avatar-card__meta--assetid {
  text-transform: none;
}
.sample-avatars__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}
.sample-avatars__pager span {
  min-width: 90px;
  text-align: center;
  color: var(--fg-mute);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sample-audio {
  max-width: 980px;
  margin: 0 auto;
}
.sample-audio__head {
  text-align: center;
  margin-bottom: 18px;
}
.sample-audio__head h3 {
  font-size: 24px;
}
.sample-audio__head p {
  margin-top: 8px;
  color: var(--fg-mute);
}
.sample-audio__status {
  min-height: 22px;
  margin-bottom: 16px;
  text-align: center;
  color: var(--fg-faint);
  font-size: 13px;
  font-family: var(--display);
  letter-spacing: .03em;
}
.sample-audio__list {
  display: grid;
  gap: 14px;
}
.sample-audio-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
}
.sample-audio-card__meta {
  min-width: 0;
}
.sample-audio-card__meta strong {
  display: block;
  font-size: 15px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.sample-audio-card__meta span {
  display: block;
  margin-top: 6px;
  color: var(--fg-mute);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.sample-audio-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sample-audio-card audio {
  width: 210px;
  max-width: 100%;
}
.sample-audio__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}
.sample-audio__pager span {
  min-width: 90px;
  text-align: center;
  color: var(--fg-mute);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- live camera ---------- */
.camera-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); aspect-ratio: 4/3; max-width: 520px; margin: 0 auto; display: grid; place-items: center; }
.camera-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; transform: scaleX(-1); }
.camera-stage .cam-placeholder { color: var(--fg-mute); text-align: center; padding: 30px; }
.camera-stage .cam-placeholder svg { width: 40px; height: 40px; margin-bottom: 12px; color: var(--fg-faint); }
.camera-stage .guide { position: absolute; inset: 0; pointer-events: none; }
.camera-stage .guide .ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-52%); width: 56%; aspect-ratio: 1; border: 2px dashed rgba(233,196,106,0.45); border-radius: 50%; }
.cam-controls { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.shutter { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--gold); background: var(--gold); cursor: pointer; display: grid; place-items: center; transition: .2s; box-shadow: 0 0 0 4px var(--gold-glow); }
.shutter:hover { transform: scale(1.05); }
.shutter::after { content:""; width: 50px; height: 50px; border-radius: 50%; border: 2px solid #1a1400; }

/* ---------- crop / reposition ---------- */
.cropper { max-width: 420px; margin: 0 auto; }
.crop-frame { position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line-2); cursor: grab; touch-action: none; }
.crop-frame.grabbing { cursor: grabbing; }
.crop-frame img { position: absolute; left: 50%; top: 50%; transform-origin: center; user-select: none; pointer-events: none; max-width: none; }
.crop-frame.fit-mode { cursor: default; }
.crop-frame.fit-mode img {
  left: 0;
  top: 0;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  object-fit: contain;
}
.crop-frame.fit-mode .mask {
  display: none;
}
.crop-frame .mask { position: absolute; inset: 0; pointer-events: none; box-shadow: 0 0 0 2000px rgba(7,8,10,0.55) inset; }
.crop-frame .mask .hole { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 78%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 2000px rgba(7,8,10,0.55); border: 2px solid rgba(233,196,106,0.6); }
.crop-tools { margin-top: 18px; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.crop-tools .zlabel { font-size: 12px; color: var(--fg-mute); font-family: var(--display); flex-shrink: 0; }
.zoom { -webkit-appearance: none; appearance: none; flex: 1; min-width: 60px; height: 4px; border-radius: 99px; background: var(--line-2); outline: none; }
.zoom::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); cursor: pointer; box-shadow: 0 0 0 4px var(--gold-glow); }
.zoom::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--gold); cursor: pointer; }
.fit-toggle {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.03);
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}
.fit-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.fit-toggle.on {
  background: var(--gold-glow);
  border-color: rgba(233,196,106,0.28);
  color: var(--gold);
}

/* ---------- voice / recorder ---------- */
.teleprompter { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 22px 24px; margin-bottom: 24px; position: relative; }
.teleprompter .tp-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.tp-tag__label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.tp-lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.tp-lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg-mute);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.tp-lang-toggle button:hover { color: var(--fg); }
.tp-lang-toggle button.active {
  background: linear-gradient(180deg,var(--gold),var(--gold-2));
  color: #1a1400;
  box-shadow: 0 0 0 1px rgba(233,196,106,0.28);
}
.teleprompter p { font-size: clamp(17px,2.2vw,21px); line-height: 1.5; color: var(--fg-soft); font-family: var(--display); font-weight: 400; }
.teleprompter .swap { display: block; width: fit-content; margin: 12px 0 0 auto; font-size: 12px; color: var(--fg-mute); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; cursor: pointer; font-family: var(--display); font-weight: 600; transition: .2s; }
.teleprompter .swap:hover { color: var(--gold); border-color: var(--gold); }

.recorder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.015);
  padding: 14px 18px 16px;
  text-align: center;
}
.wave-wrap { position: relative; height: 52px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.wave-wrap canvas { width: 100%; height: 100%; display: block; }
.rec-timer { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1; }
.rec-timer .target { font-size: 13px; color: var(--fg-faint); }
.rec-hint { font-size: 12px; color: var(--fg-mute); margin-top: 3px; line-height: 1.35; }
.rec-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: nowrap; }
.rec-controls .btn { padding: 12px 18px; font-size: 13px; }
.rec-btn { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--line-2); background: var(--surface-2); cursor: pointer; display: grid; place-items: center; transition: .25s; }
.rec-btn .glyph { width: 20px; height: 20px; border-radius: 50%; background: #e5484d; transition: .25s var(--ease); }
.rec-btn:hover { border-color: #e5484d; }
.rec-btn.recording { border-color: #e5484d; box-shadow: 0 0 0 5px rgba(229,72,77,0.18); }
.rec-btn.recording .glyph { border-radius: 5px; width: 18px; height: 18px; }
.audio-review { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 18px; margin-top: 4px; background: var(--bg); }
.audio-review audio { width: 100%; }
.mini-player { display: flex; align-items: center; gap: 14px; width: 100%; position: relative; }
.mini-player .pp { width: 44px; height: 44px; border-radius: 50%; flex: none; border: 0; cursor: pointer; background: linear-gradient(180deg,var(--gold),var(--gold-2)); color:#1a1400; display: grid; place-items: center; position: relative; z-index: 2; pointer-events: auto; touch-action: manipulation; }
.mini-player .pp.stop { width: 40px; height: 40px; background: rgba(255,255,255,0.06); color: var(--fg); border: 1px solid var(--line-2); }
.mini-player .pp svg { width: 18px; height: 18px; }
.mini-player .mp-wave { flex: 1; height: 36px; display: flex; align-items: center; gap: 2px; overflow: hidden; pointer-events: none; }
.mini-player .mp-wave i { flex: 1; min-width: 2px; background: var(--line-2); border-radius: 2px; transition: background .1s; }
.mini-player .mp-wave i.on { background: var(--gold); }
.mini-player .mp-time { font-family: var(--display); font-size: 13px; color: var(--fg-mute); font-variant-numeric: tabular-nums; }
.audio-seek { margin-top: 12px; }
.audio-seek__slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--line-2);
  outline: none;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  touch-action: pan-x;
}
.audio-seek__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.audio-seek__slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}

/* ---------- style gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button { font-family: var(--display); font-weight: 600; font-size: 13px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.02); color: var(--fg-soft); cursor: pointer; transition: .2s; }
.filters button:hover { border-color: var(--fg-mute); color: var(--fg); }
.filters button.on { background: linear-gradient(180deg,var(--gold),var(--gold-2)); color: #1a1400; border-color: transparent; }

.vgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.vcard { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--surface); transition: border-color .25s, transform .25s; }
.vcard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.vcard.sel { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 18px 40px -22px var(--gold-glow); }
.vcard .vthumb { position: relative; aspect-ratio: 9/16; overflow: hidden; display: grid; place-items: center; }
.vcard .vthumb video, .vcard .vthumb img, .vcard .vthumb canvas { width: 100%; height: 100%; object-fit: cover; }
.vcard .vthumb .preview { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; background: transparent; }
.vcard .vthumb .preview.ready { opacity: 1; }
.vcard .vthumb .grad { position: absolute; inset: 0; }
.vcard .vthumb .noise { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 8px, transparent 8px 16px); mix-blend-mode: overlay; }
.vcard .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.9); width: 48px; height: 48px; border-radius: 50%; background: rgba(7,8,10,0.5); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.25); display: grid; place-items: center; opacity: 0; transition: .25s; }
.vcard:hover .play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.vcard .play svg { width: 18px; height: 18px; color: #fff; }
.vcard .vmeta { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(7,8,10,0.92)); }
.vcard .vmeta b { font-family: var(--display); font-size: 14px; font-weight: 600; display: block; }
.vcard .vmeta span { font-size: 11.5px; color: var(--fg-mute); }
.vcard .vmeta .vdesc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; font-size: 10.5px; line-height: 1.35; color: var(--fg-soft); }
.vcard .vchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.vcard .vchip {
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-soft);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255,255,255,0.03);
}
.vcard .vchip.audio { color: var(--gold); border-color: rgba(233,196,106,0.28); background: var(--gold-glow); }
.vcard .vbadge { position: absolute; top: 10px; left: 10px; font-family: var(--display); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); background: rgba(7,8,10,0.7); border: 1px solid var(--gold-glow); border-radius: 999px; padding: 4px 10px; backdrop-filter: blur(4px); }
.vcard .vdur { position: absolute; top: 10px; right: 10px; font-family: var(--display); font-size: 11px; font-weight: 600; color: #fff; background: rgba(7,8,10,0.7); border-radius: 6px; padding: 3px 7px; backdrop-filter: blur(4px); }
.vcard .vcheck { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(180deg,var(--gold),var(--gold-2)); color:#1a1400; display: none; place-items: center; }
.vcard.sel .vcheck { display: grid; }
.vcard.sel .vdur { display: none; }
.vcard .vthumb .skel { position: absolute; inset: 0; background: linear-gradient(110deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { from{background-position: 200% 0;} to{background-position: -200% 0;} }

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  align-items: stretch;
  justify-content: stretch;
}
.video-modal.open { display: flex; }
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px);
}
.video-modal__sheet {
  position: relative;
  z-index: 1;
  width: min(100vw, 920px);
  margin: auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
}
.video-modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: var(--fg);
  margin-bottom: 14px;
}
.video-modal__eyebrow {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.video-modal__title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}
.video-modal__close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.04);
  color: var(--fg);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.video-modal__close svg { width: 20px; height: 20px; }
.video-modal__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 36px 100px -40px #000;
}
.video-modal__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.video-modal__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.video-modal__play {
  pointer-events: auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(7,8,10,0.42);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.video-modal__play:hover { transform: scale(1.05); background: rgba(233,196,106,0.25); }
.video-modal__play svg { width: 28px; height: 28px; margin-left: 3px; }
.video-modal.playing .video-modal__overlay { opacity: 0; transition: opacity .2s; }
.video-modal__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.video-modal__time {
  font-family: var(--display);
  font-size: 12px;
  color: var(--fg-mute);
  white-space: nowrap;
}
.video-modal__slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--line-2);
  outline: none;
}
.video-modal__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.video-modal__slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.video-modal__hint {
  margin-top: 8px;
  color: var(--fg-faint);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.video-modal__ctrl-btn {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.04);
  color: var(--fg-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: border-color .18s, color .18s, background .18s;
  text-decoration: none;
}
.video-modal__ctrl-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(233,196,106,0.08);
}
.video-modal__ctrl-btn svg { width: 15px; height: 15px; }
.image-modal[hidden] { display: none; }
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
}
.image-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,0.84);
  backdrop-filter: blur(14px);
  cursor: pointer;
}
.image-modal__sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  max-height: min(100%, 96vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(17,20,27,0.98), rgba(10,13,18,0.98));
  box-shadow: 0 40px 120px rgba(0,0,0,0.55);
  overflow: hidden;
}
.image-modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}
.image-modal__meta { min-width: 0; }
.image-modal__eyebrow {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.image-modal__title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  word-break: break-word;
}
.image-modal__close {
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.03);
  color: var(--fg);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.image-modal__stage {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 18px;
}
.image-modal__img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 18px;
  background: #050608;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}
.image-modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 18px 18px;
}
.image-modal__actions .btn {
  flex: 1;
  min-width: 160px;
}

.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; }
.pager button { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.02); color: var(--fg-soft); font-family: var(--display); font-weight: 600; font-size: 14px; cursor: pointer; transition: .2s; display: grid; place-items: center; }
.pager button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.pager button.on { background: linear-gradient(180deg,var(--gold),var(--gold-2)); color:#1a1400; border-color: transparent; }
.pager button:disabled { opacity: .35; cursor: not-allowed; }
.pager .dots { color: var(--fg-faint); padding: 0 4px; }

/* ---------- generate / review ---------- */
.review { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 26px; }
.rev-item { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.rev-item .rv-media { aspect-ratio: 1; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--surface); flex: 1; }
.rev-item--style .rv-media { aspect-ratio: 9 / 16; }
.rev-item--style .rv-foot { background: rgba(255,255,255,0.02); border-top: 1px solid var(--line-2); }
.rev-item .rv-media img, .rev-item .rv-media video { width: 100%; height: 100%; object-fit: cover; }
.rev-item .rv-media .grad { position: absolute; inset: 0; }
.rev-item .rv-media .noise { position: absolute; inset: 0; pointer-events: none; }
.review-player { position: relative; width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg,#12161d,#0a0c11); }
.review-player__art { position: absolute; inset: 0; background: radial-gradient(circle at 50% 38%, rgba(233,196,106,0.2), transparent 45%), linear-gradient(160deg,#1a1f29,#0b0d11); }
.review-player__play {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(7,8,10,0.48);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.review-player__play:hover { transform: scale(1.05); background: rgba(233,196,106,0.22); }
.review-player__play svg { width: 28px; height: 28px; margin-left: 2px; }
.review-player__play.stop svg { width: 21px; height: 21px; margin-left: 0; }
.review .rev-item:nth-child(2) .review-player__play {
  width: 57px;
  height: 57px;
  background: rgba(7,8,10,0.2);
}
.review .rev-item:nth-child(2) .review-player__play svg { width: 18px; height: 18px; }
.review-player__meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  gap: 8px;
}
.review-player__label {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
.review-player__time {
  font-family: var(--display);
  font-size: 12px;
  color: var(--fg-soft);
  font-variant-numeric: tabular-nums;
}
.review-player__seek {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  outline: none;
}
.review-player__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.review-player__seek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.review-style-player {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  min-height: 0;
}
.review-style-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.review-style-player__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(7,8,10,0.48);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s, background .2s, opacity .2s;
  z-index: 2;
}
.review-style-player__play:hover { transform: scale(1.05); background: rgba(233,196,106,0.22); }
.review-style-player__play svg { width: 28px; height: 28px; margin-left: 2px; }
.rev-item--style .review-style-player__play {
  width: 57px;
  height: 57px;
  background: rgba(7,8,10,0.2);
}
.rev-item--style .review-style-player__play svg { width: 18px; height: 18px; }
.review-style-player.playing .review-style-player__play {
  opacity: 1;
  pointer-events: auto;
  background: rgba(7,8,10,0.58);
}
.rev-item .rv-foot { padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; }
.rev-item .rv-foot .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--gold-glow); color: var(--gold); display: grid; place-items: center; flex: none; }
.rev-item .rv-foot .ic svg { width: 15px; height: 15px; }
.rev-item .rv-foot b { font-family: var(--display); font-size: 12.5px; display: block; }
.rev-item .rv-foot span { font-size: 11px; color: var(--fg-mute); }
.final-prompt { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); padding: 16px; margin: 10px 0 26px; }
.final-prompt__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.final-prompt__label { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.final-prompt__hint { font-size: 12px; color: var(--fg-faint); }
.final-prompt__box {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.02);
  color: var(--fg-soft);
  padding: 14px 16px;
  font-family: var(--display);
  font-size: 13px;
  line-height: 1.55;
  outline: none;
}
.final-prompt__box:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-glow); }

.api-provider-1-response { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,0.02); padding: 16px; margin: 10px 0 26px; }
.api-provider-1-response__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.api-provider-1-response__label { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.api-provider-1-response__hint { font-size: 12px; color: var(--fg-faint); }
.api-provider-1-response__box {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.02);
  color: var(--fg-soft);
  padding: 14px 16px;
  font-family: var(--display);
  font-size: 13px;
  line-height: 1.55;
  outline: none;
  white-space: pre;
}
.api-provider-1-response__box:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-glow); }

.settings-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.setting { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; font-size: 13px; color: var(--fg-soft); font-family: var(--display); font-weight: 600; }
.setting .k { color: var(--fg-mute); font-weight: 500; }
.setting svg { width: 15px; height: 15px; color: var(--gold); }

/* generating overlay state */
.genstate { text-align: center; padding: 12px 0; }
.gen-orb { width: 120px; height: 120px; margin: 6px auto 26px; position: relative; }
.gen-orb .core { position: absolute; inset: 22px; border-radius: 50%; background: linear-gradient(180deg,var(--gold),var(--gold-deep)); box-shadow: 0 0 40px -4px var(--gold-glow); animation: breathe 2s var(--ease) infinite; }
.gen-orb .ring2 { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--gold); border-right-color: rgba(233,196,106,0.4); animation: spin 1.1s linear infinite; }
.gen-orb .ring3 { position: absolute; inset: 10px; border-radius: 50%; border: 2px solid transparent; border-bottom-color: rgba(233,196,106,0.5); animation: spin 1.6s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%,100%{ transform: scale(1); opacity:.92;} 50%{ transform: scale(1.08); opacity:1;} }
.gen-pct { font-family: var(--display); font-size: 40px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gen-status { font-size: 15px; color: var(--fg-soft); margin-top: 6px; min-height: 22px; }
.is-error .gen-orb .core,
.is-error .gen-orb .ring2,
.is-error .gen-orb .ring3 { animation: none; }
.is-error .gen-orb .core { background: linear-gradient(180deg,#ff8a8a,#8f1f1f); box-shadow: 0 0 28px -8px rgba(255,120,120,.5); }
.is-error .gen-status { color: #ffb4b4; }
.gen-bar { max-width: 460px; height: 6px; border-radius: 99px; background: var(--line-2); margin: 22px auto 0; overflow: hidden; }
.gen-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,var(--gold-deep),var(--gold)); border-radius: 99px; transition: width .5s var(--ease); }
.gen-stages { max-width: 420px; margin: 26px auto 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.gen-stages .gs { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--fg-faint); transition: color .3s; }
.gen-stages .gs .gs-ic { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; color: var(--fg-faint); transition: .3s; }
.gen-stages .gs .gs-ic svg { width: 13px; height: 13px; }
.gen-stages .gs.active { color: var(--fg); }
.gen-stages .gs.active .gs-ic { border-color: var(--gold); color: var(--gold); }
.gen-stages .gs.done { color: var(--fg-soft); }
.gen-stages .gs.done .gs-ic { background: rgba(233,196,106,0.16); border-color: rgba(233,196,106,0.3); color: var(--gold); }

/* finished result */
.result { text-align: center; }
.result-video { position: relative; max-width: 460px; margin: 0 auto 22px; aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold-glow); box-shadow: 0 40px 90px -50px var(--gold-glow); background: var(--surface); display: grid; place-items: center; }
.result-video video { width: 100%; height: 100%; object-fit: cover; }
.result-video .grad { position: absolute; inset: 0; }
.result-video .rplay { position: absolute; width: 66px; height: 66px; border-radius: 50%; background: rgba(7,8,10,0.45); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.3); display: grid; place-items: center; cursor: pointer; transition: .2s; }
.result-video .rplay:hover { transform: scale(1.06); background: rgba(233,196,106,0.3); }
.result-video .rplay svg { width: 24px; height: 24px; color: #fff; }
.result-video .badge-done { position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 7px; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: rgba(7,8,10,0.7); border: 1px solid var(--gold-glow); border-radius: 999px; padding: 6px 12px; }
.result h2 { font-size: clamp(24px,3.2vw,32px); }
.result .lede { color: var(--fg-mute); margin: 8px auto 24px; max-width: 420px; font-size: 15px; }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.share-row .sbtn { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.02); display: grid; place-items: center; cursor: pointer; transition: .2s; color: var(--fg-soft); }
.share-row .sbtn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.share-row .sbtn svg { width: 20px; height: 20px; }

/* ---------- footer actions ---------- */
.flow-actions { display: flex; gap: 12px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.flow-actions .spacer { flex: 1; }
.flow-actions .btn[disabled] { opacity: .4; pointer-events: none; }
.btn-text { background: none; border: 0; color: var(--fg-mute); font-family: var(--display); font-weight: 600; font-size: 14px; cursor: pointer; padding: 14px 10px; transition: color .2s; }
.btn-text:hover { color: var(--fg); }

/* small toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--surface-2); border: 1px solid var(--line-2); color: var(--fg); padding: 13px 20px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 20px 50px -20px #000; opacity: 0; pointer-events: none; transition: .35s var(--ease); z-index: 200; display: flex; align-items: center; gap: 10px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .t-ic { color: var(--gold); display: grid; place-items: center; }
.toast .t-ic svg { width: 17px; height: 17px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 74px; left: 0; right: 0;
    background: rgba(6,7,9,0.96); backdrop-filter: blur(16px);
    padding: 18px; gap: 8px; border-bottom: 1px solid var(--line);
    z-index: 40;
  }
  .nav.open .nav-links a {
    padding: 14px 16px;
    width: 100%;
    justify-content: flex-start;
  }
  .vgrid { grid-template-columns: repeat(2,1fr); }
  .review { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .review .rev-item {
    display: flex;
    flex-direction: column;
  }
  .review .rev-item:not(.rev-item--style) .rv-media {
    aspect-ratio: auto;
    min-height: 240px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18px;
  }
  .review .rev-item:not(.rev-item--style) .rv-media img {
    height: auto;
    max-height: 180px;
    object-fit: contain;
  }
  .review .rev-item:not(.rev-item--style) .review-player {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 18px 10px 12px;
  }
  .review .rev-item:not(.rev-item--style) .review-player__play {
    margin-top: 0;
    width: 58px;
    height: 58px;
  }
  .review .rev-item:not(.rev-item--style) .review-player__meta {
    position: static;
    width: 100%;
    margin-top: auto;
    padding-top: 18px;
  }
  .review .rev-item--style .review-style-player__play {
    width: 58px;
    height: 58px;
  }
  .rev-item .rv-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .flow-steps .node .lbl { display: none; }
  .flow-steps .seg { top: 0; }
  .video-modal__sheet {
    width: 100vw;
    padding: 12px 12px 14px;
  }
  .video-modal__stage {
    border-radius: 16px;
  }
  .video-modal__play {
    width: 66px;
    height: 66px;
  }
  .image-modal__sheet {
    width: min(100%, 560px);
  }
  .image-modal__img {
    max-height: 60vh;
  }
}
@media (max-width: 480px) {
  .vgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .flow-card { padding: 20px 16px; }
  .mtabs[data-voice-tabs] button span { display: inline; }
  .sample-avatars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .mtabs[data-photo-tabs] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.12)), var(--bg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  }
  .mtabs[data-photo-tabs] button {
    width: 100%;
    justify-content: center;
    padding: 14px 10px;
    font-size: 13px;
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.025);
    box-shadow: 0 1px 0 rgba(255,255,255,0.02), inset 0 1px 0 rgba(255,255,255,0.02);
  }
  .mtabs[data-photo-tabs] button.on {
    background: linear-gradient(180deg, var(--gold), var(--gold-2));
    color: #1a1400;
    border-color: rgba(233,196,106,0.42);
    box-shadow: 0 0 0 1px rgba(233,196,106,0.18), 0 8px 20px -14px rgba(233,196,106,0.5);
  }
  .mtabs[data-photo-tabs] button span {
    display: inline;
    white-space: nowrap;
  }
  .mtabs[data-photo-tabs] button svg {
    width: 16px;
    height: 16px;
    flex: none;
  }
  .mtabs[data-photo-tabs] button:nth-child(4) {
    grid-column: 2 / span 1;
  }
  .mtabs[data-photo-tabs] button:nth-child(5) {
    grid-column: 3 / span 1;
  }
  .mtabs[data-voice-tabs] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.12)), var(--bg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  }
  .mtabs[data-voice-tabs] button {
    width: 100%;
    justify-content: center;
    padding: 14px 10px;
    font-size: 13px;
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.025);
    box-shadow: 0 1px 0 rgba(255,255,255,0.02), inset 0 1px 0 rgba(255,255,255,0.02);
  }
  .mtabs[data-voice-tabs] button.on {
    background: linear-gradient(180deg, var(--gold), var(--gold-2));
    color: #1a1400;
    border-color: rgba(233,196,106,0.42);
    box-shadow: 0 0 0 1px rgba(233,196,106,0.18), 0 8px 20px -14px rgba(233,196,106,0.5);
  }
  .mtabs[data-voice-tabs] button span {
    display: inline;
    white-space: nowrap;
  }
  .mtabs[data-voice-tabs] button svg {
    width: 16px;
    height: 16px;
    flex: none;
  }
}

@media (max-width: 560px) {
  .sample-avatars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sample-avatars__pager {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .sample-avatars__pager .btn {
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .sample-avatars__pager span {
    min-width: 0;
    font-size: 11px;
  }
  .asset-id-preview {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 72px;
    overflow: hidden;
  }
  .asset-id-preview img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: cover;
  }
  .asset-id-preview__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
  }
  .asset-id-preview__tag { display: none; }
  .asset-id-preview__meta strong {
    margin-top: 0;
    font-size: 11px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
  }
  .asset-id-preview__hint {
    margin-top: 0;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .teleprompter {
    padding: 18px 18px 20px;
  }
  .teleprompter .tp-tag {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }
  .tp-lang-toggle button {
    padding: 6px 11px;
    font-size: 11px;
  }
  .teleprompter .swap {
    margin-top: 10px;
    font-size: 11px;
    padding: 6px 11px;
  }
  .asset-id-preview {
    width: min(100%, 84px);
    margin-bottom: 6px;
    border-radius: 14px;
  }
  .asset-id-preview img {
    aspect-ratio: auto;
    max-height: 42px;
    object-fit: cover;
  }
  .asset-id-preview__meta {
    padding: 6px 6px 7px;
  }
  .asset-id-preview__tag {
    padding: 2px 5px;
    font-size: 8px;
  }
  .asset-id-preview__meta strong {
    margin-top: 3px;
    font-size: 10px;
  }
  .asset-id-preview__hint {
    margin-top: 3px;
    font-size: 8px;
  }
  .asset-id-field {
    margin-top: 6px;
  }
  .asset-id-field label {
    margin-bottom: 4px;
    font-size: 10px;
  }
  .asset-id-field input {
    height: 30px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 13px;
  }
  .dropzone[data-audiodrop] {
    padding: 14px 16px 16px;
  }
  .dropzone[data-audiodrop] .dz-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
  }
  .dropzone[data-audiodrop] .dz-icon svg {
    width: 20px;
    height: 20px;
  }
  .dropzone[data-audiodrop] h3 {
    font-size: 16px;
    margin-top: 2px;
  }
  .dropzone[data-audiodrop] p {
    display: none;
  }
  .dropzone[data-audiodrop] .dz-formats {
    margin-top: 8px;
    font-size: 11px;
  }
  .sample-audio-card {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .sample-audio-card__meta {
    min-width: 0;
  }
  .sample-audio-card__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .sample-audio-card__actions > * {
    width: 100%;
    min-width: 0;
  }
  .sample-audio-card audio {
    width: 100%;
    min-width: 0;
  }
  .sample-audio__pager {
    flex-wrap: wrap;
  }
  .camera-stage {
    /* Height is the constraint on mobile; width follows the real stream aspect
       ratio (set inline from JS) so the face is shown whole and centered with
       full headroom, matching the native camera and the captured photo. */
    height: 42vh;
    max-height: 460px;
    width: fit-content;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
  }
}
