/* VOnn conversation UI port: vonn-app/app/components/conversation/styles.css
   (feed, messages, onboarding, get-started, stage, composer and mobile).
   Scoped to the chat route: profile/legal pages retain their own layout.
   Vibe retains its real onboarding gates, disclosures and supported actions.
   The dock occupies a layout row instead of overlaying a guessed feed inset,
   so multiline drafts, attachments and safe-area changes never cover replies. */
.vibe-chat {
  --canvas: #fff;
  --surface: #fff;
  --user-message-bg: #f7f7f5;
  --ink: #16110e;
  --ink-soft: #2d1b14;
  --ink-muted: #806050;
  --accent: #b45a3c;
  --accent-deep: #5c1a1b;
  --signal: #c6a15b;
  --rule: #f0e0d0;
  --rule-soft: #f5ebe0;
  --font-premium: "Avenir Next", "Neue Haas Grotesk Text", "Helvetica Neue", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --muted: var(--ink-muted);
  --paper: var(--canvas);
  --card: var(--surface);
  --line: var(--rule);
  --wine: var(--accent-deep);
  --wine-dark: var(--accent);
  --soft-wine: var(--rule-soft);
  font-family: var(--font-premium);
  color: var(--ink-soft);
  background: var(--canvas);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vibe-chat .conversation-page { flex: 1; min-height: 0; width: 100%; max-width: none; margin: 0; padding: 0; display: flex; }
.wardrobe-picker { width: min(680px, calc(100vw - 24px)); max-height: 80vh; border: 1px solid #e1d2c6; border-radius: 20px; padding: 20px; box-shadow: 0 20px 70px #30172033; }
.wardrobe-picker::backdrop { background: #1f171a88; }
.wardrobe-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; overflow-y: auto; }
.wardrobe-picker__item { display: grid; gap: 6px; border: 1px solid #e1d2c6; border-radius: 12px; background: #fff; padding: 8px; text-align: left; cursor: pointer; }
.wardrobe-picker__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.vibe-chat .chat-shell { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--canvas); overflow: hidden; }
.vibe-chat .message-feed { flex: 1; display: flex; flex-direction: column; gap: 1.25rem; width: 100%; max-width: none; min-width: 0; min-height: 0; max-height: none; margin: 0; padding: 2rem max(1.5rem, calc((100% - 960px) / 2)); overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.vibe-chat .message-feed > * { flex-shrink: 0; min-width: 0; }
.vibe-chat #onboarding-card:empty { display: none; }
.vibe-chat .message-row, .vibe-chat .chat-intro { display: flex; flex-direction: column; gap: 0; margin: 0; }
.vibe-chat .message-bubble, .vibe-chat .chat-intro__bubble { max-width: 100%; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0; overflow-wrap: anywhere; }
.vibe-chat .message-row.user { align-self: flex-end; max-width: min(640px, 85%); padding: .85rem 1.15rem; border-radius: 14px; background: var(--user-message-bg); }
.vibe-chat .message-row.user .message-bubble { border: 0; border-radius: 0; background: transparent; color: var(--ink-soft); }
.vibe-chat .message-row.user p { font-size: .98rem; font-weight: 500; letter-spacing: -.005em; line-height: 1.45; }
.vibe-chat .message-row.assistant, .vibe-chat .chat-intro { align-self: stretch; max-width: 100%; padding: .25rem 0 .25rem 1rem; border-left: 2px solid var(--ink); }
.vibe-chat .message-row.assistant p, .vibe-chat .chat-intro p { font-size: 1rem; line-height: 1.6; }
.vibe-chat .message-attachment { width: 100%; max-width: 180px; max-height: 220px; object-fit: cover; margin: .85rem 0 0 auto; border-radius: 6px; box-shadow: 0 0 0 1px var(--rule); }
.vibe-chat .message-summary { max-width: 100%; margin: 0; padding: .25rem 0 .25rem 1rem; border-left: 2px solid var(--rule); font-size: .85rem; font-style: italic; }
.vibe-chat .onb-card { width: 100%; max-width: none; margin: 0 0 1.25rem; padding: 1.25rem 1.25rem 1rem; border-radius: 14px; box-shadow: none; background: var(--surface); }
.vibe-chat .onb-card:last-child { margin-bottom: 0; }
.vibe-chat .onb-card__header h2 { font-family: var(--font-premium); font-size: 1.2rem; font-weight: 750; letter-spacing: -.015em; }
.vibe-chat .onb-card__header p { font-size: .9rem; }
.vibe-chat .primary-action { border-radius: 8px; background: var(--ink); padding: .65rem 1rem; font-size: .9rem; }
.vibe-chat .primary-action:hover:not(:disabled) { background: var(--ink-soft); }
.vibe-chat .choice-button { min-height: 44px; font-size: .9rem; }
.vibe-chat .choice-button.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--user-message-bg); color: var(--ink); }
.vibe-chat .photo-frame { background: var(--rule-soft); border-color: var(--rule); border-radius: 12px; }
.vibe-chat .photo-slot > p, .vibe-chat .photo-placeholder, .vibe-chat .photo-status, .vibe-chat .fit-field, .vibe-chat .fit-unit { font-size: 12px; }
.vibe-chat .consent-check input { flex: 0 0 24px; }
.vibe-chat .analysis-results { border-color: var(--rule); border-radius: 12px; background: var(--surface); }
.vibe-chat .analysis-results h3 { font-family: var(--font-premium); font-size: 1.1rem; font-weight: 700; }
.vibe-chat .message-feed > .analysis-results { max-width: none; margin: 0; }
.vibe-chat .get-started { align-self: flex-start; width: min(680px, 100%); max-width: 100%; margin: 0; padding: .75rem; border-radius: 12px; background: color-mix(in srgb, var(--surface) 92%, var(--rule-soft)); box-shadow: 0 6px 18px rgba(180,100,60,.05); }
.vibe-chat .get-started__title { margin: 0 0 .55rem; font-size: .78rem; font-weight: 700; }
.vibe-chat .get-started__list { gap: .45rem; }
.vibe-chat .get-started__prompt { min-height: 44px; gap: .75rem; padding: .7rem .85rem; border-radius: 8px; font-size: .9rem; font-weight: 600; line-height: 1.35; }
.vibe-chat .get-started__prompt:hover { border-color: var(--accent); color: var(--accent-deep); background: color-mix(in srgb, var(--surface) 84%, var(--rule-soft)); }
.vibe-chat .turn-status { align-self: stretch; gap: .5rem; margin: 0; padding: .5rem 0 .5rem 1rem; border-left: 2px solid var(--signal); font-size: .95rem; font-style: italic; }
.vibe-chat #turn-status-copy { min-width: 0; overflow-wrap: anywhere; }
.vibe-chat .typing-dots { flex: 0 0 auto; }
.vibe-chat .typing-dots i { width: .5rem; height: .5rem; background: var(--signal); animation: chat-pulse 1s ease-in-out infinite; }
@keyframes chat-pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.vibe-chat .conv-carousel { margin: 0; width: 100%; }
.vibe-chat .conv-card { max-width: none; }
.vibe-chat .chat-composer-dock { flex: 0 0 auto; width: 100%; position: relative; z-index: 10; background: var(--canvas); border-top: 1px solid rgba(240,224,208,.8); padding: .85rem 1.5rem calc(.85rem + env(safe-area-inset-bottom)); }
.vibe-chat .composer { width: 100%; max-width: 720px; margin: 0 auto; padding: .35rem .45rem; display: flex; flex-direction: column; gap: .25rem; border-radius: 20px; box-shadow: 0 4px 14px rgba(180,100,60,.05); transition: border-color .15s ease, box-shadow .15s ease; }
.vibe-chat .composer:focus-within { border-color: var(--ink-muted); box-shadow: 0 6px 18px rgba(180,100,60,.08); }
.vibe-chat .composer-row { display: flex; align-items: center; gap: .4rem; padding: .25rem .3rem .25rem .4rem; }
.vibe-chat .composer textarea { flex: 1; min-width: 0; height: 2rem; min-height: 2rem; padding: .3rem .25rem; font-size: .95rem; line-height: 1.4; }
.vibe-chat .composer textarea::placeholder { color: var(--ink-muted); font-style: italic; }
.vibe-chat .composer-attach, .vibe-chat .composer-send { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 999px; }
.vibe-chat .composer-attach { background: transparent; color: var(--ink-muted); font-size: 1.4rem; font-weight: 300; line-height: 1; }
.vibe-chat .composer-attach:hover:not(:disabled) { background: transparent; color: var(--accent-deep); }
.vibe-chat .composer-send { background: var(--accent-deep); }
.vibe-chat .composer-send .stop-icon { display: none; }
.vibe-chat .composer-send.is-stopping .send-icon { display: none; }
.vibe-chat .composer-send.is-stopping .stop-icon { display: block; }
.vibe-chat .composer-send:hover:not(:disabled) { background: var(--accent); }
.vibe-chat .composer-send:disabled { background: var(--ink-muted); opacity: .5; }
.vibe-chat .composer-attachment { min-width: 0; gap: .5rem; margin: 0; padding: .25rem .4rem 0; background: transparent; font-size: .8rem; font-weight: 500; color: var(--ink-soft); }
.vibe-chat .composer-attachment img { width: 32px; height: 32px; flex-shrink: 0; border-radius: 6px; }
.vibe-chat .composer-attachment button { flex-shrink: 0; background: var(--rule-soft); color: var(--ink-muted); }
.vibe-chat .composer-attachment-category { display: flex; align-items: center; gap: .65rem; padding: .2rem .4rem .4rem; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.vibe-chat .composer-attachment-category[hidden] { display: none; }
.vibe-chat .composer-attachment-category select { flex: 1; min-width: 0; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); padding: .45rem; font: inherit; }
.vibe-chat .composer-status { max-width: 720px; margin: .5rem auto 0; font-size: 12px; line-height: 1.4; text-align: center; }
.vibe-chat .composer-status[hidden] { display: none; }
.vibe-chat .chat-attach-menu { position: relative; flex-shrink: 0; }
.vibe-chat .chat-attach-popover { position: absolute; bottom: calc(100% + 10px); left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: .35rem 0; box-shadow: 0 8px 24px rgba(180,100,60,.12); z-index: 60; }
.vibe-chat .chat-attach-popover button { width: 100%; min-height: 44px; text-align: left; padding: .6rem 1rem; border: 0; background: transparent; color: var(--ink-soft); font-size: .88rem; font-weight: 500; }
.vibe-chat .chat-attach-popover button:hover { background: var(--rule-soft); color: var(--ink); }
.vibe-chat :is(button, a, summary, input, textarea):focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.vibe-chat .composer textarea:focus-visible { outline: none; box-shadow: none; }
@media (max-width: 720px) {
  .vibe-chat .message-feed { padding: 1.25rem .75rem; scrollbar-gutter: auto; }
  .vibe-chat .message-row.user { max-width: calc(100vw - 2rem); }
  .vibe-chat .chat-composer-dock { padding: .75rem .75rem calc(.75rem + env(safe-area-inset-bottom)); }
  .vibe-chat .composer { max-width: none; }
  .vibe-chat .composer textarea { font-size: 16px; }
  .vibe-chat .composer-attach, .vibe-chat .composer-send { width: 36px; height: 36px; }
  .vibe-chat .chat-attach-popover { min-width: min(280px, calc(100vw - 3.5rem)); border-radius: 16px; padding: .45rem; }
  .vibe-chat .chat-attach-popover button { min-height: 3.25rem; border-radius: 12px; font-size: 1rem; }
  .vibe-chat .onb-card { padding: 1.1rem .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vibe-chat .typing-dots i { animation: none; opacity: .7; }
  .vibe-chat .composer { transition: none; }
}
