:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #10233f; background: #f5f8fc; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.demo-shell { min-height: 100vh; display: grid; align-content: center; padding: 10vw; background: radial-gradient(circle at 82% 18%, #dbeaff 0, transparent 30%), linear-gradient(135deg, #f8fbff, #eef4fa); }
.demo-badge { color: #147d7a; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 650px; margin: 1rem 0 .75rem; color: #011d51; font-size: clamp(2.7rem, 7vw, 5.8rem); line-height: .98; letter-spacing: -.06em; }
.demo-copy { max-width: 560px; margin: 0; color: #466079; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.6; }
.demo-notes { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }
.demo-notes span { padding: .55rem .8rem; border: 1px solid #d4e1ef; border-radius: 999px; background: rgba(255,255,255,.7); color: #31506e; font-size: .82rem; font-weight: 700; }

/* Widget shell */
.swa-widget { position: fixed; right: 22px; bottom: 22px; z-index: 50; color: #132640; }
.swa-bubble { width: 66px; height: 66px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #011d51; color: white; box-shadow: 0 12px 30px rgba(1,29,81,.28); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.swa-bubble:hover, .swa-bubble:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(1,29,81,.34); outline: 3px solid #8edbd4; outline-offset: 3px; }
.swa-bubble svg { width: 28px; height: 28px; }
.swa-panel { width: min(390px, calc(100vw - 28px)); height: min(680px, calc(100vh - 40px)); display: none; flex-direction: column; overflow: hidden; border: 1px solid #d7e2ec; border-radius: 22px; background: #fff; box-shadow: 0 22px 70px rgba(8,36,73,.25); }
.swa-panel.is-open { display: flex; }
.swa-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 18px 18px 16px; background: #011d51; color: white; }
.swa-brand { display: flex; align-items: center; gap: 11px; }
.swa-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #4db8b0; color: #011d51; font-weight: 900; }
.swa-header strong { display: block; font-size: .98rem; }
.swa-header small { display: block; margin-top: 2px; color: #bdd2e9; font-size: .73rem; }
.swa-close { border: 0; background: transparent; color: #d9e7f7; font-size: 1.5rem; cursor: pointer; }
.swa-messages { flex: 1; overflow-y: auto; padding: 18px 15px 12px; background: #f7fafc; }
.swa-message { max-width: 90%; margin: 0 0 12px; padding: 12px 13px; border-radius: 16px 16px 16px 4px; background: white; box-shadow: 0 2px 7px rgba(21,53,83,.07); font-size: .92rem; line-height: 1.48; }
.swa-message.user { margin-left: auto; border-radius: 16px 16px 4px 16px; background: #dff3f0; color: #123f47; }
.swa-message a { color: #006e70; font-weight: 750; }
.swa-message p { margin: 0 0 .55rem; }.swa-message p:last-child { margin-bottom: 0; }
.swa-source { display: inline-flex; margin-top: 9px; color: #167c7c; font-size: .77rem; font-weight: 800; text-decoration: none; }
.swa-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 3px 0 14px; }
.swa-chip { border: 1px solid #badedb; border-radius: 999px; padding: 8px 10px; background: white; color: #126c6e; cursor: pointer; font: inherit; font-size: .77rem; font-weight: 750; }
.swa-chip:hover, .swa-chip:focus-visible { background: #e6f7f4; outline: 2px solid #4db8b0; outline-offset: 1px; }
.swa-disclosure { padding: 8px 15px; border-top: 1px solid #e2eaf1; background: #fff; color: #687b8d; font-size: .69rem; line-height: 1.35; }
.swa-form { display: flex; gap: 8px; padding: 11px; border-top: 1px solid #e2eaf1; background: white; }
.swa-input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid #c9d6e2; border-radius: 12px; color: #152b43; font: inherit; font-size: .9rem; }.swa-input:focus { border-color: #147d7a; outline: 3px solid #c2ece7; }
.swa-send { width: 43px; border: 0; border-radius: 12px; background: #147d7a; color: white; cursor: pointer; }.swa-send:hover { background: #0c6564; }
@media (max-width: 520px) { .swa-widget { right: 14px; bottom: 14px; }.swa-panel { width: calc(100vw - 28px); height: min(680px, calc(100vh - 28px)); border-radius: 18px; } }
