:root{color:#e5e7eb;background:#111827;font-family:Inter,ui-sans-serif,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0;background:#111827}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.support-loading,.support-login{display:grid;min-height:100vh;min-height:100dvh;place-items:center;padding:calc(24px + env(safe-area-inset-top,0px)) calc(24px + env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) calc(24px + env(safe-area-inset-left,0px))}.support-login__card{width:min(100%,420px);padding:32px 24px;border:1px solid #374151;border-radius:16px;background:#1f2937;box-shadow:0 20px 50px #0003}.support-login__brand{display:flex;min-width:0;align-items:center;gap:10px;margin-bottom:8px}.support-login__logo{display:block;width:32px;height:32px;flex:none;border-radius:8px;object-fit:contain}.support-login__eyebrow,.support-shell__eyebrow{margin:0 0 8px;color:#60a5fa;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.support-login__brand .support-login__eyebrow{min-width:0;margin:0;overflow-wrap:anywhere;text-transform:none}.support-login h1{margin:0;font-size:28px}.support-login__intro{margin:10px 0 24px;color:#9ca3af}.support-login__form{display:grid;gap:10px}.support-login__form label{margin-top:6px;font-weight:600}.support-login__form input{width:100%;min-height:44px;padding:10px 12px;color:#f9fafb;border:1px solid #4b5563;border-radius:8px;background:#111827}.support-login__form button{min-height:44px;margin-top:12px;border:0;border-radius:8px;color:#eff6ff;background:#2563eb;font-weight:700}.support-login__error{margin:8px 0 0;color:#fecaca}.support-shell{height:100dvh;min-height:100dvh;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom,0px);overflow-x:hidden}.support-shell__header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:calc(16px + env(safe-area-inset-top,0px)) calc(16px + env(safe-area-inset-right,0px)) 16px calc(16px + env(safe-area-inset-left,0px));border-bottom:1px solid #374151;background:#1f2937}.support-menu{position:relative;flex:none}.support-menu__trigger{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;color:#dbeafe;border:0;border-radius:8px;background:#374151}.support-menu__trigger svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:2}.support-menu__popover{position:absolute;top:calc(100% + 8px);right:0;z-index:20;display:grid;width:min(300px,calc(100vw - 24px));gap:4px;padding:8px;color:#e5e7eb;border:1px solid #4b5563;border-radius:12px;background:#1f2937;box-shadow:0 18px 40px #00000059}.support-menu__popover button{min-height:44px;padding:0 12px;color:inherit;border:0;border-radius:8px;background:transparent;text-align:left}.support-menu__popover button:hover,.support-menu__popover button[aria-checked=true]{background:#374151}.support-menu__language{display:grid;gap:2px;min-width:0;margin:6px 0;padding:8px 0;border-top:1px solid #374151}.support-menu__language-label{padding:0 12px;color:#9ca3af;font-size:13px;font-weight:700}.support-menu__switch{display:flex;align-items:center;justify-content:space-between;gap:12px}.support-menu__switch-track{display:flex;width:38px;height:22px;flex:none;align-items:center;padding:2px;border-radius:11px;background:#4b5563}.support-menu__switch-track span{width:18px;height:18px;border-radius:50%;background:#f9fafb;transition:transform .15s ease}.support-menu__switch[aria-checked=true] .support-menu__switch-track{background:#2563eb}.support-menu__switch[aria-checked=true] .support-menu__switch-track span{transform:translate(16px)}.support-menu__sign-out{margin-top:2px;border-top:1px solid #374151!important;color:#fecaca!important}.support-shell__error{margin:12px calc(16px + env(safe-area-inset-right,0px)) 0 calc(16px + env(safe-area-inset-left,0px));color:#fecaca}.support-queue-shell{padding:24px calc(16px + env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) calc(16px + env(safe-area-inset-left,0px))}.support-queue-shell h1{margin:0 0 8px;font-size:22px}.support-queue-shell p{margin:0;color:#9ca3af}.support-workbench{flex:1;min-height:0;width:100%;max-width:960px;margin:0 auto}.support-queue,.support-chat,.support-history{height:100%;min-height:0;color:#e5e7eb;background:#111827;font-size:16px}.support-queue{display:flex;flex-direction:column}.support-queue__header{position:sticky;z-index:3;top:0;display:flex;align-items:center;min-height:56px;gap:8px;padding:8px calc(12px + env(safe-area-inset-right,0px)) 8px calc(12px + env(safe-area-inset-left,0px));border-bottom:1px solid #374151;background:#1f2937fa}.support-conversation-header,.support-history__header{position:sticky;z-index:3;top:0;display:flex;align-items:center;min-height:56px;gap:4px;padding:6px calc(8px + env(safe-area-inset-right,0px)) 6px calc(8px + env(safe-area-inset-left,0px));border-bottom:1px solid #374151;background:#1f2937fa}.support-queue__tabs{display:grid;flex:1;grid-template-columns:repeat(2,minmax(0,1fr));padding:3px;border-radius:10px;background:#111827}.support-queue__tab,.support-action-button,.support-more-button,.support-send,.support-dialog button{min-height:44px;border:0;border-radius:8px;color:#e5e7eb;background:transparent;font:inherit}.support-queue__tab{font-weight:700}.support-queue__tab--active{color:#eff6ff;background:#2563eb}.support-icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;gap:5px;padding:0 8px;border:0;border-radius:8px;color:#dbeafe;background:#374151;font:inherit;white-space:nowrap}.support-icon-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.support-queue__list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:8px 12px}.support-user-avatar{display:block;flex:none;overflow:hidden;border:1px solid #4b5563;border-radius:50%;background:#374151;object-fit:cover}.support-user-avatar--placeholder{display:grid;place-items:center}.support-user-avatar--list{width:40px;height:40px}.support-user-avatar--header{width:32px;height:32px}.support-queue__item,.support-history__item{position:relative;display:grid;width:100%;grid-template-columns:40px minmax(0,1fr);column-gap:12px;margin-bottom:8px;padding:14px;overflow:hidden;text-align:left;color:#e5e7eb;border:1px solid #374151;border-radius:12px;background:#1f2937;font:inherit}.support-queue__content,.support-history__content{display:grid;min-width:0;gap:4px}.support-queue__item-top{display:flex;justify-content:space-between;gap:8px}.support-queue__item-top strong,.support-history__content strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.support-queue__item-top time{flex:none}.support-queue__item-top time,.support-queue__identity,.support-history__item time{color:#94a3b8;font-size:13px}.support-queue__preview{overflow:hidden;color:#cbd5e1;text-overflow:ellipsis;white-space:nowrap}.support-unread{grid-column:2;justify-self:end;display:grid;min-width:22px;height:22px;place-items:center;padding:0 5px;border-radius:11px;color:#fff;background:#dc2626;font-size:12px;font-weight:700}.support-skeleton{height:80px;margin:8px 0;border-radius:12px;background:linear-gradient(90deg,#1f2937,#374151,#1f2937);background-size:200% 100%;animation:support-shimmer 1.3s infinite}.support-state{margin:32px 12px;text-align:center;color:#94a3b8}.support-alert{margin:8px 12px;padding:10px;border-radius:8px;color:#fecaca;background:#7f1d1d}.support-alert button{min-height:44px;margin-left:8px;color:inherit;border:0;border-radius:6px;background:#991b1b}.support-more-button{width:100%;margin:8px 0;color:#bfdbfe;background:#1e3a5f}.support-chat{display:flex;flex-direction:column}.support-icon-button--back{padding:0;background:transparent}.support-conversation-header .support-chat__identity{display:grid;flex:1;min-width:0}.support-conversation-header .support-chat__identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.support-chat__identity span{color:#93c5fd;font-size:13px}.support-chat__actions{display:flex;flex:none;gap:4px}.support-conversation-header button,.support-conversation-header .support-menu__trigger{min-width:44px;min-height:44px}.support-action-button{min-width:44px;padding:0 9px;color:#bfdbfe;background:#1e3a5f}.support-action-button--danger{color:#fecaca;background:#7f1d1d}.support-connection{margin:0;padding:6px 12px;color:#fde68a;background:#78350f;font-size:13px}.support-chat__messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:10px 12px}.support-message{width:fit-content;max-width:min(82%,520px);margin:8px 0;padding:10px 12px;border-radius:12px;background:#374151}.support-message--admin{margin-left:auto;color:#eff6ff;background:#1d4ed8}.support-message--system{max-width:100%;margin-right:auto;margin-left:auto;color:#cbd5e1;background:transparent;text-align:center;font-size:13px}.support-message p{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.support-message time{display:block;margin-top:4px;color:#cbd5e1;font-size:12px}.support-message__image{display:block;width:min(260px,100%);border:0;padding:0;border-radius:8px;overflow:hidden;background:#111827}.support-message__image img,.support-message--pending img,.support-history__messages img{display:block;width:100%;max-height:320px;object-fit:contain}.support-message--pending{opacity:.8}.support-readonly{margin:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));color:#cbd5e1;background:#1f2937;text-align:center}.support-chat__composer{display:flex;align-items:end;gap:8px;padding:8px calc(12px + env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) calc(12px + env(safe-area-inset-left,0px));border-top:1px solid #374151;background:#1f2937}.support-chat__composer textarea{flex:1;min-width:0;min-height:44px;max-height:120px;padding:11px;resize:vertical;color:#f9fafb;border:1px solid #4b5563;border-radius:8px;background:#111827;font:inherit}.support-send{min-width:52px;padding:0 10px;color:#fff;background:#2563eb;font-weight:700}.support-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;clip-path:inset(50%)}.support-history{display:flex;flex-direction:column}.support-history__header h1{flex:1;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px}.support-history__list,.support-history__messages{flex:1;overflow-y:auto;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))}.support-history__item span{overflow:hidden;color:#cbd5e1;text-overflow:ellipsis;white-space:nowrap}.support-dialog{width:min(calc(100% - 32px),480px);padding:18px;color:#e5e7eb;border:1px solid #4b5563;border-radius:12px;background:#1f2937}.support-dialog::backdrop{background:#000000b3}.support-dialog img{display:block;max-width:100%;max-height:70dvh;margin:10px auto 0;object-fit:contain}.support-dialog h2{margin-top:0;font-size:18px}.support-dialog__close{float:right;min-width:44px;font-size:24px}.support-dialog__actions{display:flex;justify-content:end;gap:8px}.support-dialog__actions button{min-width:68px;padding:0 12px;background:#374151}@media(max-width:360px){.support-conversation-header{gap:2px;padding-right:calc(4px + env(safe-area-inset-right,0px));padding-left:calc(4px + env(safe-area-inset-left,0px))}.support-conversation-header .support-action-button{padding-right:6px;padding-left:6px}}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}@keyframes support-shimmer{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
