:root{--ink:var(--theme-text,#193c3a);--muted:var(--theme-text-muted,#627b77);--line:var(--theme-border,#e2eae6);--soft:var(--theme-bg,#f4f7f6);--panel:var(--theme-surface,#fff);--accent:var(--theme-accent-solid,#087f77);--accent-dark:var(--theme-accent-solid-hover,#066b65);--accent-soft:var(--theme-accent-soft,#e4f2ed);--green:var(--theme-success,#1e9f6e);--amber:var(--theme-warning,#b97726);--red:var(--theme-danger,#b74444);--sidebar:var(--theme-inverse-surface,#10292b);--shadow:0 12px 32px var(--theme-shadow,#193c3a14)}*{box-sizing:border-box}html,body{background:var(--theme-bg,#f4f7f6);min-height:100%;color:var(--ink);margin:0;font-family:Microsoft YaHei UI,PingFang SC,Segoe UI,Noto Sans SC,system-ui,sans-serif;font-size:14px;line-height:1.5}button,input,textarea,select{font:inherit}button{appearance:none;color:inherit;cursor:pointer;background:0 0;border:0;margin:0;padding:0}button:disabled{cursor:not-allowed;opacity:.55}button>svg{flex-shrink:0}a{color:inherit;text-decoration:none}.public-chat-page{background:var(--theme-surface-muted,#eef5ff);width:100%;height:100dvh;min-height:100vh;overflow:hidden}.public-chat-page iframe{background:0 0;border:0;width:100%;height:100%;display:block}.eyebrow{color:var(--theme-accent,var(--accent));letter-spacing:.14em;font-size:12px;font-weight:700}.primary-button,.soft-button,.row-button,.history-open,.team-edit-button{min-height:38px;box-shadow:none;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:7px;padding:7px 14px;font-size:13px;font-weight:600;line-height:1.35;text-decoration:none;display:inline-flex}.primary-button{color:var(--theme-on-accent,#fff);border-color:var(--theme-accent-border,#078284);background:var(--theme-accent-solid,#078284)}.primary-button:active:not(:disabled){border-color:var(--theme-accent-border,#005e60);background:var(--theme-accent-solid-active,#005e60)}.soft-button{color:var(--theme-text,#456763);border-color:var(--theme-border,#d4e3df);background:var(--theme-surface,#fff)}.soft-button:hover:not(:disabled),.soft-button.accent{color:var(--theme-accent,#087674);border-color:var(--theme-accent-border,#acd1c8);background:var(--theme-surface-hover,#edf7f3)}.soft-button:active:not(:disabled){color:var(--theme-accent,#086c65);border-color:var(--theme-accent-border,#9dc9bf);background:var(--theme-success-soft,#e0f0e9)}.row-button,.history-open,.team-edit-button{min-height:32px;color:var(--theme-accent,#16776f);background:var(--theme-success-soft,#f0f7f4);white-space:nowrap;border-color:#0000;gap:5px;padding:5px 9px;font-size:12px;font-weight:550}.row-button:hover:not(:disabled),.history-open:hover:not(:disabled),.team-edit-button:hover:not(:disabled){color:var(--theme-accent,#05665e);border-color:var(--theme-success-border,#c8e3d9);background:var(--theme-success-soft,#e5f2ec)}.row-button:active:not(:disabled),.history-open:active:not(:disabled),.team-edit-button:active:not(:disabled){color:var(--theme-accent,#055f57);border-color:var(--theme-success-border,#b6d8cb);background:var(--theme-success-soft,#dceddf)}.icon-button{width:36px;height:36px;color:var(--theme-text-muted,#637a75);background:0 0;border:1px solid #0000;border-radius:8px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.icon-button:hover:not(:disabled),.icon-button.active{color:var(--theme-accent,#087674);background:var(--theme-success-soft,#eaf4f0)}.icon-button:active:not(:disabled){color:var(--theme-accent,#086c65);background:var(--theme-success-soft,#deede5)}.text-button{min-height:32px;color:var(--theme-accent,#087674);background:0 0;border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;gap:5px;margin-top:12px;padding:5px 7px;font-size:13px;display:inline-flex}.text-button:hover:not(:disabled){color:var(--theme-accent,#05665e);background:var(--theme-surface-hover,#edf7f3)}.text-button:active:not(:disabled){background:var(--theme-success-soft,#e0f0e9)}.primary-button:disabled,.soft-button:disabled,.row-button:disabled,.history-open:disabled,.team-edit-button:disabled,.icon-button:disabled,.text-button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none;transform:none}@media (pointer:coarse){.primary-button,.soft-button,.row-button,.history-open,.team-edit-button{min-height:40px}.icon-button{width:40px;height:40px}}.form-error,.page-alert{color:var(--theme-danger,#b73944);background:var(--theme-surface-muted,#fff0f1);border:1px solid var(--theme-danger-border,#ffd6da);border-radius:8px;padding:11px 13px;font-size:14px}.login-page{background:var(--theme-surface,white);grid-template-columns:minmax(420px,1.1fr) minmax(420px,.9fr);min-height:100dvh;display:grid}.login-story{color:var(--theme-inverse-text,#fff);background:radial-gradient(circle at 75% 25%,var(--theme-highlight,#7870ff57),transparent 31%),linear-gradient(145deg,var(--theme-inverse-surface,#25263a),var(--theme-inverse-surface,#171822));flex-direction:column;justify-content:space-between;padding:42px 58px;display:flex;position:relative;overflow:hidden}.login-story:after{content:"";border:1px solid var(--theme-highlight,#ffffff14);width:380px;height:380px;box-shadow:0 0 0 80px var(--theme-highlight,#ffffff06),0 0 0 160px var(--theme-highlight,#ffffff05);border-radius:50%;position:absolute;bottom:-160px;right:-120px}.brand-mark,.mobile-brand{letter-spacing:-.02em;z-index:1;align-items:center;gap:10px;font-weight:700;display:flex;position:relative}.story-copy{z-index:1;max-width:590px;position:relative}.story-copy h1{letter-spacing:-.055em;margin:18px 0 21px;font-size:clamp(38px,4.1vw,62px);line-height:1.13}.story-copy>p{max-width:540px;color:var(--theme-inverse-text,#bfc0ca);margin:0;font-size:16px;line-height:1.9}.story-metrics{gap:48px;margin-top:48px;display:flex}.story-metrics div{gap:5px;display:grid}.story-metrics b{letter-spacing:-.04em;font-size:24px}.story-metrics span{color:var(--theme-inverse-text-muted,#9b9ca9);font-size:12px}.story-card{border:1px solid var(--theme-highlight,#ffffff1a);background:var(--theme-highlight,#ffffff0d);z-index:1;border-radius:10px;align-items:center;gap:9px;width:max-content;padding:11px 16px;font-size:12px;display:flex;position:relative}.story-card>span:last-child{color:var(--theme-inverse-text-muted,#9294a1);margin-left:10px}.status-dot{background:var(--theme-surface-hover,#a0a3b0);border-radius:50%;width:7px;height:7px;display:inline-block}.status-dot.online{background:var(--theme-success,#31c982);box-shadow:0 0 0 4px var(--theme-shadow,#31c9821f)}.login-panel{place-items:center;min-width:0;padding:50px;display:grid}.login-form{width:min(390px,100%)}.mobile-brand{margin-bottom:60px;display:none}.login-form h2{letter-spacing:-.045em;margin:11px 0 9px;font-size:32px}.form-intro{color:var(--muted);margin:0 0 30px;font-size:15px;line-height:1.75}.login-form label,.rule-builder label,.create-member label{color:var(--theme-text,#575b6d);gap:8px;margin-bottom:17px;font-size:14px;font-weight:600;display:grid}.login-form input,.rule-builder input,.rule-builder textarea,.create-member input,.create-member select{border:1px solid var(--theme-border,#dedee7);background:var(--theme-surface,#fff);border-radius:9px;outline:none;width:100%;min-height:48px;padding:0 14px;font-size:15px}.login-form input:focus,.rule-builder input:focus,.rule-builder textarea:focus{border-color:var(--theme-info-border,#aaf);box-shadow:0 0 0 3px var(--theme-shadow,#5b5bd617)}.input-icon{position:relative}.input-icon svg{color:var(--theme-text-subtle,#999cad);position:absolute;top:14px;left:13px}.input-icon input{padding-left:40px}.login-button{width:100%;min-height:46px;margin-top:9px}.login-button svg{margin-left:auto}.login-form label.login-remember{cursor:pointer;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:10px;margin:-2px 0 17px;display:grid}.login-form .login-remember input{width:18px;height:18px;min-height:18px;accent-color:var(--theme-accent,var(--accent));margin:2px 0 0;padding:0}.login-remember span{gap:3px;display:grid}.login-remember b{color:var(--theme-text,#405e5f);font-size:13px}.login-remember small{color:var(--muted);font-size:11px;font-weight:400;line-height:1.5}.demo-tip{text-align:center;color:var(--theme-text-muted,#8f92a0);margin-top:27px;font-size:12px}.secret-box{background:var(--theme-surface-muted,#f4f4ff);border:1px solid var(--theme-info-border,#dddfff);color:var(--theme-accent,var(--accent));border-radius:9px;align-items:center;gap:11px;margin-bottom:21px;padding:11px 13px;display:flex}.secret-box div{gap:2px;min-width:0;display:grid}.secret-box small{color:var(--theme-text-muted,#777b8f)}.secret-box code{text-overflow:ellipsis;font-size:12px;overflow:hidden}.app-shell{grid-template-columns:216px 1fr;height:100vh;display:grid;overflow:hidden}.sidebar{background:var(--sidebar);color:var(--theme-text-subtle,#aeb0bc);flex-direction:column;align-items:stretch;padding:18px 14px 14px;display:flex}.sidebar-brand{color:var(--theme-on-accent,white);align-items:center;gap:11px;margin-bottom:32px;padding:0 6px;display:flex}.sidebar-brand>span{background:var(--accent);border-radius:11px;place-items:center;width:40px;height:40px;display:grid}.sidebar-brand>b{font-size:16px;display:block}.sidebar nav,.sidebar-bottom{gap:6px;width:100%;display:grid}.sidebar nav a,.sidebar-bottom a,.sidebar-bottom button{color:var(--theme-text-subtle,#a7a9b5);background:0 0;border:0;border-radius:10px;justify-content:flex-start;align-items:center;gap:12px;width:100%;height:46px;padding:0 13px;font-size:14px;display:flex;position:relative}.sidebar nav a span,.sidebar-bottom span{display:block}.nav-unread-badge{min-width:21px;height:21px;color:var(--theme-on-accent,#fff);background:var(--theme-danger-solid,#e64d58);border-radius:999px;justify-content:center;align-items:center;margin-left:auto;padding:0 6px;font-size:11px;font-weight:750;line-height:1;display:inline-flex}.sidebar nav a:hover,.sidebar nav a.active,.sidebar-bottom a:hover,.sidebar-bottom button:hover{background:var(--theme-inverse-surface-raised,#2d2e3b);color:var(--theme-on-accent,white)}.sidebar nav a.active:before{content:"";background:var(--theme-info,#8e8eff);border-radius:0 3px 3px 0;width:3px;height:24px;position:absolute;left:-14px}.sidebar-bottom{margin-top:auto}.app-main{grid-template-rows:64px minmax(0,1fr);min-width:0;min-height:0;display:grid;overflow:hidden}.topbar{z-index:60;background:var(--theme-surface,#fff);border-bottom:1px solid var(--line);justify-content:flex-end;align-items:center;padding:0 20px;display:flex;position:relative;overflow:visible}.topbar>div:first-child{margin-right:18px}.presence-toggle{border:1px solid var(--theme-border,#dedfe7);height:36px;color:var(--theme-text-muted,#686c7b);background:var(--theme-surface,#fff);border-radius:10px;align-items:center;gap:7px;padding:0 11px;font-size:13px;font-weight:650;display:flex}.presence-toggle:hover{border-color:var(--theme-border,#c5c6d1);background:var(--theme-surface-hover,#fafafd)}.presence-toggle:disabled{cursor:wait;opacity:.65}.presence-toggle i{background:var(--theme-surface-hover,#a1a4af);border-radius:50%;width:8px;height:8px}.presence-toggle.online i{background:var(--theme-success,#25be78);box-shadow:0 0 0 3px var(--theme-shadow,#25be781f)}.presence-toggle.connecting{color:var(--theme-warning,#9a5a08);border-color:var(--theme-warning-border,#efd4a8);background:var(--theme-surface-muted,#fff8eb)}.presence-toggle.connecting i{background:var(--theme-warning,#e69a29);box-shadow:0 0 0 3px var(--theme-shadow,#e69a2924)}.presence-toggle.mobile{cursor:not-allowed;color:var(--theme-text-muted,#7b808c);background:var(--theme-surface-muted,#f5f6f8)}.user-chip{text-align:left;background:0 0;border:0;border-radius:11px;align-items:center;gap:9px;padding:4px 6px;display:flex}.user-chip:hover{background:var(--accent-soft)}.user-chip>span{background:var(--theme-surface-muted,#eeefff);width:36px;height:36px;color:var(--theme-accent,var(--accent));border-radius:10px;place-items:center;font-weight:700;display:grid}.user-chip div{display:grid}.user-chip b{font-size:14px}.user-chip small{color:var(--theme-text-muted,#808493);font-size:12px}.today-income-card{margin-right:15px;position:relative}.today-income-trigger{border:1px solid var(--theme-success-border,#cce8dc);min-width:208px;height:44px;color:var(--theme-success,#174e3c);background:linear-gradient(135deg,var(--theme-surface-muted,#f3fbf7),var(--theme-surface-muted,#f8fcfa));box-shadow:0 5px 16px var(--theme-shadow,#1b895d12);border-radius:13px;align-items:center;gap:9px;padding:4px 10px 4px 8px;display:flex}.today-income-trigger:hover,.today-income-trigger.active{border-color:var(--theme-success-border,#9fd8c2);background:var(--theme-surface-hover,#effaf5);box-shadow:0 7px 20px var(--theme-shadow,#1b895d1f)}.today-income-icon{width:32px;height:32px;color:var(--theme-success,#0c8d5b);background:var(--theme-success-soft,#dff5e9);border-radius:10px;flex:none;place-items:center;display:grid}.today-income-copy{text-align:left;min-width:85px;line-height:1.1;display:grid}.today-income-copy small{color:var(--theme-text-muted,#68837a);white-space:nowrap;font-size:10px;font-weight:650}.today-income-copy strong{color:var(--theme-success,#087b51);letter-spacing:-.02em;font-variant-numeric:tabular-nums;margin-top:3px;font-size:16px;line-height:1;animation:.34s ease-out income-number-roll}.today-income-status{color:var(--theme-text-muted,#789088);white-space:nowrap;align-items:center;gap:5px;margin-left:auto;font-size:10px;display:flex}.today-income-status i{background:var(--theme-surface-active,#9eaaa6);border-radius:50%;width:6px;height:6px}.today-income-status i.growing{background:var(--theme-success,#28b879);box-shadow:0 0 0 3px var(--theme-shadow,#28b8791f);animation:1.8s ease-in-out infinite income-pulse}.today-income-trigger>svg{color:var(--theme-text-muted,#769087);flex:none;transition:transform .2s}.today-income-trigger>svg.rotated{transform:rotate(180deg)}.today-income-piece-pulse{z-index:2;color:var(--theme-success,#08794f);background:var(--theme-success-soft,#dcf7e9);border:1px solid var(--theme-success-border,#b9eacb);box-shadow:0 7px 16px var(--theme-shadow,#107e5224);pointer-events:none;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:750;animation:2.4s ease-out forwards income-piece-float;position:absolute;top:-18px;right:18px}.today-income-popover{z-index:70;border:1px solid var(--theme-border,#dce9e5);width:390px;color:var(--ink);background:var(--theme-surface,#fff);box-shadow:0 24px 64px var(--theme-accent-shadow,#08373033);border-radius:18px;padding:20px;position:absolute;top:52px;right:0}.today-income-popover:before{content:"";border-left:1px solid var(--theme-border,#dce9e5);border-top:1px solid var(--theme-border,#dce9e5);background:var(--theme-surface,#fff);width:11px;height:11px;position:absolute;top:-7px;right:28px;transform:rotate(45deg)}.today-income-popover>header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.today-income-popover h3{color:var(--theme-text,#183e35);letter-spacing:-.035em;margin:4px 0 0;font-size:20px}.today-income-popover>header button{width:32px;height:32px;color:var(--theme-text-muted,#7d918b);background:var(--theme-surface-muted,#f5f8f7);border:0;border-radius:9px;place-items:center;display:grid}.today-income-total{color:var(--theme-on-accent,#fff);background:linear-gradient(135deg,var(--theme-accent-solid,#087d58),var(--theme-success-solid,#13a66f));box-shadow:0 12px 26px var(--theme-shadow,#0d8e5d33);border-radius:14px;justify-content:space-between;align-items:flex-end;gap:12px;margin:17px 0 14px;padding:15px 16px;display:flex}.today-income-total>div{line-height:1;display:grid}.today-income-total small{color:var(--theme-on-accent,#c7efdf);font-size:11px}.today-income-total strong{letter-spacing:-.045em;font-variant-numeric:tabular-nums;margin-top:8px;font-size:28px}.today-income-total>span{color:var(--theme-on-accent,#d9f6ea);white-space:nowrap;align-items:center;gap:4px;padding-bottom:3px;font-size:10px;display:flex}.today-income-breakdown{margin:0;display:grid}.today-income-breakdown>div{border-bottom:1px solid var(--theme-border,#edf2f0);justify-content:space-between;align-items:center;gap:14px;min-height:39px;display:flex}.today-income-breakdown dt{color:var(--theme-text-muted,#687f78);font-size:12px}.today-income-breakdown dd{color:var(--theme-text,#34564d);font-variant-numeric:tabular-nums;margin:0;font-size:12px;font-weight:700}.today-income-breakdown dd.positive{color:var(--theme-success,#0b8a5a)}.today-income-breakdown dd.negative{color:var(--theme-danger,#d2525c)}.today-income-team{border-top:1px solid var(--theme-border,#e7efec);margin-top:15px;padding-top:14px}.today-income-team>div{justify-content:space-between;align-items:flex-end;gap:12px;display:flex}.today-income-team>div>b{color:var(--theme-text,#34564d);font-size:12px}.today-income-team>div>small{color:var(--theme-text-muted,#869891);font-size:9px}.today-income-team ul{max-height:164px;margin:8px 0 0;padding:0 5px 0 0;list-style:none;overflow:auto}.today-income-team li{justify-content:space-between;align-items:center;gap:12px;min-height:51px;display:flex}.today-income-team li>span{align-items:center;gap:9px;min-width:0;display:flex}.today-income-team li i{width:30px;height:30px;color:var(--theme-accent,#087d67);background:var(--theme-accent-soft,#e7f5f1);border-radius:9px;flex:none;place-items:center;font-size:12px;font-style:normal;font-weight:750;display:grid}.today-income-team li span span{min-width:0;display:grid}.today-income-team li b{color:var(--theme-text,#34564d);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.today-income-team li small{color:var(--theme-text-muted,#8a9b95);font-size:9px}.today-income-team li>strong{color:var(--theme-success,#087b51);font-variant-numeric:tabular-nums;font-size:12px}.today-income-popover>footer{color:var(--theme-text-muted,#8a9994);background:var(--theme-surface-muted,#f7faf9);border-radius:0 0 18px 18px;justify-content:space-between;align-items:center;gap:10px;margin:14px -20px -20px;padding:12px 20px;font-size:10px;display:flex}.today-income-popover>footer a{color:var(--theme-accent,#087b66);white-space:nowrap;font-weight:700}.today-income-empty{color:var(--theme-text-muted,#81938d);text-align:center;padding:42px 12px;font-size:12px}@keyframes income-number-roll{0%{opacity:.45;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes income-pulse{50%{opacity:.48;transform:scale(.82)}}@keyframes income-piece-float{0%{opacity:0;transform:translateY(8px)scale(.9)}18%{opacity:1;transform:translateY(0)scale(1)}75%{opacity:1}to{opacity:0;transform:translateY(-13px)scale(.96)}}.account-modal-backdrop{z-index:100;background:var(--theme-overlay,#071f207a);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);place-items:center;padding:20px;display:grid;position:fixed;inset:0}.account-modal{background:var(--theme-surface,#fff);width:min(560px,100%);box-shadow:0 28px 80px var(--theme-accent-shadow,#0426273d);border-radius:18px;gap:16px;padding:24px;display:grid}.account-modal header{justify-content:space-between;align-items:flex-start;gap:15px;display:flex}.account-modal h2{letter-spacing:-.035em;margin:4px 0 0;font-size:24px}.account-modal>p{color:var(--muted);margin:-5px 0 0;font-size:13px}.account-modal label{color:var(--theme-text,#3b5657);gap:7px;font-size:13px;font-weight:650;display:grid}.account-modal input{border:1px solid var(--line);border-radius:10px;outline:none;width:100%;min-height:46px;padding:0 13px}.account-modal input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--theme-accent-shadow,#018b8d1a)}.account-modal footer{justify-content:flex-end;gap:9px;margin-top:2px;display:flex}.account-password-message{border-radius:9px;padding:10px 12px;font-size:13px}.account-password-message.error{color:var(--theme-danger,#b73944);background:var(--theme-surface-muted,#fff0f1);border:1px solid var(--theme-danger-border,#ffd6da)}.account-password-message.success{color:var(--theme-success,#147a50);background:var(--theme-success-soft,#edf9f3);border:1px solid var(--theme-success-border,#c9ebda)}.account-payment-profile{border:1px solid var(--theme-border,#d7e7e5);background:var(--theme-surface-muted,#f9fcfb);border-radius:13px;overflow:hidden}.account-payment-profile>header{border-bottom:1px solid var(--theme-border,#e2eceb);background:var(--theme-accent-soft,#edf7f5);align-items:center;padding:12px 13px}.account-payment-profile>header>div{color:var(--theme-accent,#087f81);align-items:center;gap:8px;display:flex}.account-payment-profile>header span{gap:1px;display:grid}.account-payment-profile>header b{color:var(--theme-text,#315657);font-size:12px}.account-payment-profile>header small{color:var(--theme-text-muted,#819596);font-size:9px}.account-payment-profile>header em{color:var(--theme-accent,#087779);background:var(--theme-accent-soft,#dcefeb);border-radius:7px;padding:4px 7px;font-size:10px;font-style:normal;font-weight:800}.account-payment-profile-body{grid-template-columns:118px 1fr;align-items:center;gap:14px;padding:13px;display:grid}.account-payment-profile-body>img,.account-payment-profile-body>div:first-child{object-fit:contain;border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,#fff);border-radius:11px;width:118px;height:118px}.account-payment-profile-body>div:first-child{color:var(--theme-text-muted,#92a3a3);align-content:center;place-items:center;gap:6px;font-size:10px;display:grid}.account-payment-profile-body>div:last-child{gap:10px;display:grid}.account-payment-profile-body p{color:var(--theme-text-muted,#728687);margin:0;font-size:11px;line-height:1.55}.account-payment-profile-body label{border:1px solid var(--theme-accent-border,#9bceca);width:max-content;min-height:36px;color:var(--theme-accent,#087779);background:var(--theme-accent-soft,#edf8f6);cursor:pointer;border-radius:9px;align-items:center;gap:6px;padding:0 11px;font-size:11px;font-weight:800;display:inline-flex}.account-payment-profile-body label input{display:none}.account-payment-message{color:var(--theme-accent,#087759);margin:0;padding:0 13px 12px;font-size:11px}.account-password-heading{color:var(--theme-accent,#087f81);align-items:center;gap:8px;padding-top:2px;display:flex}.account-password-heading>div{gap:1px;display:grid}.account-password-heading b{color:var(--theme-text,#315657);font-size:12px}.account-password-heading small{color:var(--theme-text-muted,#819596);font-size:9px}.page-loading{min-height:100vh;color:var(--theme-text-muted,#858899);align-content:center;place-items:center;gap:13px;font-size:13px;display:grid}.loading-orbit{border:3px solid var(--theme-info-border,#e5e5f0);border-top-color:var(--accent);border-radius:50%;width:29px;height:29px;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.inbox-layout{background:var(--theme-surface,#fff);grid-template-columns:clamp(250px,22vw,360px) minmax(420px,1fr) clamp(280px,20vw,320px);height:100%;min-height:0;display:grid;overflow:hidden}.conversation-list-panel{border-right:1px solid var(--line);grid-template-rows:auto auto auto minmax(0,1fr);min-height:0;display:grid;overflow:hidden}.panel-heading{justify-content:space-between;align-items:center;height:92px;padding:20px 18px 12px 22px;display:flex}.panel-heading h1{letter-spacing:-.03em;margin:4px 0 0;font-size:24px}.inbox-tabs{border-bottom:1px solid var(--line);gap:4px;padding:0 14px;display:flex}.inbox-tabs button{color:var(--theme-text-muted,#747888);background:0 0;border:0;align-items:center;gap:7px;padding:12px 11px 13px;font-size:14px;display:inline-flex;position:relative}.inbox-tabs button.active{color:var(--theme-accent,var(--accent));font-weight:600}.inbox-tabs button.active:after{content:"";background:var(--accent);border-radius:2px;height:2px;position:absolute;bottom:-1px;left:8px;right:8px}.tab-unread-badge{min-width:20px;height:20px;color:var(--theme-on-accent,#fff);background:var(--theme-danger-solid,#e64d58);border-radius:999px;justify-content:center;align-items:center;padding:0 6px;font-size:10px;font-weight:750;line-height:1;display:inline-flex}.list-tools{grid-template-columns:1fr 94px;gap:7px;padding:12px 13px;display:grid}.list-tools.single{grid-template-columns:1fr}.search-box{background:var(--theme-surface-muted,#f4f4f7);border:1px solid #0000;border-radius:8px;align-items:center;gap:8px;padding:0 9px;display:flex}.search-box:focus-within{border-color:var(--theme-info-border,#d8d8ef);background:var(--theme-surface,white)}.search-box svg{color:var(--theme-text-muted,#9699a7);flex:none}.search-box input{background:0 0;border:0;outline:none;width:100%;min-width:0;height:40px;font-size:14px}.list-tools select{border:1px solid var(--line);color:var(--theme-text-muted,#5f6374);background:var(--theme-surface,white);border-radius:8px;padding:0 8px;font-size:13px}.conversation-list{padding:0 7px 10px;overflow-y:auto}.conversation-row{background:var(--theme-surface,white);text-align:left;border:0;border-radius:11px;grid-template-columns:44px 1fr;gap:11px;width:100%;padding:14px 11px;display:grid}.conversation-row:hover{background:var(--theme-surface-hover,#f8f8fa)}.conversation-row.selected{background:var(--theme-surface-muted,#f0f0ff)}.channel-avatar{background:var(--theme-surface-muted,#f0f0f4);width:44px;height:44px;color:var(--theme-text-muted,#6f7385);border-radius:12px;flex:none;place-items:center;font-size:15px;font-weight:700;display:grid}.channel-avatar.website{background:var(--theme-info-soft,#eaf5ff);color:var(--theme-info,#3b83ba)}.channel-avatar.telegram{background:var(--theme-info-soft,#e9f7ff);color:var(--theme-info,#2a9ed5)}.channel-avatar.wecom{background:var(--theme-success-soft,#eaf9f2);color:var(--theme-success,#1a9d62)}.row-main{min-width:0}.row-title{justify-content:space-between;align-items:center;gap:7px;display:flex}.row-title b{text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}.row-title-status{flex:none;align-items:center;gap:7px;display:flex}.row-title time{color:var(--theme-text-muted,#8d909d);flex:none;font-size:12px}.conversation-unread{min-width:22px;height:22px;color:var(--theme-on-accent,#fff);background:var(--theme-danger-solid,#e64d58);box-shadow:0 4px 10px var(--theme-shadow,#d0303d33);border-radius:999px;justify-content:center;align-items:center;padding:0 6px;font-size:11px;font-weight:750;line-height:1;display:inline-flex}.row-main>p{color:var(--theme-text-muted,#686c7d);white-space:nowrap;text-overflow:ellipsis;margin:5px 0 8px;font-size:13px;overflow:hidden}.row-meta{align-items:center;gap:6px;height:17px;display:flex}.row-meta>span{color:var(--theme-text-muted,#858895);text-transform:uppercase;font-size:11px}.row-meta i,.row-meta em{border-radius:5px;padding:2px 6px;font-size:11px;font-style:normal}.row-meta em{color:var(--theme-warning,#c17418);background:var(--theme-warning-soft,#fff4e5);margin-left:auto}.row-meta .follow-up-badge,.history-record-flags .follow-up-badge{color:var(--theme-warning,#9a6216);background:var(--theme-warning-soft,#fff1d5)}.row-meta .non-billable-badge,.history-record-flags .non-billable-badge{color:var(--theme-text-muted,#64717b);background:var(--theme-info-soft,#edf1f3)}.empty-list{color:var(--theme-text-subtle,#acafbb);text-align:center;justify-items:center;gap:8px;padding:60px 20px;display:grid}.empty-list b{color:var(--theme-text-muted,#6f7282);font-size:13px}.empty-list span{font-size:11px}.chat-panel{background:var(--theme-surface-muted,#fafafa);grid-template-rows:auto minmax(0,1fr) auto;min-width:0;height:100%;min-height:0;display:grid;overflow:hidden}.chat-header{background:var(--theme-surface,white);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:14px;height:74px;padding:0 17px 0 21px;display:flex}.chat-customer{align-items:center;gap:10px;min-width:0;display:flex}.chat-customer h2{margin:0;font-size:17px}.chat-customer p{color:var(--theme-text-muted,#7f8393);align-items:center;gap:6px;margin:3px 0 0;font-size:12px;display:flex}.chat-actions{align-items:center;gap:6px;display:flex}.follow-up-action.active{color:var(--theme-warning,#9a6216);border-color:var(--theme-warning-border,#e9c77e);background:var(--theme-warning-soft,#fff5df)}.transfer-control{position:relative}.transfer-button{border:1px solid var(--line);background:var(--theme-surface,white);height:40px;color:var(--theme-text-muted,#5f6374);border-radius:9px;align-items:center;gap:7px;padding:0 11px;font-size:13px;font-weight:650;display:flex}.transfer-button:hover,.transfer-button.active{color:var(--theme-accent,var(--accent));border-color:var(--theme-accent-border,#a9d8d5);background:var(--accent-soft)}.transfer-button svg:last-child{transition:transform .18s}.transfer-button svg:last-child.open{transform:rotate(180deg)}.transfer-menu{z-index:20;border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,#fff);width:276px;box-shadow:0 16px 38px var(--theme-accent-shadow,#0c424326);border-radius:14px;position:absolute;top:calc(100% + 9px);right:0;overflow:hidden}.transfer-menu>header{border-bottom:1px solid var(--theme-border,#e6eeed);background:var(--theme-surface-muted,#f8fbfa);justify-content:space-between;align-items:flex-start;padding:14px 14px 11px;display:flex}.transfer-menu>header>div{gap:3px;display:grid}.transfer-menu>header b{color:var(--theme-text,#294748);font-size:14px}.transfer-menu>header span{color:var(--theme-text-muted,#819293);font-size:11px}.transfer-menu>header>button{width:28px;height:28px;color:var(--theme-text-muted,#708485);background:0 0;border:0;border-radius:8px;place-items:center;display:grid}.transfer-menu>header>button:hover{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e7f4f3)}.transfer-user-list{max-height:300px;padding:7px;overflow-y:auto}.transfer-user-list>button{width:100%;min-height:54px;color:var(--theme-text,#3d5455);text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:9px;padding:7px 9px;display:flex;position:relative}.transfer-user-list>button:hover:not(:disabled){background:var(--theme-surface-hover,#edf7f6)}.transfer-user-list>button:disabled{cursor:default;opacity:.68}.transfer-avatar{width:34px;height:34px;color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#dff1f0);border-radius:10px;flex:none;place-items:center;font-weight:750;display:grid}.transfer-user{flex:1;gap:2px;min-width:0;display:grid}.transfer-user b{color:var(--theme-text,#294748);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.transfer-user small{color:var(--theme-text-muted,#879697);font-size:11px}.transfer-status{color:var(--theme-text-muted,#8a999a);align-items:center;gap:4px;font-size:11px;display:flex}.transfer-status i{background:var(--theme-surface-hover,#aab5b5);border-radius:50%;width:6px;height:6px}.transfer-status.online{color:var(--theme-accent,#198363)}.transfer-status.online i{background:var(--theme-success,#25b985)}.transfer-user-list em{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e3f4f2);border-radius:6px;padding:3px 6px;font-size:10px;font-style:normal}.mobile-back{display:none}.messages{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;padding:24px clamp(18px,5vw,58px);overflow-y:auto}.history-marker{width:max-content;color:var(--theme-text-muted,#858996);background:var(--theme-surface-muted,#f0f0f3);border-radius:12px;margin:0 auto 25px;padding:6px 11px;font-size:12px}.load-earlier-messages{border:1px solid var(--theme-accent-border,#b9d7d4);background:var(--theme-surface,#fff);color:var(--theme-accent,#018b8d);cursor:pointer;border-radius:999px;align-self:center;margin:0 auto 14px;padding:7px 15px;font-size:13px;font-weight:700;display:block}.load-earlier-messages:hover:not(:disabled){background:var(--theme-accent-soft,#e9f6f4);border-color:var(--theme-accent-border,#75b9b5)}.load-earlier-messages:disabled{opacity:.6;cursor:wait}.load-earlier-messages.compact{margin-bottom:18px;padding:5px 12px;font-size:11px;font-weight:650}.load-previous-session{border:1px solid var(--theme-accent-border,#9bcfcb);width:min(390px,100%);min-height:54px;color:var(--theme-accent,#007b7d);background:var(--theme-accent-soft,#eef9f8);box-shadow:0 5px 14px var(--theme-accent-shadow,#018b8d0f);border-radius:13px;flex-direction:column;justify-content:center;align-items:center;gap:2px;margin:0 auto 16px;font-size:13px;font-weight:750;display:flex}.load-previous-session:hover:not(:disabled){border-color:var(--theme-accent-border,#018b8d);background:var(--theme-accent-soft,#e1f4f2)}.load-previous-session:disabled{opacity:.65;cursor:wait}.load-previous-session small{color:var(--theme-text-muted,#718e8e);font-size:10px;font-weight:500}.previous-sessions-complete{width:max-content;color:var(--theme-text-muted,#809192);background:var(--theme-surface-muted,#edf2f1);border-radius:999px;margin:0 auto 16px;padding:5px 11px;font-size:10px}.previous-session{border-bottom:1px dashed var(--theme-border,#cbdcda);margin:0 0 24px;padding-bottom:7px}.previous-session-divider{border:1px solid var(--theme-border,#d6e6e4);background:var(--theme-surface-muted,#f6faf9);text-align:left;border-radius:12px;justify-content:center;align-items:center;gap:10px;width:min(520px,100%);margin:0 auto 20px;padding:10px 13px;display:flex}.previous-session-divider>span{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#dff2f0);border-radius:7px;flex:none;padding:4px 7px;font-size:10px;font-weight:800}.previous-session-divider>div{gap:1px;min-width:0;display:grid}.previous-session-divider b{color:var(--theme-text,#456263);font-size:11px;font-weight:700}.previous-session-divider small{color:var(--theme-text-muted,#7c9091);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.current-session-marker{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e2f3f1)}.follow-up-readonly{min-height:78px;color:var(--theme-warning,#80520f);background:var(--theme-warning-soft,#fff8e8);border-top:1px solid var(--theme-warning-border,#f0dcae);justify-content:center;align-items:center;gap:11px;padding:14px 20px;display:flex}.follow-up-readonly>div{gap:3px;display:grid}.follow-up-readonly b{font-size:14px}.follow-up-readonly small{color:var(--theme-text-muted,#8b795f);font-size:11px}.message-line{align-items:flex-end;gap:8px;margin:0 0 17px;display:flex}.message-line.outbound{justify-content:flex-end}.message-avatar{background:var(--theme-surface-muted,#e6e7ed);width:32px;height:32px;color:var(--theme-text-muted,#65697a);border-radius:9px;flex:none;place-items:center;font-size:12px;font-weight:700;display:grid}.message-wrap{max-width:min(68%,560px);display:grid}.message-line.outbound .message-wrap{justify-items:end}.message-wrap>small{color:var(--theme-text-muted,#7f8391);margin:0 0 5px 4px;font-size:11px}.message-bubble{border:1px solid var(--theme-border,#e7e7eb);background:var(--theme-surface,white);white-space:pre-wrap;box-shadow:0 2px 5px var(--theme-shadow,#1e203006);border-radius:5px 14px 14px;padding:11px 14px;font-size:15px;line-height:1.7}.message-line.outbound .message-bubble{color:var(--theme-on-accent,white);background:var(--accent);box-shadow:0 6px 15px var(--theme-shadow,#5b5bd629);border:0;border-radius:14px 5px 14px 14px}.message-reply-quote{border-left:3px solid var(--theme-accent-border,#80c7c2);min-width:min(300px,48vw);color:var(--theme-text,#416869);background:var(--theme-accent-soft,#eef8f7);border-radius:7px;gap:2px;margin:-3px -5px 8px;padding:7px 9px;line-height:1.35;display:grid}.message-reply-quote b{color:var(--theme-accent,#087f81);font-size:11px}.message-reply-quote span{text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.message-line.outbound .message-reply-quote{border-color:var(--theme-highlight,#ffffffb8);color:var(--theme-on-accent,#ffffffd1);background:var(--theme-highlight,#ffffff24)}.message-line.outbound .message-reply-quote b{color:var(--theme-on-accent,white)}.message-reply-action{color:var(--theme-text-muted,#748889);background:0 0;border:0;border-radius:7px;justify-self:start;align-items:center;gap:4px;margin-top:5px;padding:3px 7px;font-size:10px;display:flex}.message-line.outbound .message-reply-action{justify-self:end}.message-reply-action:hover{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e5f3f1)}.message-line .message-bubble.deleted{color:var(--theme-text-muted,#5d6170);background:var(--theme-surface-muted,#f1f1f3);border:1px solid var(--theme-border,#dddfe6);box-shadow:none;gap:5px;font-style:normal;display:grid}.retained-message-label{color:var(--theme-warning,#8a5c18);font-size:11px;font-weight:700;line-height:1.3}.message-wrap>time{color:var(--theme-text-muted,#898d9a);margin-top:5px;font-size:11px}.customer-read-state.unread{color:var(--theme-text-muted,#999ca8)}.customer-read-state.read{color:var(--theme-success,#4b8f72);font-weight:650}.message-line.outbound.failed .message-bubble,.history-record-message.outbound.failed .history-record-bubble{color:var(--theme-danger,#9e2430);border:1px solid var(--theme-danger-border,#e35c68);background:var(--theme-surface-muted,#fff1f2);box-shadow:0 8px 22px var(--theme-shadow,#be2d3a21)}.message-send-failure{border:1px solid var(--theme-danger-border,#efb0b6);width:100%;color:var(--theme-danger,#b32d39);background:var(--theme-surface-muted,#fff5f5);box-shadow:0 4px 12px var(--theme-shadow,#b42b3714);border-radius:10px;align-items:flex-start;gap:8px;padding:9px 10px;display:flex}.message-send-failure>svg{flex:none;margin-top:1px}.message-send-failure>span{gap:2px;min-width:0;display:grid}.message-send-failure b{font-size:12px;line-height:1.35}.message-send-failure small{color:var(--theme-danger,#9b5960);font-size:10px;line-height:1.45}.message-wrap>time.failed,.history-record-message time.failed,.message-delivery-status.failed{color:var(--theme-danger,#b32d39);font-weight:750}.attachment{background:var(--theme-highlight,#ffffff26);width:100%;min-width:230px;color:inherit;text-align:left;border:0;border-radius:8px;align-items:center;gap:8px;margin-top:7px;padding:8px;display:flex}.attachment span{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.attachment small{opacity:.7}.message-audio{background:var(--theme-highlight,#ffffff2e);border-radius:12px;align-items:center;gap:10px;min-width:260px;margin-top:4px;padding:8px 10px;display:flex}.message-audio>svg{flex:none}.message-audio audio{width:240px;height:34px;display:block}.message-audio span{opacity:.78;flex:1;font-size:13px}.message-audio button{color:inherit;background:var(--theme-highlight,#ffffff38);cursor:pointer;border:0;border-radius:8px;align-items:center;gap:5px;padding:6px 9px;display:inline-flex}.history-record-message.inbound .message-audio,.message.inbound .message-audio{background:var(--theme-accent-soft,#018b8d14)}.composer-wrap{z-index:2;background:var(--theme-surface,white);border-top:1px solid var(--line);min-height:0;padding:10px 14px 13px;position:relative}.composer{border:1px solid var(--theme-border,#dedee7);background:var(--theme-surface,white);box-shadow:0 4px 16px var(--theme-shadow,#1c1e3709);border-radius:11px;overflow:hidden}.composer:focus-within{border-color:var(--theme-info-border,#bfbfff)}.composer textarea{resize:none;border:0;outline:none;width:100%;min-height:68px;max-height:180px;padding:13px 14px 6px;font-size:15px;line-height:1.6}.composer textarea:disabled{background:var(--theme-surface-muted,#f7f7f8)}.selected-message-reply{border:1px solid var(--theme-border,#c7e0dd);color:var(--theme-text,#347071);background:var(--theme-accent-soft,#eff8f7);border-radius:10px;grid-template-columns:20px minmax(0,1fr) 27px;align-items:center;gap:8px;margin:8px 9px 0;padding:8px 7px 8px 10px;display:grid;position:relative}.selected-message-reply>svg{color:var(--theme-accent,#087f81)}.selected-message-reply>div{gap:1px;min-width:0;display:grid}.selected-message-reply b{color:var(--theme-text,#285c5d);font-size:11px}.selected-message-reply span{color:var(--theme-text-muted,#71898a);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.selected-message-reply>button{width:25px;height:25px;color:var(--theme-text-muted,#668182);background:var(--theme-accent-soft,#dfeeed);border:0;border-radius:7px;place-items:center;display:grid}.composer-actions{justify-content:space-between;align-items:center;height:44px;padding:0 8px;display:flex}.composer-actions>div{align-items:center;display:flex}.composer-actions span{color:var(--theme-text-muted,#9094a2);font-size:11px}.send-button{background:var(--accent);height:36px;color:var(--theme-on-accent,white);border:0;border-radius:8px;align-items:center;gap:6px;padding:0 14px;font-size:13px;font-weight:600;display:flex}.send-button:disabled{opacity:.45}.quick-menu{overscroll-behavior:contain;scrollbar-gutter:stable;background:var(--theme-surface,white);border:1px solid var(--line);max-height:min(420px,100dvh - 190px);box-shadow:var(--shadow);z-index:5;border-radius:10px;padding:5px;position:absolute;bottom:100%;left:14px;right:14px;overflow-y:auto}.quick-menu button{background:var(--theme-surface,white);text-align:left;border:0;border-radius:8px;grid-template-columns:34px 1fr;align-items:center;gap:9px;width:100%;padding:8px;display:grid}.quick-menu button:hover{background:var(--theme-surface-hover,#f5f5fa)}.quick-menu-icon{width:32px;height:32px;color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e2f3f2);border-radius:9px;place-items:center;display:grid}.quick-menu button>span:last-child{gap:2px;min-width:0;display:grid}.quick-menu b{color:var(--theme-text,#355455);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.quick-menu small{color:var(--theme-text-muted,#7e9091);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.selected-quick-reply{border:1px solid var(--theme-border,#cce4e1);background:var(--theme-accent-soft,#eff8f7);border-radius:11px;grid-template-columns:minmax(130px,auto) 1fr;align-items:center;gap:11px;margin:9px 10px 0;padding:9px 38px 9px 11px;display:grid;position:relative}.selected-quick-reply>div:first-child{gap:2px;display:grid}.selected-quick-reply b{color:var(--theme-text,#285c5d);font-size:12px}.selected-quick-reply span{color:var(--theme-text-muted,#789091);font-size:10px}.selected-quick-reply>button{width:25px;height:25px;color:var(--theme-text-muted,#668182);background:var(--theme-accent-soft,#dfeeed);border:0;border-radius:7px;place-items:center;display:grid;position:absolute;top:7px;right:7px}.selected-quick-reply-images{gap:6px;min-width:0;display:flex;overflow-x:auto}.selected-quick-reply-images .message-image-button{cursor:zoom-in;border-radius:8px;flex:none;width:46px;height:46px;margin:0}.selected-quick-reply-images .message-image{object-fit:cover;border-radius:8px;width:100%;height:100%}.selected-quick-reply-images .message-image-placeholder{min-width:46px;min-height:46px;margin:0;padding:4px}.selected-quick-reply-images .message-image-placeholder span{display:none}.composer-error{color:var(--theme-danger,#b73944);background:var(--theme-surface-muted,#fff0f1);border-radius:7px;justify-content:space-between;margin-bottom:7px;padding:8px 11px;font-size:12px;display:flex}.composer-error button{color:inherit;background:0 0;border:0}.takeover-composer{border:1px solid var(--theme-border,#d5e3e1);background:linear-gradient(135deg,var(--theme-surface-muted,#f6fbfa),var(--theme-accent-soft,#edf8f7));min-height:112px;box-shadow:0 6px 22px var(--theme-accent-shadow,#1246470e);border-radius:14px;justify-content:space-between;align-items:center;gap:24px;padding:18px 22px;display:flex}.takeover-composer>div{align-items:center;gap:12px;min-width:0;display:flex}.takeover-composer>div>span{width:42px;height:42px;color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#dff2f0);border-radius:12px;flex:none;place-items:center;display:grid}.takeover-composer p{gap:3px;margin:0;display:grid}.takeover-composer p b{color:var(--theme-text,#294748);font-size:14px}.takeover-composer p small{color:var(--theme-text-muted,#7d9191);font-size:12px}.takeover-composer>button{min-width:174px;height:43px;color:var(--theme-on-accent,white);background:linear-gradient(135deg,var(--theme-accent-solid,#018b8d),var(--theme-accent-solid,#00777a));box-shadow:0 7px 17px var(--theme-accent-shadow,#018b8d33);border:0;border-radius:11px;justify-content:center;align-items:center;gap:7px;padding:0 18px;font-size:14px;font-weight:700;display:flex}.takeover-composer>button:hover:not(:disabled){box-shadow:0 9px 21px var(--theme-accent-shadow,#018b8d40);transform:translateY(-1px)}.takeover-composer>button:disabled{cursor:not-allowed;opacity:.55}.empty-chat{text-align:center;color:var(--theme-text-muted,#8f92a1);grid-row:1/-1;place-self:center;max-width:300px}.empty-chat>div{background:var(--theme-surface-muted,#eeeefe);width:62px;height:62px;color:var(--theme-accent,var(--accent));border-radius:18px;place-items:center;margin:auto;display:grid}.empty-chat h2{color:var(--theme-text,#424557);margin:16px 0 7px;font-size:20px}.empty-chat p{font-size:14px;line-height:1.7}.contact-panel{border-left:1px solid var(--line);background:var(--theme-surface,white);min-height:0;overflow-y:auto}.contact-profile{border-bottom:1px solid var(--line);justify-items:center;padding:27px 18px 21px;display:grid}.profile-avatar{width:52px;height:52px;color:var(--theme-on-accent,white);background:linear-gradient(145deg,var(--theme-info-solid,#6e6ee4),var(--theme-info-solid,#4a49bd));box-shadow:0 8px 18px var(--theme-shadow,#5b5bd638);border-radius:15px;place-items:center;font-size:18px;font-weight:700;display:grid}.contact-profile h3{margin:12px 0 3px;font-size:17px}.contact-profile p{color:var(--theme-text-muted,#7f8392);margin:0;font-size:12px}.contact-section{border-bottom:1px solid var(--line);padding:17px 16px}.section-title{color:var(--theme-text,#505464);justify-content:space-between;align-items:center;margin-bottom:12px;font-size:13px;font-weight:700;display:flex}.section-title svg{color:var(--theme-text-subtle,#a0a3af)}.favorite-replies-section{background:var(--theme-surface-muted,#f8fbfa)}.favorite-replies-section .section-title svg{color:var(--theme-warning,#ba8c24);fill:var(--theme-warning,#fff1c8)}.favorite-reply-list{overscroll-behavior:contain;scrollbar-gutter:stable;gap:8px;max-height:300px;display:grid;overflow-y:auto}.favorite-reply-list>button{border:1px solid var(--theme-accent-border,#d8e8e6);width:100%;min-height:54px;color:var(--theme-text,#385859);background:var(--theme-surface,#fff);text-align:left;box-shadow:0 3px 10px var(--theme-accent-shadow,#12464709);border-radius:11px;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px;display:grid}.favorite-reply-list>button:hover:not(:disabled){border-color:var(--theme-accent-border,#8dc8c4);background:var(--theme-surface-hover,#eff9f7);box-shadow:0 6px 15px var(--theme-accent-shadow,#12464712);transform:translateY(-1px)}.favorite-reply-list>button:disabled{cursor:not-allowed;opacity:.58;box-shadow:none}.favorite-reply-list>button>span{width:30px;height:30px;color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e2f3f1);border-radius:9px;place-items:center;display:grid}.favorite-reply-list>button>div{gap:2px;min-width:0;display:grid}.favorite-reply-list b,.favorite-reply-list small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.favorite-reply-list b{color:var(--theme-text,#294748);font-size:12px}.favorite-reply-list small{color:var(--theme-text-muted,#7e9191);font-size:10px}.favorite-reply-list em{border-left:1px solid var(--theme-border,#c9dedd);color:var(--theme-accent,#087f81);padding-left:8px;font-size:10px;font-style:normal;font-weight:750}.favorite-reply-empty{border:1px dashed var(--theme-border,#cbdedc);color:var(--theme-text-muted,#7c9091);background:var(--theme-surface,#fff);border-radius:10px;margin:0;padding:11px;font-size:11px;line-height:1.6}.identity-row{grid-template-columns:41px 1fr;align-items:center;margin-bottom:10px;display:grid}.identity-row>span{background:var(--theme-info-soft,#f0f0f6);width:36px;height:30px;color:var(--theme-text-muted,#6d7080);border-radius:7px;place-items:center;font-size:11px;display:grid}.identity-row div{display:grid}.identity-row b{font-size:13px}.identity-row small{color:var(--theme-text-muted,#858895);font-size:11px}.visitor-details{gap:9px;margin:0;display:grid}.visitor-details>div{grid-template-columns:76px minmax(0,1fr);align-items:start;gap:8px;display:grid}.visitor-details dt{color:var(--theme-text-muted,#8a8e9c);font-size:11px}.visitor-details dd{color:var(--theme-text,#4f5363);word-break:break-word;margin:0;font-size:12px;line-height:1.45}.user-agent-details{color:var(--theme-text-muted,#7e8290);margin-top:12px;font-size:11px}.user-agent-details summary{cursor:pointer}.user-agent-details code{background:var(--theme-surface-muted,#f5f5f7);color:var(--theme-text-muted,#666a79);word-break:break-all;white-space:pre-wrap;border-radius:7px;margin-top:7px;padding:8px;line-height:1.5;display:block}.retention-card{color:var(--theme-success,#35624d);background:var(--theme-success-soft,#edf8f2);border-radius:9px;align-items:flex-start;gap:9px;padding:11px;display:flex}.retention-card svg{flex:none;margin-top:1px}.retention-card div{gap:2px;display:grid}.retention-card b{font-size:12px}.retention-card span{color:var(--theme-text-muted,#5f7c6e);font-size:11px;line-height:1.5}.notes{gap:8px;max-height:160px;display:grid;overflow-y:auto}.notes>div{border-left:2px solid var(--theme-info-border,#d5d5f4);padding:0 0 0 8px}.notes p{margin:0 0 3px;font-size:13px;line-height:1.6}.notes small,.muted{color:var(--theme-text-muted,#858995);font-size:11px}.note-meta,.history-note-entry>div{justify-content:space-between;align-items:center;gap:8px;display:flex}.notes .note-delete,.history-record-notes .note-delete{width:25px;height:25px;color:var(--theme-danger,#a14a52);background:0 0;border:0;border-radius:5px;flex:none;place-items:center;padding:0;display:grid}.notes .note-delete:hover,.history-record-notes .note-delete:hover{color:var(--theme-danger,#bd2634);background:var(--theme-surface-hover,#fff0f1)}.notes .note-delete:disabled,.history-record-notes .note-delete:disabled{opacity:.45;cursor:wait}.notes-section form{gap:6px;margin-top:10px;display:grid}.notes-section textarea{resize:none;border:1px solid var(--line);border-radius:7px;outline:none;min-height:60px;padding:9px;font-size:13px;line-height:1.5}.notes-section button{background:var(--theme-surface-muted,#f0f0ff);color:var(--theme-accent,var(--accent));border:0;border-radius:6px;padding:8px;font-size:12px;font-weight:600}.workspace-page{background:var(--theme-bg,#f8f8fa);min-height:0;padding:34px clamp(24px,3.5vw,54px) 64px;overflow-y:auto}.workspace-heading{justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:30px;display:flex}.workspace-heading h1{letter-spacing:-.04em;margin:5px 0 6px;font-size:30px}.workspace-heading p{color:var(--theme-text-muted,#707484);margin:0;font-size:15px}.page-alert{align-items:center;gap:8px;margin:-10px 0 18px;display:flex}.create-strip{background:var(--theme-surface,white);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:12px;gap:8px;margin-bottom:18px;padding:14px;display:flex}.create-strip input{flex:1;min-width:150px}.create-strip input,.create-strip select,.tg-controls input{border:1px solid var(--line);border-radius:8px;outline:none;height:42px;padding:0 11px;font-size:14px}.channel-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;display:grid}.channel-card{background:var(--theme-surface,white);border:1px solid var(--line);box-shadow:0 4px 15px var(--theme-shadow,#23253906);border-radius:14px;padding:22px}.channel-card-head{grid-template-columns:46px 1fr auto;align-items:center;gap:11px;margin-bottom:20px;display:grid}.large-channel-icon{background:var(--theme-info-soft,#eff0f5);width:46px;height:46px;color:var(--theme-text-muted,#6c7081);border-radius:12px;place-items:center;display:grid}.large-channel-icon.website{background:var(--theme-info-soft,#eaf5ff);color:var(--theme-info,#3687bf)}.large-channel-icon.telegram{background:var(--theme-info-soft,#e7f7ff);color:var(--theme-info,#269fd8)}.large-channel-icon.wecom{background:var(--theme-success-soft,#e8f9f1);color:var(--theme-success,#189f62)}.channel-card-head span{color:var(--theme-text-muted,#858895);text-transform:uppercase;letter-spacing:.08em;font-size:11px}.channel-card-head h2{margin:3px 0 0;font-size:17px}.connection-pill{color:var(--theme-text-muted,#777b8a);background:var(--theme-surface-muted,#f1f1f4);border-radius:12px;align-items:center;gap:6px;padding:6px 9px;font-size:11px;display:flex}.connection-pill i{background:var(--theme-surface-hover,#aaa);border-radius:50%;width:6px;height:6px}.connection-pill.connected i{background:var(--theme-success-solid,#24b878)}.connection-pill.connecting{color:var(--theme-warning,#aa6a13);background:var(--theme-warning-soft,#fff4e5)}.connection-pill.connecting i{background:var(--theme-warning,#e49a31)}.connection-pill.paused{color:var(--theme-warning,#9a651d);background:var(--theme-warning-soft,#fff5e6)}.connection-pill.paused i{background:var(--theme-warning-solid,#d9902c)}.channel-detail{color:var(--theme-text-muted,#747887);justify-content:space-between;align-items:center;gap:10px;margin:12px 0;font-size:13px;display:flex}.channel-detail code{text-overflow:ellipsis;max-width:70%;color:var(--theme-text,#515466);background:var(--theme-surface-muted,#f5f5f8);border-radius:5px;padding:4px 6px;overflow:hidden}.embed-code{background:var(--theme-inverse-surface,#252631);color:var(--theme-inverse-text,#c5c6d0);border-radius:9px;align-items:center;gap:8px;padding:10px;display:flex}.embed-code code{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:12px;line-height:1.55;overflow:hidden}.embed-code button{background:var(--theme-inverse-surface-raised,#393a48);color:var(--theme-inverse-text,white);border:0;border-radius:6px;place-items:center;width:28px;height:28px;display:grid}.card-foot{border-top:1px solid var(--line);color:var(--theme-text-muted,#7f8391);justify-content:space-between;align-items:center;margin-top:17px;padding-top:14px;font-size:11px;display:flex}.card-foot span{text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:5px;min-width:0;display:flex;overflow:hidden}.qr-wrap{background:var(--theme-surface-muted,#f7f7fa);border-radius:10px;align-items:center;gap:17px;padding:14px;display:flex}.qr-wrap svg{background:var(--theme-surface,white);border-radius:8px;flex:none;padding:7px}.qr-wrap div,.auth-state>div,.provider-placeholder>div{gap:4px;display:grid}.qr-wrap b,.auth-state b,.provider-placeholder b{font-size:14px}.qr-wrap span,.auth-state span,.provider-placeholder span{color:var(--theme-text-muted,#7c808f);font-size:12px;line-height:1.6}.auth-state,.provider-placeholder{background:var(--theme-surface-muted,#f7f7fa);min-height:82px;color:var(--theme-text-muted,#787c8e);border-radius:10px;align-items:center;gap:11px;padding:15px;display:flex}.provider-placeholder{background:var(--theme-surface-muted,#f2fbf7);color:var(--theme-success,#2ba374)}.provider-placeholder.paused{color:var(--theme-warning,#a36b21);background:var(--theme-surface-muted,#fff8ec)}.channel-enable-button{border:1px solid var(--theme-accent-border,#078284);min-height:34px;color:var(--theme-on-accent,#fff);background:var(--theme-accent-solid,#078284);border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:6px 10px;font-size:12px;font-weight:600;line-height:1.35;display:inline-flex}.channel-enable-button:hover:not(:disabled){border-color:var(--theme-accent-border,#006f72);background:var(--theme-accent-solid-hover,#006f72)}.channel-enable-button:active:not(:disabled){background:var(--theme-accent-solid-active,#005e60)}.channel-enable-button:disabled{opacity:.6;cursor:wait}.wecom-actions{align-items:center;gap:8px;display:flex}.tg-controls{gap:7px;margin-top:10px;display:flex}.tg-controls input{flex:1;min-width:0}.tg-login-area{gap:10px;margin-top:12px;display:grid}.tg-login-actions{flex-wrap:wrap;gap:8px;display:flex}.tg-login-form{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;display:grid}.tg-login-form input{border:1px solid var(--line);background:var(--theme-surface,#fff);border-radius:10px;outline:none;min-width:0;height:44px;padding:0 13px;font-size:14px}.tg-login-form input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--theme-accent-shadow,#018b8d1a)}.tg-login-form .text-button{grid-column:1/-1;justify-self:start}.tg-security-note{color:var(--theme-text-muted,#6c7b7a);background:var(--theme-surface-muted,#f1f8f7);border-radius:9px;padding:9px 11px;font-size:12px;line-height:1.65}.wecom-login-box{border:1px solid var(--theme-accent-border,#d8e8e5);background:var(--theme-surface-muted,#f8fcfb);border-radius:12px;gap:12px;padding:14px;display:grid}.wecom-qr-wrap{align-items:center;gap:17px;display:flex}.wecom-qr-wrap img{object-fit:contain;border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,#fff);border-radius:10px;flex:none;width:168px;height:168px;padding:7px}.wecom-qr-wrap>div{gap:5px;display:grid}.wecom-qr-wrap b{color:var(--theme-text,#284f50);font-size:14px}.wecom-qr-wrap span{color:var(--theme-text-muted,#758889);font-size:12px;line-height:1.65}@media (max-width:520px){.wecom-qr-wrap{flex-direction:column;align-items:flex-start}.wecom-qr-wrap img{align-self:center}}.auth-state.error{color:var(--theme-danger,#a54343);background:var(--theme-surface-muted,#fff4f2)}.auth-state small{color:var(--theme-text-muted,#7c808f);font-size:12px}.danger-link{min-height:32px;color:var(--theme-danger,#b33e4b);background:0 0;border:1px solid #0000;border-radius:7px;justify-content:center;align-items:center;gap:5px;padding:5px 7px;font-size:12px;line-height:1.35;display:inline-flex}.danger-link:hover:not(:disabled){color:var(--theme-danger,#a5323e);background:var(--theme-surface-hover,#fff0f1);border-color:var(--theme-danger-border,#efc9ce)}.danger-link:active:not(:disabled){color:var(--theme-danger,#8e2934);background:var(--theme-danger-soft,#ffe3e6)}.automation-overview,.team-stats{grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:18px;display:grid}.automation-overview>div{background:var(--theme-surface,white);border:1px solid var(--line);color:var(--theme-accent,var(--accent));border-radius:11px;align-items:center;gap:10px;padding:14px;display:flex}.automation-overview span{color:var(--theme-text-muted,#686c7b);font-size:13px}.automation-overview b{color:var(--theme-text,#383b4d);font-size:18px}.rule-builder,.create-member{background:var(--theme-surface,white);border:1px solid var(--theme-info-border,#dedfff);box-shadow:var(--shadow);border-radius:13px;margin-bottom:16px;padding:20px}.builder-heading{color:var(--theme-accent,var(--accent));align-items:center;gap:10px;margin-bottom:18px;display:flex}.builder-heading h2,.create-member h2{color:var(--theme-text,#353849);margin:0 0 4px;font-size:18px}.builder-heading p{color:var(--theme-text-muted,#747887);margin:0;font-size:13px}.rule-builder textarea{resize:vertical;min-height:80px;padding:10px}.rule-builder>div:last-child{gap:8px;display:flex}.rules-list{gap:9px;display:grid}.rules-list article{background:var(--theme-surface,white);border:1px solid var(--line);border-radius:12px;grid-template-columns:32px 1fr 38px;align-items:center;gap:14px;padding:16px;display:grid}.rules-list article.disabled{opacity:.58}.rule-order{background:var(--theme-surface-muted,#f0f0ff);width:30px;height:30px;color:var(--theme-accent,var(--accent));border-radius:8px;place-items:center;font-size:13px;font-weight:700;display:grid}.rule-main>div:first-child{align-items:center;gap:9px;display:flex}.rule-main h3{margin:0;font-size:15px}.trigger-pill{color:var(--theme-text-muted,#65699a);background:var(--theme-surface-muted,#f2f2fa);border-radius:8px;align-items:center;gap:4px;padding:4px 7px;font-size:11px;display:flex}.rule-flow{align-items:center;gap:8px;margin:9px 0 7px;display:flex}.rule-flow span{color:var(--theme-text-muted,#5f6374);align-items:center;gap:5px;font-size:13px;display:flex}.rule-flow i{color:var(--theme-text-subtle,#9b9eab)}.rule-main small{color:var(--theme-text-muted,#858996);font-size:11px}.power-button{width:38px;height:38px;color:var(--theme-text-muted,#858996);background:var(--theme-surface-muted,#f2f2f5);border:0;border-radius:9px}.empty-state{text-align:center;color:var(--theme-text-muted,#8f93a1);justify-items:center;padding:70px 20px;display:grid}.empty-state h2{color:var(--theme-text-muted,#5d6070);margin:13px 0 4px;font-size:18px}.empty-state p{font-size:13px}.team-stats>div{background:var(--theme-surface,white);border:1px solid var(--line);border-radius:12px;align-items:center;gap:12px;padding:17px;display:flex}.team-stats>div>span{background:var(--theme-surface-muted,#f0f0ff);width:42px;height:42px;color:var(--theme-accent,var(--accent));border-radius:10px;place-items:center;display:grid}.team-stats svg{width:19px}.team-stats p{color:var(--theme-text-muted,#727685);margin:0;font-size:12px;display:grid}.team-stats b{color:var(--theme-text,#353849);font-size:20px}.create-member>div{grid-template-columns:repeat(3,1fr);gap:14px;display:grid}.create-member footer{gap:8px;display:flex}.create-member label{margin:0}.create-member input,.create-member select{min-width:0;min-height:40px}.create-member .form-hint{color:var(--theme-text-muted,#718384);margin:14px 0;font-size:13px}.team-table{background:var(--theme-surface,white);border:1px solid var(--line);border-radius:12px;overflow:hidden}.table-head,.table-row{grid-template-columns:1.55fr .75fr .75fr 1fr .8fr .8fr;align-items:center;gap:12px;padding:14px 18px;display:grid}.table-head{background:var(--theme-surface-muted,#f4f4f7);color:var(--theme-text-muted,#777b8a);text-transform:uppercase;letter-spacing:.04em;font-size:11px}.table-row{border-top:1px solid var(--line);color:var(--theme-text-muted,#5f6373);font-size:13px}.member-cell{align-items:center;gap:10px;display:flex}.member-cell>i,.mini-avatar{background:var(--theme-surface-muted,#f0f0ff);width:36px;height:36px;color:var(--theme-accent,var(--accent));border-radius:9px;place-items:center;font-style:normal;font-weight:700;display:grid}.member-cell span{display:grid}.member-cell b{color:var(--theme-text,#383b4c);font-size:14px}.member-cell small{color:var(--theme-text-muted,#7f8391);font-size:11px}.role-badge,.online-label{background:var(--theme-surface-muted,#f1f1f4);border-radius:6px;align-items:center;gap:5px;width:max-content;padding:5px 7px;display:flex}.role-badge.admin{color:var(--theme-purple,#8b5bba);background:var(--theme-surface-muted,#f7efff)}.online-label i{background:var(--theme-surface-hover,#aaa);border-radius:50%;width:6px;height:6px}.online-label.yes{color:var(--theme-success,#16885a);background:var(--theme-success-soft,#e8f8f0)}.online-label.yes i{background:var(--theme-success-solid,#24b878)}.data-freshness{color:var(--theme-text-muted,#696d7d);background:var(--theme-surface,white);border:1px solid var(--line);border-radius:8px;padding:8px 11px;font-size:12px}.metric-grid{grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px;display:grid}.metric-grid article{background:var(--theme-surface,white);border:1px solid var(--line);border-radius:12px;align-items:center;gap:13px;padding:18px;display:flex}.metric-icon{border-radius:11px;place-items:center;width:44px;height:44px;display:grid}.metric-icon svg{width:20px}.metric-icon.blue{color:var(--theme-info,#3285c2);background:var(--theme-info-soft,#eaf5ff)}.metric-icon.green{color:var(--theme-success,#229b68);background:var(--theme-success-soft,#e9f8f1)}.metric-icon.amber{color:var(--theme-warning,#c67c18);background:var(--theme-warning-soft,#fff3e4)}.metric-grid article div{display:grid}.metric-grid small{color:var(--theme-text-muted,#747887);font-size:12px}.metric-grid b{letter-spacing:-.03em;margin:2px 0;font-size:21px}.metric-grid em{color:var(--theme-text-muted,#858996);font-size:11px;font-style:normal}.report-columns{grid-template-columns:1.15fr .85fr;gap:17px;display:grid}.report-card{background:var(--theme-surface,white);border:1px solid var(--line);border-radius:12px;padding:20px}.report-card>header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding-bottom:15px;display:flex}.report-card header>div{align-items:center;gap:8px;display:flex}.report-card h2{margin:0;font-size:15px}.report-card header>span{color:var(--theme-text-muted,#858996);font-size:11px}.bar-list{gap:19px;padding-top:19px;display:grid}.bar-list>div>div{grid-template-columns:1fr auto;display:grid}.bar-list b{font-size:13px}.bar-list span{color:var(--theme-text-muted,#7d8190);grid-column:1;font-size:11px}.bar-list strong{grid-area:1/2/3;align-self:center;font-size:15px}.bar-list i{background:var(--theme-surface-muted,#f0f0f4);border-radius:4px;height:6px;margin-top:8px;display:block;overflow:hidden}.bar-list i span{background:linear-gradient(90deg,var(--theme-info-solid,#7777e4),var(--theme-info-soft,#a4a4f1));border-radius:4px;height:100%;display:block}.agent-ranking{padding-top:9px;display:grid}.agent-ranking>div{border-bottom:1px solid var(--line);grid-template-columns:22px 34px 1fr auto;align-items:center;gap:9px;padding:11px 0;display:grid}.agent-ranking>div>i{color:var(--theme-text-muted,#858996);font-size:11px;font-style:normal}.mini-avatar{width:32px;height:32px;font-size:12px}.agent-ranking p{margin:0;display:grid}.agent-ranking b{font-size:13px}.agent-ranking small{color:var(--theme-text-muted,#7f8391);font-size:11px}.agent-ranking strong{font-size:14px}.report-loading{color:var(--theme-text-muted,#737786);text-align:center;padding:50px;font-size:14px}.quick-reply-total{border:1px solid var(--theme-accent-border,#d5e7e5);min-height:40px;color:var(--theme-text,#337273);background:var(--theme-accent-soft,#edf8f7);border-radius:11px;align-items:center;gap:8px;padding:0 14px;font-size:13px;font-weight:650;display:flex}.quick-reply-layout{grid-template-columns:minmax(320px,390px) minmax(0,1fr);align-items:start;gap:18px;display:grid}.quick-reply-editor,.quick-reply-library{border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,white);box-shadow:0 10px 30px var(--theme-accent-shadow,#0f48490b);border-radius:16px}.quick-reply-editor{gap:17px;padding:22px;display:grid;position:sticky;top:20px}.quick-reply-editor>header{border-bottom:1px solid var(--theme-border,#e4eceb);align-items:center;gap:11px;padding-bottom:16px;display:flex}.quick-reply-editor>header>span{width:42px;height:42px;color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e1f3f1);border-radius:12px;place-items:center;display:grid}.quick-reply-editor h2,.quick-reply-library h2{color:var(--theme-text,#294748);margin:0;font-size:18px}.quick-reply-editor header p,.quick-reply-library header p{color:var(--theme-text-muted,#7c8d8e);margin:4px 0 0;font-size:12px}.quick-reply-editor label{color:var(--theme-text,#405c5d);gap:7px;font-size:13px;font-weight:650;display:grid}.quick-reply-editor label small{color:var(--theme-text-muted,#8b999a);font-size:10px;font-weight:400}.quick-reply-editor input,.quick-reply-editor textarea{border:1px solid var(--theme-border,#d9e6e4);width:100%;color:var(--theme-text,#294748);background:var(--theme-surface-muted,#fbfdfd);border-radius:10px;outline:none;padding:0 12px;font-size:14px}.quick-reply-editor input{height:44px}.quick-reply-editor textarea{resize:vertical;min-height:160px;padding:12px;line-height:1.65}.quick-reply-editor input:focus,.quick-reply-editor textarea:focus{border-color:var(--theme-accent-border,#70beba);background:var(--theme-surface,white);box-shadow:0 0 0 3px var(--theme-accent-shadow,#018b8d12)}.quick-reply-editor>footer{flex-wrap:wrap;gap:8px;display:flex}.quick-reply-editor .quick-reply-repeatable{border:1px solid var(--theme-border,#d9e8e6);background:var(--theme-surface-muted,#f8fbfb);cursor:pointer;border-radius:11px;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;padding:11px 12px}.quick-reply-editor .quick-reply-repeatable input{width:16px;height:16px;accent-color:var(--theme-accent,#087f81);margin:2px 0 0}.quick-reply-repeatable>span{gap:3px;display:grid}.quick-reply-repeatable b{font-size:12px}.quick-reply-repeatable small{line-height:1.5}.quick-reply-library{min-width:0;overflow:hidden}.quick-reply-library>header{border-bottom:1px solid var(--theme-border,#e3eceb);background:linear-gradient(135deg,var(--theme-surface-muted,#f6fbfa),var(--theme-surface,#fff));justify-content:space-between;align-items:center;gap:18px;min-height:84px;padding:17px 20px;display:flex}.quick-reply-library>header label{border:1px solid var(--theme-border,#dbe7e6);width:min(280px,42%);height:42px;color:var(--theme-text-muted,#809091);background:var(--theme-surface,white);border-radius:10px;align-items:center;gap:8px;padding:0 11px;display:flex}.quick-reply-library>header input{min-width:0;color:var(--theme-text,#294748);background:0 0;border:0;outline:none;flex:1;font-size:13px}.quick-reply-list{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px;min-height:320px;padding:16px;transition:opacity .15s;display:grid}.quick-reply-list.loading{opacity:.55}.quick-reply-list article{border:1px solid var(--theme-border,#e0eae9);background:var(--theme-surface-muted,#fcfefe);border-radius:13px;align-content:start;gap:13px;min-width:0;padding:15px;display:grid}.quick-reply-list article:hover{border-color:var(--theme-accent-border,#bcdedb);box-shadow:0 9px 24px var(--theme-accent-shadow,#0f484911);transform:translateY(-1px)}.quick-reply-name{align-items:center;gap:10px;min-width:0;display:flex}.quick-reply-name>span{width:34px;height:34px;color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e5f4f3);border-radius:9px;flex:none;place-items:center;display:grid}.quick-reply-name>div{gap:2px;min-width:0;display:grid}.quick-reply-name b{color:var(--theme-text,#294748);text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.quick-reply-name small{color:var(--theme-text-muted,#91a0a0);font-size:10px}.quick-reply-list article>p{max-height:112px;color:var(--theme-text,#53696a);white-space:pre-wrap;word-break:break-word;margin:0;font-size:13px;line-height:1.7;overflow:auto}.quick-reply-list article>footer{border-top:1px solid var(--theme-border,#e7eeee);gap:7px;padding-top:11px;display:flex}.quick-reply-list article>footer button{height:32px;color:var(--theme-text,#397879);background:var(--theme-accent-soft,#eaf6f5);white-space:nowrap;border:0;border-radius:8px;flex:none;align-items:center;gap:5px;padding:0 9px;font-size:12px;display:flex}.quick-reply-list article>footer button:hover{color:var(--theme-accent,#007577);background:var(--theme-accent-soft,#dff1ef)}.quick-reply-list article>footer button.danger{color:var(--theme-danger,#a7585d);background:var(--theme-surface-muted,#fff1f1);margin-left:auto}.quick-reply-list article>footer button.danger:hover{color:var(--theme-danger,#a12e36);background:var(--theme-danger-soft,#ffe7e8)}.quick-reply-list article.favorite{border-color:var(--theme-accent-border,#b8deda);background:var(--theme-surface-muted,#fbfefd);box-shadow:inset 3px 0 var(--theme-shadow,#42aaa5)}.quick-reply-list article>footer button.favorite.active{color:var(--theme-warning,#8b6813);background:var(--theme-warning-soft,#fff4cf)}.quick-reply-list article>footer button.favorite:disabled{cursor:wait;opacity:.58}.quick-reply-paste-hint{border:1px dashed var(--theme-border,#c9dedc);min-height:58px;color:var(--theme-text-muted,#6e898a);background:var(--theme-surface-muted,#f7fbfa);border-radius:11px;justify-content:center;align-items:center;gap:9px;display:flex}.quick-reply-paste-hint>span{gap:2px;display:grid}.quick-reply-paste-hint b{font-size:12px}.quick-reply-paste-hint small{font-size:10px}.quick-reply-images{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.quick-reply-images figure{aspect-ratio:1;background:var(--theme-accent-soft,#edf5f4);border-radius:10px;min-width:0;margin:0;position:relative;overflow:hidden}.quick-reply-images .message-image-button{border-radius:10px;width:100%;max-width:none;height:100%;margin:0}.quick-reply-images .message-image{object-fit:cover;border-radius:10px;width:100%;height:100%;max-height:none}.quick-reply-images .message-image-placeholder{width:100%;min-width:0;height:100%;min-height:0;margin:0;padding:6px}.quick-reply-images .message-image-placeholder span{display:none}.quick-reply-images .remove-quick-image{width:25px;height:25px;color:var(--theme-on-accent,white);background:var(--theme-inverse-surface,#1b3637b3);border:0;border-radius:7px;place-items:center;display:grid;position:absolute;top:5px;right:5px}.library-images{grid-template-columns:repeat(4,minmax(0,1fr))}.quick-reply-empty{min-height:280px;color:var(--theme-text-subtle,#9aabaa);text-align:center;grid-column:1/-1;place-content:center;justify-items:center;gap:8px;display:grid}.quick-reply-empty b{color:var(--theme-text-muted,#577071);font-size:14px}.quick-reply-empty span{font-size:12px}.automation-template-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:25px;display:grid}.automation-template{background:var(--theme-surface,white);border:1px solid var(--line);min-width:0;box-shadow:0 8px 26px var(--theme-shadow,#23253909);border-radius:14px;flex-direction:column;gap:15px;padding:19px;display:flex}.automation-template>header{border-bottom:1px solid var(--line);grid-template-columns:44px 1fr auto;align-items:center;gap:11px;padding-bottom:14px;display:grid}.automation-template>header>span{width:44px;height:44px;color:var(--theme-info,#287fae);background:var(--theme-info-soft,#e9f6fc);border-radius:12px;place-items:center;display:grid}.automation-template.off-hours>header>span{color:var(--theme-warning,#b36d0b);background:var(--theme-warning-soft,#fff3df)}.automation-template header small{color:var(--theme-text-muted,#8b8f9e);font-size:11px}.automation-template h2{color:var(--theme-text,#333647);margin:3px 0 0;font-size:17px}.automation-template header em{color:var(--theme-success,#19875a);background:var(--theme-success-soft,#e9f8f1);border-radius:12px;align-self:start;padding:5px 8px;font-size:10px;font-style:normal;font-weight:700}.template-flow{min-height:42px;color:var(--theme-text-muted,#747887);background:var(--theme-surface-muted,#f7f7fa);border-radius:10px;justify-content:center;align-items:center;gap:7px;padding:8px;display:flex}.template-flow b{color:var(--theme-text,#555969);white-space:nowrap;font-size:11px}.template-flow svg{color:var(--theme-text-subtle,#a1a4b0);flex:none}.automation-template>label,.dual-number-fields label{color:var(--theme-text-muted,#5b5f70);gap:7px;font-size:12px;font-weight:650;display:grid}.automation-template textarea{resize:vertical;border:1px solid var(--theme-border,#dedfe7);width:100%;min-height:112px;color:var(--theme-text,#4d5162);background:var(--theme-surface-muted,#fcfcfd);font:inherit;border-radius:9px;outline:0;padding:10px 11px;font-size:13px;line-height:1.65}.number-field{border:1px solid var(--theme-border,#dedfe7);background:var(--theme-surface-muted,#fcfcfd);border-radius:9px;align-items:center;width:145px;height:40px;display:flex;overflow:hidden}.number-field input{width:88px;min-width:0;height:100%;color:var(--theme-text,#3f4252);background:0 0;border:0;outline:0;padding:0 10px;font-size:14px;font-weight:700}.number-field span{color:var(--theme-text-muted,#858997);flex:1;font-size:11px}.automation-condition-summary{border:1px solid var(--theme-border,#dfe8e4);min-height:72px;color:var(--theme-text,#4f665c);background:var(--theme-surface-muted,#f4faf7);border-radius:9px;grid-template-columns:auto 1fr;align-items:center;gap:4px 8px;padding:10px 12px;display:grid}.automation-condition-summary b{color:var(--theme-success,#16734c);font-size:13px}.automation-condition-summary span{font-size:12px}.automation-condition-summary small{color:var(--theme-text-muted,#7c8d85);grid-column:1/-1;font-size:10px;font-weight:500}.schedule-fields{grid-template-columns:1fr 22px 1fr;align-items:center;gap:7px;display:grid}.schedule-fields input{border:1px solid var(--theme-border,#dedfe7);min-width:0;height:40px;color:var(--theme-text,#4e5262);background:var(--theme-surface-muted,#fcfcfd);border-radius:8px;outline:0;padding:0 8px}.schedule-fields span{color:var(--theme-text-muted,#9295a2);text-align:center;font-size:11px}.dual-number-fields{grid-template-columns:1fr 1fr;gap:10px;display:grid}.template-save{border:1px solid var(--theme-accent-border,#078284);width:100%;min-height:38px;color:var(--theme-on-accent,white);background:var(--theme-accent-solid,#078284);box-shadow:none;border-radius:8px;margin-top:auto;padding:8px 12px;font-size:13px;font-weight:600}.template-save:hover:not(:disabled){border-color:var(--theme-accent-border,#006f72);background:var(--theme-accent-solid-hover,#006f72)}.template-save:active:not(:disabled){background:var(--theme-accent-solid-active,#005e60)}.template-save:disabled{cursor:not-allowed;opacity:.5}.automation-list-heading{justify-content:space-between;align-items:end;margin:4px 0 12px;display:flex}.automation-list-heading h2{color:var(--theme-text,#36394a);margin:0 0 3px;font-size:19px}.automation-list-heading p{color:var(--theme-text-muted,#838795);margin:0;font-size:12px}.history-page{padding-left:clamp(24px,3vw,46px);padding-right:clamp(24px,3vw,46px)}.history-total{min-height:40px;color:var(--theme-text,#55596b);background:var(--theme-surface,white);border:1px solid var(--line);border-radius:10px;align-items:center;gap:8px;padding:0 13px;font-size:13px;font-weight:650;display:flex}.history-toolbar{background:var(--theme-surface,white);border:1px solid var(--line);box-shadow:0 5px 18px var(--theme-shadow,#23253908);border-radius:13px;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:16px;padding:13px;display:flex}.history-toolbar label{color:var(--theme-text-muted,#777b8b);align-items:center;gap:8px;font-size:13px;display:flex}.history-search{border:1px solid var(--theme-border,#dedfe7);border-radius:9px;flex:1;min-width:260px;height:44px;padding:0 12px}.history-toolbar input{min-width:0;color:var(--theme-text,#343748);background:0 0;border:0;outline:0;flex:1;font-size:14px}.history-toolbar select{border:1px solid var(--theme-border,#dedfe7);min-width:130px;height:44px;color:var(--theme-text,#4f5364);background:var(--theme-surface,white);border-radius:9px;outline:0;padding:0 34px 0 11px;font-size:14px}.history-agent-filter select{min-width:170px}.history-date-filter{width:100%;color:var(--theme-text-muted,#777b8b);align-items:center;gap:8px;font-size:13px;display:flex}.history-date-filter>span{margin-right:2px;font-weight:650}.history-date-filter input{border:1px solid var(--theme-border,#dedfe7);width:145px;height:40px;color:var(--theme-text,#4f5364);background:var(--theme-surface,white);border-radius:9px;flex:0 0 145px;padding:0 9px;font-size:13px}.history-date-filter input:focus{border-color:var(--theme-accent-border,#70bfbb);box-shadow:0 0 0 3px var(--theme-accent-shadow,#018b8d14)}.history-date-filter i{color:var(--theme-text-subtle,#a1aaa9);font-style:normal}.history-date-filter button{border:1px solid var(--theme-border,#d4e3df);min-height:34px;color:var(--theme-text,#456763);background:var(--theme-surface,#fff);border-radius:8px;justify-content:center;align-items:center;gap:5px;padding:6px 10px;font-size:12px;font-weight:550;line-height:1.35;display:inline-flex}.history-date-filter button:hover:not(:disabled){color:var(--theme-accent,#087674);border-color:var(--theme-accent-border,#acd1c8);background:var(--theme-surface-hover,#edf7f3)}.history-date-filter button:active:not(:disabled){color:var(--theme-accent,#086c65);background:var(--theme-success-soft,#e0f0e9)}.presence-page{padding-left:clamp(24px,3vw,46px);padding-right:clamp(24px,3vw,46px)}.presence-range-label{border:1px solid var(--theme-border,#cfe2e0);min-height:40px;color:var(--theme-text,#376968);background:var(--theme-surface,white);border-radius:10px;align-items:center;gap:8px;padding:0 13px;font-size:13px;font-weight:650;display:flex}.presence-toolbar{border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,white);min-height:70px;box-shadow:0 10px 30px var(--theme-accent-shadow,#0f48490b);border-radius:16px;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;padding:12px 14px;display:flex}.presence-toolbar>div{color:var(--theme-text-muted,#6e7d7c);align-items:center;gap:9px;font-size:13px;display:flex}.presence-toolbar>div>span{color:var(--theme-text,#315554);margin-right:4px;font-weight:700}.presence-toolbar i{color:var(--theme-text-subtle,#9aa8a7);font-style:normal}.presence-toolbar input{border:1px solid var(--theme-border,#d4e1df);width:150px;height:42px;color:var(--theme-text,#395554);background:var(--theme-surface-muted,#fbfdfd);border-radius:9px;outline:0;padding:0 10px;font-size:13px}.presence-toolbar input:focus{border-color:var(--theme-accent-border,#5cb8b4);box-shadow:0 0 0 3px var(--theme-accent-shadow,#018b8d14)}.presence-toolbar>button{border:1px solid var(--theme-border,#d4e3df);min-height:36px;color:var(--theme-text,#456763);background:var(--theme-surface,#fff);border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:6px 11px;font-size:12px;font-weight:550;line-height:1.35;display:inline-flex}.presence-toolbar>button:hover:not(:disabled){color:var(--theme-accent,#087674);border-color:var(--theme-accent-border,#acd1c8);background:var(--theme-surface-hover,#edf7f3)}.presence-toolbar>button:active:not(:disabled){background:var(--theme-success-soft,#e0f0e9)}.presence-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px;transition:opacity .15s;display:grid}.presence-metrics.loading,.presence-table-card.loading{opacity:.62}.presence-metrics article{border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,white);min-height:120px;box-shadow:0 10px 30px var(--theme-accent-shadow,#0f48490b);border-radius:16px;align-items:center;gap:15px;padding:20px;display:flex}.presence-metrics article>div{gap:5px;min-width:0;display:grid}.presence-metrics small{color:var(--theme-text-muted,#788887);font-size:12px}.presence-metrics b{color:var(--theme-text,#173f40);text-overflow:ellipsis;white-space:nowrap;font-size:23px;overflow:hidden}.presence-metrics em{color:var(--theme-text-muted,#8b9998);font-size:11px;font-style:normal}.presence-metric-icon{border-radius:14px;flex:none;place-items:center;width:48px;height:48px;display:grid}.presence-metric-icon svg{width:22px}.presence-metric-icon.login{color:var(--theme-info,#256f96);background:var(--theme-info-soft,#e8f4fa)}.presence-metric-icon.online{color:var(--theme-accent,#008486);background:var(--theme-accent-soft,#def4f2)}.presence-metric-icon.offline{color:var(--theme-warning,#8a6b45);background:var(--theme-warning-soft,#f7efe4)}.presence-table-card{border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,white);box-shadow:0 10px 30px var(--theme-accent-shadow,#0f48490b);border-radius:16px;transition:opacity .15s;overflow:hidden}.presence-table-card>header{border-bottom:1px solid var(--theme-border,#e2ebea);justify-content:space-between;align-items:center;gap:15px;min-height:72px;padding:14px 18px;display:flex}.presence-table-card>header>div{color:var(--theme-accent,#018b8d);align-items:center;gap:11px;display:flex}.presence-table-card h2{color:var(--theme-text,#264848);margin:0 0 3px;font-size:17px}.presence-table-card header p{color:var(--theme-text-muted,#8a9796);margin:0;font-size:11px}.presence-table-card header>span{color:var(--theme-text-muted,#758483);font-size:12px}.presence-table-scroll{overflow-x:auto}.presence-table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:980px}.presence-table th{height:48px;color:var(--theme-text-muted,#657775);background:var(--theme-surface-muted,#f2f7f6);border-bottom:1px solid var(--theme-border,#dce7e5);text-align:left;white-space:nowrap;padding:0 16px;font-size:12px}.presence-table td{height:76px;color:var(--theme-text,#536765);border-bottom:1px solid var(--theme-border,#edf2f1);padding:11px 16px;font-size:13px}.presence-table tbody tr:last-child td{border-bottom:0}.presence-table tbody tr:hover td{background:var(--theme-surface-hover,#fbfdfd)}.presence-table th:first-child{width:260px}.presence-table th:nth-child(2),.presence-table th:nth-child(3),.presence-table th:nth-child(5){width:140px}.presence-table th:nth-child(4),.presence-table th:nth-child(6){width:150px}.presence-agent{align-items:center;gap:11px;min-width:0;display:flex}.presence-agent>span{width:40px;height:40px;color:var(--theme-accent,#007f81);background:var(--theme-accent-soft,#e1f3f2);border-radius:11px;flex:none;place-items:center;font-weight:800;display:grid}.presence-agent>div{gap:3px;min-width:0;display:grid}.presence-agent b{color:var(--theme-text,#294443);text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.presence-agent small{color:var(--theme-text-muted,#879492);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.presence-table td>strong{color:var(--theme-text,#405554);font-size:13px}.presence-table .online-duration{color:var(--theme-accent,#007f81)}.presence-table .offline-duration{color:var(--theme-warning,#8b6a43)}.presence-ratio{gap:7px;min-width:110px;display:grid}.presence-ratio b{color:var(--theme-text,#34706f);font-size:12px}.presence-ratio>i{background:var(--theme-surface-muted,#e9efee);border-radius:999px;width:100%;height:6px;overflow:hidden}.presence-ratio>i>span{border-radius:inherit;background:var(--theme-accent-solid,#018b8d);height:100%;display:block}.presence-ratio.offline b{color:var(--theme-warning,#8b6a43)}.presence-ratio.offline>i>span{background:var(--theme-warning-solid,#c29b67)}.presence-empty{min-height:240px;color:var(--theme-text-muted,#91a09f);place-content:center;justify-items:center;gap:7px;display:grid}.presence-empty b{color:var(--theme-text,#536967);margin-top:5px;font-size:15px}.presence-empty span{font-size:12px}.presence-table-card>footer{min-height:50px;color:var(--theme-text-muted,#82918f);background:var(--theme-surface-muted,#f8fbfa);border-top:1px solid var(--theme-border,#e6edec);justify-content:space-between;align-items:center;gap:16px;padding:10px 18px;font-size:11px;display:flex}@media (max-width:1000px){.presence-metrics{grid-template-columns:1fr}.presence-metrics article{min-height:100px}.presence-toolbar{flex-direction:column;align-items:stretch}.presence-toolbar>div{flex-wrap:wrap}.presence-toolbar>button{width:max-content}}@media (max-width:650px){.presence-toolbar input{width:130px}.presence-table-card>footer{flex-direction:column;align-items:flex-start}.presence-range-label{display:none}}.history-table-card{background:var(--theme-surface,white);border:1px solid var(--line);box-shadow:0 8px 28px var(--theme-shadow,#23253909);border-radius:14px;transition:opacity .15s;overflow:hidden}.history-table-card.loading{opacity:.68}.history-table-scroll{overflow:auto}.history-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:1785px}.history-table th{z-index:2;height:48px;color:var(--theme-text-muted,#696d7c);background:var(--theme-surface-muted,#f3f3f6);border-bottom:1px solid var(--theme-border,#e1e2e8);text-align:left;white-space:nowrap;padding:0 13px;font-size:12px;font-weight:700;position:sticky;top:0}.history-table td{height:72px;color:var(--theme-text,#515566);border-bottom:1px solid var(--theme-border,#ededf2);vertical-align:middle;padding:10px 13px;font-size:13px}.history-table tbody tr:last-child td{border-bottom:0}.history-table tbody tr:hover td{background:var(--theme-surface-hover,#fafafe)}.history-table th:first-child,.history-table td:first-child{z-index:1;background:var(--theme-surface,white);width:205px;box-shadow:1px 0 0 var(--theme-highlight,#ececf1);position:sticky;left:0}.history-table th:first-child{z-index:3;background:var(--theme-surface-muted,#f3f3f6)}.history-table th:nth-child(2){width:130px}.history-table th:nth-child(3){width:110px}.history-table th:nth-child(4),.history-table th:nth-child(5),.history-table th:nth-child(6){text-align:center;width:98px}.history-table td:nth-child(4),.history-table td:nth-child(5),.history-table td:nth-child(6){text-align:center}.history-table th:nth-child(7),.history-table th:nth-child(8),.history-table th:nth-child(9){width:125px}.history-table th:nth-child(10),.history-table th:nth-child(11),.history-table th:nth-child(12){width:165px}.history-table th:nth-child(13){width:90px}.history-table .average-response-time{color:var(--theme-warning,#8a5b20);font-weight:650}.history-table th.sorted{color:var(--theme-accent,#007f81);background:var(--theme-accent-soft,#e8f4f3)}.history-sort-button{width:100%;min-height:34px;color:inherit;font:inherit;font-weight:inherit;white-space:nowrap;background:0 0;border:0;border-radius:8px;justify-content:flex-start;align-items:center;gap:5px;padding:0;display:flex}.history-table th:nth-child(4) .history-sort-button,.history-table th:nth-child(5) .history-sort-button,.history-table th:nth-child(6) .history-sort-button{justify-content:center}.history-sort-button svg{color:var(--theme-text-muted,#9aa6a6);flex:none}.history-sort-button:hover,.history-sort-button.active{color:var(--theme-accent,#007f81)}.history-sort-button:hover svg,.history-sort-button.active svg{color:var(--theme-accent,#018b8d)}.history-customer{align-items:center;gap:10px;display:flex}.history-customer>span{width:38px;height:38px;color:var(--theme-info,#5555c7);background:var(--theme-surface-muted,#ededff);border-radius:10px;flex:none;place-items:center;font-size:14px;font-weight:750;display:grid}.history-customer>div{gap:3px;min-width:0;display:grid}.history-customer b{color:var(--theme-text,#313446);text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.history-customer small,.channel-account-name{max-width:145px;color:var(--theme-text-muted,#8a8e9c);text-overflow:ellipsis;white-space:nowrap;font-size:11px;display:block;overflow:hidden}.history-agent{min-height:29px;color:var(--theme-info,#4d5190);background:var(--theme-surface-muted,#f0f0fa);border-radius:8px;align-items:center;padding:0 9px;font-size:12px;font-weight:650;display:inline-flex}.history-empty{color:var(--theme-text-subtle,#9a9daa)}.history-channel{min-width:44px;height:26px;color:var(--theme-info,#377cab);background:var(--theme-info-soft,#eaf5fc);border-radius:7px;justify-content:center;align-items:center;padding:0 8px;font-size:12px;font-weight:700;display:inline-flex}.history-channel.wecom{color:var(--theme-success,#198858);background:var(--theme-success-soft,#e8f7ef)}.history-channel.telegram{color:var(--theme-info,#2587b6);background:var(--theme-info-soft,#e6f5fc)}.channel-account-name{max-width:100px;margin-top:4px}.message-count{min-width:34px;height:28px;color:var(--theme-text,#555968);background:var(--theme-surface-muted,#f1f1f4);border-radius:8px;place-items:center;font-size:13px;display:inline-grid}.message-count.inbound{color:var(--theme-info,#2f779f);background:var(--theme-info-soft,#eaf5fb)}.history-empty-state{min-height:260px;color:var(--theme-text-muted,#9699a7);place-content:center;justify-items:center;gap:7px;display:grid}.history-empty-state b{color:var(--theme-text,#55596a);margin-top:5px;font-size:15px}.history-empty-state span{font-size:12px}.history-pagination{min-height:58px;color:var(--theme-text-muted,#787c8c);background:var(--theme-surface-muted,#fafafd);border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:14px;padding:0 16px;font-size:12px;display:flex}.history-pagination>div{gap:7px;display:flex}.history-pagination button{border:1px solid var(--theme-border,#d4e3df);min-height:34px;color:var(--theme-text,#456763);background:var(--theme-surface,white);border-radius:8px;justify-content:center;align-items:center;gap:5px;padding:6px 10px;font-size:12px;font-weight:550;line-height:1.35;display:inline-flex}.history-pagination button:hover:not(:disabled){color:var(--theme-accent,#087674);border-color:var(--theme-accent-border,#acd1c8);background:var(--theme-surface-hover,#edf7f3)}.history-pagination button:active:not(:disabled){background:var(--theme-success-soft,#e0f0e9)}.history-pagination button:disabled{cursor:not-allowed;opacity:.45}.history-record-backdrop{z-index:80;background:var(--theme-overlay,#191b2a57);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);justify-content:flex-end;display:flex;position:fixed;inset:0}.history-record-drawer{width:min(860px,94vw);height:100%;color:var(--theme-text,#393c4d);background:var(--theme-surface-muted,#f7f7fa);box-shadow:-18px 0 48px var(--theme-shadow,#191b2a2e);grid-template-rows:auto auto auto minmax(0,1fr) auto auto;display:grid}.history-record-drawer>header{background:var(--theme-surface,white);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:18px;min-height:94px;padding:19px 22px;display:flex}.history-record-drawer>header h2{margin:3px 0 2px;font-size:22px}.history-record-drawer>header p{color:var(--theme-text-muted,#858998);margin:0;font-size:13px}.history-record-header-actions{justify-content:flex-end;align-items:center;gap:7px;display:flex}.history-action-button{border:1px solid var(--theme-border,#dce5e4);min-height:36px;color:var(--theme-text,#536869);background:var(--theme-surface,#fff);border-radius:9px;align-items:center;gap:6px;padding:0 10px;font-size:12px;font-weight:700;display:inline-flex}.history-action-button:hover:not(:disabled),.history-action-button.active{color:var(--theme-warning,#9a6216);border-color:var(--theme-warning-border,#e9c77e);background:var(--theme-warning-soft,#fff5df)}.history-action-button.billing.excluded{color:var(--theme-text-muted,#64717b);border-color:var(--theme-border,#cbd4d8);background:var(--theme-info-soft,#edf1f3)}.history-action-button.billing.excluded:hover:not(:disabled){color:var(--theme-text,#46555d);border-color:var(--theme-border-strong,#adbcc2);background:var(--theme-info-soft,#e3eaed)}.history-action-button.primary{color:var(--theme-on-accent,#fff);border-color:var(--theme-accent-border,#018b8d);background:var(--theme-accent-solid,#018b8d)}.history-action-button.primary:hover:not(:disabled){color:var(--theme-on-accent,#fff);border-color:var(--theme-accent-border,#00797b);background:var(--theme-accent-solid-hover,#00797b)}.history-action-button:disabled{cursor:wait;opacity:.65}.history-record-summary{border-bottom:1px solid var(--line);background:var(--theme-surface-muted,#e5e5eb);grid-template-columns:repeat(4,1fr);gap:1px;display:grid}.history-record-summary>span{background:var(--theme-surface,white);gap:5px;min-width:0;padding:13px 15px;display:grid}.history-record-summary small{color:var(--theme-text-muted,#8a8e9d);font-size:11px}.history-record-summary b{color:var(--theme-text,#454858);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.history-record-visitor{border-bottom:1px solid var(--line);background:var(--theme-surface-muted,#fbfbfd);grid-row:3;padding:14px 20px 13px}.history-record-visitor>header{color:var(--theme-info,#5b5bd6);align-items:center;gap:9px;margin-bottom:11px;display:flex}.history-record-visitor>header>div{gap:2px;min-width:0;display:grid}.history-record-visitor>header b{color:var(--theme-text,#444758);font-size:13px}.history-record-visitor>header span{color:var(--theme-text-muted,#8a8d9b);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.history-record-visitor dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 18px;margin:0;display:grid}.history-record-visitor dl>div{gap:3px;min-width:0;display:grid}.history-record-visitor dt{color:var(--theme-text-muted,#9295a2);font-size:10px}.history-record-visitor dd{color:var(--theme-text,#4d5060);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:12px;font-weight:600;overflow:hidden}.history-record-visitor details{margin-top:10px}.history-record-visitor summary{cursor:pointer;width:max-content;color:var(--theme-info,#666ad0);font-size:11px}.history-record-visitor code{max-height:70px;color:var(--theme-text-muted,#666a79);background:var(--theme-surface-muted,#f0f0f4);white-space:pre-wrap;word-break:break-all;border-radius:7px;margin-top:7px;padding:8px;font-size:10px;line-height:1.5;display:block;overflow:auto}.history-record-messages{flex-direction:column;grid-row:4;gap:15px;min-height:0;padding:24px 26px 30px;display:flex;overflow-y:auto}.history-record-flags{flex-wrap:wrap;align-items:center;gap:4px;margin-top:5px;display:flex}.history-record-flags i{border-radius:5px;padding:2px 5px;font-size:9px;font-style:normal;font-weight:700;display:inline-flex}.history-proactive-panel{border:1px solid var(--theme-accent-border,#b8d8d5);background:var(--theme-surface,#fff);width:min(620px,100%);box-shadow:0 8px 24px var(--theme-accent-shadow,#015a5b14);border-radius:14px;align-self:center;gap:11px;margin-bottom:9px;padding:15px;display:grid}.history-proactive-panel>div{color:var(--theme-accent,#087f81);align-items:flex-start;gap:9px;display:flex}.history-proactive-panel>div>span{gap:3px;display:grid}.history-proactive-panel b{color:var(--theme-text,#315455);font-size:14px}.history-proactive-panel small{color:var(--theme-text-muted,#7a8d8e);font-size:11px;line-height:1.5}.history-proactive-panel textarea{resize:vertical;border:1px solid var(--theme-border,#d9e5e3);width:100%;min-height:92px;color:var(--theme-text,#374d4e);background:var(--theme-surface-muted,#f9fcfb);font:inherit;border-radius:10px;outline:none;padding:10px 11px;font-size:13px;line-height:1.6}.history-proactive-panel textarea:focus{border-color:var(--theme-accent-border,#79bdb8);background:var(--theme-surface,#fff);box-shadow:0 0 0 3px var(--theme-accent-shadow,#018b8d14)}.history-proactive-panel>footer{justify-content:flex-end;gap:7px;display:flex}.history-proactive-panel>footer button{border:1px solid var(--theme-border,#d9e3e2);min-height:34px;color:var(--theme-text-muted,#667778);background:var(--theme-surface,#fff);border-radius:8px;align-items:center;gap:5px;padding:0 11px;font-size:12px;font-weight:700;display:inline-flex}.history-proactive-panel>footer button.primary{color:var(--theme-on-accent,#fff);border-color:var(--theme-accent-border,#018b8d);background:var(--theme-accent-solid,#018b8d)}.history-proactive-panel>footer button:disabled{cursor:not-allowed;opacity:.55}.history-record-message{align-self:flex-start;gap:5px;max-width:76%;display:grid}.history-record-message.outbound{align-self:flex-end;justify-items:end}.history-record-message.system{align-self:center;justify-items:center;max-width:90%}.history-record-bubble{border:1px solid var(--theme-border,#e2e3e9);min-width:76px;color:var(--theme-text,#393c4c);background:var(--theme-surface,white);box-shadow:0 4px 13px var(--theme-shadow,#1e20300a);white-space:pre-wrap;word-break:break-word;border-radius:5px 15px 15px;padding:11px 13px;font-size:14px;line-height:1.65}.history-record-message.outbound .history-record-bubble{color:var(--theme-on-accent,white);border-color:var(--theme-info-border,#5b5bd6);background:var(--theme-info-solid,#5b5bd6);border-radius:15px 5px 15px 15px}.history-record-message.system .history-record-bubble{color:var(--theme-text-muted,#747888);background:var(--theme-surface-muted,#ebebf0);border:0;border-radius:12px;font-size:12px}.history-record-message time{color:var(--theme-text-muted,#9598a5);font-size:11px}.history-record-message .attachment{color:inherit;background:var(--theme-highlight,#ffffff21);border-color:var(--theme-border-strong,#82849638);margin-top:8px}.history-record-loading{min-height:240px;color:var(--theme-text-muted,#8b8e9c);place-content:center;justify-items:center;gap:11px;font-size:13px;display:grid}.history-record-notes{border-top:1px solid var(--line);background:var(--theme-surface,white);grid-row:5;max-height:180px;padding:14px 22px;overflow-y:auto}.history-record-notes h3{margin:0 0 9px;font-size:14px}.history-record-notes>div{background:var(--theme-surface-muted,#f5f5f8);border-radius:8px;margin-top:7px;padding:9px 11px}.history-record-notes p{margin:0 0 4px;font-size:13px}.history-record-notes small{color:var(--theme-text-muted,#8b8e9c);font-size:11px}.history-record-drawer>footer{color:var(--theme-text-muted,#898d9a);background:var(--theme-surface-muted,#f2f2f5);border-top:1px solid var(--line);text-align:center;grid-row:6;padding:11px 20px;font-size:11px}@media (max-width:1200px){.app-shell{grid-template-columns:190px 1fr}.inbox-layout{grid-template-columns:330px minmax(420px,1fr)}.contact-panel{z-index:7;width:320px;box-shadow:-15px 0 40px var(--theme-shadow,#20223714);position:absolute;top:64px;bottom:0;right:0}.create-member>div{grid-template-columns:repeat(3,1fr)}.metric-grid{grid-template-columns:repeat(2,1fr)}.automation-template-grid{grid-template-columns:1fr}}@media (max-width:850px){.login-page{grid-template-columns:1fr}.login-story{display:none}.mobile-brand{display:flex}.app-shell{grid-template-rows:1fr 64px;grid-template-columns:1fr}.sidebar{z-index:20;flex-direction:row;grid-row:2;align-items:center;padding:7px 12px}.sidebar-brand,.sidebar-bottom{display:none}.sidebar nav{justify-content:space-around;display:flex;overflow-x:auto}.sidebar nav a{flex:0 0 54px;justify-content:center;height:50px;padding:0}.sidebar nav a span{display:none}.sidebar nav a.active:before{width:auto;height:2px;bottom:-7px;left:20%;right:20%}.app-main{grid-row:1;grid-template-rows:56px minmax(0,1fr)}.inbox-layout{grid-template-columns:320px 1fr}.topbar{height:56px}.workspace-page{padding:26px 20px 52px}.channel-grid,.report-columns,.quick-reply-layout{grid-template-columns:1fr}.quick-reply-editor{position:static}.team-table{overflow-x:auto}.table-head,.table-row{min-width:900px}.create-member>div{grid-template-columns:1fr 1fr}.history-toolbar{flex-direction:column;align-items:stretch}.history-search{width:100%;min-width:0}.history-toolbar label:not(.history-search){justify-content:space-between}.history-toolbar select{flex:1}}@media (max-width:650px){.login-panel{padding:30px}.mobile-brand{margin-bottom:45px}.inbox-layout{display:block;position:relative}.conversation-list-panel{height:calc(100vh - 120px)}.chat-panel{z-index:5;height:100%;display:none;position:absolute;inset:0}.chat-panel.has-chat{display:grid}.mobile-back{background:var(--theme-surface-muted,#f0f0f3);border:0;border-radius:8px;place-items:center;width:31px;height:31px;display:grid}.chat-actions .transfer-control,.chat-actions .soft-button:not(.accent){display:none}.messages{padding:20px 12px}.message-wrap{max-width:82%}.contact-panel{top:56px;bottom:64px}.workspace-heading{align-items:flex-start}.workspace-heading p,.quick-reply-total{display:none}.quick-reply-list{grid-template-columns:1fr}.quick-reply-library>header{flex-direction:column;align-items:stretch}.quick-reply-library>header label{width:100%}.automation-overview,.team-stats,.metric-grid{grid-template-columns:1fr}.create-strip{flex-direction:column}.rule-flow{flex-direction:column;align-items:flex-start}.rule-flow i{transform:rotate(90deg)}.create-member>div,.report-columns,.dual-number-fields{grid-template-columns:1fr}.template-flow{justify-content:flex-start;overflow-x:auto}}*{scrollbar-width:thin;scrollbar-color:var(--theme-border-strong,#b8cfcd) transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:var(--theme-surface-hover,#b8cfcd);background-clip:padding-box;border:2px solid #0000;border-radius:10px}::-webkit-scrollbar-track{background:0 0}body{background:var(--theme-surface-muted,#f3f8f7)}button,a,input,textarea,select{transition:border-color .16s,background-color .16s,color .16s,box-shadow .16s,transform .16s}button:focus-visible,a:focus-visible{outline:2px solid var(--theme-accent-border,#168a80);outline-offset:2px}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--theme-accent-border,#018b8d33);outline-offset:2px}.eyebrow{color:var(--theme-accent,#018b8d)}.eyebrow.light{color:var(--theme-accent,#70d8cf)}.login-page{background:var(--theme-surface-muted,#f5faf9)}.login-story{background:radial-gradient(circle at 78% 18%,var(--theme-accent-shadow,#2ecfc23d),transparent 30%),radial-gradient(circle at 12% 78%,var(--theme-accent-shadow,#018b8d2e),transparent 34%),linear-gradient(145deg,var(--theme-inverse-surface,#123b3d),var(--theme-inverse-surface-deep,#0b2426) 68%,var(--theme-inverse-surface-deep,#071b1d));padding:48px 64px}.login-story:after{border-color:var(--theme-accent-border,#96e7e017);box-shadow:0 0 0 80px var(--theme-accent-shadow,#50cfc606),0 0 0 160px var(--theme-accent-shadow,#50cfc605)}.brand-mark svg{color:var(--theme-accent,#67d7ce)}.story-copy{max-width:620px}.story-copy h1{color:var(--theme-inverse-text,#f4fffe)}.story-copy>p{color:var(--theme-inverse-text,#b7ccca)}.story-metrics{gap:12px}.story-metrics div{border:1px solid var(--theme-accent-border,#96e1db1f);background:var(--theme-highlight,#ffffff0b);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:14px;min-width:126px;padding:14px 16px}.story-metrics b{color:var(--theme-accent,#d8fffb)}.story-metrics span{color:var(--theme-inverse-text-muted,#91adab)}.story-card{border-color:var(--theme-accent-border,#96e1db24);background:var(--theme-highlight,#ffffff0e);border-radius:12px}.login-panel{background:radial-gradient(circle at 80% 15%,var(--theme-accent-shadow,#018b8d14),transparent 28%),var(--theme-surface-muted,#f5faf9)}.login-form{border:1px solid var(--theme-border,#dfeae8);background:var(--theme-surface,#fff);width:min(430px,100%);box-shadow:0 24px 65px var(--theme-accent-shadow,#0d494a1c);border-radius:22px;padding:42px}.login-form h2{color:var(--theme-text,#173638)}.login-form input{border-color:var(--theme-border,#d7e4e2);background:var(--theme-surface-muted,#fbfdfd)}.login-form input:focus{border-color:var(--theme-accent-border,#54b8b5);box-shadow:0 0 0 4px var(--theme-accent-shadow,#018b8d17)}.input-icon svg{color:var(--theme-text-muted,#739091)}.secret-box{color:var(--theme-accent,#007c7e);border-color:var(--theme-accent-border,#c7e5e2);background:var(--theme-accent-soft,#eaf7f6)}.app-shell{background:var(--theme-bg,#f3f8f7);grid-template-columns:228px 1fr}.sidebar{background:linear-gradient(180deg,var(--theme-inverse-surface,#10292b),var(--theme-inverse-surface-deep,#0b2224));box-shadow:8px 0 30px var(--theme-accent-shadow,#0a272914);padding:20px 16px 16px}.sidebar-brand{border-bottom:1px solid var(--theme-accent-border,#c8f0ec14);margin-bottom:30px;padding:0 8px 20px}.sidebar-brand>span{background:linear-gradient(145deg,var(--theme-accent-solid,#08a5a6),var(--theme-accent-solid,#01777a));box-shadow:0 9px 20px var(--theme-accent-shadow,#018b8d45);border-radius:13px}.sidebar-brand>b{letter-spacing:-.015em}.sidebar nav,.sidebar-bottom{gap:7px}.sidebar nav a,.sidebar-bottom a,.sidebar-bottom button{height:48px;color:var(--theme-text-subtle,#9bb2b2);border-radius:12px}.sidebar nav a:hover,.sidebar nav a.active,.sidebar-bottom a:hover,.sidebar-bottom button:hover{color:var(--theme-on-accent,#effffd);background:var(--theme-accent-soft,#5ebeb71f)}.sidebar nav a.active{box-shadow:inset 0 0 0 1px var(--theme-shadow,#69cfc714)}.sidebar nav a.active:before{background:var(--theme-accent,#38c8bd);width:4px;height:28px;box-shadow:0 0 16px var(--theme-accent-shadow,#38c8bd6b);left:-16px}.app-main{grid-template-rows:68px minmax(0,1fr)}.topbar{border-color:var(--theme-border,#e0eae9);background:var(--theme-surface-glass,#fffffff0);box-shadow:0 3px 16px var(--theme-accent-shadow,#0d464709);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);padding:0 24px}.presence-toggle{border-color:var(--theme-border,#d7e5e3);color:var(--theme-text-muted,#657c7d);background:var(--theme-surface-muted,#fbfdfd);border-radius:11px}.presence-toggle.online{color:var(--theme-success,#08764f);border-color:var(--theme-success-border,#b9dfd1);background:var(--theme-success-soft,#edf9f4)}.user-chip>span{color:var(--theme-accent,#007d7f);background:var(--theme-accent-soft,#e3f4f3);border:1px solid var(--theme-accent-border,#d0eae7)}.user-chip b{color:var(--theme-text,#294648)}.inbox-layout{background:var(--theme-surface,#fff)}.conversation-list-panel{border-color:var(--theme-border,#e1ebea);background:var(--theme-surface-muted,#fbfdfd)}.panel-heading{height:98px;padding-left:24px}.panel-heading h1{color:var(--theme-text,#18393b);font-size:25px}.inbox-tabs{border-color:var(--theme-border,#e1ebea)}.inbox-tabs button.active{color:var(--theme-accent,#007f81)}.inbox-tabs button.active:after{background:var(--theme-accent-solid,#018b8d);height:3px}.list-tools{padding:14px}.search-box{border-color:var(--theme-border,#e4eceb);background:var(--theme-accent-soft,#f1f6f5);border-radius:11px;min-height:43px}.search-box:focus-within{border-color:var(--theme-accent-border,#8ecbc8);background:var(--theme-surface,#fff);box-shadow:0 0 0 3px var(--theme-accent-shadow,#018b8d12)}.conversation-list{padding:2px 10px 14px}.conversation-row{border:1px solid #0000;border-radius:13px;margin-bottom:5px;padding:14px 12px}.conversation-row:hover{border-color:var(--theme-border,#e2ecea);background:var(--theme-surface-hover,#f5f9f8)}.conversation-row.selected{border-color:var(--theme-accent-border,#bfe2df);background:linear-gradient(135deg,var(--theme-accent-soft,#e9f7f6),var(--theme-surface-muted,#f3fbfa));box-shadow:0 7px 18px var(--theme-accent-shadow,#018b8d12)}.channel-avatar{border-radius:13px}.channel-avatar.website{color:var(--theme-accent,#047f81);background:var(--theme-accent-soft,#e0f3f2)}.row-title b{color:var(--theme-text,#294748)}.row-meta em{color:var(--theme-warning,#9a6518);background:var(--theme-warning-soft,#fff4df)}.chat-panel{background:var(--theme-surface-muted,#f3f7f6)}.chat-header{border-color:var(--theme-border,#e0eae9);height:78px;box-shadow:0 3px 14px var(--theme-accent-shadow,#0d464706);padding:0 20px 0 24px}.chat-customer h2{color:var(--theme-text,#244345)}.transfer-button{border-color:var(--theme-border,#dce8e6);color:var(--theme-text,#50696a);border-radius:11px}.messages{background:linear-gradient(180deg,var(--theme-surface-muted,#f5f9f8),var(--theme-surface-muted,#f2f7f6))}.history-marker{color:var(--theme-text-muted,#718687);background:var(--theme-accent-soft,#e7efee)}.message-avatar{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#dff1f0)}.message-bubble{border-color:var(--theme-border,#dfe8e7);box-shadow:0 5px 16px var(--theme-accent-shadow,#1346470d);border-radius:6px 17px 17px}.message-line.outbound .message-bubble{background:linear-gradient(135deg,var(--theme-accent-solid,#018b8d),var(--theme-accent-solid,#00797b));box-shadow:0 8px 20px var(--theme-accent-shadow,#018b8d2e);border-radius:17px 6px 17px 17px}.attachment{border:1px solid var(--theme-accent-border,#015d5f1f);background:var(--theme-highlight,#ffffff29);border-radius:10px}.composer-wrap{border-color:var(--theme-border,#dfe9e8);background:var(--theme-surface-glass,#fffffff7);box-shadow:0 -8px 24px var(--theme-accent-shadow,#11454609);padding:12px 16px 15px}.composer{border-color:var(--theme-border,#d5e3e1);box-shadow:0 6px 22px var(--theme-accent-shadow,#1246470e);border-radius:14px}.composer:focus-within{border-color:var(--theme-accent-border,#69bdb9);box-shadow:0 0 0 4px var(--theme-accent-shadow,#018b8d14),0 8px 24px var(--theme-accent-shadow,#1246470f)}.send-button{background:linear-gradient(135deg,var(--theme-accent-solid,#018b8d),var(--theme-accent-solid,#00777a));height:38px;box-shadow:0 6px 15px var(--theme-accent-shadow,#018b8d2e);border-radius:10px}.quick-menu{border-color:var(--theme-border,#dce8e6);border-radius:13px}.contact-panel{border-color:var(--theme-border,#e0eae9);background:var(--theme-surface-muted,#fcfefe)}.contact-profile{border-color:var(--theme-border,#e2ebea);background:linear-gradient(180deg,var(--theme-surface-muted,#f2faf9),var(--theme-surface,#fff))}.profile-avatar{background:linear-gradient(145deg,var(--theme-accent-solid,#08a3a4),var(--theme-accent-solid,#007476));box-shadow:0 10px 24px var(--theme-accent-shadow,#018b8d38);border-radius:17px}.contact-section{border-color:var(--theme-border,#e3ebea)}.retention-card{color:var(--theme-text,#1f5d50);background:var(--theme-success-soft,#eaf7f2)}.notes>div{border-left-color:var(--theme-accent-border,#72beba)}.notes-section button{color:var(--theme-accent,#007d7f);background:var(--theme-accent-soft,#e4f4f3)}.workspace-page{background:linear-gradient(180deg,var(--theme-bg,#f5f9f8),var(--theme-bg,#f1f6f5))}.workspace-heading h1{color:var(--theme-text,#173638);font-size:32px}.workspace-heading p{color:var(--theme-text-muted,#6b8081)}.channel-card:hover,.automation-template:hover,.metric-grid article:hover,.report-card:hover{border-color:var(--theme-border,#c6dfdc);box-shadow:0 15px 36px var(--theme-accent-shadow,#0f484913);transform:translateY(-1px)}.large-channel-icon.website{color:var(--theme-accent,#007e80);background:var(--theme-accent-soft,#e1f4f3)}.connection-pill.connected{color:var(--theme-success,#117753);background:var(--theme-success-soft,#e7f6ef)}.embed-code{background:var(--theme-inverse-surface,#163638);color:var(--theme-inverse-text,#c7dddb)}.embed-code button{background:var(--theme-inverse-surface-raised,#275052)}.automation-overview>div,.team-stats>div{border-color:var(--theme-border,#dce8e6);box-shadow:0 8px 24px var(--theme-accent-shadow,#0f484909);border-radius:14px}.automation-template>header>span{color:var(--theme-accent,#007f81);background:var(--theme-accent-soft,#e2f4f3)}.automation-template.idle-close>header>span{color:var(--theme-text,#28746f);background:var(--theme-accent-soft,#e8f3f1)}.template-flow{color:var(--theme-text-muted,#668081);background:var(--theme-surface-muted,#f1f7f6)}.automation-template textarea:focus,.number-field:focus-within,.schedule-fields input:focus{border-color:var(--theme-accent-border,#65bbb7);box-shadow:0 0 0 3px var(--theme-accent-shadow,#018b8d14)}.template-save{background:linear-gradient(135deg,var(--theme-accent-solid,#018b8d),var(--theme-accent-solid,#00777a));box-shadow:0 8px 18px var(--theme-accent-shadow,#018b8d2b)}.rule-order,.member-cell>i,.mini-avatar{color:var(--theme-accent,#007f81);background:var(--theme-accent-soft,#e3f4f3)}.trigger-pill{color:var(--theme-text,#297879);background:var(--theme-accent-soft,#e9f5f4)}.power-button.on{color:var(--theme-success,#087c55);background:var(--theme-success-soft,#e6f6ef)}.power-button{justify-content:center;align-items:center;display:inline-flex}.power-button:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--theme-shadow,#c8dbd4)}.power-button:active:not(:disabled){box-shadow:inset 0 0 0 1px var(--theme-shadow,#96bfb0)}.table-head{color:var(--theme-text-muted,#6f8585);background:var(--theme-accent-soft,#eef5f4)}.metric-icon.violet{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e1f4f3)}.bar-list i{background:var(--theme-accent-soft,#e5efee)}.bar-list i span{background:linear-gradient(90deg,var(--theme-accent-solid,#018b8d),var(--theme-accent-solid,#44b9b3))}.history-search:focus-within{border-color:var(--theme-accent-border,#70bfbb);box-shadow:0 0 0 3px var(--theme-accent-shadow,#018b8d14)}.history-customer>span{color:var(--theme-accent,#007f81);background:var(--theme-accent-soft,#e3f4f3)}.history-agent{color:var(--theme-text,#2c7474);background:var(--theme-accent-soft,#e9f5f4)}.history-channel{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e1f4f3)}.message-count.outbound{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e4f4f3)}.history-record-drawer{background:var(--theme-surface-muted,#f3f8f7)}.history-record-visitor>header,.history-record-visitor summary{color:var(--theme-accent,#018b8d)}.history-record-message.outbound .history-record-bubble{border-color:var(--theme-accent-border,#018b8d);background:linear-gradient(135deg,var(--theme-accent-solid,#018b8d),var(--theme-accent-solid,#00797b))}.message-image-button{cursor:zoom-in;background:0 0;border:0;border-radius:12px;max-width:min(360px,48vw);margin:5px 0 0;padding:0;display:block;overflow:hidden}.message-image{object-fit:contain;background:var(--theme-accent-soft,#edf4f3);border-radius:12px;width:auto;max-width:100%;max-height:360px;display:block}.message-line.outbound .message-image{background:var(--theme-highlight,#ffffff1f)}.message-image-placeholder{border:1px dashed var(--theme-accent-border,#016f7140);background:var(--theme-accent-soft,#ebf7f6b3);min-width:210px;min-height:86px;color:var(--theme-text,#527170);border-radius:12px;justify-content:center;align-items:center;gap:8px;margin-top:5px;padding:14px;display:flex}.message-image-placeholder:disabled{cursor:wait;opacity:.8}.message-image-placeholder.failed{cursor:pointer;color:var(--theme-danger,#a84d4d);border-color:var(--theme-danger-border,#a84d4d47);background:var(--theme-surface-muted,#fff5f4)}.message-line.outbound .message-image-placeholder:not(.failed),.history-record-message.outbound .message-image-placeholder:not(.failed){color:var(--theme-on-accent,white);border-color:var(--theme-highlight,#ffffff5c);background:var(--theme-highlight,#ffffff1f)}.history-record-bubble .message-image-button{max-width:min(420px,60vw)}.history-record-bubble .message-image{max-height:420px}.message-sticker{object-fit:contain;background:0 0;border:0;width:176px;height:176px;margin:4px 0 0;display:block}.message-sticker-frame{width:176px;height:176px;margin-top:4px;position:relative}.message-sticker-frame .message-sticker{margin:0}.message-sticker-lottie>svg{display:block;width:100%!important;height:100%!important}.message-sticker-loading{color:var(--theme-text,#527170);justify-content:center;align-items:center;gap:7px;font-size:13px;display:flex;position:absolute;inset:0}.message-sticker-placeholder{border:1px dashed var(--theme-accent-border,#016f7140);background:var(--theme-accent-soft,#ebf7f6b3);min-width:176px;min-height:88px;color:var(--theme-text,#527170);border-radius:12px;justify-content:center;align-items:center;gap:8px;margin-top:4px;padding:12px;display:flex}.message-sticker-placeholder.failed{cursor:pointer;color:var(--theme-danger,#a84d4d);border-color:var(--theme-danger-border,#a84d4d47);background:var(--theme-surface-muted,#fff5f4)}.message-line.outbound .message-sticker-loading,.history-record-message.outbound .message-sticker-loading{color:var(--theme-on-accent,white)}.image-lightbox{z-index:160;background:var(--theme-overlay,#051415d1);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);place-items:center;padding:28px;display:grid;position:fixed;inset:0}.image-lightbox-content{grid-template-rows:minmax(0,1fr) auto;justify-items:center;gap:10px;max-width:94vw;max-height:94vh;display:grid;position:relative}.image-lightbox-content>img{object-fit:contain;background:var(--theme-inverse-surface,#10292b);border-radius:12px;max-width:92vw;max-height:86vh;display:block}.image-lightbox-content>span{max-width:min(760px,86vw);color:var(--theme-inverse-text,#ffffffe6);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.image-lightbox-close{z-index:1;border:1px solid var(--theme-highlight,#ffffff38);width:42px;height:42px;color:var(--theme-inverse-text,white);background:var(--theme-overlay,#051415ad);border-radius:11px;place-items:center;display:grid;position:absolute;top:10px;right:10px}.image-lightbox-close:hover{background:var(--theme-accent-solid-hover,#018b8d)}.holiday-year-picker label{color:var(--theme-text-muted,#5f7475);align-items:center;gap:10px;font-size:13px;font-weight:700;display:flex}.holiday-year-picker input{border:1px solid var(--theme-border,#cedfdd);width:112px;min-height:44px;color:var(--theme-text,#173638);background:var(--theme-surface,white);border-radius:11px;outline:none;padding:0 12px;font-size:16px;font-weight:700}.holiday-year-picker input:focus{border-color:var(--theme-accent-border,#65b9b6);box-shadow:0 0 0 4px var(--theme-accent-shadow,#018b8d14)}.page-success{border:1px solid var(--theme-success-border,#cbe8dc);color:var(--theme-accent,#146c51);background:var(--theme-success-soft,#eaf8f2);border-radius:9px;align-items:center;gap:8px;margin:-10px 0 18px;padding:11px 13px;font-size:14px;display:flex}.holiday-summary{grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px;display:grid}.holiday-summary>div{border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,white);min-height:80px;box-shadow:0 8px 24px var(--theme-accent-shadow,#0f484909);border-radius:15px;align-items:center;gap:13px;padding:16px 18px;display:flex}.holiday-summary>div>span{width:43px;height:43px;color:var(--theme-accent,#007f81);background:var(--theme-accent-soft,#e3f4f3);border-radius:12px;place-items:center;display:grid}.holiday-summary p{color:var(--theme-text-muted,#708485);gap:2px;margin:0;font-size:12px;display:grid}.holiday-summary b{color:var(--theme-text,#183b3d);font-size:20px}.holiday-layout{grid-template-columns:minmax(480px,1.08fr) minmax(390px,.92fr);align-items:start;gap:18px;display:grid}.holiday-editor-card,.holiday-preview-card{border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,white);min-width:0;box-shadow:0 10px 30px var(--theme-accent-shadow,#0f48490b);border-radius:16px;overflow:hidden}.holiday-editor-card>header,.holiday-preview-card>header{border-bottom:1px solid var(--theme-border,#e3eceb);justify-content:space-between;align-items:center;gap:16px;padding:20px 22px;display:flex}.holiday-editor-card h2,.holiday-preview-card h2{color:var(--theme-text,#183b3d);margin:0 0 4px;font-size:18px}.holiday-editor-card header p,.holiday-preview-card header p{color:var(--theme-text-muted,#718485);margin:0;font-size:13px}.holiday-editor-card textarea{resize:vertical;width:100%;min-height:570px;color:var(--theme-text,#254547);background:var(--theme-surface-muted,#f8fbfa);tab-size:2;border:0;outline:none;padding:20px 22px;font:13px/1.65 Cascadia Code,Consolas,monospace;display:block}.holiday-editor-card>footer{border-top:1px solid var(--theme-border,#e3eceb);justify-content:space-between;align-items:center;gap:16px;padding:15px 20px;display:flex}.holiday-editor-card>footer>span{color:var(--theme-text-muted,#7a8c8d);font-size:12px}.holiday-loading{min-height:570px;color:var(--theme-text-muted,#738687);background:var(--theme-surface-muted,#f8fbfa);place-items:center;display:grid}.holiday-preview-card>header{display:block}.holiday-list{max-height:680px;padding:12px;overflow-y:auto}.holiday-list article{border:1px solid var(--theme-border,#e1ebea);background:var(--theme-surface-muted,#fcfefe);border-radius:13px;padding:16px}.holiday-list article+article{margin-top:10px}.holiday-name{grid-template-columns:36px 1fr auto;align-items:center;gap:11px;display:grid}.holiday-name>span{width:36px;height:36px;color:var(--theme-accent,#007f81);background:var(--theme-accent-soft,#e3f4f3);border-radius:10px;place-items:center;font-size:12px;font-weight:800;display:grid}.holiday-name h3{color:var(--theme-text,#183b3d);margin:0 0 2px;font-size:15px}.holiday-name p{color:var(--theme-text-muted,#829394);margin:0;font-size:12px}.holiday-name>b{color:var(--theme-accent,#087b7d);background:var(--theme-accent-soft,#e8f5f4);border-radius:8px;padding:5px 8px;font-size:12px}.holiday-list dl{gap:8px;margin:14px 0 0 47px;display:grid}.holiday-list dl>div{grid-template-columns:72px 1fr;gap:8px;font-size:12px;line-height:1.6;display:grid}.holiday-list dt{color:var(--theme-text-muted,#829394)}.holiday-list dd{color:var(--theme-text,#4b6566);word-break:break-word;margin:0}.holiday-empty{min-height:300px;color:var(--theme-text-muted,#8ca0a0);text-align:center;align-content:center;place-items:center;gap:8px;display:grid}.holiday-empty b{color:var(--theme-text,#526e6f);font-size:15px}.holiday-empty span{font-size:12px}@media (max-width:1200px){.app-shell{grid-template-columns:198px 1fr}.holiday-layout{grid-template-columns:1fr}.holiday-editor-card textarea,.holiday-loading{min-height:460px}}@media (max-width:850px){.app-shell{grid-template-columns:1fr}.login-form{padding:34px}.sidebar{background:var(--theme-inverse-surface,#10292b)}.topbar{padding:0 14px}}@media (max-width:650px){.login-page{min-height:100svh}.login-panel{min-height:100svh;padding:max(18px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow-y:auto}.login-form{width:100%;max-width:430px;box-shadow:0 18px 48px var(--theme-accent-shadow,#0d494a1a);border-radius:18px;padding:26px 22px}.mobile-brand{color:var(--theme-text,#21494a);margin-bottom:28px;font-size:15px}.mobile-brand svg{color:var(--theme-accent,#018b8d)}.login-form h2{margin:8px 0 7px;font-size:28px}.form-intro{margin-bottom:22px;font-size:14px}.login-form label{margin-bottom:14px}.login-form input{min-height:50px;font-size:16px}.login-button{min-height:50px}.composer-wrap{padding:10px}}@media (max-width:650px) and (max-height:700px){.login-panel{padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom));place-items:start center}.login-form{margin:0;padding:20px}.mobile-brand{margin-bottom:16px}.login-form h2{font-size:26px}.form-intro{margin-bottom:16px;line-height:1.55}.login-form label{margin-bottom:12px}.secret-box{margin-bottom:14px}}@media (max-width:650px){.takeover-composer{min-height:92px;padding:13px}.takeover-composer>div{display:none}.takeover-composer>button{width:100%}.message-image-button,.history-record-bubble .message-image-button{max-width:min(280px,70vw)}.message-image,.history-record-bubble .message-image{max-height:320px}.image-lightbox{padding:12px}.image-lightbox-content>img{max-width:96vw;max-height:84vh}.chat-actions .soft-button.follow-up-action{width:40px;padding:0;font-size:0;display:inline-flex}.history-record-drawer>header{padding:14px 12px}.history-record-drawer>header>div:first-child{min-width:0}.history-record-drawer>header h2,.history-record-drawer>header p{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.history-record-header-actions{flex:none;gap:4px}.history-action-button{justify-content:center;width:36px;min-height:36px;padding:0;font-size:0}.holiday-summary{grid-template-columns:1fr}.holiday-year-picker input{width:96px}.holiday-editor-card>header,.holiday-editor-card>footer{flex-direction:column;align-items:stretch}.holiday-editor-card textarea{min-height:420px;padding:16px}.holiday-list dl{margin-left:0}.holiday-name{grid-template-columns:36px 1fr auto}}.compensation-month{color:var(--theme-text-muted,#5f7475);align-items:center;gap:10px;font-size:13px;font-weight:700;display:flex}.compensation-month input{border:1px solid var(--theme-border,#cedfdd);min-height:44px;color:var(--theme-text,#173638);background:var(--theme-surface,#fff);border-radius:11px;outline:none;padding:0 12px;font-size:15px;font-weight:700}.compensation-month input:focus{border-color:var(--theme-accent-border,#65b9b6);box-shadow:0 0 0 4px var(--theme-accent-shadow,#018b8d14)}.compensation-rule-note{border:1px solid var(--theme-accent-border,#cfe5e2);color:var(--theme-text,#2b6361);background:var(--theme-accent-soft,#eaf6f4);border-radius:14px;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;margin-bottom:18px;padding:15px 17px;display:grid}.compensation-rule-note>svg{color:var(--theme-accent,#018b8d)}.compensation-rule-note div{gap:3px;display:grid}.compensation-rule-note b{color:var(--theme-text,#174d4c);font-size:14px}.compensation-rule-note span{font-size:12px;line-height:1.55}.compensation-rule-note em{color:var(--theme-accent,#087779);background:var(--theme-accent-soft,#d8efec);white-space:nowrap;border-radius:8px;padding:5px 9px;font-size:11px;font-style:normal;font-weight:700}.compensation-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px;display:grid}.compensation-summary-grid article{border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,#fff);min-width:0;box-shadow:0 8px 24px var(--theme-accent-shadow,#0f484909);border-radius:15px;align-items:center;gap:12px;padding:16px;display:flex}.compensation-summary-grid article>span{width:42px;height:42px;color:var(--theme-accent,#007f81);background:var(--theme-accent-soft,#e3f4f3);border-radius:12px;flex:0 0 42px;place-items:center;display:grid}.compensation-summary-grid article>span svg{width:19px}.compensation-summary-grid article>div{gap:2px;min-width:0;display:grid}.compensation-summary-grid small{color:var(--theme-text-muted,#738687);font-size:11px}.compensation-summary-grid b{color:var(--theme-text,#173b3d);text-overflow:ellipsis;white-space:nowrap;font-size:19px;overflow:hidden}.compensation-summary-grid em{color:var(--theme-text-muted,#8a9a9b);text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-style:normal;overflow:hidden}.compensation-summary-grid .total{border-color:var(--theme-accent-border,#9bcfca);background:linear-gradient(135deg,var(--theme-surface-muted,#f0fbf9),var(--theme-accent-soft,#e5f6f3))}.compensation-summary-grid b.positive,.positive-text{color:var(--theme-accent,#087b58)}.compensation-summary-grid b.negative,.negative-text{color:var(--theme-danger,#b94a52)}.warning-text{color:var(--theme-warning,#a46618);font-style:normal}.muted-text{color:var(--theme-text-muted,#89999a)}.compensation-table-card{border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,#fff);box-shadow:0 10px 30px var(--theme-accent-shadow,#0f48490b);border-radius:16px;overflow:hidden}.compensation-table-card>header{border-bottom:1px solid var(--theme-border,#e1ebea);justify-content:space-between;align-items:center;padding:19px 21px;display:flex}.compensation-table-card>header h2{color:var(--theme-text,#183b3d);margin:0 0 3px;font-size:18px}.compensation-table-card>header p{color:var(--theme-text-muted,#7a8d8e);margin:0;font-size:12px}.compensation-table-card>header>span{color:var(--theme-accent,#087779);background:var(--theme-accent-soft,#e3f4f2);border-radius:8px;padding:5px 9px;font-size:11px;font-weight:800}.compensation-loading,.compensation-empty{min-height:260px;color:var(--theme-text-muted,#7f9293);place-items:center;font-size:13px;display:grid}.compensation-table-scroll{overflow-x:auto}.compensation-table-head,.compensation-table-row{grid-template-columns:190px 105px 105px 100px 95px 110px 100px 105px 115px 145px 95px 105px 125px 38px;align-items:center;gap:13px;min-width:1780px;padding:13px 18px;display:grid}.compensation-table-head.payment-admin,.compensation-table-row.payment-admin{grid-template-columns:190px 105px 105px 100px 95px 110px 100px 105px 115px 145px 95px 105px 125px 112px 76px;min-width:1930px}.compensation-table-head{color:var(--theme-text-muted,#708586);background:var(--theme-accent-soft,#eef5f4);letter-spacing:.04em;font-size:11px;font-weight:800}.compensation-table-row{border-top:1px solid var(--theme-border,#e5edec);color:var(--theme-text,#4e696a);font-size:13px}.compensation-table-row:hover{background:var(--theme-surface-hover,#fbfdfd)}.compensation-table-row>span{gap:2px;display:grid}.compensation-table-row>span>b{color:var(--theme-text,#214849)}.compensation-table-row>span>small{color:var(--theme-text-muted,#8a9a9b);white-space:nowrap;font-size:11px}.compensation-table-row>strong{color:var(--theme-accent,#007f81);font-size:15px}.compensation-table-row>button{width:32px;height:32px;color:var(--theme-accent,#007f81);background:var(--theme-accent-soft,#e5f4f2);border:0;border-radius:9px;place-items:center;display:grid}.compensation-table-row>button:hover{background:var(--theme-accent-soft,#d4ece9)}.compensation-table-actions{align-items:center;gap:6px;display:flex}.compensation-table-actions button{width:32px;height:32px;color:var(--theme-accent,#16776f);background:var(--theme-success-soft,#f0f7f4);cursor:pointer;border:1px solid #0000;border-radius:8px;place-items:center;display:grid}.compensation-table-actions button:hover:not(:disabled){color:var(--theme-accent,#05665e);border-color:var(--theme-success-border,#c8e3d9);background:var(--theme-success-soft,#e5f2ec)}.compensation-table-actions button:active:not(:disabled){background:var(--theme-success-soft,#dceddf)}.compensation-table-actions button:disabled{opacity:.5;cursor:not-allowed}.compensation-agent{align-items:center;gap:9px;min-width:0;display:flex}.compensation-agent>i{width:34px;height:34px;color:var(--theme-accent,#007f81);background:var(--theme-accent-soft,#e3f4f3);border-radius:10px;flex:0 0 34px;place-items:center;font-style:normal;font-weight:800;display:grid}.compensation-agent>span{min-width:0;display:grid}.compensation-agent b,.compensation-agent small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.compensation-agent b{color:var(--theme-text,#244849);font-size:13px}.compensation-agent small{color:var(--theme-text-muted,#89999a);font-size:10px}.payment-status{white-space:nowrap;border-radius:999px;align-items:center;gap:5px;width:max-content;padding:5px 8px;font-size:11px;font-weight:800;display:inline-flex!important}.payment-status.paid{color:var(--theme-accent,#087b58);background:var(--theme-success-soft,#e0f4eb)}.payment-status.pending{color:var(--theme-warning,#97630f);background:var(--theme-warning-soft,#fff2d9)}.payment-status.missing{color:var(--theme-danger,#a34950);background:var(--theme-danger-soft,#fbe6e8)}.payment-status.cancelled{color:var(--theme-text-muted,#6f7e7e);background:var(--theme-surface-muted,#edf1f1)}.fixed-payee-card{border:1px solid var(--theme-border,#d8e7e5);background:var(--theme-surface,#fff);box-shadow:0 10px 30px var(--theme-accent-shadow,#0f48490b);border-radius:16px;margin-top:18px;overflow:hidden}.fixed-payee-card>header{border-bottom:1px solid var(--theme-border,#e1ebea);justify-content:space-between;align-items:center;padding:19px 21px;display:flex}.fixed-payee-card>header>div{align-items:center;gap:11px;display:flex}.fixed-payee-card>header>div>span{width:40px;height:40px;color:var(--theme-accent,#087779);background:var(--theme-accent-soft,#e3f4f2);border-radius:11px;place-items:center;display:grid}.fixed-payee-card h2{color:var(--theme-text,#183b3d);margin:0 0 3px;font-size:18px}.fixed-payee-card p{color:var(--theme-text-muted,#7a8d8e);margin:0;font-size:12px}.fixed-payee-card>header>em{color:var(--theme-accent,#087779);background:var(--theme-accent-soft,#e3f4f2);border-radius:8px;padding:5px 9px;font-size:11px;font-style:normal;font-weight:800}.fixed-payee-head,.fixed-payee-row{grid-template-columns:minmax(210px,1.45fr) 110px 140px 130px 110px 120px 100px;align-items:center;gap:14px;min-width:980px;padding:13px 20px;display:grid}.fixed-payee-head{color:var(--theme-text-muted,#708586);background:var(--theme-accent-soft,#eef5f4);letter-spacing:.04em;font-size:11px;font-weight:800}.fixed-payee-row{border-top:1px solid var(--theme-border,#e5edec);color:var(--theme-text,#4e696a);font-size:13px}.fixed-payee-row>span>em{color:var(--theme-purple,#655394);background:var(--theme-purple-soft,#eee9f8);border-radius:7px;padding:5px 8px;font-size:11px;font-style:normal;font-weight:800}.fixed-payee-row>strong{color:var(--theme-accent,#087779);font-size:16px}.fixed-payee-row>button{min-height:34px;color:var(--theme-on-accent,#fff);background:var(--theme-accent-solid,#018b8d);cursor:pointer;border:0;border-radius:9px;justify-content:center;align-items:center;gap:6px;padding:0 11px;font-size:12px;font-weight:800;display:inline-flex}.payment-dialog-backdrop{z-index:145;background:var(--theme-overlay,#071f207a);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);place-items:center;padding:24px;display:grid;position:fixed;inset:0}.payment-dialog{border:1px solid var(--theme-border,#d5e5e3);background:var(--theme-surface,#fff);width:min(760px,96vw);box-shadow:0 24px 80px var(--theme-accent-shadow,#041f203d);border-radius:20px;overflow:hidden}.payment-dialog>header{border-bottom:1px solid var(--theme-border,#e0eae9);justify-content:space-between;align-items:center;padding:18px 20px;display:flex}.payment-dialog>header>div{align-items:center;gap:11px;display:flex}.payment-dialog>header>div>span{width:42px;height:42px;color:var(--theme-on-accent,#fff);background:linear-gradient(135deg,var(--theme-accent-solid,#018b8d),var(--theme-accent-solid,#007779));border-radius:12px;place-items:center;display:grid}.payment-dialog>header small{color:var(--theme-text-muted,#738687);letter-spacing:.08em;font-size:10px;font-weight:800}.payment-dialog>header h2{color:var(--theme-text,#173b3d);margin:2px 0 0;font-size:20px}.payment-dialog>header>button{width:35px;height:35px;color:var(--theme-text-muted,#617677);background:var(--theme-accent-soft,#edf4f3);cursor:pointer;border:0;border-radius:10px;place-items:center;display:grid}.payment-dialog-body{background:var(--theme-surface-muted,#f8fbfa);grid-template-columns:minmax(270px,.9fr) minmax(300px,1.1fr);gap:20px;padding:20px;display:grid}.payment-qr-panel{align-content:start;gap:12px;display:grid}.payment-qr-panel>img,.payment-qr-panel>div{aspect-ratio:1;object-fit:contain;border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,#fff);border-radius:16px;width:100%}.payment-qr-panel>div{color:var(--theme-text-muted,#8da0a0);text-align:center;align-content:center;place-items:center;gap:8px;display:grid}.payment-qr-panel>div b{color:var(--theme-text,#4e696a);font-size:14px}.payment-qr-panel>div span{font-size:11px}.payment-qr-upload{border:1px dashed var(--theme-accent-border,#8ec7c3);min-height:39px;color:var(--theme-accent,#087779);background:var(--theme-accent-soft,#edf9f7);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:7px;font-size:12px;font-weight:800;display:flex}.payment-qr-upload input{display:none}.payment-order-panel{border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,#fff);border-radius:16px;align-content:start;gap:10px;padding:20px;display:grid}.payment-month{width:max-content;color:var(--theme-accent,#087779);background:var(--theme-accent-soft,#e3f4f2);border-radius:8px;padding:5px 9px;font-size:11px;font-weight:800}.payment-order-panel>small{color:var(--theme-text-muted,#7a8d8e);margin-top:8px;font-size:11px}.payment-order-panel>strong{color:var(--theme-accent,#0a6f71);font-size:34px;line-height:1.1}.payment-order-panel dl{border-top:1px solid var(--theme-border,#e5edec);gap:0;margin:9px 0 0;display:grid}.payment-order-panel dl>div{border-bottom:1px solid var(--theme-border,#e5edec);justify-content:space-between;align-items:center;gap:16px;padding:11px 0;display:flex}.payment-order-panel dt{color:var(--theme-text-muted,#809293);font-size:11px}.payment-order-panel dd{color:var(--theme-text,#355657);margin:0;font-size:12px;font-weight:800}.payment-dynamic-warning{color:var(--theme-warning,#8a641d);background:var(--theme-warning-soft,#fff5df);border-radius:9px;margin:2px 0 0;padding:10px 11px;font-size:11px;line-height:1.55}.payment-paid-record{color:var(--theme-accent,#087b58);background:var(--theme-success-soft,#e6f6ef);border-radius:10px;align-items:center;gap:9px;padding:11px;display:flex}.payment-paid-record>div{gap:2px;display:grid}.payment-paid-record b{font-size:12px}.payment-paid-record span{color:var(--theme-text-muted,#5d8173);font-size:10px}.payment-dialog>footer{border-top:1px solid var(--theme-border,#e0eae9);justify-content:space-between;align-items:center;gap:12px;padding:15px 20px;display:flex}.payment-dialog>footer .primary-button{align-items:center;gap:7px;display:inline-flex}.payment-cancel-button{border:1px solid var(--theme-danger-border,#efc9cc);min-height:38px;color:var(--theme-danger,#ac4149);background:var(--theme-surface-muted,#fff5f5);cursor:pointer;border-radius:9px;align-items:center;gap:6px;padding:0 11px;font-size:12px;font-weight:800;display:inline-flex}.compensation-detail-backdrop{z-index:120;background:var(--theme-overlay,#0a24255c);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);justify-content:flex-end;display:flex;position:fixed;inset:0}.compensation-detail{background:var(--theme-surface-muted,#f5f9f8);width:min(920px,94vw);height:100%;box-shadow:-18px 0 50px var(--theme-accent-shadow,#07232429);grid-template-rows:auto auto auto minmax(0,1fr);display:grid;overflow:hidden}.compensation-detail>header{border-bottom:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,#fff);justify-content:space-between;align-items:center;padding:19px 22px;display:flex}.compensation-detail>header>div{align-items:center;gap:11px;display:flex}.compensation-detail>header>div>span{width:43px;height:43px;color:var(--theme-on-accent,#fff);background:linear-gradient(135deg,var(--theme-accent-solid,#018b8d),var(--theme-accent-solid,#007779));border-radius:12px;place-items:center;font-weight:800;display:grid}.compensation-detail>header h2{color:var(--theme-text,#173b3d);margin:0 0 3px;font-size:19px}.compensation-detail>header p{color:var(--theme-text-muted,#738687);margin:0;font-size:12px}.compensation-detail>header>button{width:36px;height:36px;color:var(--theme-text-muted,#5e7475);background:var(--theme-accent-soft,#edf4f3);border:0;border-radius:10px;place-items:center;display:grid}.compensation-formula{border-bottom:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface-muted,#fafdfe);grid-template-columns:1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1.15fr;align-items:center;gap:9px;padding:16px 20px;display:grid}.compensation-formula>div{border:1px solid var(--theme-border,#dfeae8);background:var(--theme-surface,#fff);border-radius:11px;gap:3px;padding:12px;display:grid}.compensation-formula>div.final{border-color:var(--theme-accent-border,#9fcfcb);background:var(--theme-accent-soft,#eaf7f5)}.compensation-formula small{color:var(--theme-text-muted,#809293);font-size:10px}.compensation-formula b{color:var(--theme-text,#254a4b);font-size:15px}.compensation-formula>i{color:var(--theme-text-muted,#879899);font-style:normal}.compensation-detail>nav{border-bottom:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,#fff);gap:4px;padding:10px 18px;display:flex}.compensation-detail>nav button{color:var(--theme-text-muted,#657c7d);background:0 0;border:0;border-radius:9px;align-items:center;gap:6px;padding:9px 13px;font-size:12px;font-weight:700;display:flex}.compensation-detail>nav button.active{color:var(--theme-accent,#007d7f);background:var(--theme-accent-soft,#e4f4f2)}.compensation-detail-content,.compensation-conversation-list{min-height:0;padding:14px 18px 26px;overflow-y:auto}.attendance-detail-head,.attendance-detail-row{grid-template-columns:110px 82px 82px 88px minmax(150px,1fr) 65px 86px;align-items:center;gap:10px;padding:11px 13px;display:grid}.attendance-detail-head{z-index:1;color:var(--theme-text-muted,#748889);background:var(--theme-accent-soft,#eaf2f1);font-size:10px;font-weight:800;position:sticky;top:-14px}.attendance-detail-row{border-bottom:1px solid var(--theme-border,#e1eae9);color:var(--theme-text,#536d6e);background:var(--theme-surface,#fff);font-size:12px}.attendance-detail-row.waived{background:var(--theme-surface-muted,#f5fbf8)}.attendance-detail-row>span:first-child{gap:2px;display:grid}.attendance-detail-row small{color:var(--theme-text-muted,#89999a);font-size:10px}.attendance-result{justify-items:start;gap:3px;min-width:0;display:grid}.attendance-result>small{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.attendance-detail-row>span:last-child button{border:1px solid var(--theme-accent-border,#badfd7);min-height:28px;color:var(--theme-accent,#087a61);background:var(--theme-success-soft,#ecf8f3);border-radius:7px;padding:0 8px;font-size:10px;font-weight:800}.attendance-detail-row>span:last-child button.revoke{color:var(--theme-danger,#9d555b);border-color:var(--theme-danger-border,#eed0d3);background:var(--theme-surface-muted,#fff4f5)}.work-status{width:max-content;color:var(--theme-text-muted,#5b7475);background:var(--theme-accent-soft,#edf3f2);border-radius:7px;padding:4px 7px;font-size:10px;font-style:normal;font-weight:700;display:inline-flex}.work-status.qualified,.work-status.sunday_worked,.work-status.holiday_worked{color:var(--theme-success,#0b7955);background:var(--theme-success-soft,#e3f5ed)}.work-status.waived{color:var(--theme-accent,#087a61);background:var(--theme-success-soft,#dff4eb)}.work-status.short{color:var(--theme-warning,#9a641d);background:var(--theme-warning-soft,#fff2dc)}.work-status.leave{color:var(--theme-danger,#b34650);background:var(--theme-surface-muted,#fdebed)}.work-status.pending{color:var(--theme-text,#35767a);background:var(--theme-accent-soft,#e6f3f3)}.compensation-conversation-list{align-content:start;gap:10px;display:grid}.compensation-conversation-list article{border:1px solid var(--theme-border,#dde8e7);background:var(--theme-surface,#fff);border-radius:13px;justify-content:space-between;align-items:center;gap:18px;padding:15px 16px;display:flex}.compensation-conversation-list article>div{grid-template-columns:auto 1fr;align-items:center;column-gap:9px;min-width:0;display:grid}.compensation-conversation-list article>div>span{color:var(--theme-accent,#007f81);background:var(--theme-accent-soft,#e3f4f3);border-radius:7px;grid-row:1/3;padding:5px 7px;font-size:10px;font-weight:800}.compensation-conversation-list h3{color:var(--theme-text,#254849);margin:0;font-size:14px}.compensation-conversation-list p{color:var(--theme-text-muted,#89999a);margin:2px 0 0;font-size:10px}.compensation-conversation-list dl{gap:18px;margin:0;display:flex}.compensation-conversation-list dl>div{gap:2px;min-width:66px;display:grid}.compensation-conversation-list dt{color:var(--theme-text-muted,#89999a);font-size:9px}.compensation-conversation-list dd{color:var(--theme-text,#496566);margin:0;font-size:12px;font-weight:700}.compensation-detail-empty{color:var(--theme-text-muted,#87999a);align-content:center;place-items:center;gap:8px;display:grid}.compensation-detail-empty b{color:var(--theme-text,#4e6a6b);font-size:15px}.compensation-detail-empty span{font-size:11px}.attendance-waiver-backdrop{z-index:155;background:var(--theme-overlay,#071f2080);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);place-items:center;padding:20px;display:grid;position:fixed;inset:0}.attendance-waiver-dialog{border:1px solid var(--theme-border,#d5e5e3);background:var(--theme-surface,#fff);width:min(520px,100%);box-shadow:0 26px 80px var(--theme-accent-shadow,#041f2047);border-radius:18px;overflow:hidden}.attendance-waiver-dialog>header{border-bottom:1px solid var(--theme-border,#e0eae9);justify-content:space-between;align-items:center;padding:17px 19px;display:flex}.attendance-waiver-dialog>header>div{align-items:center;gap:10px;display:flex}.attendance-waiver-dialog>header>div>span{width:40px;height:40px;color:var(--theme-on-accent,#fff);background:linear-gradient(135deg,var(--theme-accent-solid,#15966f),var(--theme-accent-solid,#087e61));border-radius:11px;place-items:center;display:grid}.attendance-waiver-dialog>header small{color:var(--theme-accent,#16866b);letter-spacing:.12em;font-size:9px;font-weight:800}.attendance-waiver-dialog>header h2{color:var(--theme-text,#173b3d);margin:1px 0 0;font-size:19px}.attendance-waiver-dialog>header>button{width:34px;height:34px;color:var(--theme-text-muted,#617677);background:var(--theme-accent-soft,#edf4f3);border:0;border-radius:9px;place-items:center;display:grid}.attendance-waiver-person{color:var(--theme-text,#31595a);background:var(--theme-accent-soft,#f0f6f5);border-radius:10px;justify-content:space-between;align-items:center;gap:12px;margin:17px 19px 0;padding:11px 12px;display:flex}.attendance-waiver-person b{font-size:14px}.attendance-waiver-person span{color:var(--theme-text-muted,#748889);font-size:11px}.attendance-waiver-dialog>label{color:var(--theme-text,#355657);gap:7px;margin:16px 19px;font-size:12px;font-weight:800;display:grid}.attendance-waiver-dialog textarea{resize:vertical;border:1px solid var(--theme-border,#d8e5e3);width:100%;min-height:100px;color:var(--theme-text,#284d4f);border-radius:10px;outline:none;padding:11px 12px}.attendance-waiver-dialog textarea:focus{border-color:var(--theme-accent-border,#2c9c83);box-shadow:0 0 0 3px var(--theme-accent-shadow,#15966f1a)}.attendance-waiver-dialog label small{color:var(--theme-text-muted,#87999a);font-size:10px;font-weight:500}.attendance-waiver-existing{color:var(--theme-accent,#087a61);background:var(--theme-success-soft,#e6f6ef);border-radius:10px;align-items:flex-start;gap:9px;margin:16px 19px;padding:12px;display:flex}.attendance-waiver-existing>div{gap:3px;display:grid}.attendance-waiver-existing b{font-size:12px}.attendance-waiver-existing span{color:var(--theme-text-muted,#5e8074);font-size:10px}.attendance-waiver-error{color:var(--theme-danger,#b03f48);background:var(--theme-surface-muted,#fff0f1);border-radius:8px;margin:0 19px 14px;padding:9px 10px;font-size:11px}.attendance-waiver-dialog>footer{border-top:1px solid var(--theme-border,#e0eae9);justify-content:flex-end;gap:8px;padding:14px 19px;display:flex}.attendance-waiver-dialog>footer .soft-button,.attendance-waiver-dialog>footer .primary-button{min-height:38px;font-size:12px}@media (max-width:1350px){.compensation-summary-grid{grid-template-columns:repeat(3,1fr)}.compensation-summary-grid .total{grid-column:auto}}@media (max-width:850px){.compensation-rule-note{grid-template-columns:auto 1fr}.compensation-rule-note>em{grid-column:2;width:max-content}.compensation-summary-grid{grid-template-columns:1fr 1fr}.compensation-detail{width:100vw}.compensation-formula{grid-template-columns:1fr 1fr}.compensation-formula>i{display:none}.attendance-detail-head,.attendance-detail-row{min-width:780px}.compensation-detail-content{overflow:auto}.fixed-payee-card{overflow-x:auto}.payment-dialog-body{grid-template-columns:1fr;max-height:72vh;overflow-y:auto}.payment-qr-panel{grid-template-columns:minmax(180px,280px);justify-content:center}}@media (max-width:650px){.compensation-month{flex-direction:column;align-items:flex-start}.compensation-summary-grid{grid-template-columns:1fr}.compensation-rule-note{align-items:start}.compensation-rule-note span{display:none}.compensation-detail>header{padding:14px}.compensation-formula{padding:12px}.compensation-conversation-list article{flex-direction:column;align-items:flex-start}.compensation-conversation-list dl{justify-content:space-between;width:100%}.payment-dialog-backdrop{padding:0}.payment-dialog{border-radius:0;width:100vw;max-height:100vh}.payment-dialog-body{max-height:calc(100vh - 150px);padding:14px}.payment-dialog>footer{padding:12px 14px}}.team-table{overflow-x:auto}.team-table .table-head,.team-table .table-row{grid-template-columns:1.5fr .72fr .72fr 1.05fr 1fr .72fr .72fr .62fr;min-width:1240px}.team-login-ip{gap:3px;min-width:0;display:grid}.team-login-ip b{color:var(--theme-text,#31595a);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.team-login-ip small{color:var(--theme-text-muted,#8a9b9c);font-size:10px}.team-edit-backdrop{z-index:120;background:var(--theme-overlay,#06222385);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);place-items:center;padding:20px;display:grid;position:fixed;inset:0}.team-edit-card{border:1px solid var(--theme-border,#d7e6e4);background:var(--theme-surface,#fff);width:min(760px,100%);max-height:calc(100vh - 40px);box-shadow:0 30px 90px var(--theme-accent-shadow,#032b2c47);border-radius:19px;padding:22px;overflow-y:auto}.team-edit-card>header{border-bottom:1px solid var(--theme-border,#e1ecea);justify-content:space-between;align-items:center;gap:16px;padding-bottom:17px;display:flex}.team-edit-card>header>div{align-items:center;gap:11px;display:flex}.team-edit-card>header>div>span{width:42px;height:42px;color:var(--theme-accent,#018b8d);background:var(--theme-accent-soft,#e4f4f2);border-radius:11px;place-items:center;display:grid}.team-edit-card>header small{color:var(--theme-text,#228b8c);letter-spacing:.13em;font-size:9px;font-weight:800}.team-edit-card h2{color:var(--theme-text,#173b3c);margin:2px 0 0;font-size:22px}.team-edit-card>header>button{width:36px;height:36px;color:var(--theme-text-muted,#718687);background:var(--theme-accent-soft,#edf3f2);border:0;border-radius:9px;place-items:center;display:grid}.team-edit-fields{grid-template-columns:1fr 1fr;gap:13px;padding:18px 0;display:grid}.team-edit-fields label{color:var(--theme-text,#476263);gap:6px;font-size:12px;font-weight:700;display:grid}.team-edit-fields input,.team-edit-fields select{border:1px solid var(--theme-border,#d7e5e3);width:100%;min-height:43px;color:var(--theme-text,#294849);background:var(--theme-surface,#fff);border-radius:9px;outline:0;padding:0 11px}.team-edit-fields input:focus,.team-edit-fields select:focus{border-color:var(--theme-accent-border,#018b8d);box-shadow:0 0 0 3px var(--theme-accent-shadow,#018b8d1a)}.team-login-history{border:1px solid var(--theme-border,#dce9e7);background:var(--theme-surface-muted,#f8fbfa);border-radius:12px;overflow:hidden}.team-login-history>header,.account-login-records>header{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#eaf5f4);align-items:center;gap:8px;padding:10px 12px;display:flex}.team-login-history>header>div,.account-login-records>header>div{gap:1px;display:grid}.team-login-history>header b,.account-login-records>header b{color:var(--theme-text,#315657);font-size:12px}.team-login-history>header small,.account-login-records>header small{color:var(--theme-text-muted,#819596);font-size:9px}.team-login-history>div,.account-login-records>div{border-top:1px solid var(--theme-border,#e5eeed);justify-content:space-between;align-items:center;gap:12px;padding:9px 12px;font-size:11px;display:flex}.team-login-history>div>span{color:var(--theme-text,#315e5f);align-items:center;gap:5px;font-weight:700;display:flex}.team-login-history time,.account-login-records time{color:var(--theme-text-muted,#879899);font-size:10px}.team-login-history>p,.account-login-records>p{color:var(--theme-text-muted,#849596);margin:0;padding:13px;font-size:11px}.team-edit-card>footer{justify-content:flex-end;gap:8px;padding-top:17px;display:flex}.account-modal{max-height:calc(100vh - 40px);overflow-y:auto}.account-login-records{border:1px solid var(--theme-border,#dce9e7);background:var(--theme-surface-muted,#fafcfc);border-radius:11px;overflow:hidden}.account-login-records>div>span{color:var(--theme-text,#315e5f);font-weight:700}.global-warning-stack{z-index:140;gap:10px;width:min(460px,100vw - 30px);display:grid;position:fixed;top:72px;right:22px}.global-channel-warning,.global-ticket-warning{border-radius:14px;grid-template-columns:42px minmax(0,1fr) auto;align-items:start;gap:11px;width:100%;padding:13px;animation:.22s ease-out channelWarningIn;display:grid}.global-channel-warning{border:1px solid var(--theme-warning-border,#f0c5a8);color:var(--theme-danger,#7e401e);background:var(--theme-surface-muted,#fff9f3);box-shadow:0 18px 48px var(--theme-shadow,#5b2d1233)}.global-channel-warning>span{width:42px;height:42px;color:var(--theme-danger,#d05d27);background:var(--theme-danger-soft,#ffeadc);border-radius:11px;place-items:center;display:grid}.global-channel-warning b{color:var(--theme-danger,#713719);font-size:14px}.global-channel-warning p{color:var(--theme-danger,#8b573a);margin:3px 0;font-size:12px;line-height:1.55}.global-channel-warning small{color:var(--theme-danger,#ac7b60);font-size:10px}.global-channel-warning>button{border:1px solid var(--theme-danger-border,#edc3aa);min-width:68px;height:32px;color:var(--theme-danger,#8a4b2a);background:var(--theme-warning-soft,#fff3e9);white-space:nowrap;border-radius:8px;place-items:center;padding:0 10px;font-size:11px;font-weight:750;display:grid}.global-channel-warning>button:hover{color:var(--theme-danger,#7a3212);background:var(--theme-warning-soft,#ffe8d8)}.global-ticket-warning{border:1px solid var(--theme-accent-border,#b9ddd8);color:var(--theme-text,#155b5b);background:var(--theme-surface-muted,#f0fbf9);box-shadow:0 18px 48px var(--theme-accent-shadow,#0a585730)}.global-ticket-warning>span{width:42px;height:42px;color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#d9f2ee);border-radius:11px;place-items:center;display:grid}.global-ticket-warning b{color:var(--theme-accent,#105354);font-size:14px}.global-ticket-warning p{color:var(--theme-text,#3f7473);margin:3px 0;font-size:12px;line-height:1.55}.global-ticket-warning small{color:var(--theme-text-muted,#719493);font-size:10px}.global-ticket-warning>button{border:1px solid var(--theme-accent-border,#b5dcd6);min-width:68px;height:32px;color:var(--theme-text,#276e6d);background:var(--theme-accent-soft,#e4f5f2);white-space:nowrap;border-radius:8px;place-items:center;padding:0 10px;font-size:11px;font-weight:750;display:grid}.global-ticket-warning>button:hover{color:var(--theme-text,#176766);background:var(--theme-accent-soft,#dff3ef)}@keyframes channelWarningIn{0%{opacity:0;transform:translateY(-9px)scale(.98)}to{opacity:1;transform:none}}.compensation-conversation-list article.excluded{border-color:var(--theme-warning-border,#ead7bd);background:var(--theme-surface-muted,#fffaf3)}.compensation-conversation-list article>div>em{color:var(--theme-warning,#a66b24);grid-column:2;margin-top:4px;font-size:10px;font-style:normal}@media (max-width:650px){.team-edit-fields{grid-template-columns:1fr}.global-warning-stack{top:64px;right:15px}}.rack-heading{margin-bottom:20px}.rack-heading-actions{flex:none;align-items:center;gap:9px;display:flex}.rack-command-button{color:var(--theme-accent,#087f81);border-color:var(--theme-accent-border,#bcdedb);background:var(--theme-surface-muted,#f4fbfa)}.rack-command-button:hover{border-color:var(--theme-accent-border,#90cac5);background:var(--theme-accent-soft,#e7f6f4)}.rack-alert{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.rack-alert>button{width:28px;height:28px;color:var(--theme-danger,#a34b52);background:0 0;border:0;border-radius:7px;place-items:center;display:grid}.rack-alert>button:hover{background:var(--theme-danger-soft,#ffe0e3)}.rack-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px;display:grid}.rack-summary article{border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,#fff);min-width:0;box-shadow:0 8px 24px var(--theme-accent-shadow,#0f484909);border-radius:14px;align-items:center;gap:11px;padding:14px;display:flex}.rack-summary article>span{width:39px;height:39px;color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e3f4f3);border-radius:11px;flex:0 0 39px;place-items:center;display:grid}.rack-summary article>span svg{width:18px}.rack-summary article>div{gap:1px;min-width:0;display:grid}.rack-summary small{color:var(--theme-text-muted,#6f8384);font-size:12px}.rack-summary b{color:var(--theme-text,#214849);font-size:20px}.rack-empty{border:1px dashed var(--theme-border,#bfd6d3);min-height:360px;color:var(--theme-text-muted,#8ca09f);background:var(--theme-surface-muted,#ffffffb3);text-align:center;border-radius:17px;align-content:center;place-items:center;gap:9px;display:grid}.rack-empty h2{color:var(--theme-text,#36595a);margin:3px 0 0;font-size:20px}.rack-empty p{margin:0 0 8px;font-size:14px}.rack-workspace{grid-template-columns:220px minmax(520px,1fr) 340px;align-items:start;gap:14px;min-height:720px;display:grid}.rack-list-panel,.rack-cabinet-card,.rack-inventory-panel{border:1px solid var(--theme-border,#dbe7e5);background:var(--theme-surface,#fff);box-shadow:0 10px 30px var(--theme-accent-shadow,#0f48490b);border-radius:15px;overflow:hidden}.rack-list-panel>header,.rack-inventory-panel>header{border-bottom:1px solid var(--theme-border,#e1ebea);background:var(--theme-surface-muted,#f8fbfa);justify-content:space-between;align-items:center;padding:14px 15px;display:flex}.rack-list-panel>header>div,.rack-inventory-panel>header>div{gap:1px;display:grid}.rack-list-panel>header small,.rack-inventory-panel>header small{color:var(--theme-accent,#168687);letter-spacing:.12em;font-size:11px;font-weight:800}.rack-list-panel>header b,.rack-inventory-panel>header b{color:var(--theme-text,#315657);font-size:15px}.rack-list-panel>header em,.rack-inventory-panel>header em{min-width:28px;height:28px;color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e2f3f1);border-radius:8px;place-items:center;font-size:12px;font-style:normal;font-weight:800;display:grid}.rack-list-panel>div{gap:4px;padding:7px;display:grid}.rack-list-panel>div>button{width:100%;color:var(--theme-text,#4e6869);text-align:left;background:0 0;border:0;border-radius:10px;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;padding:9px;display:grid}.rack-list-panel>div>button:hover,.rack-list-panel>div>button.active{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e9f5f3)}.rack-list-panel>div>button>span{width:34px;height:34px;color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#dff0ee);border-radius:9px;place-items:center;display:grid}.rack-list-panel>div>button>div{gap:2px;min-width:0;display:grid}.rack-list-panel>div>button b,.rack-list-panel>div>button small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rack-list-panel>div>button b{color:var(--theme-text,#284c4d);font-size:14px}.rack-list-panel>div>button small{color:var(--theme-text-muted,#748788);font-size:12px}.rack-cabinet-card>header{border-bottom:1px solid var(--theme-border,#dfe9e7);justify-content:space-between;align-items:center;gap:15px;min-height:82px;padding:14px 16px;display:flex}.rack-cabinet-card>header>div:first-child{min-width:0}.rack-cabinet-card>header small{color:var(--theme-accent,#168687);letter-spacing:.12em;font-size:11px;font-weight:800}.rack-cabinet-card h2{color:var(--theme-text,#23494a);margin:2px 0 1px;font-size:22px}.rack-cabinet-card>header p{color:var(--theme-text-muted,#748788);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:13px;overflow:hidden}.rack-actions{flex:none;gap:7px;display:flex}.rack-actions .soft-button,.rack-actions .primary-button{min-height:38px;padding:0 12px;font-size:13px}.soft-button.danger{color:var(--theme-danger,#b74751);border-color:var(--theme-danger-border,#efd1d4);background:var(--theme-surface-muted,snow)}.soft-button.danger:hover:not(:disabled){color:var(--theme-danger,#a5323e);border-color:var(--theme-danger-border,#e2aeb5);background:var(--theme-surface-hover,#fff0f1)}.soft-button.danger:active:not(:disabled){color:var(--theme-danger,#8e2934);border-color:var(--theme-danger-border,#d7909b);background:var(--theme-danger-soft,#ffe3e6)}.rack-scroll{background:linear-gradient(90deg,var(--theme-surface-muted,#f4f8f7),var(--theme-accent-soft,#eef5f4));max-height:760px;padding:15px;overflow:auto}.rack-frame{border:5px solid var(--theme-accent-border,#29494b);background:var(--theme-surface-muted,#d8e3e1);width:min(760px,100%);min-width:470px;box-shadow:inset 0 0 0 2px var(--theme-shadow,#759091),0 14px 28px var(--theme-accent-shadow,#10373924);border-radius:10px;grid-template-rows:repeat(42,50px);grid-template-columns:54px minmax(410px,1fr);margin:0 auto;padding:8px 8px 8px 0;display:grid;position:relative}.rack-unit-label{z-index:1;border-bottom:1px solid var(--theme-border-strong,#a7bcba);color:var(--theme-text,#566f70);background:var(--theme-surface-muted,#e8efee);grid-column:1;justify-content:center;align-items:center;font-size:11px;font-weight:800;display:flex}.rack-unit-slot{border:0;border-bottom:1px solid var(--theme-border,#d3dfdd);border-left:1px solid var(--theme-border,#b9cbc9);border-right:1px solid var(--theme-border,#b9cbc9);min-width:0;color:var(--theme-text-muted,#839697);background:var(--theme-surface-muted,#fbfdfd);grid-column:2;justify-content:space-between;align-items:center;padding:0 10px;font-size:11px;display:flex}.rack-unit-slot:hover:not(:disabled){color:var(--theme-accent,#087f81);background:var(--theme-surface-hover,#eef9f7)}.rack-unit-slot:disabled{cursor:default}.rack-unit-slot.occupied{background:var(--theme-surface-muted,#edf2f1)}.rack-unit-slot>i{background:var(--theme-surface-hover,#becdcb);border-radius:50%;width:4px;height:4px}.rack-device-card{z-index:3;border:1px solid var(--theme-accent-border,#9fcac6);border-left:4px solid var(--theme-accent-border,#018b8d);min-width:0;color:var(--theme-text,#265859);background:linear-gradient(135deg,var(--theme-accent-soft,#e8f7f5),var(--theme-accent-soft,#dff1ef));box-shadow:0 3px 8px var(--theme-accent-shadow,#0c51511f);text-align:left;border-radius:7px;grid-column:2;margin:2px 5px;padding:4px 8px;overflow:hidden}.rack-device-card:hover,.rack-device-card.selected{border-color:var(--theme-accent-border,#018b8d);box-shadow:0 0 0 2px var(--theme-accent-shadow,#018b8d26),0 5px 12px var(--theme-accent-shadow,#0c515126)}.rack-device-card.switch{color:var(--theme-text,#584a77);border-color:var(--theme-purple-border,#b7a9d2);border-left-color:var(--theme-purple-border,#7962a5);background:linear-gradient(135deg,var(--theme-purple-soft,#f1edf8),var(--theme-purple-soft,#e9e3f3))}.rack-device-card.four_node{color:var(--theme-warning,#675022);border-color:var(--theme-warning-border,#d8bd82);border-left-color:var(--theme-warning-border,#c18a25);background:linear-gradient(135deg,var(--theme-warning-soft,#fff7e6),var(--theme-warning-soft,#f5e9cf))}.rack-device-title{grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:5px;min-width:0;line-height:1;display:grid}.rack-device-title>span{place-items:center;display:grid}.rack-device-title b{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.rack-device-title em{color:inherit;background:var(--theme-highlight,#ffffffa6);border-radius:5px;padding:3px 5px;font-size:10px;font-style:normal;font-weight:800}.rack-device-card>p{opacity:.85;text-overflow:ellipsis;white-space:nowrap;margin:3px 0 0 25px;font-size:11px;overflow:hidden}.rack-node-lines{grid-template-columns:1fr 1fr;gap:2px 7px;margin-top:4px;display:grid}.rack-node-lines>span{min-width:0;color:var(--theme-warning,#725c2d);grid-template-columns:15px minmax(0,.8fr) minmax(0,1fr);align-items:center;gap:4px;font-size:10px;display:grid}.rack-node-lines i{background:var(--theme-highlight,#ffffffa6);border-radius:3px;place-items:center;font-style:normal;font-weight:800;display:grid}.rack-node-lines b,.rack-node-lines em{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rack-node-lines em{opacity:.75;font-style:normal}.rack-inventory-tools{border-bottom:1px solid var(--theme-border,#e4eceb);grid-template-columns:minmax(0,1fr) 92px;gap:6px;padding:9px;display:grid}.rack-inventory-tools label{border:1px solid var(--theme-border,#dbe7e5);min-width:0;color:var(--theme-text-muted,#8b9b9c);background:var(--theme-surface-muted,#f8fbfa);border-radius:8px;align-items:center;gap:6px;padding:0 8px;display:flex}.rack-inventory-tools input{width:100%;min-width:0;height:38px;color:var(--theme-text,#355657);background:0 0;border:0;outline:0;font-size:13px}.rack-inventory-tools select{border:1px solid var(--theme-border,#dbe7e5);min-width:0;color:var(--theme-text-muted,#5c7475);background:var(--theme-surface,#fff);border-radius:8px;padding:0 7px;font-size:13px}.rack-inventory-list{align-content:start;gap:3px;max-height:300px;padding:6px;display:grid;overflow-y:auto}.rack-inventory-list>button{width:100%;min-width:0;color:var(--theme-text,#496566);text-align:left;background:0 0;border:0;border-radius:9px;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:8px;padding:7px;display:grid}.rack-inventory-list>button:hover,.rack-inventory-list>button.active{background:var(--theme-accent-soft,#eaf5f3)}.rack-inventory-list>button>span{width:32px;height:32px;color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e0f1ef);border-radius:8px;place-items:center;display:grid}.rack-inventory-list>button>span.switch{color:var(--theme-purple,#715b9d);background:var(--theme-purple-soft,#eee8f6)}.rack-inventory-list>button>div{gap:1px;min-width:0;display:grid}.rack-inventory-list b,.rack-inventory-list small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rack-inventory-list b{color:var(--theme-text,#2e5152);font-size:14px}.rack-inventory-list small{color:var(--theme-text-muted,#758889);font-size:12px}.rack-inventory-list>p{color:var(--theme-text-muted,#7e9292);text-align:center;margin:0;padding:28px 10px;font-size:13px}.rack-device-detail{border-top:1px solid var(--theme-border,#dfe9e7);background:var(--theme-surface-muted,#fbfdfc);padding:13px}.rack-device-detail>header{justify-content:space-between;align-items:center;gap:10px;display:flex}.rack-device-detail>header small{color:var(--theme-accent,#168687);letter-spacing:.1em;font-size:11px;font-weight:800}.rack-device-detail h3{color:var(--theme-text,#294e4f);margin:1px 0 0;font-size:17px}.rack-detail-actions{gap:5px;display:flex}.rack-detail-actions>button{width:31px;height:31px;color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e3f3f1);border:0;border-radius:8px;place-items:center;display:grid}.rack-detail-actions>button:hover{background:var(--theme-accent-soft,#d5ece9)}.rack-detail-actions>button.copy{gap:5px;width:auto;padding:0 9px;font-size:12px;font-weight:700;display:flex}.rack-device-detail dl{grid-template-columns:1fr 1fr;gap:7px;margin:12px 0;display:grid}.rack-device-detail dl>div{border:1px solid var(--theme-border,#e1eae9);background:var(--theme-surface,#fff);border-radius:8px;gap:1px;min-width:0;padding:7px;display:grid}.rack-device-detail dt{color:var(--theme-text-muted,#7b8f90);font-size:11px}.rack-device-detail dd{color:var(--theme-text,#405f60);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:13px;font-weight:700;overflow:hidden}.rack-detail-nodes{gap:4px;display:grid}.rack-detail-nodes button{border:1px solid var(--theme-warning-border,#e6dfcc);width:100%;min-width:0;color:inherit;background:var(--theme-surface-muted,#fffcf4);text-align:left;border-radius:8px;grid-template-columns:39px minmax(0,1fr) auto;align-items:center;gap:7px;padding:6px;display:grid}.rack-detail-nodes button:hover{border-color:var(--theme-warning-border,#c9a85f);background:var(--theme-warning-soft,#fff8e8)}.rack-detail-nodes button>span{color:var(--theme-warning,#9a7025);font-size:11px;font-weight:800}.rack-detail-nodes button>div{min-width:0;display:grid}.rack-detail-nodes b,.rack-detail-nodes small,.rack-detail-nodes em{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rack-detail-nodes b{color:var(--theme-warning,#5e512f);font-size:13px}.rack-detail-nodes small{color:var(--theme-text-muted,#81765d);font-size:11px}.rack-detail-nodes em{color:var(--theme-warning,#806629);font-size:11px;font-style:normal}.rack-interface-list{gap:4px;margin:8px 0;display:grid}.rack-interface-list>b{color:var(--theme-text,#526d6e);font-size:12px}.rack-interface-list>div{border:1px solid var(--theme-border,#e1eae9);background:var(--theme-surface,#fff);border-radius:7px;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:6px;padding:5px 7px;display:grid}.rack-interface-list span{color:var(--theme-accent,#087f81);font-size:11px;font-weight:800}.rack-interface-list em{color:var(--theme-text,#526d6e);text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-style:normal;overflow:hidden}.rack-interface-list>p{color:var(--theme-text-muted,#829596);margin:0;font-size:12px}.rack-open-port-panel{border:1px solid var(--theme-border,#d5e5e3);width:100%;color:var(--theme-accent,#087f81);background:linear-gradient(135deg,var(--theme-surface-muted,#f4fbfa),var(--theme-accent-soft,#eaf5f3));text-align:left;border-radius:10px;grid-template-columns:34px minmax(0,1fr) 20px;align-items:center;gap:8px;margin-top:10px;padding:9px;display:grid}.rack-open-port-panel:hover{border-color:var(--theme-accent-border,#62aaa6);box-shadow:0 4px 13px var(--theme-accent-shadow,#087f811f)}.rack-open-port-panel>span{width:34px;height:34px;color:var(--theme-on-accent,#fff);background:var(--theme-accent-solid,#168687);border-radius:9px;place-items:center;display:grid}.rack-open-port-panel>div{gap:1px;min-width:0;display:grid}.rack-open-port-panel b{color:var(--theme-text,#315b5c);font-size:12px}.rack-open-port-panel small{color:var(--theme-text-muted,#758b8c);font-size:10px}.rack-switch-context-menu{z-index:220;border:1px solid var(--theme-border,#d8e5e3);background:var(--theme-surface,#fff);width:184px;box-shadow:0 14px 38px var(--theme-shadow,#1437383d);border-radius:11px;gap:3px;padding:5px;display:grid;position:fixed}.rack-switch-context-menu button{min-width:0;color:var(--theme-text,#537071);text-align:left;background:0 0;border:0;border-radius:8px;grid-template-columns:27px minmax(0,1fr);align-items:center;gap:7px;padding:8px;display:grid}.rack-switch-context-menu button:hover{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#eaf5f3)}.rack-switch-context-menu button>span{gap:1px;min-width:0;display:grid}.rack-switch-context-menu b{font-size:12px}.rack-switch-context-menu small{color:var(--theme-text-muted,#849596);text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.rack-port-destination-modal{width:min(620px,100%)}.rack-port-panel-backdrop{z-index:180}.rack-port-destination-backdrop{z-index:210}.rack-port-panel{border:1px solid var(--theme-border,#cbdcda);background:var(--theme-surface-muted,#f8fbfa);width:min(1240px,100%);max-height:calc(100vh - 40px);box-shadow:0 32px 100px var(--theme-accent-shadow,#0322236b);border-radius:18px;overflow:hidden}.rack-port-panel-header{border-bottom:1px solid var(--theme-border,#dbe6e4);background:var(--theme-surface,#fff);justify-content:space-between;align-items:center;gap:16px;min-height:84px;padding:16px 18px;display:flex}.rack-port-panel-identity{align-items:center;gap:11px;min-width:0;display:flex}.rack-port-panel-identity>span{width:43px;height:43px;color:var(--theme-on-accent,#fff);background:var(--theme-accent-solid,#168687);box-shadow:0 6px 16px var(--theme-accent-shadow,#16868738);border-radius:11px;flex:none;place-items:center;display:grid}.rack-port-panel-identity>div{gap:1px;min-width:0;display:grid}.rack-port-panel-identity small{color:var(--theme-accent,#168687);letter-spacing:.09em;font-size:11px;font-weight:900}.rack-port-panel-identity h2{color:var(--theme-text,#294e4f);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:19px;overflow:hidden}.rack-port-panel-identity p{color:var(--theme-text-muted,#718586);margin:0;font-size:12px}.rack-port-panel-identity p b{color:var(--theme-text,#4c6869)}.rack-port-panel-actions{align-items:center;gap:7px;display:flex}.rack-port-panel-actions .soft-button{min-height:37px;padding:0 11px;font-size:12px}.rack-port-panel-close{width:37px;height:37px;color:var(--theme-text-muted,#6f8384);background:var(--theme-accent-soft,#edf3f2);border:0;border-radius:9px;place-items:center;display:grid}.rack-port-panel-close:hover{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#dff0ee)}.rack-port-panel-body{min-height:0;max-height:calc(100vh - 125px);overflow:hidden}.rack-port-panel-main{min-width:0;max-height:inherit;align-content:start;gap:14px;padding:18px;display:grid;overflow-y:auto}.rack-switch-chassis{border:5px solid var(--theme-inverse-border,#263536);color:var(--theme-inverse-text,#d7e5e3);background:linear-gradient(155deg,var(--theme-inverse-surface,#253333),var(--theme-inverse-surface-deep,#111a1a));box-shadow:inset 0 0 0 1px var(--theme-shadow,#526060),0 12px 28px var(--theme-shadow,#09191938);border-radius:12px;padding:12px;overflow-x:auto}.rack-switch-chassis>header{justify-content:space-between;align-items:center;gap:14px;min-width:750px;margin-bottom:11px;display:flex}.rack-switch-brand{align-items:center;gap:7px;display:flex}.rack-switch-brand>span{display:grid}.rack-switch-brand b{color:var(--theme-inverse-text,#e9f2f1);letter-spacing:.12em;font-size:11px}.rack-switch-brand small{color:var(--theme-inverse-text-muted,#7f9694);font-size:9px}.rack-switch-leds{align-items:center;gap:7px;display:flex}.rack-switch-leds span{color:var(--theme-inverse-text-muted,#829493);align-items:center;gap:4px;font-size:9px;font-weight:800;display:flex}.rack-switch-leds span:before{background:var(--theme-success,#55d996);width:7px;height:7px;box-shadow:0 0 8px var(--theme-shadow,#55d996d9);content:"";border-radius:50%}.rack-switch-leds .system:before{background:var(--theme-accent,#45b9e2);box-shadow:0 0 8px var(--theme-accent-shadow,#45b9e2cc)}.rack-switch-leds em{border-left:1px solid var(--theme-inverse-border,#485858);color:var(--theme-inverse-text-muted,#9cafad);padding-left:7px;font-size:10px;font-style:normal}.rack-switch-port-layout{align-items:stretch;gap:12px;min-width:824px;display:flex}.rack-switch-port-bank{grid-template-columns:repeat(var(--rack-switch-port-columns),minmax(24px,1fr));flex:1;grid-template-rows:repeat(2,49px);grid-auto-flow:column;gap:7px 5px;min-width:690px;display:grid}.rack-switch-uplink-bank{border-left:1px solid var(--theme-inverse-border,#51605f);flex:none;grid-template-rows:17px 1fr;gap:5px;min-width:122px;padding-left:10px;display:grid}.rack-switch-uplink-bank>header{color:var(--theme-warning,#e6a84c);letter-spacing:.12em;align-items:center;gap:5px;font-size:9px;font-weight:900;display:flex}.rack-switch-uplink-bank>div{grid-template-columns:repeat(var(--rack-switch-uplink-columns),36px);grid-template-rows:repeat(2,49px);grid-auto-flow:column;align-content:end;gap:7px 4px;display:grid}.rack-physical-port.dedicated-uplink{border-color:var(--theme-warning-border,#77623e);background:var(--theme-inverse-surface,#241e15)}.rack-physical-port.dedicated-uplink small{color:var(--theme-warning,#f2c777);font-size:8px}.rack-physical-port{border:1px solid var(--theme-inverse-border,#546161);min-width:0;color:var(--theme-inverse-text-muted,#879695);background:var(--theme-inverse-surface,#1a2424);box-shadow:inset 0 0 0 1px var(--theme-shadow,#0b1010);border-radius:4px;grid-template-rows:11px 25px 3px;place-items:center;gap:2px;padding:2px;transition:border-color .14s,box-shadow .14s,opacity .14s,transform .14s;display:grid;position:relative}.rack-physical-port:hover,.rack-physical-port.active{z-index:2;border-color:var(--theme-border,#bbc9c8);box-shadow:0 0 0 2px var(--theme-highlight,#ffffff29),0 5px 12px var(--theme-shadow,#00000047);transform:translateY(-1px)}.rack-physical-port.muted{opacity:.2}.rack-physical-port small{color:var(--theme-inverse-text,#d6dfde);font-size:9px;font-weight:900;line-height:1}.rack-physical-port>span{border:2px solid var(--theme-inverse-border,#718080);background:var(--theme-inverse-surface-deep,#070b0b);width:100%;height:25px;box-shadow:inset 0 -5px var(--theme-shadow,#141d1d);border-top-width:4px;border-radius:2px;justify-content:space-around;align-items:flex-start;padding:3px 2px 0;display:flex}.rack-physical-port>span i{background:var(--theme-inverse-text-muted,#b6c2c1);width:2px;height:6px}.rack-physical-port>em{background:var(--theme-surface-active,#4d5c5b);border-radius:2px;width:72%;height:3px}.rack-physical-port.server>em{background:var(--theme-accent,#3bd1c3);box-shadow:0 0 7px var(--theme-accent-shadow,#3bd1c3cc)}.rack-physical-port.switch>em{background:var(--theme-purple,#b08af0);box-shadow:0 0 7px var(--theme-shadow,#b08af0cc)}.rack-physical-port.uplink>em{background:var(--theme-warning,#f4aa3c);box-shadow:0 0 7px var(--theme-shadow,#f4aa3ccc)}.rack-physical-port.free>em{background:var(--theme-inverse-surface-raised,#445150)}.rack-switch-chassis>footer{min-width:750px;color:var(--theme-inverse-text-muted,#829391);letter-spacing:.08em;justify-content:space-between;gap:10px;margin-top:10px;font-size:9px;font-weight:800;display:flex}.rack-switch-chassis>footer em{letter-spacing:0;font-style:normal;font-weight:500}.rack-port-route{border:1px solid var(--theme-border,#dce7e5);background:var(--theme-surface,#fff);border-radius:13px;grid-template-columns:minmax(150px,220px) minmax(90px,1fr) minmax(220px,1.7fr);align-items:center;gap:12px;padding:13px;display:grid}.rack-port-route-source,.rack-port-route-target{align-items:center;gap:8px;min-width:0;display:flex}.rack-port-route-source>span,.rack-port-route-target>span{width:36px;height:36px;color:var(--theme-on-accent,#fff);background:var(--theme-accent-solid,#168687);border-radius:10px;flex:none;place-items:center;display:grid}.rack-port-route-target>span{color:var(--theme-text-muted,#607879);background:var(--theme-accent-soft,#edf3f2)}.rack-port-route.switch .rack-port-route-target>span{color:var(--theme-purple,#72599d);background:var(--theme-purple-soft,#eee9f6)}.rack-port-route.uplink .rack-port-route-target>span{color:var(--theme-warning,#a76913);background:var(--theme-warning-soft,#fff0d5)}.rack-port-route.server .rack-port-route-target>span{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#def3ef)}.rack-port-route-source>div,.rack-port-route-target>div{gap:1px;min-width:0;display:grid}.rack-port-route small{color:var(--theme-text-muted,#879899);letter-spacing:.05em;font-size:10px;font-weight:800}.rack-port-route b{color:var(--theme-text,#365657);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.rack-port-route-source em,.rack-port-route-target em{color:var(--theme-text-muted,#7e9192);text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-style:normal;overflow:hidden}.rack-port-route-line{text-align:center;gap:5px;min-width:70px;display:grid}.rack-port-route-line>span{color:var(--theme-text-muted,#849798);font-size:9px;font-weight:800}.rack-port-route-line>i{background:var(--theme-surface-muted,#cfdcda);border-radius:999px;height:2px;position:relative;overflow:visible}.rack-port-route-line>i:before,.rack-port-route-line>i:after{background:var(--theme-surface-active,#9bb0ae);content:"";border-radius:50%;width:8px;height:8px;position:absolute;top:-3px}.rack-port-route-line>i:before{left:0}.rack-port-route-line>i:after{right:0}.rack-port-route-line>i>em{background:var(--theme-accent,#1bc9bd);width:8px;height:8px;box-shadow:0 0 9px var(--theme-accent-shadow,#1bc9bdb3);border-radius:50%;animation:1.8s linear infinite rack-port-signal;position:absolute;top:-3px;left:0}.rack-port-route.switch .rack-port-route-line>i>em{background:var(--theme-purple,#a27ae6);box-shadow:0 0 9px var(--theme-shadow,#a27ae6b3)}.rack-port-route.uplink .rack-port-route-line>i>em{background:var(--theme-warning,#ec9d2c);box-shadow:0 0 9px var(--theme-shadow,#ec9d2cb3)}@keyframes rack-port-signal{0%{left:0}to{left:calc(100% - 8px)}}.rack-port-route-actions{border-top:1px solid var(--theme-border,#e5edec);grid-column:1/-1;justify-content:flex-end;gap:6px;padding-top:9px;display:flex}.rack-port-route-actions button{min-height:34px;font-size:11px}.rack-connected-port-section{border:1px solid var(--theme-border,#dbe6e4);background:var(--theme-surface,#fff);border-radius:13px;gap:11px;padding:14px;display:grid}.rack-connected-port-section>header{justify-content:space-between;align-items:center;gap:9px;display:flex}.rack-connected-port-section>header small{color:var(--theme-accent,#168687);letter-spacing:.1em;font-size:10px;font-weight:900}.rack-connected-port-section h3{color:var(--theme-text,#315657);margin:1px 0 0;font-size:17px}.rack-connected-port-section>header>em{min-width:31px;height:27px;color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e5f4f2);border-radius:8px;place-items:center;font-size:11px;font-style:normal;font-weight:900;display:grid}.rack-connected-port-tools{border-top:1px solid var(--theme-border,#e5edec);grid-template-columns:minmax(260px,1fr) auto auto;align-items:center;gap:14px;padding-top:11px;display:grid}.rack-port-panel-search{border:1px solid var(--theme-border,#d8e5e3);height:38px;color:var(--theme-text-muted,#859798);background:var(--theme-surface-muted,#f9fbfb);border-radius:9px;align-items:center;gap:6px;padding:0 9px;display:flex}.rack-port-panel-search input{width:100%;min-width:0;color:var(--theme-text,#365657);background:0 0;border:0;outline:0;font-size:13px}.rack-port-panel-toggle{color:var(--theme-text-muted,#657b7c);cursor:pointer;white-space:nowrap;align-items:center;gap:7px;margin:0;font-size:12px;font-weight:700;display:flex}.rack-port-panel-toggle input{opacity:0;pointer-events:none;position:absolute}.rack-port-panel-toggle>span{background:var(--theme-surface-muted,#cad7d5);border-radius:999px;width:30px;height:17px;transition:background .16s;position:relative}.rack-port-panel-toggle>span:before{background:var(--theme-on-accent,#fff);width:11px;height:11px;box-shadow:0 1px 3px var(--theme-shadow,#0003);content:"";border-radius:50%;transition:transform .16s;position:absolute;top:3px;left:3px}.rack-port-panel-toggle input:checked+span{background:var(--theme-accent-solid,#168687)}.rack-port-panel-toggle input:checked+span:before{transform:translate(13px)}.rack-port-panel-legend{flex-wrap:wrap;justify-content:flex-end;gap:5px;display:flex}.rack-port-panel-legend span{border-radius:999px;padding:3px 7px;font-size:10px;font-weight:800}.rack-port-panel-legend .server{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#dff2ef)}.rack-port-panel-legend .switch{color:var(--theme-purple,#70599b);background:var(--theme-purple-soft,#eee8f6)}.rack-port-panel-legend .uplink{color:var(--theme-warning,#a96a13);background:var(--theme-warning-soft,#fff0d5)}.rack-port-panel-legend .free{color:var(--theme-text-muted,#7d9091);background:var(--theme-surface-muted,#edf2f1)}.rack-connected-port-list{grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:7px;display:grid}.rack-connected-port-list>button{border:1px solid var(--theme-border,#e1eae9);border-left:3px solid var(--theme-accent-border,#139496);min-width:0;color:var(--theme-text,#526d6e);background:var(--theme-surface-muted,#f8fcfb);text-align:left;border-radius:8px;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:7px;padding:7px;display:grid}.rack-connected-port-list>button.switch{border-left-color:var(--theme-purple-border,#7962a5);background:var(--theme-surface-muted,#faf8fd)}.rack-connected-port-list>button.uplink{border-left-color:var(--theme-warning-border,#d48a21);background:var(--theme-surface-muted,#fffaf0)}.rack-connected-port-list>button:hover,.rack-connected-port-list>button.active{border-color:var(--theme-accent-border,#168687);box-shadow:0 0 0 2px var(--theme-accent-shadow,#1686871a)}.rack-connected-port-list>button>span{height:28px;color:var(--theme-text,#405e5f);background:var(--theme-accent-soft,#e6eeee);border-radius:7px;place-items:center;font-size:11px;font-weight:900;display:grid}.rack-connected-port-list>button>div{gap:1px;min-width:0;display:grid}.rack-connected-port-list b,.rack-connected-port-list small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rack-connected-port-list b{color:var(--theme-text,#405e5f);font-size:11px}.rack-connected-port-list small{color:var(--theme-text-muted,#718687);font-size:10px}.rack-connected-port-list>p{color:var(--theme-text-muted,#879899);text-align:center;grid-column:1/-1;margin:0;padding:24px 8px;font-size:11px}.rack-device-note{color:var(--theme-text-muted,#617576);background:var(--theme-accent-soft,#edf3f2);border-radius:8px;margin:9px 0 0;padding:9px;font-size:12px;line-height:1.6}.rack-device-detail>footer{justify-content:flex-end;margin-top:10px;display:flex}.rack-device-detail>footer .soft-button{min-height:35px;padding:0 11px;font-size:12px}.rack-modal-backdrop{z-index:150;background:var(--theme-overlay,#0622238c);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);place-items:center;padding:20px;display:grid;position:fixed;inset:0}.rack-modal{border:1px solid var(--theme-border,#d7e6e4);background:var(--theme-surface,#fff);width:min(900px,100%);max-height:calc(100vh - 40px);box-shadow:0 30px 90px var(--theme-accent-shadow,#032b2c4d);border-radius:19px;padding:20px;overflow-y:auto}.rack-small-modal{width:min(620px,100%)}.rack-modal>header{border-bottom:1px solid var(--theme-border,#e1ecea);justify-content:space-between;align-items:center;gap:15px;padding-bottom:15px;display:flex}.rack-modal>header>div{align-items:center;gap:10px;display:flex}.rack-modal>header>div>span{width:40px;height:40px;color:var(--theme-accent,#018b8d);background:var(--theme-accent-soft,#e4f4f2);border-radius:11px;place-items:center;display:grid}.rack-modal>header small{color:var(--theme-accent,#168687);letter-spacing:.13em;font-size:11px;font-weight:800}.rack-modal h2{color:var(--theme-text,#214849);margin:1px 0 0;font-size:20px}.rack-modal>header>button{width:34px;height:34px;color:var(--theme-text-muted,#718687);background:var(--theme-accent-soft,#edf3f2);border:0;border-radius:9px;place-items:center;display:grid}.rack-form-fields{grid-template-columns:1fr 1fr;gap:12px;padding:17px 0;display:grid}.rack-form-fields label{min-width:0;color:var(--theme-text,#476263);gap:6px;font-size:13px;font-weight:700;display:grid}.rack-form-fields label.wide,.rack-node-editor.wide{grid-column:1/-1}.rack-form-fields input,.rack-form-fields select,.rack-form-fields textarea{border:1px solid var(--theme-border,#d7e5e3);width:100%;min-height:43px;color:var(--theme-text,#294849);background:var(--theme-surface,#fff);border-radius:9px;outline:0;padding:0 11px;font-size:14px}.rack-form-fields textarea{resize:vertical;padding:9px 10px}.rack-form-fields input:focus,.rack-form-fields select:focus,.rack-form-fields textarea:focus{border-color:var(--theme-accent-border,#018b8d);box-shadow:0 0 0 3px var(--theme-accent-shadow,#018b8d1a)}.rack-form-fields input:disabled,.rack-form-fields select:disabled{color:var(--theme-text-muted,#718485);background:var(--theme-accent-soft,#edf3f2)}.rack-node-editor{border:1px solid var(--theme-warning-border,#e4dcc8);background:var(--theme-surface-muted,#fffcf5);border-radius:12px;overflow:hidden}.rack-node-editor>header{border-bottom:1px solid var(--theme-warning-border,#e8dfca);justify-content:space-between;align-items:center;padding:10px 12px;display:flex}.rack-node-editor>header>div{gap:1px;display:grid}.rack-node-editor>header b{color:var(--theme-warning,#65552f);font-size:13px}.rack-node-editor>header small{color:var(--theme-text-muted,#887b60);font-size:11px}.rack-node-editor>header em{color:var(--theme-warning,#8b6924);background:var(--theme-warning-soft,#f4e8c9);border-radius:6px;padding:4px 7px;font-size:11px;font-style:normal;font-weight:800}.rack-node-fields{border-top:1px solid var(--theme-warning-border,#f0e9d8);gap:9px;padding:10px;display:grid}.rack-node-fields:first-of-type{border-top:0}.rack-node-fields>header{align-items:center;gap:7px;display:flex}.rack-node-fields>header>span{width:26px;height:26px;color:var(--theme-warning,#8b6924);background:var(--theme-warning-soft,#f1e3bf);border-radius:8px;place-items:center;font-size:10px;font-weight:800;display:grid}.rack-node-fields>header>b{color:var(--theme-warning,#65552f);font-size:13px}.rack-node-fields>header>em{color:var(--theme-text-muted,#887b60);margin-left:auto;font-size:11px;font-style:normal}.rack-node-primary{grid-template-columns:1fr 1fr;gap:8px;display:grid}.rack-node-fields label{color:var(--theme-warning,#756747);font-size:12px}.rack-node-fields input,.rack-node-fields select{border-color:var(--theme-warning-border,#e1d6b9);min-height:39px;font-size:13px}.rack-connection-editor{border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface-muted,#f8fbfa);border-radius:10px;overflow:hidden}.rack-connection-editor>header{border-bottom:1px solid var(--theme-border,#e0eae8);justify-content:space-between;align-items:center;gap:10px;padding:9px 10px;display:flex}.rack-connection-editor>header>div{gap:1px;display:grid}.rack-connection-editor>header b{color:var(--theme-text,#34595a);font-size:13px}.rack-connection-editor>header small{color:var(--theme-text-muted,#75898a);font-size:11px;font-weight:400}.rack-connection-editor>header button{min-height:31px;color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e2f3f1);border:0;border-radius:7px;align-items:center;gap:4px;padding:0 9px;font-size:12px;font-weight:700;display:flex}.rack-connection-editor>header button:disabled{cursor:not-allowed;opacity:.45}.rack-connection-editor>div{gap:6px;padding:8px;display:grid}.rack-connection-row{grid-template-columns:48px minmax(0,1fr) 28px;align-items:center;gap:7px;display:grid}.rack-connection-row>span{color:var(--theme-accent,#087f81);font-size:12px;font-weight:800}.rack-connection-row select{border:1px solid var(--theme-border,#d7e5e3);min-width:0;min-height:39px;color:var(--theme-text,#294849);background:var(--theme-surface,#fff);border-radius:8px;padding:0 8px;font-size:13px}.rack-connection-row>button{width:28px;height:28px;color:var(--theme-danger,#a45259);background:var(--theme-danger-soft,#fbeaec);border:0;border-radius:7px;place-items:center;display:grid}.rack-connection-row>button:disabled{cursor:not-allowed;opacity:.35}.rack-connection-editor.compact{border-color:var(--theme-warning-border,#e5dcc5);background:var(--theme-surface-muted,#fffdf7)}.rack-connection-editor.compact>header{border-color:var(--theme-warning-border,#ece3cf)}.rack-form-warning{border:1px solid var(--theme-warning-border,#efd8aa);color:var(--theme-warning,#865818);background:var(--theme-warning-soft,#fff8e9);border-radius:8px;margin:-7px 0 13px;padding:10px 12px;font-size:12px}.rack-modal>footer{border-top:1px solid var(--theme-border,#e1ecea);justify-content:flex-end;gap:8px;padding-top:14px;display:flex}.rack-modal>footer .rack-delete-left{margin-right:auto}.rack-command-modal{width:min(1080px,100%);padding:22px}.rack-command-intro{justify-content:space-between;align-items:center;gap:18px;padding:18px 2px 14px;display:flex}.rack-command-intro b{color:var(--theme-text,#214849);font-size:16px}.rack-command-intro p{color:var(--theme-text-muted,#6d8283);margin:3px 0 0;font-size:13px;line-height:1.65}.rack-command-intro>span{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e5f4f2);border-radius:9px;flex:none;padding:7px 10px;font-size:12px;font-weight:750}.rack-command-safety{border:1px solid var(--theme-warning-border,#ead6a8);background:var(--theme-surface-muted,#fff9eb);border-radius:11px;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:11px;margin-bottom:16px;padding:12px 14px;display:grid}.rack-command-safety b{color:var(--theme-warning,#8d5b12);white-space:nowrap;padding-top:1px;font-size:13px}.rack-command-safety p{color:var(--theme-warning,#7a623a);margin:0;font-size:12px;line-height:1.65}.rack-command-groups{grid-template-columns:1fr 1fr;align-items:start;gap:14px;display:grid}.rack-command-group{border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface-muted,#fbfdfc);border-radius:14px;overflow:hidden}.rack-command-group>header{border-bottom:1px solid var(--theme-border,#e1ebe9);background:var(--theme-surface-muted,#f3f9f8);justify-content:space-between;align-items:flex-start;gap:12px;padding:14px;display:flex}.rack-command-group>header h3{color:var(--theme-text,#244b4c);margin:0;font-size:16px}.rack-command-group>header p{color:var(--theme-text-muted,#718586);margin:3px 0 0;font-size:12px;line-height:1.55}.rack-command-group>header em{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#dff1ef);border-radius:7px;flex:none;padding:5px 8px;font-size:11px;font-style:normal;font-weight:800}.rack-command-group>div{gap:0;display:grid}.rack-command-item{border-top:1px solid var(--theme-border,#e7eeed);padding:13px 14px}.rack-command-item:first-child{border-top:0}.rack-command-item-heading{justify-content:space-between;align-items:center;gap:10px;margin-bottom:7px;display:flex}.rack-command-item-heading>div{align-items:center;gap:7px;display:flex}.rack-command-item-heading b{color:var(--theme-text,#315657);font-size:13px}.rack-command-item-heading span{border-radius:6px;padding:3px 6px;font-size:10px;font-weight:800}.rack-command-item-heading span.query{color:var(--theme-accent,#087f81);background:var(--theme-accent-soft,#e3f3f1)}.rack-command-item-heading span.change{color:var(--theme-warning,#a15d12);background:var(--theme-warning-soft,#fff0d7)}.rack-command-item-heading small{color:var(--theme-text-muted,#7d9091);font-size:11px}.rack-command-item>button{border:1px solid var(--theme-border,#d8e6e4);width:100%;color:var(--theme-accent,#d9f2ef);background:var(--theme-inverse-surface,#173f40);text-align:left;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:10px 11px;display:flex}.rack-command-item>button:hover,.rack-command-item>button:focus-visible{border-color:var(--theme-accent-border,#50aaa5);box-shadow:0 0 0 3px var(--theme-accent-shadow,#018b8d1f);outline:0}.rack-command-item>button.copied{border-color:var(--theme-accent-border,#4db89b);background:var(--theme-accent-soft,#175147)}.rack-command-item code{overflow-wrap:anywhere;min-width:0;color:inherit;white-space:pre-wrap;font-family:Cascadia Code,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.65}.rack-command-item>button>span{color:var(--theme-accent,#9fd6d1);flex:none;align-items:center;gap:4px;font-size:11px;font-weight:750;display:flex}.rack-command-item>p{color:var(--theme-text-muted,#657a7b);margin:7px 1px 0;font-size:12px;line-height:1.6}.rack-command-modal>footer{justify-content:space-between;align-items:center;margin-top:18px}.rack-command-modal>footer>span{color:var(--theme-text-muted,#7e9091);font-size:12px}@media (max-width:1400px){.rack-workspace{grid-template-columns:190px minmax(480px,1fr)}.rack-inventory-panel{grid-column:1/-1}.rack-inventory-list{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none}}@media (max-width:980px){.rack-summary{grid-template-columns:1fr 1fr}.rack-workspace{grid-template-columns:1fr}.rack-list-panel>div{grid-template-columns:repeat(2,minmax(0,1fr))}.rack-inventory-panel{grid-column:auto}.rack-command-groups{grid-template-columns:1fr}.rack-connected-port-tools{grid-template-columns:minmax(220px,1fr) auto}.rack-port-panel-legend{grid-column:1/-1;justify-content:flex-start}}@media (max-width:650px){.rack-summary{grid-template-columns:1fr 1fr}.rack-summary article{padding:10px}.rack-heading{flex-direction:column;align-items:stretch}.rack-heading-actions{width:100%}.rack-heading-actions>button{flex:1}.rack-actions{width:100%;overflow-x:auto}.rack-cabinet-card>header{flex-direction:column;align-items:flex-start}.rack-scroll{padding:8px}.rack-frame{min-width:470px}.rack-list-panel>div,.rack-inventory-list,.rack-form-fields{grid-template-columns:1fr}.rack-form-fields label.wide,.rack-node-editor.wide{grid-column:auto}.rack-node-primary{grid-template-columns:1fr}.rack-command-modal{padding:16px}.rack-command-intro{flex-direction:column;align-items:flex-start;gap:9px}.rack-command-safety{grid-template-columns:1fr;gap:3px}.rack-command-item-heading{flex-direction:column;align-items:flex-start;gap:3px}.rack-command-item>button{flex-direction:column;align-items:flex-start}.rack-command-modal>footer{flex-direction:column;align-items:stretch}.rack-port-panel-header{flex-direction:column;align-items:flex-start}.rack-port-panel-actions{width:100%}.rack-port-panel-actions .soft-button{flex:1;justify-content:center}.rack-port-route{grid-template-columns:1fr}.rack-port-route-line{min-height:40px}.rack-port-route-target{min-height:44px}.rack-port-route-actions{flex-wrap:wrap;grid-column:auto;justify-content:flex-start}.rack-connected-port-tools{grid-template-columns:1fr;gap:9px}.rack-port-panel-legend{grid-column:auto}}@media (prefers-reduced-motion:reduce){.rack-port-route-line>i>em{animation:none;left:calc(50% - 4px)}}@media (max-width:720px){.today-income-card,.topbar>div:first-child{margin-right:8px}.today-income-trigger{gap:7px;min-width:137px;padding-right:8px}.today-income-status{display:none}.today-income-popover{width:min(390px,100vw - 28px);right:-50px}.today-income-popover:before{right:78px}}@media (max-width:520px){.today-income-trigger{min-width:111px}.today-income-copy{min-width:57px}.today-income-copy small{display:none}.today-income-copy strong{margin-top:0;font-size:14px}.today-income-icon{width:29px;height:29px}.user-chip>div{display:none}.today-income-popover{padding:17px;right:-47px}.today-income-popover>footer{margin:14px -17px -17px;padding:11px 17px}}.risk-ips-page{padding-left:clamp(24px,3vw,46px);padding-right:clamp(24px,3vw,46px)}.risk-ip-heading{align-items:flex-end}.risk-ip-heading-actions{align-items:center;gap:9px;display:flex}.risk-ip-heading-actions a,.risk-ip-heading-actions button{border:1px solid var(--theme-border,#d4e3df);min-height:36px;color:var(--theme-text,#456763);background:var(--theme-surface,#fff);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:6px 11px;font-size:12px;font-weight:550;line-height:1.35;text-decoration:none;display:inline-flex}.risk-ip-heading-actions a:hover,.risk-ip-heading-actions button:hover:not(:disabled){color:var(--theme-accent,#087674);border-color:var(--theme-accent-border,#acd1c8);background:var(--theme-surface-hover,#edf7f3)}.risk-ip-heading-actions a:active,.risk-ip-heading-actions button:active:not(:disabled){background:var(--theme-success-soft,#e0f0e9)}.risk-ip-heading-actions button:disabled{opacity:.58;cursor:wait}.risk-ip-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px;transition:opacity .15s;display:grid}.risk-ip-metrics.loading,.risk-ip-history-card.loading{opacity:.64}.risk-ip-metrics article{border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,#fff);min-width:0;min-height:112px;box-shadow:0 8px 24px var(--theme-accent-shadow,#0f484909);border-radius:15px;align-items:center;gap:13px;padding:17px;display:flex}.risk-ip-metrics article>span{width:44px;height:44px;color:var(--theme-accent,#007f81);background:var(--theme-accent-soft,#e3f4f3);border-radius:12px;flex:0 0 44px;place-items:center;display:grid}.risk-ip-metrics article>span svg{width:20px}.risk-ip-metrics article>div{gap:3px;min-width:0;display:grid}.risk-ip-metrics small{color:var(--theme-text-muted,#738687);font-size:11px}.risk-ip-metrics b{color:var(--theme-text,#173b3d);text-overflow:ellipsis;white-space:nowrap;font-size:20px;overflow:hidden}.risk-ip-metrics b.date{font-size:14px}.risk-ip-metrics em{color:var(--theme-text-muted,#8a9a9b);text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-style:normal;overflow:hidden}.risk-ip-metrics article.warning>span{color:var(--theme-warning,#aa5d13);background:var(--theme-warning-soft,#fff0da)}.risk-ip-metrics article.healthy>span{color:var(--theme-success,#13805b);background:var(--theme-success-soft,#e4f7ef)}.risk-ip-source-card,.risk-ip-history-card{border:1px solid var(--theme-border,#dce8e6);background:var(--theme-surface,#fff);box-shadow:0 10px 30px var(--theme-accent-shadow,#0f48490b);border-radius:16px;margin-bottom:16px;overflow:hidden}.risk-ip-source-card>header,.risk-ip-history-card>header{border-bottom:1px solid var(--theme-border,#e2ebea);justify-content:space-between;align-items:center;gap:15px;min-height:70px;padding:14px 18px;display:flex}.risk-ip-source-card>header>div,.risk-ip-history-card>header>div{color:var(--theme-accent,#018b8d);align-items:center;gap:11px;display:flex}.risk-ip-source-card h2,.risk-ip-history-card h2{color:var(--theme-text,#264848);margin:0 0 3px;font-size:17px}.risk-ip-source-card header p,.risk-ip-history-card header p{color:var(--theme-inverse-text-muted,#8a9796);margin:0;font-size:11px}.risk-ip-source-card header em,.risk-ip-history-card header em{color:var(--theme-accent,#087779);background:var(--theme-accent-soft,#e3f4f2);border-radius:8px;flex:none;padding:5px 9px;font-size:11px;font-style:normal;font-weight:800}.risk-ip-source-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;display:grid}.risk-ip-source-grid article{border-right:1px solid var(--theme-border,#e7eeed);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;min-width:0;padding:17px 18px;display:grid}.risk-ip-source-grid article:last-child{border-right:0}.risk-ip-source-grid article>div{gap:3px;min-width:0;display:grid}.risk-ip-source-grid article b{color:var(--theme-text,#315657);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.risk-ip-source-grid article span{color:var(--theme-text-muted,#8a9998);font-size:10px}.risk-ip-source-grid article strong{color:var(--theme-accent,#087f81);font-size:19px}.risk-ip-source-grid article small{color:var(--theme-text-muted,#849493);grid-column:1/-1;font-size:10px}.risk-ip-history-card{transition:opacity .15s}.risk-ip-history-scroll{overflow:auto}.risk-ip-history-card table{border-collapse:collapse;width:100%;min-width:1260px;font-size:12px}.risk-ip-history-card th{height:44px;color:var(--theme-inverse-text-muted,#718483);background:var(--theme-surface-muted,#f5f9f8);border-bottom:1px solid var(--theme-border,#e1eae8);text-align:left;white-space:nowrap;padding:0 14px;font-size:10px}.risk-ip-history-card td{height:68px;color:var(--theme-inverse-text-muted,#526665);border-bottom:1px solid var(--theme-border,#edf2f1);vertical-align:middle;padding:10px 14px}.risk-ip-history-card tbody tr:last-child td{border-bottom:0}.risk-ip-history-card tbody tr:hover td{background:var(--theme-surface-hover,#fbfdfd)}.risk-ip-history-card th:first-child{width:170px}.risk-ip-history-card th:nth-child(2){width:110px}.risk-ip-history-card th:nth-child(3){width:115px}.risk-ip-history-card th:nth-child(4){width:120px}.risk-ip-history-card th:nth-child(n+5):nth-child(-n+8){width:105px}.risk-ip-history-card th:nth-child(9){width:80px}.risk-ip-history-card th:last-child{width:220px}.risk-ip-history-card td:first-child{white-space:nowrap}.risk-ip-history-card td strong{color:var(--theme-text,#193f40);font-size:13px;display:block}.risk-ip-status{border-radius:999px;align-items:center;gap:5px;width:max-content;padding:4px 8px;font-size:10px;font-weight:800;display:inline-flex}.risk-ip-status.success{color:var(--theme-accent,#137458);background:var(--theme-success-soft,#e4f6ef)}.risk-ip-status.failed{color:var(--theme-danger,#a34f43);background:var(--theme-danger-soft,#fbeae7)}.risk-ip-retained{width:max-content;color:var(--theme-warning,#a05c18);margin-top:4px;font-size:9px;display:block}.risk-ip-delta{color:var(--theme-accent,#198165);margin-top:3px;font-size:9px;display:block}.risk-ip-delta.down{color:var(--theme-warning,#a55b21)}.risk-ip-message{text-overflow:ellipsis;white-space:nowrap;max-width:220px;overflow:hidden}.risk-ip-empty{min-height:180px;color:var(--theme-text-muted,#8a9a99);align-content:center;place-items:center;gap:7px;display:grid}.risk-ip-empty b{color:var(--theme-text,#476362)}.risk-ip-empty span{font-size:11px}@media (max-width:1200px){.risk-ip-metrics,.risk-ip-source-grid{grid-template-columns:1fr 1fr}.risk-ip-source-grid article:nth-child(2){border-right:0}.risk-ip-source-grid article:nth-child(-n+2){border-bottom:1px solid var(--theme-border,#e7eeed)}}@media (max-width:650px){.risk-ip-heading{flex-direction:column;align-items:stretch}.risk-ip-heading-actions{width:100%}.risk-ip-heading-actions a,.risk-ip-heading-actions button{flex:1;justify-content:center}.risk-ip-metrics,.risk-ip-source-grid{grid-template-columns:1fr}.risk-ip-source-grid article{border-right:0;border-bottom:1px solid var(--theme-border,#e7eeed)}.risk-ip-source-grid article:last-child{border-bottom:0}.risk-ip-source-card>header,.risk-ip-history-card>header{flex-direction:column;align-items:flex-start}.risk-ip-source-card header em,.risk-ip-history-card header em{align-self:flex-end}}.workspace-page{background:var(--theme-bg,#f4f7f6);padding:26px clamp(18px,2.2vw,32px) 42px}.workspace-heading{gap:16px;margin-bottom:22px}.workspace-heading h1{color:var(--theme-text,#193c3a);letter-spacing:-.025em;margin:0 0 5px;font-size:25px}.workspace-heading p{color:var(--theme-text-muted,#627b77);font-size:13px}.create-strip,.channel-card,.automation-template,.rules-list article,.rule-builder,.create-member,.team-table,.metric-grid article,.report-card,.history-table-card,.history-toolbar{border-color:var(--theme-border,#e0e9e3);box-shadow:none;border-radius:10px}.workspace-page :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--theme-accent-border,#087f77);outline-offset:2px}.primary-button{color:var(--theme-on-accent,#fff);border-color:var(--accent);background:var(--accent);font-weight:550}.primary-button:hover:not(:disabled){border-color:var(--accent-dark);background:var(--accent-dark)}.row-button,.history-open,.team-edit-button{color:var(--theme-accent,#087f77);background:0 0;font-weight:500}@media (max-width:650px){.workspace-page{padding:20px 12px 30px}.workspace-heading h1{font-size:23px}}
