/* Shared, lightweight support-chat surface for login and authenticated dashboard pages. */
.login-help-backdrop { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(19,41,55,.44); }
.login-help-backdrop.is-open { display: flex; animation: support-chat-fade .18s ease both; }
@keyframes support-chat-fade { from { opacity: 0; } to { opacity: 1; } }
.login-help-dialog { position: relative; width: min(100%,420px); max-height: min(88vh,760px); padding: 23px 21px 17px; overflow-y: auto; background: #fff; border: 1px solid #e5edef; border-radius: 18px; box-shadow: 0 20px 55px rgba(19,41,55,.2); text-align: center; animation: support-chat-rise .22s ease both; }
@keyframes support-chat-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.login-help-close { position: absolute; top: 8px; left: 12px; width: 36px; height: 36px; color: #718390; background: #f4f7f8; border: 0; border-radius: 50%; font-size: 22px; cursor: pointer; }
.login-help-icon { display: grid; place-items: center; width: 45px; height: 45px; margin: 0 auto 9px; color: #218a83; background: #eaf6f4; border-radius: 14px; font-size: 19px; }
.login-help-dialog h2 { margin: 0 0 7px; color: #244258; font-size: 17px; font-weight: 800; }
.login-help-dialog p { margin: 0 0 11px; color: #778895; font-size: 11px; line-height: 1.8; }
.login-help-dialog small { display: block; margin-top: 9px; color: #96a2aa; font-size: 9px; line-height: 1.65; }
.login-chat-intro { margin: 0 0 11px !important; }
.login-chat-transcript { display: flex; flex-direction: column; gap: 9px; height: min(40vh,280px); min-height: 150px; margin: 0 0 11px; padding: 11px; overflow-y: auto; overscroll-behavior: contain; background: #f5f8f9; border: 1px solid #e8eef0; border-radius: 12px; text-align: right; }
.login-chat-message { max-width: 88%; padding: 9px 11px; border-radius: 12px; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; white-space: pre-wrap; }
.login-chat-message--assistant { align-self: flex-start; color: #3d5364; background: #fff; border: 1px solid #e6edef; border-bottom-right-radius: 4px; }
.login-chat-message--user { align-self: flex-end; color: #fff; background: #247f78; border-bottom-left-radius: 4px; }
.login-chat-message--error { color: #9c414b; background: #fff0f0; border: 1px solid #f2d7da; }
.login-chat-form { display: flex; align-items: stretch; gap: 7px; margin: 0; }
.login-chat-form textarea { flex: 1 1 auto; width: 0; min-width: 0; min-height: 43px; max-height: 100px; resize: vertical; padding: 9px 10px; color: #263b4d; background: #fff; border: 1px solid #dfe8eb; border-radius: 10px; font-family: inherit; font-size: 12px; line-height: 1.55; }
.login-chat-form textarea:focus { outline: 0; border-color: #80beb7; box-shadow: 0 0 0 3px rgba(22,139,131,.1); }
.login-chat-form button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; min-width: 72px; min-height: 42px; padding: 0 11px; color: #fff; background: #1c8179; border: 0; border-radius: 10px; font-size: 11px; font-weight: 700; cursor: pointer; }
.login-chat-form button:disabled { opacity: .62; cursor: wait; }
.login-chat-privacy { display: block; margin-top: 9px; color: #96a2aa; font-size: 9px; line-height: 1.65; text-align: right; }
.login-chat-typing { display: inline-flex; align-items: center; gap: 5px; color: #82939e; }
.login-chat-typing::after { content: ""; width: 5px; height: 5px; background: #7daea9; border-radius: 50%; box-shadow: 9px 0 #7daea9,18px 0 #7daea9; margin-left: 19px; animation: chat-dots 1s infinite ease-in-out; }
@keyframes chat-dots { 0%,70%,100% { opacity: .35; } 35% { opacity: 1; } }
.login-chatgpt-external { display: inline-block; margin-top: 8px; color: #82939e !important; font-size: 10px; text-decoration: underline; text-underline-offset: 2px; }
.login-chatgpt-external:hover { color: #187e7a !important; }
html.theme-dark .login-help-dialog { color: #d9e4ed; background: #1b2936; border-color: #344655; }
html.theme-dark .login-help-dialog h2 { color: #e0eaf2; }
html.theme-dark .login-chat-transcript { background: #14202b; border-color: #304151; }
html.theme-dark .login-chat-message--assistant { color: #d1dce6; background: #202e3b; border-color: #344655; }
html.theme-dark .login-chat-form textarea { color: #e4edf6; background: #162330; border-color: #3b4e5e; }
.support-chat-launcher { position: fixed; left: 16px; bottom: 16px; z-index: 1500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 46px; padding: 0 15px; color: #fff; background: linear-gradient(135deg,#218a83,#176e78); border: 0; border-radius: 24px; box-shadow: 0 5px 16px rgba(18,96,100,.22); font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.support-chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(18,96,100,.27); }
.support-chat-launcher i { font-size: 16px; }
.support-chat-launcher:focus-visible,.login-help-close:focus-visible,.login-chat-form button:focus-visible { outline: 3px solid rgba(33,138,131,.32); outline-offset: 2px; }
@media (max-width:480px) { .login-help-dialog { width: min(100%,420px); padding: 21px 15px 14px; } .login-chat-transcript { height: min(36vh,230px); min-height: 140px; } .support-chat-launcher { left: 12px; bottom: 12px; min-height: 46px; } }
@media (prefers-reduced-motion: reduce) { .login-help-backdrop.is-open,.login-help-dialog,.login-chat-typing::after { animation: none !important; } .support-chat-launcher { transition: none !important; } }
