:root {
    --ink: #17212b;
    --muted: #667381;
    --line: #e5e9ed;
    --paper: #fff;
    --canvas: #f2f4f5;
    --red: #e1262f;
    --red-dark: #b71620;
    --navy: #142633;
    --green: #23a36d;
    --shadow: 0 20px 60px rgba(20, 38, 51, .11);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 8% 8%, #fff 0, transparent 26%), var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, textarea, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar { height: 78px; padding: 0 clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(23, 33, 43, .08); background: rgba(255,255,255,.9); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--red); font-size: 23px; font-weight: 850; box-shadow: 0 8px 20px rgba(225,38,47,.25); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { color: var(--muted); margin-top: 2px; font-size: 12px; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(35,163,109,.12); }
.status.warning { color: #9d6515; }
.status.warning .status-dot { background: #e49a25; box-shadow: 0 0 0 5px rgba(228,154,37,.14); }
.workspace { width: min(1380px, calc(100% - 40px)); margin: 32px auto; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr); gap: 24px; align-items: stretch; }
.chat-card, .summary-card { min-height: calc(100vh - 142px); border: 1px solid rgba(23,33,43,.07); background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.chat-card { display: flex; flex-direction: column; }
.chat-heading, .summary-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.chat-heading { padding: 28px 32px 22px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 6px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(24px, 3vw, 36px); }
h2 { font-size: 24px; }
.icon-button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 22px; }
.icon-button:hover { color: var(--red); border-color: #f2b8bb; }
.messages { flex: 1; min-height: 360px; max-height: calc(100vh - 370px); padding: 28px 32px; overflow-y: auto; scroll-behavior: smooth; }
.message-row { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 18px; }
.message-row.user { flex-direction: row-reverse; }
.avatar { flex: 0 0 auto; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--navy); font-size: 11px; font-weight: 800; }
.message-row.user .avatar { background: #e8ecef; color: #56616b; }
.bubble { max-width: min(76%, 680px); padding: 13px 16px; border-radius: 18px 18px 18px 5px; background: #f1f3f5; line-height: 1.55; white-space: pre-wrap; }
.message-row.user .bubble { color: #fff; background: var(--red); border-radius: 18px 18px 5px 18px; }
.typing { display: flex; gap: 5px; padding: 17px 18px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #7a8792; animation: pulse 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .16s; }
.typing i:nth-child(3) { animation-delay: .32s; }
@keyframes pulse { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.suggestions { min-height: 18px; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 32px 14px; }
.suggestion { padding: 9px 13px; border: 1px solid #d9dee3; border-radius: 999px; color: #44515d; background: #fff; font-size: 13px; }
.suggestion:hover, .suggestion.primary { color: var(--red-dark); border-color: #efafb2; background: #fff7f7; }
.composer { margin: 0 24px; padding: 8px; display: flex; align-items: flex-end; gap: 10px; border: 1px solid #dce1e5; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(20,38,51,.06); }
.composer:focus-within { border-color: #ee9095; box-shadow: 0 0 0 4px rgba(225,38,47,.08); }
.composer textarea { min-height: 48px; max-height: 140px; flex: 1; padding: 13px 12px; resize: none; border: 0; outline: 0; color: var(--ink); background: transparent; line-height: 1.45; }
.composer button { height: 46px; padding: 0 18px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 13px; color: #fff; background: var(--red); font-weight: 750; }
.composer button:hover { background: var(--red-dark); }
.composer button:disabled { opacity: .55; cursor: wait; }
.composer-note { margin: 10px 30px 18px; color: #8b949d; font-size: 11px; text-align: center; }
.summary-card { padding: 28px; background: linear-gradient(180deg, #fff, #fbfcfc); }
.progress-label { color: var(--red); font-weight: 850; }
.progress-track { height: 7px; margin: 22px 0 28px; overflow: hidden; border-radius: 999px; background: #eaedef; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), #ff6268); transition: width .35s ease; }
.product-picker > p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.product-buttons { display: grid; gap: 9px; }
.product-button { padding: 13px 14px; text-align: left; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.product-button:hover { border-color: #ee9ca1; transform: translateY(-1px); }
.product-button strong, .product-button small { display: block; }
.product-button small { margin-top: 3px; color: var(--muted); }
.configuration { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; }
.configuration dt, .configuration dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.configuration dt { color: var(--muted); }
.configuration dd { padding-left: 16px; font-weight: 750; text-align: right; }
.next-step { margin-top: 18px; padding: 14px 15px; display: flex; justify-content: space-between; gap: 12px; border-radius: 13px; background: #f2f4f5; font-size: 12px; }
.next-step span { color: var(--muted); }
.quote-card { margin-top: 20px; padding: 20px; border-radius: 18px; color: #fff; background: var(--navy); box-shadow: 0 14px 30px rgba(20,38,51,.18); }
.quote-kicker { margin: 0 0 8px; color: #a7bbc8; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.quote-total { display: flex; align-items: baseline; gap: 8px; }
.quote-total strong { font-size: 32px; letter-spacing: -.04em; }
.quote-total span, .quote-ht { color: #bdcbd4; }
.quote-ht { margin: 2px 0 15px; font-size: 13px; }
.quote-route { padding-top: 13px; border-top: 1px solid rgba(255,255,255,.14); font-weight: 750; }
.quote-components { margin: 10px 0 0; padding-left: 18px; color: #dce5ea; font-size: 12px; line-height: 1.7; }
.quote-warning { padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.09); font-size: 12px; }
.trust-note { margin-top: 24px; padding-top: 20px; display: flex; gap: 11px; border-top: 1px solid var(--line); }
.trust-note > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: rgba(35,163,109,.1); font-weight: 900; }
.trust-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.trust-note strong { color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 10; transform: translateX(-50%); max-width: min(520px, calc(100% - 30px)); padding: 13px 17px; border-radius: 12px; color: #fff; background: #9d1920; box-shadow: var(--shadow); }
.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; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
    .workspace { width: min(100% - 24px, 720px); grid-template-columns: 1fr; margin: 16px auto; }
    .chat-card, .summary-card { min-height: auto; }
    .chat-card { min-height: calc(100vh - 110px); }
    .messages { max-height: 52vh; padding: 22px 18px; }
    .chat-heading { padding: 22px 20px 18px; }
    .suggestions { padding-inline: 18px; }
    .summary-card { order: -1; padding: 20px; }
    .topbar { height: 66px; padding: 0 18px; }
    .status { font-size: 0; }
    .composer { margin-inline: 12px; }
    .composer button span:first-child { display: none; }
    .bubble { max-width: 84%; }
}
