*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--brand: #1a6fb4;--brand-light: #e8f1fa;--brand-dark: #145a93;--text: #1e293b;--text-muted: #64748b;--border: #e2e8f0;--surface: #ffffff;--bg: #f8fafc;--radius: 8px;--sidebar-w: 240px}html,body{height:100%;font-family:Inter,sans-serif;font-size:14px;color:var(--text);background:var(--bg)}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}.app-layout{display:flex;height:100vh;overflow:hidden}.sidebar{width:var(--sidebar-w);background:var(--text);color:#e2e8f0;display:flex;flex-direction:column;flex-shrink:0;overflow-y:auto}.main-content{flex:1;overflow-y:auto;background:var(--bg)}.sidebar-header{display:flex;align-items:center;gap:10px;padding:20px 16px 16px;border-bottom:1px solid #334155;flex-shrink:0}.sidebar-logo{width:32px;height:32px;background:var(--brand);border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;color:#fff;flex-shrink:0}.sidebar-brand{font-weight:700;font-size:16px;color:#fff}.account-switcher{padding:8px;border-bottom:1px solid #334155;flex-shrink:0}.account-btn{width:100%;display:flex;align-items:center;gap:8px;background:#334155;border:none;border-radius:var(--radius);padding:8px 10px;cursor:pointer;color:#e2e8f0;text-align:left}.account-btn:hover{background:#3f546b}.account-avatar{width:28px;height:28px;background:var(--brand);border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff;flex-shrink:0}.account-avatar.sm{width:22px;height:22px;font-size:10px}.account-info{flex:1;min-width:0}.account-name{font-size:13px;font-weight:600;color:#f1f5f9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-role{font-size:11px;color:#94a3b8;text-transform:capitalize}.chevron{font-size:10px;color:#94a3b8}.account-menu{background:#1e293b;border-radius:var(--radius);margin-top:4px;overflow:hidden}.account-menu-item{width:100%;display:flex;align-items:center;gap:8px;padding:8px 10px;background:none;border:none;cursor:pointer;color:#cbd5e1;font-size:13px;text-align:left}.account-menu-item:hover{background:#334155}.account-menu-item.active{color:var(--brand)}.sidebar-nav{flex:1;min-height:0;padding:8px;overflow-y:auto}.nav-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:var(--radius);color:#94a3b8;font-size:13px;font-weight:500;text-decoration:none;transition:all .15s;margin-bottom:4px}.nav-item:hover{background:#334155;color:#f1f5f9;text-decoration:none}.nav-item.active{background:var(--brand);color:#fff}.nav-icon{width:18px;text-align:center;font-size:15px}.sidebar-footer{display:flex;align-items:center;gap:8px;padding:12px 10px;border-top:1px solid #334155;flex-shrink:0}.user-avatar{width:32px;height:32px;background:#475569;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff;flex-shrink:0}.user-details{flex:1;min-width:0}.user-name{font-size:12px;font-weight:600;color:#f1f5f9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-email{font-size:11px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.badge-master{display:inline-block;font-size:10px;background:#7c3aed22;color:#a78bfa;border:1px solid #7c3aed55;border-radius:4px;padding:1px 5px}.btn-logout{background:none;border:none;cursor:pointer;color:#64748b;font-size:18px;padding:4px;border-radius:4px}.btn-logout:hover{color:#f1f5f9;background:#334155}.page{padding:28px 32px;max-width:1200px}.page-container{padding:28px 32px;max-width:1300px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px;gap:16px}.page-title{font-size:22px;font-weight:700;color:var(--text)}.page-subtitle{font-size:13px;color:var(--text-muted);margin-top:2px}.dashboard-card{background:var(--surface);border:1.5px solid var(--border);border-radius:12px;padding:18px 20px}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1e293b,#0f172a)}.login-card{background:#fff;border-radius:16px;padding:40px 36px;width:100%;max-width:420px;box-shadow:0 20px 60px #0000004d}.login-header{text-align:center;margin-bottom:28px}.login-logo{width:52px;height:52px;background:var(--brand);border-radius:14px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;color:#fff;margin:0 auto 12px}.login-header h1{font-size:22px;font-weight:700}.login-header p{color:var(--text-muted);font-size:14px;margin-top:4px}.login-form{display:flex;flex-direction:column;gap:16px}.form-group{display:flex;flex-direction:column;gap:6px}.form-group label{font-size:13px;font-weight:500;color:var(--text)}.form-group input,.form-group select,.form-group textarea{padding:9px 12px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:14px;color:var(--text);background:#fff;outline:none;transition:border-color .15s}.form-group input:focus,.form-group select:focus{border-color:var(--brand)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .form-group:last-child{grid-column:1 / -1}.form-actions{display:flex;gap:8px;justify-content:flex-end;grid-column:1 / -1}.btn{padding:8px 16px;border-radius:var(--radius);font-size:13px;font-weight:600;cursor:pointer;border:none;transition:all .15s;display:inline-flex;align-items:center;gap:6px}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:var(--brand);color:#fff}.btn-primary:hover:not(:disabled){background:var(--brand-dark)}.btn-ghost{background:transparent;color:var(--text-muted);border:1.5px solid var(--border)}.btn-ghost:hover{background:var(--bg)}.btn-full{width:100%;justify-content:center;padding:11px}.alert{padding:10px 14px;border-radius:var(--radius);font-size:13px;margin-bottom:16px}.alert-error{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}.stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;margin-bottom:28px}.stat-card{background:var(--surface);border:1.5px solid var(--border);border-radius:12px;padding:20px;position:relative;overflow:hidden}.stat-card:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--accent, var(--brand))}.stat-icon{font-size:22px;margin-bottom:8px}.stat-value{font-size:28px;font-weight:800;color:var(--text);line-height:1}.stat-label{font-size:12px;color:var(--text-muted);margin-top:4px}.stat-card.skeleton{height:110px;background:linear-gradient(90deg,#f1f5f9,#e2e8f0,#f1f5f9);background-size:200%;animation:shimmer 1.5s infinite;border:none}@keyframes shimmer{0%{background-position:-200%}to{background-position:200%}}.dashboard-info{display:grid;grid-template-columns:1fr 1fr;gap:16px}.info-card{background:var(--surface);border:1.5px solid var(--border);border-radius:12px;padding:20px}.info-card h3{font-size:14px;font-weight:600;margin-bottom:12px}.permissions-list{display:flex;flex-direction:column;gap:6px;margin-top:12px}.perm-row{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text)}.perm-dot{font-size:12px;font-weight:700}.perm-dot.yes{color:#10b981}.perm-dot.no{color:#e2e8f0}.role-badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600;text-transform:capitalize}.role-badge[data-role=admin]{background:#eff6ff;color:#1d4ed8}.role-badge[data-role=manager]{background:#f5f3ff;color:#7c3aed}.role-badge[data-role=agent]{background:#ecfdf5;color:#059669}.role-badge[data-role=viewer]{background:#f8fafc;color:#64748b}.quick-links{list-style:none;display:flex;flex-direction:column;gap:8px}.quick-links a{font-size:13px;color:var(--brand)}.table-wrapper{background:var(--surface);border:1.5px solid var(--border);border-radius:12px;overflow:hidden}.data-table{width:100%;border-collapse:collapse;font-size:13px}.data-table th{padding:11px 16px;background:var(--bg);font-weight:600;color:var(--text-muted);text-align:left;border-bottom:1.5px solid var(--border)}.data-table td{padding:11px 16px;border-bottom:1px solid #f1f5f9}.data-table tr:last-child td{border-bottom:none}.data-table tr:hover td{background:#f8fafc}.font-medium{font-weight:600}.badge{display:inline-block;padding:2px 8px;border-radius:20px;font-size:11px;font-weight:600;text-transform:capitalize}.badge-lead{background:#f0fdf4;color:#15803d}.badge-prospect{background:#eff6ff;color:#1d4ed8}.badge-client{background:#f5f3ff;color:#7c3aed}.badge-inactive{background:#f8fafc;color:#64748b}.badge-green{background:#dcfce7;color:#166534}.badge-gray{background:#f1f5f9;color:#64748b}.badge-blue{background:#dbeafe;color:#1d4ed8}.badge-outline{background:transparent;border:1px solid var(--border);color:var(--text-muted)}.search-bar{margin-bottom:16px}.search-input{width:100%;max-width:380px;padding:9px 12px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:14px;outline:none}.search-input:focus{border-color:var(--brand)}.pipelines-list{display:flex;flex-direction:column;gap:12px}.pipeline-card{background:var(--surface);border:1.5px solid var(--border);border-radius:12px;padding:16px 20px}.pipeline-header{display:flex;align-items:center;gap:10px;margin-bottom:6px}.pipeline-header h3{font-size:15px;font-weight:600}.pipeline-desc{font-size:13px;color:var(--text-muted);margin-bottom:10px}.stages-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.stage-chip{font-size:12px;padding:4px 10px;border-radius:20px;border:1px solid;display:flex;align-items:center;gap:5px}.profiles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.profile-card{background:var(--surface);border:1.5px solid var(--border);border-radius:12px;padding:16px;display:flex;align-items:center;gap:12px}.profile-card.inactive{opacity:.6}.profile-icon{font-size:24px}.profile-info{flex:1;min-width:0}.profile-platform{font-size:11px;text-transform:uppercase;font-weight:700;color:var(--text-muted)}.profile-name{font-size:14px;font-weight:600}.profile-expiry{font-size:11px;color:var(--text-muted)}.profile-expiry.expired{color:#dc2626}.profile-status{font-size:11px;font-weight:600}.profile-status.active{color:#10b981}.profile-status.inactive{color:#94a3b8}.settings-sections{display:flex;flex-direction:column;gap:24px}.settings-section{background:var(--surface);border:1.5px solid var(--border);border-radius:12px;padding:20px 24px}.settings-section h2{font-size:15px;font-weight:700;margin-bottom:16px}.info-row{display:flex;gap:16px;align-items:center;padding:8px 0;border-bottom:1px solid var(--border);font-size:13px}.info-row:last-child{border-bottom:none}.info-row label{min-width:120px;font-weight:600;color:var(--text-muted)}.tabs{display:flex;gap:4px;margin-bottom:20px;border-bottom:2px solid var(--border)}.tab{padding:8px 16px;background:none;border:none;cursor:pointer;font-size:13px;font-weight:600;color:var(--text-muted);border-bottom:2px solid transparent;margin-bottom:-2px}.tab.active{color:var(--brand);border-bottom-color:var(--brand)}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:50}.modal{background:var(--surface);border-radius:16px;padding:28px 32px;width:100%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0003}.modal h2{font-size:18px;font-weight:700;margin-bottom:20px}.loading-state{padding:40px;text-align:center;color:var(--text-muted)}.empty-state{padding:60px 40px;text-align:center;color:var(--text-muted);background:var(--surface);border:1.5px dashed var(--border);border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:12px}.text-muted{color:var(--text-muted)}.spinner{width:36px;height:36px;border:3px solid var(--border);border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}code{background:#f1f5f9;padding:2px 6px;border-radius:4px;font-size:12px}@media (max-width: 768px){:root{--sidebar-w: 200px}.page{padding:16px}.dashboard-info,.form-grid{grid-template-columns:1fr}.form-grid .form-group:last-child{grid-column:auto}}.contacts-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px}.filter-select{padding:8px 10px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:13px;background:#fff;color:var(--text);outline:none;cursor:pointer}.filter-select:focus{border-color:var(--brand)}.toolbar-divider{width:1px;height:24px;background:var(--border);margin:0 4px}.btn-sm{padding:6px 12px;font-size:12px}.btn-danger{background:#fef2f2;color:#dc2626;border:1.5px solid #fecaca}.btn-danger:hover{background:#fee2e2}.stage-dot{display:inline-block;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:600;color:#fff;white-space:nowrap}.contact-name-btn{background:none;border:none;cursor:pointer;font-weight:600;color:var(--brand);font-size:13px;padding:0;text-align:left}.contact-name-btn:hover{text-decoration:underline}.contact-sub{font-size:11px;color:var(--text-muted);margin-top:2px}.tag-list{display:flex;flex-wrap:wrap;gap:4px}.tag-chip-sm{font-size:10px;padding:2px 6px;border-radius:10px;background:#f1f5f9;color:#475569;border:1px solid #e2e8f0}.row-actions{display:flex;gap:4px}.btn-icon{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:none;border:1px solid var(--border);border-radius:6px;cursor:pointer;font-size:12px;color:var(--text-muted)}.btn-icon:hover{background:var(--bg)}.btn-icon-danger:hover{background:#fef2f2;color:#dc2626;border-color:#fecaca}.row-selected td{background:#eff6ff!important}.import-result{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;background:#ecfdf5;border:1.5px solid #6ee7b7;border-radius:var(--radius);padding:10px 14px;font-size:13px;margin-bottom:16px}.import-details{font-size:12px;color:var(--text-muted);margin-top:6px;width:100%}.btn-link{background:none;border:none;cursor:pointer;color:var(--brand);font-size:13px;text-decoration:underline;padding:0}.dup-row{display:flex;gap:16px;align-items:center;padding:8px 0;border-bottom:1px solid var(--border);font-size:13px}.dup-field{font-weight:600;min-width:160px}.dup-names{flex:1;color:var(--text-muted)}.dup-count{font-size:12px;color:#dc2626;font-weight:600}.badge-yellow{background:#fef9c3;color:#854d0e}.badge-red{background:#fef2f2;color:#dc2626}.modal-lg{max-width:680px}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.modal-header h2{font-size:18px;font-weight:700}.modal-close{background:none;border:none;cursor:pointer;font-size:18px;color:var(--text-muted);line-height:1;padding:4px}.modal-close:hover{color:var(--text)}.modal-footer{display:flex;justify-content:flex-end;gap:8px;padding-top:16px;border-top:1px solid var(--border);margin-top:8px}.contact-form{display:flex;flex-direction:column;gap:0}.form-section{padding:16px 0;border-bottom:1px solid var(--border)}.form-section:last-of-type{border-bottom:none}.form-section-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin-bottom:12px;display:flex;align-items:center;gap:12px}.form-row-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-row-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.form-group textarea{padding:9px 12px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:14px;color:var(--text);resize:vertical;font-family:inherit;outline:none}.form-group textarea:focus{border-color:var(--brand)}.form-hint{font-size:12px;color:var(--text-muted)}.btn-add-inline{background:none;border:1px dashed var(--border);border-radius:4px;cursor:pointer;font-size:11px;color:var(--brand);padding:2px 8px;font-weight:600;margin-left:auto}.btn-add-inline:hover{background:var(--brand-light)}.children-row{display:grid;grid-template-columns:1fr 80px auto;gap:8px;align-items:end;margin-bottom:8px}.form-group-sm input{padding:9px 8px}.btn-remove{width:32px;height:37px;display:flex;align-items:center;justify-content:center;background:#fef2f2;border:1px solid #fecaca;border-radius:var(--radius);cursor:pointer;color:#dc2626;font-size:13px}.tag-picker{display:flex;flex-wrap:wrap;gap:6px}.tag-pill{padding:4px 12px;border-radius:20px;font-size:12px;font-weight:500;border:1.5px solid var(--border);background:#fff;cursor:pointer;color:var(--text-muted);transition:all .15s;text-transform:capitalize}.tag-pill:hover{border-color:var(--brand);color:var(--brand)}.tag-pill.selected{background:var(--brand);border-color:var(--brand);color:#fff}.alert-warn{background:#fffbeb;color:#92400e;border:1px solid #fde68a;padding:10px 14px;border-radius:var(--radius);font-size:13px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}.pipeline-page{display:flex;flex-direction:column;height:100vh;overflow:hidden}.pipeline-header-bar{display:flex;align-items:center;justify-content:space-between;padding:24px 28px 16px;flex-shrink:0;gap:16px}.search-input-sm{max-width:200px}.kanban-board{display:flex;gap:12px;overflow-x:auto;padding:0 28px 24px;flex:1;align-items:flex-start}.kanban-board::-webkit-scrollbar{height:6px}.kanban-board::-webkit-scrollbar-track{background:transparent}.kanban-board::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}.kanban-col{flex:0 0 230px;background:var(--bg);border-radius:12px;border:1.5px solid var(--border);display:flex;flex-direction:column;max-height:calc(100vh - 140px);transition:border-color .15s,background .15s}.kanban-col.drag-over{border-color:var(--brand);background:var(--brand-light)}.kanban-col-header{padding:12px 14px 10px;border-top:3px solid transparent;border-radius:12px 12px 0 0;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.kanban-col-title{font-size:13px;font-weight:700;display:flex;align-items:center;gap:7px}.kanban-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.kanban-count{font-size:12px;font-weight:700;background:var(--border);color:var(--text-muted);padding:2px 7px;border-radius:10px}.kanban-cards{flex:1;overflow-y:auto;padding:4px 8px;display:flex;flex-direction:column;gap:6px}.kanban-cards::-webkit-scrollbar{width:4px}.kanban-cards::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}.kanban-card{background:#fff;border:1.5px solid var(--border);border-radius:10px;padding:10px 12px;cursor:grab;transition:box-shadow .15s,border-color .15s;position:relative}.kanban-card:hover{box-shadow:0 2px 8px #0000001a;border-color:#cbd5e1}.kanban-card.dragging{opacity:.5;cursor:grabbing}.kanban-card-name{font-size:13px;font-weight:600;margin-bottom:4px}.kanban-card-loan{font-size:14px;font-weight:700;color:#059669;margin-bottom:5px}.kanban-card-meta{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:4px}.kanban-meta-chip{font-size:10px;padding:1px 6px;border-radius:10px;background:#f1f5f9;color:#64748b;border:1px solid #e2e8f0}.kanban-meta-chip.policy-active{background:#dcfce7;color:#166534}.kanban-meta-chip.policy-pending{background:#fef9c3;color:#854d0e}.kanban-meta-chip.policy-lapsed{background:#fef2f2;color:#dc2626}.kanban-meta-chip.tag{background:#eff6ff;color:#1d4ed8}.kanban-card-phone{font-size:11px;color:var(--text-muted);margin-top:3px}.kanban-card-notes{font-size:11px;color:var(--text-muted);margin-top:4px;font-style:italic;line-height:1.4}.kanban-card-actions{position:absolute;top:6px;right:8px;display:none}.kanban-card:hover .kanban-card-actions{display:flex}.kanban-action-btn{width:20px;height:20px;border-radius:4px;font-size:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;border:none;background:none}.kanban-action-btn.danger{color:#dc2626}.kanban-action-btn.danger:hover{background:#fef2f2}.kanban-empty{padding:20px;text-align:center;font-size:12px;color:var(--border);border:2px dashed var(--border);border-radius:8px;margin:4px 0}.kanban-add-btn{margin:4px 8px 8px;padding:7px 12px;background:none;border:1.5px dashed var(--border);border-radius:8px;font-size:12px;color:var(--text-muted);cursor:pointer;text-align:center;flex-shrink:0}.kanban-add-btn:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-light)}.rc-fab{position:fixed;bottom:24px;right:24px;z-index:1200;width:56px;height:56px;border-radius:50%;background:var(--brand);color:#fff;border:none;font-size:22px;cursor:pointer;box-shadow:0 4px 16px #1a6fb473;display:flex;align-items:center;justify-content:center;transition:background .2s,transform .15s}.rc-fab:hover{background:#1560a0;transform:scale(1.07)}.rc-fab.active{background:#10b981}.rc-fab-badge{position:absolute;top:-4px;right:-4px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;border-radius:999px;padding:2px 5px;line-height:1.2;border:2px solid #fff}.rc-widget-container{position:fixed;bottom:90px;right:24px;z-index:1100;width:300px;height:520px;border-radius:16px;overflow:hidden;box-shadow:0 8px 40px #00000040;background:#fff;border:1px solid var(--border);transition:opacity .2s,transform .2s}.rc-widget-container.hidden{opacity:0;pointer-events:none;transform:translateY(12px)}.rc-widget-container iframe{width:100%;height:100%;border:none}.profile-header{display:flex;align-items:center;gap:16px;margin-bottom:28px}.profile-avatar{width:56px;height:56px;border-radius:50%;background:var(--brand-light);color:var(--brand);display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;flex-shrink:0}.profile-meta{flex:1}.profile-name{font-size:22px;font-weight:700;color:var(--text)}.profile-sub{font-size:13px;color:var(--text-muted);margin-top:2px}.profile-actions{display:flex;gap:8px}.btn-back{background:none;border:1px solid var(--border);border-radius:8px;padding:6px 14px;font-size:13px;cursor:pointer;color:var(--text-muted);display:inline-flex;align-items:center;gap:6px}.btn-back:hover{border-color:var(--brand);color:var(--brand)}.profile-tabs{display:flex;gap:0;border-bottom:2px solid var(--border);margin-bottom:24px}.profile-tab{padding:10px 20px;font-size:14px;font-weight:500;cursor:pointer;border:none;background:none;color:var(--text-muted);border-bottom:2px solid transparent;margin-bottom:-2px;transition:color .15s,border-color .15s}.profile-tab.active{color:var(--brand);border-bottom-color:var(--brand)}.profile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.profile-section{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px}.profile-section-title{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);margin-bottom:12px}.profile-field{display:flex;flex-direction:column;gap:2px;margin-bottom:10px}.profile-field:last-child{margin-bottom:0}.profile-label{font-size:11px;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.04em}.profile-value{font-size:14px;color:var(--text)}.profile-value.empty{color:var(--text-muted);font-style:italic}.profile-notes{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px;white-space:pre-wrap;font-size:14px;color:var(--text);line-height:1.6;min-height:60px}.contact-section{margin-top:8px}.contact-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.contact-section-header h3{font-size:16px;font-weight:700}.call-list{display:flex;flex-direction:column;gap:10px}.call-item{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:12px 14px}.call-item-body{display:flex;align-items:flex-start;gap:12px}.call-direction{width:28px;height:28px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:14px}.call-direction.inbound{background:#dcfce7;color:#15803d}.call-direction.outbound{background:#dbeafe;color:#1d4ed8}.call-meta{flex:1}.call-time,.call-duration{font-size:12px;color:var(--text-muted)}.call-agent{font-size:12px;color:var(--text-muted);margin-top:2px}.call-notes{font-size:13px;color:var(--text);margin-top:6px;font-style:italic}.call-disp{font-size:11px;font-weight:600;padding:3px 8px;border-radius:999px;text-transform:uppercase;letter-spacing:.04em}.call-disp.no_answer{background:#f1f5f9;color:#64748b}.call-disp.left_voicemail{background:#ede9fe;color:#6d28d9}.call-disp.callback{background:#fef3c7;color:#92400e}.call-disp.not_interested{background:#fee2e2;color:#b91c1c}.call-disp.enrolled{background:#dcfce7;color:#15803d}.call-disp.busy{background:#fce7f3;color:#9d174d}.call-disp.transferred{background:#dbeafe;color:#1d4ed8}.call-recording{margin-top:8px}.call-recording audio{height:28px;width:100%}.loading-state-sm{text-align:center;padding:32px 0;color:var(--text-muted);font-size:14px}.empty-section{text-align:center;padding:40px 0;color:var(--text-muted);font-size:14px}.sms-thread{display:flex;flex-direction:column;height:500px;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface)}.sms-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px}.sms-bubble-wrap{display:flex;flex-direction:column}.sms-bubble-wrap.outbound{align-items:flex-end}.sms-bubble-wrap.inbound{align-items:flex-start}.sms-bubble{max-width:75%;padding:9px 13px;border-radius:14px;font-size:14px;line-height:1.5}.sms-bubble-wrap.outbound .sms-bubble{background:var(--brand);color:#fff;border-bottom-right-radius:4px}.sms-bubble-wrap.inbound .sms-bubble{background:#f1f5f9;color:var(--text);border-bottom-left-radius:4px}.sms-bubble-time{font-size:11px;color:var(--text-muted);margin-top:3px;padding:0 2px}.sms-compose{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--border);background:#fff;align-items:flex-end}.sms-input{flex:1;border:1px solid var(--border);border-radius:10px;padding:8px 12px;font-size:14px;resize:none;min-height:38px;max-height:100px;font-family:inherit;line-height:1.5}.sms-input:focus{outline:none;border-color:var(--brand)}.disp-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;z-index:2000;display:flex;align-items:center;justify-content:center;padding:16px}.disp-modal{background:#fff;border-radius:16px;padding:28px;width:100%;max-width:420px;box-shadow:0 20px 60px #00000040}.disp-modal h2{font-size:18px;font-weight:700;margin-bottom:6px}.disp-contact-name{font-size:14px;color:var(--text-muted);margin-bottom:20px}.disp-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.disp-btn{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 10px;border-radius:10px;border:2px solid var(--border);background:var(--surface);cursor:pointer;font-size:13px;font-weight:600;color:var(--text);transition:border-color .15s,background .15s}.disp-btn:hover{border-color:var(--brand);background:var(--brand-light)}.disp-btn.selected{border-color:var(--brand);background:var(--brand-light);color:var(--brand)}.disp-icon{font-size:22px}.disp-notes{width:100%;margin-bottom:16px}.disp-notes textarea{width:100%;border:1px solid var(--border);border-radius:8px;padding:9px 12px;font-size:14px;font-family:inherit;resize:vertical;min-height:72px}.disp-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center}.disp-vm-btn{background:none;border:1px solid var(--border);border-radius:8px;padding:8px 14px;font-size:13px;cursor:pointer;color:var(--text-muted);margin-right:auto}.disp-vm-btn:hover{border-color:var(--brand);color:var(--brand)}.dash-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin-bottom:24px}.dash-stat{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:4px}.dash-stat-value{font-size:28px;font-weight:700;color:var(--text)}.dash-stat-label{font-size:12px;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em}.dash-section{margin-bottom:28px}.dash-section h2{font-size:16px;font-weight:700;margin-bottom:14px}.dash-call-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:14px 16px;display:flex;align-items:center;gap:14px;margin-bottom:8px}.status-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.status-dot.ringing{background:#f59e0b;animation:pulse-amber 1s infinite}.status-dot.active{background:#10b981;animation:pulse-green 1s infinite}.status-dot.unknown{background:#94a3b8}@keyframes pulse-amber{0%,to{box-shadow:0 0 #f59e0b80}50%{box-shadow:0 0 0 5px #f59e0b00}}@keyframes pulse-green{0%,to{box-shadow:0 0 #10b98180}50%{box-shadow:0 0 0 5px #10b98100}}.dash-call-info{flex:1}.dash-call-contact{font-size:14px;font-weight:600}.dash-call-sub{font-size:12px;color:var(--text-muted);margin-top:2px}.dash-call-duration{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--brand)}.supervise-panel{background:var(--brand-light);border:1px solid var(--brand);border-radius:10px;padding:16px;margin-top:10px;display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.supervise-panel label{font-size:12px;font-weight:600;color:var(--text-muted);display:block;margin-bottom:4px}.supervise-panel select,.supervise-panel input{padding:7px 10px;border:1px solid var(--border);border-radius:8px;font-size:13px;background:#fff}.pd-setup{max-width:760px}.pd-setup-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:16px;flex-wrap:wrap}.pd-setup-toolbar label{font-size:13px;color:var(--text-muted);font-weight:600}.pd-setup-toolbar input[type=number]{width:64px;padding:6px 8px;border:1px solid var(--border);border-radius:8px;font-size:13px}.pd-contact-table{width:100%;border-collapse:collapse;font-size:14px}.pd-contact-table th{text-align:left;padding:8px 12px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);border-bottom:2px solid var(--border)}.pd-contact-table td{padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:middle}.pd-contact-table tr:hover td{background:var(--brand-light)}.pd-contact-table tr.no-phone{opacity:.45}.pd-session-card{background:var(--brand-light);border:1px solid var(--brand);border-radius:14px;padding:24px;max-width:520px}.pd-session-title{font-size:18px;font-weight:700;margin-bottom:16px}.pd-progress{margin-bottom:20px}.pd-progress-label{display:flex;justify-content:space-between;font-size:13px;color:var(--text-muted);margin-bottom:6px}.pd-progress-bar{height:6px;background:#e2e8f0;border-radius:999px;overflow:hidden}.pd-progress-fill{height:100%;background:var(--brand);border-radius:999px;transition:width .4s}.pd-current{background:#fff;border:1px solid var(--border);border-radius:10px;padding:14px;margin-bottom:16px}.pd-current-name{font-size:16px;font-weight:700}.pd-current-phone{font-size:14px;color:var(--text-muted);margin-top:2px}.pd-live-badge{display:inline-block;background:#10b981;color:#fff;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;margin-top:8px;animation:pulse-green 1.4s infinite}.pd-actions{display:flex;gap:10px}.child-row{display:flex;gap:8px;align-items:center;margin-bottom:8px}.child-row input{flex:1}.child-row input[type=number]{width:72px;flex:none}.child-row .btn-icon{flex-shrink:0}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-sm{font-size:13px}.btn-link{background:none;border:none;color:var(--brand);cursor:pointer;font-size:13px;padding:0;text-decoration:underline}.modal-lg{max-width:560px}.post-type-grid{display:flex;gap:8px;margin-top:4px}.post-type-btn{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;border-radius:10px;border:2px solid var(--border);background:var(--surface);cursor:pointer;font-size:13px;font-weight:600;color:var(--text);transition:border-color .15s,background .15s}.post-type-btn small{font-weight:400;font-size:11px;color:var(--text-muted)}.post-type-btn:hover{border-color:var(--brand);background:var(--brand-light)}.post-type-btn.selected{border-color:var(--brand);background:var(--brand-light);color:var(--brand)}.publish-mode-row{display:flex;gap:8px;margin-top:4px}.publish-mode-btn{flex:1;padding:9px 8px;border-radius:8px;border:2px solid var(--border);background:var(--surface);cursor:pointer;font-size:13px;font-weight:600;color:var(--text);transition:border-color .15s,background .15s}.publish-mode-btn:hover{border-color:var(--brand);background:var(--brand-light)}.publish-mode-btn.selected{border-color:var(--brand);background:var(--brand-light);color:var(--brand)}.sched-row{display:flex;gap:12px;margin-top:10px}.media-preview-row{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}.form-hint{font-size:11px;color:var(--text-muted)}.form-error{background:#fee2e2;color:#b91c1c;border-radius:8px;padding:8px 12px;font-size:13px;margin-top:4px}.fb-empty{display:flex;flex-direction:column;align-items:center;gap:12px;padding:64px 0;text-align:center}.fb-empty-icon{font-size:48px}.fb-empty h3{font-size:18px;font-weight:700}.fb-empty p{color:var(--text-muted);max-width:360px}.fb-pages-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px}.fb-page-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:12px}.fb-page-header{display:flex;align-items:center;gap:12px}.fb-page-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0}.fb-page-avatar-placeholder{background:#1877f2;color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;border-radius:50%}.fb-page-name{font-weight:700;font-size:15px}.fb-page-cat{font-size:12px;color:var(--text-muted);margin-top:2px}.fb-page-section{display:flex;flex-direction:column;gap:6px;border-top:1px solid var(--border);padding-top:10px}.fb-page-section-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.fb-lfurl-row{display:flex;gap:8px;align-items:center}.fb-lfurl-display{display:flex;align-items:center;gap:8px}.fb-lfurl-text{font-size:13px;color:var(--text);word-break:break-all;flex:1}.fb-forms-list{display:flex;flex-direction:column;gap:8px}.fb-form-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.fb-form-name{font-size:13px;font-weight:600}.fb-form-sub{font-size:11px;color:var(--text-muted)}.cal-wrapper{display:flex;flex-direction:column;gap:0}.cal-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap;gap:10px}.cal-nav{display:flex;align-items:center;gap:10px}.cal-month-label{font-size:18px;font-weight:700;min-width:180px;text-align:center}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr)}.cal-header-row{border-bottom:2px solid var(--border);margin-bottom:0}.cal-header-cell{text-align:center;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);padding:8px 4px}.cal-cell{min-height:100px;border:1px solid var(--border);border-top:none;border-left:none;padding:6px;display:flex;flex-direction:column;gap:4px}.cal-cell:nth-child(7n+1){border-left:1px solid var(--border)}.cal-cell:nth-last-child(-n+7){border-bottom:1px solid var(--border)}.cal-cell-empty{background:#f8fafc}.cal-cell-today{background:var(--brand-light)}.cal-day-num{font-size:13px;font-weight:700;color:var(--text-muted);align-self:flex-end;margin-bottom:2px}.cal-cell-today .cal-day-num{background:var(--brand);color:#fff;border-radius:50%;width:22px;height:22px;display:flex;align-items:center;justify-content:center;font-size:12px}.cal-post-pill{border-radius:4px;padding:3px 6px;font-size:11px;cursor:default;display:flex;align-items:center;gap:3px;overflow:hidden;position:relative}.cal-post-pill:hover .cal-post-actions{display:flex}.cal-post-type{flex-shrink:0;font-size:10px}.cal-post-msg{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}.cal-post-actions{display:none;position:absolute;right:2px;top:50%;transform:translateY(-50%);background:#ffffffe6;gap:2px;border-radius:4px}.cal-post-btn{background:none;border:none;padding:1px 4px;cursor:pointer;font-size:10px;color:var(--text-muted)}.cal-post-btn:hover{color:var(--brand)}.cal-post-btn-del:hover{color:#ef4444}.cal-legend{display:flex;gap:16px;margin-top:12px;flex-wrap:wrap}.cal-legend-item{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--text-muted)}.cal-post-list-section{margin-top:28px}.cal-section-title{font-size:16px;font-weight:700;margin-bottom:14px}.inbox-wrapper{display:flex;flex-direction:column;gap:16px}.inbox-subtabs{display:flex;gap:0;align-items:center;border-bottom:2px solid var(--border)}.inbox-subtab{padding:9px 18px;font-size:14px;font-weight:500;cursor:pointer;border:none;background:none;color:var(--text-muted);border-bottom:2px solid transparent;margin-bottom:-2px;transition:color .15s,border-color .15s}.inbox-subtab.active{color:var(--brand);border-bottom-color:var(--brand)}.inbox-comment-list{display:flex;flex-direction:column;gap:10px}.inbox-comment{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}.inbox-comment.auto-dm-sent{border-left:3px solid #10b981}.inbox-comment-header{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.inbox-commenter{font-weight:700;font-size:14px}.inbox-page-tag{font-size:11px;background:#1877f220;color:#1877f2;border-radius:999px;padding:2px 8px;font-weight:600}.inbox-time{font-size:12px;color:var(--text-muted);margin-left:auto}.inbox-comment-msg{font-size:14px;color:var(--text);font-style:italic}.inbox-reply-row{display:flex;flex-direction:column;gap:6px}.inbox-dm-layout{display:grid;grid-template-columns:280px 1fr;gap:0;height:520px;border:1px solid var(--border);border-radius:12px;overflow:hidden}.inbox-conv-list{border-right:1px solid var(--border);overflow-y:auto;background:#fff}.inbox-conv-item{display:flex;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;border-bottom:1px solid var(--border);transition:background .1s}.inbox-conv-item:hover{background:var(--brand-light)}.inbox-conv-item.active{background:var(--brand-light);border-left:3px solid var(--brand)}.inbox-conv-avatar{width:36px;height:36px;border-radius:50%;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;flex-shrink:0}.inbox-conv-info{flex:1;overflow:hidden}.inbox-conv-name{font-size:13px;font-weight:700}.inbox-conv-preview{font-size:12px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inbox-unread-badge{background:var(--brand);color:#fff;border-radius:999px;font-size:11px;font-weight:700;padding:2px 6px;min-width:20px;text-align:center}.inbox-thread{display:flex;flex-direction:column}.inbox-thread-empty{flex:1;display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:14px}.inbox-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px}.analytics-wrapper{display:flex;flex-direction:column;gap:0}.btn-ig{background:linear-gradient(135deg,#e1306c,#f77737,#fcaf45);color:#fff;border:none;border-radius:8px;padding:9px 18px;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .15s}.btn-ig:hover{opacity:.88}.btn-ig:disabled{opacity:.5;cursor:not-allowed}.btn-ig.btn-sm{padding:6px 12px;font-size:13px}.ig-accounts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}.ig-account-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px}.ig-account-header{display:flex;align-items:center;gap:12px}.ig-account-avatar{width:52px;height:52px;border-radius:50%;border:2px solid #e1306c;object-fit:cover;flex-shrink:0}.ig-avatar-placeholder{background:linear-gradient(135deg,#e1306c,#f77737);display:flex;align-items:center;justify-content:center;font-size:22px}.ig-account-username{font-weight:700;font-size:15px}.ig-account-stats{font-size:12px;color:var(--text-muted);display:flex;gap:6px;margin-top:2px}.ig-conv-avatar{background:linear-gradient(135deg,#e1306c,#f77737);color:#fff}.ig-add-hashtag-form{display:flex;gap:8px;margin-bottom:6px}.ig-hashtag-list{display:flex;flex-direction:column;gap:8px}.ig-hashtag-row{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:12px 14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ig-hashtag-tag{font-weight:700;font-size:14px;color:#e1306c;min-width:140px}.ig-hashtag-stats-row{display:flex;align-items:center;gap:12px;flex:1;flex-wrap:wrap}.ig-hashtag-stat{font-size:13px;color:var(--text-muted)}.ig-hashtag-stat strong{color:var(--text)}.ig-hashtag-actions{display:flex;align-items:center;gap:6px;margin-left:auto}.ig-hashtag-preview{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.ig-hashtag-chip{background:#e1306c18;color:#e1306c;border:1px solid #e1306c40;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:500}.empty-section{text-align:center;color:var(--text-muted);font-size:14px;padding:32px 0;background:var(--surface);border-radius:10px;border:1px dashed var(--border)}.cal-section-title{font-size:15px;font-weight:700;margin:24px 0 12px}.cal-post-list-section{margin-top:16px}.loading-state-sm{color:var(--text-muted);font-size:14px;padding:16px 0}.btn-tt{background:#010101;color:#fff;border:none;border-radius:8px;padding:9px 18px;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s}.btn-tt:hover{background:#2d2d2d}.btn-tt:disabled{opacity:.5;cursor:not-allowed}.btn-tt.btn-sm{padding:6px 12px;font-size:13px}.tt-accounts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}.tt-account-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px}.tt-account-header{display:flex;align-items:flex-start;gap:12px}.tt-account-avatar{width:52px;height:52px;border-radius:50%;border:2px solid #010101;object-fit:cover;flex-shrink:0}.tt-avatar-placeholder{background:#010101;display:flex;align-items:center;justify-content:center;font-size:22px;color:#fff}.tt-account-name{font-weight:700;font-size:15px}.tt-account-bio{font-size:12px;color:var(--text-muted);margin-top:2px;line-height:1.4}.tt-account-stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--border);border-radius:8px;overflow:hidden}.tt-account-stat{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-right:1px solid var(--border)}.tt-account-stat:last-child{border-right:none}.tt-account-stat strong{font-size:14px;font-weight:700}.tt-account-stat span{font-size:11px;color:var(--text-muted)}.tt-privacy-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.tt-privacy-btn{border:2px solid var(--border);background:none;border-radius:8px;padding:8px 10px;font-size:13px;cursor:pointer;text-align:left;transition:border-color .15s,background .15s}.tt-privacy-btn.selected{border-color:#010101;background:#0101010a;font-weight:600}.tt-privacy-btn:hover:not(.selected){border-color:#94a3b8}.tt-toggles{display:flex;gap:20px;flex-wrap:wrap}.tt-toggle-item{display:flex;align-items:center;gap:6px;font-size:14px;cursor:pointer}.tt-toggle-item input[type=checkbox]{width:16px;height:16px;accent-color:#010101}.tt-comment-list{display:flex;flex-direction:column;gap:8px}.tt-comment{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:12px 16px;display:flex;flex-direction:column;gap:6px}.tt-comment-header{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tt-commenter{font-weight:700;font-size:14px}.tt-post-tag{font-size:11px;background:#01010110;color:#010101;border-radius:999px;padding:2px 8px;font-weight:500}.tt-comment-meta{font-size:12px;color:var(--text-muted)}.tt-comment-text{font-size:14px;color:var(--text);font-style:italic}.btn-tw{background:#1d9bf0;color:#fff;border:none;border-radius:8px;padding:9px 18px;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s}.btn-tw:hover{background:#1a8cd8}.btn-tw:disabled{opacity:.5;cursor:not-allowed}.btn-tw.btn-sm{padding:6px 12px;font-size:13px}.tw-accounts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.tw-account-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:10px}.tw-account-header{display:flex;align-items:flex-start;gap:10px}.tw-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid #1d9bf0;flex-shrink:0}.tw-avatar-placeholder{background:#1d9bf0;display:flex;align-items:center;justify-content:center;color:#fff;font-family:serif;font-weight:900;font-size:18px}.tw-display-name{font-size:15px;font-weight:700;display:flex;align-items:center;gap:4px}.tw-username{font-size:13px;color:var(--text-muted)}.tw-verified-badge{background:#1d9bf0;color:#fff;border-radius:50%;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:700}.tw-bio{font-size:13px;color:var(--text-muted);line-height:1.5;margin:0}.tw-stats-row{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--border);border-radius:8px;overflow:hidden}.tw-stat{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-right:1px solid var(--border)}.tw-stat:last-child{border-right:none}.tw-stat strong{font-size:13px;font-weight:700}.tw-stat span{font-size:11px;color:var(--text-muted)}.tw-thread-list{display:flex;flex-direction:column;gap:0}.tw-tweet-row{display:flex;gap:0;align-items:flex-start}.tw-thread-indicator{display:flex;flex-direction:column;align-items:center;padding:10px 8px 0 4px;flex-shrink:0;width:24px}.tw-thread-dot{width:10px;height:10px;border-radius:50%;background:#1d9bf0;flex-shrink:0}.tw-thread-line{width:2px;flex:1;background:#e2e8f0;margin-top:4px;min-height:24px}.tw-tweet-input-wrap{flex:1;display:flex;flex-direction:column;margin-bottom:8px}.tw-textarea{resize:vertical}.tw-textarea.tw-over-limit{border-color:#ef4444!important}.tw-char-row{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:4px}.tw-char-count{font-size:12px;color:var(--text-muted);font-weight:600}.tw-char-count.tw-warn{color:#f59e0b}.tw-char-count.tw-over{color:#ef4444}.tw-remove-btn{color:#ef4444;font-size:12px}.tw-add-btn{margin-top:4px;align-self:flex-start}.tw-mention-list{display:flex;flex-direction:column;gap:10px}.tw-mention{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;gap:8px;border-left:3px solid #1d9bf0;transition:opacity .15s}.tw-mention.tw-mention-read{border-left-color:var(--border);opacity:.75}.tw-mention-header{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tw-mention-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0}.tw-mention-avatar-ph{background:#1d9bf0;color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700}.tw-mention-author{display:flex;flex-direction:column}.tw-mention-name{font-size:13px;font-weight:700}.tw-mention-handle{font-size:12px;color:var(--text-muted)}.tw-mention-text{font-size:14px;color:var(--text)}.tw-mention-metrics{display:flex;gap:16px;font-size:13px;color:var(--text-muted)}.badge-blue{background:#1d9bf020;color:#1d9bf0}.inbox-layout{display:flex;height:100vh;overflow:hidden}.inbox-sidebar{width:320px;flex-shrink:0;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;overflow:hidden}.inbox-sidebar-header{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 12px;border-bottom:1px solid var(--border)}.inbox-sidebar-title{font-size:18px;font-weight:700;display:flex;align-items:center;gap:8px}.inbox-unread-total{background:var(--brand);color:#fff;border-radius:999px;font-size:11px;padding:1px 7px;font-weight:700}.inbox-search-wrap{padding:10px 12px 6px}.inbox-search{width:100%}.inbox-filter-chips{display:flex;gap:4px;padding:0 12px 8px;flex-wrap:wrap}.inbox-chip{border:1px solid var(--border);background:none;border-radius:999px;padding:3px 10px;font-size:12px;cursor:pointer;color:var(--text-muted);transition:all .15s}.inbox-chip:hover{border-color:var(--brand);color:var(--brand)}.inbox-chip.active{background:var(--brand-light);border-color:var(--brand);color:var(--brand);font-weight:600}.inbox-tag-chip{border:1px solid;border-radius:4px;padding:2px 8px;font-size:11px;cursor:pointer;font-weight:600}.inbox-conv-scroll{flex:1;overflow-y:auto}.inbox-conv-row{display:flex;gap:10px;padding:12px;border-bottom:1px solid var(--border);cursor:pointer;transition:background .1s}.inbox-conv-row:hover{background:var(--bg)}.inbox-conv-row.active{background:var(--brand-light)}.inbox-conv-row.unread .inbox-conv-name{font-weight:700}.inbox-conv-avatar-wrap{position:relative;flex-shrink:0}.inbox-conv-avatar-initials{width:40px;height:40px;border-radius:50%;background:var(--brand-light);color:var(--brand);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700}.inbox-platform-badge{position:absolute;bottom:-2px;right:-2px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:9px;border:1.5px solid #fff}.inbox-conv-body{flex:1;min-width:0}.inbox-conv-top{display:flex;align-items:baseline;gap:4px;margin-bottom:2px}.inbox-conv-name{font-size:13px;font-weight:600;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inbox-conv-time{font-size:11px;color:var(--text-muted);flex-shrink:0}.inbox-conv-preview{font-size:12px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:4px}.inbox-conv-meta{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.inbox-status-pill{border-radius:999px;padding:1px 6px;font-size:10px;font-weight:600}.inbox-assigned-pill{font-size:10px;color:var(--text-muted);background:var(--bg);border:1px solid var(--border);border-radius:4px;padding:1px 5px}.inbox-tag-pill{border-radius:4px;padding:1px 6px;font-size:10px;font-weight:600}.inbox-unread-dot{width:8px;height:8px;border-radius:50%;background:var(--brand);margin-left:auto;flex-shrink:0}.inbox-thread-panel{flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--bg)}.inbox-thread-header{background:var(--surface);border-bottom:1px solid var(--border);padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.inbox-thread-participant{display:flex;align-items:center;gap:12px}.inbox-thread-avatar{width:40px;height:40px;border-radius:50%;background:var(--brand-light);color:var(--brand);display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700}.inbox-thread-name{font-size:15px;font-weight:700}.inbox-thread-sub{font-size:12px}.inbox-thread-actions{display:flex;gap:6px;align-items:center}.inbox-meta-bar{background:var(--surface);border-bottom:1px solid var(--border);padding:6px 16px;display:flex;gap:6px;flex-wrap:wrap}.inbox-messages-scroll{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px}.inbox-msg-wrap{display:flex;flex-direction:column}.inbox-msg-wrap.inbound{align-items:flex-start}.inbox-msg-wrap.outbound{align-items:flex-end}.inbox-msg-bubble{max-width:70%;padding:10px 14px;border-radius:16px;font-size:14px;line-height:1.5;word-break:break-word}.inbox-msg-wrap.inbound .inbox-msg-bubble{background:var(--surface);border:1px solid var(--border);color:var(--text)}.inbox-msg-wrap.outbound .inbox-msg-bubble{color:#fff}.inbox-msg-meta{font-size:11px;color:var(--text-muted);margin-top:3px}.inbox-reply-area{background:var(--surface);border-top:1px solid var(--border);padding:12px 16px;position:relative}.inbox-platform-note{padding:8px 12px;border-radius:var(--radius);font-size:13px;color:var(--text-muted);margin-bottom:8px}.inbox-reply-input-wrap{display:flex;flex-direction:column;gap:6px}.inbox-reply-textarea{width:100%;border:1px solid var(--border);border-radius:var(--radius);padding:10px 12px;font-size:14px;font-family:inherit;resize:none;outline:none;transition:border-color .2s}.inbox-reply-textarea:focus{border-color:var(--brand)}.inbox-reply-toolbar{display:flex;align-items:center;gap:6px}.inbox-canned-dropdown{position:absolute;bottom:100%;left:16px;right:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 8px 24px #0000001f;max-height:280px;overflow-y:auto;z-index:100}.inbox-canned-search{width:calc(100% - 16px);margin:8px}.inbox-canned-empty{padding:12px 16px;color:var(--text-muted);font-size:13px}.inbox-canned-item{padding:10px 16px;cursor:pointer;border-bottom:1px solid var(--border)}.inbox-canned-item:hover{background:var(--bg)}.inbox-canned-name{font-size:13px;font-weight:600;display:inline-block;margin-right:8px}.inbox-canned-shortcut{font-size:11px;color:var(--text-muted);background:var(--bg);border:1px solid var(--border);border-radius:4px;padding:1px 5px}.inbox-canned-preview{font-size:12px;color:var(--text-muted);margin-top:2px}.inbox-dropdown{position:absolute;top:100%;right:0;z-index:200;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 4px 16px #0000001a;min-width:180px;max-height:240px;overflow-y:auto}.inbox-dropdown-item{padding:10px 14px;cursor:pointer;font-size:13px;display:flex;align-items:center;gap:6px}.inbox-dropdown-item:hover{background:var(--bg)}.inbox-tag-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.inbox-empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--text-muted)}.inbox-empty-state h3{font-size:20px;color:var(--text)}.inbox-empty-state p{font-size:14px;text-align:center;max-width:360px}.cal-nav{display:flex;align-items:center;gap:8px;padding:0 24px 16px}.cal-month-label{font-size:18px;font-weight:700;min-width:200px}.cal-loading{padding:40px;text-align:center;color:var(--text-muted)}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);border-top:1px solid var(--border);border-left:1px solid var(--border);margin:0 24px;border-radius:var(--radius);overflow:hidden}.cal-dow-header{background:var(--bg);border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:8px 4px;text-align:center;font-size:11px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}.cal-cell{min-height:110px;background:var(--surface);border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:6px;cursor:default;transition:background .1s;display:flex;flex-direction:column;gap:3px}.cal-cell.cal-has-posts{cursor:pointer}.cal-cell.cal-has-posts:hover{background:var(--bg)}.cal-cell.cal-today{background:var(--brand-light)}.cal-cell.cal-selected{outline:2px solid var(--brand);outline-offset:-2px}.cal-cell.cal-blank{background:var(--bg);cursor:default}.cal-date-num{font-size:13px;font-weight:700;color:var(--text-muted);margin-bottom:2px}.cal-cell.cal-today .cal-date-num{color:var(--brand)}.cal-post-chip{font-size:10px;color:#fff;border-radius:4px;padding:2px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal-more-chip{font-size:10px;color:var(--text-muted);padding:2px 4px}.cal-detail-panel{margin:16px 24px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.cal-detail-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border)}.cal-detail-title{font-size:16px;font-weight:700}.cal-detail-posts{display:flex;flex-direction:column;gap:0}.cal-detail-post{padding:12px 16px;border-bottom:1px solid var(--border)}.cal-detail-post:last-child{border-bottom:none}.cal-detail-post-header{display:flex;align-items:center;gap:8px;margin-bottom:6px}.cal-platform-badge{color:#fff;border-radius:4px;padding:2px 8px;font-size:12px;font-weight:700}.cal-detail-preview{font-size:14px;color:var(--text);margin-bottom:6px}.cal-detail-status{display:flex;gap:6px}.cal-legend{display:flex;gap:16px;flex-wrap:wrap;padding:16px 24px}.cal-legend-item{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text-muted)}.cal-legend-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.btn-link{background:none;border:none;color:var(--brand);cursor:pointer;font-size:13px;padding:0}.btn-link:hover{text-decoration:underline}.mkt-loading{padding:40px;text-align:center;color:var(--text-muted)}.mkt-empty{padding:60px 24px;text-align:center;color:var(--text-muted);display:flex;flex-direction:column;align-items:center;gap:10px}.mkt-empty h3{font-size:18px;color:var(--text)}.mkt-empty p{max-width:360px}.mkt-stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px;margin-bottom:24px}.mkt-stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;display:flex;align-items:center;gap:14px}.mkt-stat-icon{font-size:28px}.mkt-stat-value{font-size:24px;font-weight:800;color:var(--text);line-height:1}.mkt-stat-label{font-size:12px;color:var(--text-muted);margin-top:2px}.mkt-stat-sub{font-size:11px;color:var(--brand);margin-top:2px}.mkt-table{width:100%;border-collapse:collapse;font-size:13px}.mkt-table th{text-align:left;padding:10px 12px;border-bottom:2px solid var(--border);font-size:11px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.mkt-table td{padding:10px 12px;border-bottom:1px solid var(--border)}.mkt-table tr:hover td{background:var(--bg)}.mkt-steps-bar{display:flex;gap:0;border-bottom:1px solid var(--border);padding:0 24px}.mkt-step-dot{display:flex;align-items:center;gap:8px;padding:12px 16px;cursor:default;opacity:.5;border-bottom:2px solid transparent}.mkt-step-dot.active{opacity:1;border-bottom-color:var(--brand)}.mkt-step-dot.done{opacity:.8;cursor:pointer}.mkt-step-num{width:20px;height:20px;border-radius:50%;background:var(--border);color:var(--text-muted);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex-shrink:0}.mkt-step-dot.active .mkt-step-num{background:var(--brand);color:#fff}.mkt-step-dot.done .mkt-step-num{background:#10b981;color:#fff}.mkt-step-label{font-size:13px}.mkt-type-card{border:2px solid var(--border);border-radius:var(--radius);padding:14px 20px;cursor:pointer;font-weight:700;flex:1;text-align:center;transition:all .15s}.mkt-type-card:hover{border-color:var(--brand)}.mkt-type-card.selected{border-color:var(--brand);background:var(--brand-light);color:var(--brand)}.mkt-radio{display:flex;align-items:flex-start;gap:8px;font-size:14px;cursor:pointer;margin-bottom:4px}.mkt-radio input{margin-top:2px}.mkt-audience-options{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.mkt-segment-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px;background:var(--bg);border-radius:var(--radius);margin-top:8px}.mkt-ab-variant{border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-bottom:16px}.mkt-launch-summary{background:var(--brand-light);border:1px solid var(--brand);border-radius:var(--radius);padding:14px 16px;display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--text);margin-top:16px}.mkt-overview{padding:4px 0}.mkt-template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}.mkt-template-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:8px;transition:box-shadow .15s}.mkt-template-card:hover{box-shadow:0 4px 12px #00000014}.mkt-template-card-header{display:flex;gap:6px}.mkt-template-name{font-weight:700;font-size:14px}.mkt-template-subject{font-size:12px;color:var(--brand)}.mkt-template-preview{font-size:12px;color:var(--text-muted);flex:1;line-height:1.5}.mkt-template-actions{display:flex;gap:6px;margin-top:auto}.mkt-success-banner{background:#d1fae5;color:#065f46;border:1px solid #6ee7b7;border-radius:var(--radius);padding:10px 14px;font-size:14px;margin-top:12px}.mkt-inline-form{display:flex;gap:8px;align-items:center;background:var(--bg);padding:12px;border-radius:var(--radius);margin-bottom:12px;flex-wrap:wrap}.drip-layout{display:flex;height:calc(100vh - 120px);overflow:hidden}.drip-sidebar{width:280px;flex-shrink:0;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;overflow:hidden}.drip-sidebar-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border)}.drip-new-form{padding:12px;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:6px;background:var(--bg)}.drip-seq-row{padding:12px 16px;border-bottom:1px solid var(--border);cursor:pointer}.drip-seq-row:hover{background:var(--bg)}.drip-seq-row.active{background:var(--brand-light)}.drip-seq-name{font-size:13px;font-weight:600;margin-bottom:4px;display:flex;gap:6px;align-items:center}.drip-seq-meta{display:flex;gap:6px;align-items:center;margin-bottom:4px}.drip-seq-actions{display:flex;gap:4px}.drip-canvas{flex:1;display:flex;flex-direction:column;overflow:hidden}.drip-canvas-header{display:flex;align-items:center;justify-content:space-between;padding:14px 24px;border-bottom:1px solid var(--border);background:var(--surface)}.drip-builder{display:flex;flex-direction:column;align-items:center;padding:24px 0;width:100%}.drip-node{display:flex;align-items:center;gap:8px;background:var(--surface);border:2px solid var(--border);border-radius:999px;padding:8px 20px;font-size:13px;font-weight:700;color:var(--text-muted)}.drip-start{border-color:#10b981;color:#10b981}.drip-end{border-color:#ef4444;color:#ef4444}.drip-step-card{width:min(520px,90%);background:var(--surface);border:2px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:border-color .15s}.drip-step-card.editing{box-shadow:0 4px 16px #0000001a}.drip-step-header{display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer;-webkit-user-select:none;user-select:none}.drip-step-header:hover{background:var(--bg)}.drip-step-icon{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:15px;color:#fff;flex-shrink:0}.drip-step-info{flex:1;min-width:0}.drip-step-type{font-size:11px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;display:block}.drip-step-label{font-size:13px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drip-step-actions{display:flex;gap:4px;flex-shrink:0}.drip-step-body{padding:16px;border-top:1px solid var(--border);background:var(--bg)}.drip-btn{background:none;border:1px solid var(--border);border-radius:4px;padding:3px 7px;font-size:12px;cursor:pointer}.drip-btn:hover{background:var(--bg)}.drip-btn.danger:hover{background:#fee2e2;border-color:#ef4444;color:#ef4444}.drip-btn:disabled{opacity:.4;cursor:default}.drip-add-wrap{display:flex;flex-direction:column;align-items:center;position:relative;z-index:1}.drip-connector-line{width:2px;height:16px;background:var(--border)}.drip-add-btn{width:24px;height:24px;border-radius:50%;border:2px solid var(--brand);background:var(--surface);color:var(--brand);font-size:16px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;line-height:1}.drip-add-btn:hover{background:var(--brand);color:#fff}.drip-add-menu{position:absolute;top:30px;z-index:100;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 4px 16px #0000001f;min-width:180px;overflow:hidden}.drip-add-menu-item{display:flex;align-items:center;gap:8px;padding:10px 14px;cursor:pointer;font-size:13px;background:none;border:none;width:100%;text-align:left}.drip-add-menu-item:hover{background:var(--bg)}.drip-empty{color:var(--text-muted);font-size:13px;margin:16px 0}.drip-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.btn-xs{padding:3px 8px;font-size:11px}.badge-green{background:#d1fae520;color:#059669}.auto-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.auto-section-heading{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin-bottom:12px}.auto-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:8px;transition:box-shadow .15s}.auto-card:hover{box-shadow:0 2px 10px #00000012}.auto-card-active{border-left:4px solid #10b981}.auto-card-inactive{border-left:4px solid var(--border);opacity:.75}.auto-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.auto-trigger-badge{font-size:11px;background:var(--brand-light);color:var(--brand);border-radius:4px;padding:2px 8px;font-weight:600;flex:1}.auto-card-name{font-size:14px;font-weight:700}.auto-card-desc{font-size:12px;color:var(--text-muted)}.auto-card-stats{display:flex;gap:12px;font-size:11px;color:var(--text-muted);flex-wrap:wrap}.auto-card-actions{display:flex;gap:8px}.toggle-switch{position:relative;display:inline-block;width:36px;height:20px;cursor:pointer;flex-shrink:0}.toggle-switch input{opacity:0;width:0;height:0;position:absolute}.toggle-slider{position:absolute;top:0;right:0;bottom:0;left:0;background:#cbd5e1;border-radius:999px;transition:background .2s}.toggle-slider:before{content:"";position:absolute;width:14px;height:14px;top:3px;left:3px;background:#fff;border-radius:50%;transition:transform .2s}.toggle-switch input:checked+.toggle-slider{background:#10b981}.toggle-switch input:checked+.toggle-slider:before{transform:translate(16px)}.auto-badge{display:inline-flex;align-items:center;justify-content:center;background:#ef4444;color:#fff;font-size:10px;font-weight:700;border-radius:999px;min-width:16px;height:16px;padding:0 4px;margin-left:4px}.auto-runs-layout{display:grid;grid-template-columns:320px 1fr;gap:16px;min-height:400px}.auto-runs-list{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);overflow-y:auto;max-height:600px}.auto-run-row{padding:12px 14px;border-bottom:1px solid var(--border);cursor:pointer;transition:background .1s}.auto-run-row:hover{background:var(--bg)}.auto-run-row.auto-run-selected{background:var(--brand-light)}.auto-run-name{font-size:13px;font-weight:600}.auto-run-meta{display:flex;gap:8px;font-size:11px;color:var(--text-muted);margin-top:4px;flex-wrap:wrap}.auto-run-detail{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:20px}.auto-status-pill{font-size:10px;font-weight:700;color:#fff;padding:2px 8px;border-radius:999px;text-transform:uppercase}.auto-error-box{background:#fee2e2;border:1px solid #fca5a5;border-radius:6px;padding:10px 14px;font-size:12px;color:#b91c1c;margin-bottom:12px}.auto-log-entry{display:flex;gap:8px;font-size:12px;padding:6px 0;border-bottom:1px solid var(--border)}.auto-log-entry.auto-log-error{color:#ef4444}.auto-log-step{font-weight:700;min-width:52px;color:var(--text-muted)}.auto-task-row{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.auto-task-done .auto-task-title{text-decoration:line-through;color:var(--text-muted)}.auto-priority-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;margin-top:4px}.auto-task-title{font-size:13px;font-weight:600}.auto-task-desc{font-size:12px;color:var(--text-muted);margin-top:2px}.auto-task-meta{font-size:11px;color:var(--text-muted);margin-top:2px}.btn-sm{padding:4px 10px;font-size:11px}.auto-notif-row{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.auto-notif-unread{background:#eff6ff;margin:0 -8px;padding:12px 8px;border-radius:6px}.auto-notif-title{font-size:13px;font-weight:600}.auto-notif-body{font-size:12px;color:var(--text-muted);margin-top:2px}.auto-notif-time{font-size:11px;color:var(--text-muted);margin-top:4px}.auto-modal{width:min(1100px,96vw)!important;max-width:1100px!important;max-height:90vh!important}.auto-modal-body{display:grid;grid-template-columns:320px 1fr;gap:24px;overflow-y:auto;padding:20px 24px 24px}.auto-modal-left{display:flex;flex-direction:column;gap:0}.auto-modal-right{border-left:1px solid var(--border);padding-left:24px;overflow-y:auto;max-height:calc(90vh - 100px)}.wf-builder{display:flex;flex-direction:column;align-items:center;padding:16px 0;width:100%}.wf-node{display:flex;align-items:center;gap:8px;background:var(--surface);border:2px solid var(--border);border-radius:999px;padding:8px 20px;font-size:12px;font-weight:700;color:var(--text-muted)}.wf-start{border-color:#10b981;color:#10b981}.wf-end{border-color:#94a3b8;color:#94a3b8}.wf-empty-hint{color:var(--text-muted);font-size:13px;padding:8px 0}.wf-add-wrap{display:flex;flex-direction:column;align-items:center;position:relative;z-index:1}.wf-line{width:2px;height:16px;background:var(--border)}.wf-add-btn{width:24px;height:24px;border-radius:50%;border:2px solid var(--brand);background:var(--surface);color:var(--brand);font-size:16px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;line-height:1}.wf-add-btn:hover{background:var(--brand);color:#fff}.wf-add-menu{position:absolute;top:30px;z-index:100;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 4px 16px #0000001f;min-width:200px;overflow:hidden;padding:6px 0}.wf-add-menu-group{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);padding:2px 14px}.wf-add-menu-item{display:flex;align-items:center;gap:8px;padding:9px 14px;cursor:pointer;font-size:13px;background:none;border:none;width:100%;text-align:left}.wf-add-menu-item:hover{background:var(--bg)}.wf-step-card{width:min(560px,92%);background:var(--surface);border:2px solid var(--border);border-left-width:4px;border-radius:var(--radius);overflow:hidden;transition:border-color .15s}.wf-step-card.wf-editing{box-shadow:0 4px 16px #0000001a}.wf-step-card.wf-condition{border-left-color:#8b5cf6}.wf-step-header{display:flex;align-items:center;gap:10px;padding:11px 14px;cursor:pointer;-webkit-user-select:none;user-select:none}.wf-step-header:hover{background:var(--bg)}.wf-step-pill{border-radius:6px;padding:4px 8px;font-size:16px;color:#fff;flex-shrink:0}.wf-step-title{flex:1;min-width:0}.wf-step-kind{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);display:block}.wf-step-desc{font-size:12px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wf-step-btns{display:flex;gap:4px;flex-shrink:0}.wf-btn{background:none;border:1px solid var(--border);border-radius:4px;padding:2px 7px;font-size:12px;cursor:pointer}.wf-btn:hover{background:var(--bg)}.wf-btn:disabled{opacity:.3;cursor:default}.wf-btn-del:hover{background:#fee2e2;border-color:#ef4444;color:#ef4444}.wf-step-body{padding:16px;border-top:1px solid var(--border);background:var(--bg)}.wf-kind-toggle{display:flex;gap:4px;margin-bottom:14px}.wf-kind-btn{flex:1;padding:7px;font-size:12px;font-weight:600;border:1px solid var(--border);border-radius:6px;cursor:pointer;background:var(--surface);transition:all .15s}.wf-kind-btn.active{background:var(--brand);color:#fff;border-color:var(--brand)}.wf-two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media (max-width: 800px){.auto-runs-layout,.auto-modal-body{grid-template-columns:1fr}.auto-modal-right{border-left:none;border-top:1px solid var(--border);padding-left:0;padding-top:20px}}.cal-layout{display:grid;grid-template-columns:1fr 320px;gap:20px}.cal-main{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.cal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border)}.cal-month-label{font-size:17px;font-weight:700}.cal-nav-btn{background:none;border:1px solid var(--border);border-radius:6px;width:32px;height:32px;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center}.cal-nav-btn:hover{background:var(--bg)}.appt-cal-grid{display:grid;grid-template-columns:repeat(7,1fr)}.appt-cal-dow{padding:8px;text-align:center;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);border-bottom:1px solid var(--border)}.appt-cal-cell{min-height:90px;padding:6px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);cursor:pointer;transition:background .1s}.appt-cal-cell:nth-child(7n){border-right:none}.appt-cal-cell:hover{background:var(--bg)}.appt-cal-empty{cursor:default;background:var(--bg);opacity:.4}.appt-cal-today .appt-cal-day-num{background:var(--brand);color:#fff}.appt-cal-selected{background:var(--brand-light)}.appt-cal-day-num{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;font-size:12px;font-weight:600;margin-bottom:4px}.appt-cal-chip{font-size:10px;padding:2px 5px;border-radius:3px;color:#fff;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.appt-cal-more{font-size:10px;color:var(--text-muted)}.cal-side{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow-y:auto;max-height:620px}.cal-side-header{display:flex;align-items:center;padding:14px 16px;border-bottom:1px solid var(--border);font-weight:700;font-size:14px}.appt-card{border-left:4px solid var(--brand);background:var(--surface);border:1px solid var(--border);border-left-width:4px;border-radius:6px;padding:10px 14px;margin:8px 10px}.appt-card-time{font-size:12px;color:var(--text-muted);margin-bottom:2px}.appt-card-title{font-weight:700;font-size:13px;margin-bottom:4px}.appt-card-contact{font-size:12px;color:var(--text-muted);margin-bottom:6px}.appt-card-footer{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.appt-status-badge{font-size:10px;font-weight:700;color:#fff;padding:2px 7px;border-radius:999px;text-transform:uppercase}.appt-source-badge{font-size:10px;background:var(--bg);border:1px solid var(--border);padding:2px 6px;border-radius:999px;color:var(--text-muted)}.appt-list-filters{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}.appt-list{display:flex;flex-direction:column;gap:10px}.appt-list-row{display:flex;align-items:flex-start;gap:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px}.appt-list-date{display:flex;flex-direction:column;align-items:center;min-width:52px}.appt-date-day{font-size:13px;font-weight:700}.appt-date-time{font-size:11px;color:var(--text-muted)}.appt-list-title{font-weight:700;font-size:14px}.appt-list-actions{display:flex;gap:6px;align-items:flex-start;flex-wrap:wrap;flex-shrink:0}.appt-list-info{display:flex;flex-direction:column;gap:4px}.appt-types-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}.appt-type-card{background:var(--surface);border:1px solid var(--border);border-top-width:4px;border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:6px}.appt-type-inactive{opacity:.6}.appt-type-name{font-weight:700;font-size:14px}.appt-type-meta,.appt-type-desc{font-size:12px;color:var(--text-muted)}.appt-type-actions{display:flex;gap:8px;margin-top:4px}.avail-form{max-width:640px;display:flex;flex-direction:column;gap:24px}.form-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px}.form-section-title{font-size:14px;font-weight:700;margin:0 0 14px}.avail-day-chips{display:flex;gap:6px;flex-wrap:wrap}.avail-chip{padding:7px 14px;border-radius:20px;border:1px solid var(--border);background:var(--surface);cursor:pointer;font-size:13px;transition:all .15s}.avail-chip.active{background:var(--brand);color:#fff;border-color:var(--brand)}.appt-modal{width:min(900px,96vw)!important;max-width:900px!important}.appt-modal-body{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:20px 24px;overflow-y:auto;max-height:calc(90vh - 140px)}.appt-lead-form{border-left:1px solid var(--border);padding-left:24px}.appt-lead-form-header{font-size:13px;font-weight:700;color:var(--brand);margin-bottom:8px}.modal-footer{display:flex;gap:8px;justify-content:flex-end;padding:16px 24px;border-top:1px solid var(--border)}.contact-search-dropdown{position:absolute;top:calc(100% + 2px);left:0;right:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 4px 12px #0000001a;z-index:50;overflow:hidden}.contact-search-item{padding:9px 12px;cursor:pointer;font-size:13px}.contact-search-item:hover{background:var(--bg)}.booking-page{min-height:100vh;background:linear-gradient(135deg,#e8f1fa,#f8fafc);display:flex;align-items:flex-start;justify-content:center;padding:40px 16px}.booking-card{background:var(--surface);border-radius:16px;box-shadow:0 4px 32px #0000001a;width:100%;max-width:640px;overflow:hidden}.booking-header{background:var(--brand);padding:28px 32px;text-align:center}.booking-logo{width:56px;height:56px;background:#fff3;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;color:#fff;margin:0 auto 12px}.booking-account-name{color:#fff;font-size:20px;font-weight:700;margin:0 0 4px}.booking-tagline{color:#fffc;font-size:13px;margin:0}.booking-progress{display:flex;justify-content:center;gap:0;padding:20px 32px;border-bottom:1px solid var(--border)}.booking-step-dot{display:flex;flex-direction:column;align-items:center;flex:1;position:relative}.booking-step-dot:not(:last-child):after{content:"";position:absolute;top:12px;left:50%;width:100%;height:2px;background:var(--border);z-index:0}.booking-step-dot.done:after{background:var(--brand)}.booking-dot{width:24px;height:24px;border-radius:50%;background:var(--border);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff;z-index:1}.booking-step-dot.active .booking-dot{background:var(--brand)}.booking-step-dot.done .booking-dot{background:#10b981}.booking-step-label{font-size:11px;color:var(--text-muted);margin-top:4px}.booking-body{padding:28px 32px}.booking-section-title{font-size:18px;font-weight:700;margin-bottom:20px}.booking-type-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-bottom:16px}.booking-type-card{background:var(--surface);border:2px solid var(--border);border-top-width:4px;border-radius:var(--radius);padding:16px;cursor:pointer;text-align:left;transition:all .15s}.booking-type-card:hover{border-color:var(--brand)}.booking-type-card.selected{border-color:var(--brand);background:var(--brand-light)}.booking-type-name{font-weight:700;font-size:14px;margin-bottom:4px}.booking-type-dur{font-size:12px;color:var(--text-muted);margin-bottom:4px}.booking-type-desc{font-size:11px;color:var(--text-muted)}.booking-skip-link{background:none;border:none;color:var(--text-muted);font-size:13px;cursor:pointer;text-decoration:underline}.booking-selected-type{background:var(--brand-light);border-left:3px solid var(--brand);padding:8px 12px;border-radius:4px;font-size:13px;font-weight:600;margin-bottom:16px;display:flex;align-items:center}.booking-pref-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:0}.booking-slots{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.booking-slot{padding:9px 16px;border:1px solid var(--border);border-radius:6px;background:var(--surface);cursor:pointer;font-size:13px;font-weight:600;transition:all .15s}.booking-slot:hover{border-color:var(--brand);color:var(--brand)}.booking-slot.selected{background:var(--brand);color:#fff;border-color:var(--brand)}.booking-form-divider{display:flex;align-items:center;gap:12px;margin:20px 0 8px}.booking-form-divider:before,.booking-form-divider:after{content:"";flex:1;height:1px;background:var(--border)}.booking-form-divider span{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);white-space:nowrap}.booking-nav{display:flex;justify-content:space-between;align-items:center;margin-top:24px;padding-top:16px;border-top:1px solid var(--border)}@media (max-width: 700px){.cal-layout,.appt-modal-body{grid-template-columns:1fr}.appt-lead-form{border-left:none;border-top:1px solid var(--border);padding-left:0;padding-top:20px}.booking-body{padding:20px 16px}}
