:root {
  --ink: #171512;
  --muted: #746d64;
  --paper: #f5f0e8;
  --card: #fffdf9;
  --line: #ded5ca;
  --wine: #71243f;
  --wine-dark: #4c172b;
  --gold: #bd864d;
  --soft-wine: #f5e8ed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 82% 4%, #ead5d8 0, transparent 30rem), var(--paper); }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
input.sr-only[type="file"] { display: none; }

.site-header { display: flex; align-items: baseline; justify-content: space-between; max-width: 1080px; margin: 0 auto; padding: 24px 24px 0; }
.site-header p { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.site-header__controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.wordmark { font-family: Georgia, serif; font-size: 32px; font-weight: 700; text-decoration: none; letter-spacing: -.04em; }
.wordmark span { color: var(--wine); }
.site-nav-link { min-height: 32px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.6); padding: 6px 12px; color: var(--ink); font-size: 12px; font-weight: 750; text-decoration: none; }
.site-nav-link:hover, .site-nav-link.is-current { border-color: var(--wine); background: var(--soft-wine); color: var(--wine); }
main { max-width: 1080px; margin: 0 auto; padding: 50px 24px 90px; }
.conversation-page { max-width: 920px; padding-top: 30px; }

.profile-page { display: grid; gap: 18px; max-width: 920px; padding-top: 36px; }
.profile-hero, .profile-overview, .profile-photos { border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,249,.94); padding: clamp(22px, 4vw, 34px); box-shadow: 0 16px 42px rgba(70,43,35,.07); }
.profile-hero { background: linear-gradient(118deg, rgba(255,253,249,.98), rgba(247,232,237,.82)); }
.profile-eyebrow { margin: 0 0 7px; color: var(--wine); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.profile-hero__topline, .profile-section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.profile-hero h1, .profile-page h2 { margin: 0; font-family: Georgia, serif; font-weight: 600; letter-spacing: -.025em; }
.profile-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.profile-page h2 { font-size: clamp(24px, 3vw, 31px); }
.profile-hero h1 + p, .profile-section-heading p, .profile-photos > div > p { max-width: 62ch; margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.profile-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 0; }
.profile-summary > div { min-width: 0; border-right: 1px solid var(--line); padding-right: 12px; }
.profile-summary > div:last-child { border-right: 0; padding-right: 0; }
.profile-summary dt { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.profile-summary dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 750; overflow-wrap: anywhere; }
.profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 25px; }
.profile-form[hidden] { display: none; }
.profile-summary { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.profile-summary > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 8px 12px 0; }
.profile-form label { display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 750; }
.profile-form input, .profile-form select { min-width: 0; min-height: 46px; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px; color: var(--ink); outline: none; }
.profile-form input:focus, .profile-form select:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(113,36,63,.11); }
.profile-unit-picker { grid-column: 1 / -1; margin-top: 0; }
.profile-measurement-field { display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 750; }
.profile-form .measurement-height-control input:focus { border: 0; box-shadow: none; }
.profile-form__actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); margin-top: 5px; padding-top: 20px; }
.profile-form__actions p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.profile-form__actions p.is-error { color: #8b2e26; }
.profile-photos { display: grid; grid-template-columns: 1fr; align-items: start; gap: 24px; }
.profile-photo-editor { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-photo-input { display: grid; gap: 8px; align-content: start; color: var(--ink); font-size: 13px; }
.profile-photo-input small { color: var(--muted); font-size: 11px; font-weight: 500; }
.profile-photo-preview { display: grid; position: relative; place-items: center; overflow: hidden; aspect-ratio: 3 / 4; border: 1px dashed #c8bcad; border-radius: 14px; background: #f3eee7; touch-action: none; }
.profile-photo-preview input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.profile-photo-preview img { position: absolute; width: 100%; height: 100%; object-fit: cover; transform-origin: center; user-select: none; pointer-events: none; }
.profile-photo-preview img[hidden] { display: none; }
.profile-photo-preview em { color: var(--muted); font-size: 12px; font-style: normal; }
.profile-photo-input .photo-controls { margin-top: 0; }
.profile-photo-input .photo-controls[hidden], .profile-photo-input .photo-replace[hidden] { display: none; }
.profile-photo-actions { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.profile-photo-actions p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.profile-photo-actions p.is-error { color: #8b2e26; }
.profile-analysis-details__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; }
.profile-analysis-details__grid > div { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 13px; }
.profile-analysis-details__grid > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }
.profile-analysis-details__grid dt { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.profile-analysis-details__grid dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; text-transform: capitalize; }
.secondary-profile-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 1px solid var(--wine); border-radius: 999px; background: transparent; padding: 9px 15px; color: var(--wine); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.secondary-profile-action:hover:not(:disabled) { background: var(--soft-wine); }

.chat-shell { min-height: 720px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,253,249,.94); box-shadow: 0 24px 80px rgba(70,43,35,.11); }
.chat-header { display: flex; align-items: center; gap: 13px; padding: 19px 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.62); }
.stylist-avatar, .message-avatar { display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--wine); color: #fff; font-family: Georgia, serif; font-weight: 700; }
.stylist-avatar { width: 42px; height: 42px; font-size: 20px; }
.chat-header h1 { margin: 0; font-family: Georgia, serif; font-size: 20px; font-weight: 600; }
.chat-header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.chat-header .ai-disclosure { margin: 6px 0 0; max-width: 52ch; color: var(--muted); font-size: 12px; line-height: 1.55; }
.online-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #6c956f; }

.message-feed { min-height: 550px; max-height: min(68vh, 720px); overflow-y: auto; padding: 28px clamp(16px, 5vw, 54px) 36px; scroll-behavior: smooth; }
.message-row, .chat-intro { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 18px; }
.message-row.user { justify-content: flex-end; }
.message-avatar { width: 28px; height: 28px; margin-top: 3px; font-size: 13px; }
.message-bubble, .chat-intro__bubble { max-width: min(620px, 84%); border: 1px solid var(--line); border-radius: 6px 18px 18px 18px; background: #fff; padding: 12px 15px; box-shadow: 0 5px 18px rgba(65,43,32,.04); }
.message-row.user .message-bubble { border: 0; border-radius: 18px 18px 6px 18px; background: var(--wine); color: #fff; }
.message-bubble p, .chat-intro__bubble p { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.message-attachment { display: block; width: min(260px, 100%); max-height: 320px; margin-top: 10px; border-radius: 12px; object-fit: cover; }
.message-summary { max-width: 520px; margin: -8px 0 18px 37px; color: var(--muted); font-size: 12px; }

.get-started { max-width: 660px; margin: 8px 0 24px 37px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,249,.92); padding: 12px; box-shadow: 0 8px 22px rgba(61,40,31,.05); }
.get-started__title { margin: 0 0 9px; color: var(--muted); font-size: 11px; font-weight: 750; }
.get-started__list { display: grid; gap: 7px; }
.get-started__prompt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 11px 13px; color: var(--ink); text-align: left; font-size: 12px; font-weight: 650; }
.get-started__prompt:hover { border-color: var(--wine); color: var(--wine); background: var(--soft-wine); }
.get-started__arrow { flex: 0 0 auto; color: var(--muted); font-size: 17px; }

.onb-card { max-width: 660px; margin: 10px 0 24px 37px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: clamp(20px, 4vw, 30px); box-shadow: 0 16px 38px rgba(61,40,31,.08); }
.onb-card__header h2 { margin: 0; font-family: Georgia, serif; font-size: 26px; font-weight: 600; }
.onb-card__header p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.field-title { display: block; margin: 22px 0 10px; font-size: 13px; font-weight: 750; }
.gender-grid { display: grid; gap: 9px; }
.choice-button { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 13px 15px; color: var(--ink); text-align: left; font-weight: 650; }
.choice-button.is-selected { border-color: var(--wine); background: var(--soft-wine); color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 13px; margin-top: 22px; }
.primary-action { border: 0; border-radius: 999px; background: var(--wine); color: #fff; padding: 11px 22px; font-weight: 750; }
.primary-action:hover:not(:disabled) { background: var(--wine-dark); }
.secondary-action { border: 0; background: transparent; color: var(--muted); padding: 8px 2px; text-decoration: underline; text-underline-offset: 3px; }
.card-error { margin: 14px 0 0; border-radius: 10px; background: #fae9e6; color: #8b2e26; padding: 10px 12px; font-size: 12px; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.consent-check input { width: 24px; height: 24px; margin-top: 1px; accent-color: var(--wine); }
.consent-check + .consent-check { margin-top: 10px; }

.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 20px; }
.photo-slot { min-width: 0; }
.photo-slot > label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 750; }
.photo-slot > p { min-height: 32px; margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.photo-frame { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 3/4; border: 1px dashed #c8bcad; border-radius: 13px; background: #f3eee7; touch-action: none; }
.photo-frame input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.photo-placeholder { color: var(--muted); padding: 18px; text-align: center; font-size: 11px; line-height: 1.45; }
.photo-preview { position: absolute; width: 100%; height: 100%; object-fit: cover; transform-origin: center; user-select: none; pointer-events: none; }
.photo-controls { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.photo-controls input { flex: 1; min-width: 0; accent-color: var(--wine); }
.photo-controls button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.photo-status { min-height: 18px; margin-top: 5px; color: var(--wine); font-size: 10px; }

.fit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.fit-field { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.fit-field strong { color: var(--ink); font-size: 12px; }
.fit-control { display: flex; align-items: center; gap: 5px; }
.fit-control input, .fit-control select { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 10px 9px; outline: none; }
.fit-control input:focus, .fit-control select:focus { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(113,36,63,.1); }
.fit-unit { white-space: nowrap; font-size: 10px; }
.fit-height-control { align-items: stretch; }
.fit-height-part { display: flex; min-width: 0; flex: 1; align-items: center; gap: 4px; }

.profile-fields { display: grid; gap: 18px; margin-top: 22px; }
.profile-fields .fit-field strong, .profile-fields .fit-unit { font-size: 13px; }
.profile-fields input { min-height: 48px; font-size: 16px; }
.profile-fields--personal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phone-fields { grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr); }
.phone-fields select { min-height: 48px; font-size: 15px; }
.phone-code-area { margin-top: 20px; }
.phone-code-area > p { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.phone-code-area input { font-size: 20px; letter-spacing: .2em; }
.phone-code-area[hidden] { display: none; }
.measurement-unit-picker { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.measurement-unit-picker__label { color: var(--muted); font-size: 11px; }
.measurement-unit-picker__choices { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: #f5f1ed; padding: 3px; }
.measurement-unit-option { min-width: 45px; min-height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 750; cursor: pointer; }
.measurement-unit-option.is-selected { background: #fff; color: var(--wine); box-shadow: 0 1px 4px rgba(61,40,31,.12); }
.measurement-unit-option:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.measurement-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.measurement-height-control { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.measurement-height-control:focus-within { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(113,36,63,.1); }
.measurement-height-segment { display: flex; align-items: center; min-width: 0; }
.measurement-height-segment + .measurement-height-segment { border-left: 1px solid var(--line); }
.measurement-height-control input { flex: 1; min-width: 0; width: 100%; min-height: 46px; border: 0; border-radius: 0; background: transparent; padding: 10px 7px 10px 12px; outline: 0; }
.measurement-height-mark { flex: 0 0 auto; padding-right: 12px; color: var(--muted); font-size: 16px; }
.photo-controls button { min-width: 32px; min-height: 32px; }
.photo-replace { min-height: 36px; font-size: 12px; }
.photo-frame.is-disabled { touch-action: auto; opacity: .7; }
.onb-card progress { display: block; width: 100%; height: 8px; margin: 22px 0; border: 0; border-radius: 999px; overflow: hidden; background: var(--line); accent-color: var(--wine); }
.onb-card progress::-webkit-progress-bar { background: var(--line); }
.onb-card progress::-webkit-progress-value { background: var(--wine); border-radius: 999px; }
.onb-card progress::-moz-progress-bar { background: var(--wine); border-radius: 999px; }
.analysis-stages { display: grid; gap: 10px; padding: 0; list-style: none; }
.analysis-stage { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 13px; }
.analysis-stage__status { color: var(--muted); font-size: 12px; }
.analysis-stage.is-complete .analysis-stage__status { color: #426542; }
.analysis-stage p { flex-basis: 100%; margin: 0; color: #8b2e26; line-height: 1.5; }
.analysis-message { color: var(--muted); font-size: 12px; line-height: 1.5; }
.analysis-actions { flex-wrap: wrap; }
.analysis-results { border: 1px solid #d8e2d5; border-radius: 14px; background: #f7faf6; padding: 18px; }
.analysis-results h3 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 21px; font-weight: 600; }
.analysis-results p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.analysis-facts { display: grid; grid-template-columns: minmax(100px, 1fr) 2fr; gap: 9px 18px; margin: 0; font-size: 13px; line-height: 1.5; }
.analysis-facts dt { color: var(--muted); }
.analysis-facts dd { margin: 0; text-transform: capitalize; overflow-wrap: anywhere; }
.message-feed > .analysis-results { max-width: 660px; margin: 10px 0 24px 37px; }

.turn-status { display: flex; align-items: center; gap: 10px; margin: 13px 0 20px 37px; color: var(--muted); font-size: 12px; }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--wine); animation: bounce 1.1s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 70%, 100% { transform: translateY(0); opacity: .35; } 35% { transform: translateY(-4px); opacity: 1; } }

.outfit-card { max-width: 720px; margin: 8px 0 25px 37px; border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 18px; box-shadow: 0 14px 34px rgba(61,40,31,.07); }
.outfit-heading { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 14px; }
.outfit-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 21px; }
.outfit-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.outfit-score { color: #647b64; white-space: nowrap; font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
/* The preview says its ordering is not final, in the slot the score will
   occupy — so nothing moves when the real number arrives. Muted rather than
   green: this is a state, not a verdict. */
.outfit-score-pending { color: var(--muted); font-style: italic; }
.outfit-card[data-provisional] { opacity: .82; }
@media (prefers-reduced-motion: no-preference) {
  .outfit-card[data-provisional] { transition: opacity .2s ease; }
}
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.product-card img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; background: #eee9e1; }
.product-body { padding: 11px; }
/* Q-21. The commerce grounding block is the evidence a purchase decision
   rests on — price, currency, availability, shipping, returns, and what could
   not be verified — and it rendered at 8px, smaller than the page footer.
   Product role and retailer were 8px too, and the shop link 9px. All are now
   12px, the smallest size that still reads as body copy, and the rules that
   set both size and line height keep the 1.45 ratio the text-spacing criterion
   needs. Nothing here was a deliberate hierarchy choice: the whole card was
   scaled down and the disclosure went with it. */
.product-role, .product-retailer { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.product-title { min-height: 2.5em; margin: 6px 0; font-family: Georgia, serif; font-size: 14px; line-height: 1.25; }
.product-price { margin: 7px 0 10px; font-size: 11px; font-weight: 750; }
.commerce-grounding { margin: 10px 0; border: 1px solid #d8e2d5; border-radius: 10px; background: #f7faf6; padding: 9px; }
.commerce-grounding-title { margin: 0 0 7px; color: #425942; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.commerce-grounding-facts { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.commerce-grounding-fact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 7px; align-items: baseline; font-size: 12px; line-height: 1.45; }
.commerce-grounding-label { color: var(--muted); }
.commerce-grounding-result { font-weight: 800; }
.commerce-grounding-fact.is-verified .commerce-grounding-result { color: #426542; }
.commerce-grounding-fact.is-unknown .commerce-grounding-result,
.commerce-grounding-fact.is-not_verified .commerce-grounding-result { color: #8a5f27; }
.commerce-grounding-detail { grid-column: 1 / -1; color: var(--ink); overflow-wrap: anywhere; }
.commerce-grounding-link { grid-column: 1 / -1; color: #425942; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.commerce-grounding-time { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.commerce-grounding-time + .commerce-grounding-time { margin-top: 2px; }
.commerce-grounding-unknowns { margin: 7px 0 0; border-radius: 7px; background: #fff4e2; padding: 6px 7px; color: #755324; font-size: 12px; line-height: 1.45; }
.shop-link { display: block; border-radius: 999px; background: var(--ink); color: #fff; padding: 8px 9px; text-align: center; text-decoration: none; font-size: 12px; font-weight: 750; }
.outfit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.tryon-button { border: 1px solid var(--wine); border-radius: 999px; background: var(--wine); padding: 8px 13px; color: #fff; font-size: 10px; font-weight: 750; }
.tryon-button:disabled { cursor: not-allowed; opacity: .55; }
.tryon-result { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--soft-wine); }
.tryon-result img { display: block; width: 100%; max-height: 620px; object-fit: contain; background: #eee9e1; }
.tryon-result p { margin: 0; padding: 9px 12px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.feedback-button { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 8px 12px; color: var(--muted); font-size: 10px; font-weight: 700; }
.feedback-button.is-active { border-color: var(--wine); background: var(--soft-wine); color: var(--wine); }
.feedback-button[data-action="dismiss"] { margin-left: auto; }

.composer { margin: 0 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 8px; box-shadow: 0 -8px 28px rgba(61,40,31,.05); }
.composer-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: end; }
.composer textarea { width: 100%; max-height: 120px; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); line-height: 1.45; }
.composer textarea:disabled { background: transparent; }
.composer-row > button { width: 38px; height: 38px; border-radius: 50%; font-size: 20px; font-weight: 700; }
.composer-send { border: 0; background: var(--wine); color: #fff; }
.composer-attach { border: 1px solid var(--line); background: #fff; color: var(--wine); }
.composer-attach:hover:not(:disabled) { border-color: var(--wine); background: var(--soft-wine); }
.composer-attachment { display: flex; align-items: center; gap: 8px; margin: 0 4px 7px; border-radius: 10px; background: var(--soft-wine); padding: 6px 8px; color: var(--wine); font-size: 10px; font-weight: 700; }
.composer-attachment img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; }
.wardrobe-picker__item[aria-pressed="true"] { outline: 2px solid var(--wine); background: var(--soft-wine); }
.garment-photo-list { display: flex; flex-direction: column; gap: 6px; max-height: 230px; overflow-y: auto; margin-bottom: 8px; }
.garment-photo-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--soft-wine); }
.garment-photo-row img { width: 42px; height: 48px; object-fit: cover; border-radius: 6px; }
.garment-photo-row label { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 12px; }
.garment-photo-row label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.garment-photo-row select { width: 100%; padding: 4px; font-size: 12px; }
.garment-photo-row button { width: 28px; height: 28px; border: 0; background: transparent; color: var(--wine); font-size: 18px; }
.composer-attachment span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-attachment button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--wine); font-size: 18px; }

.legal-card { max-width: 820px; border: 1px solid var(--line); border-radius: 28px; background: var(--card); padding: clamp(26px, 5vw, 58px); box-shadow: 0 22px 60px rgba(71,50,35,.07); }
.legal-card h1 { margin: 0 0 12px; font-family: Georgia, serif; font-size: clamp(42px,7vw,70px); }
.legal-card h2 { margin: 38px 0 10px; font-family: Georgia, serif; font-size: 25px; }
.legal-card p { color: var(--muted); line-height: 1.7; }
.legal-updated { margin-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.support-action { margin: 30px 0 42px; }
.support-action .primary-action { display: inline-block; text-decoration: none; }
footer { display: flex; flex-wrap: wrap; gap: 18px; max-width: 1080px; margin: 0 auto; padding: 25px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
footer span { margin-left: auto; }
footer a, .footer-action { display: inline-flex; align-items: center; min-height: 24px; min-width: 24px; }
.footer-action { border: 0; background: transparent; padding: 0; color: var(--muted); text-decoration: underline; }
.footer-action:hover { color: var(--wine); }

@media (max-width: 680px) {
  .site-header p { display: none; }
  .site-header { align-items: center; }
  .site-header__controls { gap: 7px; }
  .site-nav-link { min-height: 30px; padding: 5px 9px; font-size: 11px; }
  main, .conversation-page { padding: 18px 10px 55px; }
  .profile-page { padding-top: 18px; }
  .profile-hero__topline, .profile-section-heading { flex-direction: column; gap: 14px; }
  .profile-summary { grid-template-columns: repeat(2, 1fr); }
  .profile-summary > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 8px 12px 0; }
  .profile-summary > div:nth-child(2) { border-right: 0; padding-right: 0; }
  .profile-summary > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .profile-form { grid-template-columns: 1fr; }
  .profile-form__actions { align-items: stretch; flex-direction: column; }
  .profile-form__actions .primary-action { width: 100%; }
  .profile-photos { grid-template-columns: 1fr; gap: 16px; }
  .profile-photo-editor { grid-template-columns: 1fr; }
  .profile-photo-actions { align-items: stretch; }
  .profile-photo-actions .primary-action { width: 100%; }
  .profile-analysis-details__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-photos .secondary-profile-action { width: 100%; }
  .site-header { padding: 18px 16px 0; }
  .chat-shell { min-height: calc(100vh - 95px); border-radius: 20px; }
  .message-feed { max-height: calc(100vh - 260px); min-height: calc(100vh - 310px); padding: 20px 12px 28px; }
  .onb-card, .outfit-card { margin-left: 0; }
  .get-started { margin-left: 0; }
  .message-summary, .turn-status { margin-left: 0; }
  .message-feed > .analysis-results { margin-left: 0; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .profile-fields--personal, .phone-fields { grid-template-columns: 1fr; }
  .measurement-inputs { grid-template-columns: 1fr; }
  .message-bubble, .chat-intro__bubble { max-width: 90%; }
  footer span { margin-left: 0; width: 100%; }
}

@media (max-width: 430px) {
  .photo-grid { grid-template-columns: 1fr; }
  .outfit-heading { display: block; }
  .outfit-score { display: block; margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
.capsule-summary { width: min(100%, 48rem); margin: 1rem 0; padding: 1.2rem; border: 1px solid var(--line, #ddd); border-radius: 1rem; background: var(--surface, #fff); }
.capsule-heading { margin: 0 0 .5rem; font-size: 1.1rem; }
.capsule-schedule { padding-left: 1.4rem; max-height: 24rem; overflow: auto; }
.capsule-slot { margin: .35rem 0; }
.capsule-slot-button { padding: .45rem .6rem; border: 1px solid #d7d7d7; border-radius: .5rem; background: transparent; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.capsule-slot-button:hover, .capsule-slot-button:focus-visible { border-color: currentColor; }
.capsule-slot-button:disabled { opacity: .55; cursor: default; }
.capsule-packing summary, .capsule-assumptions summary { padding: .6rem 0; cursor: pointer; }
.capsule-packing-list, .capsule-assumptions ul { padding-left: 1.3rem; }
.capsule-purchase-total { font-weight: 600; }
.capsule-cost-note, .capsule-assumptions { font-size: .85rem; line-height: 1.5; }
.composer-editing-context { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .4rem .75rem; color: var(--wine); font-size: .85rem; }
.editing-context-clear, .pdp-edit-action { border: 1px solid var(--line); border-radius: .5rem; background: transparent; color: inherit; padding: .35rem .55rem; font-size: .8rem; }
