:root{--bg:#f3f5f7;--card-bg:#fff;--text:#1f2937;--muted:#6b7280;--border:#e5e7eb;--accent:#0b7f99;--accent-soft:#e8f5f8;--error:#b42318;--shadow:0 2px 10px #0000000f}:root[data-theme=dark]{--bg:#0f172a;--card-bg:#111827;--text:#f3f4f6;--muted:#9ca3af;--border:#374151;--accent:#4cc9f0;--accent-soft:#122531;--error:#fda29b;--shadow:0 6px 20px #00000059}*,:before,:after{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.app-shell{background:var(--bg);width:100%;height:100%;overflow:hidden}.widget-card{background:var(--card-bg);border:1px solid var(--border);width:100%;height:100%;min-height:220px;box-shadow:var(--shadow);flex-direction:column;display:flex;overflow:hidden}.widget-toolbar{border-bottom:1px solid var(--border);justify-content:space-between;gap:12px;padding:16px 16px 8px;display:flex}.toolbar-left{flex-direction:column;gap:4px;min-width:0;display:flex}.widget-title-row{align-items:center;gap:8px;display:flex}.phone-icon{font-size:16px;line-height:1}.widget-title{color:var(--text);font-size:20px;font-weight:700}.tabs{background:var(--card-bg);border-bottom:1px solid var(--border);gap:8px;padding:12px 16px 0;display:flex}.tab-button{border:1px solid var(--border);background:var(--accent);color:#fff;cursor:pointer;border-bottom:none;border-radius:10px 10px 0 0;padding:8px 14px;font-size:14px;font-weight:600}.tab-button:hover{background:color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 30%)}.tab-button.active{background:var(--accent-soft);color:var(--text);border-color:var(--accent)}.widget-subtitle{color:var(--muted);font-size:13px}.toolbar-right{flex-wrap:wrap;justify-content:flex-end;align-items:flex-start;gap:8px;display:flex}.agent-select{border:1px solid var(--border);background:var(--card-bg);min-width:150px;max-width:220px;height:38px;color:var(--text);border-radius:10px;outline:none;padding:0 12px;font-size:14px}.agent-select:focus{border-color:var(--accent)}.theme-toggle{border:1px solid var(--border);background:var(--card-bg);min-width:44px;height:38px;color:var(--text);cursor:pointer;border-radius:10px;font-size:18px}.theme-toggle:hover{background:var(--accent-soft)}.widget-body{flex:1;justify-content:center;align-items:center;min-height:0;padding:16px;transition:background-color .2s;display:flex;overflow:hidden}.widget-body.elevenlabs-page,.widget-body.genesys-page{background:var(--accent-soft)}.count-panel{flex-direction:column;align-items:center;gap:10px;display:flex}.count-value{color:var(--accent);letter-spacing:1px;font-size:clamp(56px,12vw,96px);font-weight:500;line-height:1}.count-caption{color:var(--muted);text-align:center;font-size:14px}.status-message{color:var(--muted);text-align:center;font-size:18px}.status-message.error{color:var(--error)}.error-details{opacity:.9;margin-top:8px;font-size:13px}.widget-footer{border-top:1px solid var(--border);background:0 0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px 16px;display:flex}.footer-left,.footer-right{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.footer-label{color:var(--muted);font-size:12px}.footer-value{color:var(--text);font-size:12px}.refreshing{color:var(--accent);font-size:12px}.static-agent{cursor:default;-webkit-user-select:none;user-select:none}@media (width<=640px){.widget-toolbar{flex-direction:column;align-items:stretch}.toolbar-right{justify-content:flex-start}.agent-select{width:100%;max-width:none}.widget-footer{flex-direction:column;align-items:flex-start}}
