.asst-root {
    --asst-navy: #071d36;
    --asst-navy-2: #0b3152;
    --asst-gold: #d7a62c;
    --asst-ink: #10243b;
    --asst-line: #dbe3eb;
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 9000;
    font-family: inherit; direction: ltr; text-align: left; isolation: isolate;
}
.asst-toggle {
    position: relative; display: grid; place-items: center; width: 60px; height: 60px;
    border: 1px solid rgba(255,255,255,.34); border-radius: 20px;
    background: linear-gradient(145deg, #e1b53a, #c38e16); color: #fff; cursor: pointer;
    box-shadow: 0 14px 34px rgba(7,29,54,.28), inset 0 1px 0 rgba(255,255,255,.28);
    transition: transform .2s ease, box-shadow .2s ease, border-radius .2s ease;
}
.asst-toggle::before { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(215,166,44,.3); border-radius: 24px; pointer-events: none; }
.asst-toggle:hover,.asst-toggle:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(7,29,54,.34); }
.asst-toggle:focus-visible { outline: 3px solid rgba(215,166,44,.3); outline-offset: 4px; }
.asst-toggle svg { width: 27px; height: 27px; display: block; }
.asst-root.is-open .asst-toggle { border-radius: 50%; }
.asst-panel {
    position: absolute; right: 0; bottom: 76px; width: min(94vw, 28rem);
    height: min(84vh, 43rem); height: min(84dvh, 43rem); max-height: min(84vh, 43rem); max-height: min(84dvh, 43rem);
    display: none; flex-direction: column; background: #f7f9fc; color: var(--asst-ink);
    border: 1px solid rgba(117,136,157,.28); border-radius: 26px;
    box-shadow: 0 34px 90px rgba(4,20,39,.28), 0 8px 24px rgba(4,20,39,.13);
    overflow: hidden; transform-origin: bottom right;
}
.asst-root.is-open .asst-panel { display: flex; animation: asst-rise .22s ease-out both; }
@keyframes asst-rise { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.asst-head {
    position: relative; padding: 1.15rem 1.15rem 1.05rem; overflow: hidden;
    background: radial-gradient(circle at 90% 0%, rgba(41,116,154,.45), transparent 42%), linear-gradient(135deg, var(--asst-navy), #0a2a49 62%, #0d4357);
    color: #fff; border-bottom: 1px solid rgba(215,166,44,.82);
}
.asst-head::after { content: ""; position: absolute; width: 130px; height: 130px; right: -58px; bottom: -82px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.asst-headbar { position: relative; z-index: 1; display: flex; align-items: center; gap: .72rem; }
.asst-mark { flex: 0 0 43px; width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 14px; background: linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.05)); color: #f3ca55; font-size: .78rem; font-weight: 850; }
.asst-mark img { display: block; width: 27px; height: 27px; object-fit: contain; }
.asst-heading { min-width: 0; flex: 1; }
.asst-eyebrow { display: flex; align-items: center; gap: .38rem; margin-bottom: .2rem; color: #f0ce70; font-size: .62rem; font-weight: 800; letter-spacing: .115em; text-transform: uppercase; }
.asst-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5ee0a1; box-shadow: 0 0 0 3px rgba(94,224,161,.14); }
.asst-head h4 { margin: 0; font-size: 1.15rem; font-weight: 780; letter-spacing: -.025em; }
.asst-head p { position: relative; z-index: 1; margin: .75rem 2.8rem 0 0; color: rgba(255,255,255,.78); font-size: .79rem; line-height: 1.48; }
.asst-close { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 1.15rem; cursor: pointer; }
.asst-close:hover { background: rgba(255,255,255,.15); }
.asst-head,.asst-topics,.asst-quick,.asst-form,.asst-foot { flex: 0 0 auto; }
.asst-topics { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: .78rem .9rem .58rem; background: #fff; }
.asst-topics::-webkit-scrollbar { display: none; }
.asst-topics button { flex: none; min-height: 34px; border: 1px solid var(--asst-line); border-radius: 999px; padding: .42rem .72rem; background: #fff; color: #385069; font: inherit; font-size: .7rem; font-weight: 720; cursor: pointer; }
.asst-topics button[aria-selected="true"] { border-color: var(--asst-navy-2); background: var(--asst-navy-2); color: #fff; box-shadow: 0 5px 14px rgba(11,49,82,.18); }
.asst-topics button:focus-visible,.asst-chip:focus-visible { outline: 2px solid var(--asst-gold); outline-offset: 2px; }
.asst-quick { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; padding: .18rem .9rem .85rem; background: #fff; border-bottom: 1px solid var(--asst-line); }
.asst-quick.is-answered { display: none; }
.asst-chip { position: relative; min-height: 3.25rem; padding: .68rem 1.7rem .68rem .72rem; border: 1px solid #dce4ec; border-radius: 13px; background: linear-gradient(145deg,#fff,#f9fbfd); color: #17324d; text-align: left; font: inherit; font-size: .72rem; font-weight: 680; line-height: 1.34; cursor: pointer; box-shadow: 0 4px 12px rgba(23,50,77,.04); transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.asst-chip::after { content: "›"; position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); color: #ba8819; font-size: 1.15rem; }
.asst-chip:hover { transform: translateY(-1px); border-color: rgba(215,166,44,.68); box-shadow: 0 8px 18px rgba(23,50,77,.08); }
.asst-log { flex: 1 1 auto; min-height: 4.5rem; overflow-y: auto; padding: 1rem .95rem; display: flex; flex-direction: column; gap: .62rem; background: linear-gradient(rgba(247,249,252,.96),rgba(247,249,252,.96)),radial-gradient(circle at 1px 1px,#cfd8e2 1px,transparent 0); background-size: auto,18px 18px; }
.asst-msg { max-width: 88%; padding: .68rem .82rem; border-radius: 15px; font-size: .84rem; line-height: 1.52; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 5px 16px rgba(23,50,77,.06); }
.asst-you { align-self: flex-end; background: linear-gradient(145deg,#0d4772,#0b3152); color: #fff; border-bottom-right-radius: 5px; }
.asst-bot { align-self: flex-start; background: #fff; border: 1px solid #dfe6ed; color: #253a50; border-bottom-left-radius: 5px; }
.asst-bot a { color: #0b5f8b; font-weight: 750; }
.asst-err { align-self: flex-start; background: #fff2f0; border: 1px solid #f2c4bc; color: #8a2a1f; }
.asst-consent { align-self: stretch; padding: .9rem; border: 1px solid rgba(18,79,127,.2); border-radius: 16px; background: linear-gradient(145deg,#f3f8fc,#fffaf0); box-shadow: 0 10px 26px rgba(7,29,54,.08); color: #17324d; }
.asst-consent strong { display: block; margin-bottom: .3rem; font-size: .9rem; color: var(--asst-navy); }
.asst-consent p { margin: 0; font-size: .76rem; line-height: 1.5; color: #53677c; }
.asst-consent-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }
.asst-consent-actions button { min-height: 2.35rem; padding: .48rem .72rem; border-radius: 10px; font: inherit; font-size: .75rem; font-weight: 750; cursor: pointer; }
.asst-consent-accept { border: 1px solid var(--asst-navy-2); background: var(--asst-navy-2); color: #fff; }
.asst-consent-cancel { border: 1px solid var(--asst-line); background: #fff; color: #385069; }
.asst-form { display: flex; align-items: center; gap: .5rem; padding: .72rem .75rem; border-top: 1px solid var(--asst-line); background: #fff; }
.asst-form input { flex: 1 1 auto; min-width: 0; min-height: 46px; padding: .65rem .82rem; border: 1px solid #cad5df; border-radius: 13px; background: #f9fbfd; color: var(--asst-ink); font: inherit; font-size: .84rem; }
.asst-form input::placeholder { color: #7c8998; }
.asst-form input:focus-visible { outline: 3px solid rgba(215,166,44,.2); border-color: var(--asst-gold); }
.asst-form button { flex: none; min-width: 50px; min-height: 46px; padding: .55rem .8rem; border: 0; border-radius: 13px; background: linear-gradient(145deg,#0e4b77,#082d4d); color: #fff; font: inherit; font-size: .78rem; font-weight: 750; cursor: pointer; box-shadow: 0 7px 16px rgba(8,45,77,.2); }
.asst-form button[disabled] { opacity: .52; cursor: default; box-shadow: none; }
.asst-foot { position: relative; margin: 0; padding: .62rem .85rem .72rem 2.75rem; font-size: .68rem; line-height: 1.48; color: #69798a; background: #fff; border-top: 1px solid rgba(219,227,235,.72); }
.asst-foot::before { content: "✓"; position: absolute; left: .9rem; top: .66rem; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #e8f5ef; color: #16845b; font-size: .68rem; font-weight: 850; }
.asst-foot strong { color: #394e63; }
.asst-foot a { color: #0b5f8b; font-weight: 750; }
@media (prefers-reduced-motion:reduce) { .asst-toggle{transition:none}.asst-toggle:hover,.asst-toggle:focus-visible{transform:none}.asst-root.is-open .asst-panel{animation:none} }
@media (max-width:520px) {
    .asst-root { right: .65rem; bottom: .65rem; }
    .asst-panel { right: -.05rem; bottom: 70px; width: calc(100vw - 1.2rem); height: calc(100vh - 5rem); height: calc(100dvh - 5rem); max-height: calc(100vh - 5rem); max-height: calc(100dvh - 5rem); border-radius: 22px; }
    .asst-head { padding: .95rem .95rem .88rem; }
    .asst-head p { margin-top: .58rem; }
    .asst-topics { padding: .66rem .72rem .5rem; }
    .asst-quick { gap: .45rem; padding: .12rem .72rem .7rem; }
    .asst-chip { min-height: 3rem; padding: .58rem 1.55rem .58rem .62rem; font-size: .69rem; }
    .asst-log { padding: .8rem .72rem; }
    .asst-form { padding: .62rem; }
    .asst-foot { padding: .55rem .7rem .62rem; }
}
@media (max-width:350px) { .asst-quick{grid-template-columns:1fr}.asst-head p{margin-right:0} }
