.pioda-chat {font-family:inherit;color:#173042;box-sizing:border-box;z-index:9997;}
.pioda-chat *, .pioda-chat *::before, .pioda-chat *::after {box-sizing:border-box;}
.pioda-chat--floating {position:fixed;bottom:20px;right:20px;display:flex;flex-direction:column;align-items:flex-end;max-width:calc(100vw - 28px);}
.pioda-chat__toggle {background:var(--pioda-chat-accent,#003242);color:white;border:0;border-radius:30px;padding:14px 20px;font:600 16px/1.2 inherit;box-shadow:0 5px 16px #0003;cursor:pointer;}
.pioda-chat__toggle:hover,.pioda-chat__toggle:focus {filter:brightness(1.13);}
.pioda-chat__panel {display:flex;flex-direction:column;background:#fff;border:1px solid #dae3e7;box-shadow:0 14px 50px #102c3d25;border-radius:14px;overflow:hidden;width:370px;max-width:calc(100vw - 28px);height:510px;max-height:calc(100dvh - 92px);}
.pioda-chat__panel[hidden] {display:none!important;}
.pioda-chat--floating .pioda-chat__panel {margin-bottom:12px;}
.pioda-chat--inline .pioda-chat__panel {width:100%;height:500px;max-width:650px;}
.pioda-chat__header {display:flex;justify-content:space-between;align-items:center;background:var(--pioda-chat-accent,#003242);color:#fff;padding:14px 16px;font-size:16px;}
.pioda-chat__close {background:transparent;border:0;color:#fff;font-size:26px;line-height:1;cursor:pointer;}
.pioda-chat__messages {padding:14px;display:flex;flex-direction:column;gap:10px;flex:1;min-height:80px;overflow-y:auto;background:#f7fafb;}
.pioda-chat__msg {font-size:14px;line-height:1.45;padding:10px 12px;border-radius:12px;max-width:94%;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid #e1e7ea;}
.pioda-chat__msg--user {align-self:flex-end;background:#e1f1ef;border-color:#bedcd4;}
.pioda-chat__msg--bot {align-self:flex-start;}
.pioda-chat__notice {padding:10px 14px;background:#fdfcf4;border-top:1px solid #e7e0c4;font-size:12px;line-height:1.45;}
.pioda-chat__notice label {display:flex;align-items:flex-start;gap:7px;cursor:pointer;}
.pioda-chat__notice input {margin:3px 0 0;flex:none;}
.pioda-chat__form {display:flex;gap:8px;padding:10px 12px 0;background:white;align-items:flex-end;}
.pioda-chat__input {flex:1;min-width:0;max-height:100px;min-height:44px;resize:vertical;border-radius:8px;border:1px solid #b9c9cf;padding:8px;font:inherit;font-size:14px;}
.pioda-chat__send {border:0;border-radius:8px;background:var(--pioda-chat-accent,#003242);color:#fff;padding:10px 14px;min-height:42px;cursor:pointer;font-size:14px;}
.pioda-chat__send:disabled {opacity:.55;cursor:wait;}
.pioda-chat__status {padding:0 14px;margin:5px 0;font-size:12px;color:#8b3a31;min-height:0;}
.pioda-chat__status:empty {display:none;}
.pioda-chat__disclaimer {display:block;padding:0 14px 10px;font-size:11px;color:#667980;line-height:1.3;}
.pioda-chat :focus-visible {outline:3px solid #f0b52e;outline-offset:2px;}
@media(max-width:480px){.pioda-chat--floating {bottom:12px;right:12px;}.pioda-chat__panel {width:calc(100vw - 24px);height:min(520px,calc(100dvh - 92px));}}
/* v0.2: server-verified contextual page/product links */
.pioda-chat__links{display:flex;flex-direction:column;gap:5px;margin-top:10px;padding-top:9px;border-top:1px solid #e1e7ea;white-space:normal;}
.pioda-chat__links-title{font-size:11px;font-weight:700;color:#546b78;text-transform:uppercase;letter-spacing:.04em;}
.pioda-chat__link{display:flex;align-items:center;justify-content:space-between;gap:6px;border:1px solid #cbdfe1;border-radius:8px;padding:8px 10px;color:var(--pioda-chat-accent,#003242)!important;background:#f3faf8;font-size:12px;font-weight:650;text-decoration:none!important;line-height:1.35;}
.pioda-chat__link::after{content:'›';font-size:17px;line-height:1;flex:none;}
.pioda-chat__link:hover,.pioda-chat__link:focus-visible{background:#e5f2ef;border-color:var(--pioda-chat-accent,#003242);}
