.gc-chat { --gc-blue: #2563eb; --gc-dark: #2d3748; position: relative; z-index: 1100; color: var(--gc-dark); font-family: 'Fredoka', sans-serif; font-size: 16px; font-weight: 400; line-height: 1.5; text-align: left; }
.gc-chat *, .gc-chat *::before, .gc-chat *::after { box-sizing: border-box; }
.gc-chat [hidden] { display: none !important; }
.gc-chat button, .gc-chat input { font: inherit; letter-spacing: normal; }
.gc-chat button { cursor: pointer; }
.gc-chat button:disabled { cursor: wait; }
.gc-chat p, .gc-chat h2 { margin: 0; }
.gc-chat a:focus-visible, .gc-chat button:focus-visible, .gc-chat input:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.gc-chat .gc-launcher { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 20px; border: 0; border-radius: 30px; background: var(--gc-blue); box-shadow: 0 5px 20px #2563eb38; color: white; font-size: 16px; font-weight: 600; line-height: 1.3; }
.gc-chat .gc-launcher svg { width: 22px; height: 22px; flex-shrink: 0; }
.gc-chat .gc-ai-label { padding: 2px 6px; border-radius: 6px; background: white; color: var(--gc-blue); font-size: 12px; line-height: 1.4; }
.gc-chat .gc-panel { position: fixed; right: 24px; bottom: calc(94px + var(--gc-keyboard-offset, 0px)); display: flex; flex-direction: column; width: min(390px, calc(100vw - 48px)); height: min(620px, calc(var(--gc-viewport-height, 100dvh) - 118px)); max-height: calc(100dvh - 118px); border: 1px solid #dce3ef; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 16px 60px #25375c38; isolation: isolate; }
.gc-chat .gc-panel-header { display: flex; align-items: center; flex-shrink: 0; gap: 10px; padding: 16px 14px 16px 18px; color: white; background: var(--gc-blue); }
.gc-chat .gc-panel-header img { width: 38px; height: 38px; padding: 2px; border-radius: 50%; background: white; }
.gc-chat .gc-panel-title { flex: 1; min-width: 0; }
.gc-chat h2 { color: white; font-size: 19px; font-weight: 600; line-height: 1.2; }
.gc-chat .gc-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: white; }
.gc-chat .gc-close:hover { background: #ffffff24; }
.gc-chat .gc-close svg { width: 22px; height: 22px; }
.gc-chat .gc-panel-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px; background: #f7f9fe; scrollbar-gutter: stable; }
.gc-chat .gc-welcome h3 { margin: 0; font-size: 21px; font-weight: 500; line-height: 1.25; }
.gc-chat .gc-welcome p { margin-top: 8px; font-size: 15px; color: #55637b; }
.gc-chat .gc-quick-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 16px; }
.gc-chat .gc-quick { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 14px; border: 1px solid #d9e3f4; border-radius: 12px; background: white; color: #355cab; font-size: 15px; font-weight: 500; text-align: left; }
.gc-chat .gc-quick:hover { background: #edf3ff; border-color: #8caff0; }
.gc-chat .gc-conversation { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.gc-chat .gc-message { max-width: 100%; padding: 13px 14px; border-radius: 14px 14px 14px 3px; border: 1px solid #e0e6f0; background: white; font-size: 15px; }
.gc-chat .gc-message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.gc-chat .gc-message-user { align-self: flex-end; max-width: 88%; background: #eaf0ff; border-color: #d8e1fb; border-radius: 14px 14px 3px 14px; color: #263c6a; }
.gc-chat .gc-message-kind { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 500; color: #52627d; }
.gc-chat .gc-message-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gc-chat .gc-message-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 8px 12px; border: 1px solid #cbd9f1; border-radius: 10px; color: #2456a5; background: #f4f7ff; font-size: 14px; font-weight: 500; line-height: 1.3; text-decoration: none; }
.gc-chat .gc-message-links a:hover { background: #e6efff; }
.gc-chat .gc-conversation-tools { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.gc-chat .gc-text-button { min-height: 44px; padding: 8px 0; border: 0; color: #355cab; background: transparent; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.gc-chat .gc-compose { flex-shrink: 0; padding: 14px 16px 12px; border-top: 1px solid #e1e7f2; background: white; }
.gc-chat .gc-input-label { display: block; margin-bottom: 8px; color: #54627a; font-size: 13px; }
.gc-chat .gc-input-row { display: flex; align-items: center; gap: 8px; }
.gc-chat .gc-input { width: 100%; min-width: 0; height: 46px; padding: 10px 12px; border: 1px solid #b9c9e3; border-radius: 12px; background: white; color: #2d3748; font-size: 16px; }
.gc-chat .gc-send { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; padding: 10px; border: 0; border-radius: 12px; color: white; background: var(--gc-blue); }
.gc-chat .gc-send:hover { background: #1d4ed8; }
.gc-chat .gc-send:disabled { opacity: .6; }
.gc-chat .gc-send svg { width: 21px; height: 21px; }
.gc-chat .gc-privacy-note { margin-top: 8px; color: #626d80; font-size: 11px; line-height: 1.4; }
.gc-chat .gc-privacy-note a { color: #2456a5; text-decoration: underline; text-underline-offset: 2px; }
.gc-chat .gc-thinking { color: #54627a; font-size: 14px; }
.gc-chat .gc-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
    .gc-chat .gc-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 50px; padding: 12px 16px; font-size: 15px; }
    .gc-chat .gc-panel { right: 12px; bottom: calc(82px + var(--gc-keyboard-offset, 0px)); width: calc(100vw - 24px); height: min(620px, calc(var(--gc-viewport-height, 100dvh) - 106px)); max-height: calc(100dvh - 106px); border-radius: 18px; }
    .gc-chat .gc-panel-header { padding: 12px; }
    .gc-chat h2 { font-size: 18px; }
    .gc-chat .gc-panel-body { padding: 14px; }
    .gc-chat .gc-compose { padding: 12px; }
}
@media (max-height: 620px) {
    .gc-chat .gc-welcome h3 { font-size: 18px; }
    .gc-chat .gc-quick-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .gc-chat .gc-quick { padding: 8px; font-size: 13px; }
}
@media print { .gc-chat { display: none; } }
