:root{
  --shell-bg:#000;
  --panel:#000;
  --border:rgba(255,255,255,.07);
  --border-strong:rgba(255,255,255,.12);
  --text:#f5f5f5;
  --muted:#8b8b8e;
  --chip-a:#5b6478;
  --chip-b:#4f5e6d;
  --chip-c:#5d5a74;
}
body,.app,.main,.sidebar,.topbar,.content{background:#000!important}
body::before,.topbar::before,.card::before,.settings-card::before,.hero-panel::before,.quick-link-card::before,.stat-card::before,.leads-toolbar::before,.lead-row::before,.sidebar::before{display:none!important}
.page{display:none!important}
.page.active{display:block!important}
.admin-view{display:none!important}
.admin-view.active{display:block!important}
.sidebar{width:220px!important;border-right:1px solid var(--border)!important}
.main{margin-left:220px!important;width:calc(100vw - 220px)!important}
.sidebar-header,.sidebar-footer,.topbar{background:#000!important}
.sidebar-header,.sidebar-footer,.topbar,.card-header{border-color:var(--border)!important}
.profile-trigger,.profile-panel{background:#000!important;border:1px solid var(--border)!important;box-shadow:none!important}
.profile-avatar{background:linear-gradient(135deg,var(--chip-a),var(--chip-b) 55%,var(--chip-c))!important;border-color:rgba(255,255,255,.08)!important;box-shadow:none!important}
.nav-item,.nav-link,.sidebar-item,.nav-button{border-radius:12px!important;background:transparent!important;border:1px solid transparent!important;min-height:40px!important;padding:10px 12px!important}
.nav-item:hover,.nav-link:hover,.sidebar-item:hover,.nav-button:hover{background:#000!important;border-color:var(--border)!important}
.nav-item.active,.nav-link.active,.sidebar-item.active,.nav-button.active{background:#000!important;border-color:var(--border)!important}
.nav-icon{width:15px!important;height:15px!important}
.content{padding:24px!important;max-width:none!important}
.page-title{font-size:20px!important;font-weight:600!important;letter-spacing:-.03em!important}
.dashboard-intro,.mini-stat,.card,.settings-card,.stat-card,.audit-panel,.hero-panel,.quick-link-card,.leads-toolbar,.table-wrapper,.history-item,.composer-summary-card,.composer-sidebar-card,.composer-editor-card,.composer-history-card,.support-card,.template-card,.support-bot-panel,.outreach-dialog,.outreach-panel{background:transparent!important;border:1px solid var(--border)!important;box-shadow:none!important}
.card,.settings-card,.stat-card{border-radius:18px!important;padding:18px!important}
.mini-stats,.stats-grid,.admin-overview-grid{gap:12px!important}
.dashboard-intro{padding:20px!important;margin-bottom:16px!important}
.dashboard-intro h2{font-size:34px!important;line-height:1.02!important;max-width:12ch!important;margin-bottom:8px!important}
.dashboard-intro p,.tiny-copy,.stat-desc,.settings-note,.auth-helper,.hero-copy,.leads-meta,.audit-intro,.profile-email,.profile-row,.history-item p,.history-item span{color:var(--muted)!important}
.dashboard-intro p,.tiny-copy,.settings-note,.audit-intro{font-size:12px!important;max-width:54ch}
.inline-actions{gap:10px!important;flex-wrap:wrap}
.btn{height:40px!important;padding:0 16px!important;border-radius:12px!important;min-width:120px!important;box-shadow:none!important}
.btn::before,.btn::after{display:none!important}
.btn-primary{background:#fff!important;color:#000!important;border:1px solid rgba(255,255,255,.12)!important}
.btn-secondary,.btn-info,.btn-success,.btn-danger{background:#000!important;color:#fff!important;border:1px solid var(--border)!important}
.btn-sm{height:38px!important;font-size:12px!important}
.filters{grid-template-columns:minmax(0,1.5fr) repeat(4,minmax(140px,1fr))!important;gap:10px!important;align-items:end!important}
.filter-group{gap:6px!important}
.filter-label,.stat-label,.form-label{font-size:10px!important;letter-spacing:.12em!important;color:rgba(255,255,255,.42)!important}
.form-input,.filter-select,textarea.form-input{background:#000!important;border:1px solid var(--border)!important;border-radius:12px!important;min-height:42px!important;padding:11px 13px!important;box-shadow:none!important}
textarea.form-input{min-height:110px!important}
.leads-shell,.dashboard-grid,.admin-layout-grid,.settings-grid,.composer-shell{display:grid!important;gap:16px!important}
.leads-shell{grid-template-columns:1fr!important}
.leads-toolbar{display:flex!important;justify-content:space-between!important;align-items:center!important;padding:14px 16px!important;margin-bottom:12px!important}
.lead-table-shell{border:1px solid var(--border);border-radius:18px;overflow:hidden;background:transparent}
.lead-table-head,.lead-table-row{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(160px,1fr) minmax(170px,1fr) 110px auto;gap:16px;align-items:center;padding:14px 16px}
.lead-table-head{color:rgba(255,255,255,.45);font-size:10px;letter-spacing:.12em;text-transform:uppercase;border-bottom:1px solid var(--border)}
.lead-table-row{border-bottom:1px solid rgba(255,255,255,.05)}
.lead-table-row:last-child{border-bottom:none}
.lead-table-business{display:grid;gap:4px;min-width:0}.lead-table-business strong{font-size:14px;line-height:1.3}.lead-table-business span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lead-table-cell{font-size:12px;line-height:1.55;min-width:0;word-break:break-word}.lead-table-cell a{color:#fff;text-decoration:none}
.lead-table-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.lead-table-actions .btn{min-width:94px!important}
.pagination{display:flex;justify-content:space-between;align-items:center;padding-top:12px}.page-pill{height:34px;padding:0 12px;border-radius:10px;background:#000;border:1px solid var(--border);color:#fff}
.history-list{gap:10px!important}.history-item{padding:14px!important;border-radius:14px!important}
.admin-topbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.admin-topbar .tiny-copy{display:none}
.admin-tabbar{display:flex;gap:8px;flex-wrap:wrap}.admin-tab{min-width:96px!important}
.admin-overview-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;margin-bottom:16px!important}
.hero-stat-number,.stat-value,.analytics-big-number{font-size:28px!important;line-height:1!important;font-weight:600!important}
.admin-layout-grid{grid-template-columns:minmax(0,1.35fr) minmax(300px,.75fr)!important;align-items:start!important}
.clean-users-table-wrap,.table-wrapper{border-radius:16px!important;overflow:hidden!important}
.clean-users-table th,.clean-users-table td,table th,table td{text-align:left!important;vertical-align:middle!important}
#adminUserDetail,.activity-feed-list,#adminTeamList,#analyticsStatsList,#pipelineSnapshot,#quickWinsList,#templatesList{min-height:0!important}
#adminPage .settings-card .tiny-copy,#adminPage .history-item p,#adminPage .history-item span{display:none!important}
#adminPage .card-title{margin-bottom:0!important}
#adminPipelineView .history-list article:nth-child(n+3){display:none!important}
#settingsPage .card-header .card-title{margin-bottom:0}
#settingsPage .settings-card{max-width:760px;margin:0 auto}
#settingsPage .settings-stack>.tiny-copy{display:none!important}
#settingsPage .outreach-actions{justify-content:flex-end}
#settingsPage .outreach-actions .tiny-copy{display:none!important}
#auditorPage .settings-card{max-width:1100px}
#auditorPage .composer-toolbar .tiny-copy{display:none!important}
#composerPage .composer-sidebar-card .tiny-copy,#composerPage .composer-history-card .tiny-copy,#templatesPage .settings-note{display:none!important}
.dashboard-grid{grid-template-columns:minmax(0,1fr) minmax(0,.9fr)!important}
#dashboardPage .history-item p{display:none!important}
#dashboardPage .card-header .btn{min-width:110px!important}
@media (max-width: 1180px){
  .filters{grid-template-columns:1fr 1fr!important}
  .lead-table-head,.lead-table-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)!important}
  .lead-table-head div:nth-child(4),.lead-table-head div:nth-child(5),.lead-table-row>div:nth-child(4),.lead-table-row>div:nth-child(5){grid-column:auto}
  .admin-layout-grid,.dashboard-grid,.settings-grid,.composer-shell{grid-template-columns:1fr!important}
}
@media (max-width: 980px){
  .sidebar{width:100%!important;transform:translateX(-100%)}
  .sidebar.open{transform:translateX(0)}
  .main{margin-left:0!important;width:100%!important}
  .content{padding:16px!important}
  .admin-overview-grid,.mini-stats,.stats-grid{grid-template-columns:1fr 1fr!important}
}


/* strict cleanup overrides */
:root{--panel:#000;--panel2:#000;--border:rgba(255,255,255,.06)}
.page{display:none !important}
.page.active{display:block !important}
.nav-section,.nav-item,.nav-item.active,.nav-item:hover,.profile-trigger{background:transparent !important;border:none !important;box-shadow:none !important}
.nav-section{padding:0 !important;margin:14px 0 0 !important}
.nav-item{padding:10px 12px !important;border-radius:12px !important}
.nav-item:hover{background:transparent!important;border-color:rgba(255,255,255,.06)!important} .nav-item.active{background:transparent!important;border-color:rgba(255,255,255,.1)!important}
.profile-avatar{border-radius:14px !important;background:linear-gradient(180deg,rgba(229,231,235,.95),rgba(134,142,156,.65)) !important;color:#000 !important}
.settings-card,.card,.stat-card,.audit-panel,.support-chat-shell,.support-resend-chat,.support-resend-shell,.lead-table-shell,.lead-table-row,.composer-summary-card,.composer-sidebar-card,.composer-editor-card,.admin-users-card,.history-item,.table-wrapper,.leads-toolbar{background:#000 !important;border-color:rgba(255,255,255,.06) !important;box-shadow:none !important}
#adminPage .settings-card,#adminPage .stat-card,#adminPage .history-item,#adminPage .table-wrapper{background:#000 !important}
#adminPage .tiny-copy,#adminPage .history-item p,#adminPage .history-item span{display:block !important;color:var(--muted) !important}
#adminPage .hero-stat-number{font-size:34px !important}
#adminPage .clean-admin-stat{min-height:132px;display:grid;align-content:space-between}
#adminPage .clean-admin-stat .tiny-copy:first-child{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.45) !important}
#adminPage .admin-layout-grid,#adminPage .admin-overview-grid{align-items:start}
#adminPage .admin-tabbar{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap}
#adminPage .admin-tab{min-width:96px !important}
#adminPage .settings-card .outreach-actions{gap:12px !important}
#adminPage .settings-card .btn{min-width:148px !important}
#adminPipelineView .history-item{padding:14px 16px}
#composerPage .composer-shell{grid-template-columns:minmax(360px,420px) minmax(0,1fr) !important;gap:24px !important}
#composerPage .composer-sidebar-card,#composerPage .composer-editor-card{padding:22px !important}
#composerPage .composer-history-card{display:none !important}
#composerPage .tiny-copy{color:var(--muted)}
#composerPage .composer-toolbar{margin-bottom:12px}
#composerPage .form-group + .form-group{margin-top:4px}
#supportPage .support-resend-shell{max-width:980px;margin:0 auto;display:grid;gap:18px}
#supportPage .support-resend-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:6px}
#supportPage .support-resend-head h2{font-size:24px;line-height:1.2;margin:0}
#supportPage .support-status-pill{display:inline-flex;align-items:center;gap:10px;height:32px;padding:0 14px;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:#000;color:#fff;font-size:13px}
#supportPage .support-status-dot{width:8px;height:8px;border-radius:999px;background:#22c55e;box-shadow:none;border-radius:28px;overflow:hidden;background:#000}
#supportPage .support-resend-chatbar{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.06)}
#supportPage .support-resend-messages{min-height:360px;max-height:520px;overflow:auto;padding:18px 20px;display:grid;gap:12px}
#supportPage .support-message{background:#000;border:1px solid rgba(255,255,255,.06);border-radius:18px;padding:14px 16px;color:#fff}
#supportPage .support-message p{color:#fff !important;margin:0;line-height:1.6}
#supportPage .support-message .meta{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px;color:rgba(255,255,255,.56);font-size:12px}
#supportPage .support-message.team{background:#000}
#supportPage .support-example-wrap{padding:0 20px 8px}
#supportPage .support-preloads-inline{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
#supportPage .support-chip{height:34px;padding:0 14px;border-radius:14px;background:#000;border:1px solid rgba(255,255,255,.08);color:#fff}
#supportPage .support-resend-compose{display:flex;align-items:center;gap:10px;padding:16px 20px 20px}
#supportPage .support-resend-input{background:#000 !important;border-color:rgba(255,255,255,.08)!important;min-height:44px !important;max-height:120px;border-radius:18px !important;color:#fff !important;padding:13px 48px 13px 16px !important;resize:none}
#supportPage .support-send-btn{width:40px;height:40px;border-radius:999px;border:none;background:#111;color:#6b7280;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
#supportPage .support-send-btn svg{width:18px;height:18px}
#supportPage #supportState{padding:0 20px 20px}
#leadsPage .leads-shell{width:100% !important}
#leadsPage .lead-table-shell{border-radius:20px;background:#000 !important;overflow:hidden}
#leadsPage .lead-table-head,#leadsPage .lead-table-row{grid-template-columns:minmax(240px,1.35fr) minmax(160px,.95fr) minmax(220px,1.05fr) 100px 280px !important}
#leadsPage .lead-table-head{padding:16px 20px !important}
#leadsPage .lead-table-row{padding:18px 20px !important}
#leadsPage .lead-table-actions{gap:10px !important;justify-content:flex-end !important}
#leadsPage .lead-table-actions .btn{min-width:86px !important}
#leadsPage .lead-table-cell,#leadsPage .lead-table-business span{white-space:normal !important;overflow:visible !important;text-overflow:clip !important}
#leadsPage .lead-table-business strong{font-size:14px !important}
#leadsPage .filters{gap:14px !important}
#auditorPage .audit-stat,#auditorPage .audit-item{background:#000 !important;border-color:rgba(255,255,255,.06)!important}
.auth-container .btn-primary{margin-top:14px !important}
.auth-container form .form-group:last-of-type{margin-bottom:12px !important}
@media (max-width: 980px){#composerPage .composer-shell{grid-template-columns:1fr !important}#leadsPage .lead-table-head,#leadsPage .lead-table-row{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr) 80px 200px !important}}
@media (max-width: 760px){#leadsPage .lead-table-head{display:none !important}#leadsPage .lead-table-row{grid-template-columns:1fr !important;gap:12px !important}#leadsPage .lead-table-actions{justify-content:flex-start !important}#supportPage .support-resend-head{flex-direction:column;align-items:flex-start}}
