/* TACK CHAT — isolated design tokens */
.tack-chat-widget,#tack-chat-staff,.tack-chat-app{--tc-navy:#303151;--tc-red:#ce212c;--tc-border:#e7e9f0;--tc-bg:#f6f7fb;--tc-shadow:0 15px 45px rgba(29,31,60,.17);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#25283c;box-sizing:border-box}
.tack-chat-widget *,#tack-chat-staff *,.tack-chat-app *{box-sizing:border-box}
.tack-chat-widget button,#tack-chat-staff button,.tack-chat-app button{cursor:pointer;font:inherit}
.tack-chat-widget button:disabled,#tack-chat-staff button:disabled{opacity:.55;cursor:wait}
.tack-chat-widget{position:fixed!important;right:22px;bottom:23px;z-index:2147481000!important;font-size:14px;line-height:1.4}
.tack-chat-widget .tc-launch{border:0;background:var(--tc-navy);color:#fff;width:60px;height:60px;border-radius:50%;box-shadow:var(--tc-shadow);font-size:26px}
.tack-chat-widget .tc-panel{position:absolute;bottom:77px;right:0;width:min(370px,calc(100vw - 28px));height:min(560px,calc(100dvh - 120px));background:#fff;border:1px solid var(--tc-border);border-radius:19px;box-shadow:var(--tc-shadow);display:flex;flex-direction:column;overflow:hidden}
.tack-chat-widget .tc-panel[hidden]{display:none!important}
.tc-header{background:var(--tc-navy);color:#fff;padding:17px 18px;display:flex;align-items:center;justify-content:space-between}
.tc-headings{display:flex;flex-direction:column;gap:3px}.tc-headings strong{letter-spacing:.5px;font-size:16px}.tc-headings span{opacity:.85;font-size:12px}
.tc-close{border:0;background:transparent;color:#fff;font-size:26px;padding:0 7px}
.tc-visitor-body{display:flex;flex:1;flex-direction:column;overflow:hidden;min-height:0;padding:14px}
.tc-note{margin:0 0 15px;color:#667085;font-size:13px}.tc-start{display:grid;gap:13px}.tc-field{display:grid;gap:5px;font-size:12px;font-weight:600}
.tc-input{width:100%;border:1px solid #d8dce7;border-radius:11px;padding:10px 12px;background:#fff;color:#20243b;font-size:14px;min-width:0}
.tc-input:focus,.tc-editor:focus{outline:2px solid #b0b8d8;outline-offset:1px}
.tc-primary,.tc-send{border:0;border-radius:11px;background:var(--tc-navy);color:#fff;padding:10px 16px;font-weight:600}
.tc-state{min-height:20px;margin:7px 0;color:#667085;font-size:12px}.tc-state.is-error{color:#b42318}
.tc-messages{display:flex;flex-direction:column;gap:11px;flex:1;min-height:0;overflow-y:auto;padding:14px 12px;background:#fafbfe;scrollbar-width:thin}
.tc-message{display:flex;max-width:100%}.tc-message.tc-own{justify-content:flex-end}.tc-message.tc-other{justify-content:flex-start}
.tc-bubble{display:flex;flex-direction:column;max-width:84%;gap:6px;background:#fff;color:#20243b;border:1px solid var(--tc-border);border-radius:15px 15px 15px 3px;padding:10px 12px;word-break:break-word;box-shadow:0 2px 7px #20243b0a}
.tc-own .tc-bubble{background:var(--tc-navy);color:#fff;border-color:var(--tc-navy);border-radius:15px 15px 3px 15px}.tc-msg-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
.tc-sender{font-size:11px;font-weight:700;opacity:.85}.tc-time{align-self:flex-end;opacity:.65;font-size:10px}.tc-file{color:#2f64b4;text-decoration:underline;overflow-wrap:anywhere;font-size:12px}.tc-own .tc-file{color:#e1e7ff}
.tc-image{max-width:225px;max-height:210px;width:auto;height:auto;object-fit:contain;border-radius:8px}.tc-empty{text-align:center;color:#748096;font-size:13px;padding:25px 10px}
.tc-compose{padding:10px;background:#fff;border-top:1px solid var(--tc-border);display:flex;flex-direction:column;gap:7px}
.tc-editor{width:100%;max-width:100%;min-height:57px;max-height:130px;resize:vertical;border:1px solid #d8dce7;background:#fff;border-radius:11px;padding:10px 12px;line-height:1.4;color:#20243b;font-size:14px}
.tc-file-input{display:none}.tc-compose-actions{display:flex;align-items:center;gap:6px}.tc-attach{width:40px;height:35px;border:1px solid #e5e7ee;background:#f7f8fb;border-radius:9px;font-size:18px}.tc-file-name{flex:1;color:#657184;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tc-send{min-width:84px}
#tack-chat-staff{width:100%;min-height:450px}.tc-staff-shell{height:min(720px,calc(100dvh - 200px));min-height:430px;background:#fff;border:1px solid var(--tc-border);border-radius:16px;overflow:hidden;display:flex;box-shadow:0 6px 18px #2d315112}
.tc-list-panel{width:34%;min-width:260px;border-right:1px solid var(--tc-border);display:flex;flex-direction:column;min-height:0;background:#fff}
.tc-list-top{padding:17px;border-bottom:1px solid var(--tc-border);display:grid;gap:9px}.tc-list-top>strong{font-size:18px}.tc-toolbar{display:flex;gap:8px;flex-wrap:wrap}
.tc-light{border:1px solid #dce0ea;background:#fff;color:var(--tc-navy);border-radius:9px;padding:8px 10px;font-weight:600;font-size:12px;white-space:nowrap}
.tc-thread-list{overflow-y:auto;flex:1}.tc-thread{width:100%;text-align:left;border:0;border-bottom:1px solid #f0f1f5;background:#fff;display:grid;gap:6px;padding:14px 16px;color:#25283c}.tc-thread:hover,.tc-thread.is-active{background:#f0f2fa}
.tc-thread-name{display:flex;gap:10px;align-items:center;justify-content:space-between}.tc-thread-name strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.tc-count{display:inline-block;background:var(--tc-red);color:#fff;border-radius:12px;min-width:19px;text-align:center;padding:2px 5px;font-size:11px}
.tc-thread-preview{font-size:13px;color:#586177;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tc-thread-meta{font-size:11px;color:#9297a6;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tc-conv-panel{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff}.tc-conv-head{border-bottom:1px solid var(--tc-border);padding:13px 15px;display:flex;align-items:center;gap:13px;justify-content:space-between;min-height:70px}
.tc-contact{flex:1;display:flex;flex-direction:column;min-width:0;gap:4px}.tc-contact strong{font-size:15px}.tc-contact span{color:#747d91;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-back{display:none;background:#fff;color:#303151;border:1px solid #dce0ea;border-radius:9px;font-size:22px;line-height:1;width:33px;height:33px}
.tc-splash{margin:auto;max-width:330px;text-align:center;color:#667085;padding:22px}.tc-splash h2{color:var(--tc-navy);margin:7px 0}.tc-splash-icon{font-size:42px}
.tack-chat-app{margin:0!important;background:#f3f5f9;min-height:100dvh}.tack-chat-app-head{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:var(--tc-navy);color:#fff}.tack-chat-app-head strong{font-size:20px;letter-spacing:.07em}.tack-chat-app-head strong span{font-weight:400}.tack-chat-app-head a{color:#fff;text-decoration:none;font-size:12px;margin-left:14px}
.tack-chat-app #tack-chat-staff{max-width:1200px;margin:15px auto;padding:0 10px}.tack-chat-app .tc-staff-shell{height:calc(100dvh - 100px);min-height:390px}.tack-chat-app #tack-chat-staff>.tc-state{padding:0 14px}
@media(max-width:700px){.tc-staff-shell{height:calc(100dvh - 175px);min-height:360px;position:relative}.tc-list-panel{width:100%;min-width:0}.tc-conv-panel{display:none;width:100%}.tc-staff-shell.tc-selected .tc-list-panel{display:none}.tc-staff-shell.tc-selected .tc-conv-panel{display:flex}.tc-back{display:inline-block}.tack-chat-app #tack-chat-staff{margin:0;padding:0}.tack-chat-app .tc-staff-shell{height:calc(100dvh - 68px);border-radius:0;border:0;min-height:360px}.tack-chat-app-head{height:68px}.tack-chat-app-head a{font-size:11px}.tc-visitor-body{padding:10px}}
@media(max-width:430px){.tack-chat-widget{bottom:12px;right:12px}.tack-chat-widget .tc-panel{right:0;height:min(600px,calc(100dvh - 90px));bottom:69px;width:calc(100vw - 24px)}.tack-chat-app-head{padding:0 12px}}
