/* Namespaced LSG support styles; original front templates and styles stay unchanged. */
.lsg-support-backend{margin:0;background:#f5f6f9;color:#222;font:15px/1.5 system-ui,-apple-system,"Microsoft YaHei",sans-serif} .lsg-support-backend *{box-sizing:border-box}.lsg-support-backend button{cursor:pointer}.lsg-support-backend button,.lsg-support-backend input,.lsg-support-backend select,.lsg-support-backend textarea{font:inherit}.lsg-support-backend button{border:0;border-radius:7px;background:#2365b5;color:white;padding:8px 13px}.lsg-support-backend button:disabled{opacity:.55;cursor:not-allowed}.lsg-support-backend a{color:#2365b5}.lsg-support-backend input,.lsg-support-backend textarea,.lsg-support-backend select{border:1px solid #d5dbe5;border-radius:7px;padding:9px;background:white;max-width:100%}.support-login{width:min(420px,93vw);margin:10vh auto;padding:26px;background:white;border-radius:14px;box-shadow:0 8px 30px #0001}.support-login form{display:grid;gap:12px}.support-login label{display:grid;gap:5px}.support-login input{width:100%}.support-bar{background:white;border-bottom:1px solid #e1e4ed;display:flex;justify-content:space-between;align-items:center;padding:12px clamp(12px,2vw,30px);gap:10px}.support-bar h1{font-size:22px;margin:0}.support-user{display:flex;align-items:center;gap:14px}.support-grid{display:grid;grid-template-columns:minmax(230px,320px) minmax(0,1fr);gap:12px;padding:12px;max-width:1400px;margin:auto;min-height:65vh}.support-queue,.support-chat,.support-management{background:white;border-radius:12px;min-width:0;padding:13px;border:1px solid #e6e9f0}.support-section-title{display:flex;align-items:center;justify-content:space-between;font-weight:600}.support-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0}.support-tabs button{background:#eef1f7;color:#36465c;padding:5px 9px}.support-tabs .selected{background:#2365b5;color:#fff}.support-list{overflow:auto;max-height:64vh}.support-item{padding:10px;margin:4px 0;background:#f8f9fc;border:1px solid #e8ebf1;border-radius:8px;cursor:pointer;width:100%;text-align:left;color:#222!important}.support-item.selected{border-color:#2365b5;background:#edf4ff}.support-item small{display:block;color:#667}.support-item .support-unread{background:#c52c2c;border-radius:10px;padding:1px 7px;color:white;margin-left:5px}.support-chat{display:flex;flex-direction:column}.support-chat-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px}.support-thread{flex:1;min-height:280px;max-height:58vh;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:12px 5px}.support-bubble{max-width:min(82%,550px);padding:10px 12px;border-radius:12px;background:#f0f2f6;white-space:pre-wrap;overflow-wrap:anywhere;align-self:flex-start}.support-bubble.staff{background:#e2efff;align-self:flex-end}.support-bubble small{display:block;color:#64748b;margin-bottom:4px}.support-reply{display:flex;gap:9px;align-items:flex-end}.support-reply textarea{flex:1;resize:vertical;min-width:0}.support-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}.support-actions label{display:flex;align-items:center;gap:6px}.support-actions button{background:#506178}.support-management{max-width:1376px;margin:4px auto 24px}.support-management form{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.support-management form label{display:grid;gap:3px}.support-agent-row{padding:9px;border-bottom:1px solid #eee;display:flex;gap:9px;flex-wrap:wrap;align-items:center}.support-agent-row button{background:#536579}.support-chat #support-action-note{color:#9a3412;min-height:20px}
@media(max-width:680px){.support-bar{flex-wrap:wrap}.support-grid{grid-template-columns:1fr;min-height:0}.support-list{max-height:210px}.support-thread{min-height:220px;max-height:45vh}.support-management{margin:12px}.support-user{flex-wrap:wrap}.support-reply{align-items:stretch}.support-reply button{min-width:70px}}


#lsg-support-button{position:fixed;right:max(14px,env(safe-area-inset-right,0px));bottom:var(--lsg-support-bottom,76px);z-index:1200;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;max-width:calc(100vw - 28px);border:0;border-radius:26px;padding:9px 15px;background:#2365b5;color:#fff;box-shadow:0 5px 16px #0004;font:600 14px/1.4 system-ui,"Microsoft YaHei",sans-serif;cursor:pointer;white-space:nowrap}
#lsg-support-button svg{flex:none;display:block}
#lsg-support-button:focus-visible,#lsg-support-popup button:focus-visible,#lsg-support-popup textarea:focus-visible{outline:3px solid #e8b34d;outline-offset:2px}
#lsg-support-unread{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#d22f36;color:#fff;font-size:11px;font-weight:700}
#lsg-support-unread[hidden]{display:none}
#lsg-support-popup{position:fixed;right:max(12px,env(safe-area-inset-right,0px));bottom:calc(var(--lsg-support-bottom,76px) + 56px);z-index:1201;width:min(360px,calc(100vw - 24px));height:min(480px,calc(100dvh - var(--lsg-support-bottom,76px) - 68px));min-height:0;background:#fff;color:#202936;border-radius:15px;box-shadow:0 12px 40px #0004;overflow:hidden;display:flex;flex-direction:column;font:14px/1.5 system-ui,"Microsoft YaHei",sans-serif}
#lsg-support-popup[hidden]{display:none}
#lsg-support-popup *{box-sizing:border-box}
#lsg-support-popup header{display:flex;align-items:center;justify-content:space-between;flex:none;padding:10px 12px;background:#2365b5;color:#fff;font-weight:600}
#lsg-support-popup header button{border:0;background:transparent;color:inherit;font-size:23px;cursor:pointer;min-height:32px;min-width:32px}
#lsg-support-status{padding:6px 12px;font-size:12px;color:#59697c;background:#f2f5fa;flex:none}
#lsg-support-history{flex:1;min-height:0;overflow:auto;padding:12px;display:flex;gap:9px;flex-direction:column;overscroll-behavior:contain}
#lsg-support-history .support-bubble{max-width:88%}
#lsg-support-form{display:flex;gap:6px;border-top:1px solid #e4e8ef;padding:9px;flex:none;background:#fff}
#lsg-support-form textarea{flex:1;min-width:0;min-height:38px;max-height:100px;border:1px solid #cbd5e1;border-radius:7px;resize:vertical;padding:7px;font:inherit}
#lsg-support-form button{border:0;background:#2365b5;color:white;border-radius:7px;padding:8px 12px;cursor:pointer}
#lsg-support-form button:disabled{opacity:.5}
/* Cursor paging keeps older messages available in both support interfaces. */
.support-older,#lsg-support-older{display:block;margin:7px auto;padding:6px 12px;border-radius:7px;border:1px solid #cbd5e1;background:#f8fafc;color:#23508d;font:inherit;cursor:pointer}
.support-older[hidden],#lsg-support-older[hidden]{display:none}
#lsg-support-older{margin:6px auto 0;flex:0 0 auto;font-size:12px}
@media(max-width:480px){#lsg-support-button{right:max(12px,env(safe-area-inset-right,0px))}#lsg-support-popup{right:max(8px,env(safe-area-inset-right,0px));width:calc(100vw - 16px);border-radius:13px}}
@media(max-height:410px){#lsg-support-popup{bottom:6px;height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}#lsg-support-button[aria-expanded="true"]{visibility:hidden;pointer-events:none}}

#lsg-support-button{min-height:45px;padding:8px 13px;border-radius:25px;background:var(--t-primary,#215fb2);border:1px solid #ffffff55;box-shadow:0 5px 18px #152a4455;font-weight:600;letter-spacing:.2px}
#lsg-support-button svg{width:20px;height:20px}#lsg-support-button:active{transform:translateY(1px)}
#lsg-support-popup{box-shadow:0 14px 55px #11233a44;border:1px solid #dce3ed}
#lsg-support-popup header{background:var(--t-primary,#215fb2);padding:12px 14px}
#lsg-support-form{align-items:flex-end;gap:8px;padding:10px}
#lsg-support-form button{min-height:39px;padding:8px 15px;border-radius:10px;background:var(--t-primary,#215fb2)}
#lsg-support-form textarea{resize:none;border-radius:10px;min-height:39px;background:#f7f9fc}
.lsg-support-attach,.support-image-pick{display:inline-flex;align-items:center;justify-content:center;width:38px;min-width:38px;height:39px;border:1px solid #dbe3ef;border-radius:10px;cursor:pointer;background:#f7f9fc;color:#355578}
.lsg-support-attach:hover,.support-image-pick:hover{background:#e9f1fc}
.lsg-support-attach:has(input:disabled),.support-image-pick:has(input:disabled){opacity:.45;cursor:not-allowed}
.support-chat-image{display:block;max-width:min(235px,70vw);max-height:245px;object-fit:contain;border-radius:9px;background:#eef2f7;cursor:zoom-in}
.support-bubble.has-image{padding:7px}.support-bubble.has-image>div{line-height:0}
.lsg-support-backend{background:#f3f6fb;color:#243447;font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif}
.lsg-support-backend button{transition:background .15s ease,border-color .15s ease}
.support-bar{padding:17px clamp(16px,3vw,38px);background:#fff;box-shadow:0 1px 0 #e5ebf3}
.support-bar h1{font-size:20px;letter-spacing:.2px;color:#1e344f}
.support-bar small{color:#708098}.support-user{font-size:13px}.support-user span{color:#475569}
.support-grid{max-width:1510px;grid-template-columns:minmax(280px,350px) minmax(0,1fr);gap:16px;padding:18px;min-height:calc(100vh - 94px)}
.support-queue,.support-chat,.support-management{border:1px solid #e3eaf4;border-radius:14px;box-shadow:0 6px 22px #1230460a}
.support-queue{padding:16px;display:flex;flex-direction:column;min-height:0}
.support-section-title{font-size:16px;color:#273950}.support-section-title small{font-size:12px;font-weight:500;color:#71829b;margin-left:6px}
.support-section-title button{background:#eef3fa;color:#37526e;font-size:12px;padding:6px 11px}
.support-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:15px 0 12px}
.support-tabs button{font-size:12px;padding:9px 3px;border-radius:7px;font-weight:600}
.support-tabs .selected{background:#1f65b6}
.support-filters{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:7px;margin-bottom:10px}
.support-filters input,.support-filters select{font-size:12px;padding:9px 7px;min-width:0;border-radius:8px}
.support-list{flex:1;min-height:220px;max-height:calc(100vh - 272px);padding:2px 1px 10px}
.support-item{border:1px solid #e7edf5;background:#fff;padding:11px 12px;margin:4px 0 8px;border-radius:10px}
.support-item:hover{border-color:#9abce8;background:#f7faff}.support-item.selected{background:#eef5ff;border-color:#7ca9df;box-shadow:0 0 0 1px #7ca9df22}
.support-item-head,.support-item-line{display:flex;align-items:center;justify-content:space-between;gap:6px}
.support-item-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:65%;font-size:14px}
.support-site-tag{font-size:11px;color:#47729b;background:#eef5fd;padding:2px 7px;border-radius:9px;white-space:nowrap}
.support-item-line{justify-content:flex-start;gap:8px;margin:7px 0 5px}
.support-status-chip{border-radius:6px;background:#e8f1fd;color:#2465ae;padding:2px 6px;font-size:11px}
.support-status-chip.pending{background:#fff3dd;color:#a26816}.support-status-chip.closed{background:#eef0f3;color:#687583}
.support-item-owner{font-size:12px;color:#7d8a9c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.support-item small{font-size:11px;color:#93a0b1}
.support-empty{text-align:center;color:#8a98ab;padding:38px 4px}
.support-chat{padding:0;overflow:hidden}.support-chat-heading{padding:17px 19px;background:#fff;border-bottom:1px solid #e9edf4;min-height:76px;align-items:center}
.support-chat-heading strong{font-size:16px;color:#253b53}.support-chat-heading #support-current-meta{font-size:12px;color:#8290a2;margin-top:5px}
.support-secure{background:#eff9f3;color:#41845d;border:1px solid #d7efdf;padding:5px 9px;border-radius:20px;font-size:11px;white-space:nowrap}
.support-thread{padding:15px 22px;background:#f8fafd;max-height:none;min-height:330px;height:calc(100vh - 368px);gap:12px}
.support-bubble{box-shadow:0 1px 4px #0000000a;line-height:1.55;border:1px solid #edf0f4;background:white}
.support-bubble.staff{background:#dfeeff;border-color:#c8e1ff}
.support-reply{border-top:1px solid #e6ecf4;padding:12px 15px;align-items:center;gap:8px;background:#fff}
.support-reply textarea{min-height:48px;resize:vertical;max-height:125px;border-radius:10px;background:#fbfcfe}
.support-reply button{min-height:42px;background:#1f65b6;white-space:nowrap}
.support-actions{padding:10px 16px 4px;border-top:1px solid #eef2f7;margin-top:0;gap:8px}
.support-actions button{font-size:12px;padding:7px 10px;background:#edf2f8;color:#3c5572}
.support-actions button[data-task=claim]{background:#1f65b6;color:#fff}
.support-actions button[data-task=close]{background:#fff3f1;color:#ac4a4a}
.support-actions select{font-size:12px;padding:7px 10px}.support-chat #support-action-note{min-height:18px;padding:0 16px;margin:5px 0 10px;font-size:12px}
.support-management{margin:4px 18px 26px;padding:17px 19px}.support-management h2{margin:0;font-size:18px}.support-management p{font-size:12px;color:#7a899c}
.support-agent-row{font-size:13px}.support-agent-row button{font-size:12px;padding:6px 9px}
@media(max-width:820px){.support-grid{grid-template-columns:minmax(235px,300px) minmax(0,1fr);gap:10px;padding:10px}.support-secure{display:none}.support-actions{gap:6px}.support-filters{grid-template-columns:1fr}.support-reply{flex-wrap:wrap}.support-reply textarea{flex:1 1 120px}}
@media(max-width:680px){.support-grid{display:flex;flex-direction:column;padding:8px;gap:10px}.support-queue{min-height:0}.support-tabs{margin:10px 0}.support-filters{grid-template-columns:1fr 130px}.support-list{max-height:195px;min-height:70px}.support-chat-heading{padding:12px 14px;min-height:60px}.support-thread{height:40vh;min-height:240px;max-height:48vh;padding:12px}.support-reply{padding:9px;flex-wrap:nowrap}.support-reply textarea{min-height:42px}.support-reply button{padding:8px}.support-management{margin:8px}.support-bar{padding:11px 14px}.support-bar h1{font-size:18px}}
@media(max-width:350px){#lsg-support-label{font-size:12px}#lsg-support-button{padding:8px 10px}.support-filters{grid-template-columns:1fr}.support-tabs button{font-size:11px}}

/* Retention: preserved conversation metadata, but image bytes have expired. */
.support-bubble .support-image-expired{color:#64748b;background:#f3f5f8;padding:7px 9px;border-radius:7px;font-size:12px;font-style:italic}





#lsg-support-button{
    background:var(--t-surface,#fff);
    color:var(--t-text-strong,#1f2937);
    border:1px solid var(--t-divider-strong,#e7e7e7);
    border-radius:999px;
    padding:8px 13px 8px 10px;
    min-height:46px;
    gap:7px;
    font-size:13px;
    font-weight:700;
    letter-spacing:0;
    box-shadow:0 3px 11px #00000024,0 1px 3px #00000012;
    transition:box-shadow .18s ease,background .18s ease;
}
#lsg-support-button:hover{background:var(--t-surface,#fff);box-shadow:0 5px 18px #0000002b}
#lsg-support-button:active{transform:translateY(1px)}
#lsg-support-button .lsg-support-launcher-icon{
    width:26px;height:26px;min-width:26px;display:inline-flex;align-items:center;justify-content:center;
    border-radius:50%;background:transparent;flex-shrink:0;
}
#lsg-support-button .lsg-support-launcher-icon svg{width:23px;height:23px;display:block}
#lsg-support-button .lsg-support-launcher-icon:after{border-color:#07c160}
#lsg-support-popup{
    color:var(--t-text,#374151);background:var(--t-surface,#fff);
    border:1px solid var(--t-divider-strong,#e5e7eb);
    border-radius:var(--t-block-radius,12px);
    box-shadow:0 8px 24px #00000026,0 2px 7px #0000001c;
    max-width:calc(100vw - 24px);
}
#lsg-support-popup header{
    background:var(--t-subheader-bg,var(--t-primary-dark,#bd8600));
    color:var(--t-subheader-fg,#fff);
    text-shadow:var(--t-on-primary-shadow,none);
    padding:11px 13px;
    min-height:48px;
    border:0;
}
#lsg-support-popup header #lsg-support-title{font-size:15px;font-weight:700}
#lsg-support-popup header button{font-size:24px;line-height:1;text-shadow:none}
#lsg-support-status{
    background:var(--t-surface-2,#f9fafb);color:var(--t-text-muted,#6b7280);
    border-bottom:1px solid var(--t-divider-strong,#e5e7eb);
    padding:7px 12px;
}
#lsg-support-history{background:var(--t-page-bg,#f9fafb);padding:13px 11px}
#lsg-support-history .support-bubble{
    color:var(--t-text-strong,#111827);background:var(--t-surface,#fff);
    border:1px solid var(--t-border,#e5e7eb);border-radius:11px;
    padding:9px 11px;box-shadow:0 1px 2px #0000000a;
    font-size:13px;line-height:1.55;
}
#lsg-support-history .support-bubble.staff{
    background:var(--t-surface-2,#f3f4f6);
    border-color:var(--t-divider-strong,#e5e7eb);
}
#lsg-support-history .support-bubble small{font-size:11px;color:var(--t-text-muted,#6b7280)}
#lsg-support-history .support-bubble.has-image{padding:6px}
#lsg-support-form{background:var(--t-surface,#fff);border-top:1px solid var(--t-divider-strong,#e5e7eb)}
#lsg-support-form textarea{
    color:var(--t-text-strong,#111827);background:var(--t-surface,#fff);
    border:1px solid var(--t-divider-strong,#d1d5db);border-radius:8px;
}
#lsg-support-form button[type="submit"]{
    background:var(--t-primary-dark,var(--t-primary,#bd8600));
    color:#fff;border-radius:8px;font-weight:600;
}
#lsg-support-form .lsg-support-attach{
    background:var(--t-surface,#fff);color:var(--t-primary-dark,#8a5a00);
    border:1px solid var(--t-divider-strong,#e5e7eb);border-radius:8px;
}
#lsg-support-older{
    color:var(--t-primary-dark,#8a5a00);background:var(--t-surface,#fff);
    border-color:var(--t-divider-strong,#d1d5db);
}
@media(max-width:480px){
    #lsg-support-button{min-height:44px;padding:8px 11px 8px 9px}
    #lsg-support-popup{border-radius:var(--t-block-radius,9px)}
}
@media(prefers-reduced-motion:reduce){
    #lsg-support-button .lsg-support-launcher-icon{animation:none!important}
    #lsg-support-button .lsg-support-launcher-icon:after{animation:none!important;display:none!important}
}
/* The captured site's compiled Tailwind reset uses deliberately high-specificity
   selectors for all button/input/textarea elements. Override those resets ONLY
   inside the online-support UI, otherwise a styled launcher becomes raw text. */
#lsg-support-button{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    background:var(--t-surface,#fff)!important;
    color:var(--t-text-strong,#1f2937)!important;
    border:1px solid var(--t-divider-strong,#e5e7eb)!important;
    border-radius:999px!important;padding:8px 13px 8px 10px!important;
    font:700 13px/1.35 system-ui,"Microsoft YaHei",sans-serif!important;
    box-shadow:0 3px 11px #00000024,0 1px 3px #00000012!important;
}
#lsg-support-popup{border:1px solid var(--t-divider-strong,#e5e7eb)!important}
#lsg-support-popup header{padding:11px 13px!important}
#lsg-support-popup header button{
    min-height:32px!important;min-width:32px!important;
    background:transparent!important;border:0!important;color:inherit!important;
    font-size:24px!important;cursor:pointer!important;
}
#lsg-support-form{
    padding:10px!important;gap:8px!important;
    border-top:1px solid var(--t-divider-strong,#e5e7eb)!important;
}
#lsg-support-form textarea{
    background:var(--t-surface,#fff)!important;
    border:1px solid var(--t-divider-strong,#e5e7eb)!important;
    color:var(--t-text-strong,#111827)!important;
    border-radius:8px!important;
    padding:8px 9px!important;
    font:14px/1.4 system-ui,"Microsoft YaHei",sans-serif!important;
    min-height:39px!important;
}
#lsg-support-form button[type="submit"]{
    background:var(--t-primary-dark,#bd8600)!important;
    color:#fff!important;border:0!important;border-radius:8px!important;
    padding:8px 13px!important;min-height:39px!important;
    font:600 13px/1.4 system-ui,"Microsoft YaHei",sans-serif!important;
}
#lsg-support-form .lsg-support-attach{
    border:1px solid var(--t-divider-strong,#e5e7eb)!important;
    border-radius:8px!important;
}
#lsg-support-older{
    background:var(--t-surface,#fff)!important;
    color:var(--t-primary-dark,#bd8600)!important;
    border:1px solid var(--t-divider-strong,#e5e7eb)!important;
}
@media(max-width:480px){#lsg-support-button{padding:8px 11px 8px 9px!important}}
