/* ===================================================== Телефонна централа (Zadarma) */
.oabg-root{--tel:#ea580c;--tel-2:#c2410c;--tel-soft:#fff7ed;--tel-ok:#16a34a}
.oabg-root.oa-dark{--tel-soft:#2a1606}
.oabg-root.tel-float{min-height:0;position:fixed;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.oabg-root .c-ok{color:#15803d}.oabg-root .c-warn{color:#b45309}.oabg-root .c-bad{color:#dc2626}
.oabg-root.oa-dark .c-ok{color:#4ade80}.oabg-root.oa-dark .c-warn{color:#fbbf24}.oabg-root.oa-dark .c-bad{color:#f87171}
.oabg-root .tel-mono{font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}
.oabg-root .tel-nowrap{white-space:nowrap}
.oabg-root .tel-spin{display:inline-block;width:18px;height:18px;border-radius:50%;border:2.5px solid color-mix(in srgb,var(--tel) 25%,transparent);border-top-color:var(--tel);animation:oaspin .8s linear infinite;flex:none}
.oabg-root .tel-spin.sm{width:14px;height:14px;border-width:2px;border-color:rgba(255,255,255,.35);border-top-color:currentColor}
.oabg-root .tel-load{display:flex;justify-content:center;padding:26px}

/* горна лента */
.oabg-root .tel-topbtn{position:relative;margin-right:8px;color:var(--tel)}
.oabg-root .tel-topbtn:hover{color:var(--tel-2);border-color:color-mix(in srgb,var(--tel) 40%,var(--line))}
.oabg-root .tel-topdot{position:absolute;top:6px;right:6px;width:9px;height:9px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 2px var(--panel);animation:telPulse 1.4s infinite}
@keyframes telPulse{0%{box-shadow:0 0 0 2px var(--panel),0 0 0 2px rgba(34,197,94,.6)}70%{box-shadow:0 0 0 2px var(--panel),0 0 0 9px rgba(34,197,94,0)}100%{box-shadow:0 0 0 2px var(--panel),0 0 0 2px rgba(34,197,94,0)}}

/* бутон „обади се“ */
.oabg-root .tel-cbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:30px;min-width:30px;padding:0 8px;border-radius:9px;border:1px solid color-mix(in srgb,var(--tel-ok) 30%,var(--line));background:color-mix(in srgb,var(--tel-ok) 8%,var(--panel));color:var(--tel-ok);cursor:pointer;font-weight:600;font-size:12.5px;transition:all .15s;white-space:nowrap;flex:none}
.oabg-root .tel-cbtn svg{width:15px;height:15px}
.oabg-root .tel-cbtn:hover{background:var(--tel-ok);color:#fff;border-color:var(--tel-ok);transform:translateY(-1px)}
.oabg-root .tel-cbtn.wl{padding:0 11px}
.oabg-root.oa-dark .tel-cbtn{color:#4ade80}.oabg-root.oa-dark .tel-cbtn:hover{color:#fff}

/* икони за посока */
.oabg-root .tel-dir{display:inline-grid;place-items:center;border-radius:10px;flex:none;background:color-mix(in srgb,var(--dc) 13%,transparent);color:var(--dc)}
.oabg-root .tel-dir svg{width:52%;height:52%}
.oabg-root .tel-av{display:inline-grid;place-items:center;border-radius:50%;flex:none;background:linear-gradient(135deg,var(--ac),color-mix(in srgb,var(--ac) 60%,#0f172a));color:#fff;font-weight:700;font-size:14px;letter-spacing:.3px}
.oabg-root .tel-av svg{width:46%;height:46%}
.oabg-root .tel-ext{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;background:var(--panel-2);border:1px solid var(--line);font-weight:700;font-size:12px;font-variant-numeric:tabular-nums;color:var(--ink-2)}
.oabg-root .tel-ext.lg{height:26px;font-size:13px;padding:0 10px}

/* подменю */
.oabg-root .tel-tabs a{display:inline-flex;align-items:center;gap:6px}
.oabg-root .tel-tabs a svg{opacity:.75}
.oabg-root .tel-livechip{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--muted);font-weight:600;padding:6px 10px;border-radius:20px;background:var(--panel-2);border:1px solid var(--line)}
.oabg-root .tel-livechip i,.oabg-root .tel-livedot{width:8px;height:8px;border-radius:50%;background:#22c55e;display:inline-block;animation:telLive 1.8s infinite}
@keyframes telLive{0%{box-shadow:0 0 0 0 rgba(34,197,94,.55)}70%{box-shadow:0 0 0 8px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}

/* KPI */
.oabg-root .tel-kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(172px,1fr));gap:14px;margin-bottom:14px}
.oabg-root .tel-kpi{display:flex;flex-direction:column;gap:6px;align-items:stretch;padding:14px 16px 15px;color:var(--ink);position:relative;overflow:hidden;transition:transform .15s,box-shadow .15s}
.oabg-root .tel-kpi:hover{transform:translateY(-2px);box-shadow:0 14px 30px -18px rgba(15,23,42,.35)}
.oabg-root .tel-kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--kc);opacity:.85}
.oabg-root .tel-kpi.hot{background:linear-gradient(180deg,color-mix(in srgb,var(--kc) 9%,var(--panel)),var(--panel))}
.oabg-root .tel-kpi-t{display:flex;align-items:center;gap:9px;min-width:0}
.oabg-root .tel-kpi-t .tel-kpi-l{margin:0;line-height:1.25}
.oabg-root .tel-kpi-ic{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--kc) 13%,transparent);color:var(--kc)}
.oabg-root .tel-kpi-ic svg{width:17px;height:17px}
.oabg-root .tel-kpi-v{font-size:27px;margin-top:4px;font-weight:800;letter-spacing:-.6px;line-height:1.05;font-variant-numeric:tabular-nums}
.oabg-root .tel-kpi-v small{font-size:13px;color:var(--muted);font-weight:700;margin-left:1px}
.oabg-root .tel-kpi-l{font-size:12.5px;color:var(--muted);font-weight:600;margin-top:2px}
.oabg-root .tel-kpi-s{font-size:11.5px;color:var(--muted);margin-top:2px}

/* табло */
.oabg-root .tel-dash{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:14px;margin-bottom:14px;align-items:start}
.oabg-root .tel-chart-c .oa-card-h h3,.oabg-root .tel-panel-c .oa-card-h h3,.oabg-root .tel-livecard .oa-card-h h3{display:flex;align-items:center;gap:8px;font-size:15px}
.oabg-root .oa-card-b.tight{padding:6px 10px 10px}
.oabg-root .tel-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:var(--muted);font-weight:600;margin-bottom:6px}
.oabg-root .tel-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.oabg-root .tel-svg{display:block;overflow:visible}
.oabg-root .tel-grid{stroke:var(--line-2);stroke-width:1}
.oabg-root .tel-ax{font-size:11px;fill:var(--muted);font-weight:500}
.oabg-root .tel-ax.hot{fill:var(--tel);font-weight:800}
.oabg-root .tel-val{font-size:11px;fill:var(--ink-2);font-weight:700}
.oabg-root .tel-bar-bg{fill:transparent}
.oabg-root .tel-bar:hover .tel-bar-bg{fill:var(--panel-2)}
.oabg-root .tel-bar.hot .tel-bar-bg{fill:color-mix(in srgb,var(--tel) 7%,transparent)}
.oabg-root .tel-livecard{margin-bottom:14px;border-color:color-mix(in srgb,#22c55e 40%,var(--line));background:linear-gradient(180deg,color-mix(in srgb,#22c55e 6%,var(--panel)),var(--panel))}
.oabg-root .tel-li{display:flex;align-items:center;gap:11px;padding:9px 6px;border-bottom:1px solid var(--line-2);min-width:0}
.oabg-root .tel-li:last-child{border-bottom:0}
.oabg-root .tel-li-m{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.oabg-root .tel-li-m b{font-weight:650;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13.5px}
.oabg-root .tel-li-m span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oabg-root .tel-mi-a{display:flex;gap:6px;flex:none}
.oabg-root .tel-rank{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;background:var(--panel-2);border:1px solid var(--line);font-size:12px;font-weight:800;color:var(--muted);flex:none}
.oabg-root .tel-top:nth-child(1) .tel-rank{background:#fef3c7;border-color:#fde68a;color:#b45309}
.oabg-root.oa-dark .tel-top:nth-child(1) .tel-rank{background:#3b2a05;border-color:#78350f;color:#fcd34d}
.oabg-root .tel-topbar{height:4px;border-radius:4px;background:var(--line-2);margin-top:5px;overflow:hidden}
.oabg-root .tel-topbar i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,var(--tel),#f59e0b)}
.oabg-root .tel-top-n{font-size:18px;font-weight:800;min-width:26px;text-align:right;font-variant-numeric:tabular-nums}
.oabg-root .tel-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:26px 14px;color:var(--muted);text-align:center;font-size:13px}
.oabg-root .tel-empty svg{width:26px;height:26px;opacity:.6}
.oabg-root .tel-empty.ok{color:#15803d}.oabg-root.oa-dark .tel-empty.ok{color:#4ade80}

/* въведение без връзка */
.oabg-root .tel-onb{text-align:center;padding:48px 20px 56px;border:1px dashed color-mix(in srgb,var(--tel) 35%,var(--line));border-radius:20px;background:radial-gradient(ellipse at top,color-mix(in srgb,var(--tel) 9%,var(--panel)),var(--panel) 70%)}
.oabg-root .tel-onb h2{font-size:24px;letter-spacing:-.4px;margin-top:18px}
.oabg-root .tel-onb p{max-width:560px;margin:10px auto 20px;color:var(--muted)}
.oabg-root .tel-onb-art{display:flex;justify-content:center;gap:12px}
.oabg-root .tel-onb-art span{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);color:var(--tel)}
.oabg-root .tel-onb-art span:nth-child(2){transform:translateY(-8px);color:#16a34a}
.oabg-root .tel-onb-art span:nth-child(3){color:#6366f1}
.oabg-root .tel-onb-art svg{width:26px;height:26px}

/* ---------------- телефон ---------------- */
.oabg-root .tel-ph{display:flex;flex-direction:column;gap:12px}
.oabg-root .tel-seg3{display:grid;grid-template-columns:repeat(3,1fr);background:var(--panel-2);border:1px solid var(--line);border-radius:12px;padding:3px;gap:2px}
.oabg-root .tel-seg3 button{border:0;background:transparent;padding:8px 6px;border-radius:9px;font-weight:600;font-size:12.5px;color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px}
.oabg-root .tel-seg3 button svg{width:15px;height:15px}
.oabg-root .tel-seg3 button.on{background:var(--panel);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.oabg-root .tel-line{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12.5px}
.oabg-root .tel-line-l{color:var(--muted);font-weight:600}
.oabg-root .tel-lseg button{padding:5px 11px;font-size:12.5px}
.oabg-root .tel-line-w{display:flex;align-items:center;gap:8px;width:100%;padding:8px 11px;border-radius:10px;background:#fffbeb;border:1px solid #fde68a;color:#78350f}
.oabg-root.oa-dark .tel-line-w{background:#3b2a07;border-color:#78350f;color:#fde68a}
.oabg-root .tel-line-w svg{width:16px;height:16px;flex:none}
.oabg-root .tel-line-w span{flex:1}
.oabg-root .tel-line-w a{font-weight:700}
.oabg-root .tel-dial{display:flex;flex-direction:column;align-items:stretch}
.oabg-root .tel-disp{position:relative;display:flex;align-items:center}
.oabg-root .tel-num{width:100%;border:0;border-bottom:2px solid var(--line);background:transparent;color:var(--ink);font-size:30px;font-weight:700;letter-spacing:.5px;text-align:center;padding:10px 44px 8px;outline:none;font-variant-numeric:tabular-nums;border-radius:0;box-shadow:none}
.oabg-root .tel-num:focus{border-bottom-color:var(--tel)}
.oabg-root .tel-num::placeholder{color:var(--muted);opacity:.55;font-size:20px;font-weight:600;letter-spacing:0}
.oabg-root .tel-bs{position:absolute;right:0;width:40px;height:40px;border:0;background:transparent;color:var(--muted);cursor:pointer;border-radius:10px;display:grid;place-items:center}
.oabg-root .tel-bs:hover{background:var(--panel-2);color:var(--ink)}
.oabg-root .tel-bs svg{width:22px;height:22px}
.oabg-root .tel-dm{min-height:26px;text-align:center;font-size:13px;margin:6px 0 10px;display:flex;justify-content:center;align-items:center}
.oabg-root .tel-dm-m{display:inline-flex;align-items:center;gap:7px;padding:3px 10px 3px 3px;border-radius:20px;background:var(--panel-2);border:1px solid var(--line);color:var(--ink-2)}
.oabg-root .tel-dm-m .tel-av{font-size:9px}
.oabg-root .tel-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:300px;width:100%;margin:0 auto}
.oabg-root .tel-pad button{height:58px;border-radius:16px;border:1px solid var(--line);background:var(--panel);color:var(--ink);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;transition:background .12s,transform .08s;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.oabg-root .tel-pad button:hover{background:var(--panel-2)}
.oabg-root .tel-pad button:active{transform:scale(.95);background:color-mix(in srgb,var(--tel) 10%,var(--panel))}
.oabg-root .tel-pad b{font-size:23px;font-weight:600;line-height:1.1}
.oabg-root .tel-pad small{font-size:9.5px;letter-spacing:1.6px;color:var(--muted);font-weight:700;line-height:1}
.oabg-root .tel-call{margin:16px auto 0;height:54px;min-width:220px;border-radius:30px;border:0;background:linear-gradient(135deg,#22c55e,#15803d);color:#fff;font-weight:700;font-size:16px;display:inline-flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;box-shadow:0 10px 24px -8px rgba(22,163,74,.6);transition:transform .12s,box-shadow .12s,opacity .12s}
.oabg-root .tel-call svg{width:21px;height:21px}
.oabg-root .tel-call:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 14px 28px -8px rgba(22,163,74,.7)}
.oabg-root .tel-call:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.oabg-root .tel-call.busy{opacity:.7}
.oabg-root .tel-st{display:flex;align-items:center;gap:12px;margin-top:14px;padding:12px 14px;border-radius:14px;background:var(--panel-2);border:1px solid var(--line);position:relative}
.oabg-root .tel-st b{display:block;font-size:13.5px}
.oabg-root .tel-st span{font-size:12.5px;color:var(--muted)}
.oabg-root .tel-st-ic{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--tel);color:#fff}
.oabg-root .tel-st-ic svg{width:18px;height:18px}
.oabg-root .tel-st.ring{background:color-mix(in srgb,var(--tel) 8%,var(--panel));border-color:color-mix(in srgb,var(--tel) 35%,var(--line))}
.oabg-root .tel-st.ring .tel-st-ic{animation:telShake 1.1s infinite}
.oabg-root .tel-st.talk{background:color-mix(in srgb,#22c55e 8%,var(--panel));border-color:color-mix(in srgb,#22c55e 40%,var(--line))}
.oabg-root .tel-st.talk .tel-st-ic{background:#16a34a}
.oabg-root .tel-st.talk span{font-variant-numeric:tabular-nums;font-weight:700;color:#15803d}
.oabg-root.oa-dark .tel-st.talk span{color:#4ade80}
.oabg-root .tel-st.done .tel-st-ic{background:#64748b}
.oabg-root .tel-st > div{flex:1;min-width:0}
.oabg-root .tel-st-x{border:0;background:transparent;color:var(--muted);cursor:pointer;width:28px;height:28px;border-radius:8px;display:grid;place-items:center}
.oabg-root .tel-st-x svg{width:15px;height:15px}
.oabg-root .tel-st-x:hover{background:var(--panel)}
@keyframes telShake{0%,50%,100%{transform:rotate(0)}5%,15%,25%{transform:rotate(-14deg)}10%,20%,30%{transform:rotate(14deg)}}
.oabg-root .tel-ph-f{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;border-top:1px solid var(--line-2);padding-top:12px}
.oabg-root .tel-ph-f:empty{display:none}
.oabg-root .tel-ph-f svg{width:15px;height:15px}
.oabg-root .tel-srch{position:relative;margin:4px 0 6px}
.oabg-root .tel-srch svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--muted)}
.oabg-root .tel-srch .oa-in{padding-left:34px;width:100%}
.oabg-root .tel-srch.sm{margin:0;min-width:200px}
.oabg-root .tel-list{max-height:430px;overflow:auto}
.oabg-root .tel-phone-page{display:grid;grid-template-columns:minmax(320px,440px) minmax(0,1fr);gap:16px;align-items:start}
.oabg-root .tel-ph-main .oa-card-b{padding:20px 22px 22px;display:flex;flex-direction:column;gap:14px}
.oabg-root .tel-ph-side{display:grid;gap:16px}
.oabg-root .tel-ph-side .tel-list{max-height:340px}

/* ---------------- плаващ панел ---------------- */
.oabg-root.tel-panel{top:74px;right:20px;width:372px;max-width:calc(100vw - 24px);max-height:calc(100vh - 92px);z-index:100040;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:22px;box-shadow:0 30px 70px -20px rgba(15,23,42,.45),0 0 0 1px rgba(15,23,42,.03);display:flex;flex-direction:column;overflow:hidden;opacity:0;transform:translateY(-10px) scale(.98);pointer-events:none;transition:opacity .18s,transform .18s;font-size:14px;line-height:1.5}
.oabg-root.tel-panel.open{opacity:1;transform:none;pointer-events:auto}
.oabg-root .tel-p-h{display:flex;align-items:center;gap:11px;padding:14px 14px 12px 16px;background:linear-gradient(135deg,var(--tel),#b45309);color:#fff}
.oabg-root .tel-p-h b{display:block;font-size:15px}
.oabg-root .tel-p-h small{display:block;font-size:11.5px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
.oabg-root .tel-p-ic{width:36px;height:36px;border-radius:12px;background:rgba(255,255,255,.18);display:grid;place-items:center;flex:none}
.oabg-root .tel-p-ic svg{width:18px;height:18px}
.oabg-root .tel-p-b{border:0;background:rgba(255,255,255,.14);color:#fff;width:32px;height:32px;border-radius:10px;cursor:pointer;display:grid;place-items:center}
.oabg-root .tel-p-b:hover{background:rgba(255,255,255,.26)}
.oabg-root .tel-p-b svg{width:17px;height:17px}
.oabg-root .tel-p-body{padding:14px 16px 14px;overflow:auto}
.oabg-root.tel-panel .tel-list{max-height:380px}
.oabg-root.tel-panel .tel-pad button{height:52px}
.oabg-root.tel-panel .tel-num{font-size:26px}

/* ---------------- изскачащ картон при входящо ---------------- */
.oabg-root.tel-pops{right:20px;bottom:20px;z-index:100045;display:flex;flex-direction:column;justify-content:flex-end;gap:12px;width:420px;max-height:calc(100vh - 90px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;max-width:calc(100vw - 24px);pointer-events:none;background:transparent}
.oabg-root .tel-pop{pointer-events:auto;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:20px;box-shadow:0 26px 60px -18px rgba(15,23,42,.5),0 0 0 1px rgba(15,23,42,.03);overflow:hidden;animation:telIn .38s cubic-bezier(.2,.9,.3,1.25);position:relative;font-size:14px;line-height:1.45}
.oabg-root .tel-pop:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,var(--tel),#f59e0b,var(--tel));background-size:200% 100%;animation:telBar 1.6s linear infinite}
.oabg-root .tel-pop.ans:before{background:#22c55e;animation:none}
.oabg-root .tel-pop.out{animation:telOut .3s forwards}
@keyframes telIn{from{opacity:0;transform:translateY(24px) scale(.96)}to{opacity:1;transform:none}}
@keyframes telOut{to{opacity:0;transform:translateX(40px)}}
@keyframes telBar{to{background-position:-200% 0}}
.oabg-root .tel-pop-top{display:flex;gap:13px;padding:18px 14px 12px 16px;align-items:flex-start}
.oabg-root .tel-ring{position:relative;flex:none}
.oabg-root .tel-ring:before,.oabg-root .tel-ring:after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid var(--tel);animation:telRing 1.6s ease-out infinite}
.oabg-root .tel-ring:after{animation-delay:.8s}
.oabg-root .tel-pop.ans .tel-ring:before,.oabg-root .tel-pop.ans .tel-ring:after{border-color:#22c55e;animation-duration:2.6s}
@keyframes telRing{0%{transform:scale(1);opacity:.8}100%{transform:scale(1.65);opacity:0}}
.oabg-root .tel-pop-m{flex:1;min-width:0}
.oabg-root .tel-pop-st{display:flex;align-items:center;gap:7px;font-size:11.5px;font-weight:700;color:var(--tel);text-transform:uppercase;letter-spacing:.5px}
.oabg-root .tel-pop-st i{width:7px;height:7px;border-radius:50%;background:currentColor;animation:telLive 1.2s infinite}
.oabg-root .tel-pop-st span{margin-left:auto;color:var(--muted);font-variant-numeric:tabular-nums;letter-spacing:0}
.oabg-root .tel-pop.ans .tel-pop-st{color:#16a34a}
.oabg-root.oa-dark .tel-pop.ans .tel-pop-st{color:#4ade80}
.oabg-root .tel-pop-n{font-size:19px;font-weight:800;letter-spacing:-.3px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oabg-root .tel-pop-s{font-size:12.5px;color:var(--muted);margin-top:1px}
.oabg-root .tel-pop-x{border:0;background:transparent;color:var(--muted);cursor:pointer;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;flex:none;margin:-4px -2px 0 0}
.oabg-root .tel-pop-x:hover{background:var(--panel-2);color:var(--ink)}
.oabg-root .tel-pop-x svg{width:15px;height:15px}
.oabg-root .tel-pop-h{margin:0 14px;padding:9px 11px;border-radius:12px;background:var(--panel-2);border:1px solid var(--line-2);font-size:12px}
.oabg-root .tel-pop-h.empty{color:var(--muted);text-align:center}
.oabg-root .tel-pop-hl{font-size:10.5px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);font-weight:700;margin-bottom:4px}
.oabg-root .tel-pop-hi{display:flex;align-items:center;gap:8px;padding:3px 0;color:var(--ink-2);min-width:0;flex-wrap:wrap}
.oabg-root .tel-pop-hi .tel-dir{border-radius:6px}
.oabg-root .tel-pop-note{display:flex;align-items:center;gap:5px;width:100%;padding-left:28px;color:var(--muted);font-style:italic;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oabg-root .tel-pop-note svg{flex:none}
.oabg-root .tel-pop-a{display:flex;gap:5px;flex-wrap:wrap;padding:12px 12px 14px 14px}
.oabg-root .tel-pop-a .oa-btn{padding:0 9px;font-size:12px;gap:5px}
.oabg-root .tel-pop-a .oa-btn svg{width:14px;height:14px}
.oabg-root .tel-pop-a .ghost{margin-left:auto;color:var(--muted);padding:0 6px}

/* ---------------- картон ---------------- */
.oabg-root .tel-card-h{display:flex;gap:14px;align-items:center;padding:4px 0 14px}
.oabg-root .tel-card-h h2{font-size:21px;letter-spacing:-.3px}
.oabg-root .tel-card-h .tel-av{font-size:18px}
.oabg-root .tel-card-a{gap:8px;padding-bottom:16px;border-bottom:1px solid var(--line-2);margin-bottom:14px}
.oabg-root .tel-card-a .tel-cbtn{height:30px}
.oabg-root .tel-card-sub{font-size:12px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);margin-bottom:8px}
.oabg-root .tel-tl{display:flex;flex-direction:column}
.oabg-root .tel-tl-i{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--line-2)}
.oabg-root .tel-tl-i:last-child{border-bottom:0}
.oabg-root .tel-note{margin-top:7px;padding:8px 11px;border-radius:10px;background:#fffbeb;border:1px solid #fde68a}
.oabg-root.oa-dark .tel-note{background:#2b2108;border-color:#5b4509}
.oabg-root .tel-note p{margin:0;font-size:13px;white-space:pre-wrap;color:var(--ink)}
.oabg-root .tel-note span{font-size:11.5px;color:var(--muted)}
.oabg-root .tel-notes-l{display:flex;flex-direction:column;gap:4px}

/* ---------------- разговори ---------------- */
.oabg-root .tel-filters .oa-card-b{padding:12px 14px}
.oabg-root .tel-frow{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.oabg-root .tel-dseg button{padding:7px 12px}
.oabg-root .tel-dates{display:flex;align-items:center;gap:6px;color:var(--muted)}
.oabg-root .tel-dates .oa-in{width:148px;height:38px}
.oabg-root .tel-tbl td{padding-top:10px;padding-bottom:10px}
.oabg-root .tel-acts{white-space:nowrap;text-align:right}
.oabg-root .tel-acts > *{margin-left:4px;vertical-align:middle}
.oabg-root .tel-play{width:32px;height:32px;border-radius:50%;border:1px solid color-mix(in srgb,var(--tel) 35%,var(--line));background:color-mix(in srgb,var(--tel) 8%,var(--panel));color:var(--tel);cursor:pointer;display:grid;place-items:center;transition:all .15s}
.oabg-root .tel-play svg{width:12px;height:12px;margin-left:2px}
.oabg-root .tel-play:hover{background:var(--tel);color:#fff}
.oabg-root .tel-play.busy{animation:telLive 1s infinite}
.oabg-root .tel-notes{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 9px;border-radius:8px;border:1px dashed var(--line);background:transparent;color:var(--muted);cursor:pointer;font-weight:700;font-size:12px}
.oabg-root .tel-notes svg{width:13px;height:13px}
.oabg-root .tel-notes.has{border-style:solid;border-color:#fde68a;background:#fffbeb;color:#b45309}
.oabg-root.oa-dark .tel-notes.has{background:#2b2108;border-color:#5b4509;color:#fcd34d}
.oabg-root .tel-audio-r td{background:var(--panel-2)!important}
.oabg-root .tel-audio{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.oabg-root .tel-audio audio{height:36px;min-width:260px;flex:1;max-width:520px}
.oabg-root .tel-pager{display:flex;align-items:center;gap:8px;padding:12px 14px;border-top:1px solid var(--line-2)}

/* ---------------- вътрешни номера ---------------- */
.oabg-root .tel-team{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:16px;align-items:start}
.oabg-root .tel-usel{height:34px;max-width:260px;padding-top:4px;padding-bottom:4px}
.oabg-root .tel-stats{display:flex;gap:12px;font-weight:700;font-variant-numeric:tabular-nums;font-size:13px}
.oabg-root .tel-stats span{display:inline-flex;align-items:center;gap:4px;color:var(--ink-2)}
.oabg-root .tel-stats span.c-bad{color:#dc2626}
.oabg-root .tel-stats svg{opacity:.7}
.oabg-root .tel-team .oa-card-h h3{display:flex;align-items:center;gap:8px;font-size:15px}
.oabg-root .tel-team .oa-card-h h3 svg{width:18px;height:18px;flex:none}
.oabg-root .tel-me-g{display:grid;gap:10px}
.oabg-root .tel-opt{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:14px;border:1.5px solid var(--line);cursor:pointer;transition:all .15s}
.oabg-root .tel-opt input{position:absolute;opacity:0;pointer-events:none}
.oabg-root .tel-opt > span{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;flex:none;background:var(--panel-2);color:var(--muted)}
.oabg-root .tel-opt > span svg{width:18px;height:18px}
.oabg-root .tel-opt b{display:block;font-size:14px}
.oabg-root .tel-opt small{display:block;font-size:12px;color:var(--muted);line-height:1.4;margin-top:2px}
.oabg-root .tel-opt.on{border-color:var(--tel);background:color-mix(in srgb,var(--tel) 6%,var(--panel))}
.oabg-root .tel-opt.on > span{background:var(--tel);color:#fff}

/* ---------------- настройки ---------------- */
.oabg-root .tel-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.oabg-root .tel-chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:20px;background:var(--panel);border:1px solid var(--line);font-size:12.5px;font-weight:600;color:var(--muted)}
.oabg-root .tel-chip svg{width:14px;height:14px}
.oabg-root .tel-chip.ok{background:var(--ok-soft);border-color:color-mix(in srgb,#16a34a 30%,transparent);color:#15803d}
.oabg-root .tel-chip.warn{background:var(--warn-soft);border-color:color-mix(in srgb,#d97706 35%,transparent);color:#b45309}
.oabg-root.oa-dark .tel-chip.ok{color:#86efac}.oabg-root.oa-dark .tel-chip.warn{color:#fcd34d}
.oabg-root .tel-set{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:16px;align-items:start}
.oabg-root .tel-set-side{display:grid;gap:16px}
.oabg-root .tel-set-side .oa-card-h h3{display:flex;align-items:center;gap:8px;font-size:15px}
.oabg-root .tel-set-side .oa-card-h h3 svg{width:18px;height:18px}
.oabg-root .tel-wiz .oa-card-b{padding:10px 22px}
.oabg-root .tel-step{display:flex;gap:16px;padding:18px 0;position:relative}
.oabg-root .tel-step + .tel-step{border-top:1px solid var(--line-2)}
.oabg-root .tel-step-n{width:34px;height:34px;border-radius:50%;flex:none;display:grid;place-items:center;font-weight:800;font-size:14px;background:var(--panel-2);border:1.5px solid var(--line);color:var(--muted)}
.oabg-root .tel-step.open .tel-step-n{background:var(--tel);border-color:var(--tel);color:#fff;box-shadow:0 0 0 5px color-mix(in srgb,var(--tel) 15%,transparent)}
.oabg-root .tel-step.done .tel-step-n{background:#16a34a;border-color:#16a34a;color:#fff}
.oabg-root .tel-step-n svg{width:16px;height:16px}
.oabg-root .tel-step-b{flex:1;min-width:0}
.oabg-root .tel-step-b h3{font-size:16px;margin:5px 0 6px}
.oabg-root .tel-step-b p{color:var(--ink-2);font-size:13.5px}
.oabg-root .tel-keys{margin-top:12px}
.oabg-root .tel-keyrow{display:flex;align-items:center;gap:10px;margin-top:12px;padding:10px 12px;border-radius:12px;background:var(--panel-2);border:1px solid var(--line);flex-wrap:wrap}
.oabg-root .tel-keyrow > svg{width:17px;height:17px;color:#16a34a}
.oabg-root .tel-keyrow span{flex:1;font-size:13px}
.oabg-root .tel-url{display:flex;gap:8px;margin-top:12px}
.oabg-root .tel-url .oa-in{flex:1;font-size:12.5px;background:var(--panel-2)}
.oabg-root .tel-evs{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.oabg-root .tel-evs code{font-size:11.5px;padding:3px 8px;border-radius:6px;background:color-mix(in srgb,var(--tel) 9%,var(--panel));color:var(--tel-2);border:1px solid color-mix(in srgb,var(--tel) 25%,transparent);font-weight:600}
.oabg-root.oa-dark .tel-evs code{color:#fdba74}
.oabg-root .tel-linkbtn{border:0;background:none;padding:0;color:var(--brand);cursor:pointer;font:inherit;text-decoration:underline}
.oabg-root .tel-test{display:inline-flex;align-items:center;gap:6px;font-size:13px;flex-wrap:wrap}
.oabg-root .tel-test svg{width:16px;height:16px}
.oabg-root .tel-test.ok{color:#15803d}.oabg-root .tel-test.bad{color:#dc2626}
.oabg-root.oa-dark .tel-test.ok{color:#4ade80}.oabg-root.oa-dark .tel-test.bad{color:#f87171}
.oabg-root .tel-sw{position:relative;display:inline-block;width:44px;height:24px;cursor:pointer;flex:none}
.oabg-root .tel-sw input{opacity:0;width:0;height:0;position:absolute}
.oabg-root .tel-sw i{position:absolute;inset:0;border-radius:20px;background:var(--line);transition:.2s}
.oabg-root .tel-sw i:before{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.2s}
.oabg-root .tel-sw input:checked + i{background:var(--tel)}
.oabg-root .tel-sw input:checked + i:before{transform:translateX(20px)}
.oabg-root .tel-sw input:focus-visible + i{outline:2px solid var(--tel);outline-offset:2px}
.oabg-root .tel-priv{margin:0 0 12px;padding-left:18px;font-size:13px;color:var(--ink-2);display:grid;gap:5px}
.oabg-root .tel-danger{border-color:#fecaca}
.oabg-root.oa-dark .tel-danger{border-color:#7f1d1d}
.oabg-root .tel-log{display:flex;gap:12px;align-items:baseline;padding:8px 6px;border-bottom:1px solid var(--line-2);font-size:13px;flex-wrap:wrap}
.oabg-root .tel-log:last-child{border-bottom:0}
.oabg-root .tel-log-t{color:var(--muted);font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums;min-width:150px}

/* ---------------- промо ---------------- */
.oabg-root .tel-promo-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:center;padding:36px;border-radius:24px;background:radial-gradient(ellipse at 90% 10%,rgba(251,146,60,.35),transparent 55%),linear-gradient(135deg,#431407,#7c2d12 55%,#9a3412);color:#fff;overflow:hidden}
.oabg-root .tel-promo-hero h1{color:#fff;font-size:34px;letter-spacing:-.8px;margin-top:12px}
.oabg-root .tel-promo-hero p{color:#fed7aa;font-size:16px;margin-top:8px}
.oabg-root .tel-promo-t .oa-btn:not(.pri){background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25);color:#fff}
.oabg-root .tel-promo-t .oa-btn.pri{background:#fff;color:#9a3412;box-shadow:0 10px 24px -8px rgba(0,0,0,.4)}
.oabg-root .tel-promo-n{font-size:12.5px!important;opacity:.85;margin-top:14px!important}
.oabg-root .tel-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:20px;background:rgba(255,255,255,.14);font-size:12.5px;font-weight:700}
.oabg-root .tel-promo-art{display:flex;justify-content:center}
.oabg-root .tel-pop.demo{width:100%;max-width:380px;animation:none;transform:rotate(-1.5deg)}
.oabg-root .tel-steps-s{margin:0;padding-left:0;list-style:none;counter-reset:s;display:grid;gap:12px}
.oabg-root .tel-steps-s li{counter-increment:s;display:grid;grid-template-columns:30px 1fr;column-gap:10px}
.oabg-root .tel-steps-s li:before{content:counter(s);grid-row:span 2;width:28px;height:28px;border-radius:50%;background:var(--tel-soft);color:var(--tel-2);display:grid;place-items:center;font-weight:800;font-size:13px}
.oabg-root.oa-dark .tel-steps-s li:before{color:#fdba74}
.oabg-root .tel-steps-s span{font-size:13px;color:var(--muted)}

/* ---------------- адаптивност ---------------- */
@media (max-width:1100px){
  .oabg-root .tel-dash,.oabg-root .tel-team,.oabg-root .tel-set{grid-template-columns:minmax(0,1fr)}
  .oabg-root .tel-phone-page{grid-template-columns:minmax(0,1fr)}
  .oabg-root .tel-ph-main{max-width:520px;width:100%;margin:0 auto}
}
@media (max-width:782px){
  .oabg-root .tel-promo-hero{grid-template-columns:1fr;padding:24px}
  .oabg-root .tel-promo-hero h1{font-size:26px}
  .oabg-root .tel-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .oabg-root .tel-kpi{padding:12px}
  .oabg-root .tel-kpi-v{font-size:21px}
  .oabg-root .tel-hide-s{display:none}
  .oabg-root .tel-dates{width:100%}
  .oabg-root .tel-dates .oa-in{flex:1;width:auto}
  .oabg-root .tel-srch.sm{width:100%}
  .oabg-root .tel-dseg{width:100%;overflow-x:auto}
  .oabg-root .tel-mi-a .tel-cbtn span{display:none}
  .oabg-root .tel-topbtn{margin-right:4px}
  .oabg-root.tel-panel{top:auto;bottom:0;right:0;left:0;width:100%;max-width:none;max-height:92vh;border-radius:22px 22px 0 0;transform:translateY(30px)}
  .oabg-root.tel-pops{right:12px;left:12px;bottom:12px;width:auto}
  .oabg-root .tel-wiz .oa-card-b{padding:6px 14px}
  .oabg-root .tel-url{flex-direction:column}
  .oabg-root .tel-log-t{min-width:0}
}
@media (prefers-reduced-motion:reduce){
  .oabg-root .tel-ring:before,.oabg-root .tel-ring:after,.oabg-root .tel-st.ring .tel-st-ic,.oabg-root .tel-pop:before,.oabg-root .tel-topdot{animation:none}
}
