.mva-assistant {
  --agent-bg:#fff; --agent-surface:#f3f3f1; --agent-hover:#eaeae6;
  --agent-ink:#302d28; --agent-muted:#68625b; --agent-brand:#783b37;
  --agent-brand-hover:#552b28; --agent-tint:#f4ecea; --agent-white:#fff;
  --agent-shadow:#302d2826; --agent-font:Manrope,Arial,sans-serif;
  --agent-ease:cubic-bezier(.22,1,.36,1);
  position:relative; z-index:80; color:var(--agent-ink); font:14px/1.6 var(--agent-font);
}
.mva-assistant *, .mva-assistant *::before, .mva-assistant *::after { box-sizing:border-box; }
.mva-assistant [hidden] { display:none!important; }
.mva-assistant button, .mva-assistant input, .mva-assistant textarea { font:inherit; }
.mva-assistant button { min-height:44px; cursor:pointer; transition:transform 160ms var(--agent-ease),background-color 160ms; }
.mva-assistant button:active:not(:disabled) { transform:scale(.98); }
.mva-assistant button:disabled { cursor:wait; opacity:.5; }
.mva-assistant :focus-visible { outline:2px solid var(--agent-brand); outline-offset:4px; }
.mva-assistant a { color:var(--agent-brand); text-underline-offset:3px; }
.mva-assistant svg { width:20px; height:20px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.mva-assistant ::selection { background:var(--agent-tint); color:var(--agent-ink); }

/* A compact launcher opens the actual floating assistant surface. */
.mva-launcher { position:fixed; right:24px; bottom:24px; display:flex; align-items:center; gap:12px; padding:7px 21px 7px 7px; border:1px solid #ffffff40; border-radius:40px; color:var(--agent-white); background:var(--agent-brand); text-align:left; box-shadow:0 6px 24px var(--agent-shadow); } /* taste-skill-ignore shadow: the floating assistant needs separation from the room photography. */
.mva-launcher:hover { background:var(--agent-brand-hover); transform:translateY(-2px); }
.mva-avatar { display:block; flex:0 0 48px; width:48px; height:48px; overflow:hidden; border-radius:50%; background:var(--agent-tint); }
.mva-avatar img { display:block; width:100%; height:100%; object-fit:cover; }
.mva-launcher .mva-avatar { flex-basis:44px; width:44px; height:44px; }
.mva-launcher strong { display:block; font-size:15px; font-weight:650; }
/* taste-skill-ignore shadow: elevation belongs to this floating chat overlay. */
.mva-panel { position:fixed; right:24px; bottom:24px; width:438px; max-width:calc(100vw - 48px); height:min(740px,calc(100dvh - 48px)); display:flex; flex-direction:column; overflow:hidden; isolation:isolate; background:var(--agent-bg); border-radius:24px; animation:agent-open 260ms var(--agent-ease); }
.mva-panel { box-shadow:0 18px 70px var(--agent-shadow); } /* taste-skill-ignore shadow: this is the floating overlay itself. */
.mva-header { display:flex; align-items:center; gap:11px; padding:20px; background:var(--agent-bg); flex-shrink:0; }
.mva-agent-identity { min-width:0; flex:1; }
.mva-header strong { display:flex; align-items:center; gap:7px; font-family:var(--agent-font); font-size:15px; font-weight:650; letter-spacing:-.025em; line-height:1.4; }
.mva-header p { margin:3px 0 0; font-size:11px; color:var(--agent-muted); line-height:1.5; }
.mva-header-actions { display:flex; align-items:center; gap:2px; }
.mva-header-actions button { display:grid; place-items:center; width:34px; min-width:34px; height:44px; padding:6px; border:0; border-radius:20px; background:transparent; color:var(--agent-muted); }
.mva-header-actions button:hover { background:var(--agent-surface); color:var(--agent-ink); }
.mva-header-actions svg { width:18px; height:18px; }
.mva-body { display:flex; flex-direction:column; flex:1; min-height:0; }
.mva-welcome, .mva-scroll { min-height:0; flex:1; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--agent-hover) transparent; }
.mva-welcome { padding:20px 24px; display:flex; flex-direction:column; }
.mva-welcome-intro { padding:5px 0 23px; }
.mva-welcome h2, .mva-scroll h2 { font-family:var(--agent-font); font-weight:600; font-size:28px; line-height:1.22; letter-spacing:-.035em; text-wrap:balance; margin:0 0 14px; color:var(--agent-ink); }
.mva-welcome-intro>p { color:var(--agent-muted); font-size:14px; line-height:1.7; max-width:35ch; margin:0; }
.mva-starters { display:flex; flex-direction:column; gap:8px; }
.mva-starters button { display:flex; justify-content:space-between; align-items:center; gap:16px; width:100%; min-height:54px; padding:14px 16px; border:0; border-radius:0; color:var(--agent-ink); background:var(--agent-surface); text-align:left; font-size:13px; animation:agent-arrive 320ms var(--agent-ease) both; }
.mva-starters button:nth-child(2) { animation-delay:60ms; }
.mva-starters button:nth-child(3) { animation-delay:120ms; }
.mva-starters button:nth-child(4) { animation-delay:180ms; }
.mva-starters button svg { width:17px; height:17px; color:var(--agent-muted); }
.mva-starters button:hover { background:var(--agent-hover); }
.mva-start-area { margin-top:auto; padding-top:26px; }
.mva-privacy { margin:0 0 14px; font-size:11px; line-height:1.75; color:var(--agent-muted); }
.mva-primary { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 18px; min-height:50px; width:100%; border:0; border-radius:30px; background:var(--agent-brand); color:var(--agent-white); text-align:left; font-weight:600; }
.mva-primary:hover { background:var(--agent-brand-hover); }
.mva-primary svg { width:18px; height:18px; }
.mva-direct { margin:9px 0 0; color:var(--agent-muted); font-size:11px; text-align:center; line-height:1.6; }
.mva-direct a { color:var(--agent-ink); }

/* Conversation and persistent composer. */
.mva-conversation { padding:22px 24px 16px; }
.mva-message { margin:0 0 25px; animation:agent-arrive 220ms var(--agent-ease); }
.mva-message>span { display:block; margin:0 0 7px; font-size:11px; font-weight:600; color:var(--agent-muted); }
.mva-message p { margin:0; color:var(--agent-ink); font-size:14px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
.mva-message-user { margin-left:30px; padding:12px 16px; background:var(--agent-surface); border-radius:18px 18px 4px 18px; }
.mva-message-user>span { display:none; }
.mva-suggestions { display:flex; flex-wrap:wrap; gap:7px; padding:0 0 9px; }
.mva-suggestions button { border:1px solid #b9b2aa; background:transparent; color:var(--agent-ink); padding:9px 13px; border-radius:24px; font-size:14px; text-align:left; max-width:100%; overflow-wrap:anywhere; }
.mva-suggestions button:hover { background:var(--agent-tint); color:var(--agent-brand); }
.mva-compose-area { flex-shrink:0; padding:0 16px 12px; background:var(--agent-bg); }
.mva-composer { display:flex; align-items:end; gap:8px; padding:7px 8px 7px 13px; background:var(--agent-surface); border-radius:26px; }
.mva-composer:focus-within { outline:2px solid var(--agent-brand); outline-offset:0; }
.mva-composer textarea { display:block; width:100%; min-height:40px; max-height:112px; resize:none; margin:0; padding:9px 0; border:0; border-radius:0; background:transparent; color:var(--agent-ink); caret-color:var(--agent-brand); font-size:16px; line-height:1.4; }
.mva-composer textarea:focus-visible { outline:none; }
.mva-composer textarea::placeholder { color:var(--agent-muted); font-size:13px; }
.mva-composer button { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; min-height:40px; padding:0; border:0; border-radius:50%; background:var(--agent-ink); color:var(--agent-white); }
.mva-composer button:hover { background:var(--agent-brand); }
.mva-footnote { margin:8px 0 0; color:var(--agent-muted); text-align:center; font-size:10px; line-height:1.5; }
.mva-notice { flex-shrink:0; margin:0; padding:12px 20px; background:var(--agent-tint); color:var(--agent-ink); font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.mva-notice:empty { display:none; }
.mva-reset-confirm { flex-shrink:0; padding:14px 20px; background:var(--agent-tint); font-size:12px; }
.mva-reset-confirm p { margin:0 0 10px; }
.mva-reset-confirm>div { display:flex; flex-wrap:wrap; gap:8px; }
.mva-reset-confirm button { padding:10px 16px; border:1px solid #b9b2aa; border-radius:24px; background:var(--agent-bg); color:var(--agent-ink); }
.mva-reset-confirm .mva-reset-accept { background:var(--agent-brand); color:var(--agent-white); }
.mva-pending { padding:8px 0 18px; }
.mva-pending>span:last-child { display:flex; gap:5px; }
.mva-pending i { display:block; width:5px; height:5px; border-radius:50%; background:var(--agent-muted); animation:agent-typing 1.1s ease-in-out infinite; }
.mva-pending i:nth-child(2) { animation-delay:.15s; }
.mva-pending i:nth-child(3) { animation-delay:.3s; }

/* Project review keeps the same controls and validation as the existing flow. */
.mva-lead, .mva-confirm { margin:0; padding:0; background:transparent; }
.mva-scroll:not(.mva-conversation) { padding:8px 24px 24px; }
.mva-scroll h2 { font-size:25px; }
.mva-scroll>p, .mva-lead>p { margin:0 0 24px; font-size:13px; color:var(--agent-muted); line-height:1.8; }
.mva-lead label:not(.mva-check), .mva-lead legend { display:block; margin:20px 0 7px; padding:0; font-size:12px; font-weight:600; color:var(--agent-ink); }
.mva-lead label span { color:var(--agent-muted); font-weight:400; }
.mva-lead input:not([type=radio]):not([type=checkbox]), .mva-lead textarea { width:100%; max-width:100%; min-height:48px; padding:12px 14px; border:0; border-radius:0; background:var(--agent-surface); color:var(--agent-ink); caret-color:var(--agent-brand); font-size:16px; }
.mva-lead input::placeholder, .mva-lead textarea::placeholder { color:var(--agent-muted); font-size:13px; }
.mva-lead textarea { resize:vertical; min-height:90px; }
.mva-lead fieldset { margin:26px 0 0; padding:0; min-width:0; border:0; }
.mva-lead legend { margin:0 0 12px; font-size:14px; }
.mva-assistant input[type=radio], .mva-assistant input[type=checkbox] { width:17px; height:17px; flex:0 0 17px; margin:3px 0; accent-color:var(--agent-brand); }
.mva-lead .mva-primary { margin-top:26px; }
.mva-welcome>p:not(.mva-direct):not(.mva-privacy) { font-size:14px; line-height:1.8; }
.mva-welcome .mva-done { margin-top:20px; }
@keyframes agent-open { from { transform:translateY(14px) scale(.98); opacity:.7; } to { transform:translateY(0) scale(1); opacity:1; } }
@keyframes agent-arrive { from { transform:translateY(6px); opacity:.5; } to { transform:translateY(0); opacity:1; } }
@keyframes agent-typing { 0%,60%,100% { transform:translateY(0); opacity:.4; } 30% { transform:translateY(-3px); opacity:1; } }
@media(max-width:600px) {
  .mva-launcher { right:16px; bottom:max(16px,env(safe-area-inset-bottom)); padding:6px 17px 6px 6px; }
  .mva-launcher strong { font-size:14px; }
  .mva-panel { left:8px; right:8px; bottom:max(8px,env(safe-area-inset-bottom)); width:auto; max-width:none; height:calc(100dvh - max(16px,env(safe-area-inset-bottom))); border-radius:20px; }
  .mva-header { padding:15px 14px; gap:8px; }
  .mva-header .mva-avatar { flex-basis:42px; width:42px; height:42px; }
  .mva-header strong { font-size:14px; }
  .mva-header p { font-size:10px; }
  .mva-header-actions button { width:30px; min-width:30px; }
  .mva-welcome { padding:22px 20px 20px; }
  .mva-welcome h2 { font-size:29px; }
  .mva-start-area { padding-top:26px; }
  .mva-conversation { padding:20px; }
  .mva-compose-area { padding-inline:14px; }
  .mva-scroll:not(.mva-conversation) { padding-inline:20px; }
}
@media(prefers-reduced-motion:reduce) {
  .mva-assistant *, .mva-assistant *::before, .mva-assistant *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

/* Optional personal introduction stays within the conversation. */
.mva-introduction { margin-top:4px; }
.mva-introduction .mva-privacy { margin:16px 0 0; font-size:11px; line-height:1.7; color:var(--agent-muted); }
.mva-introduction .mva-lead .mva-primary { margin-top:20px; }

/* Callback details stay in the existing conversation and composer. */
.mva-callback-note{font-size:11px;line-height:1.6;color:var(--agent-muted);margin:10px 2px 0}
.mva-callback-note a{text-decoration:underline}

/* The final review is part of the conversation, with one compact summary. */
.mva-review-start svg { width:15px; height:15px; }
.mva-review-card { padding:18px; border-radius:16px; background:var(--agent-surface); }
.mva-review-heading { display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.mva-review-heading>span { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; color:var(--agent-brand); }
.mva-review-heading h2 { margin:0 0 3px; font-size:20px; line-height:1.25; letter-spacing:-.025em; }
.mva-review-heading p { font-size:11px; line-height:1.5; color:var(--agent-muted); }
.mva-summary { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:11px 16px; margin:0; }
.mva-summary>div { min-width:0; }
.mva-summary-type, .mva-summary-timeframe, .mva-summary-details, .mva-summary-contactWindow { grid-column:1/-1; }
.mva-summary dt { display:flex; align-items:center; gap:6px; margin-bottom:4px; color:var(--agent-muted); font-size:10px; line-height:1.5; }
.mva-summary dt svg { width:14px; height:14px; }
.mva-summary dd { margin:0; font-size:13px; line-height:1.6; overflow-wrap:anywhere; white-space:pre-wrap; }
.mva-summary-type dd { font-size:14px; font-weight:600; }
.mva-summary-name { min-width:0; }
.mva-review-edit { margin-top:8px; }
.mva-review-edit svg { width:14px; height:14px; }
.mva-check { display:flex; align-items:flex-start; gap:9px; margin:12px 0 16px; font-size:11px; line-height:1.65; color:var(--agent-ink); }
.mva-confirm .mva-primary { min-height:48px; padding:12px 16px; font-size:14px; }
.mva-review-card .mva-review-note { margin-top:12px; font-size:10px; line-height:1.65; color:var(--agent-muted); }
.mva-review-card .mva-review-success { margin-top:18px; font-size:14px; }
.mva-review-card .mva-done { margin-top:16px; }
@media(max-width:600px) {
  .mva-review-card { padding:16px; }
  .mva-review-heading h2 { font-size:19px; }
  .mva-summary { gap:13px 12px; }
  .mva-summary dd { font-size:12px; }
  .mva-review-heading { margin-bottom:16px; }
}

/* Secondary actions remain readable, outlined and easy to tap on a phone. */
.mva-assistant button.mva-secondary { display:flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:11px 16px; border:1px solid #b9b2aa; border-radius:24px; background:transparent; color:var(--agent-ink); font-size:14px; line-height:1.5; text-decoration:none; text-align:center; }
.mva-assistant button.mva-secondary:hover { background:var(--agent-surface); border-color:var(--agent-brand); }
.mva-review-start { margin:0 0 12px auto; }
.mva-intro-skip, .mva-callback-cancel { margin-top:12px; width:100%; }
.mva-review-edit, .mva-review-continue { margin-top:12px; width:100%; }
.mva-edit-options { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0; }
