.public-assistant { font-family: inherit; font-size: 14px; line-height: 1.5; color: #17324a; }
.public-assistant * { box-sizing: border-box; }
.public-assistant [hidden] { display: none !important; }
.public-assistant-launcher {
    position: fixed; right: 1rem; bottom: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 1040; display: inline-flex; align-items: center;
    min-height: 52px; padding: .8rem 1.1rem; border-radius: 999px;
    background: #087c45; color: #fff; text-decoration: none; font-weight: 700;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.public-assistant-launcher i { font-size: 24px; margin-right: .6rem; }
.public-assistant-launcher:hover, .public-assistant-launcher:focus { background: #066338; color: #fff; }
.public-assistant-panel {
    position: fixed; right: 1rem; bottom: 5.3rem;
    bottom: calc(5.3rem + env(safe-area-inset-bottom, 0px));
    z-index: 1040; width: 360px; max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 7rem); max-height: calc(100dvh - 7rem);
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid #dbe5f3; border-radius: 16px; background: #fff;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .22);
}
.public-assistant-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem; background: #087c45; color: #fff; flex-shrink: 0; }
.public-assistant-header h2 { margin: 0 0 .2rem; color: #fff; font-size: 1rem; font-weight: 700; }
.public-assistant-header p { margin: 0; font-size: .78rem; }
.public-assistant-header button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #fff; font-size: 28px; }
.public-assistant-thread { min-height: 80px; max-height: 260px; overflow-y: auto; padding: 1rem; background: #f5f9fc; -webkit-overflow-scrolling: touch; }
.public-assistant-message { padding: .75rem; margin: 0 0 .7rem; border: 1px solid #dde7f0; border-radius: 10px; background: #fff; overflow-wrap: break-word; white-space: pre-wrap; }
.public-assistant-message:last-child { margin-bottom: 0; }
.public-assistant-message.is-user { margin-left: 1.5rem; background: #e7f5ec; border-color: #bedfc9; }
.public-assistant-message a { display: block; margin-top: .6rem; color: #164ab5; font-weight: 700; }
.public-assistant-topics { padding: .65rem .65rem .2rem; display: flex; flex-wrap: wrap; flex-shrink: 0; }
.public-assistant-topics button { margin: 0 .35rem .4rem 0; padding: .5rem .65rem; min-height: 40px; border: 1px solid #c6d9cc; border-radius: 20px; background: #f2faf4; color: #116437; font-size: .78rem; }
.public-assistant-form { display: flex; padding: .65rem; flex-shrink: 0; border-top: 1px solid #e3ebf4; }
.public-assistant-form input { flex: 1; min-width: 0; border: 1px solid #b9c9d9; border-radius: 8px; padding: .65rem; font: inherit; font-size: 16px; }
.public-assistant-form button { margin-left: .5rem; border: 0; border-radius: 8px; padding: .65rem .8rem; background: #087c45; color: #fff; font-weight: 700; }
.public-assistant-handoff { padding: .5rem .8rem .8rem; flex-shrink: 0; }
.public-assistant-handoff a { display: block; padding: .65rem; min-height: 44px; border-radius: 8px; background: #087c45; color: #fff; text-align: center; text-decoration: none; font-weight: 700; }
.public-assistant-handoff p { margin: .4rem 0 0; font-size: .72rem; color: #627588; text-align: center; }
.public-assistant button { cursor: pointer; }
.public-assistant a:focus-visible, .public-assistant button:focus-visible, .public-assistant input:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
@media (max-height: 600px) { .public-assistant-panel { overflow-y: auto; } .public-assistant-thread { flex-shrink: 0; max-height: 130px; } }
@media print { .public-assistant { display: none !important; } }
