.tlchat-admin,.tlchat-public{--tl-border:#d9dfe5;--tl-surface:#fff;--tl-soft:#f4f7fb;--tl-blue:#1a5fab;color:#1b2635;font-size:14px}.tlchat-admin button,.tlchat-public button{cursor:pointer;border:1px solid #cbd5df;padding:9px 12px;border-radius:7px;background:#fff;color:#18293c}.tlchat-admin button:disabled,.tlchat-public button:disabled{opacity:.5;cursor:default}.tlchat-toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:14px}.tlchat-tabs,.tlchat-options,.tlchat-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.tlchat-tabs .chosen,.tlchat-admin .tlchat-actions button:first-child,.tlchat-reply button,.tlchat-start button{background:#185c9b;color:white;border-color:#185c9b}.tlchat-options select,.tlchat-public select{padding:8px;border:1px solid var(--tl-border);border-radius:6px}.tlchat-columns{display:grid;grid-template-columns:minmax(175px,1fr) minmax(300px,2.3fr) minmax(180px,1fr);min-height:620px;gap:12px}.tlchat-conversations,.tlchat-panel,.tlchat-history{background:var(--tl-surface);border:1px solid var(--tl-border);border-radius:10px;min-width:0;padding:12px}.tlchat-conversations{overflow:auto;max-height:770px}.tlchat-thread{display:block;width:100%;margin-bottom:8px;text-align:left!important;line-height:1.6}.tlchat-thread.selected{background:#e9f2ff!important;border-color:#5f9bdf}.tlchat-thread small{display:block;color:#526278;overflow-wrap:anywhere}.tlchat-pill{display:inline-block;font-size:11px;border-radius:12px;padding:1px 7px;background:#e9edf2;margin-left:4px}.tlchat-pill.pending{background:#ffe4e2;color:#a51f1f;font-weight:bold}.tlchat-panel{display:flex;flex-direction:column;min-height:560px}.tlchat-panel-top{display:flex;align-items:start;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--tl-border);padding:3px 2px 12px}.tlchat-muted{color:#627286;font-size:12px;line-height:1.6}.tlchat-messages{flex:1;overflow:auto;min-height:260px;max-height:550px;padding:12px 4px;display:flex;flex-direction:column;gap:10px}.tlchat-message{max-width:88%;background:var(--tl-soft);border-radius:12px;padding:10px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.tlchat-message.out{align-self:end;background:#e7f0ff}.tlchat-message .tlchat-meta{font-size:11px;color:#627286;margin-bottom:3px}.tlchat-message .tlchat-original{border-top:1px solid #d5dbe2;padding-top:6px;margin-top:7px;color:#526278;font-size:12px}.tlchat-reply{display:flex;gap:8px}.tlchat-reply textarea{min-width:0;flex:1;resize:vertical;padding:10px;border:1px solid #bec9d4;border-radius:7px;font:inherit}.tlchat-tip{margin-top:7px}.tlchat-handoff{background:#fff0e2;border:1px solid #eeb878;padding:10px;margin-top:10px;border-radius:7px}.tlchat-history strong{display:block;margin-bottom:12px}.tlchat-history-item{padding:9px 0;border-bottom:1px solid var(--tl-border);overflow-wrap:anywhere}.tlchat-footer{margin-top:12px}.tlchat-public{max-width:850px;margin:26px auto 60px;background:#fff;border-radius:12px;border:1px solid #d7dce3;padding:22px;min-height:440px}.tlchat-public-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--tl-border);padding-bottom:15px;margin-bottom:16px}.tlchat-public h1{font-size:24px;margin:0 0 8px}.tlchat-public-head p{margin:0;color:#667}.tlchat-start{display:grid;gap:15px;max-width:560px;margin:30px auto}.tlchat-inline{display:flex;gap:26px}.tlchat-start input:not([type=radio]){padding:13px;border:1px solid #bbb;border-radius:6px;width:100%;box-sizing:border-box}.tlchat-start button{padding:12px}.tlchat-start small{color:#687788}.tlchat-public-status{font-weight:bold;color:#435; padding:8px 0}.tlchat-public .tlchat-messages{min-height:360px;max-height:520px}.tlchat-alert{min-height:20px;padding-top:12px;color:#a62b29}.tlchat-admin .tlchat-history button{width:100%;text-align:left}.tlchat-public .tlchat-message{color:#18293c}.tlchat-public .tlchat-message.out{background:#e7f0ff}
@media(max-width:980px){.tlchat-columns{grid-template-columns:220px minmax(0,1fr)}.tlchat-history{grid-column:1/-1}.tlchat-history-item{display:inline-block;width:45%;vertical-align:top;margin-right:2%}}@media(max-width:650px){.tlchat-columns{display:block}.tlchat-conversations{max-height:180px;margin-bottom:10px}.tlchat-panel{min-height:480px}.tlchat-history{margin-top:12px}.tlchat-history-item{width:100%}.tlchat-public{padding:12px;margin:12px auto}.tlchat-public h1{font-size:19px}.tlchat-messages{max-height:55vh}}

/* TopLimo unified black-and-gold palette (public chat and staff console). */
.tlchat-admin,.tlchat-public{
  --tl-border:#66502d;--tl-surface:#17171a;--tl-soft:#24211c;--tl-blue:#d9b45d;
  color:#f5ecda;color-scheme:dark;
}
.tlchat-public{background:linear-gradient(145deg,#1e1a14,#111215 55%,#181611);border-color:#796034;box-shadow:0 18px 44px #0006}
.tlchat-admin button,.tlchat-public button{background:#27221a;color:#f5dfae;border-color:#8c6c38;font-weight:600}
.tlchat-admin button:not(:disabled):hover,.tlchat-public button:not(:disabled):hover{background:#40301c;border-color:#f0c876}
.tlchat-tabs .chosen,.tlchat-admin .tlchat-actions button:first-child,.tlchat-reply button,.tlchat-start button{
  background:linear-gradient(115deg,#ffdfa0,#be8c38);color:#1c1408;border-color:#d6ac58;font-weight:750
}
.tlchat-tabs .chosen:hover,.tlchat-reply button:hover,.tlchat-start button:hover{background:linear-gradient(115deg,#ffe7b8,#cda04e)!important;color:#1c1408!important}
.tlchat-conversations,.tlchat-panel,.tlchat-history{background:#17171a;border-color:#66502d}
.tlchat-thread.selected{background:#423019!important;border-color:#e0b766!important}
.tlchat-thread small,.tlchat-muted,.tlchat-message .tlchat-meta,.tlchat-public-head p,.tlchat-start small{color:#c4b79c}
.tlchat-pill{background:#3d3426;color:#efd29d}
.tlchat-pill.pending{background:#5c251f;color:#ffd5cb}
.tlchat-message{background:#29251e;color:#f4e9d3}
.tlchat-message.out,.tlchat-public .tlchat-message.out{background:#49351e;color:#ffebc3}
.tlchat-public .tlchat-message{color:#f4e9d3}
.tlchat-message .tlchat-original{border-color:#695331;color:#cdbb9b}
.tlchat-public h1,.tlchat-history strong,.tlchat-public-status{color:#f1cf84}
.tlchat-public-head{border-color:#66502d}
.tlchat-options select,.tlchat-public select,.tlchat-start input:not([type=radio]),.tlchat-reply textarea{
  background:#0e1012;border:1px solid #796034;color:#f5edda;border-radius:8px
}
.tlchat-reply textarea:focus,.tlchat-start input:focus,.tlchat-options select:focus,.tlchat-public select:focus{outline:2px solid #e2bb69;outline-offset:1px}
.tlchat-reply textarea::placeholder,.tlchat-start input::placeholder{color:#a79a84}
.tlchat-handoff{background:#402917;border-color:#a78148;color:#f4d5a0}
.tlchat-alert{color:#ffaaa2}
.tlchat-panel-top{border-color:#66502d}
.tlchat-history-item{border-color:#5a462b}
.tlchat-public-status{font-weight:700}
.tlchat-admin button:disabled,.tlchat-public button:disabled{opacity:.48}
.tlchat-admin .tlchat-reply button:disabled{color:#1c1408}

/* Chat V2: attachment and two-way notification controls */
.tlchat-mute{font-size:12px!important;padding:6px 10px!important;white-space:nowrap}
.tlchat-public-status{display:inline-block;margin-right:12px}
.tlchat-upload{cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:40px;border-radius:8px;border:1px solid #8c6c38;color:#ffdc94;background:#30281d;font-size:22px}
.tlchat-attachment{margin-top:8px}.tlchat-attachment a{color:#f5ce7c!important;text-decoration:underline}.tlchat-attachment img{display:block;max-height:150px;max-width:100%;object-fit:contain;border-radius:6px;margin-top:6px}
.tlchat-public-conversation .tlchat-mute{margin-left:8px}

/* Compact customer chat: hidden start form must never override the HTML hidden attribute. */
.tlchat-public [hidden]{display:none!important}
.tlchat-public{max-width:1050px;margin:10px auto 18px;padding:12px 16px;min-height:0}
.tlchat-public-head{padding-bottom:8px;margin-bottom:8px;gap:8px}
.tlchat-public h1{font-size:clamp(18px,2vw,22px);margin:0 0 2px;line-height:1.25}
.tlchat-public-head p{font-size:11px;line-height:1.3}
.tlchat-public-head .tlchat-lang-label{font-size:12px;display:flex;align-items:center;gap:7px}
.tlchat-public-head select{padding:6px 8px;max-width:155px}
.tlchat-public-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:0 0 6px}
.tlchat-public .tlchat-close{font-size:12px;padding:6px 10px;color:#f3cc8d;border-color:#99734b}
.tlchat-public .tlchat-messages{height:clamp(400px,66vh,820px);min-height:400px;max-height:none;padding:8px 4px;gap:8px;overflow-y:auto;flex:none}
.tlchat-public .tlchat-message{padding:8px 10px}
.tlchat-public .tlchat-reply textarea{min-height:42px;max-height:145px;padding:8px 10px}
.tlchat-public .tlchat-reply{align-items:stretch;margin-top:5px}
.tlchat-public .tlchat-reply button{padding:7px 13px}
.tlchat-public .tlchat-alert{min-height:0;padding-top:3px}
.tlchat-public .tlchat-alert:empty{display:none}
.tlchat-public .tlchat-start{gap:10px;margin:12px auto}
@media(max-width:650px){.tlchat-public{padding:9px;margin:5px auto}.tlchat-public-head{align-items:center;flex-wrap:wrap}.tlchat-public-head p{display:none}.tlchat-public h1{font-size:18px}.tlchat-public .tlchat-messages{height:clamp(340px,62dvh,750px);min-height:340px}.tlchat-public-controls{margin-bottom:4px}.tlchat-public .tlchat-mute,.tlchat-public .tlchat-close{font-size:11px!important;padding:5px 7px!important}}

/* Optional staff translations: original message always remains visible. */
.tlchat-admin .tlchat-translation-fold{border-top:1px solid #695331;margin-top:7px;padding-top:6px;font-size:12px;color:#e6c785}
.tlchat-admin .tlchat-translation-fold summary{cursor:pointer;list-style:revert;user-select:none}
.tlchat-admin .tlchat-translation-result{white-space:pre-wrap;margin:7px 0;color:#f4e9d3}
.tlchat-admin .tlchat-translation-fold button{font-size:12px;padding:5px 9px;margin-top:5px}

.tlchat-upload-status{font-size:12px;color:#edc87c;padding:5px 0;min-height:0;overflow-wrap:anywhere}.tlchat-upload-status:empty{display:none}.tlchat-reply button.tlchat-upload{min-width:40px;padding:6px 9px;background:#30281d!important;color:#ffdc94!important;border-color:#8c6c38!important}.tlchat-reply button.tlchat-upload:disabled{opacity:.45}.tlchat-translation-fold[open] summary{margin-bottom:5px}

/* Guided business service: hide free text during AI self-service. */
.tlchat-service-menu{border:1px solid #806438;border-radius:12px;padding:14px;background:#181713;color:#f4dfb5;margin-bottom:12px}
.tlchat-menu-heading{font-size:18px;color:#efcb7f;font-weight:700;margin-bottom:12px}
.tlchat-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.tlchat-public .tlchat-menu-tile{display:flex;flex-direction:column;align-items:center;gap:7px;background:#282219;color:#f6e4c3;border:1px solid #76603e;padding:15px 7px;min-height:85px;text-align:center;line-height:1.35}
.tlchat-menu-tile:hover{background:#44351d}.tlchat-menu-icon{font-size:24px;color:#e8bb6b}
.tlchat-menu-detail{display:grid;gap:12px;max-width:620px}.tlchat-menu-detail h3{color:#f2cb81;margin:0}.tlchat-menu-detail label{display:grid;gap:6px;color:#e8cf9d}
.tlchat-menu-detail input,.tlchat-menu-detail select{background:#1b1b1b;color:#f4dfae;border:1px solid #866e42;border-radius:6px;padding:10px;width:100%;box-sizing:border-box}
.tlchat-public .tlchat-menu-back{text-align:left;width:max-content;font-size:12px}.tlchat-menu-result{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #4a3a24;padding:7px}.tlchat-menu-results{max-height:320px;overflow:auto}.tlchat-menu-results details{border-bottom:1px solid #67502c;padding:8px}
.tlchat-menu-link{display:inline-block;width:max-content;background:#b68b42;color:#16120b;padding:10px 17px;border-radius:7px;font-weight:700;text-decoration:none}
.tlchat-menu-note{font-size:12px;color:#c7b89a}.tlchat-service-feedback{color:#ead09f;margin-bottom:7px}
@media(max-width:650px){.tlchat-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tlchat-public .tlchat-menu-tile{font-size:12px;min-height:75px}.tlchat-public .tlchat-messages{height:clamp(190px,31dvh,460px);min-height:190px}}

.tlchat-public.tlchat-guided .tlchat-messages{height:180px;min-height:140px;max-height:220px}
@media(max-width:650px){.tlchat-public.tlchat-guided .tlchat-messages{height:135px;min-height:100px;max-height:150px}}

.tlchat-invite-entry{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(155deg,#ffe9ad,#d2a452);color:#18130b!important;border:1px solid #e6c17b;border-radius:8px;padding:10px 14px;text-decoration:none!important;font-weight:750;cursor:pointer;transition:transform .18s,box-shadow .18s,background .18s}.tlchat-invite-entry:hover{transform:translateY(-2px);background:linear-gradient(135deg,#fff1c5,#e2b35d);box-shadow:0 0 17px #d1a24b77}.tlchat-invite-entry:active{transform:translateY(0)}.tlchat-invite-entry:focus-visible{outline:2px solid #ffda8e;outline-offset:3px}
