
:host{display:block;-webkit-font-smoothing:antialiased;font-family:Inter,system-ui,sans-serif}
*{box-sizing:border-box;margin:0}
svg{display:block}
.mono{font-family:"JetBrains Mono",ui-monospace,monospace;font-weight:500;font-variant-numeric:tabular-nums}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes pop{0%{opacity:0;transform:scale(.96)}100%{opacity:1;transform:none}}
@keyframes dot{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(5,150,105,.45)}70%{box-shadow:0 0 0 7px rgba(5,150,105,0)}100%{box-shadow:0 0 0 0 rgba(5,150,105,0)}}
.show{animation:rise .55s cubic-bezier(.16,1,.3,1) both}


.mon{--tx:#0f172a;--tx2:#475569;--tx3:#94a3b8;--line:#eef1f5;--soft:#f4f6f9;--blue:#2563eb;--green:#059669;
  width:1120px;height:600px;background:#fff;color:var(--tx);display:grid;grid-template-rows:56px 1fr;font-size:15px;line-height:1.4;overflow:hidden}
.mtop{display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;font:600 17px "Inter Tight",Inter,sans-serif;letter-spacing:-.01em}
.mark{width:22px;height:22px;border-radius:7px;background:conic-gradient(from 210deg,#3b82f6,#60a5fa,#ef4b55,#3b82f6)}
.brand img{height:30px;width:auto;display:block}
.brand small{font:500 14px Inter,sans-serif;color:var(--tx3);padding-left:12px;margin-left:4px;border-left:1px solid var(--line)}
.mr{display:flex;align-items:center;gap:16px;font-size:14px;color:var(--tx2)}
.live{display:flex;align-items:center;gap:8px;font-weight:600;font-size:13.5px;color:var(--green);background:rgba(5,150,105,.09);padding:6px 12px;border-radius:999px}
.live i{width:8px;height:8px;border-radius:50%;background:var(--green);animation:pulse 2s infinite}
.mbody{display:grid;grid-template-columns:300px 1fr 286px;min-height:0}

.list{border-right:1px solid var(--line);padding:16px 12px;display:flex;flex-direction:column;gap:4px;overflow:hidden}
.list h4{font:600 13px Inter;letter-spacing:.06em;text-transform:uppercase;color:var(--tx3);padding:0 10px 8px}
.it{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 10px;border-radius:12px}
.it.on{background:#eef4ff}
.it.new{animation:pop .5s cubic-bezier(.16,1,.3,1) both}
.ic{width:38px;height:38px;border-radius:11px;display:grid;place-items:center}
.ic svg{width:18px;height:18px}
.ic.web{background:#eaf1ff;color:#2563eb}.ic.call{background:#ffedf0;color:#e11d48}.ic.sms{background:#e7f7f0;color:#059669}.ic.mail{background:#fff4e5;color:#c2620a}
.it b{display:block;font-weight:600;font-size:15px}
.it>div{min-width:0}
.it b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.it div span{display:block;color:var(--tx2);font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tag{font:600 12px Inter;padding:4px 9px;border-radius:999px;white-space:nowrap}
.tag.new{background:#fff4e5;color:#b45309}.tag.ok{background:#e7f7f0;color:#047857}.tag.bk{background:#eaf1ff;color:#1d4ed8}

.conv{display:flex;flex-direction:column;padding:22px 28px;gap:14px;overflow:hidden;background:linear-gradient(#fff,#fbfcfd)}
.who{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.who b{font:600 18px "Inter Tight",Inter,sans-serif}
.who span{color:var(--tx2);font-size:14px}
.who .handling{margin-left:auto;font-size:13px;font-weight:600;color:#1d4ed8;background:#eef4ff;padding:6px 11px;border-radius:999px}
.msgs{flex:1;display:flex;flex-direction:column;justify-content:flex-end;gap:8px}
.b{max-width:80%;padding:11px 16px;border-radius:18px;font-size:16px;line-height:1.4;letter-spacing:-.005em}
.b.c{align-self:flex-start;background:var(--soft);border-bottom-left-radius:6px}
.b.a{align-self:flex-end;background:var(--blue);color:#fff;border-bottom-right-radius:6px}
.meta{font-size:13px;color:var(--tx3);display:flex;gap:8px;align-items:center}
.meta.r{align-self:flex-end}
.fast{font-size:13px;font-weight:600;color:var(--green);background:#e7f7f0;padding:3px 9px;border-radius:999px}
.typing{align-self:flex-end;display:flex;align-items:center;gap:10px;color:#1d4ed8;font-size:15px}
.dots{display:flex;gap:5px;padding:15px 18px;border-radius:20px;background:#eef4ff}
.dots i{width:8px;height:8px;border-radius:50%;background:#2563eb;animation:dot 1s infinite}
.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}

.side{border-left:1px solid var(--line);padding:18px;display:flex;flex-direction:column;gap:14px;background:#fbfcfd}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}
.card h5{font:600 12.5px Inter;letter-spacing:.06em;text-transform:uppercase;color:var(--tx3);margin-bottom:10px}
.when{font:600 26px/1.1 "Inter Tight",Inter,sans-serif;letter-spacing:-.02em;color:var(--tx3);transition:color .4s}
.bk.done .when{color:var(--tx)}
.bk .st{margin-top:10px;font-size:14px;color:var(--tx2);display:flex;align-items:center;gap:8px}
.bk.done{box-shadow:0 0 0 2px rgba(5,150,105,.35);transition:box-shadow .5s}
.steps{display:flex;flex-direction:column;gap:11px;font-size:15px;color:var(--tx3)}
.steps div{display:flex;align-items:center;gap:10px;transition:color .3s}
.steps i{width:20px;height:20px;border-radius:50%;border:2px solid #e2e8f0;flex:none;display:grid;place-items:center;transition:all .3s}
.steps .ok{color:var(--tx)}
.steps .ok i{border-color:var(--green);background:var(--green)}
.steps .ok i::after{content:"";width:8px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-1px) rotate(-45deg)}
.ex{position:absolute;right:16px;bottom:10px;font-size:12px;color:#b6bfcc}


.ph{width:300px;height:640px;background:#000;color:#fff;display:flex;flex-direction:column;position:relative;overflow:hidden;font-family:Inter,-apple-system,sans-serif}
.sb{height:44px;display:flex;align-items:flex-end;justify-content:space-between;padding:0 26px 6px;font-weight:600;font-size:15px}
.ph-h{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 0 12px;border-bottom:1px solid #1c1c1e}
.pa{width:48px;height:48px;border-radius:50%;background:linear-gradient(#a3acb9,#6b7482);display:grid;place-items:center;font:600 18px Inter}
.ph-h b{font-weight:500;font-size:14px}
.ph-b{flex:1;padding:14px 12px;display:flex;flex-direction:column;justify-content:flex-end;gap:8px}
.ts{align-self:center;font-size:12px;color:#8e8e93;margin:4px 0}
.pb{max-width:82%;padding:8px 12px;border-radius:18px;font-size:14.5px;line-height:1.3}
.pb.in{align-self:flex-start;background:#2c2c2e;border-bottom-left-radius:6px}
.pb.out{align-self:flex-end;background:#0a84ff;border-bottom-right-radius:6px}
.ph-i{margin:6px 12px 22px;height:38px;border-radius:19px;border:1px solid #2c2c2e;display:flex;align-items:center;padding:0 14px;color:#6e6e73;font-size:15px}
.ban{position:absolute;left:8px;right:8px;top:8px;border-radius:20px;background:rgba(58,58,62,.96);padding:12px;display:flex;gap:10px;transform:translateY(-140%);transition:transform .55s cubic-bezier(.16,1,.3,1);z-index:2}
.ban.on{transform:none}
.ban .bi{width:36px;height:36px;border-radius:9px;background:#34c759;display:grid;place-items:center;flex:none}
.ban b{font-size:14px}.ban p{font-size:14px;line-height:1.3;color:#e5e5ea;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}


.lap{width:930px;height:630px;background:#fff;color:#0f172a;display:grid;grid-template-rows:60px 1fr;position:relative;overflow:hidden}
.lt{display:flex;align-items:center;justify-content:space-between;padding:0 26px;border-bottom:1px solid #eef1f5}
.lt b{font:600 22px "Inter Tight",Inter,sans-serif;letter-spacing:-.015em}
.lt span{font-size:15px;color:#64748b}
.cal{display:grid;grid-template-columns:70px repeat(3,minmax(0,1fr));grid-template-rows:56px 1fr;min-height:0}
.dh{display:flex;align-items:baseline;gap:8px;padding:0 16px;align-self:center;font-size:15px;color:#64748b}
.dh b{font:600 24px "Inter Tight",Inter,sans-serif;color:#0f172a}.dh.today b{color:#2563eb}
.hrs{position:relative;border-right:1px solid #eef1f5}
.hrs span{position:absolute;right:12px;font-size:13px;color:#94a3b8;transform:translateY(-50%)}
.col{position:relative;border-right:1px solid #eef1f5;background:repeating-linear-gradient(180deg,transparent 0 69px,#f2f4f7 69px 70px)}
.ev{position:absolute;left:8px;right:8px;border-radius:12px;padding:10px 12px;font-size:15px;line-height:1.3;overflow:hidden;background:#f1f4f8;color:#475569;border-left:4px solid #cbd5e1}
.ev b{display:block;font-weight:600;color:#1e293b}
.ev.n{background:#eaf1ff;color:#1e3a8a;border-left-color:#2563eb;box-shadow:0 12px 30px -12px rgba(37,99,235,.55);animation:pop .6s cubic-bezier(.16,1,.3,1) both}
.ev.n b{color:#1e3a8a}
.ev .by{display:inline-block;margin-top:8px;font-size:13px;font-weight:600;color:#fff;background:#2563eb;border-radius:999px;padding:3px 10px}
.toast{position:absolute;right:20px;bottom:20px;background:#0f172a;color:#fff;border-radius:14px;padding:14px 18px;display:flex;gap:12px;align-items:center;font-size:15px;box-shadow:0 20px 40px -12px rgba(0,0,0,.35);transform:translateY(160%);transition:transform .6s cubic-bezier(.16,1,.3,1)}
.toast.on{transform:none}
.toast .mark{width:30px;height:30px;border-radius:9px}
.toast span{color:#94a3b8;display:block;font-size:14px}


:host(.far) .mon{grid-template-rows:72px 1fr}
:host(.far) .mtop{padding:0 32px}
:host(.far) .brand{font-size:24px}
:host(.far) .brand img{height:42px}
:host(.far) .brand small,:host(.far) .mr>span:last-child,:host(.far) .list,:host(.far) .who span,:host(.far) .meta,:host(.far) .ex{display:none}
:host(.far) .mark{width:30px;height:30px;border-radius:9px}
:host(.far) .live{font-size:19px;padding:9px 16px}
:host(.far) .mbody{grid-template-columns:1fr 360px}
:host(.far) .conv{padding:26px 40px;gap:18px}
:host(.far) .who b{font-size:26px}
:host(.far) .who .handling{font-size:18px;padding:8px 14px}
:host(.far) .ic{width:46px;height:46px;border-radius:13px}
:host(.far) .b{font-size:25px;line-height:1.28;padding:14px 22px;border-radius:24px;max-width:86%}
:host(.far) .typing{font-size:22px}
:host(.far) .dots{padding:20px 24px}
:host(.far) .dots i{width:11px;height:11px}
:host(.far) .side{padding:22px}
:host(.far) .card{padding:22px;border-radius:20px}
:host(.far) .card h5{font-size:16px}
:host(.far) .when{font-size:38px}
:host(.far) .bk .st{font-size:19px}
:host(.far) .tag{font-size:16px;padding:5px 12px}
:host(.far) .steps{font-size:20px;gap:16px}
:host(.far) .steps i{width:26px;height:26px}
:host(.far) .sb{font-size:22px;height:60px;padding:0 30px 8px}
:host(.far) .ph-h{padding:8px 0 14px}
:host(.far) .pa{width:64px;height:64px;font-size:24px}
:host(.far) .ph-h b{font-size:20px}
:host(.far) .pb{font-size:21px;line-height:1.22;padding:10px 15px;border-radius:22px;max-width:90%}
:host(.far) .ts{font-size:18px}
:host(.far) .ph-i{height:50px;border-radius:25px;font-size:20px}
:host(.far) .ban b,:host(.far) .ban p{font-size:20px}
:host(.far) .lt{padding:0 32px}
:host(.far) .lt b{font-size:32px}
:host(.far) .lt span{display:none}
:host(.far) .dh{font-size:22px}
:host(.far) .dh b{font-size:34px}
:host(.far) .hrs span{font-size:18px}
:host(.far) .ev{font-size:20px;background:#e9eef5;color:#334155;border-left-width:6px;border-left-color:#94a3b8}
:host(.far) .ev b{color:#0f172a}
:host(.far) .ev.n{background:#2563eb;color:#dbe7ff;border-left-color:#1e40af}
:host(.far) .ev.n b{color:#fff;font-size:24px}
:host(.far) .ev .by{background:#fff;color:#1d4ed8;font-size:17px}
:host(.far) .toast{font-size:20px;padding:18px 22px}
:host(.far) .toast span{font-size:18px}


:host(.near) .mon,:host(.near) .lap{border-radius:inherit}


.msgs,.ph-b{overflow-y:auto;justify-content:flex-start;scrollbar-width:none;scroll-behavior:smooth}
.msgs::-webkit-scrollbar,.ph-b::-webkit-scrollbar{display:none}
.msgs>:first-child,.ph-b>:first-child{margin-top:auto}
.msgs{min-height:0}
.conv{min-height:0}


:host(.compact) .mon{width:360px;height:616px;grid-template-rows:52px 1fr}
:host(.compact) .mtop{padding:0 16px}
:host(.compact) .brand img{height:24px}
:host(.compact) .brand small,:host(.compact) .mr>span:last-child,:host(.compact) .list,:host(.compact) .who .handling,:host(.compact) .ex{display:none}
:host(.compact) .live{font-size:12.5px;padding:5px 10px}
:host(.compact) .mbody{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
:host(.compact) .conv{padding:14px 16px;gap:10px}
:host(.compact) .who{padding-bottom:10px}
:host(.compact) .who b{font-size:16px}
:host(.compact) .who span{font-size:13px}
:host(.compact) .b{font-size:15px;max-width:88%;padding:10px 14px}
:host(.compact) .side{border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px}
:host(.compact) .card{padding:12px;border-radius:12px}
:host(.compact) .card h5{font-size:11px;margin-bottom:6px}
:host(.compact) .when{font-size:18px}
:host(.compact) .bk .st{font-size:12.5px}
:host(.compact) .steps{font-size:12.5px;gap:7px}
:host(.compact) .steps i{width:16px;height:16px}
:host(.compact) .lap{width:360px;height:600px;grid-template-rows:52px 1fr}
:host(.compact) .lt{padding:0 16px}
:host(.compact) .lt b{font-size:22px}
:host(.compact) .cal{grid-template-columns:44px repeat(3,minmax(0,1fr));grid-template-rows:48px 1fr}
:host(.compact) .dh{padding:0 8px;font-size:12px;gap:5px}
:host(.compact) .dh b{font-size:19px}
:host(.compact) .hrs span{right:6px;font-size:11px}
:host(.compact) .ev{left:4px;right:4px;padding:7px 8px;font-size:12px;border-radius:9px;border-left-width:3px}
:host(.compact) .ev .by{font-size:11px;padding:2px 7px;margin-top:5px}
:host(.compact) .toast{left:12px;right:12px;bottom:12px;padding:12px 14px;font-size:13.5px}
:host(.compact) .ev.n b{font-size:13px}
