/* The example conversation and the assistant's inline draft. */
.quote-demo { color: var(--ink); }
.demo-thread { padding: 12px; font-size: .92rem; line-height: 1.38; }
.chat-speaker { color: var(--text-soft); font-size: .8rem; }
.chat-speaker time { margin-inline-start: 5px; }
.chat-bubble { margin: 4px 0 12px; padding: 8px 12px; border-radius: 4px 14px 14px; background: white; }
@property --skava-phase { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.assistant-thread {
    border: 2.5px solid transparent;
    border-radius: 26px;
    padding: 12px 14px;
    background: linear-gradient(#fcfcff, #fcfcff) padding-box,
        conic-gradient(from var(--skava-phase), #46bef7, #6574f8, #a66bf2, #f18bc4, #ffb48b, #46bef7) border-box;
    box-shadow: 0 5px 20px rgb(0 0 0 / 4.5%);
}
.reply-author { display: flex; align-items: center; gap: 10px; }
.reply-author img { width: 34px; height: 34px; object-fit: contain; }
.reply-author small { display: block; font-size: .78rem; color: #516075; }
.chat-request { margin: 10px 0 8px auto; width: fit-content; max-width: 95%; min-height: 1.4em; padding: 7px 12px; border-radius: 18px 18px 5px 18px; background: #e8eeff; color: var(--ink); }
[data-stage] .request-source { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[data-stage="typing"] .request-typed::after { content: ""; display: inline-block; width: 2px; height: 1em; vertical-align: -.1em; background: var(--brand); }
.reply-body { position: relative; }
.reply-working { position: absolute; top: 2px; color: var(--brand-deep); font-weight: 600; }
.reply-result[aria-hidden="true"] { visibility: hidden; }
.chat-request strong { color: #2a63df; font-weight: 600; background: rgb(42 99 223 / 10%); }
.reply-message { margin: 12px 0 8px; }
.offer-paper { padding: 6px 0 0; }
.offer-paper h3 { margin: 3px 0 5px; font-size: 1.15rem; }
.quote-line, .quote-total, .quote-subtotal { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.quote-line, .quote-total { padding-block: 5px; border-top: 1px solid var(--line); }
.quote-line small { display: block; }
.quote-subtotal { font-size: .81rem; }
.quote-total { color: var(--brand-deep); margin-top: 3px; font-weight: 650; }
@media (prefers-reduced-motion: no-preference) {
    @keyframes skava-edge { to { --skava-phase: 360deg; } }
    [data-stage="working"] .assistant-thread { animation: skava-edge 7s linear infinite; }
    [data-running="false"] .assistant-thread { animation-play-state: paused; }
    @keyframes reply-in { from { opacity: 0; transform: translateY(5px); } }
    [data-stage="done"] .reply-result { animation: reply-in .28s ease-out; }
}
@media (prefers-reduced-motion: no-preference) {
    [data-stage="done"] .offer-paper .quote-line { animation: reply-in .3s .14s backwards; }
    [data-stage="done"] .offer-paper .quote-line + .quote-line { animation-delay: .26s; }
    [data-stage="done"] .quote-total { animation: reply-in .3s .38s backwards; }
}
