:root{--text:#182235;--muted:#5b6474;--bg:#f4f7fb;--panel:#fff;--line:#e2e8f0;--line-strong:#cbd5e1;--team:#eef2f7;--danger:#b42318;--danger-soft:#fef1f1;--sc-accent:#2563eb;--sc-on-accent:#fff;--sc-accent-hover:#2157cf;--sc-accent-text:#2563eb;--sc-accent-border:#2563eb;--sc-accent-soft:#e9effd;--sc-font:system-ui,-apple-system,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;font-family:var(--sc-font);color:var(--text);background:var(--bg);font-synthesis:none;-webkit-font-smoothing:antialiased;font-size:15px;line-height:1.55}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;background:var(--sc-accent);color:var(--sc-on-accent);border:1px solid var(--sc-accent-border);border-radius:10px;padding:10px 18px;font-weight:600;line-height:1.3;transition:background-color .12s}button:not(:disabled):hover{background:var(--sc-accent-hover)}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--sc-accent-border);outline-offset:2px}label{color:var(--text);font-size:13px;font-weight:600;display:block}input,select,textarea{border:1px solid var(--line-strong);background:#fff;border-radius:10px;width:100%;margin-top:6px;padding:10px 12px;font-size:15px;font-weight:400;display:block}input:focus,select:focus,textarea:focus{border-color:var(--sc-accent-border);box-shadow:0 0 0 3px var(--sc-accent-soft);outline:none}textarea{resize:vertical;min-height:96px;line-height:1.55}select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6474' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center no-repeat;padding-right:34px}.visually-hidden{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;position:absolute!important}.customer-shell{flex-direction:column;min-height:100vh;display:flex}.customer-shell>header{background:var(--panel);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:12px max(16px,50vw - 380px);display:flex}.customer-brand{align-items:center;gap:12px;min-width:0;display:flex}.customer-avatar{background:var(--sc-accent);width:40px;height:40px;color:var(--sc-on-accent);border-radius:50%;flex:none;place-items:center;font-size:17px;font-weight:700;display:grid}.customer-brand>div{min-width:0}.customer-mark{text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:700;display:block;overflow:hidden}.customer-brand p{color:var(--muted);margin:2px 0 0;font-size:13px}.customer-locale{color:var(--muted);white-space:nowrap;align-items:center;gap:8px;font-size:12px;font-weight:500;display:flex}.customer-locale select{border-radius:8px;width:auto;margin:0;padding:6px 30px 6px 10px;font-size:13px}.after-hours{color:#6b4500;background:#fff7e6;border-bottom:1px solid #f0d9a8;margin:0;padding:10px max(16px,50vw - 380px);font-size:14px}.customer-shell main{flex:1;width:100%;max-width:760px;margin:0 auto;padding:24px 16px 32px}.customer-title{margin-bottom:16px}.customer-title h1{letter-spacing:-.01em;margin:0 0 4px;font-size:22px;line-height:1.3}.customer-title p{color:var(--muted);overflow-wrap:anywhere;margin:0;font-size:14px}.customer-error{background:var(--danger-soft);color:var(--danger);border:1px solid #f6caca;border-radius:10px;margin:0 0 16px;padding:12px 14px;font-size:14px}.customer-shell main>section[aria-label]{background:var(--panel);border:1px solid var(--line);border-radius:14px;justify-items:start;gap:12px;margin:0 0 16px;padding:16px;display:grid}.customer-shell main>section[aria-label] p{margin:0}.start-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;gap:16px;padding:20px;display:grid;box-shadow:0 1px 2px #0f172a0a}.start-card button{justify-self:start;padding:11px 22px}.customer-tools{background:var(--panel);border:1px solid var(--line);border-radius:14px;flex-wrap:wrap;align-items:flex-end;gap:10px 12px;margin-bottom:12px;padding:12px 14px;display:flex}.customer-tools label{min-width:0;color:var(--muted);flex:180px;font-size:12px}.customer-tools select{color:var(--text);padding-top:8px;padding-bottom:8px;font-size:14px}.customer-tools [role=status],.customer-tools [role=note]{background:var(--team);height:34px;color:var(--text);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:0 10px;font-size:12px;display:inline-flex}.customer-tools .conn:before{content:"";background:#16a34a;border-radius:50%;width:7px;height:7px}.customer-tools .conn.off:before{background:#b42318}.identity-details{background:var(--panel);border:1px solid var(--line);border-radius:14px;margin:0 0 12px;padding:0}.identity-details summary{cursor:pointer;color:var(--text);padding:12px 14px;font-size:14px;font-weight:600;list-style-position:inside}.identity-details[open] summary{border-bottom:1px solid var(--line)}.customer-identity{gap:12px;padding:14px;display:grid}.customer-identity form{gap:12px;display:grid}.customer-identity p{overflow-wrap:anywhere;margin:0;font-size:14px}.customer-identity input,.customer-identity select{width:100%;min-width:0;max-width:100%}.customer-identity button{white-space:normal;justify-self:start;max-width:100%}.identity-help{color:var(--muted);font-size:13px}.customer-identity [role=alert]{color:var(--danger)}.customer-identity [role=status]{color:var(--text)}.customer-messages{background:var(--panel);border:1px solid var(--line);border-radius:16px;flex-direction:column;gap:12px;max-height:min(560px,60vh);margin:0 0 12px;padding:16px;list-style:none;display:flex;overflow:auto}.customer-messages:empty{border:0;margin:0;padding:0}.customer-messages li{background:var(--team);min-width:120px;max-width:82%;color:var(--text);border-radius:16px;gap:4px;padding:10px 14px;display:grid}.customer-messages .from-team{border-bottom-left-radius:4px;align-self:flex-start}.customer-messages .from-customer{background:var(--sc-accent);color:var(--sc-on-accent);border-bottom-right-radius:4px;align-self:flex-end}.customer-messages li>span{font-size:12px;font-weight:600}.customer-messages p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:15px;line-height:1.6}.customer-messages time{justify-self:end;font-size:11px}.customer-messages .from-customer button,.customer-messages .from-customer button:not(:disabled):hover{background:var(--sc-on-accent);color:var(--sc-accent);border-color:var(--sc-on-accent)}.customer-messages li button{justify-self:start;padding:6px 12px;font-size:13px}.customer-messages .queued{background:var(--sc-accent-soft);color:var(--text);border:1px dashed var(--sc-accent-border)}.customer-messages .queued small{color:var(--text);font-size:12px;display:block}.customer-attachment-preview{object-fit:contain;border-radius:10px;max-width:100%;max-height:240px;display:block}.customer-empty{text-align:center;color:var(--muted);background:var(--panel);border:1px dashed var(--line-strong);border-radius:16px;margin:0 0 12px;padding:32px 16px;font-size:14px}.quiet-button{border:1px solid var(--line-strong);color:var(--sc-accent-text);background:0 0;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600}.quiet-button:not(:disabled):hover{background:var(--sc-accent-soft)}.customer-messages+.customer-empty{margin-top:0}.customer-composer{background:var(--panel);border:1px solid var(--line);border-radius:16px;gap:10px;padding:14px;display:grid;box-shadow:0 1px 2px #0f172a0a}.customer-composer:focus-within{border-color:var(--sc-accent-border)}.customer-composer>label{color:var(--muted);font-size:12px}.customer-composer textarea{border-radius:12px}.customer-composer>div:last-child{justify-content:space-between;align-items:center;gap:12px;display:flex}.customer-composer>div:last-child>span{color:var(--muted);font-size:12px}.customer-composer button[type=submit]{padding:10px 20px}.customer-attachments{width:100%;min-width:0}.customer-file{border:1px solid var(--line-strong);color:var(--sc-accent-text);cursor:pointer;background:#fff;border-radius:999px;align-items:center;gap:6px;padding:6px 12px;font-size:13px;font-weight:600;display:inline-flex}.customer-file:hover{background:var(--sc-accent-soft)}.customer-file:focus-within{outline:2px solid var(--sc-accent-border);outline-offset:2px}.customer-file:has(input:disabled){opacity:.5;cursor:not-allowed}.customer-attachments ul{gap:6px;margin:8px 0 0;padding:0;list-style:none;display:grid}.customer-attachments ul:empty{display:none}.customer-attachments li{border:1px solid var(--line);overflow-wrap:anywhere;border-radius:10px;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 10px;font-size:13px;display:flex}.customer-attachments li button{color:var(--sc-accent-text);border-color:var(--line-strong);background:#fff;padding:4px 10px;font-size:12px}.customer-attachments li button:not(:disabled):hover{background:var(--sc-accent-soft)}.customer-attachments progress{min-width:60px;height:6px;accent-color:var(--sc-accent);flex:1}.customer-attachments [role=alert]{color:var(--danger);margin:6px 0 0;font-size:13px}.customer-footer{flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0;display:flex}.customer-shell main>p[role=note]{background:var(--sc-accent-soft);color:var(--text);border-radius:10px;margin:0 0 12px;padding:10px 14px;font-size:14px}.customer-reference{background:var(--panel);border:1px solid var(--line);border-radius:14px;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px 10px;min-width:0;margin-top:4px;padding:12px 14px;display:grid}.customer-reference label{color:var(--muted);font-size:12px}.customer-reference input{background:var(--bg);max-width:280px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px}.customer-reference p{color:var(--muted);overflow-wrap:anywhere;grid-column:1/-1;margin:0;font-size:12px}.customer-reference button{margin-bottom:2px}.frame-loading{font:14px var(--sc-font);padding:24px}body:has(.frame-loading){margin:0}@media (width<=600px){.customer-shell main{padding:16px 12px 24px}.customer-title h1{font-size:20px}.customer-messages{max-height:none;padding:12px}.customer-messages li{max-width:90%}.customer-composer>div:last-child{align-items:flex-end}.customer-composer>div:last-child>span{max-width:150px}.customer-locale{gap:0;font-size:0}.customer-locale select{font-size:13px}}.smartcs-frame body,.smartcs-frame{background:var(--bg)}.smartcs-frame{scroll-padding-bottom:150px}.smartcs-frame .customer-composer .customer-draft-note{display:none}.smartcs-frame .customer-shell{min-height:0}.smartcs-frame .customer-shell>header{gap:8px;padding:8px 12px}.smartcs-frame .customer-brand{display:none}.smartcs-frame .customer-shell>header{justify-content:flex-end}.smartcs-frame .customer-locale{gap:0;font-size:0}.smartcs-frame .customer-locale select{background-position:right 8px center;padding:4px 26px 4px 8px;font-size:12px}.smartcs-frame .after-hours{padding:8px 12px;font-size:13px}.smartcs-frame .customer-shell main{max-width:none;margin:0;padding:12px 12px 200px}.smartcs-frame .customer-title{flex-wrap:wrap;align-items:baseline;gap:8px;margin-bottom:10px;display:flex}.smartcs-frame .customer-title h1{margin:0;font-size:15px}.smartcs-frame .customer-title p{font-size:13px}.smartcs-frame .start-card{padding:16px}.smartcs-frame .customer-shell>footer{display:none}.smartcs-frame input,.smartcs-frame select,.smartcs-frame textarea{min-width:0;max-width:100%}.smartcs-frame .customer-tools{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px;margin-bottom:8px;padding:10px;display:grid}.smartcs-frame .customer-tools label{min-width:0;font-size:11px}.smartcs-frame .customer-tools select{background-position:right 9px center;margin-top:4px;padding:6px 28px 6px 10px;font-size:13px}.smartcs-frame .customer-tools [role=status],.smartcs-frame .customer-tools [role=note]{justify-self:start;height:26px;font-size:11.5px}.smartcs-frame .identity-details{border-radius:12px;margin-bottom:8px}.smartcs-frame .identity-details summary{padding:8px 12px;font-size:13px}.smartcs-frame .customer-footer{margin:8px 0}.smartcs-frame .customer-reference{padding:10px 12px}.smartcs-frame .customer-messages{background:0 0;border:0;max-height:none;padding:10px}.smartcs-frame .customer-messages li{min-width:0;max-width:92%}.smartcs-frame .identity-details,.smartcs-frame .customer-identity{min-width:0}.smartcs-frame .customer-composer{z-index:2;border:0;border-top:1px solid var(--line);border-radius:0;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:8px 12px;display:grid;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -6px 16px #0f172a0f}.smartcs-frame .customer-composer>label{min-width:0}.smartcs-frame .customer-composer textarea{resize:vertical;height:48px;min-height:48px;margin-top:4px;padding:6px 10px;font-size:14px}.smartcs-frame .customer-composer>.customer-attachments{grid-column:1/-1;margin:0}.smartcs-frame .customer-composer .customer-file{padding:3px 10px;font-size:12px}.smartcs-frame .customer-composer>div:last-child{flex-direction:column;grid-area:1/2;justify-content:end;align-items:end;gap:4px;margin:0}.smartcs-frame .customer-composer>div:last-child>span{overflow-wrap:anywhere;min-width:0;max-width:82px;font-size:11px}.smartcs-frame .customer-composer>div:last-child button{white-space:nowrap;padding:8px 12px;font-size:13px}.smartcs-frame .customer-footer>span{overflow-wrap:anywhere}@media (width<=360px){.smartcs-frame .customer-tools{grid-template-columns:minmax(0,1fr)}.smartcs-frame .customer-composer{grid-template-columns:minmax(0,1fr);gap:2px;padding:4px 8px}.smartcs-frame .customer-composer>label{grid-area:1/1}.smartcs-frame .customer-composer textarea{height:36px;min-height:36px}.smartcs-frame .customer-composer>.customer-attachments{grid-area:2/1}.smartcs-frame .customer-composer>div:last-child{flex-direction:row;grid-area:3/1;justify-content:space-between;align-items:center}.smartcs-frame .customer-composer>div:last-child>span{flex:1;max-width:none;line-height:1.2}.smartcs-frame .customer-composer>div:last-child button{flex:none}.smartcs-frame .customer-composer .customer-draft-note{display:none}.smartcs-frame .customer-composer .customer-file{padding:2px 8px;font-size:11px}}@media (prefers-reduced-motion:reduce){*{transition:none!important}}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.chat-bar{align-items:center;gap:8px;min-height:38px;margin:0 0 10px;display:flex}.chat-subject{min-width:0;color:var(--text);white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:14px;font-weight:600;overflow:hidden}.chat-case:not(.sr-only){flex:1;min-width:0}.chat-case select{border-radius:10px;margin:0;padding:7px 30px 7px 10px;font-size:13px}.chat-bar .conn.off{color:#a8071a;white-space:nowrap;background:#fff1f0;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:12px;font-weight:600;display:inline-flex}.more-button{border:1px solid var(--line-strong);background:var(--panel);width:36px;height:36px;color:var(--text);box-shadow:none;border-radius:50%;flex:none;place-items:center;margin-left:auto;padding:0;font-size:20px;line-height:1;display:inline-grid}.more-button:not(:disabled):hover,.more-button[aria-expanded=true]{background:var(--sc-accent-soft);border-color:var(--sc-accent-border);color:var(--sc-accent-text)}.chat-more{background:var(--panel);border:1px solid var(--line);border-radius:14px;gap:10px;margin:0 0 12px;padding:12px;display:grid}.chat-more[hidden]{display:none!important}.chat-more-actions{flex-wrap:wrap;gap:8px;display:flex}.chat-more .identity-details,.chat-more .customer-reference{margin:0}.chat-more-field{color:var(--muted);gap:4px;font-size:12px;display:grid}.chat-more-field select{border-radius:10px;margin:0;padding:7px 30px 7px 10px;font-size:13px}.chat-more .customer-locale{justify-self:start}.human-row{flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 10px;display:flex}.human-row p[role=note]{color:var(--muted);margin:0;font-size:13px}.human-button{padding:5px 12px;font-size:12.5px}.customer-composer>label{grid-area:1/1;min-width:0}.customer-composer textarea{field-sizing:content;resize:none;min-height:44px;max-height:180px;margin:0}.customer-composer>.customer-attachments{grid-area:2/1/auto/-1;margin:0}.customer-composer>div:last-child{flex-direction:column;grid-area:1/2;justify-content:end;align-items:end;gap:4px}.customer-composer .customer-count{color:var(--muted);font-size:11px}.customer-shell>footer{text-align:center;color:var(--muted);padding:6px 16px 10px;font-size:11px}.smartcs-frame .customer-shell>header{display:none}.smartcs-frame .chat-bar{min-height:34px;margin-bottom:6px}.smartcs-frame .chat-more{border-radius:12px;padding:10px}.smartcs-frame .human-row{margin-bottom:6px}.start-card{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px}.start-hello{grid-column:1/-1;margin:0;font-size:16px;font-weight:600}.start-card input{margin:0}.start-card button{justify-self:stretch}.chat-bar .human-button{white-space:nowrap;flex:none}.human-note{color:var(--muted);margin:0 0 8px;font-size:13px}.customer-shell main>p.human-note{background:0 0;padding:0}.customer-empty{background:0 0;border:0;padding:20px 12px}.customer-composer{grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:6px 8px;padding:8px 10px}.customer-composer>label{grid-area:1/2}.customer-composer textarea{border-radius:20px;min-height:40px;padding:8px 12px}.customer-composer>.customer-attachments{display:contents}.customer-composer .customer-file{width:40px;height:40px;color:var(--muted);border-radius:50%;grid-area:1/1;justify-content:center;padding:0}.customer-composer .customer-file:hover{color:var(--sc-accent-text)}.customer-composer .customer-attachments ul,.customer-composer .customer-attachments [role=alert],.customer-closed-note{grid-column:1/-1;margin:0}.customer-closed-note{color:var(--muted);font-size:13px}.customer-composer>div:last-child{grid-area:1/3}.send-button{border-radius:50%;place-items:center;width:40px;height:40px;display:inline-grid;padding:0!important}.send-button.is-retry{white-space:nowrap;border-radius:20px;width:auto;padding:0 14px!important}.smartcs-frame .customer-composer{grid-template-columns:auto minmax(0,1fr) auto;gap:4px 8px;padding:8px 10px}.smartcs-frame .customer-composer textarea{resize:none;height:auto;min-height:40px;margin:0;padding:8px 12px}.smartcs-frame .customer-composer .customer-file{padding:0}.smartcs-frame .customer-composer>div:last-child{flex-direction:column;grid-area:1/3}.smartcs-frame .customer-shell main{padding-bottom:96px}@media (width<=360px){.customer-composer,.smartcs-frame .customer-composer{grid-template-columns:auto minmax(0,1fr) auto;gap:4px 8px;padding:6px 8px}.customer-composer>label,.smartcs-frame .customer-composer>label{grid-area:1/1/auto/-1}.customer-composer .customer-file,.smartcs-frame .customer-composer .customer-file{grid-area:2/1;padding:0}.customer-composer>div:last-child,.smartcs-frame .customer-composer>div:last-child{flex-direction:row;grid-area:2/3;align-items:center}.start-card{grid-template-columns:minmax(0,1fr)}}
