/* GCN AI chat: scoped styles, native controls and mobile keyboard-aware height. */
.gcn-chat-panel[hidden],.gcn-chat-overlay[hidden],.gcn-chat-panel [hidden]{display:none!important}
.gcn-chat-launcher{position:fixed;right:20px;bottom:max(20px,env(safe-area-inset-bottom));z-index:2100;border:0;border-radius:28px;background:#0066d6;color:#fff;padding:14px 20px;font:700 15px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 5px 24px #071d3c40;cursor:pointer}
.gcn-chat-overlay{position:fixed;inset:0;background:#06132960;z-index:2101;backdrop-filter:blur(3px)}
.gcn-chat-panel{position:fixed;right:20px;bottom:20px;width:400px;height:min(620px,calc(100dvh - 40px));max-width:calc(100vw - 32px);z-index:2102;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;background:#fff;color:#17202c;border:1px solid #d5dbe4;border-radius:22px;box-shadow:0 18px 70px #071d3c55;font:15px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:left}
.gcn-chat-panel *{box-sizing:border-box}.gcn-chat-panel button,.gcn-chat-panel input,.gcn-chat-panel textarea{font:inherit}.gcn-chat-panel button{cursor:pointer}.gcn-chat-panel button:disabled{opacity:.55;cursor:wait}.gcn-chat-panel :focus-visible,.gcn-chat-launcher:focus-visible{outline:3px solid #185cbe;outline-offset:3px}
.gcn-chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 18px 12px;background:#f7f8fb;border-bottom:1px solid #e3e6ec}.gcn-chat-header h2{font-size:18px;line-height:1.2;margin:0 0 3px;color:#0a2142}.gcn-chat-header p{font-size:12px;margin:0;color:#536174}.gcn-chat-close{font-size:28px!important;width:38px;height:38px;flex-shrink:0;border:0;border-radius:50%;color:#475468;background:#e9edf3;line-height:1}
.gcn-chat-tabs{display:flex;gap:4px;padding:8px 12px;background:#f7f8fb}.gcn-chat-tabs button{flex:1;padding:9px 6px;border:0;border-radius:9px;background:transparent;color:#526174;font-size:13px;font-weight:650}.gcn-chat-tabs button[aria-selected=true]{background:#fff;box-shadow:0 1px 5px #081d3920;color:#09264e}
.gcn-chat-ask{display:flex;flex-direction:column;flex:1;min-height:0}.gcn-chat-messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px 14px;scrollbar-gutter:stable}.gcn-chat-message{margin:0 0 14px;display:flex;flex-direction:column;align-items:flex-start}.gcn-chat-bubble{margin:0;padding:11px 14px;border-radius:18px 18px 18px 5px;background:#edf0f5;color:#182536;white-space:pre-wrap;overflow-wrap:anywhere;max-width:94%;font-size:14px;line-height:1.5}.gcn-chat-user{align-items:flex-end}.gcn-chat-user .gcn-chat-bubble{background:#0066d6;color:#fff;border-radius:18px 18px 5px 18px}.gcn-chat-messages>.gcn-chat-bubble{margin-bottom:16px}.gcn-chat-sources{margin:7px 0 0;padding:0 8px 0 23px;max-width:100%;font-size:12px;line-height:1.5}.gcn-chat-sources li{margin:3px 0;overflow-wrap:anywhere}.gcn-chat-sources a{color:#075fca;text-decoration:underline}.gcn-chat-sponsored{font-size:11px;font-weight:650;color:#6b531f}
.gcn-chat-status{margin:0;padding:0 15px;min-height:20px;font-size:12px;color:#4f6074;overflow-wrap:anywhere}.gcn-chat-composer{display:flex;align-items:flex-end;gap:8px;padding:8px 12px;border-top:1px solid #e4e8ef;background:#fff}.gcn-chat-composer textarea{min-width:0;flex:1;resize:none;max-height:100px;padding:10px 12px;border:1px solid #cbd3df;border-radius:17px;font-size:16px}.gcn-chat-send,.gcn-tip-send{padding:10px 14px;background:#0066d6;color:#fff;border:0;border-radius:18px;font-weight:650}.gcn-chat-footnote{margin:0;padding:5px 14px 10px;font-size:11px;color:#5b6879;line-height:1.4}.gcn-chat-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.gcn-chat-tip{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px}.gcn-chat-tip-intro{margin:0 0 14px;font-size:13px;color:#536174}.gcn-tip-form{display:flex;flex-direction:column;gap:13px}.gcn-tip-field{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600}.gcn-tip-field input,.gcn-tip-field textarea{width:100%;padding:10px;border:1px solid #cbd3df;border-radius:10px;font-size:16px;font-weight:400;color:#17202c;background:#fff}.gcn-tip-field textarea{resize:vertical;min-height:110px}.gcn-tip-field input[type=file]{font-size:13px}.gcn-tip-permission{margin:0;padding:12px;border:1px solid #cad5e3;border-radius:10px}.gcn-tip-permission legend{font-size:13px;font-weight:700}.gcn-tip-checkbox{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.5}.gcn-tip-checkbox input{width:18px;height:18px;flex:0 0 18px;margin-top:2px}.gcn-tip-permission .gcn-tip-field{margin-top:14px}.gcn-tip-permission .gcn-chat-footnote{padding:9px 0 0}.gcn-tip-form>.gcn-chat-footnote{padding:0}.gcn-tip-form>.gcn-chat-status{padding:0}.gcn-tip-send{align-self:flex-start}
@media(max-width:600px){.gcn-chat-panel{top:var(--gcn-chat-top,0px);left:0;right:0;bottom:auto;width:100%;max-width:none;height:var(--gcn-chat-vh,100dvh);max-height:none;border:0;border-radius:0}.gcn-chat-header{padding-top:calc(12px + env(safe-area-inset-top));padding-left:max(15px,env(safe-area-inset-left));padding-right:max(15px,env(safe-area-inset-right))}.gcn-chat-composer{padding-bottom:8px}.gcn-chat-ask>.gcn-chat-footnote{padding-bottom:calc(10px + env(safe-area-inset-bottom))}.gcn-chat-tip{padding-bottom:calc(20px + env(safe-area-inset-bottom))}.gcn-chat-launcher{right:14px;bottom:max(14px,env(safe-area-inset-bottom));font-size:14px;padding:13px 17px}}
@media(prefers-reduced-motion:reduce){.gcn-chat-overlay{backdrop-filter:none}.gcn-chat-messages{scroll-behavior:auto}}
