/* ==========================================================================
 * Manee Brides App · Unified Three-Zone Component Stylesheet
 *   All colors read strictly from manee-tokens.css CSS custom properties.
 *   - Daily Zone: Garnet Champagne (var(--cream) / var(--garnet) / var(--champagne))
 *   - Shop Zone: Berry Cream (var(--shop-cream) / var(--shop-plum) / var(--shop-berry))
 *   - Maini Zone: Sapphire Blue (var(--manee-blue) / var(--manee-blue-bright) / var(--manee-silver))
 *   - 60fps Compositor Discipline: ALL animations strictly `transform` & `opacity` ONLY
 *   - WCAG 2.5.5 / 1.4.3 Compliance: Every interactive target >= 44×44px, AA contrast >= 4.5:1, 16px inputs (zero iOS zoom)
 * ========================================================================== */

@font-face { font-family: "Noto Serif SC V4"; src: url("../fonts/noto-serif-sc-700-v4.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: optional; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: optional; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: optional; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: optional; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: optional; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: optional; }

html[data-persona="maini"] body {
  background:
    var(--bg-ambient),
    var(--bg-ground);
}

.v10-persona-chip__meta {
  min-width: 0;
  overflow: hidden;
}

.v10-persona-chip__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.2;
  white-space: nowrap;
}

.v10-persona-chip__role {
  font-size: 0.72rem;
  color: var(--ink-3);
  line-height: 1.2;
  white-space: nowrap;
}

.v10-pill-btn:active,
.v10-btn-primary:active,
.v10-btn-secondary:active,
.v10-quick-chip:active,
.v10-look-tab:active,
.v10-upload-btn:active,
.v10-send-btn:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .v10-pill-btn:hover,
  .v10-btn-secondary:hover,
  .v10-quick-chip:hover,
  .v10-look-tab:hover {
    opacity: 0.9;
  }
}

/* ---------- WeChat -> Safari Ribbon & Offline Reconnect Bar ---------- */
.v17-entry-ribbon {
  padding: 8px 12px;
  background: var(--espresso);
  color: var(--on-accent);
  border-bottom: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
}

.v17-entry-ribbon__text {
  min-inline-size: 0;
  flex: 1;
  line-height: 1.4;
}

.v17-net-bar {
  padding: 8px 14px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---------- Non-Blocking One-Tap PWA Update Banner ---------- */
.v10-update-banner {
  padding: 6px 12px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
}

.v10-update-banner__text {
  min-width: 0;
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---------- Couture Playable Voice Bubbles (`transform` & `opacity` ONLY) ---------- */
.v10-voice-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.v10-msg--user .v10-voice-wrap {
  align-items: flex-end;
}

.v10-voice-bar {
  min-height: 44px;
  min-width: 168px;
  max-width: 272px;
  padding: 0 14px;
  border-radius: 22px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}

.v10-msg--user .v10-voice-bar {
  background: var(--accent-grad);
  color: var(--on-accent);
  box-shadow: var(--shadow-cta);
}

.v10-voice-waves {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.v10-voice-waves span {
  width: 2.5px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: center;
  transition: transform 0.2s var(--ease);
}

.v10-msg--user .v10-voice-waves span {
  background: var(--on-accent);
}

.v10-voice-waves span:nth-child(1) { transform: scaleY(0.4); }
.v10-voice-waves span:nth-child(2) { transform: scaleY(0.75); }
.v10-voice-waves span:nth-child(3) { transform: scaleY(1); }
.v10-voice-waves span:nth-child(4) { transform: scaleY(0.58); }

@media (prefers-reduced-motion: no-preference) {
  .v10-voice-bar.is-playing .v10-voice-waves span {
    animation: v10-wave-pulse 0.62s ease-in-out infinite alternate;
  }
  .v10-voice-bar.is-playing .v10-voice-waves span:nth-child(2) { animation-delay: 0.14s; }
  .v10-voice-bar.is-playing .v10-voice-waves span:nth-child(3) { animation-delay: 0.28s; }
  .v10-voice-bar.is-playing .v10-voice-waves span:nth-child(4) { animation-delay: 0.42s; }
}

@keyframes v10-wave-pulse {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1.08); }
}

.v10-voice-dur {
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.v10-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.v10-voice-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--ink-3);
  padding: 0 4px;
}

.v10-voice-transcript-btn {
  min-height: 44px;
  min-width: 56px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v10-voice-transcript-box {
  max-width: 280px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline);
  font-size: 0.8rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.v10-typing-hint {
  font-size: 0.76rem;
  color: var(--ink-3);
  padding: 4px 10px;
}

.v10-mic-sheet {
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
}

/* ---------- Stylist Context Ribbon ---------- */
.v10-client-bar {
  padding: 6px 12px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
}

.v10-client-bar__left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.v10-client-select {
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  font-weight: 600;
  font-size: 1rem;
  max-width: 220px;
}

.v10-consent-details {
  margin-top: 4px;
  padding-left: 30px;
  font-size: 0.75rem;
  color: var(--ink-3);
}

.v10-consent-details summary {
  cursor: pointer;
  color: var(--gold-ink);
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------- Conversation Stream (60fps `content-visibility: auto` on offscreen rows) ---------- */
.v10-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 16px;
  gap: 12px;
}

.v10-stream {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v10-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 100%;
}

/* Only applied to historical rows strictly outside initial viewport (`defer-rendering-heavy-content`) */
.v10-msg--offscreen {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 136px;
}

@supports not (content-visibility: auto) {
  .v10-msg--offscreen {
    contain: layout style paint;
  }
}

.v10-msg--user {
  flex-direction: row-reverse;
}

.v10-msg--pending .v10-bubble {
  opacity: 0.78;
}

.v10-msg__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
  background: var(--bg-porcelain);
  flex-shrink: 0;
  margin-top: 2px;
}

.v10-msg__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: min(92%, 620px);
}

.v10-msg--user .v10-msg__body {
  align-items: flex-end;
}

.v10-bubble {
  padding: 11px 14px;
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.6;
  box-shadow: var(--shadow-card);
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.v10-msg--user .v10-bubble {
  background: var(--accent-grad);
  color: var(--on-accent);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-cta);
}

/* ---------- Native In-Stream Cards (Porcelain Mat, overlapPhoto=0) ---------- */
.v10-card {
  width: 100%;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  container: card / inline-size;
}

.v10-card--arrival {
  border-width: 1.5px;
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.v10-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--text-primary);
  text-wrap: balance;
}

.v10-card__sub {
  margin: 3px 0 0;
  font-size: 0.81rem;
  color: var(--ink-2);
  line-height: 1.52;
  text-wrap: pretty;
}

/* ---------- 4-Stage Couture Breathing Progress Card (Zero Blank Screen, GPU `transform`+`opacity` ONLY) ---------- */
.v17-progress-card {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.v17-progress-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v17-breath-orb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: var(--shadow-cta);
  flex-shrink: 0;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: no-preference) {
  .v17-breath-orb {
    animation: v17-breath 1.15s ease-in-out infinite alternate;
  }
}

@keyframes v17-breath {
  from { transform: scale(0.88); opacity: 0.62; }
  to { transform: scale(1.06); opacity: 1; }
}

.v17-stage-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  font-size: 0.75rem;
}

.v17-stage-step {
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline);
  color: var(--ink-3);
  font-weight: 600;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.v17-stage-step.is-active {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-soft);
}

/* ---------- Porcelain Portrait Frame & Compositor-Only Split Divider ---------- */
.v10-porcelain-frame {
  background: var(--bg-porcelain);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v10-portrait-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 410px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--stage-mat);
  user-select: none;
  touch-action: pan-y;
}

.v10-portrait-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.v10-compare-before {
  clip-path: inset(0 calc(100% - var(--split, 34%)) 0 0);
}

/* Compositor `translate3d` instead of `left` so slider drag triggers ZERO Layout reflow! */
.v10-compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--on-accent);
  box-shadow: 0 0 0 1px var(--gold);
  pointer-events: none;
  transform: translate3d(var(--split-px, 110px), 0, 0);
  will-change: transform;
}

.v10-compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--on-accent);
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
}

.v10-portrait-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 0;
  font-size: 0.77rem;
  color: var(--ink-2);
}

.v10-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.76rem;
  color: var(--ink-3);
}

.v10-range-row input[type="range"] {
  flex: 1;
  min-height: 44px;
  accent-color: var(--accent);
}

/* ---------- Swipe Verdict Gesture Bar (`作品卡片一划满意/不满意` + Button Parity) ---------- */
.v17-verdict-deck {
  border-radius: 16px;
  border: 1px dashed var(--hairline-strong);
  background: var(--bg-elevated);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  touch-action: pan-y;
  user-select: none;
  will-change: transform;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.v17-verdict-deck.is-dragging {
  transition: none;
}

.v17-verdict-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-3);
}

.v10-look-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v10-look-tab {
  min-height: 44px;
  min-width: 44px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}

.v10-look-tab[aria-selected="true"] {
  background: var(--accent-grad);
  color: var(--on-accent);
  border-color: var(--hairline-strong);
}

/* ---------- Wantang 8 Couture Gowns Horizontal Snap Strip ---------- */
.v10-gown-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 132px;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.v10-gown-item {
  scroll-snap-align: start;
  border-radius: 14px;
  border: 1.5px solid var(--hairline);
  background: var(--bg-elevated);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  min-height: 44px;
}

.v10-gown-item[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.v10-gown-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 9px;
}

.v10-gown-item__label {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

/* ---------- Subscription Plans Inside Stream ---------- */
.v10-plan-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@container card (inline-size < 420px) {
  .v10-plan-stack {
    grid-template-columns: 1fr;
  }
}

.v10-plan-btn {
  min-height: 56px;
  padding: 12px;
  border-radius: 16px;
  border: 1.5px solid var(--hairline);
  background: var(--bg-elevated);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}

.v10-plan-btn--featured {
  border-color: var(--accent);
  background: var(--bg-surface);
}

.v10-plan-badge {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.71rem;
  font-weight: 600;
}

.v10-plan-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--text-primary);
}

.v10-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v10-card-actions > * {
  flex: 1 1 170px;
}

.v10-revise-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--hairline);
}

/* 1rem (`16px`) prevents iOS Safari forced auto-zoom on input focus! */
.v10-input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  font-size: 1rem;
}

/* ---------- Sticky Bottom Composer Dock (Q08=A: crisp opaque surface without backdrop blur jank) ---------- */
.v10-dock {
  position: sticky;
  bottom: var(--vvb-offset, 0px);
  z-index: 18;
  background: var(--bg-surface);
  border-top: 1px solid var(--hairline);
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v17-upload-inline-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px 4px 12px;
  border-radius: 14px;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline);
  font-size: 0.74rem;
  color: var(--ink-2);
}

.v17-upload-inline-tip__text {
  min-inline-size: 0;
  flex: 1;
  line-height: 1.38;
}

.v10-quick-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.v10-quick-row::-webkit-scrollbar {
  display: none;
}

.v10-quick-chip {
  scroll-snap-align: start;
  min-height: 44px;
  min-width: 44px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}

.v10-composer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.v10-upload-btn {
  min-width: 58px;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}

/* 1rem (`16px`) eliminates iOS Safari focus zoom jump */
.v10-textarea {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 112px;
  padding: 10px 13px;
  border-radius: 22px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  resize: none;
  overflow-y: hidden;
  white-space: nowrap;
  overflow-x: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
  line-height: 1.45;
}

.v10-textarea::placeholder {
  color: var(--ink-3);
}

.v10-textarea:focus {
  white-space: pre-wrap;
  overflow-y: auto;
}

.v10-send-btn {
  min-height: 44px;
  min-width: 60px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: var(--on-accent);
  border: 1px solid var(--hairline-strong);
  font-weight: 600;
  font-size: 0.86rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-cta);
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}

/* ---------- Top-Layer Dialogs (`animate-to-from-top-layer` + `light-dismiss-a-dialog`) ---------- */
dialog.v10-dialog {
  margin: auto 0 0 auto;
  width: min(100%, 440px);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--hairline-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-ambient);
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.24s;
  transition-timing-function: var(--ease);
  transition-behavior: allow-discrete;
}

dialog.v10-dialog--center {
  margin: auto;
  width: min(calc(100% - 24px), 520px);
  height: auto;
  max-height: min(88dvh, 700px);
  border: 1px solid var(--hairline-strong);
  border-radius: 22px;
}

@media (prefers-reduced-motion: no-preference) {
  dialog.v10-dialog {
    transform: translateX(24px);
  }
  dialog.v10-dialog--center {
    transform: scale(0.95);
  }
}

dialog.v10-dialog::backdrop {
  background-color: transparent;
  transition-property: opacity, display, overlay;
  transition-duration: 0.24s;
  transition-timing-function: var(--ease);
  transition-behavior: allow-discrete;
}

:is(dialog.v10-dialog[open]):where(:not([data-closing])) {
  opacity: 1;
}

@starting-style {
  :is(dialog.v10-dialog[open]):where(:not([data-closing])) {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  :is(dialog.v10-dialog[open]):where(:not([data-closing])) {
    transform: translateX(0);
  }
  :is(dialog.v10-dialog--center[open]):where(:not([data-closing])) {
    transform: scale(1);
  }
  @starting-style {
    :is(dialog.v10-dialog[open]):where(:not([data-closing])) {
      transform: translateX(24px);
    }
    :is(dialog.v10-dialog--center[open]):where(:not([data-closing])) {
      transform: scale(0.95);
    }
  }
}

:is(dialog.v10-dialog[open]):where(:not([data-closing]))::backdrop {
  background-color: var(--backdrop-tint);
}

@media (prefers-reduced-motion: reduce) {
  dialog.v10-dialog,
  dialog.v10-dialog::backdrop {
    transition-duration: 0.06s;
  }
}

.v10-drawer-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.v10-drawer-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.v10-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v10-panel {
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v10-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
}

.v10-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.v10-stat-box {
  padding: 9px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v10-stat-box strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-variant-numeric: tabular-nums;
}

.v10-stat-box span {
  font-size: 0.72rem;
  color: var(--ink-3);
}

.v10-scroll-clause {
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline);
  font-size: 0.81rem;
  color: var(--ink-2);
  line-height: 1.65;
}

.v10-toast {
  position: fixed;
  bottom: calc(138px + var(--vvb-offset, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  pointer-events: none;
  max-width: min(92vw, 440px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--on-accent);
  border: 1px solid var(--gold);
  font-size: 0.82rem;
  box-shadow: var(--shadow-cta);
  text-align: center;
}

.v10-toast.is-stage-docked {
  position: static;
  bottom: auto;
  left: auto;
  transform: none;
  z-index: auto;
  flex-shrink: 0;
  align-self: center;
  width: fit-content;
  max-width: min(calc(100% - 24px), 440px);
  margin: 8px auto 2px;
  padding: 7px 16px;
}

.v10-stage:has(#v10ChatMain[hidden]) > .v10-toast.is-stage-docked {
  display: none !important;
}

/* ---------- v15 First-Fold One-Liner, Resident Role Referral Strip & 4-State Ledger ---------- */
.v15-gate-invite-pill {
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1.45;
}

.v15-first-fold {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v15-hero-oneliner {
  padding: 11px 14px;
  border-radius: 18px;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.v15-hero-oneliner__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.02rem, 0.94rem + 0.55vw, 1.2rem);
  line-height: 1.34;
  color: var(--text-primary);
  text-wrap: balance;
}

.v15-hero-oneliner__sub {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-3);
  line-height: 1.45;
}

.v15-referral-strip {
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.v15-referral-strip__copy {
  margin: 0;
  min-inline-size: 0;
  flex: 1;
  font-size: 0.78rem;
  color: var(--ink-2);
  line-height: 1.45;
}

@media (max-width: 520px) {
  .v15-referral-strip {
    flex-direction: column;
    align-items: stretch;
  }
}

.v15-share-card-box {
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline-strong);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v15-share-card-img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto;
  background: var(--cream);
}

.v15-share-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.73rem;
}

.v15-share-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  font-weight: 600;
}

.v15-share-badge--free {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}

.v15-copy-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.v15-copy-btn {
  min-inline-size: 44px;
  min-block-size: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.v15-copy-btn[data-copied] {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.v15-copy-tip {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-deep);
  opacity: 0;
  transition: opacity 0.16s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}

.v15-copy-btn[data-copied] + .v15-copy-tip,
.v15-copy-btn[data-failed] + .v15-copy-tip {
  opacity: 1;
}

.v15-journey-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.v15-journey-row {
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.77rem;
}

.v15-journey-row__meta {
  min-inline-size: 0;
  flex: 1;
}

.v15-journey-row__name {
  font-weight: 600;
  color: var(--text-primary);
}

.v15-journey-row__note {
  font-size: 0.72rem;
  color: var(--ink-3);
}

.v15-status-pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-porcelain);
  color: var(--ink-2);
}

.v15-status-pill--credited {
  background: var(--accent-grad);
  color: var(--on-accent);
}

.v15-status-pill--subscribed_pending {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* ---------- v16 Frontal Close-Up Portrait Upload Guidance & v17 2-Step iOS PWA Diagram ---------- */
.v10-upload-guide-box {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-strong);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.v10-upload-guide-box__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.v10-upload-guide-box__list {
  margin: 0;
  padding-inline-start: 16px;
  font-size: 0.76rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.v17-pwa-step-card {
  padding: 12px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  gap: 12px;
}

.v17-pwa-step-illus {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-porcelain);
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ---------- v19 3-Screen Minimalist Chat-as-UI Architecture ---------- */
.v19-persona-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top, 0px)) 16px max(24px, env(safe-area-inset-bottom, 0px));
}

.v19-persona-card-wrap {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v19-persona-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.44rem);
  color: var(--text-primary);
}

.v19-persona-head__sub {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.v19-persona-list {
  display: grid;
  gap: 12px;
}

.v19-persona-card {
  width: 100%;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 22px;
  border: 1.5px solid var(--hairline);
  background: var(--bg-porcelain);
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.v19-persona-card:active {
  transform: scale(0.985);
}

.v19-persona-card.is-recommended {
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-ambient);
}

html[data-persona="maini"] .v19-persona-card[data-pick-persona="maini"] {
  background: var(--bg-surface);
  border-color: var(--hairline-strong);
  color: var(--text-primary);
}

html[data-persona="maini"] .v19-persona-card[data-pick-persona="maini"].is-recommended {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.v19-portrait-mat {
  width: 96px;
  height: 118px;
  border-radius: 15px;
  padding: 4px;
  background: var(--cream);
  border: 1px solid var(--hairline-strong);
  overflow: hidden;
}

.v19-portrait-mat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 11px;
}

.v19-portrait-mat--seal {
  display: grid;
  place-items: center;
  background: var(--bg-porcelain);
}

.v19-portrait-mat--seal img,
.v29-shop-card__media--seal img {
  object-fit: contain;
  object-position: center;
  padding: 18px;
  background: var(--bg-porcelain);
}

.v19-persona-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.v19-persona-badge {
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
}

.v19-persona-card.is-recommended .v19-persona-badge {
  background: var(--accent-grad);
  border-color: transparent;
  color: var(--on-accent);
}

html[data-persona="maini"] .v19-persona-card[data-pick-persona="maini"].is-recommended .v19-persona-badge {
  background: var(--accent-grad);
  color: var(--on-accent);
}

.v19-persona-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text-primary);
}

.v19-persona-role {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.v19-persona-desc {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.v19-persona-foot {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

/* Role-Scoped Large Service Buttons Docked Directly Above Composer */
.v19-tool-bar {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 7px;
}

.v19-tool-bar::-webkit-scrollbar {
  display: none;
}

.v19-tool-btn {
  flex: 1 0 auto;
  min-width: 62px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 14px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-porcelain);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}

.v19-tool-btn:active {
  transform: scale(0.97);
}

.v19-tool-btn--featured {
  background: var(--accent-grad);
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: var(--shadow-cta);
}

.v19-pay-geo-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-soft);
  border: 1px solid var(--hairline-strong);
  color: var(--accent-deep);
}

/* ---------- v20 Platform Dispatch Pool & Nash Anti-Disintermediation Cards ---------- */
.v20-client-bar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.v20-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.v20-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-soft);
  border: 1px solid var(--hairline-strong);
  color: var(--accent-deep);
}

.v20-perk-box {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline-strong);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--ink-2);
}

.v20-perk-box strong {
  color: var(--accent-deep);
  font-size: 0.78rem;
}

.v20-contact-lock {
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px dashed var(--hairline-strong);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
}

.v20-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.v20-quiet-link {
  align-self: center;
  min-height: 36px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.16s var(--ease);
}

.v20-star-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.v20-star-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-porcelain);
  color: var(--ink-3);
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.15s var(--ease), opacity 0.15s var(--ease);
}

.v20-star-btn.is-active {
  background: var(--accent-grad);
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: var(--shadow-card);
}

.v20-pool-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.v20-pool-tab {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 600;
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}

.v20-pool-tab[aria-selected="true"] {
  background: var(--bg-porcelain);
  border-color: var(--accent);
  color: var(--accent-deep);
  box-shadow: var(--shadow-card);
}

.v20-date-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v20-date-chip {
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-porcelain);
  color: var(--text-primary);
  font-size: 0.74rem;
  font-weight: 600;
}

/* v21 System Self-Running, Cashflow Node Lock & Multiplication Engine */
.v21-card {
  gap: 10px;
}

.v21-fund-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.v21-fund-step {
  padding: 5px 4px;
  border-radius: 8px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  color: var(--ink-3);
  font-size: 0.64rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

.v21-fund-step.is-done {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}

.v21-fund-step.is-active {
  background: var(--accent-grad);
  border-color: transparent;
  color: var(--bg-porcelain);
}

.v21-warn-box {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
}

.v21-entitlement-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--hairline-strong);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 600;
}

.v21-pkg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v21-pkg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
}

.v21-pkg-row.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.v21-pkg-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v21-pkg-meta strong {
  font-size: 0.8rem;
  color: var(--text-primary);
}

.v21-pkg-meta span {
  font-size: 0.72rem;
  color: var(--ink-2);
}

.v21-quote-bullets {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--ink-2);
}

.v21-reason-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v21-reason-chip {
  min-height: 36px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  color: var(--ink-2);
  font-size: 0.73rem;
  font-weight: 600;
}

/* v22 Digital Shaohua Distilled Exclusive Craft Card (Token-Bound Cream Ground, Zero Blue, Zero Overlap) */
.v22-craft-head {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.v22-craft-head__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.v22-craft-engine-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-porcelain);
  color: var(--accent-deep);
  font-size: 0.69rem;
  font-weight: 600;
}

.v22-craft-engine-pill.is-live {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.v22-craft-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v22-craft-tab {
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: left;
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}

.v22-craft-tab[aria-selected="true"] {
  background: var(--accent-grad);
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: var(--shadow-card);
}

.v22-craft-tab:active {
  transform: scale(0.97);
}

.v22-craft-stage {
  max-height: 280px;
}

.v22-craft-spec {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--bg-porcelain);
}

.v22-craft-spec__summary {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
}

.v22-craft-spec__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.v22-craft-spec__grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 5px;
  border-top: 1px solid var(--hairline);
}

.v22-craft-spec__grid strong {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.v22-craft-spec__grid span {
  font-size: 0.74rem;
  color: var(--ink-2);
  line-height: 1.44;
}

/* ============================================================================
 * ECHO-FIX3 (v24): Stylist Public Portfolio & Bride "找跟妆师 · 同城作品" Drawer
 * Strictly token-bound (overlapPhoto = 0, zero naked colors)
 * ========================================================================== */

.v24-discover-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.v24-sort-banner {
  padding: 7px 11px;
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-porcelain);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.v24-discover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 900px) {
  .v24-discover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.v24-work-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.v24-work-stage {
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--bg-porcelain);
}

.v24-work-stage img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}

.v24-work-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.v24-work-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.v24-work-meta {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.35;
}

.v24-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.v24-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-porcelain);
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.v24-badge--vip {
  background: var(--accent-grad);
  border-color: transparent;
  color: var(--on-accent);
}

.v24-work-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.v24-work-actions .v10-btn-primary,
.v24-work-actions .v10-pill-btn {
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 0.74rem;
  justify-content: center;
}

.v24-targeted-pill {
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-porcelain);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-deep);
  line-height: 1.45;
}

.v24-targeted-thumb {
  padding: 7px;
  border-radius: 14px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-porcelain);
}

.v24-targeted-thumb img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

/* ---------- v26 Stage 4: 2x2 Side-by-Side Compare Grid, Craft Tags & Payback Progress ---------- */
.v26-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.v26-compare-cell {
  position: relative;
  border-radius: 14px;
  border: 1.5px solid var(--hairline);
  background: var(--bg-porcelain);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease);
}

.v26-compare-cell.is-selected {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.v26-compare-cell__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
}

.v26-compare-cell__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.v26-why-her-box {
  border-left: 3px solid var(--gold);
  background: var(--bg-porcelain);
  padding: 8px 11px;
  border-radius: 0 10px 10px 0;
  font-size: 0.78rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.v22-craft-spec__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.v22-craft-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-porcelain);
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--ink-2);
}

.v26-payback-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.v26-payback-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent-grad);
  transition: width 0.28s var(--ease);
}

.v26-danger-btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--bg-elevated);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 600;
}


/* ==========================================================================
 * APP-COLOR-ALIGN-1130: Role Tags, Clean Porcelain Try-On, Maini Sapphire Tiers & Shop Stage
 * ========================================================================== */

/* ---- Pay Return Minimal Gate Card (Token-Bound) ---- */
.v10-gate-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-strong);
  border-radius: 26px;
  padding: 26px 20px;
  box-shadow: var(--shadow-ambient);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.v10-role-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
}

.v10-role-tag[data-role-tag="shaohua"] {
  background: var(--tag-shaohua-bg);
  color: var(--tag-shaohua-fg);
  border: 1px solid var(--tag-shaohua-border);
}

.v10-role-tag[data-role-tag="wantang"] {
  background: var(--tag-wantang-bg);
  color: var(--tag-wantang-fg);
  border: 1.5px solid var(--tag-wantang-border);
}

.v10-role-tag[data-role-tag="maini"] {
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--hairline-strong);
}

.v10-msg__tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.v10-msg--assistant[data-role-tag="shaohua"] .v10-bubble {
  background: var(--tag-shaohua-surface);
  border-left: 3px solid var(--tag-shaohua-bg);
}

.v10-msg--assistant[data-role-tag="wantang"] .v10-bubble {
  background: var(--tag-wantang-surface);
  border-left: 3px solid var(--tag-wantang-border);
}

.v10-msg--assistant[data-role-tag="maini"] .v10-bubble {
  background: var(--bg-surface);
  border-left: 3px solid var(--accent);
}

/* ---- Clean Porcelain Try-On Output Stage (Zero Ambient Tint Pollution) ---- */
.v10-card--tryon,
.v10-card--tryon .v10-porcelain-frame,
.v10-card--tryon .v10-portrait-stage,
.v10-card--tryon .v15-share-card-box,
.v10-card--tryon .v26-compare-cell {
  background: var(--cream);
}

/* ---- Maini Deep Sapphire Negotiation Card & 28/37/50/55 Layered Blues ---- */
html[data-zone="maini"] input,
html[data-zone="maini"] select,
html[data-zone="maini"] textarea,
html[data-persona="maini"]:not([data-zone="shop"]) input,
html[data-persona="maini"]:not([data-zone="shop"]) select,
html[data-persona="maini"]:not([data-zone="shop"]) textarea {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--hairline-strong);
}

.v29-maini-neg-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--accent);
  color: var(--text-primary);
}

.v29-neg-band-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 640px) {
  .v29-neg-band-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.v29-neg-tier {
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--hairline-strong);
  color: var(--on-accent);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.v29-neg-tier strong {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.25;
}

.v29-neg-tier span {
  font-size: 0.72rem;
  color: var(--ink-2);
  line-height: 1.35;
}

.v29-neg-tier--28 { background: var(--neg-tier-28); }
.v29-neg-tier--37 { background: var(--neg-tier-37); }
.v29-neg-tier--50 { background: var(--neg-tier-50); border-color: var(--on-accent); }
.v29-neg-tier--55 { background: var(--neg-tier-55); color: var(--manee-blue); }
.v29-neg-tier--55 span { color: var(--manee-blue); font-weight: 600; }

.v29-maini-terms-box {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline-strong);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-2);
}

.v29-maini-terms-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  padding-top: 5px;
  border-top: 1px solid var(--hairline);
}

.v29-maini-terms-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.v29-maini-terms-row strong {
  color: var(--text-primary);
}

/* ==========================================================================
 * ZONE 2: IN-APP BERRY CREAM SHOP STAGE
 * ========================================================================== */
.v29-shop-stage {
  width: 100%;
  min-height: 100dvh;
  background: var(--bg-ground);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
}

.v29-shop-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px 10px;
  background: var(--shop-banner-grad);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-cta);
}

.v29-shop-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.v29-shop-brand__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--on-accent);
  line-height: 1.25;
}

.v29-shop-brand__sub {
  font-size: 0.72rem;
  color: var(--on-accent);
  opacity: 0.9;
}

.v29-shop-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.v29-shop-top-btn {
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1.5px solid var(--shop-caramel);
  background: var(--bg-elevated);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.v29-shop-top-btn--back {
  background: transparent;
  color: var(--on-accent);
  border-color: var(--on-accent);
}

.v29-shop-banner {
  margin: 0 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--shop-banner-grad);
  color: var(--on-accent);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v29-shop-banner__badge {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
}

.v29-shop-banner__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--on-accent);
  line-height: 1.35;
}

.v29-shop-banner__sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--on-accent);
  opacity: 0.92;
}

.v29-shop-tabs {
  margin: 0 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.v29-shop-tabs::-webkit-scrollbar {
  display: none;
}

.v29-shop-tab {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--hairline-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.v29-shop-tab[aria-selected="true"] {
  background: var(--accent-grad);
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: var(--shadow-cta);
}

.v29-shop-shelf-intro {
  margin: 0 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-strong);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v29-shop-shelf-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.04rem;
  color: var(--accent);
}

.v29-shop-shelf-intro p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.v29-shop-grid {
  margin: 0 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 720px) {
  .v29-shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.v29-shop-card {
  border-radius: 20px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
}

.v29-shop-card--digital {
  border-color: var(--shop-caramel);
  background: var(--bg-surface);
}

.v29-shop-card__media {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline);
}

.v29-shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}

.v29-shop-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.v29-shop-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-porcelain);
  color: var(--shop-rosebronze);
}

.v29-shop-badge--promo {
  background: var(--accent-soft);
  border-color: var(--accent-deep);
  color: var(--accent-deep);
}

.v29-shop-badge--caramel {
  background: var(--shop-price-bg);
  border-color: var(--shop-price-border);
  color: var(--shop-caramel);
}

.v29-shop-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.38;
}

.v29-shop-card__spec {
  margin: 0;
  font-size: 0.74rem;
  color: var(--ink-2);
  line-height: 1.42;
}

.v29-shop-price-box {
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--shop-price-bg);
  border: 1px solid var(--shop-price-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v29-shop-price-main {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent);
}

.v29-shop-price-sub {
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--shop-caramel);
}

.v29-shop-card__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v29-shop-card__actions .v10-btn-primary,
.v29-shop-card__actions .v10-btn-secondary {
  width: 100%;
  min-height: 44px;
  font-size: 0.8rem;
  padding: 0 12px;
}

.v29-shop-detail {
  margin: 0 14px;
  scroll-margin-top: 84px;
  padding: 16px;
  border-radius: 22px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--hairline-strong);
  box-shadow: var(--shadow-ambient);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v29-shop-detail__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 680px) {
  .v29-shop-detail__layout {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }
}

.v29-shop-detail__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v29-shop-detail__rule {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline);
  font-size: 0.78rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.v29-shop-bag {
  margin: 0 14px;
  scroll-margin-top: 84px;
  padding: 16px;
  border-radius: 22px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--accent);
  box-shadow: var(--shadow-ambient);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v29-shop-bag-row {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.v29-shop-voucher-card {
  padding: 14px 16px;
  scroll-margin-top: 84px;
  border-radius: 18px;
  background: var(--shop-banner-grad);
  color: var(--on-accent);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v29-shop-voucher-code {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--accent);
  font-family: var(--font-caps);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

/* APP-TRYON-CHAIN-1130: Shaohua guided intake, flagship badge, daily zone & vault protection bar */
.v29-intake-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline-strong);
}

.v29-intake-box__title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.v29-intake-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .v29-intake-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.v29-intake-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-2);
}

.v29-intake-field select,
.v29-intake-field input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 500;
}

.v29-intake-saved {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bg-porcelain);
  border: 1px solid var(--champagne);
  font-size: 0.76rem;
  color: var(--text-primary);
}

.v29-craft-pin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.v29-flagship-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--garnet), var(--garnet-deep));
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
}

.v29-skill-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--ink-2);
}

.v29-skill-meta-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
}

.v29-daily-zone {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--hairline-strong);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v29-daily-zone__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.v29-daily-zone__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.v29-daily-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline);
}

.v29-daily-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.v29-daily-card--locked img {
  filter: saturate(0.88) brightness(0.97);
}

.v29-vault-privacy-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline);
  font-size: 0.69rem;
  color: var(--ink-2);
}

/* ---------- Line 3 Stylist Content Studio (`一键内容素材 · 她的手艺助理`) ---------- */
.v32-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-top: 4px;
}

.v32-content-pack-deck {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: var(--bg-porcelain);
  border: 1px solid var(--champagne);
}

.v32-xhs-preview-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--stage-mat);
}

.v32-xhs-preview-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.v32-note-copy-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
}

.v32-note-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.v32-note-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.79rem;
  line-height: 1.62;
  color: var(--ink-2);
}

/* v35 · Bridal Real Scene + Async Motion + Makeup Work Preset */
.v35-real-scene-zone {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v35-real-scene-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.v35-real-scene-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--champagne);
  color: var(--text-primary);
}

.v35-real-scene-preset-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
}

.v35-real-scene-trigger-hint {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.v35-async-motion-card {
  padding: 14px;
  border-radius: 16px;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline-strong);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v35-async-motion-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

@keyframes v35MotionPulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.v35-async-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--champagne);
  flex-shrink: 0;
  animation: v35MotionPulse 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .v35-async-dot {
    animation: none;
    opacity: 0.9;
  }
}

.v35-motion-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--stage-mat);
  border: 1px solid var(--hairline);
}

.v35-motion-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.v35-quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-strong);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-2);
}

.v35-makeup-work-preset-card {
  gap: 10px;
}

/* ---------- Locked Preview Paywall Card (`overlapPhoto = 0`, 100% token-bound) ---------- */
.v43-locked-preview-card {
  gap: 12px;
}

.v43-locked-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--hairline-strong);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
}

.v43-locked-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--hairline-strong);
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 700;
}

.v43-locked-stage {
  padding: 10px;
  border-radius: 18px;
  background: var(--bg-porcelain);
  border: 1px solid var(--hairline-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v43-locked-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 440px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--stage-mat);
  border: 1px solid var(--hairline);
}

.v43-locked-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v43-locked-warm-note {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  font-size: 0.84rem;
  line-height: 1.62;
  color: var(--text-primary);
}

.v43-locked-warm-note p + p {
  margin-top: 6px;
  color: var(--ink-2);
}

.v43-locked-pending-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.v43-locked-pending-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--hairline-strong);
  text-align: left;
  min-height: 48px;
}

.v43-locked-pending-item img {
  width: 42px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  flex-shrink: 0;
}

.v43-locked-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 8px;
}

.v43-locked-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin: 4px 0 2px;
}

.v10-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--hairline-strong);
}

.v10-lang-switch__btn {
  min-width: 44px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  transition: transform var(--dur-micro, 150ms) var(--ease), opacity var(--dur-micro, 150ms) var(--ease);
}

.v10-lang-switch__btn.is-active,
.v10-lang-switch__btn[aria-pressed="true"] {
  background: var(--accent-grad);
  color: var(--cream);
}

.v10-topbar__right {
  flex-wrap: wrap;
}

.v10-settings-lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.v10-settings-meta {
  margin: 8px 0 0;
  font-size: 0.76rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.v10-sub-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.v10-sub-plan-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--hairline-strong);
}

.v10-avatar-step-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.v10-zone-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid var(--hairline-strong);
}
