:root{--navy:#0e1d2f;--navy-2:#152940;--ink:#17253a;--muted:#7f8da2;--line:#e6ecf1;--surface:#fff;--bg:#f5f8fb;--mint:#42d6b3;--mint-dark:#23a889;--coral:#ff806e;--shadow:0 18px 45px rgba(20,44,70,.09);--radius:18px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg)}button,input,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.hidden{display:none!important}.muted{color:var(--muted);line-height:1.75}.eyebrow{display:block;color:#91a0b4;font-size:10px;letter-spacing:.18em;font-weight:800}.brand-lockup,.sidebar-brand{display:flex;align-items:center;gap:11px}.brand-lockup strong,.sidebar-brand strong{display:block;letter-spacing:.16em;font-size:14px}.brand-lockup small,.sidebar-brand small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.brand-mark{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--mint);color:var(--navy);font-weight:900;position:relative;box-shadow:0 7px 15px rgba(66,214,179,.24)}.brand-mark:after{content:"";position:absolute;width:7px;height:7px;border:2px solid var(--navy);border-top:0;border-left:0;right:5px;bottom:4px;transform:skew(10deg)}.button{border:0;border-radius:11px;padding:11px 15px;font-weight:700;transition:.18s ease;display:inline-flex;align-items:center;justify-content:center;gap:8px}.button:hover{transform:translateY(-1px)}.button-primary{background:var(--mint);color:var(--navy);box-shadow:0 8px 18px rgba(66,214,179,.22)}.button-ghost{background:#edf2f6;color:var(--ink)}.button-danger{background:#fff0ed;color:#d15f50}.button-wide{width:100%}.icon-button{border:0;background:transparent;color:var(--muted);width:35px;height:35px;border-radius:10px;display:grid;place-items:center;font-size:21px}.icon-button:hover{background:#edf2f6;color:var(--ink)}.alert{padding:12px 14px;border-radius:12px;font-size:13px;line-height:1.5;margin:14px 0}.alert-error{color:#a33f35;background:#fff0ed;border:1px solid #ffd4cd}.alert-success{color:#147762;background:#e7fbf5;border:1px solid #bcefe2}.install-page{background:linear-gradient(135deg,#0e1d2f 0%,#172e48 57%,#21435c 100%);color:#fff}.install-wrap{max-width:720px;padding:48px 22px 35px;margin:0 auto}.install-page .brand-lockup{margin-bottom:42px}.install-page .brand-lockup small{color:#a6b9ca}.install-card{background:#fff;color:var(--ink);border-radius:24px;padding:34px;box-shadow:var(--shadow)}.install-card h1{font-size:35px;line-height:1.18;letter-spacing:-.04em;margin:9px 0 12px}.install-card h1 span{color:var(--mint-dark)}.form-section{border-top:1px solid var(--line);padding-top:21px;margin-top:26px}.section-label{font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#6c7a8d;margin-bottom:14px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}label{display:block;color:#627187;font-size:12px;font-weight:700}label input,label textarea{display:block;width:100%;margin-top:7px;border:1px solid #dbe4eb;border-radius:10px;padding:12px 13px;color:var(--ink);outline:0;background:#fbfcfd}label input:focus,label textarea:focus{border-color:var(--mint);box-shadow:0 0 0 3px rgba(66,214,179,.12)}label textarea{resize:vertical;line-height:1.55}.span-2{grid-column:span 2}.install-form .button{margin-top:28px}.install-foot{text-align:center;color:#9cb0c2;font-size:11px;margin-top:18px}.login-page{background:linear-gradient(135deg,#0e1d2f,#17344b);display:grid;place-items:center;padding:20px}.login-card{width:min(440px,100%);background:#fff;border-radius:24px;padding:35px;box-shadow:var(--shadow)}.login-card .brand-lockup{margin-bottom:48px}.login-card h1{font-size:27px;margin:8px 0 10px;letter-spacing:-.04em}.login-form{display:grid;gap:15px;margin-top:24px}.back-link{display:block;text-align:center;color:var(--muted);font-size:12px;margin-top:23px}.admin-page{background:#edf2f6;overflow:hidden}.admin-app{height:100vh;display:grid;grid-template-columns:278px minmax(400px,1fr) 286px}.admin-sidebar{background:var(--navy);color:#fff;padding:25px 16px 16px;display:flex;flex-direction:column;min-height:0}.sidebar-brand{padding:0 10px}.sidebar-brand small{color:#8195ab}.inbox-heading{display:flex;align-items:end;justify-content:space-between;margin:50px 10px 22px}.inbox-heading h2{margin:4px 0 0;font-size:25px;letter-spacing:-.04em}.online-dot{width:8px;height:8px;background:var(--mint);border-radius:50%;display:inline-block;box-shadow:0 0 0 4px rgba(66,214,179,.13)}.conversation-tabs{display:flex;background:#172b43;border-radius:10px;padding:4px;gap:3px}.tab-button{flex:1;border:0;background:transparent;color:#8196ad;border-radius:8px;font-size:12px;padding:9px 3px}.tab-button.active{color:var(--navy);background:var(--mint);font-weight:800}.tab-button b{font-family:monospace;font-size:10px;margin-left:3px}.conversation-list{overflow:auto;padding:13px 0;min-height:0}.conversation-item{display:flex;gap:10px;padding:12px 10px;border-radius:12px;cursor:pointer;transition:.18s;margin-bottom:3px}.conversation-item:hover{background:#172e47}.conversation-item.active{background:#203a56}.conversation-item .avatar{flex:none}.conversation-copy{min-width:0;flex:1}.conversation-row{display:flex;justify-content:space-between;gap:6px}.conversation-row strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-row time{font-size:10px;color:#7690a9;white-space:nowrap}.conversation-copy p{margin:5px 0 0;color:#8da0b4;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.unread-badge{background:var(--coral);color:#fff;min-width:18px;height:18px;padding:0 5px;border-radius:9px;display:inline-grid;place-items:center;font:10px monospace}.empty-list{color:#6f859b;text-align:center;font-size:12px;padding:40px 10px;line-height:1.7}.sidebar-footer{border-top:1px solid #233b54;padding:15px 9px 0;display:flex;align-items:center;gap:9px}.sidebar-footer>div{flex:1;min-width:0}.sidebar-footer strong{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-footer small{font-size:10px;color:#8da0b4}.sidebar-footer>a{color:#8196ad;font-size:20px}.chat-main{display:flex;flex-direction:column;min-width:0;background:#fff}.chat-topbar{height:92px;display:flex;align-items:center;justify-content:space-between;padding:20px 28px;border-bottom:1px solid var(--line);gap:18px}.chat-topbar h1{margin:4px 0 0;font-size:20px;letter-spacing:-.03em}.top-actions{display:flex;gap:8px}.top-actions .button{font-size:12px;padding:9px 11px}.top-actions .button span{font-family:monospace;color:#95a2b2}.mobile-menu{display:none}.chat-empty{flex:1;display:grid;place-items:center;align-content:center;text-align:center;color:var(--muted);padding:30px}.chat-empty h2{color:var(--ink);font-size:22px;margin:20px 0 8px}.chat-empty p{font-size:13px}.empty-orbit{width:75px;height:75px;border-radius:50%;background:#e8fbf6;border:1px solid #c5f0e6;color:var(--mint-dark);font-size:31px;display:grid;place-items:center;margin:auto;transform:rotate(-25deg)}.chat-panel{flex:1;min-height:0;display:flex;flex-direction:column}.chat-meta{padding:14px 28px;border-bottom:1px solid #f0f3f6;font-size:12px;color:var(--muted);display:flex;justify-content:space-between;align-items:center}.chat-meta strong{color:var(--ink);font-size:14px}.messages-scroll{overflow-y:auto;flex:1;padding:25px 28px;scroll-behavior:smooth}.message-row{display:flex;margin:7px 0;animation:messageIn .16s ease-out}.message-row.from-self{justify-content:flex-end}.message-bubble{max-width:min(560px,78%);padding:11px 14px;border-radius:15px 15px 15px 4px;background:#f0f4f7;color:var(--ink);font-size:13px;line-height:1.6;white-space:pre-wrap;word-break:break-word}.from-self .message-bubble{background:var(--navy);color:#fff;border-radius:15px 15px 4px 15px}.message-time{font-size:10px;color:#a3afbd;align-self:flex-end;margin:0 8px 3px}.message-status{font-size:10px;color:var(--mint-dark);margin:5px 3px 0;text-align:right}.message-image{display:block;max-width:220px;max-height:210px;border-radius:10px;margin-bottom:7px;object-fit:cover}.message-image:last-child{margin-bottom:0}.note-row{margin:16px auto;max-width:500px;border:1px dashed #ccd9e4;color:#6f8195;background:#fafcfd;border-radius:12px;padding:10px 13px;font-size:12px;line-height:1.6;text-align:center}.note-row strong{color:var(--coral);font-size:10px;letter-spacing:.1em;display:block;margin-bottom:3px}.composer{border-top:1px solid var(--line);padding:13px 18px;display:flex;align-items:end;gap:9px;background:#fff}.composer textarea{flex:1;resize:none;border:0;outline:0;max-height:120px;line-height:1.55;padding:10px 5px;color:var(--ink)}.composer textarea::placeholder{color:#a1adba}.send-button{background:var(--mint);border:0;border-radius:10px;padding:10px 14px;color:var(--navy);font-weight:800;font-size:12px}.customer-panel{background:#fbfcfd;border-left:1px solid var(--line);padding:27px 21px;overflow:auto}.customer-panel-head{display:flex;justify-content:space-between;align-items:start}.customer-panel h2{font-size:20px;margin:5px 0 0;letter-spacing:-.03em}.customer-empty{height:65%;display:grid;place-items:center;text-align:center;color:#9ba8b6;font-size:12px;line-height:1.8}.customer-identity{display:flex;gap:11px;align-items:center;margin:32px 0 24px}.customer-identity h3{margin:0;font-size:17px}.customer-identity p{margin:5px 0 0;color:var(--muted);font-size:11px}.avatar{width:36px;height:36px;border-radius:13px;display:grid;place-items:center;background:#d6e3ec;color:#406079;font-weight:800;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.avatar-small{width:31px;height:31px;border-radius:11px}.avatar-large{width:45px;height:45px;border-radius:15px}.avatar-agent{background:var(--mint);color:var(--navy);font-size:17px}.side-field{margin:14px 0}.customer-panel .button{font-size:12px;padding:10px;margin-top:7px}.info-list{border-top:1px solid var(--line);margin-top:23px;padding-top:10px}.info-list div{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #edf1f4}.info-list span{font-size:11px;color:var(--muted)}.info-list strong{font-size:11px;text-align:right;max-width:150px;word-break:break-all}.note-composer{display:flex;gap:7px;padding:9px 18px;background:#fff8f5;border-top:1px solid #ffe1da}.note-composer input{flex:1;border:1px solid #ffd8cf;background:#fff;border-radius:9px;padding:9px 10px;outline:0;font-size:12px}.note-composer .button{padding:8px 10px;font-size:11px}.guest-page{background:var(--navy);min-height:100vh}.guest-shell{max-width:1060px;margin:auto;min-height:100vh;display:flex;flex-direction:column;padding:24px 24px 18px}.guest-header{display:flex;justify-content:space-between;align-items:center;color:#fff}.guest-header .brand-lockup small{color:#91a8bb}.guest-status{font-size:12px;color:#a9bdce;display:flex;align-items:center;gap:8px}.guest-main{display:grid;grid-template-columns:1fr 1.25fr;gap:70px;align-items:center;flex:1;padding:44px 20px}.guest-welcome{color:#fff;max-width:360px}.welcome-kicker{color:var(--mint);font-size:10px;letter-spacing:.19em;font-weight:800}.guest-welcome h1{font-size:54px;line-height:1.05;letter-spacing:-.07em;margin:16px 0}.guest-welcome p{color:#9fb1c2;line-height:1.8;font-size:14px}.guest-chat-card{background:#fff;border-radius:22px;min-height:560px;max-height:calc(100vh - 150px);box-shadow:0 20px 70px rgba(0,0,0,.2);display:flex;flex-direction:column;overflow:hidden}.chat-card-head{display:flex;justify-content:space-between;align-items:center;padding:17px 20px;border-bottom:1px solid var(--line)}.agent-summary{display:flex;align-items:center;gap:10px}.agent-summary strong{display:block;font-size:13px}.agent-summary span:not(.avatar){display:block;color:var(--muted);font-size:10px;margin-top:3px}.admin-link{font-size:11px;color:var(--muted)}.guest-messages{padding:19px 20px}.guest-footer{display:flex;justify-content:space-between;color:#758da4;font-size:11px;padding:0 20px}.guest-footer .button{color:#b0c1cf;background:#18324c;font-size:11px;padding:8px 10px}.guest-composer{padding:11px 13px}.modal{position:fixed;inset:0;background:rgba(8,21,34,.52);display:grid;place-items:center;padding:20px;z-index:10}.modal-card{background:#fff;border-radius:19px;width:min(500px,100%);max-height:90vh;overflow:auto;padding:23px;box-shadow:0 20px 70px rgba(7,23,39,.25)}.modal-head{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid var(--line);padding-bottom:16px}.modal-head h2{margin:5px 0 0;font-size:22px}.shortcut-list{display:grid;gap:8px;margin:18px 0}.shortcut-item{display:flex;align-items:center;gap:8px;border:1px solid var(--line);padding:10px 11px;border-radius:11px}.shortcut-use{border:0;background:#edf9f6;color:var(--mint-dark);font-size:11px;font-weight:800;padding:7px;border-radius:7px}.shortcut-item>div{flex:1;min-width:0}.shortcut-item strong{display:block;font-size:12px}.shortcut-item p{margin:3px 0 0;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shortcut-edit,.shortcut-delete{border:0;background:transparent;color:#9ba8b6;font-size:11px}.modal-form{display:grid;gap:13px;margin-top:17px}.modal-actions{display:flex;justify-content:flex-end;gap:8px}.modal-actions .button{font-size:12px}.empty-shortcuts{text-align:center;color:var(--muted);font-size:12px;padding:13px}.file-note{font-size:11px;color:var(--muted)}code{background:#edf2f5;padding:2px 5px;border-radius:4px;font-size:11px}@keyframes messageIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@media(max-width:1050px){.admin-app{grid-template-columns:245px minmax(380px,1fr) 250px}.top-actions .button{padding:9px 8px}.customer-panel{padding-left:16px;padding-right:16px}}@media(max-width:820px){.admin-app{grid-template-columns:230px minmax(0,1fr)}.customer-panel{position:fixed;right:0;top:0;bottom:0;width:min(310px,90vw);z-index:5;box-shadow:-10px 0 30px rgba(14,29,47,.12);transform:translateX(100%);transition:.22s}.customer-panel.open{transform:none}.mobile-menu{display:block;font-size:20px;color:var(--muted)}.guest-main{grid-template-columns:1fr;gap:26px;padding:35px 0}.guest-welcome{max-width:600px}.guest-welcome h1{font-size:42px;margin:11px 0}.guest-chat-card{min-height:580px;max-height:none}.guest-shell{padding:18px 15px}.guest-footer{padding:0 2px}}@media(max-width:620px){.install-wrap{padding:28px 14px}.install-card,.login-card{padding:24px 19px;border-radius:18px}.install-card h1{font-size:28px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.admin-app{display:block}.admin-sidebar{position:fixed;inset:0 auto 0 0;width:285px;z-index:8;transform:translateX(-100%);transition:.22s}.admin-sidebar.open{transform:none}.chat-topbar{padding:16px 14px;height:76px}.chat-topbar h1{font-size:16px}.top-actions{gap:2px}.top-actions .button{font-size:10px;padding:7px 6px}.messages-scroll{padding:18px 14px}.message-bubble{max-width:84%;font-size:12px}.composer{padding:10px 9px}.guest-chat-card{border-radius:17px;min-height:calc(100vh - 270px)}.guest-welcome{padding:0 4px}.guest-welcome h1{font-size:36px}.guest-welcome p{font-size:13px}.guest-header .brand-mark{width:30px;height:30px}.admin-link{display:none}}

/* Screenshot-inspired mobile guest chat skin */
.guest-page{background:#fff;overflow:hidden;min-height:100vh}.guest-shell{height:100vh;max-width:none;margin:0;padding:0;display:flex}.guest-header,.guest-welcome,.guest-footer,.guest-chat-card>.chat-card-head{display:none}.guest-mobile-bar{height:72px;flex:none;background:#209cf0;color:#fff;display:flex;align-items:center;padding:0 16px;position:relative;z-index:2}.guest-back{border:0;background:transparent;color:#fff;font-size:38px;font-weight:200;line-height:1;width:28px;height:42px;padding:0;margin-right:10px}.guest-mobile-agent{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:500}.guest-mobile-avatar,.guest-message-avatar{display:grid;place-items:center;overflow:hidden;background:#e8f1f8;color:#48718a;font-weight:700}.guest-mobile-avatar{width:48px;height:48px;border-radius:50%;border:2px solid rgba(255,255,255,.65)}.guest-mobile-avatar img,.guest-message-avatar img{width:100%;height:100%;object-fit:cover}.guest-sound{margin-left:auto;border:0;background:transparent;color:#fff;font-size:25px;letter-spacing:-7px;padding:8px 2px}.guest-sound.muted{opacity:.42}.guest-main{display:block;flex:1;min-height:0;padding:0}.guest-chat-card{width:100%;height:calc(100vh - 72px);min-height:0;max-height:none;border-radius:0;box-shadow:none;display:flex}.guest-messages{padding:21px 16px 10px;flex:1;min-height:0;background:#fff}.guest-time{text-align:center;color:#a7adb3;font-size:14px;line-height:1;margin:7px 0 15px}.guest-agent-message{align-items:flex-start;gap:8px;margin:10px 0 18px}.guest-message-avatar{width:35px;height:35px;border-radius:50%;flex:none}.guest-agent-message>.message-time{display:none}.guest-agent-message .message-bubble{max-width:calc(100vw - 88px);border-radius:4px 13px 13px 13px;background:#f0f2f4;color:#303a42;font-size:16px;line-height:1.45;padding:9px 13px}.guest-messages .from-self .message-bubble{background:#a8dcfb;color:#17384d;border-radius:13px 4px 13px 13px;font-size:16px}.guest-messages .message-time{font-size:11px;color:#a9b0b6;margin:0 5px 3px}.guest-messages .message-status{color:#70a3bf}.guest-messages .message-image{max-width:min(220px,65vw);max-height:220px}.guest-composer{flex:none;display:grid;grid-template-columns:1fr auto;grid-template-rows:minmax(65px,auto) 47px;gap:0 8px;padding:0 12px 7px;border-top:1px solid #e5e5e5;background:#fff}.guest-composer textarea{grid-column:1 / 3;grid-row:1;width:100%;height:65px;min-height:65px;padding:14px 0 6px;border:0;font-size:16px;line-height:1.45;color:#4d5961}.guest-composer textarea::placeholder{color:#aeb4b8}.guest-tools{grid-column:1;grid-row:2;display:flex;align-items:center;gap:13px}.guest-tool{width:29px;height:29px;padding:0;border:0;background:transparent;color:#aeb5ba;font-size:26px;line-height:1;font-family:Arial,sans-serif}.guest-composer #guest-image-button{width:29px;height:29px;padding:0;background:transparent;color:#aeb5ba;font-size:25px}.guest-composer .send-button{grid-column:2;grid-row:2;align-self:center;background:#f5f5f5;color:#c9cdd0;border-radius:3px;padding:9px 17px;font-size:14px;box-shadow:none}.guest-composer .send-button span{display:none}.guest-note-composer{flex:none;border-top:1px solid #f5ded8;padding:8px 10px;background:#fff8f5}.guest-note-composer input{font-size:13px}.guest-note-composer .button{padding:7px 9px}.guest-messages .note-row{font-size:12px}.guest-page .hidden{display:none!important}
@media(min-width:621px){.guest-shell{max-width:465px;margin:0 auto;box-shadow:0 0 0 1px #e9edf0}.guest-mobile-bar{border-radius:0}.guest-chat-card{height:calc(100vh - 72px)}}
.guest-composer .send-button.ready{background:#209cf0;color:#fff}
.guest-composer #guest-image-button .guest-image-icon{display:block;width:25px;height:25px;fill:none;stroke:#aeb5ba;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.kefu-toast{position:fixed;left:50%;top:88px;z-index:1000;max-width:min(88vw,380px);padding:12px 20px;border-radius:12px;background:rgba(24,37,54,.94);color:#fff;font-size:14px;line-height:1.45;text-align:center;box-shadow:0 10px 30px rgba(14,29,47,.22);opacity:0;transform:translate(-50%,-10px) scale(.96);pointer-events:none;transition:opacity .22s ease,transform .22s ease}.kefu-toast.is-visible{opacity:1;transform:translate(-50%,0) scale(1)}.kefu-toast.error{background:rgba(205,76,67,.96)}.kefu-toast.success{background:rgba(32,156,240,.96)}
.guest-messages .from-self{align-items:flex-end;gap:4px}.guest-messages .from-self>div{max-width:calc(100vw - 112px);min-width:0}.guest-messages .from-self .message-bubble{display:table;width:max-content;max-width:100%;min-width:52px;white-space:pre-wrap;word-break:normal;overflow-wrap:anywhere}.guest-self-avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;flex:none;align-self:flex-end;background:#e8f1f8;color:#4380a5;font-size:15px;font-weight:700}.guest-messages .from-self .message-time{white-space:nowrap;font-size:10px;margin:0 2px 3px;color:#96a7af}.guest-time{white-space:nowrap}
.guest-message-block{margin:0 0 16px}.guest-message-time,.guest-time{text-align:center;color:#a7adb3;font-size:12px;line-height:1;white-space:nowrap;margin:9px 0 13px}.guest-message-block .message-row{margin:0}.guest-message-block .message-content{min-width:0}.guest-messages .from-self{align-items:flex-start;justify-content:flex-end}.guest-messages .from-self .message-content{display:flex;flex-direction:column;align-items:flex-end}.guest-messages .from-self .message-status{margin:4px 2px 0;line-height:1}.guest-messages .guest-agent-message .message-content{display:block}.guest-messages .guest-agent-message .message-bubble{margin:0}.guest-messages .guest-agent-message{margin:0}.guest-messages .guest-message-avatar,.guest-messages .guest-self-avatar{margin-top:0}
.guest-message-meta{display:flex;align-items:center;gap:7px;min-height:35px;margin:9px 0 7px}.guest-message-meta.is-agent{justify-content:flex-start}.guest-message-meta.is-self{justify-content:flex-end}.guest-message-meta .guest-message-time{margin:0}.guest-meta-status{font-size:10px;line-height:1;color:#96a7af}.guest-message-body{margin:0!important}.guest-message-body.from-self{justify-content:flex-end}.guest-message-body.guest-agent-message{justify-content:flex-start}.guest-message-body .message-content{min-width:0}
.guest-messages{position:relative}.guest-unread-jump{position:absolute;right:14px;bottom:14px;z-index:5;min-width:30px;height:30px;padding:0 8px;border:0;border-radius:15px;background:#e74d4d;color:#fff;font-size:13px;font-weight:700;line-height:30px;text-align:center;box-shadow:0 5px 14px rgba(205,65,65,.3);cursor:pointer}.guest-unread-jump:after{content:'↓';margin-left:3px;font-size:12px}.guest-unread-jump.hidden{display:none!important}
.admin-page .chat-main{min-height:0}.admin-page .chat-panel{min-height:0;overflow:hidden}.admin-page #admin-messages{min-height:0;max-height:none;overflow-y:auto;flex:1;padding:21px 28px}.admin-message-block{margin:0 0 16px}.admin-message-meta{display:flex;align-items:center;gap:7px;min-height:35px;margin:9px 0 7px}.admin-message-meta.is-agent{justify-content:flex-start}.admin-message-meta.is-self{justify-content:flex-end}.admin-message-time{color:#a7adb3;font-size:12px;line-height:1;white-space:nowrap}.admin-message-name{color:#637d8f;font-size:12px;font-weight:700;line-height:1;white-space:nowrap;max-width:180px;overflow:hidden;text-overflow:ellipsis}.admin-meta-status{color:#70a3bf;font-size:10px;line-height:1}.admin-message-avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;overflow:hidden;flex:none;background:#e8f1f8;color:#48718a;font-weight:700}.admin-message-avatar img{width:100%;height:100%;object-fit:cover}.admin-message-body{margin:0!important}.admin-message-body .message-content{min-width:0}.admin-message-body .message-bubble{display:table;width:max-content;max-width:min(560px,78%);min-width:52px;background:#f0f2f4;color:#303a42;border-radius:4px 13px 13px 13px;font-size:16px;line-height:1.45;padding:9px 13px}.admin-message-body.from-self{justify-content:flex-end}.admin-message-body.from-self .message-content{display:flex;flex-direction:column;align-items:flex-end}.admin-message-body.from-self .message-bubble{background:#a8dcfb;color:#17384d;border-radius:13px 4px 13px 13px}.admin-message-body.guest-agent-message{justify-content:flex-start}.admin-message-body .message-image{max-width:220px;max-height:220px}.admin-page .admin-message-body .message-status{display:none}@media(max-width:620px){.admin-page .chat-main{height:100vh}.admin-page .chat-panel{height:calc(100vh - 76px)}.admin-page #admin-messages{padding:18px 14px}.admin-message-body .message-bubble{max-width:84%;font-size:16px}}
.admin-page #admin-messages .admin-message-body{width:100%;display:flex}.admin-page #admin-messages .admin-message-body .message-content{flex:0 1 50%;width:fit-content;max-width:50%;min-width:0}.admin-page #admin-messages .admin-message-body .message-bubble{display:block;width:fit-content;max-width:100%;min-width:52px;word-break:break-word;overflow-wrap:break-word}.admin-page #admin-messages .admin-message-body.from-self .message-content{margin-left:auto}.admin-page #admin-messages .admin-message-body.guest-agent-message .message-content{margin-right:auto}@media(max-width:620px){.admin-page #admin-messages .admin-message-body .message-content{flex-basis:50%;max-width:50%}}
.history-filters{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:9px 2px 3px}.history-filters label{color:#8da0b4;font-size:10px}.history-filters input{width:100%;margin-top:4px;border:1px solid #2d4862;border-radius:7px;padding:6px 5px;background:#172b43;color:#dce7ef;font-size:10px;color-scheme:dark}.history-clear{grid-column:1 / 3;border:0;border-radius:7px;background:#203a56;color:#9db1c3;padding:6px;font-size:10px}.history-clear:hover{background:#294967;color:#fff}
.conversation-item{position:relative}.conversation-item.is-online .avatar{box-shadow:0 0 0 2px rgba(66,214,179,.7);opacity:1}.conversation-item.is-online:after{content:"";position:absolute;right:8px;bottom:9px;width:7px;height:7px;border-radius:50%;background:var(--mint);border:2px solid var(--navy)}.conversation-item.is-offline .avatar{filter:grayscale(1);opacity:.52}.conversation-item.is-offline .conversation-copy strong{color:#899bae}.conversation-item.is-offline .conversation-copy p{color:#697d92}
.conversation-context-menu{position:fixed;z-index:50;min-width:136px;padding:5px;border:1px solid #dce5eb;border-radius:10px;background:#fff;box-shadow:0 12px 30px rgba(14,29,47,.18)}.conversation-context-menu button{display:block;width:100%;border:0;border-radius:7px;background:transparent;color:var(--ink);padding:9px 11px;text-align:left;font-size:12px}.conversation-context-menu button:hover{background:#edf9f6;color:var(--mint-dark)}.conversation-context-menu button+button{margin-top:2px}.tab-button{min-width:0}
.admin-page #admin-messages .admin-message-body .message-content{flex:0 1 50%;width:auto;max-width:50%;min-width:52px}.admin-page #admin-messages .admin-message-body .message-bubble{display:inline-block;width:auto;max-width:100%;min-width:52px;white-space:pre-wrap;word-break:normal;overflow-wrap:anywhere}
.admin-typing{min-height:30px;padding:7px 28px;border-bottom:1px solid #eef3f6;background:#fbfefd;color:var(--mint-dark);font-size:11px}.admin-typing span{font-weight:800}.admin-typing em{font-style:normal;color:#637d8f;white-space:pre-wrap;word-break:break-word}.admin-typing:after{content:"";display:inline-block;width:4px;height:4px;margin-left:4px;border-radius:50%;background:var(--mint);box-shadow:7px 0 var(--mint),14px 0 var(--mint);animation:typingDots 1s infinite}@keyframes typingDots{0%,100%{opacity:.35}50%{opacity:1}}
@media(max-width:620px){.admin-typing{padding:7px 14px}}

/* Forced mobile admin layout for embedded mobile clients without a parent viewport meta tag */
.admin-page.mobile-admin .admin-app{display:block;height:100vh}
.admin-page.mobile-admin .admin-sidebar{position:fixed;inset:0 auto 0 0;width:285px;z-index:8;transform:translateX(-100%);transition:.22s}
.admin-page.mobile-admin .admin-sidebar.open{transform:none}
.admin-page.mobile-admin .chat-main{height:100vh;min-width:0}
.admin-page.mobile-admin .chat-topbar{padding:16px 14px;height:76px}
.admin-page.mobile-admin .chat-topbar h1{font-size:16px}
.admin-page.mobile-admin .top-actions{gap:2px}
.admin-page.mobile-admin .top-actions .button{font-size:10px;padding:7px 6px}
.admin-page.mobile-admin .mobile-menu{display:block;font-size:20px;color:var(--muted)}
.admin-page.mobile-admin .chat-panel{height:calc(100vh - 76px);min-height:0}
.admin-page.mobile-admin #admin-messages{padding:18px 14px}
.admin-page.mobile-admin .customer-panel{position:fixed;right:0;top:0;bottom:0;width:min(310px,90vw);z-index:9;box-shadow:-10px 0 30px rgba(14,29,47,.12);transform:translateX(100%);transition:.22s}
.admin-page.mobile-admin .customer-panel.open{transform:none}
.admin-page.mobile-admin .admin-message-body .message-bubble{max-width:84%;font-size:16px}
.admin-page.mobile-admin .admin-message-body .message-content{flex-basis:50%;max-width:50%}
.admin-page.mobile-admin .admin-typing{padding:7px 14px}
.admin-page.mobile-admin .conversation-tabs .tab-button{font-size:14px;padding:11px 4px}
.admin-page.mobile-admin .conversation-row strong{font-size:15px}
.admin-page.mobile-admin .conversation-row time{font-size:12px}
.admin-page.mobile-admin .conversation-copy p{font-size:13px;margin-top:6px}
.admin-page.mobile-admin .conversation-item{padding:14px 12px;gap:12px}
.admin-page.mobile-admin .inbox-heading{margin:30px 12px 18px}
.admin-page.mobile-admin .chat-topbar h1{font-size:19px}
.admin-page.mobile-admin .chat-topbar .eyebrow{font-size:11px}
.admin-page.mobile-admin .top-actions .button{font-size:12px;padding:9px 8px}
.admin-page.mobile-admin .chat-meta{padding:13px 14px;font-size:13px}
.admin-page.mobile-admin .chat-meta strong{font-size:16px}
.admin-page.mobile-admin .composer textarea{font-size:16px;padding:10px 5px}
.admin-page.mobile-admin .send-button{font-size:14px;padding:11px 15px}
.admin-page.mobile-admin .customer-panel{padding:22px 17px}
.admin-page.mobile-admin .customer-panel h2{font-size:22px}
.admin-page.mobile-admin .customer-identity h3{font-size:19px}
.admin-page.mobile-admin .side-field{font-size:13px}
.admin-page.mobile-admin .info-list span,.admin-page.mobile-admin .info-list strong{font-size:13px}
.admin-page.mobile-admin .customer-panel .button{font-size:14px;padding:11px}
.admin-page.mobile-admin .admin-typing{font-size:13px}
.side-shortcuts{border-bottom:1px solid var(--line);padding:0 0 15px;margin:0 0 16px}.side-shortcuts-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.side-shortcuts-head strong{font-size:13px;color:var(--ink)}.side-shortcuts-head button{border:0;background:#e7fbf5;color:var(--mint-dark);border-radius:7px;padding:5px 8px;font-size:11px;font-weight:700}.side-shortcut-list{max-height:260px;overflow-y:auto;display:grid;gap:6px;padding-right:2px}.side-shortcut{border:1px solid #e2e9ee;background:#fff;border-radius:9px;padding:8px 9px;text-align:left;color:var(--ink)}.side-shortcut:hover{border-color:var(--mint);background:#f2fffb}.side-shortcut strong{display:block;font-size:11px;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.side-shortcut span{display:block;color:var(--muted);font-size:10px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.side-shortcut-empty{color:var(--muted);font-size:11px;padding:8px 2px}
.admin-page.mobile-admin .side-shortcut-list{max-height:245px}.admin-page.mobile-admin .side-shortcuts-head strong{font-size:14px}.admin-page.mobile-admin .side-shortcuts-head button{font-size:12px}.shortcut-delete{border:0;background:#fff0ed;color:#d15f50;border-radius:7px;padding:6px 8px;font-size:11px}.shortcut-delete:hover{background:#ffdcd5;color:#a83d30}
/* Wider shortcut manager so edit and delete actions remain visible */
#shortcut-modal .modal-card{width:min(760px,96vw)}
#shortcut-modal .shortcut-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px}
#shortcut-modal .shortcut-item>div{min-width:0}
#shortcut-modal .shortcut-item strong,#shortcut-modal .shortcut-item p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#shortcut-modal .shortcut-edit,#shortcut-modal .shortcut-delete{white-space:nowrap;min-width:48px}
@media(max-width:620px){#shortcut-modal .modal-card{width:96vw;padding:18px 14px}#shortcut-modal .shortcut-item{grid-template-columns:auto minmax(0,1fr);gap:7px}#shortcut-modal .shortcut-edit,#shortcut-modal .shortcut-delete{grid-row:2;padding:6px 8px}#shortcut-modal .shortcut-edit{grid-column:1}#shortcut-modal .shortcut-delete{grid-column:2;justify-self:start}}

.message-recalled{color:#9aa6b2;font-style:italic;font-size:12px}.from-self .message-recalled{color:#6f8292}.admin-message-body.from-self .message-recalled{color:#6f8292}

/* Mobile browser viewport fix: keep the composer inside the visible viewport. */
:root{--kefu-viewport-height:100vh}
@media(max-width:620px){
    .guest-page{height:var(--kefu-viewport-height);min-height:var(--kefu-viewport-height);overflow:hidden}
    .guest-shell{height:var(--kefu-viewport-height);min-height:0}
    .guest-main{height:calc(var(--kefu-viewport-height) - 72px);min-height:0;overflow:hidden}
    .guest-chat-card{height:100%;min-height:0;max-height:none;overflow:hidden}
    .guest-messages{min-height:0;flex:1 1 auto;overflow-y:auto}
    .guest-composer{position:relative;z-index:4;flex:0 0 119px;min-height:119px;box-sizing:border-box}
}

.kefu-image-viewer{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(5,14,25,.88);cursor:zoom-out}.kefu-image-viewer.hidden{display:none!important}.kefu-image-viewer img{display:block;max-width:96vw;max-height:92vh;width:auto;height:auto;object-fit:contain;border-radius:8px;box-shadow:0 18px 70px rgba(0,0,0,.38);cursor:zoom-out}.kefu-image-viewer-hint{position:fixed;top:18px;left:50%;transform:translateX(-50%);padding:7px 12px;border-radius:99px;background:rgba(255,255,255,.16);color:#fff;font-size:12px;pointer-events:none}@media(max-width:620px){.kefu-image-viewer{padding:12px}.kefu-image-viewer img{max-width:96vw;max-height:86vh}.kefu-image-viewer-hint{top:12px;font-size:11px}}

.sound-settings-card{width:min(520px,96vw)}.sound-setting-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 2px;border-bottom:1px solid var(--line)}.sound-setting-row strong{display:block;color:var(--ink);font-size:14px}.sound-setting-row span{display:block;color:var(--muted);font-size:11px;margin-top:5px}.sound-switch{position:relative;width:52px;height:30px;flex:none;padding:0;border:0;border-radius:30px;background:#cbd5de;transition:.2s ease}.sound-switch i{position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(14,29,47,.18);transition:.2s ease}.sound-switch.is-on{background:var(--mint-dark)}.sound-switch.is-on i{transform:translateX(22px)}.sound-switch b{display:none}.sound-settings-note{margin:15px 2px 0;color:var(--muted);font-size:11px;line-height:1.6}@media(max-width:620px){.sound-settings-card{width:96vw;padding:19px 16px}.sound-setting-row{padding:15px 0}.sound-setting-row span{max-width:245px;line-height:1.45}}
