.chat416{position:fixed;inset:auto 22px 22px auto;margin:0;width:min(410px,calc(100% - 44px));max-height:min(760px,calc(100dvh - 44px));padding:0;border:1px solid #cfd9df;border-radius:22px;color:#102e3e;background:#fff;box-shadow:0 16px 58px #102e3e38;overflow:auto;animation:chat416-in .2s ease-out}.chat416::backdrop{background:#142e3c22}.chat416[open]{display:flex;flex-direction:column}.chat416-head{position:relative;display:block;background:#102e3e;color:#fff;padding:23px 24px;border-radius:20px 20px 0 0}.chat416-brand{font-weight:850;letter-spacing:.12em;font-size:.73rem;color:#ffd5b8}.chat416-head h2{font-size:1.45rem;margin:12px 0 3px;line-height:1.18}.chat416-head p{margin:6px 0;font-size:.85rem}.chat416-close{position:absolute;right:12px;top:12px;padding:3px 10px;line-height:1.2;background:transparent;color:white;border:1px solid #ffffff55;font-size:1.4rem;border-radius:9px}.chat416-status{display:flex;align-items:center;gap:8px;color:#e6edf1}.chat416-status:before{content:'';display:inline-block;width:8px;height:8px;background:#a6b1b8;border-radius:50%;flex:none}.chat416-status.online:before{background:#62d9a0}.chat416-pack{display:grid;grid-template-columns:1fr auto;gap:5px;background:#f2f6f8;margin:16px 16px 8px;padding:13px 16px;border-radius:12px}.chat416-pack small{grid-column:1/-1;color:#526675}.chat416-pack strong:last-child{color:#a53e16}.chat416-log{min-height:100px;max-height:260px;overflow:auto;padding:12px 16px;display:flex;flex-direction:column;gap:10px;flex:1}.chat416-bubble{max-width:88%;padding:12px;border-radius:13px;background:#eef3f5;overflow-wrap:anywhere;white-space:pre-wrap;font-size:.9rem}.chat416-bubble.client{align-self:flex-end;background:#153b50;color:white}.chat416-bubble p{margin:4px 0}.chat416-bubble small,.chat416-bubble time{font-size:.72rem;opacity:.78}.chat416-form{padding:12px 16px 16px;border-top:1px solid #e3e8eb;display:grid;gap:8px}.chat416-note,.chat416-form small,.chat416-form>a,.chat416-ack{font-size:.75rem;line-height:1.4;margin:0}.chat416-ack{display:flex;align-items:flex-start;gap:8px}.chat416-ack[hidden]{display:none}.chat416-ack input{width:auto;flex:none;margin:2px 0}.chat416-compose{display:flex;gap:8px;align-items:center}.chat416-compose textarea{min-width:0;flex:1;resize:vertical;font-size:16px;padding:9px;border-radius:10px;border:1px solid #b9c7ce}.chat416-compose .button{flex:none}.chat416-error{font-size:.8rem;color:#a32b1b;margin:0}.chat416-reset{font-size:.78rem;background:transparent;color:#16394a;border:0;text-decoration:underline}.chat416-reset[hidden]{display:none}@keyframes chat416-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:560px){.chat416{inset:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}.chat416-head{border-radius:0}.chat416-log{max-height:none;min-height:80px}}@media(prefers-reduced-motion:reduce){.chat416{animation:none}}

/* 4.1.7: isolated premium chat layout */
.chat416{width:min(440px,calc(100% - 32px));max-height:min(800px,calc(100dvh - 32px));inset:auto 16px 16px auto;overflow:hidden;border-radius:20px}
.chat416 [hidden]{display:none!important}
.chat416-head{position:relative;flex:none;box-shadow:none;inset:auto;padding:24px;background:linear-gradient(125deg,#102e3e,#1c4358);border-radius:19px 19px 0 0}
.chat416-head h2{color:#fff;max-width:92%;font-size:1.5rem;letter-spacing:-.025em}
.chat416-head p{color:#e1edf3;line-height:1.4}
.chat416-head .chat416-status{margin:15px 0 0;padding:7px 11px;background:#ffffff12;border-radius:20px;width:fit-content;max-width:100%;font-size:.79rem}
.chat416-close{width:36px;height:36px;display:grid;place-items:center;padding:0;border-radius:50%;background:#ffffff12}
.chat416-pack{flex:none;margin:14px 16px 4px;gap:4px 12px;align-items:center;border:1px solid #e0e8ec}
.chat416-pack strong{overflow-wrap:anywhere}
.chat416-log{min-height:64px;max-height:320px;flex:1 1 220px;overscroll-behavior:contain;background:#fff}
.chat416-bubble{align-self:flex-start;max-width:88%;padding:12px 15px;border-radius:15px 15px 15px 4px;color:#15394a;line-height:1.5}
.chat416-bubble.client{border-radius:15px 15px 4px 15px;background:#153b50;color:#fff}
.chat416-bubble p{color:inherit}
.chat416-bubble time{display:block;margin-top:4px}
.chat416-form{flex:none;gap:6px;padding:12px 16px 16px;background:#fff}
.chat416-compose{align-items:flex-end;padding:5px;border:1px solid #c9d6dd;border-radius:15px;background:#f8fafb}
.chat416-compose:focus-within{outline:2px solid #b54a22;outline-offset:2px}
.chat416-compose textarea{background:transparent;border:0;box-shadow:none;outline:none;min-height:48px;max-height:100px;resize:none;color:#102e3e}
.chat416-compose .chat416-send{display:grid;place-items:center;min-width:44px;width:44px;height:44px;min-height:44px;padding:0;border-radius:11px;background:#a43d17;color:#fff;border:0}
.chat416-error:empty{display:none}
.chat416-note,.chat416-privacy,.chat416-form>small{font-size:.72rem;line-height:1.45;color:#526675;margin:0}
.chat416-privacy a{color:#883713;text-decoration:underline;text-underline-offset:2px}
.chat416-reset{justify-self:start;padding:3px 0;min-height:0}
@media(max-width:560px){.chat416{inset:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}.chat416-head{border-radius:0;padding:18px 20px}.chat416-log{max-height:none}.chat416-form{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
@media(max-height:480px){.chat416{overflow:auto}.chat416-log{flex:1 0 80px}.chat416-head{padding:12px 20px}.chat416-head h2{font-size:1.15rem}.chat416-head .chat416-status{margin-top:7px}}
/* 4.1.8 polish */
.chat416-compose textarea{font-family:inherit;line-height:1.5}
.chat416-log{scrollbar-width:thin;scrollbar-color:#b6c5cd transparent}
.chat416-bubble p{margin:0}
.chat416-bubble time{text-align:right;font-size:.69rem;opacity:.85}
.chat416-reset{position:absolute;right:57px;top:12px;display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff55;border-radius:50%;background:#ffffff12;color:#fff;padding:0;text-decoration:none}
.chat416-brand{padding-right:80px}
.chat416-typing{flex:none;margin:0 16px 5px;color:#526675;font-size:.78rem}
.chat416-typing:before{content:'•••';letter-spacing:2px;margin-right:7px;color:#a43d17}
.chat416-form{gap:4px}
.chat416-note,.chat416-privacy,.chat416-form>small{font-size:.72rem}
.chat416-privacy a{white-space:nowrap;margin-left:3px}

/* Compact, accessible chat disclosure */
.chat416-rules{margin:2px 0 0;padding:0;border:0;min-width:0}
.chat416-rules-toggle{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border:1px solid #dce5e9;border-radius:9px;background:#f5f8fa;color:#23495b;font-size:.78rem;font-weight:600;line-height:1.4;cursor:pointer;list-style:none;min-height:36px}
.chat416-rules-toggle::-webkit-details-marker{display:none}
.chat416-rules-toggle::marker{content:''}
.chat416-rules-toggle:hover{background:#edf3f6}
.chat416-rules-toggle:focus-visible{outline:2px solid #a43d17;outline-offset:2px}
.chat416-rules-icon,.chat416-rules-arrow{display:flex;align-items:center;flex:none}
.chat416-rules-arrow{margin-left:auto;transition:transform .18s ease}
.chat416-rules[open] .chat416-rules-arrow{transform:rotate(180deg)}
.chat416-rules-body{display:grid;gap:6px;padding:10px 11px;margin-top:5px;border:1px solid #e0e8ec;border-radius:9px;background:#f8fafb;overflow-wrap:anywhere;max-height:120px;overflow:auto}
.chat416-rules:not([open]) .chat416-rules-body{display:none}
@media(prefers-reduced-motion:reduce){.chat416-rules-arrow{transition:none}}

.chat416-rules-body .chat416-privacy{font-size:.78rem;line-height:1.5;color:#405867}
.chat416-rules-body>a{justify-self:start;font-size:.74rem;color:#883713;text-decoration:underline;text-underline-offset:2px}

.chat420-topics{background:transparent;color:#fff;border:1px solid #ffffff66;border-radius:8px;padding:7px 10px;font-size:.8rem;cursor:pointer;margin-top:6px}
