*{box-sizing:border-box}body,html{margin:0;padding:0}body{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#0f172a;background:#f8fafc;line-height:1.5}a{color:#1d4ed8;text-decoration:none}.shell{display:flex;height:100vh}.sidebar{width:240px;flex:none;background:#0b0f19;color:#94a3b8;padding:24px 16px;display:flex;flex-direction:column;border-right:1px solid #1e293b;position:relative;transition:width .2s cubic-bezier(.4,0,.2,1),padding .2s}.sidebar.is-collapsed{width:68px;padding:20px 10px}.sidebar-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;gap:8px;min-height:32px}.sidebar.is-collapsed .sidebar-header{flex-direction:column;justify-content:center;gap:12px}.sidebar-brand{display:flex;align-items:center;gap:12px;padding-left:4px;min-height:32px;white-space:nowrap}.sidebar.is-collapsed .sidebar-brand{padding-left:0;justify-content:center}.sidebar-logo{flex:none;transition:transform .2s}.sidebar.is-collapsed .sidebar-logo{transform:scale(1.1)}.sidebar-brand-text{color:#f8fafc;font-size:20px;font-weight:700;margin:0;transition:opacity .15s ease,transform .15s ease}.sidebar.is-collapsed .sidebar-brand-text{display:none}.sidebar-nav{display:flex;flex-direction:column;gap:6px;flex:1 1}.sidebar nav a{display:flex;align-items:center;gap:12px;color:#94a3b8;padding:10px 12px;border-radius:8px;font-size:14px;font-weight:500;text-decoration:none;transition:background .15s,color .15s,padding .2s;white-space:nowrap;overflow:hidden}.sidebar.is-collapsed nav a{justify-content:center;padding:10px}.sidebar nav a:hover{background:rgba(255,255,255,.04);color:#f8fafc}.sidebar nav a.active{background:rgba(99,102,241,.15);color:#6366f1;font-weight:600}.sidebar-icon{flex:none;color:inherit;transition:transform .15s}.sidebar nav a:hover .sidebar-icon{transform:scale(1.05)}.sidebar-text{transition:opacity .15s ease,transform .15s ease}.sidebar.is-collapsed .sidebar-text{display:none}.sidebar-toggle{display:flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);color:#cbd5e1;border-radius:6px;cursor:pointer;transition:background .15s,color .15s,border-color .15s;flex:none}.sidebar-toggle:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.15);color:#f8fafc}.sidebar-toggle:focus-visible{outline:2px solid #6366f1;outline-offset:2px}.main{flex:1 1;min-width:0;padding:28px 32px;overflow:auto}.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}h2{margin-top:0}.row{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}.card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px;margin-bottom:16px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));grid-gap:16px;gap:16px}label{font-size:13px;color:#475569;display:block;margin-bottom:4px}input,select,textarea{font:inherit;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;width:100%}input[type=checkbox]{width:auto;padding:0;border:none;border-radius:0}label:has(>input[type=checkbox]){display:flex;align-items:center;gap:6px}button{background:#1d4ed8;color:#fff;cursor:pointer}a.secondary,button,button.secondary{font:inherit;font-weight:600;padding:9px 16px;border:none;border-radius:8px}a.secondary,button.secondary{display:inline-flex;align-items:center;background:#e2e8f0;color:#0f172a}a.ghost,button.ghost{background:transparent;color:#1d4ed8;padding:4px 8px;font-weight:600;text-decoration:none}a.ghost,button.ghost,button.iconbtn{display:inline-flex;align-items:center}button.iconbtn{justify-content:center;flex:none;width:32px;height:32px;padding:0;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;color:#475569}button.iconbtn:hover{background:#e2e8f0;color:#0f172a}button.iconbtn.copied{color:#16a34a;border-color:#bbf7d0;background:#f0fdf4}button:disabled{opacity:.5;cursor:not-allowed}input.field-dirty,textarea.field-dirty{border-color:#f59e0b}table{width:100%;border-collapse:collapse;background:#fff}td,th{text-align:left;padding:10px 12px;border-bottom:1px solid #e2e8f0;font-size:14px}th{color:#64748b;font-weight:600}.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;background:#e2e8f0}.badge.generated{background:#dbeafe;color:#1e40af}.badge.emailed{background:#fef3c7;color:#92400e}.badge.converted{background:#dcfce7;color:#166534}.badge.rejected,.badge.unsubscribed{background:#fee2e2;color:#991b1b}.badge.active{background:#dcfce7;color:#166534}.badge.pending{background:#fef3c7;color:#92400e}.badge.failed{background:#fee2e2;color:#991b1b}.badge.draft{background:#e2e8f0;color:#475569}.badge.sent{background:#fef3c7;color:#92400e}.badge.accepted,.badge.paid{background:#dcfce7;color:#166534}.badge.cancelled,.badge.expired,.badge.overdue{background:#fee2e2;color:#991b1b}.outreach-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;font:inherit;font-size:12px;font-weight:600;padding:3px 24px 3px 10px;border:none;border-radius:999px;background:#e2e8f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23475569'/%3E%3C/svg%3E") no-repeat right 9px center;color:#475569;width:auto}.outreach-select.reached-out{background-color:#dbeafe;color:#1e40af}.outreach-select.no-response{background-color:#ffedd5;color:#9a3412}.outreach-select.on-hold{background-color:#ede9fe;color:#6d28d9}.outreach-select.interested{background-color:#dcfce7;color:#166534}.outreach-select.not-interested{background-color:#fee2e2;color:#991b1b}.stat{font-size:32px;font-weight:700}.muted{color:#64748b;font-size:13px}.toolbar{margin-bottom:12px;align-items:center}.toolbar select{width:auto;min-width:180px}.combobox{position:relative}.combobox-menu{position:absolute;z-index:20;top:calc(100% + 4px);left:0;right:0;max-height:220px;overflow-y:auto;margin:0;padding:4px;list-style:none;background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 8px 20px rgba(15,23,42,.1)}.combobox-menu li{padding:7px 10px;border-radius:6px;font-size:14px;cursor:pointer}.combobox-menu li.active,.combobox-menu li:hover{background:#eff6ff;color:#1d4ed8}.leads-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.leads-topbar>button{flex:none}.scan-row select{width:auto;min-width:160px}.funnel-chips{display:flex;gap:8px;flex-wrap:wrap}.chip{font:inherit;font-size:13px;font-weight:600;cursor:pointer;padding:5px 12px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#475569}.chip:hover{border-color:#94a3b8}.chip.active{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.chip-count{font-weight:700;margin-left:2px}.chip.active .chip-count{color:#bfdbfe}.chip-terminal{color:#991b1b}.chip-terminal.active{background:#991b1b;border-color:#991b1b;color:#fff}.chip-terminal.active .chip-count{color:#fecaca}.table-card{padding:0;overflow:hidden}.leads-table th{background:#f8fafc;white-space:nowrap}.leads-table td{vertical-align:middle}.lead-row{cursor:pointer}.lead-row.expanded,.lead-row:hover{background:#f8fafc}.lead-row td:first-child{border-left:3px solid transparent}.lead-row.os-reached-out td:first-child{border-left-color:#3b82f6}.lead-row.os-no-response td:first-child{border-left-color:#f97316}.lead-row.os-on-hold td:first-child{border-left-color:#8b5cf6}.lead-row.os-interested td:first-child{border-left-color:#22c55e}.lead-row.os-not-interested td:first-child{border-left-color:#ef4444}.lead-name{font-weight:600}.sub{color:#64748b;font-size:12px}.lead-score{font-weight:700}.expand-cell{width:32px;color:#94a3b8;text-align:right}.chevron{transition:transform .15s ease;vertical-align:middle}.chevron.open{transform:rotate(180deg)}.lead-detail-row td{background:#f8fafc;padding:16px 20px;border-left:3px solid transparent}.lead-detail{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);grid-gap:8px 24px;gap:8px 24px}.lead-detail-fields{display:flex;flex-direction:column;gap:10px}.lead-detail-info{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#475569}.lead-detail-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;padding-top:12px;border-top:1px solid #e2e8f0}.lead-field label{margin-bottom:6px}a.btn-sm,button.btn-sm{padding:6px 12px;font-size:13px;white-space:nowrap}.leads-table .nowrap{white-space:nowrap}.col-next a.btn-sm,.col-next button.btn-sm{display:inline-flex;align-items:center;justify-content:center;min-width:132px}.badge.discovered{background:#e2e8f0;color:#475569}.badge.clicked,.badge.opened{background:#e0f2fe;color:#075985}.badge.interested{background:#dcfce7;color:#166534}@media (max-width:900px){.lead-detail{grid-template-columns:1fr}.leads-topbar{flex-direction:column-reverse;align-items:stretch}}.pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:16px}.editor{display:grid;grid-template-columns:380px 1fr;grid-gap:20px;gap:20px;height:calc(100vh - 120px)}.editor .pane{overflow:auto}.editor iframe{width:100%;height:100%;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.login-wrap{max-width:360px;margin:120px auto;padding:0 16px}.funnel-bar{display:flex;align-items:center;gap:10px;margin-bottom:8px}.funnel-bar .track{flex:1 1;background:#e2e8f0;height:22px;border-radius:6px;overflow:hidden}.funnel-bar .fill{background:#1d4ed8;height:100%}@media (max-width:768px){.shell{flex-direction:column;min-height:0}.sidebar{width:100%!important;height:auto;flex-direction:row;align-items:center;gap:16px;padding:12px 16px!important;position:-webkit-sticky;position:sticky;top:0;z-index:10;border-right:none;border-bottom:1px solid #1e293b}.sidebar-header{margin-bottom:0;gap:16px;height:auto}.sidebar-brand{margin-bottom:0;padding-left:0}.sidebar-brand-text{display:block!important;font-size:17px}.sidebar-nav{flex-direction:row;gap:4px;overflow-x:auto;-webkit-overflow-scrolling:touch;margin-bottom:0}.sidebar nav a{white-space:nowrap;padding:6px 10px;margin-bottom:0;font-size:13px}.sidebar-text{display:inline!important}.sidebar-toggle{display:none}.main{padding:16px}.row{align-items:stretch}.row>div{flex:1 1 100%}.editor{grid-template-columns:1fr;height:auto}.editor .pane{overflow:visible}.editor iframe{height:60vh}}@media (max-width:480px){.login-wrap{margin-top:48px}}@media (max-width:700px){.funnel-chips{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px}.chip{white-space:nowrap;flex:none}.toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-gap:8px;gap:8px}.toolbar select:first-child{grid-column:1/-1}.toolbar select{min-width:0;width:100%;overflow:hidden;text-overflow:ellipsis}.table-scroll{overflow-x:visible}.leads-table thead{display:none}.leads-table,.leads-table tbody,.leads-table tr{display:block;width:100%}.lead-row{position:relative;display:block;border:1px solid #e2e8f0;border-radius:10px;margin:10px;padding:12px 40px 12px 12px}.lead-row:last-child{margin-bottom:10px}.lead-row td{display:block;padding:3px 0;border:none}.lead-row td[data-label]:before{content:attr(data-label) ": ";color:#94a3b8;font-weight:600;font-size:12px}.lead-row td.col-contact{display:none}.col-next{margin-top:8px}.col-next a,.col-next button{width:100%;justify-content:center}.expand-cell{position:absolute;top:12px;right:12px;width:auto;padding:0}.lead-detail-row td{padding:14px 10px}.table-card{padding:0}}