/* InspectDeck support chat — matches style.css theme (navy #0A2233 → teal #12948E) */
#idc-chat-launcher{position:fixed;right:18px;bottom:18px;z-index:80;width:56px;height:56px;border-radius:50%;border:1px solid #143a4a;background:linear-gradient(135deg,var(--teal-600,#12948E),var(--teal-700,#0f7a7a));color:#fff;font-size:1.4rem;cursor:pointer;box-shadow:0 10px 30px rgba(10,34,51,.25);display:grid;place-items:center}
#idc-chat-launcher:hover{box-shadow:0 10px 30px rgba(10,34,51,.35)}
#idc-chat-launcher:focus-visible,#idc-chat-panel button:focus-visible,#idc-chat-panel a:focus-visible,#idc-chat-panel input:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}
#idc-chat-panel{position:fixed;right:18px;bottom:86px;z-index:80;width:min(380px,calc(100vw - 24px));max-height:min(560px,calc(100dvh - 120px));display:flex;flex-direction:column;background:#fff;border:1px solid var(--line,#dfe9e7);border-radius:14px;box-shadow:0 10px 30px rgba(10,34,51,.2);overflow:hidden}
#idc-chat-panel[hidden]{display:none}
#idc-chat-head{background:var(--navy,#0a2233);color:#e6f2f1;padding:12px 14px;display:flex;gap:10px;align-items:flex-start}
#idc-chat-head strong{display:block;font-size:.98rem}
#idc-chat-head small{display:block;color:#bcd7d4;font-size:.76rem;line-height:1.4}
#idc-chat-head .idc-actions{margin-left:auto;display:flex;gap:6px}
#idc-chat-head button{background:transparent;border:1px solid #2b5566;color:#e6f2f1;border-radius:9px;padding:6px 9px;font-size:.8rem;cursor:pointer}
#idc-chat-head button:hover{background:#143a4a}
#idc-chat-log{padding:12px;display:flex;flex-direction:column;gap:10px;overflow-y:auto;background:var(--bg,#f6faf9);flex:1 1 auto;min-height:120px}
#idc-chat-log .idc-msg{max-width:88%;padding:9px 12px;border-radius:12px;font-size:.9rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
#idc-chat-log .idc-msg.user{align-self:flex-end;background:var(--navy,#0a2233);color:#fff}
#idc-chat-log .idc-msg.bot{align-self:flex-start;background:#fff;border:1px solid var(--line,#dfe9e7);color:#10232e}
#idc-chat-log .idc-msg a{color:var(--teal-700,#0f7a7a)}
#idc-chat-suggest{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 8px;background:var(--bg,#f6faf9)}
#idc-chat-suggest button{border:1px solid var(--line,#dfe9e7);background:#fff;border-radius:999px;padding:6px 10px;font-size:.78rem;cursor:pointer;color:var(--navy,#0a2233)}
#idc-chat-suggest button:hover{background:var(--teal-50,#eef8f7)}
#idc-chat-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--line,#dfe9e7);background:#fff}
#idc-chat-form input{flex:1;border:1px solid var(--line,#dfe9e7);border-radius:10px;padding:10px 12px;font-size:.9rem}
#idc-chat-form button{background:linear-gradient(135deg,var(--teal-600,#12948E),var(--teal-700,#0f7a7a));color:#fff;border:0;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer}
#idc-chat-form button:disabled{opacity:.6;cursor:wait}
#idc-chat-status{padding:6px 12px;font-size:.78rem;color:#5b7280;background:#fff;border-top:1px solid var(--line,#dfe9e7)}
#idc-chat-foot{padding:8px 12px 10px;font-size:.75rem;color:#5b7280;background:#fff}
#idc-chat-foot a{color:var(--teal-700,#0f7a7a)}
#idc-chat-teaser{position:fixed;right:18px;bottom:86px;z-index:80;display:flex;align-items:flex-start;gap:6px;max-width:250px;background:#fff;border:1px solid var(--line,#dfe9e7);border-radius:14px;box-shadow:0 10px 30px rgba(10,34,51,.2);padding:10px 8px 10px 12px;font-size:.85rem;color:var(--ink,#10232e)}
#idc-chat-teaser[hidden]{display:none}
#idc-chat-teaser .idc-teaser-btn{flex:1;background:none;border:0;padding:0;text-align:left;font:inherit;color:inherit;cursor:pointer}
#idc-chat-teaser .idc-teaser-x{background:none;border:0;color:var(--muted,#5b7280);font-size:.85rem;cursor:pointer;padding:2px 6px;border-radius:8px;flex:none}
html[data-theme="dark"] #idc-chat-panel{background:#0e2231;border-color:#1c3646}
html[data-theme="dark"] #idc-chat-log{background:#08161f}
html[data-theme="dark"] #idc-chat-log .idc-msg.bot{background:#0e2231;border-color:#1c3646;color:#e8f1f0}
html[data-theme="dark"] #idc-chat-log .idc-msg a{color:#5eead4}
html[data-theme="dark"] #idc-chat-suggest{background:#08161f}
html[data-theme="dark"] #idc-chat-suggest button{background:#0e2231;border-color:#1c3646;color:#e8f1f0}
html[data-theme="dark"] #idc-chat-form{background:#0e2231;border-color:#1c3646}
html[data-theme="dark"] #idc-chat-form input{background:#08161f;border-color:#1c3646;color:#e8f1f0}
html[data-theme="dark"] #idc-chat-status,html[data-theme="dark"] #idc-chat-foot{background:#0e2231;color:#93adb8;border-color:#1c3646}
html[data-theme="dark"] #idc-chat-foot a{color:#5eead4}
html[data-theme="dark"] #idc-chat-teaser{background:#0e2231;border-color:#1c3646;color:#e8f1f0}
#idc-chat-resize{position:absolute;top:0;left:0;width:34px;height:34px;cursor:nwse-resize;touch-action:none;z-index:3;border-radius:14px 0 8px 0;background:linear-gradient(135deg,rgba(18,148,142,.22),rgba(18,148,142,0) 70%)}
#idc-chat-resize::after{content:"";position:absolute;left:8px;top:8px;width:12px;height:12px;border-left:3px solid #fff;border-top:3px solid #fff;border-top-left-radius:7px;opacity:.9;filter:drop-shadow(0 0 2px rgba(18,148,142,.9))}
#idc-chat-resize::before{content:"";position:absolute;left:13px;top:13px;width:7px;height:7px;border-left:2px solid #fff;border-top:2px solid #fff;border-top-left-radius:5px;opacity:.9}
#idc-chat-resize:hover::after,#idc-chat-resize:hover::before{opacity:1}
#idc-chat-resize:focus-visible{outline:3px solid #f59e0b;outline-offset:-1px}
@media (max-width:480px){#idc-chat-panel{right:12px;left:12px;width:auto;bottom:84px;max-height:min(60dvh,520px)}#idc-chat-launcher{right:12px;bottom:12px}#idc-chat-teaser{right:12px;bottom:84px}#idc-chat-resize{display:none}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
