/* ==========================================================================
 * Manee Brides App First-Fold · Stitch Spec Implementation (`stitch-firstfold-1130.css`)
 * Derived strictly from `.stitch/app-firstfold-1130/DESIGN.md` & Stitch Project `6522224680115904155`.
 * Palette tokens read ONLY from `manee-tokens.css` (zero naked hex/rgb literals anywhere):
 *   Daily Zone (`data-zone="daily"`): --cream / --garnet / --garnet-deep / --champagne / --mocha / --ink
 *   Maini Zone (`data-zone="maini"`): --manee-blue / --manee-blue-bright / --manee-silver via semantic tokens
 * Strictly ZERO blue/purple in Daily zone, ZERO pure black, ZERO text over portraits (`overlapPhoto = 0`).
 * ========================================================================== */

html[data-zone="daily"],
html[data-zone="daily"] body {
  background: var(--cream);
  color: var(--ink);
  overflow-x: clip;
}

html[data-zone="daily"] body {
  background-image:
    radial-gradient(
      840px 380px at 50% -120px,
      color-mix(in srgb, var(--champagne) 14%, transparent),
      transparent 68%
    );
}

.v10-stage.stitch-stage {
  width: 100%;
  max-width: 1080px;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
 * COMPOSITOR-ONLY MOTION CHOREOGRAPHY (`transform` + `opacity` ONLY)
 * ========================================================================== */
@keyframes stitchStageEnter {
  from {
    opacity: 0.01;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes stitchMsgEnter {
  from {
    opacity: 0.01;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.stitch-gate-wrap:not([hidden]) .stitch-gate-visual {
  animation: stitchStageEnter var(--dur-stage, 280ms) var(--ease) both;
}

.stitch-gate-wrap:not([hidden]) .stitch-gate-copy {
  animation: stitchStageEnter var(--dur-stage, 280ms) var(--ease) 40ms both;
}

.v19-persona-stage:not([hidden]) .stitch-persona-topbar,
.v19-persona-stage:not([hidden]) .v19-persona-head {
  animation: stitchStageEnter var(--dur-stage, 280ms) var(--ease) both;
}

.v19-persona-stage:not([hidden]) #pickPersonaShaohua {
  animation: stitchStageEnter var(--dur-stage, 280ms) var(--ease) 40ms both;
}

.v19-persona-stage:not([hidden]) #pickPersonaWantang {
  animation: stitchStageEnter var(--dur-stage, 280ms) var(--ease) 80ms both;
}

.stitch-stage #v10ChatMain:not([hidden]) {
  animation: stitchStageEnter var(--dur-stage, 280ms) var(--ease) both;
}

.stitch-stage .v10-msg:not(.v10-msg--offscreen) {
  animation: stitchMsgEnter var(--dur-card, 240ms) var(--ease) both;
}

/* ==========================================================================
 * STEP 1: 身份分流 (`#v10GateSection` — Stitch Screen 1 Editorial Lookbook)
 * ========================================================================== */
.stitch-gate-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top, 0px)) 20px max(22px, env(safe-area-inset-bottom, 0px));
}

.stitch-gate-folio {
  width: 100%;
  max-width: 390px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

.stitch-gate-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.stitch-monogram-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  border: 1.5px solid var(--champagne);
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--garnet-deep) 24%, transparent);
}

.stitch-monogram-seal svg {
  width: 28px;
  height: 28px;
}

.stitch-eyebrow {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mocha);
}

.stitch-portrait-frame {
  width: 100%;
  max-width: 248px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 22px;
  background: var(--cream);
  border: 1px solid var(--champagne);
  box-shadow: 0 18px 42px -18px color-mix(in srgb, var(--garnet-deep) 18%, transparent);
}

.stitch-portrait-inner {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--cream) 90%, var(--champagne));
}

.stitch-portrait-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  display: block;
  transition: transform 0.5s var(--ease);
}

.stitch-gate-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.stitch-gate-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.38rem, 1.2rem + 0.9vw, 2.05rem);
  line-height: 1.28;
  letter-spacing: 0.03em;
  color: var(--ink);
  max-width: 15em;
  text-wrap: balance;
}

.stitch-gate-sub {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--mocha);
}

.stitch-identity-stack {
  width: 100%;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 8px;
}

.stitch-identity-pill {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 52px;
  padding: 0 16px 0 22px;
  border-radius: 999px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  transition: transform var(--dur-micro, 150ms) var(--ease-spring, var(--ease)), opacity var(--dur-micro, 150ms) var(--ease);
}

.stitch-identity-pill:active {
  transform: scale(0.975);
}

.stitch-identity-pill--primary {
  background: linear-gradient(135deg, var(--garnet) 0%, var(--garnet-deep) 100%);
  color: var(--cream);
  border: 1px solid color-mix(in srgb, var(--garnet-deep) 70%, var(--champagne));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--cream) 28%, transparent),
    0 12px 28px -12px color-mix(in srgb, var(--garnet-deep) 44%, transparent);
}

.stitch-identity-pill--primary::after,
.v19-persona-card.is-recommended .stitch-persona-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 28%,
    color-mix(in srgb, var(--cream) 24%, transparent) 50%,
    transparent 72%
  );
  transform: translate3d(-130%, 0, 0) skewX(-18deg);
  transition: transform 0.55s var(--ease);
}

.stitch-identity-pill--secondary {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--champagne);
  box-shadow: 0 8px 20px -14px color-mix(in srgb, var(--garnet-deep) 16%, transparent);
}

.stitch-identity-pill__label {
  grid-column: 2;
  white-space: nowrap;
}

.stitch-identity-pill__arrow {
  grid-column: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  line-height: 1;
  transition: transform var(--dur-micro, 150ms) var(--ease-spring, var(--ease));
}

.stitch-identity-pill--primary .stitch-identity-pill__arrow {
  background: color-mix(in srgb, var(--cream) 18%, transparent);
  color: var(--cream);
}

.stitch-identity-pill--secondary .stitch-identity-pill__arrow {
  color: var(--mocha);
}

@media (hover: hover) {
  .stitch-portrait-frame:hover .stitch-portrait-inner img,
  .v19-persona-card:hover .v19-portrait-mat img {
    transform: scale(1.018);
  }

  .stitch-identity-pill:hover .stitch-identity-pill__arrow,
  .stitch-identity-pill:focus-visible .stitch-identity-pill__arrow {
    transform: translate3d(3px, 0, 0);
  }

  .stitch-identity-pill--primary:hover::after,
  .stitch-identity-pill--primary:focus-visible::after,
  .v19-persona-card.is-recommended:hover .stitch-persona-cta::after,
  .v19-persona-card.is-recommended:focus-visible .stitch-persona-cta::after {
    transform: translate3d(230%, 0, 0) skewX(-18deg);
  }
}

.stitch-protocol-note {
  margin: 4px 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--mocha);
}

.stitch-protocol-note .v19-protocol-link {
  color: var(--mocha);
  text-decoration: underline;
  text-decoration-color: var(--champagne);
  text-underline-offset: 3px;
  font-weight: 600;
}

.stitch-gate-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

@media (min-width: 900px) {
  .stitch-gate-folio {
    max-width: 980px;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 56px;
    padding: 20px 24px;
  }

  .stitch-portrait-frame {
    max-width: 380px;
    padding: 10px;
    border-radius: 26px;
  }

  .stitch-portrait-inner {
    border-radius: 16px;
  }

  .stitch-gate-copy {
    align-items: flex-start;
    text-align: left;
    gap: 14px;
  }

  .stitch-gate-brand {
    align-items: flex-start;
    text-align: left;
    margin-bottom: 4px;
  }

  .stitch-gate-sub {
    font-size: 0.94rem;
  }

  .stitch-identity-stack {
    max-width: 360px;
    margin-top: 12px;
  }

  .stitch-protocol-note {
    text-align: left;
  }
}

/* ==========================================================================
 * STEP 2: 选聊天对象 (`#v19PersonaSection` — Stitch Screen 2 Twin Lookbook)
 * ========================================================================== */
.v19-persona-stage {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top, 0px)) 20px max(36px, env(safe-area-inset-bottom, 0px));
}

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

.stitch-persona-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stitch-back-link {
  min-height: 44px;
  padding: 0 12px 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mocha);
  transition: transform var(--dur-micro, 150ms) var(--ease-spring, var(--ease)), opacity var(--dur-micro, 150ms) var(--ease);
}

.stitch-back-link:active {
  transform: scale(0.97);
}

.stitch-eyebrow-rule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stitch-eyebrow-rule::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--champagne);
}

.v19-persona-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v19-persona-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.38rem, 1.22rem + 0.8vw, 1.85rem);
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.v19-persona-head__sub {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--mocha);
}

.v19-persona-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.v19-persona-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid var(--champagne);
  background: color-mix(in srgb, var(--cream) 48%, white);
  text-align: left;
  box-shadow: 0 16px 38px -18px color-mix(in srgb, var(--garnet-deep) 14%, transparent);
  transition: transform 0.2s var(--ease-spring, var(--ease)), opacity 0.2s var(--ease);
}

.v19-persona-card.is-recommended {
  border-color: var(--champagne);
  background: color-mix(in srgb, var(--cream) 28%, white);
  box-shadow: 0 20px 44px -18px color-mix(in srgb, var(--garnet-deep) 18%, transparent);
}

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

/* Strictly 3:4 Warm Porcelain Mat, overlapPhoto = 0 */
.v19-portrait-mat {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  padding: 7px;
  border-radius: 18px;
  background: var(--cream);
  border: 1px solid var(--champagne);
  overflow: hidden;
}

.v19-portrait-mat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
  border-radius: 12px;
  transition: transform 0.55s var(--ease);
}

.v19-persona-info {
  padding: 2px 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stitch-persona-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.v19-persona-role {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mocha);
}

.v19-persona-badge {
  align-self: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--cream);
  border: 1px solid var(--champagne);
  color: var(--mocha);
}

.v19-persona-card.is-recommended .v19-persona-badge {
  background: color-mix(in srgb, var(--garnet) 10%, var(--cream));
  border-color: color-mix(in srgb, var(--garnet) 38%, var(--champagne));
  color: var(--garnet-deep);
}

.v19-persona-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.24;
  color: var(--ink);
}

.v19-persona-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.54;
  color: var(--mocha);
}

.stitch-persona-cta {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  min-height: 46px;
  width: 100%;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--champagne);
}

.v19-persona-card.is-recommended .stitch-persona-cta {
  background: linear-gradient(135deg, var(--garnet) 0%, var(--garnet-deep) 100%);
  color: var(--cream);
  border-color: transparent;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--garnet-deep) 40%, transparent);
}

.stitch-persona-footer-seal {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

@media (min-width: 900px) {
  .v19-persona-stage {
    align-items: center;
    padding: 20px 24px 28px;
  }

  .v19-persona-card-wrap {
    max-width: 820px;
    gap: 16px;
  }

  .v19-persona-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .v19-persona-card {
    padding: 12px;
    gap: 12px;
  }

  .v19-portrait-mat {
    max-width: 240px;
    margin: 0 auto;
    padding: 6px;
  }

  .v19-persona-info {
    gap: 4px;
  }

  .stitch-persona-cta {
    margin-top: 6px;
    min-height: 44px;
  }

  .stitch-persona-footer-seal {
    margin-top: 2px;
  }
}

/* ==========================================================================
 * STEP 3: 单一主角对话框 (Minimalist Single-Protagonist Dialog Canvas)
 * Shared layout across Daily & Maini zones; colors follow active zone tokens.
 * ========================================================================== */
.v10-stage.stitch-stage:has(#v10ChatMain:not([hidden])) {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  max-width: 780px;
}

.stitch-stage .v10-topbar.stitch-minimal-topbar {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  min-height: 60px;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-ground);
  border-bottom: 1px solid var(--gold);
  flex-wrap: nowrap;
}

.stitch-stage .v10-topbar.stitch-minimal-topbar .v10-topbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.stitch-stage .v10-topbar.stitch-minimal-topbar .v10-persona-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stitch-stage .v10-topbar.stitch-minimal-topbar .v10-topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.v10-topbar.stitch-minimal-topbar .v10-seal,
.v10-topbar.stitch-minimal-topbar #topChimeToggleBtn,
.v10-topbar.stitch-minimal-topbar #topOpenShopBtn,
.v10-topbar.stitch-minimal-topbar #topRoleTag {
  display: none;
}

.stitch-stage .v10-topbar.stitch-minimal-topbar .v10-persona-chip__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  border: 1px solid var(--gold);
  background: var(--bg-porcelain);
  flex-shrink: 0;
}

.stitch-stage .v10-topbar.stitch-minimal-topbar .v10-persona-chip__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--text-primary);
}

.stitch-stage .v10-topbar.stitch-minimal-topbar .v10-persona-chip__role {
  font-size: 0.74rem;
  color: var(--ink-2);
}

.stitch-stage .v10-topbar.stitch-minimal-topbar .v10-pill-btn {
  min-height: 44px;
  padding: 0 13px;
  border-width: 1px;
  border-color: var(--gold);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.78rem;
}

html[data-zone="daily"] .v10-topbar.stitch-minimal-topbar .v10-pill-btn {
  background: var(--cream);
  border-color: var(--champagne);
  color: var(--ink);
}

.stitch-stage .v10-topbar.stitch-minimal-topbar .v10-pill-btn.v10-pill-btn--ruby,
html[data-zone="daily"] .v10-topbar.stitch-minimal-topbar .v10-pill-btn.v10-pill-btn--ruby {
  background: var(--accent-grad);
  color: var(--on-accent);
  border-color: transparent;
}

@media (max-width: 767px) {
  .stitch-stage .v10-topbar.stitch-minimal-topbar {
    flex-wrap: wrap;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px;
    row-gap: 4px;
    column-gap: 6px;
  }

  .stitch-stage .v10-topbar.stitch-minimal-topbar::before {
    content: "";
    flex-basis: 100%;
    height: 0;
    order: -1;
  }

  .stitch-stage .v10-topbar.stitch-minimal-topbar .v10-topbar__left {
    order: -3;
    flex: 1 1 0;
    min-width: 0;
  }

  .stitch-stage .v10-topbar.stitch-minimal-topbar .v10-persona-chip__meta {
    min-width: 0;
  }

  .stitch-stage .v10-topbar.stitch-minimal-topbar .v10-persona-chip__name,
  .stitch-stage .v10-topbar.stitch-minimal-topbar .v10-persona-chip__role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stitch-stage .v10-topbar.stitch-minimal-topbar .v10-topbar__right {
    display: contents;
  }

  .stitch-stage .v10-topbar.stitch-minimal-topbar #topOpenDrawerBtn {
    order: -2;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .stitch-stage .v10-topbar.stitch-minimal-topbar .v10-pill-btn {
    padding: 0 9px;
    font-size: 0.74rem;
  }

  .stitch-stage .v10-topbar.stitch-minimal-topbar .v10-topbar__right > .v10-pill-btn:not(#topOpenDrawerBtn) {
    flex: 1 1 auto;
  }
}

.stitch-stage .v10-client-bar {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.stitch-stage .v10-client-select {
  flex: 1 1 140px;
  max-width: none;
  min-height: 44px;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-strong);
}

@media (max-width: 520px) {
  .stitch-stage .v20-client-bar__actions {
    width: 100%;
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }
}

.stitch-stage .v10-chat-main {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  width: 100%;
  padding: 18px 16px 24px;
  gap: 16px;
}

.stitch-stage .v10-stream {
  gap: 16px;
}

html[data-zone="daily"] .v10-msg--assistant .v10-bubble {
  padding: 14px 16px;
  border-radius: 20px;
  border-top: 1px solid var(--champagne);
  border-right: 1px solid var(--champagne);
  border-bottom: 1px solid var(--champagne);
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.62;
  box-shadow: 0 10px 28px -16px color-mix(in srgb, var(--garnet-deep) 14%, transparent);
}

html[data-zone="daily"] .v10-msg--assistant:not([data-role-tag]) .v10-bubble {
  background: color-mix(in srgb, var(--cream) 45%, white);
  border-left: 1px solid var(--champagne);
}

.stitch-stage .v10-msg--user .v10-bubble {
  padding: 12px 16px;
  border-radius: 20px;
  background: var(--accent-grad);
  color: var(--on-accent);
  border: 1px solid transparent;
  font-size: 0.94rem;
  line-height: 1.62;
  box-shadow: var(--shadow-cta);
}

html[data-zone="daily"] .v10-card {
  padding: 16px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--cream) 42%, white);
  border: 1px solid var(--champagne);
  box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--garnet-deep) 16%, transparent);
}

html[data-zone="daily"] .v10-card__title {
  color: var(--ink);
}

html[data-zone="daily"] .v10-card__sub {
  color: var(--mocha);
}

@media (min-width: 640px) {
  .stitch-stage .v29-intake-grid {
    grid-template-columns: minmax(196px, 1.18fr) minmax(0, 0.92fr) minmax(0, 1fr);
  }
}

.stitch-stage .v29-intake-field input,
.stitch-stage .v29-intake-field select {
  min-height: 44px;
  padding: 6px 8px;
  font-size: 1rem;
  border-color: var(--hairline-strong);
  background: var(--bg-porcelain);
  color: var(--text-primary);
}

.stitch-stage .v10-dock {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  background: var(--bg-ground);
  border-top: 1px solid var(--gold);
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom, 0px));
}

.stitch-stage .v19-tool-bar {
  gap: 6px;
}

html[data-zone="daily"] .v19-tool-btn {
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--champagne) 70%, transparent);
  background: color-mix(in srgb, var(--cream) 65%, white);
  color: var(--mocha);
}

html[data-zone="daily"] .v19-tool-btn--featured {
  background: color-mix(in srgb, var(--garnet) 9%, var(--cream));
  border-color: color-mix(in srgb, var(--garnet) 45%, var(--champagne));
  color: var(--garnet-deep);
}

html[data-zone="daily"] .v10-upload-btn {
  background: var(--cream);
  border: 1px solid var(--champagne);
  color: var(--ink);
  font-weight: 600;
}

.stitch-stage .v10-textarea {
  font-size: 1rem;
  border: 1px solid var(--hairline-strong);
  color: var(--text-primary);
}

html[data-zone="daily"] .v10-textarea {
  background: color-mix(in srgb, var(--cream) 30%, white);
  border-color: var(--champagne);
  color: var(--ink);
}

.stitch-stage .v10-send-btn {
  background: var(--accent-grad);
  color: var(--on-accent);
}

@media (prefers-reduced-motion: reduce) {
  .stitch-gate-wrap:not([hidden]) .stitch-gate-visual,
  .stitch-gate-wrap:not([hidden]) .stitch-gate-copy,
  .v19-persona-stage:not([hidden]) .stitch-persona-topbar,
  .v19-persona-stage:not([hidden]) .v19-persona-head,
  .v19-persona-stage:not([hidden]) #pickPersonaShaohua,
  .v19-persona-stage:not([hidden]) #pickPersonaWantang,
  .stitch-stage #v10ChatMain:not([hidden]),
  .stitch-stage .v10-msg:not(.v10-msg--offscreen) {
    animation: none;
  }

  .stitch-portrait-inner img,
  .v19-portrait-mat img,
  .stitch-identity-pill,
  .stitch-identity-pill__arrow,
  .stitch-identity-pill--primary::after,
  .v19-persona-card.is-recommended .stitch-persona-cta::after,
  .stitch-back-link,
  .v19-persona-card {
    transition: none;
  }
}
