.support-app{color-scheme:dark;background:#0b0c0f;color:#f4ead3;font:15px/1.5 system-ui,sans-serif;margin:0;min-width:0;box-sizing:border-box}.support-app *,.support-embed{box-sizing:border-box}.support-app button,.support-app input,.support-app select,.support-app textarea{font:inherit;color:inherit;background:#17191e;border:1px solid #454033;border-radius:10px;padding:9px 12px;min-width:0}.support-app button{cursor:pointer;min-height:42px}.support-app button:hover{border-color:#d7ad56}.support-app button:disabled{opacity:.45;cursor:not-allowed}.support-app :focus-visible{outline:3px solid #efd494;outline-offset:2px}.support-top{display:flex;justify-content:space-between;align-items:center;padding:16px 22px;border-bottom:1px solid #343029}.support-top h1{font-size:21px;margin:0}.support-top p{font-size:12px;color:#c4bca9;margin:2px 0}.support-kicker{font-size:10px;letter-spacing:.2em;color:#d7b565}.support-toolbar{display:flex;gap:8px;flex-wrap:wrap;padding:10px 20px}.support-notice{padding:0 20px;margin:0;color:#efcf87;font-size:13px;min-height:20px}.support-layout{display:grid;grid-template-columns:270px minmax(0,1fr);height:calc(100dvh - 158px);min-height:360px}#inbox{padding:14px;border-right:1px solid #343029;overflow:auto}#inbox input,#inbox select{width:100%;margin:5px 0 12px}#conversations{display:grid;gap:8px}.support-conversation{text-align:left;width:100%;overflow-wrap:anywhere}.support-conversation.active{background:#2c2518;border-color:#d7ad56}.support-conversation small{display:block;color:#bdb5a6}.support-count{float:right;background:#d7ad56;color:#18130b;border-radius:20px;padding:0 8px}.support-chat{display:flex;flex-direction:column;min-width:0;min-height:0}.support-chat-heading{display:flex;align-items:center;gap:7px;padding:12px 18px;border-bottom:1px solid #343029;flex-wrap:wrap}.support-chat-heading>div{flex:1;min-width:120px}.support-chat-heading h2{margin:0;font-size:17px;overflow-wrap:anywhere}.support-chat-heading p{margin:0;color:#bfb7a5;font-size:12px}.support-status{padding:8px 14px;display:flex;gap:8px;flex-wrap:wrap}.support-status[hidden]{display:none}.support-status input{flex:1}.support-thread{flex:1;min-height:120px;overflow:auto;overscroll-behavior:contain;padding:18px;display:flex;flex-direction:column;gap:12px;scrollbar-color:#76613d #111}.support-bubble{max-width:85%;width:fit-content;background:#1c2026;border:1px solid #30363f;padding:10px 13px;border-radius:15px 15px 15px 3px;overflow-wrap:anywhere;flex-shrink:0}.support-bubble.mine{align-self:flex-end;background:#2d2517;border-color:#65502a;border-radius:15px 15px 3px 15px}.support-bubble p{white-space:pre-wrap;margin:4px 0}.support-bubble small{font-size:10px;color:#bfb7a5}.support-attachment{display:block;margin-top:8px;max-width:100%;overflow-wrap:anywhere}.support-attachment img{display:block;max-width:min(260px,100%);max-height:200px;object-fit:contain;border-radius:8px}.support-typing{margin:0 15px;min-height:23px;font-size:12px;color:#d9bb78}#composer{padding:10px 14px max(12px,env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;border-top:1px solid #393124}#composer textarea{width:100%;resize:vertical;max-height:160px}.support-attach-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}#send,#acceptCall,#saveSettings{background:linear-gradient(135deg,#f0d698,#c28d35);color:#17130b;font-weight:650}.support-previews{display:flex;gap:8px;overflow:auto;padding:0 14px}.support-preview{flex:0 0 155px;background:#202129;padding:8px;overflow-wrap:anywhere;border-radius:8px;font-size:12px}.support-preview img{max-width:100%;height:65px;object-fit:contain}.support-preview progress{width:100%}.support-history{padding:5px 15px;max-height:135px;overflow:auto;border-top:1px solid #343029;font-size:12px}.support-history button{min-height:32px;padding:3px 9px}.support-empty{color:#b8b09f;margin:auto;text-align:center}.support-app dialog{background:#111319;color:#f4ead3;border:1px solid #8f723e;border-radius:18px;width:min(560px,calc(100% - 24px));max-height:90dvh;overflow:auto;padding:22px}.support-app dialog::backdrop{background:#000c}.support-app dialog label{display:block;margin:10px 0}.support-app dialog button{margin:4px}.support-call-dialog{text-align:center}.support-video-grid{display:flex;gap:8px;max-height:48dvh}.support-video-grid video{width:48%;max-height:45dvh;background:#08090b;border-radius:12px;object-fit:contain}.support-video-grid.audio{height:0;overflow:hidden}.support-call-actions{display:flex;flex-wrap:wrap;justify-content:center}.support-app #imageViewer{width:calc(100% - 16px);height:calc(100dvh - 16px);max-width:1400px;max-height:none;padding:8px;overflow:hidden}.support-viewer-bar{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;height:64px}#imageStage{height:calc(100% - 90px);overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none}#originalImage{max-width:100%;max-height:100%;object-fit:contain;transform-origin:center;user-select:none;pointer-events:none}#imageError{text-align:center}.support-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.support-embed{border:0;width:100%;height:780px;max-height:90dvh;border-radius:16px}.support-overlay{position:fixed;inset:12px;z-index:2147483000;background:#0b0c0f;border:1px solid #a48448;border-radius:16px;max-width:1200px;margin:auto;box-shadow:0 30px 100px #000b}.support-overlay iframe{width:100%;height:100%;border:0;border-radius:16px}.support-toast{position:fixed;right:15px;top:20px;z-index:2147483001;background:#e9c77a;color:#17130b;border:0;border-radius:12px;padding:14px;cursor:pointer}.support-old-hidden{display:none!important}#backInbox{display:none}#imageViewer{z-index:2147483005}@media(max-width:700px){.support-layout{grid-template-columns:1fr;height:calc(100dvh - 178px)}#inbox{display:none}.support-app.show-inbox #inbox{display:block}.support-app.show-inbox .support-chat{display:none}#backInbox{display:block}.support-top{padding:10px 13px}.support-toolbar{padding:7px 12px;gap:5px}.support-toolbar button{padding:6px 9px;font-size:12px}.support-chat-heading{padding:8px}.support-chat-heading button{font-size:12px;padding:7px}.support-thread{padding:10px}.support-bubble{max-width:94%}.support-overlay{inset:0;border-radius:0}.support-overlay iframe{border-radius:0}.support-embed{height:85dvh}.support-status{padding:6px}#composer{padding:8px}.support-app textarea{font-size:16px}.support-video-grid{flex-direction:column;align-items:center}.support-video-grid video{width:90%;max-height:22dvh}}@media(prefers-reduced-motion:reduce){.support-app *{scroll-behavior:auto!important;transition:none!important}}

/* A flex viewport keeps the composer reachable when the mobile keyboard reduces space. */
.support-app{height:var(--support-viewport,100dvh);display:flex;flex-direction:column;overflow:hidden}.support-top,.support-toolbar,.support-notice{flex-shrink:0}.support-layout{flex:1;min-height:0;height:auto}.support-thread{min-height:40px}.support-previews{max-height:180px;flex-shrink:0}.support-history{flex-shrink:0;max-height:95px}.support-status input{max-width:100%}.support-toolbar select{max-width:100%;font-size:12px}.support-attach-actions select{max-width:100%}.support-top>div{min-width:0}.support-viewer-bar{height:auto;min-height:64px}@media(max-width:400px){.support-toolbar{gap:4px}.support-toolbar select{padding:6px}.support-chat-heading>div{min-width:100px}.support-chat-heading p{max-height:36px;overflow:auto}.support-app #imageViewer{padding:5px}}

/* Attachment drafts stay separate from delivered history. Thumbnails are reused
   during upload progress so image decoding and keyboard focus remain stable. */
.support-draft{padding:8px 14px;border-top:1px solid #68542e;background:#15140f;min-width:0;flex-shrink:1;max-height:min(300px,45%);overflow:auto;overscroll-behavior:contain}
.support-draft[hidden],#attachmentChoices[hidden]{display:none}
.support-draft-heading,.support-draft-actions{display:flex;align-items:center;gap:8px;justify-content:space-between;flex-wrap:wrap}
.support-draft-heading{font-size:13px;margin-bottom:8px}.support-draft-actions{margin-top:8px}
.support-draft .support-previews{padding:0 0 4px;max-height:205px;overflow-x:auto;overflow-y:hidden}
.support-draft .support-preview{flex:0 0 154px;min-width:0;display:flex;flex-direction:column;gap:4px}
.support-preview img{display:block;width:100%;height:70px;object-fit:contain}.support-preview strong{line-height:1.3;max-height:32px;overflow:auto;font-size:12px}.support-preview small{color:#c4bca9}
.support-file-status{font-size:11px;line-height:1.3;margin:0;max-height:42px;overflow:auto}.support-preview button{padding:4px 8px;min-height:36px}
#sendAttachments{background:linear-gradient(135deg,#f0d698,#c28d35);color:#17130b;font-weight:650;flex:1}
#attachmentChoices{display:flex;gap:6px;flex-wrap:wrap}.support-attachment-limits{grid-column:1/-1;color:#c4bca9;font-size:11px;margin:0;overflow-wrap:anywhere}
.support-file-icon{height:70px;display:grid;place-items:center;font-size:32px}
@media(max-height:570px){.support-top{padding:6px 10px}.support-top h1{font-size:16px}.support-toolbar{max-height:44px;overflow:auto;flex-shrink:1}.support-history{max-height:28px}.support-chat-heading p{display:none}.support-draft{max-height:42%;padding:5px 8px}.support-preview img,.support-file-icon{height:42px}.support-draft .support-previews{max-height:130px}#composer textarea{max-height:70px}}
@media(max-width:400px){.support-draft{padding:6px 8px}.support-draft-actions button,.support-draft-heading button{padding:7px 9px;font-size:13px}.support-chat-heading{gap:4px}}

/* Compact media strip: one horizontal scroller; readable filenames/errors. */
.support-draft{max-height:min(230px,38%);overflow:visible;padding:6px 10px}
.support-draft .support-previews{max-height:none;overflow-x:auto;overflow-y:hidden;padding-bottom:5px;scrollbar-width:thin}
.support-draft .support-preview{flex:0 0 150px;gap:2px;padding:6px}
.support-preview img,.support-file-icon{height:46px}.support-preview strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-height:none}
.support-file-status{max-height:none;overflow:visible;line-height:1.25}.support-file-format{font-size:10px;overflow-wrap:anywhere}
.support-preview button{min-height:36px}.support-draft-actions,.support-draft-heading{margin:3px 0}
.support-video-attachment video{display:block;width:min(420px,100%);max-height:45dvh;object-fit:contain;background:#000;border-radius:9px}
.support-video-error{color:#ffddaa;font-size:12px}
@media(max-height:570px){.support-draft{max-height:42%}.support-preview img,.support-file-icon{height:30px}.support-draft .support-previews{max-height:none}.support-attachment-limits{font-size:10px}}
