:root{
  --navy:#0c2a47; --navy-2:#082039; --blue:#155a9c; --blue-2:#e8f1fb; --bg:#f4f7fb; --panel:#ffffff;
  --text:#172033; --muted:#6b7688; --line:#e4eaf2; --green:#157f52; --green-bg:#e9f8f1; --amber:#9a6500; --amber-bg:#fff5df; --red:#b42318; --red-bg:#fff0ee; --shadow:0 14px 35px rgba(15,35,65,.08);
}
*{box-sizing:border-box} html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg);font-size:14px;}
a{color:var(--blue);text-decoration:none} a:hover{text-decoration:underline}.muted{color:var(--muted)}
.sidebar{position:fixed;left:0;top:0;bottom:0;width:252px;background:linear-gradient(180deg,var(--navy),var(--navy-2));color:#fff;padding:22px 18px;display:flex;flex-direction:column;box-shadow:10px 0 30px rgba(5,20,40,.12);z-index:10}.brand{display:flex;align-items:center;gap:12px;margin-bottom:28px}.brand strong{display:block;font-size:17px;line-height:1.05;letter-spacing:-.03em}.brand span{display:block;margin-top:5px;color:#a8bed4;font-size:12px}.brand-mark{width:42px;height:42px;border-radius:14px;background:#fff;color:var(--navy);display:flex;align-items:center;justify-content:center;font-weight:900;letter-spacing:-.08em}.brand-mark.large{margin:0 auto 14px;width:56px;height:56px;border-radius:18px;background:var(--navy);color:#fff}.nav{display:flex;flex-direction:column;gap:20px}.nav-group>span{display:block;color:#7f9ab5;text-transform:uppercase;font-weight:800;font-size:10px;letter-spacing:.12em;margin:0 0 8px 12px}.nav-link{display:flex;align-items:center;gap:10px;color:#dce8f5;border-radius:12px;padding:10px 12px;margin:2px 0;font-weight:650}.nav-link:hover{text-decoration:none;background:rgba(255,255,255,.08)}.nav-link.active{background:#fff;color:var(--navy);box-shadow:0 8px 20px rgba(0,0,0,.1)}.nav-ico{width:20px;text-align:center}.sidebar-footer{margin-top:auto;display:flex;align-items:center;justify-content:space-between;border-top:1px solid rgba(255,255,255,.1);padding-top:14px}.sidebar-footer a,.sidebar-footer small{color:#b9ccdf}
.main{margin-left:252px;min-height:100vh;padding:28px 32px 60px}.topbar{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.topbar h1{margin:3px 0 0;font-size:28px;letter-spacing:-.04em}.eyebrow{margin:0;color:var(--muted);text-transform:uppercase;font-size:11px;font-weight:850;letter-spacing:.14em}.user-chip{background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 13px;color:var(--muted);box-shadow:0 4px 14px rgba(15,35,65,.04)}
.notice{margin:0 0 18px;border-radius:14px;padding:12px 14px;font-weight:700;border:1px solid var(--line);background:#fff}.notice.success{background:var(--green-bg);border-color:#b8ebd2;color:var(--green)}.notice.error,.alert{background:var(--red-bg);border:1px solid #ffd0ca;color:var(--red);border-radius:12px;padding:10px 12px}.hero{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#fff,#eef6ff);border:1px solid var(--line);border-radius:24px;padding:24px;margin-bottom:20px;box-shadow:var(--shadow)}.hero.compact{padding:20px}.hero h2,.detail-hero h2{font-size:27px;line-height:1.1;margin:4px 0 6px;letter-spacing:-.045em}.hero p,.panel-head p{margin:0;color:var(--muted)}.hero-actions{display:flex;gap:10px}.btn,button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;background:var(--blue);color:#fff;font-weight:800;padding:11px 16px;cursor:pointer;box-shadow:0 7px 18px rgba(21,90,156,.18)}.btn:hover,button:hover{text-decoration:none;filter:brightness(.95)}.btn.secondary,button.secondary{background:#fff;color:var(--blue);border:1px solid #cfe0f4;box-shadow:none}.btn.small,button.small{padding:8px 11px;border-radius:10px;font-size:12px}.danger,button.danger{background:var(--red);color:#fff}
.stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-bottom:20px}.stat-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.stat-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:0 8px 25px rgba(15,35,65,.05);position:relative;overflow:hidden}.stat-card:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:#ccd8e6}.stat-card.primary:before{background:var(--blue)}.stat-card.hot:before{background:var(--red)}.stat-card.warm:before{background:#e59b20}.stat-card.success:before{background:var(--green)}.stat-card span{display:block;color:var(--muted);font-weight:800;font-size:12px}.stat-card strong{display:block;font-size:31px;line-height:1;margin:10px 0 8px;letter-spacing:-.05em}.stat-card small{color:var(--muted)}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:var(--shadow);margin-bottom:18px}.panel h2{margin:0 0 12px;font-size:17px;letter-spacing:-.03em}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:14px}.two-col{display:grid;grid-template-columns:1.4fr .9fr;gap:18px}.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px}.detail-hero{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;margin-bottom:18px;box-shadow:var(--shadow)}.detail-score{text-align:center}.detail-score .score-pill{font-size:24px;width:64px;height:64px}.detail-score span{display:block;color:var(--muted);font-weight:800;margin-top:6px;font-size:12px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.setting-card label{display:block;margin:0 0 13px}.setting-card label span{display:block;font-weight:800;margin-bottom:5px}.setting-card label small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.sticky-actions{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(244,247,251,0),var(--bg) 30%);padding:20px 0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid .wide{grid-column:1/-1}.inline-form{display:flex;gap:10px;align-items:end}.filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr 1fr auto auto;gap:10px;margin-bottom:14px}label{font-weight:800}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff;color:var(--text);font:inherit;box-shadow:inset 0 1px 0 rgba(0,0,0,.02)}textarea{resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #cfe0f4;border-color:#9fc2e8}
.data-table{width:100%;border-collapse:separate;border-spacing:0}.data-table th{text-align:left;color:#657386;font-size:11px;text-transform:uppercase;letter-spacing:.08em;background:#f7f9fc;border-bottom:1px solid var(--line);padding:11px}.data-table td{border-bottom:1px solid var(--line);padding:13px 11px;vertical-align:top}.data-table tr:last-child td{border-bottom:0}.data-table small{display:block;color:var(--muted);margin-top:4px;line-height:1.3}.strong-link{font-weight:850;color:var(--text)}.prospects td:first-child{min-width:220px}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-weight:850;font-size:11px;background:#eef2f7;color:#526074;margin:2px}.badge-success{background:var(--green-bg);color:var(--green)}.badge-info{background:var(--blue-2);color:var(--blue)}.badge-hot{background:var(--red-bg);color:var(--red)}.badge-muted{background:#f1f3f6;color:#7b8492}.badges{display:flex;flex-wrap:wrap;gap:2px}.score-pill{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:#eef2f7;color:#526074;font-weight:950;letter-spacing:-.04em}.score-pill.hot{background:var(--red-bg);color:var(--red)}.score-pill.warm{background:var(--amber-bg);color:var(--amber)}.score-pill.neutral{background:var(--blue-2);color:var(--blue)}.score-pill.muted{background:#eef2f7;color:#7b8492}.score-row{display:flex;align-items:center;gap:10px}.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.info-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.info-grid div{background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:12px}.info-grid dt{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:900}.info-grid dd{margin:5px 0 0;font-weight:750;word-break:break-word}.metric-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.metric-row div{background:#f8fafc;border:1px solid var(--line);border-radius:16px;padding:16px;text-align:center}.metric-row strong{display:block;font-size:28px;letter-spacing:-.05em}.metric-row span{color:var(--muted);font-weight:800;font-size:12px}.offer-box{background:linear-gradient(135deg,var(--blue-2),#fff);border:1px solid #cfe0f4;border-radius:16px;padding:14px;margin-bottom:12px}.offer-box span{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;font-weight:900}.offer-box strong{display:block;font-size:19px;margin-top:3px}.json-box{background:#0b1725;color:#dce8f5;border-radius:16px;padding:14px;overflow:auto;max-height:420px;font-size:12px;line-height:1.5}.content-preview{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}.content-preview p{color:var(--muted);margin:5px 0 13px}.empty-state{border:1px dashed #cbd6e4;background:#f8fafc;border-radius:16px;padding:24px;text-align:center}.stacked-actions{display:flex;flex-direction:column;gap:9px}.stacked-actions button{width:100%;box-shadow:none}.action-list{display:flex;flex-direction:column;gap:10px}.action-list a,.action-list>div{display:block;border:1px solid var(--line);background:#f8fafc;border-radius:16px;padding:14px}.action-list a:hover{text-decoration:none;border-color:#b9d2ef;background:#f4f9ff}.action-list strong{display:block;color:var(--text)}.action-list span{display:block;color:var(--muted);margin-top:3px}.login{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#082039,#155a9c)}.login-box{width:min(420px,calc(100vw - 40px));background:#fff;border-radius:28px;padding:34px;box-shadow:0 24px 80px rgba(0,0,0,.28);text-align:left}.login-box h1{text-align:center;margin:0 0 6px;letter-spacing:-.04em}.login-box p{text-align:center;color:var(--muted);margin:0 0 22px}.login-box label{display:block;margin:12px 0}.login-box button{width:100%;margin-top:8px}
@media(max-width:1180px){.stat-grid{grid-template-columns:repeat(3,1fr)}.filters{grid-template-columns:repeat(3,1fr)}.two-col,.detail-layout,.settings-grid{grid-template-columns:1fr}.detail-side{order:-1}}
@media(max-width:760px){.sidebar{position:static;width:auto}.main{margin-left:0;padding:20px}.stat-grid,.stat-grid.four,.filters,.form-grid,.info-grid,.info-grid.compact{grid-template-columns:1fr}.topbar,.hero,.detail-hero,.panel-head{flex-direction:column;align-items:flex-start}.hero-actions{width:100%;flex-direction:column}.btn{width:100%}}

/* v0.2.1.1 sidebar hotfix: stable, readable SaaS navigation */
.sidebar{
  width:280px !important;
  padding:24px 20px !important;
  overflow-y:auto;
}
.main{
  margin-left:280px !important;
}
.brand{
  align-items:center !important;
  gap:12px !important;
  margin-bottom:30px !important;
  min-width:0;
}
.brand-mark{
  flex:0 0 42px !important;
  width:42px !important;
  height:42px !important;
  border-radius:14px !important;
  background:#ffffff !important;
  color:#0c2a47 !important;
  font-size:15px !important;
  line-height:1 !important;
}
.brand-copy{
  min-width:0;
  display:block;
}
.brand-copy strong{
  display:block !important;
  color:#ffffff !important;
  font-size:16px !important;
  line-height:1.12 !important;
  letter-spacing:-.02em !important;
  white-space:normal !important;
}
.brand-copy span{
  display:block !important;
  margin-top:5px !important;
  color:#a8bed4 !important;
  font-size:12px !important;
  white-space:nowrap !important;
}
.nav{
  gap:22px !important;
}
.nav-group>span{
  margin:0 0 8px 2px !important;
  color:#89a4bf !important;
  font-size:10px !important;
  line-height:1 !important;
}
.nav-link{
  display:flex !important;
  width:100% !important;
  min-height:38px !important;
  padding:10px 12px !important;
  margin:3px 0 !important;
  border-radius:12px !important;
  font-size:13px !important;
  line-height:1.2 !important;
  font-weight:700 !important;
  color:#dce8f5 !important;
  gap:0 !important;
  letter-spacing:0 !important;
}
.nav-link span{
  display:block !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.nav-link.active{
  background:#ffffff !important;
  color:#0c2a47 !important;
}
.nav-link:hover{
  color:#ffffff !important;
  background:rgba(255,255,255,.09) !important;
}
.nav-link.active:hover{
  color:#0c2a47 !important;
  background:#ffffff !important;
}
.sidebar-footer{
  gap:12px !important;
  font-size:12px !important;
}
@media (max-width: 900px){
  .sidebar{position:relative !important;width:100% !important;min-height:auto !important;bottom:auto !important;}
  .main{margin-left:0 !important;padding:22px 16px 50px !important;}
  .nav{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:12px !important;}
  .nav-link span{white-space:normal !important;}
}

/* v0.2.1.2 admin layout stabilization: fixes cramped sidebar, collapsed dashboard cards, and overflowing audit/settings tables */
:root{--sidebar-w:284px;}
html,body{font-size:15px;line-height:1.45;}
.sidebar{
  width:var(--sidebar-w) !important;
  min-width:var(--sidebar-w) !important;
  padding:24px 20px !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
}
.main{
  margin-left:var(--sidebar-w) !important;
  padding:30px 34px 70px !important;
  max-width:none !important;
}
.brand{
  display:block !important;
  margin-bottom:30px !important;
  padding:0 2px 22px !important;
  border-bottom:1px solid rgba(255,255,255,.10) !important;
}
.brand-mark{
  width:44px !important;
  height:44px !important;
  margin-bottom:12px !important;
  border-radius:14px !important;
}
.brand-copy{display:block !important;width:100% !important;min-width:0 !important;}
.brand-copy strong{
  display:block !important;
  max-width:210px !important;
  font-size:18px !important;
  line-height:1.08 !important;
  white-space:normal !important;
  overflow:visible !important;
  word-break:normal !important;
}
.brand-copy span{
  display:block !important;
  margin-top:7px !important;
  font-size:12px !important;
  line-height:1.2 !important;
  white-space:normal !important;
  color:#b9ccdf !important;
}
.nav{gap:24px !important;}
.nav-group>span{
  margin:0 0 10px 4px !important;
  font-size:10px !important;
  letter-spacing:.14em !important;
}
.nav-link{
  min-height:40px !important;
  padding:10px 13px !important;
  margin:4px 0 !important;
  font-size:14px !important;
  line-height:1.25 !important;
  border-radius:13px !important;
}
.nav-link span{white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;}
.sidebar-footer{padding-top:18px !important;margin-top:auto !important;}
.topbar{margin-bottom:24px !important;}
.topbar h1{font-size:30px !important;}
.hero{display:flex !important;align-items:center !important;justify-content:space-between !important;gap:20px !important;}
.hero-actions{display:flex !important;align-items:center !important;gap:10px !important;flex-wrap:wrap !important;}
.stat-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr)) !important;
  gap:16px !important;
  margin:0 0 22px !important;
}
.stat-grid.four{grid-template-columns:repeat(auto-fit,minmax(190px,1fr)) !important;}
.stat-card{min-height:126px !important;display:flex !important;flex-direction:column !important;justify-content:space-between !important;}
.stat-card span,.stat-card small{display:block !important;}
.stat-card strong{font-size:34px !important;}
.panel{overflow:hidden !important;}
.panel .data-table{min-width:760px;}
.data-table{table-layout:auto !important;}
.data-table th,.data-table td{font-size:13px;line-height:1.35;}
.data-table code{
  display:block;
  max-width:720px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#334155;
  background:#f3f6fa;
  border:1px solid #e3eaf3;
  border-radius:8px;
  padding:6px 8px;
}
.settings-grid{grid-template-columns:minmax(0,1fr) !important;max-width:1180px;}
.setting-card label small{font-size:10px !important;color:#93a0b2 !important;margin-top:6px !important;}
.filters{grid-template-columns:minmax(180px,2fr) repeat(5,minmax(120px,1fr)) auto auto !important;align-items:end !important;}
.two-col{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr) !important;}
@media (max-width: 1180px){
  :root{--sidebar-w:250px;}
  .stat-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
  .filters{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .two-col,.detail-layout{grid-template-columns:1fr !important;}
}
@media (max-width: 900px){
  .sidebar{position:relative !important;width:100% !important;min-width:0 !important;bottom:auto !important;}
  .main{margin-left:0 !important;padding:22px 16px 50px !important;}
  .brand{display:flex !important;align-items:center !important;gap:12px !important;margin-bottom:18px !important;padding-bottom:16px !important;}
  .brand-mark{margin-bottom:0 !important;}
  .nav{display:grid !important;grid-template-columns:1fr !important;gap:14px !important;}
  .stat-grid,.stat-grid.four{grid-template-columns:1fr !important;}
}

/* v0.2.2 Smart controls */
.smart-filters{grid-template-columns:1.3fr 1fr 1fr 1fr 1fr 1fr 1fr auto auto;align-items:end}
.filters select,.form-grid select{height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);padding:0 12px;font:inherit;min-width:0}
.form-grid label small{display:block;margin-top:6px;color:var(--muted);font-size:12px;line-height:1.3}
.preset-row{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.preset-row a{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;padding:8px 12px;background:#f8fbff;color:var(--blue);font-weight:800;text-decoration:none;font-size:13px}
.preset-row a:hover{background:#eef6ff;border-color:#c7dcf3}
.roadmap-note{margin-top:24px;border-style:dashed;background:linear-gradient(135deg,#fff,#f8fbff)}
.payload-code{display:block;max-width:680px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:1200px){.smart-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.payload-code{max-width:360px}}
@media (max-width:760px){.smart-filters{grid-template-columns:1fr}.preset-row a{width:100%;justify-content:center}}


/* v0.2.4 prospect review workflow */
.view-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 16px}
.view-tabs a{display:inline-flex;align-items:center;border:1px solid var(--border,#dbe5f1);background:#f8fbff;color:#0b3b6e;text-decoration:none;padding:8px 12px;border-radius:999px;font-weight:700;font-size:13px}
.view-tabs a:hover{background:#fff;box-shadow:0 6px 18px rgba(8,31,58,.08)}
.bulk-bar{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin:14px 0 10px;padding:10px 12px;background:#f8fafc;border:1px solid var(--border,#dbe5f1);border-radius:14px}
.bulk-bar select{min-width:220px}
.data-table.prospects th:first-child,.data-table.prospects td:first-child{width:28px;text-align:center}
.data-table.prospects small{display:block;color:#65758b;font-size:12px;line-height:1.35;margin-top:3px;max-width:230px}
.hero-badges{margin:12px 0 8px}
.badge.badge-primary{background:#e8f2ff;color:#0b5ea8}
.badge.badge-warm{background:#fff7e6;color:#9a5b00}
.badge.badge-hot{background:#fff1f2;color:#b42318}
.badge.badge-success{background:#ecfdf3;color:#027a48}
.badge.badge-muted{background:#f2f4f7;color:#667085}


/* v0.2.4.1 Compact Prospect List Polish
   Tables must remain tidy, compact and powerful. Long explanations live in tooltips/detail pages. */
.data-table.prospects{
  table-layout:auto !important;
  font-size:13px;
}
.data-table.prospects th{
  position:sticky;
  top:0;
  z-index:2;
  padding:9px 10px !important;
  white-space:nowrap;
}
.data-table.prospects td{
  padding:8px 10px !important;
  vertical-align:middle !important;
  line-height:1.25 !important;
}
.data-table.prospects small{
  display:block;
  max-width:150px !important;
  margin-top:2px !important;
  line-height:1.15 !important;
  font-size:10.5px !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.data-table.prospects .strong-link{
  display:block;
  max-width:165px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.data-table.prospects th:first-child,
.data-table.prospects td:first-child{
  width:30px !important;
  min-width:30px !important;
}
.data-table.prospects .badge{
  padding:4px 7px !important;
  margin:0 !important;
  font-size:10.5px !important;
  line-height:1.1;
  white-space:nowrap;
  max-width:118px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.data-table.prospects .score-pill{
  width:30px !important;
  height:30px !important;
  min-width:30px !important;
  font-size:12px !important;
}
.compact-score{
  gap:7px !important;
  align-items:center !important;
}
.compact-score small{
  max-width:72px !important;
  color:#7b8797 !important;
}
.compact-badges{
  gap:4px !important;
  flex-wrap:nowrap !important;
  max-width:150px;
  overflow:hidden;
}
.compact-link{
  display:inline-flex;
  font-weight:800;
  font-size:12px;
  white-space:nowrap;
}
.mini{
  font-size:12px;
}
.prospects .muted.mini{
  color:#a1aab8;
}
/* Keep explanatory text out of workspace tables. Detail pages can remain richer. */
.prospects td:nth-child(3),
.prospects td:nth-child(9),
.prospects td:nth-child(10),
.prospects td:nth-child(11){
  white-space:nowrap;
}
.prospects td:nth-child(4),
.prospects td:nth-child(5),
.prospects td:nth-child(6){
  max-width:120px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media(max-width:1180px){
  .panel .data-table.prospects{min-width:980px;}
}

/* v0.2.5 — Prospect detail intelligence, keep lists compact */
.signal-strip{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:14px 0 16px;
}
.metric-row.enhanced{
  margin-bottom:10px;
}
.insight-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:14px 0 18px;
}
.insight-card{
  border:1px solid #dbe5f2;
  background:#f8fbff;
  border-radius:18px;
  padding:16px 18px;
}
.insight-card.single{
  margin-top:14px;
}
.insight-card span,
.reason-card span{
  display:block;
  color:#66748a;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:900;
  margin-bottom:6px;
}
.insight-card strong{
  display:block;
  font-size:16px;
  color:#07182f;
  margin-bottom:6px;
}
.insight-card p{
  margin:0;
  color:#536277;
  line-height:1.45;
}
.insight-card ul,
.reason-card ul{
  margin:0;
  padding-left:18px;
  color:#536277;
  line-height:1.45;
}
.reason-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}
.reason-card{
  background:#fff;
  border:1px solid #dbe5f2;
  border-radius:16px;
  padding:14px 16px;
}
.reason-card.wide{
  grid-column:1/-1;
}
.reason-card p{
  margin:0;
  color:#536277;
  line-height:1.45;
}
.content-preview p{
  line-height:1.45;
}
.data-table.prospects select[name="signal_gap"]{
  min-width:130px;
}
@media(max-width:1100px){
  .insight-grid,.reason-grid{grid-template-columns:1fr;}
}
.compact-list{margin:12px 0 0 18px;padding:0;color:#526177;font-size:13px;line-height:1.55}.compact-list li{margin:2px 0}.inline-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.inline-form input[type=number]{max-width:110px}.signal-strip{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.codebox{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#071526;color:#dbeafe;border-radius:14px;padding:14px 16px;margin:12px 0;overflow:auto;white-space:nowrap;font-size:13px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}

/* v0.3.1.1 detail polish */
.detail-side{position:sticky;top:22px;align-self:start;max-height:calc(100vh - 44px);overflow:auto;padding-bottom:12px}
.prospect-tabs-panel{padding:0;overflow:hidden}
.detail-tabs{display:flex;gap:8px;align-items:center;padding:14px 16px;border-bottom:1px solid #dbe5f2;background:#f8fbff;position:sticky;top:0;z-index:2}
.detail-tabs a{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border:1px solid #dbe5f2;border-radius:999px;background:#fff;color:#0f3558;font-weight:900;font-size:12px;text-decoration:none;box-shadow:0 6px 14px rgba(15,35,68,.04)}
.detail-tabs a:hover{border-color:#1f69aa;color:#0d5b99}
.tab-section{padding:20px 22px;border-bottom:1px solid #edf2f8;scroll-margin-top:20px}
.tab-section:last-child{border-bottom:0}
.financial-scoreline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;padding:12px 14px;border:1px solid #dbe5f2;border-radius:16px;background:#f8fbff}
.financial-scoreline span{display:block;color:#66748a;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:900}
.financial-scoreline strong{font-size:26px;color:#07182f;line-height:1}
.financial-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.financial-kv{display:grid;grid-template-columns:1fr;gap:8px;margin:0 0 12px}
.financial-kv div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #edf2f8}
.financial-kv div:last-child{border-bottom:0}
.financial-kv dt{font-size:12px;color:#66748a;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.financial-kv dd{margin:0;text-align:right;font-weight:900;color:#07182f}
.financial-signals{border-top:1px solid #edf2f8;padding-top:10px}
.financial-signals span{display:block;color:#66748a;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;margin-bottom:6px}
.financial-signals ul{margin:0;padding-left:18px;color:#526177;line-height:1.45;font-size:13px}
.empty-mini{display:flex;flex-direction:column;gap:4px;margin-bottom:12px;padding:12px 14px;border:1px solid #dbe5f2;border-radius:14px;background:#f8fbff;color:#526177}
.empty-mini strong{color:#07182f}
@media(max-width:1050px){.detail-side{position:static;max-height:none}.detail-tabs{position:static;overflow:auto}.tab-section{padding:16px}}

/* v0.3.2 — Prospect detail tabs + sticky action sidebar polish */
.prospect-tabs-panel{padding:0!important;overflow:hidden!important;}
.detail-tabs{
  display:flex!important;
  gap:0!important;
  align-items:stretch!important;
  padding:0!important;
  border-bottom:1px solid #dbe5f2!important;
  background:#eef4fb!important;
  position:sticky!important;
  top:0!important;
  z-index:3!important;
}
.detail-tabs button{
  appearance:none;
  border:0!important;
  border-right:1px solid #dbe5f2!important;
  border-radius:0!important;
  background:#f8fbff!important;
  color:#0f3558!important;
  font-weight:900!important;
  font-size:12px!important;
  letter-spacing:.04em!important;
  padding:13px 18px!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
.detail-tabs button:hover{background:#fff!important;color:#0d5b99!important;}
.detail-tabs button.active{background:#0f5f9f!important;color:#fff!important;border-color:#0f5f9f!important;}
.tab-section{display:none!important;padding:22px 24px!important;border-bottom:0!important;scroll-margin-top:20px!important;}
.tab-section.active{display:block!important;}
.detail-side.action-side{position:sticky!important;top:22px!important;align-self:start!important;max-height:calc(100vh - 44px)!important;overflow:auto!important;padding-bottom:12px!important;}
.detail-side.action-side .panel:first-child{border-top:3px solid #1f69aa;}
@media(max-width:1050px){.detail-tabs{position:static!important;overflow:auto!important}.tab-section{padding:16px!important}.detail-side.action-side{position:static!important;max-height:none!important}}

/* v0.3.2.2 — Dashboard Layout + Prospect Search/Pagination */
.dashboard-main-grid{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(300px,.72fr);
  gap:18px;
  align-items:start;
}
.dashboard-actions .action-list a,
.dashboard-actions .action-list>div{
  overflow-wrap:anywhere;
  word-break:normal;
}
.dashboard-actions .action-list span{
  line-height:1.35;
}
.table-meta{
  min-width:72px;
  text-align:right;
  color:#657386;
}
.table-meta strong{
  display:block;
  font-size:22px;
  line-height:1;
  color:#07182f;
  letter-spacing:-.04em;
}
.table-meta span{
  display:block;
  margin-top:3px;
  font-size:11px;
  text-transform:uppercase;
  font-weight:900;
  letter-spacing:.08em;
}
.pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:14px;
  padding:12px 14px;
  background:#f8fafc;
  border:1px solid #dbe5f2;
  border-radius:14px;
  color:#657386;
  font-size:13px;
}
.pager-buttons{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.page-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:31px;
  height:31px;
  border:1px solid #dbe5f2;
  border-radius:10px;
  background:#fff;
  color:#0f3558;
  font-weight:900;
  text-decoration:none;
  font-size:12px;
}
.page-pill.active{
  background:#0f5f9f;
  color:#fff;
  border-color:#0f5f9f;
}
.btn.disabled,
span.btn.disabled{
  opacity:.45;
  cursor:not-allowed;
  pointer-events:none;
}
.compact-empty{
  padding:18px!important;
  margin:4px 0;
}
.smart-filters select[name="per_page"]{
  min-width:108px;
}
@media(max-width:1180px){
  .dashboard-main-grid{grid-template-columns:1fr;}
  .pagination{align-items:flex-start;flex-direction:column;}
}

/* v0.3.2.3 — Prospect Detail Clarity Polish */
.profile-meta{font-size:15px;color:#0f172a;margin:0 0 16px 0;letter-spacing:.01em}
.hero-badges .badge[title]{cursor:help}
.detail-hero .muted:empty{display:none}

/* v0.3.3.1 — Discovery Profiles Polish + Worker Command UX */
.discovery-stats{margin-bottom:18px;}
.help-dot{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border-radius:999px;background:#e6f0fb;color:#0f5f9f;font-size:11px;font-weight:900;margin-left:4px;cursor:help;vertical-align:middle;}
.discovery-result{display:inline-block;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:help;}
.cron-panel .panel-head{align-items:center;}
.codebox.wrapped{white-space:pre-wrap;word-break:break-word;overflow-x:hidden;line-height:1.55;}
.action-list.compact{margin-top:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.action-list.compact>div{padding:12px 14px;}
@media(max-width:900px){.action-list.compact{grid-template-columns:1fr}.discovery-result{max-width:150px}}

/* v0.3.3.3 Settings UX Polish */
.settings-hero{margin-bottom:18px;}
.settings-modern{grid-template-columns:repeat(2,minmax(0,1fr)) !important;max-width:1280px;align-items:start;}
.settings-modern .setting-card{padding:22px;}
.setting-card .panel-head p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.45;}
.setting-row{display:flex;flex-direction:column;gap:8px;margin-bottom:16px;}
.setting-row label{display:flex;flex-direction:column;gap:4px;font-weight:900;color:var(--text);}
.setting-row label span{font-weight:600;color:var(--muted);font-size:12px;line-height:1.4;}
.setting-row input,.setting-row select{min-height:43px;}
.setting-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.choice{display:flex !important;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:14px;background:#f8fafc;padding:11px 12px;margin:0 !important;cursor:pointer;}
.choice input{width:auto;margin-top:3px;box-shadow:none;}
.choice span{display:flex !important;flex-direction:column;gap:2px;margin:0 !important;}
.choice strong{font-size:13px;}
.choice small{font-size:11px !important;color:var(--muted) !important;margin:0 !important;}
.switch-row{display:flex !important;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--line);background:#f8fafc;border-radius:16px;padding:14px 16px;margin:0 0 14px !important;}
.switch-row span{display:flex !important;flex-direction:column;gap:3px;margin:0 !important;}
.switch-row strong{font-size:14px;}
.switch-row small{font-size:12px !important;line-height:1.35;color:var(--muted) !important;margin:0 !important;}
.switch-row input[type="checkbox"]{width:46px;height:26px;appearance:none;border-radius:999px;background:#cbd5e1;border:0;position:relative;box-shadow:none;flex:0 0 auto;cursor:pointer;}
.switch-row input[type="checkbox"]:before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:white;box-shadow:0 1px 4px rgba(15,23,42,.25);transition:all .18s ease;}
.switch-row input[type="checkbox"]:checked{background:#1764a8;}
.switch-row input[type="checkbox"]:checked:before{left:23px;}
.switch-row.danger input[type="checkbox"]:checked{background:#b42318;}
.advanced-box{border:1px solid var(--line);border-radius:16px;background:#fff;margin-top:8px;padding:0;overflow:hidden;}
.advanced-box summary{padding:14px 16px;cursor:pointer;font-weight:900;background:#f8fafc;}
.advanced-box .setting-row{padding:14px 16px 0;margin:0 0 10px;}
.notice.warning{border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;border-radius:14px;padding:12px 14px;font-weight:700;font-size:12px;line-height:1.45;}
.settings-savebar{display:flex;align-items:center;gap:14px;max-width:1280px;}
.settings-savebar span{color:var(--muted);font-weight:700;font-size:13px;}
@media(max-width:1180px){.settings-modern{grid-template-columns:1fr !important}.setting-pair,.choice-grid{grid-template-columns:1fr}}

/* v0.3.3.3 Settings UX Polish */
.settings-hero{margin-bottom:18px;}
.settings-modern{grid-template-columns:repeat(2,minmax(0,1fr)) !important;max-width:1280px;align-items:start;}
.settings-modern .setting-card{padding:22px;}
.setting-card .panel-head p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.45;}
.setting-row{display:flex;flex-direction:column;gap:8px;margin-bottom:16px;}
.setting-row label{display:flex;flex-direction:column;gap:4px;font-weight:900;color:var(--text);}
.setting-row label span{font-weight:600;color:var(--muted);font-size:12px;line-height:1.4;}
.setting-row input,.setting-row select{min-height:43px;}
.setting-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.choice{display:flex !important;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:14px;background:#f8fafc;padding:11px 12px;margin:0 !important;cursor:pointer;}
.choice input{width:auto;margin-top:3px;box-shadow:none;}
.choice span{display:flex !important;flex-direction:column;gap:2px;margin:0 !important;}
.choice strong{font-size:13px;}
.choice small{font-size:11px !important;color:var(--muted) !important;margin:0 !important;}
.switch-row{display:flex !important;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--line);background:#f8fafc;border-radius:16px;padding:14px 16px;margin:0 0 14px !important;}
.switch-row span{display:flex !important;flex-direction:column;gap:3px;margin:0 !important;}
.switch-row strong{font-size:14px;}
.switch-row small{font-size:12px !important;line-height:1.35;color:var(--muted) !important;margin:0 !important;}
.switch-row input[type="checkbox"]{width:46px;height:26px;appearance:none;border-radius:999px;background:#cbd5e1;border:0;position:relative;box-shadow:none;flex:0 0 auto;cursor:pointer;}
.switch-row input[type="checkbox"]:before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:white;box-shadow:0 1px 4px rgba(15,23,42,.25);transition:all .18s ease;}
.switch-row input[type="checkbox"]:checked{background:#1764a8;}
.switch-row input[type="checkbox"]:checked:before{left:23px;}
.switch-row.danger input[type="checkbox"]:checked{background:#b42318;}
.advanced-box{border:1px solid var(--line);border-radius:16px;background:#fff;margin-top:8px;padding:0;overflow:hidden;}
.advanced-box summary{padding:14px 16px;cursor:pointer;font-weight:900;background:#f8fafc;}
.advanced-box .setting-row{padding:14px 16px 0;margin:0 0 10px;}
.notice.warning{border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;border-radius:14px;padding:12px 14px;font-weight:700;font-size:12px;line-height:1.45;}
.settings-savebar{display:flex;align-items:center;gap:14px;max-width:1280px;}
.settings-savebar span{color:var(--muted);font-weight:700;font-size:13px;}
@media(max-width:1180px){.settings-modern{grid-template-columns:1fr !important}.setting-pair,.choice-grid{grid-template-columns:1fr}}
/* v0.3.6 — Lead readiness polish */
.readiness-hero{border:1px solid #d8e3ef;background:linear-gradient(180deg,#f8fbff,#ffffff);border-radius:14px;padding:18px;margin-bottom:16px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.readiness-hero h2{margin:8px 0 4px;font-size:22px;letter-spacing:-.02em;color:#071d38}
.readiness-hero p{margin:0;color:#526378;max-width:760px;line-height:1.45}
.two-col.mini{grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.metric-card h3{margin:0 0 10px;font-size:14px;color:#071d38}
.metric-card ul{margin:0;padding-left:18px;color:#43536a;line-height:1.55}
.metric-card li{margin:3px 0}
@media(max-width:980px){.two-col.mini{grid-template-columns:1fr}.readiness-hero{display:block}}

/* v0.3.6.10 — Discovery + Financials polish */
.stat-grid.six,.financial-overview{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin:18px 0 22px;}
.financial-actions .panel-head{margin-bottom:12px;}
.worker-mini .action-list{margin-top:8px;}
.view-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 16px;}
.view-tabs .tab{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border:1px solid var(--line);background:#f8fafc;color:#17456f;text-decoration:none;font-weight:900;font-size:12px;border-radius:0;}
.view-tabs .tab.active{background:#1764a8;border-color:#1764a8;color:#fff;}
.btn.danger{background:#fff;border:1px solid #fecaca;color:#b42318;box-shadow:none;}
.btn.danger:hover{background:#fff5f5;}
.data-table.compact .row-actions{display:flex;gap:6px;flex-wrap:wrap;}
@media(max-width:1280px){.stat-grid.six,.financial-overview{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:760px){.stat-grid.six,.financial-overview{grid-template-columns:1fr;}}

/* v0.3.6.11 — admin list readability polish */
.table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:16px;}
.data-table.compact th,.data-table.compact td{padding:10px 11px;vertical-align:middle;}
.data-table.compact small{font-size:11px;line-height:1.25;}
.nowrap{white-space:nowrap;}
.payload-cell{max-width:720px;min-width:260px;}
.payload-details{max-width:760px;}
.payload-details summary{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:6px 10px;border:1px solid #dbe5f2;border-radius:10px;background:#f4f7fb;color:#23527f;font-weight:850;font-size:12px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.payload-details summary::-webkit-details-marker{display:none;}
.payload-details summary:after{content:'View';font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#6b7688;margin-left:4px;}
.payload-details[open] summary{border-color:#bfd5ee;background:#eef6ff;}
.payload-details[open] summary:after{content:'Hide';}
.payload-details pre{margin:8px 0 0;padding:12px;border-radius:12px;background:#0b1725;color:#dce8f5;white-space:pre-wrap;word-break:break-word;max-height:260px;overflow:auto;font-size:12px;line-height:1.45;}
.audit-table td:nth-child(1),.audit-table th:nth-child(1){width:150px;}
.audit-table td:nth-child(2),.audit-table th:nth-child(2){width:220px;}
.audit-table td:nth-child(3),.audit-table th:nth-child(3){width:160px;}
.import-runs td,.import-runs th{white-space:nowrap;}
.import-runs td:nth-child(8){white-space:normal;}
.discovery-table .row-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;}
.discovery-result{display:inline-flex;align-items:center;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.financial-jobs td,.financial-jobs th{white-space:nowrap;}
.financial-jobs td:first-child{white-space:normal;min-width:220px;}
.panel .data-table.compact{min-width:880px;}
@media(max-width:980px){.payload-cell{max-width:420px}.panel .data-table.compact{min-width:760px}}

/* v0.3.8.2 — review queue tabs + cleanup controls */
.queue-tabs{margin-top:10px;margin-bottom:16px;}
.queue-tabs .tab span{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;margin-left:8px;border-radius:999px;background:rgba(255,255,255,.25);font-size:11px;font-weight:950;}
.queue-stat-link{text-decoration:none;color:inherit;display:block;}
.queue-stat-link:hover{text-decoration:none;transform:translateY(-1px);box-shadow:0 18px 40px rgba(15,35,68,.12);}
.compact-notice{margin:0 0 14px;padding:10px 12px;border-radius:14px;}
.action-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}

/* v0.3.8.5 mobile admin polish + compact icon navigation */
.mobile-menu-toggle,.mobile-nav-backdrop{display:none}
.nav-link{gap:10px !important;}
.nav-ico{display:inline-flex !important;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 24px;border-radius:8px;background:rgba(255,255,255,.10);font-size:13px;line-height:1;color:inherit;text-align:center}.nav-link.active .nav-ico{background:#e8f1fb;color:#155a9c}.nav-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.row-actions .btn.small{min-width:0}.action-row.wrap{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width: 900px){
  html,body{width:100%;max-width:100%;overflow-x:hidden;font-size:14px;}
  .mobile-menu-toggle{display:inline-flex !important;width:auto !important;flex:0 0 auto;gap:8px;align-items:center;border-radius:12px;padding:9px 12px;box-shadow:0 5px 14px rgba(21,90,156,.16);}
  .hamburger-icon{font-size:18px;line-height:1;}
  .mobile-nav-backdrop{display:none;position:fixed;inset:0;background:rgba(6,20,38,.45);z-index:999;backdrop-filter:blur(2px);}
  body.nav-open .mobile-nav-backdrop{display:block;}
  .sidebar{position:fixed !important;top:0 !important;left:0 !important;bottom:0 !important;width:min(86vw,330px) !important;min-width:0 !important;height:100vh !important;z-index:1000 !important;transform:translateX(-108%) !important;transition:transform .22s ease !important;border-radius:0 22px 22px 0 !important;box-shadow:18px 0 45px rgba(5,20,40,.32) !important;}
  body.nav-open .sidebar{transform:translateX(0) !important;}
  .main{margin-left:0 !important;width:100% !important;max-width:100vw !important;padding:14px 12px 42px !important;overflow-x:hidden !important;}
  .topbar{position:sticky;top:0;z-index:60;display:grid !important;grid-template-columns:auto minmax(0,1fr);gap:10px 12px;align-items:center !important;background:rgba(244,247,251,.95);backdrop-filter:blur(10px);padding:8px 0 12px;margin-bottom:14px !important;}
  .topbar h1{font-size:22px !important;line-height:1.12;word-break:break-word;}
  .topbar .user-chip{grid-column:1/-1;justify-self:start;font-size:12px;padding:6px 10px;}
  .eyebrow{font-size:9px;letter-spacing:.10em;}
  .brand{display:flex !important;margin-bottom:16px !important;}
  .nav{display:block !important;}
  .nav-group{margin-bottom:18px;}
  .nav-link{min-height:42px !important;font-size:14px !important;margin:5px 0 !important;}
  .panel,.hero,.detail-hero{border-radius:18px;padding:14px;max-width:100%;}
  .panel-head{gap:10px !important;}
  .detail-layout,.two-col,.settings-grid{display:block !important;}
  .stat-grid,.stat-grid.four{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important;}
  .stat-card{min-height:104px !important;padding:14px !important;border-radius:16px !important;}
  .stat-card strong{font-size:26px !important;}
  .filters,.smart-filters,.form-grid,.info-grid,.info-grid.compact,.metric-row{grid-template-columns:1fr !important;}
  .btn,button{min-height:40px;}
  .hero-actions,.bulk-bar,.inline-form{width:100%;flex-direction:column;align-items:stretch;}
  .view-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;}
  .view-tabs a{white-space:nowrap;}
  .detail-tabs{display:flex;overflow-x:auto;gap:6px;}
  .detail-tabs button{white-space:nowrap;flex:0 0 auto;}
  .table-scroll{overflow-x:visible;}
  .data-table,.data-table tbody,.data-table tr,.data-table td{display:block;width:100% !important;min-width:0 !important;}
  .data-table{border-collapse:separate !important;border-spacing:0 !important;}
  .data-table tr:first-child{display:none;}
  .data-table tr{background:#fff;border:1px solid var(--line);border-radius:15px;padding:10px;margin:10px 0;box-shadow:0 6px 18px rgba(15,35,65,.04);}
  .data-table td{border-bottom:0 !important;padding:7px 6px !important;}
  .data-table td .btn.small,.row-actions .btn.small{width:auto;}
  .payload-cell details{max-width:100%;}
  .json-box{max-width:100%;font-size:11px;}
}
@media (max-width: 520px){.stat-grid,.stat-grid.four{grid-template-columns:1fr !important}.panel{padding:12px}.topbar h1{font-size:20px !important}.user-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis}.score-pill{width:36px;height:36px}.detail-score .score-pill{width:54px;height:54px}}

/* v0.3.8.5 contact intelligence + outreach readiness polish */
.subsection-title{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#536579;margin:18px 0 10px;font-weight:800}
.btn.danger-soft,button.danger-soft{background:#fff4f2;color:#b42318;border:1px solid #ffd3cc}
.btn.danger-soft:hover,button.danger-soft:hover{background:#ffe4df;color:#8f1d14}
.data-table .badge-danger{white-space:nowrap}
@media(max-width:760px){.subsection-title{margin-top:14px}.row-actions .danger-soft{width:100%}.data-table td .row-actions{gap:6px}}

/* v0.3.8.5.1 discovery intake watchdog */
.button-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end}.button-row .btn{white-space:nowrap}.intake-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}.intake-summary>div{border:1px solid var(--line);border-radius:16px;background:#f8fbff;padding:13px 14px}.intake-summary span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#66788d;font-weight:900}.intake-summary strong{display:block;margin-top:4px;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.intake-summary small{display:block;margin-top:4px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.intake-panel .advanced-box{margin-top:12px}.stat-card.info{background:#eef7ff;border-color:#c9e3ff}.stat-card.info strong{color:#155a9c}@media(max-width:900px){.button-row{width:100%;justify-content:stretch}.button-row .btn{flex:1 1 auto}.intake-summary{grid-template-columns:1fr}.intake-summary strong,.intake-summary small{white-space:normal}.hero .button-row{margin-top:10px}}

/* v0.3.8.6 — Data Quality Workbench + queue throughput controls */
.quality-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.quality-overview .stat-card strong{font-size:30px}.mini-metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mini-metric-grid>div{border:1px solid var(--line);border-radius:16px;background:#f8fbff;padding:13px 14px}.mini-metric-grid span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;font-weight:900}.mini-metric-grid strong{display:block;margin-top:5px;font-size:24px;color:#082241}.bulk-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:16px;background:#f8fbff}.bulk-bar select{min-height:38px;border:1px solid var(--line);border-radius:12px;padding:0 10px;background:#fff}.compact-filter{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.compact-filter label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:800;color:#41516a}.compact-filter input,.compact-filter select{min-height:38px;border:1px solid var(--line);border-radius:12px;padding:0 10px;background:#fff}.compact-filter .check-row{flex-direction:row;align-items:center;gap:7px;margin-bottom:8px}.compact-filter .check-row input{min-height:0}.data-table.selectable th:first-child,.data-table.selectable td:first-child{width:34px;min-width:34px}.data-table.selectable input[type="checkbox"]{width:16px;height:16px}.three-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.btn.ghost{background:#fff;color:#285c91;border:1px solid var(--line)}.notice.info{background:#eef7ff;border-color:#c9e3ff;color:#155a9c}
@media(max-width:1100px){.quality-grid,.three-col{grid-template-columns:1fr}.compact-filter{align-items:stretch}.compact-filter label,.compact-filter .btn{width:100%}.mini-metric-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.mini-metric-grid{grid-template-columns:1fr}.bulk-bar select,.bulk-bar .btn{width:100%}.data-table.selectable td:first-child{padding-top:12px!important}.quality-overview .stat-card strong{font-size:26px}}

/* v0.3.8.7 — Places pilot + prospect filter/signal polish */
.structured-filters{display:block!important;border:1px solid var(--line);background:#f8fbff;border-radius:18px;padding:12px;margin:14px 0 12px}
.filter-toolbar{display:grid;grid-template-columns:1.25fr 1.1fr .8fr 1fr 1fr 1fr 1fr auto;gap:10px;align-items:end}
.filter-section{display:flex;flex-direction:column;gap:7px;min-width:0}.filter-section label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:950;color:#5c6b80}.filter-section select,.filter-section input{width:100%;min-height:38px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:0 10px}.filter-main input{min-width:220px}.filter-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:10px}.per-page-control{justify-self:end;min-width:110px}.badge.more{background:#eef2f7!important;color:#42556d!important;border:1px solid #dbe4ef;cursor:help}.pager-ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:22px;color:#64748b;font-weight:900}.stat-grid.five{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.inline-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.local-match-list{display:flex;flex-direction:column;gap:4px}.local-match-list small{color:#64748b}.local-evidence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.local-evidence-grid div{border:1px solid var(--line);border-radius:12px;background:#fff;padding:8px}.local-evidence-grid span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.07em;font-weight:900;color:#64748b}.local-evidence-grid strong{display:block;font-size:13px;color:#09223f;word-break:break-word}
@media(max-width:1280px){.filter-toolbar{grid-template-columns:repeat(4,minmax(0,1fr))}.per-page-control{justify-self:stretch}.stat-grid.five{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.filter-toolbar{grid-template-columns:1fr}.filter-main input{min-width:0}.filter-actions{flex-direction:column}.filter-actions .btn{width:100%}.stat-grid.five{grid-template-columns:1fr}.local-evidence-grid{grid-template-columns:1fr}.inline-fields{grid-template-columns:1fr}}


/* v0.3.8.7.7 — Freshness Engine + dense signal UI */
.data-table.prospects th.company-col,.data-table.prospects td:nth-child(2){min-width:220px;max-width:330px}
.data-table.prospects th.signals-col,.data-table.prospects td:nth-child(8){min-width:190px}
.data-table.prospects td:nth-child(7),.data-table.prospects th:nth-child(7),.data-table.prospects td:nth-child(12),.data-table.prospects th:nth-child(12),.data-table.prospects td:nth-child(13),.data-table.prospects th:nth-child(13){text-align:center;width:48px}
.icon-pill{display:inline-flex!important;align-items:center;justify-content:center;min-width:26px;height:26px;border-radius:999px;font-weight:900;font-size:12px;text-decoration:none;padding:0 7px;box-shadow:inset 0 0 0 1px rgba(20,60,100,.05);white-space:nowrap}
.link-icon{transition:.12s ease}.link-icon:hover{filter:brightness(.95);transform:translateY(-1px)}
.detail-hero.enhanced{display:grid;grid-template-columns:minmax(230px,1fr) minmax(320px,2.3fr) auto;gap:18px;align-items:center}
.quick-signal-strip{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start;min-height:48px;padding:10px 12px;border-radius:18px;background:rgba(255,255,255,.62);border:1px solid rgba(192,211,230,.78)}
.quick-signal-strip .badge{font-size:12px}
@media(max-width:900px){.detail-hero.enhanced{grid-template-columns:1fr}.quick-signal-strip{justify-content:flex-start}.data-table.prospects th:nth-child(4),.data-table.prospects td:nth-child(4),.data-table.prospects th:nth-child(10),.data-table.prospects td:nth-child(10){display:none}}
@media(max-width:640px){.data-table.prospects th.company-col,.data-table.prospects td:nth-child(2){min-width:0;max-width:none}.data-table.prospects td:nth-child(7),.data-table.prospects td:nth-child(12),.data-table.prospects td:nth-child(13){text-align:left;width:auto}.icon-pill{min-width:24px;height:24px}}

/* v0.3.8.7.8 — Responsive Density + Mobile Filter Drawer
   UI-only patch. Keeps data, worker, scanner and queue behaviour unchanged. */
:root{
  --swp-touch:44px;
  --swp-touch-lg:48px;
}
html,body{
  font-size:15.5px !important;
  line-height:1.46 !important;
  text-size-adjust:100%;
  -webkit-text-size-adjust:100%;
}
.main{
  padding:24px 28px 64px !important;
}
.topbar h1{
  font-size:32px !important;
  line-height:1.08 !important;
}
.panel{
  padding:17px !important;
  margin-bottom:16px !important;
}
.panel h2,
.panel-head h2{
  font-size:19px !important;
  line-height:1.18 !important;
}
.panel-head p,
.hero p,
.detail-hero p{
  font-size:14px !important;
  line-height:1.42 !important;
}
.nav-link{
  min-height:44px !important;
  font-size:14.5px !important;
}
.nav-ico{
  width:28px !important;
  height:28px !important;
  flex-basis:28px !important;
  font-size:15px !important;
  border-radius:10px !important;
}
.btn,button,
input,select,textarea{
  font-size:14.5px !important;
}
.btn,button{
  min-height:var(--swp-touch) !important;
  padding:10px 15px !important;
}
.btn.small,button.small{
  min-height:38px !important;
  padding:8px 12px !important;
  font-size:13px !important;
}
input,select,textarea{
  min-height:42px !important;
}
.badge{
  font-size:12px !important;
  padding:5px 9px !important;
}
.icon-pill{
  min-width:32px !important;
  height:32px !important;
  font-size:15px !important;
  padding:0 9px !important;
}
.score-pill{
  width:46px !important;
  height:46px !important;
  min-width:46px !important;
  font-size:16px !important;
}
.data-table th{
  font-size:11.5px !important;
  padding:12px 11px !important;
}
.data-table td{
  font-size:14px !important;
  padding:12px 11px !important;
}
.data-table small{
  font-size:12px !important;
}
.table-scroll{
  width:100%;
}
.mobile-filter-toggle{
  display:none;
}
.structured-filters{
  margin-top:10px !important;
}
.filter-toolbar{
  grid-template-columns:minmax(220px,1.15fr) minmax(170px,1fr) minmax(130px,.7fr) minmax(160px,1fr) minmax(160px,1fr) minmax(160px,1fr) minmax(130px,.65fr) !important;
}
.filter-section{
  gap:6px !important;
}
.filter-section label{
  font-size:10.5px !important;
}
.prospects .strong-link,
.data-table.prospects .strong-link{
  max-width:none !important;
  font-size:14.5px !important;
  line-height:1.2 !important;
}
.data-table.prospects small{
  font-size:11.5px !important;
  max-width:210px !important;
}
.data-table.prospects .badge{
  font-size:11.5px !important;
  max-width:140px;
}
.data-table.prospects .score-pill{
  width:36px !important;
  height:36px !important;
  min-width:36px !important;
  font-size:13.5px !important;
}
.compact-badges{
  max-width:230px !important;
  gap:5px !important;
}
.quick-signal-strip{
  min-height:54px !important;
  padding:11px 13px !important;
}
.quick-signal-strip .badge{
  font-size:12.5px !important;
}
.detail-hero.enhanced{
  grid-template-columns:minmax(250px,1fr) minmax(360px,2.4fr) auto !important;
}
.view-tabs{
  margin:10px 0 12px !important;
}
.view-tabs a{
  font-size:13.5px !important;
  padding:8px 12px !important;
}
.bulk-bar{
  margin:10px 0 12px !important;
}
@media (min-width:1500px){
  .main{padding-left:36px !important;padding-right:36px !important;}
  .panel{padding:19px !important;}
  .data-table.prospects th.company-col,.data-table.prospects td:nth-child(2){min-width:260px;max-width:420px}
  .data-table.prospects th.signals-col,.data-table.prospects td:nth-child(8){min-width:250px}
}
@media (max-width:1180px){
  .filter-toolbar{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
  .stat-grid.five{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width:900px){
  html,body{
    font-size:16px !important;
    line-height:1.42 !important;
    overflow-x:hidden !important;
  }
  .main{
    padding:10px 10px 36px !important;
  }
  .topbar{
    grid-template-columns:auto minmax(0,1fr) !important;
    padding:7px 0 9px !important;
    margin-bottom:10px !important;
  }
  .topbar h1{
    font-size:24px !important;
    line-height:1.08 !important;
    letter-spacing:-.035em !important;
  }
  .mobile-menu-toggle{
    min-height:44px !important;
    padding:9px 12px !important;
  }
  .hamburger-icon{
    font-size:21px !important;
  }
  .sidebar{
    width:min(90vw,360px) !important;
    padding:20px 16px !important;
  }
  .brand-copy strong{
    font-size:19px !important;
  }
  .nav-link{
    min-height:48px !important;
    font-size:16px !important;
    border-radius:14px !important;
  }
  .nav-ico{
    width:32px !important;
    height:32px !important;
    flex-basis:32px !important;
    font-size:17px !important;
  }
  .panel,.hero,.detail-hero{
    border-radius:16px !important;
    padding:12px !important;
    margin-bottom:11px !important;
  }
  .panel-head{
    margin-bottom:10px !important;
  }
  .panel h2,.panel-head h2{
    font-size:20px !important;
  }
  .panel-head p,.hero p,.detail-hero p{
    font-size:14px !important;
  }
  .hero h2,.detail-hero h2{
    font-size:24px !important;
  }
  .stat-grid,.stat-grid.four,.stat-grid.five{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:9px !important;
    margin-bottom:11px !important;
  }
  .stat-card{
    min-height:92px !important;
    padding:12px !important;
    border-radius:15px !important;
  }
  .stat-card span{
    font-size:11.5px !important;
  }
  .stat-card strong{
    font-size:27px !important;
    margin:5px 0 3px !important;
  }
  .stat-card small{
    font-size:12px !important;
  }
  .view-tabs{
    gap:7px !important;
    margin:6px -2px 10px !important;
  }
  .view-tabs a{
    padding:8px 11px !important;
    font-size:13px !important;
    flex:0 0 auto !important;
  }
  .mobile-filter-toggle{
    display:flex !important;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    width:100% !important;
    margin:8px 0 10px;
    padding:11px 12px !important;
    min-height:50px !important;
    border:1px solid #cfe0f4;
    background:#fff;
    color:var(--blue);
    border-radius:15px;
    box-shadow:0 8px 22px rgba(15,35,65,.06);
    text-align:left;
  }
  .mobile-filter-toggle span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    border-radius:11px;
    background:var(--blue-2);
    font-size:19px;
    flex:0 0 32px;
  }
  .mobile-filter-toggle strong{
    display:block;
    font-size:15.5px;
    line-height:1.1;
  }
  .mobile-filter-toggle em{
    display:block;
    margin-left:auto;
    color:#64748b;
    font-size:12px;
    font-style:normal;
    font-weight:700;
  }
  .structured-filters[data-mobile-filter-panel]{
    display:none !important;
    margin:0 0 10px !important;
    padding:11px !important;
    border-radius:15px !important;
  }
  .structured-filters[data-mobile-filter-panel].is-open{
    display:block !important;
  }
  .filter-toolbar{
    grid-template-columns:1fr !important;
    gap:9px !important;
  }
  .filter-section{
    gap:6px !important;
  }
  .filter-section label{
    font-size:11px !important;
  }
  .filter-section select,.filter-section input{
    min-height:44px !important;
    font-size:15px !important;
  }
  .filter-actions{
    margin-top:10px !important;
    gap:8px !important;
  }
  .filter-actions .btn{
    width:100% !important;
  }
  .bulk-bar{
    padding:9px !important;
    gap:8px !important;
    margin:8px 0 10px !important;
    border-radius:14px !important;
  }
  .bulk-bar select,.bulk-bar .btn{
    width:100% !important;
    min-height:44px !important;
  }
  .data-table,.data-table tbody,.data-table tr,.data-table td{
    display:block;
    width:100% !important;
    min-width:0 !important;
  }
  .data-table tr:first-child{
    display:none !important;
  }
  .data-table tr{
    padding:9px 10px !important;
    margin:8px 0 !important;
    border-radius:15px !important;
    box-shadow:0 6px 16px rgba(15,35,65,.045) !important;
  }
  .data-table td{
    display:grid !important;
    grid-template-columns:minmax(88px,30%) minmax(0,1fr);
    gap:8px;
    align-items:start;
    padding:6px 0 !important;
    font-size:15px !important;
    line-height:1.3 !important;
  }
  .data-table td:before{
    content:attr(data-label);
    display:block;
    color:#64748b;
    font-size:11px;
    font-weight:900;
    letter-spacing:.06em;
    text-transform:uppercase;
    padding-top:2px;
  }
  .data-table td[data-label=""],.data-table td:first-child{
    grid-template-columns:1fr;
  }
  .data-table td[data-label=""]:before,.data-table td:first-child:before{
    display:none;
  }
  .data-table.prospects tr{
    padding:10px !important;
  }
  .data-table.prospects td:nth-child(2){
    display:block !important;
    padding:0 0 8px !important;
    border-bottom:1px solid var(--line) !important;
  }
  .data-table.prospects td:nth-child(2):before{
    display:none !important;
  }
  .data-table.prospects .strong-link{
    font-size:18px !important;
    line-height:1.15 !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    max-width:none !important;
  }
  .data-table.prospects small{
    font-size:13px !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    max-width:none !important;
    margin-top:3px !important;
  }
  .data-table.prospects .badge,
  .badge{
    font-size:12.5px !important;
    padding:6px 9px !important;
    max-width:100% !important;
  }
  .data-table.prospects .score-pill,.score-pill{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    font-size:15px !important;
  }
  .icon-pill{
    min-width:40px !important;
    height:40px !important;
    font-size:18px !important;
  }
  .compact-badges{
    max-width:100% !important;
    flex-wrap:wrap !important;
  }
  .score-row,
  .compact-score{
    align-items:center !important;
    flex-wrap:wrap;
  }
  .detail-hero.enhanced{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  .quick-signal-strip{
    min-height:0 !important;
    padding:9px !important;
    border-radius:14px !important;
    gap:6px !important;
  }
  .quick-signal-strip .badge{
    font-size:12.5px !important;
  }
  .detail-score{
    text-align:left !important;
    display:flex;
    align-items:center;
    gap:9px;
  }
  .detail-score span{
    margin-top:0 !important;
    font-size:13px !important;
  }
  .info-grid div,.local-evidence-grid div,.mini-metric-grid>div{
    padding:10px !important;
    border-radius:13px !important;
  }
}
@media (max-width:520px){
  .main{padding-left:8px !important;padding-right:8px !important;}
  .topbar h1{font-size:22px !important;}
  .panel,.hero,.detail-hero{padding:10px !important;}
  .stat-grid,.stat-grid.four,.stat-grid.five{
    grid-template-columns:1fr 1fr !important;
  }
  .stat-card strong{font-size:25px !important;}
  .data-table td{
    grid-template-columns:minmax(78px,32%) minmax(0,1fr);
    gap:7px;
  }
  .data-table.prospects .strong-link{
    font-size:17px !important;
  }
  .mobile-filter-toggle em{
    display:none;
  }
}


/* v0.3.8.7.9 — Broader mobile admin polish
   UI-only patch. Improves the remaining operational pages without changing queues, scanners, workers or database logic. */
@media (max-width: 820px){
  body{font-size:15px;}
  .main{padding:18px 14px 28px;}
  .topbar{padding:16px 16px 14px; gap:12px; align-items:flex-start;}
  .topbar h1{font-size:2rem; line-height:1.02;}
  .topbar .user-chip{width:100%; order:3; justify-content:flex-start;}
  .topbar .user-chip span{display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}

  .hero,
  .panel,
  .dashboard-actions,
  .stat-card{border-radius:20px;}

  .hero,
  .hero.compact,
  .panel,
  .dashboard-actions,
  .stat-card,
  .quality-grid .panel,
  .queue-grid .panel{padding:18px 16px;}

  .hero h2,
  .panel-head h2{line-height:1.02;}
  .hero p,
  .panel-head p,
  .panel > p:first-of-type{line-height:1.45;}

  .hero-actions,
  .button-row,
  .action-row,
  .dashboard-actions .action-list,
  .panel-head,
  .compact-filter,
  .inline-form,
  .form-grid,
  .mini-metric-grid,
  .quality-grid,
  .view-tabs,
  .bulk-bar{gap:10px;}

  .hero-actions .btn,
  .button-row .btn,
  .action-row .btn,
  .compact-filter .btn,
  .inline-form .btn,
  .dashboard-actions .action-list a{
    width:100%;
    justify-content:center;
    min-height:46px;
  }

  .inline-form,
  .compact-filter,
  .form-grid,
  .discovery-form,
  .search-toolbar{grid-template-columns:1fr;}

  .inline-form > *,
  .compact-filter > *,
  .form-grid > *,
  .discovery-form > *{min-width:0; width:100%;}

  .stat-grid,
  .stat-grid.two,
  .stat-grid.three,
  .stat-grid.four,
  .stat-grid.five,
  .stat-grid.six,
  .quality-grid,
  .mini-metric-grid,
  .dashboard-main-grid,
  .queue-grid,
  .two-col{grid-template-columns:1fr; gap:14px;}

  .stat-card{min-height:auto;}
  .stat-card strong,
  .metric-number{font-size:2.45rem; line-height:1;}
  .stat-card small,
  .metric-label,
  .metric-note{line-height:1.35;}

  .bulk-bar{padding:12px 14px; align-items:flex-start;}
  .bulk-bar .count{width:100%;}
  .bulk-bar .button-row{width:100%;}

  .view-tabs{display:grid; grid-template-columns:1fr;}
  .view-tabs a{justify-content:center;}

  .table-scroll{overflow:visible;}
  .data-table{border-spacing:0 10px;}
  .data-table thead{display:none;}
  .data-table tbody,
  .data-table tr,
  .data-table td{display:block; width:100%;}
  .data-table tr{
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow);
    margin:0 0 10px;
  }
  .data-table td,
  .data-table.compact td{
    padding:10px 14px;
    border-bottom:1px solid var(--line);
    min-height:auto;
  }
  .data-table td:first-child{padding-top:14px;}
  .data-table td:last-child{padding-bottom:14px; border-bottom:none;}
  .data-table td::before{
    display:block;
    margin-bottom:4px;
    font-size:.69rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--muted);
  }

  .row-actions,
  .button-row,
  .action-row.wrap,
  .data-table td .row-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    width:100%;
  }

  .row-actions .btn,
  .button-row .btn,
  .action-row.wrap .btn,
  .data-table td .row-actions .btn{
    width:100%;
    min-height:44px;
    padding-inline:10px;
    justify-content:center;
  }

  .row-actions .danger,
  .row-actions .btn.danger,
  .button-row .danger,
  .button-row .btn.danger,
  .action-row.wrap .danger,
  .action-row.wrap .btn.danger{
    grid-column:1 / -1;
  }

  .dashboard-main-grid .panel:first-child .data-table td{
    padding-top:9px;
    padding-bottom:9px;
  }
  .dashboard-main-grid .panel:first-child .data-table td:first-child a{
    font-size:1.12rem;
    line-height:1.2;
  }

  .queue-filters,
  .mobile-filter-panel,
  .filter-panel{padding:14px; border-radius:18px;}

  .quality-grid .panel .action-row,
  .route-worker .panel .button-row,
  .route-discovery .panel .button-row,
  .route-scans .panel .button-row{display:grid; grid-template-columns:1fr; gap:8px;}

  .user-chip{padding:10px 12px;}
}

@media (max-width: 560px){
  .main{padding:16px 12px 24px;}
  .topbar{padding:14px 14px 12px;}
  .topbar h1,
  .hero h2{font-size:1.86rem;}
  .hero,
  .hero.compact,
  .panel,
  .dashboard-actions,
  .stat-card{padding:16px 14px;}
  .stat-card strong,
  .metric-number{font-size:2.2rem;}
  .hero-actions .btn,
  .button-row .btn,
  .action-row .btn,
  .compact-filter .btn,
  .inline-form .btn,
  .dashboard-actions .action-list a{min-height:44px;}
  .row-actions,
  .button-row,
  .action-row.wrap,
  .data-table td .row-actions{grid-template-columns:1fr;}
  .data-table td,
  .data-table.compact td{padding:9px 12px;}
  .data-table td:first-child{padding-top:12px;}
  .data-table td:last-child{padding-bottom:12px;}
  .dashboard-main-grid .panel:first-child .data-table td:first-child a{font-size:1.06rem;}
}

/* v0.3.8.8.1 — Prospect Header Status + Score Polish */
.detail-hero.enhanced{
  grid-template-columns:minmax(260px,1fr) minmax(440px,2.8fr) minmax(128px,148px) !important;
  align-items:stretch !important;
  gap:18px !important;
}
.quick-signal-strip{
  align-self:stretch !important;
  min-height:0 !important;
  padding:12px 14px !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#ffffff,#f8fbff) !important;
  border:1px solid #cfe0f4 !important;
  gap:8px !important;
}
.quick-signal-strip .badge.header-signal-badge{
  display:inline-flex !important;
  align-items:center !important;
  gap:7px !important;
  min-height:32px !important;
  padding:6px 10px !important;
  border-radius:999px !important;
  font-size:12.5px !important;
  line-height:1 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
  max-width:none !important;
}
.header-signal-badge .signal-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:19px;
  height:19px;
  padding:0 4px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  box-shadow:inset 0 0 0 1px rgba(15,35,65,.06);
  font-size:10.5px;
  font-weight:950;
  line-height:1;
}
.header-signal-badge .signal-label{
  display:inline-block;
  font-weight:900;
  letter-spacing:-.01em;
}
.header-signal-link:hover{
  transform:translateY(-1px);
  filter:brightness(.98);
}
.hero-score-card{
  align-self:stretch;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:128px;
  min-height:104px;
  padding:12px 12px 10px;
  border:1px solid #dbe7f4;
  border-radius:20px;
  background:linear-gradient(180deg,#fff,#f9fbff);
  box-shadow:0 10px 28px rgba(15,35,65,.07);
}
.hero-score-card strong{
  display:flex;
  align-items:center;
  justify-content:center;
  width:78px;
  height:78px;
  border-radius:999px;
  font-size:31px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.07em;
  background:#eef2f7;
  color:#526074;
  box-shadow:inset 0 0 0 1px rgba(15,35,65,.05);
}
.hero-score-card span{
  margin:0 !important;
  display:block;
  color:#526074;
  font-size:12px !important;
  font-weight:950;
  letter-spacing:.04em;
  text-transform:uppercase;
  text-align:center;
  line-height:1.15;
}
.hero-score-card.score-hot{border-color:#ffd6d1;}
.hero-score-card.score-hot strong{background:var(--red-bg);color:var(--red);}
.hero-score-card.score-warm{border-color:#ffe3ae;}
.hero-score-card.score-warm strong{background:var(--amber-bg);color:var(--amber);}
.hero-score-card.score-neutral{border-color:#cfe0f4;}
.hero-score-card.score-neutral strong{background:var(--blue-2);color:var(--blue);}
@media(max-width:1180px){
  .detail-hero.enhanced{
    grid-template-columns:minmax(240px,1fr) minmax(340px,2fr) minmax(118px,132px) !important;
  }
}
@media(max-width:900px){
  .detail-hero.enhanced{
    grid-template-columns:1fr !important;
  }
  .hero-score-card{
    width:100%;
    min-height:76px;
    flex-direction:row;
    justify-content:flex-start;
    padding:12px 14px;
  }
  .hero-score-card strong{
    width:62px;
    height:62px;
    font-size:25px;
    flex:0 0 62px;
  }
  .hero-score-card span{
    text-align:left;
    font-size:12.5px !important;
  }
  .quick-signal-strip{
    padding:11px 12px !important;
  }
  .quick-signal-strip .badge.header-signal-badge{
    min-height:34px !important;
    font-size:13px !important;
    padding:7px 10px !important;
  }
}
@media(max-width:520px){
  .quick-signal-strip .badge.header-signal-badge{
    width:auto !important;
    max-width:100% !important;
  }
  .hero-score-card strong{
    width:58px;
    height:58px;
    font-size:24px;
    flex-basis:58px;
  }
}

/* v0.3.8.8.2 — Dashboard Top Prospect Cards Polish */
.top-prospect-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.top-prospect-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);overflow:hidden;}
.top-prospect-accent{height:10px;background:linear-gradient(90deg,#d9e5f3,#eef3f8);}
.top-prospect-card.accent-hot .top-prospect-accent{background:linear-gradient(90deg,#f26b5f,#f5b8b1);}
.top-prospect-card.accent-warm .top-prospect-accent{background:linear-gradient(90deg,#f5b944,#f8ddb2);}
.top-prospect-card.accent-neutral .top-prospect-accent{background:linear-gradient(90deg,#2e73b7,#b7d3ef);}
.top-prospect-card.accent-muted .top-prospect-accent{background:linear-gradient(90deg,#bcc7d4,#e6ebf1);}
.top-prospect-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 16px 10px;}
.top-prospect-title-wrap{min-width:0;}
.top-prospect-title-wrap h3{margin:0;font-size:1.45rem;line-height:1.12;letter-spacing:-.03em;}
.top-prospect-title-wrap h3 a{color:var(--text);text-decoration:none;}
.top-prospect-title-wrap h3 a:hover{color:var(--blue);}
.top-prospect-title-wrap p{margin:8px 0 0;color:var(--muted);font-size:.98rem;line-height:1.35;}
.top-prospect-score{flex:0 0 auto;width:80px;min-width:80px;height:80px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #e7edf4;background:#f6f9fc;text-align:center;}
.top-prospect-score span{display:block;font-size:2rem;line-height:1;font-weight:950;letter-spacing:-.05em;}
.top-prospect-score small{display:block;margin-top:5px;text-transform:uppercase;letter-spacing:.08em;font-size:.64rem;color:var(--muted);font-weight:900;}
.top-prospect-score.score-hot{background:var(--red-bg);border-color:#ffd6d1;}.top-prospect-score.score-hot span{color:var(--red);}
.top-prospect-score.score-warm{background:var(--amber-bg);border-color:#ffe3ae;}.top-prospect-score.score-warm span{color:var(--amber);}
.top-prospect-score.score-neutral{background:var(--blue-2);border-color:#cfe0f4;}.top-prospect-score.score-neutral span{color:var(--blue);}
.top-prospect-score.score-muted{background:#eef2f7;border-color:#dde5ee;}.top-prospect-score.score-muted span{color:#6f7d90;}
.top-prospect-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 16px 16px;}
.top-prospect-field{background:#f8fbff;border:1px solid #dce6f2;border-radius:16px;padding:11px 12px;min-width:0;}
.top-prospect-field>span{display:block;margin-bottom:8px;font-size:.7rem;line-height:1;text-transform:uppercase;letter-spacing:.08em;color:#66788d;font-weight:900;}
.top-prospect-field .badge{margin:0;max-width:100%;}
@media(max-width:1180px){.top-prospect-list{grid-template-columns:1fr;}}
@media(max-width:700px){.top-prospect-head{padding:14px 14px 8px;}.top-prospect-title-wrap h3{font-size:1.3rem;}.top-prospect-title-wrap p{font-size:.94rem;}.top-prospect-score{width:72px;min-width:72px;height:72px;}.top-prospect-score span{font-size:1.8rem;}.top-prospect-meta{grid-template-columns:1fr;padding:0 14px 14px;}}
@media(max-width:420px){.top-prospect-head{gap:10px;}.top-prospect-title-wrap h3{font-size:1.22rem;}.top-prospect-score{width:66px;min-width:66px;height:66px;}.top-prospect-score span{font-size:1.6rem;}}

/* v0.3.8.8.3 — Prospects Workspace + Desktop Filter Polish */
.route-prospects .panel:first-of-type{
  border-radius:24px;
  background:linear-gradient(180deg,#fff,#f8fbff);
  border:1px solid #dbe6f2;
  box-shadow:0 18px 48px rgba(15,35,65,.08);
}
.route-prospects .panel:first-of-type .panel-head{
  align-items:center;
  padding-bottom:12px;
  border-bottom:1px solid #e4edf7;
}
.route-prospects .panel:first-of-type .panel-head h2{
  font-size:1.55rem;
  line-height:1.1;
}
.route-prospects .panel:first-of-type .panel-head p{
  margin-top:5px;
  font-size:.95rem;
}
.route-prospects .table-meta{
  min-width:112px;
  border-radius:18px;
  border:1px solid #dbe6f2;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,35,65,.06);
  padding:12px 14px;
  text-align:center;
}
.route-prospects .table-meta strong{
  display:block;
  font-size:1.65rem;
  line-height:1;
  letter-spacing:-.04em;
  color:#081b33;
}
.route-prospects .table-meta span{
  display:block;
  margin-top:4px;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#66788d;
}
.route-prospects .view-tabs{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(126px,1fr));
  gap:8px;
  padding:10px;
  margin:12px 0 12px !important;
  border:1px solid #e1eaf4;
  border-radius:18px;
  background:#f8fbff;
}
.route-prospects .view-tabs a{
  justify-content:center;
  min-height:34px;
  border-radius:13px !important;
  background:#fff;
  border:1px solid #dbe6f2;
  box-shadow:0 4px 12px rgba(15,35,65,.035);
  font-size:12.5px !important;
  padding:7px 10px !important;
}
.route-prospects .view-tabs a:hover{
  border-color:#bcd6f2;
  box-shadow:0 8px 20px rgba(15,35,65,.07);
}
.route-prospects .mobile-filter-toggle{
  display:flex !important;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  width:100% !important;
  margin:0 0 12px;
  padding:13px 14px !important;
  min-height:54px;
  border:1px solid #cfe0f4;
  background:#fff;
  color:var(--blue);
  border-radius:18px;
  box-shadow:0 10px 28px rgba(15,35,65,.065);
  text-align:left;
}
.route-prospects .mobile-filter-toggle span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  flex:0 0 36px;
  border-radius:13px;
  background:var(--blue-2);
  font-size:20px;
}
.route-prospects .mobile-filter-toggle strong{
  display:block;
  font-size:15.5px;
  line-height:1.1;
}
.route-prospects .mobile-filter-toggle em{
  display:block;
  margin-left:auto;
  color:#64748b;
  font-size:12.5px;
  font-style:normal;
  font-weight:750;
}
.route-prospects .structured-filters[data-mobile-filter-panel]{
  display:none !important;
  margin:0 0 12px !important;
  padding:14px !important;
  border:1px solid #dbe6f2 !important;
  border-radius:18px !important;
  background:#fff !important;
  box-shadow:0 12px 34px rgba(15,35,65,.055);
}
.route-prospects .structured-filters[data-mobile-filter-panel].is-open{
  display:block !important;
}
.route-prospects .filter-toolbar{
  display:grid !important;
  grid-template-columns:1.25fr 1fr .75fr 1fr 1fr 1fr .65fr !important;
  gap:10px !important;
  align-items:start !important;
}
.route-prospects .filter-section{
  min-width:0;
  gap:6px !important;
  padding:10px;
  border:1px solid #edf2f8;
  border-radius:15px;
  background:#f8fbff;
}
.route-prospects .filter-section label{
  font-size:10px !important;
  color:#607187;
  letter-spacing:.08em;
}
.route-prospects .filter-section select,
.route-prospects .filter-section input{
  min-height:36px !important;
  border-radius:11px !important;
  background:#fff !important;
  font-size:13px !important;
  padding:0 10px !important;
}
.route-prospects .filter-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:12px !important;
  padding-top:12px;
  border-top:1px solid #e7eef7;
}
.route-prospects .filter-actions .btn{
  min-width:104px;
}
.route-prospects .bulk-bar{
  background:#fff;
  border:1px solid #dbe6f2;
  border-radius:18px;
  box-shadow:0 10px 28px rgba(15,35,65,.055);
  padding:12px;
}
.route-prospects .data-table.prospects{
  border-collapse:separate !important;
  border-spacing:0 7px !important;
}
.route-prospects .data-table.prospects tr:not(:first-child){
  background:#fff;
  box-shadow:0 7px 20px rgba(15,35,65,.04);
}
.route-prospects .data-table.prospects tr:not(:first-child) td{
  border-top:1px solid #e4edf7;
  border-bottom:1px solid #e4edf7;
  background:#fff;
}
.route-prospects .data-table.prospects tr:not(:first-child) td:first-child{
  border-left:1px solid #e4edf7;
  border-radius:14px 0 0 14px;
}
.route-prospects .data-table.prospects tr:not(:first-child) td:last-child{
  border-right:1px solid #e4edf7;
  border-radius:0 14px 14px 0;
}
.route-prospects .data-table.prospects .strong-link{
  font-size:15px !important;
}
.route-prospects .data-table.prospects .score-pill{
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
}
@media(max-width:1280px){
  .route-prospects .filter-toolbar{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
  .route-prospects .view-tabs{grid-template-columns:repeat(auto-fit,minmax(118px,1fr));}
}
@media(max-width:900px){
  .route-prospects .panel:first-of-type .panel-head{align-items:flex-start;}
  .route-prospects .table-meta{text-align:left;min-width:0;width:100%;}
  .route-prospects .view-tabs{
    display:flex;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding:8px;
  }
  .route-prospects .view-tabs a{flex:0 0 auto;}
  .route-prospects .filter-toolbar{grid-template-columns:1fr !important;}
  .route-prospects .filter-section{padding:9px;}
  .route-prospects .filter-actions{flex-direction:column;}
  .route-prospects .filter-actions .btn{width:100%;}
  .route-prospects .data-table.prospects tr:not(:first-child){
    border-top:7px solid #cfe0f4;
  }
  .route-prospects .data-table.prospects tr:not(:first-child) td,
  .route-prospects .data-table.prospects tr:not(:first-child) td:first-child,
  .route-prospects .data-table.prospects tr:not(:first-child) td:last-child{
    border-left:0;
    border-right:0;
    border-radius:0;
    box-shadow:none;
  }
}
@media(max-width:520px){
  .route-prospects .mobile-filter-toggle em{display:none;}
  .route-prospects .view-tabs{margin-left:-2px !important;margin-right:-2px !important;}
}

/* v0.3.8.8.4 — Prospect List Card/Density Pass */
.prospect-bulk-bar{
  margin:12px 0 14px;
  background:#f8fbff;
  border:1px solid #dce8f5;
  border-radius:18px;
  justify-content:space-between;
}
.prospect-card-list{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.prospect-list-card{
  position:relative;
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 7px 22px rgba(15,35,65,.045);
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.prospect-list-card:hover{
  border-color:#bfd4ec;
  box-shadow:0 14px 32px rgba(15,35,65,.075);
  transform:translateY(-1px);
}
.prospect-list-accent{
  position:absolute;
  inset:0 auto 0 0;
  width:7px;
  background:#dbe5f0;
}
.prospect-list-card.accent-hot .prospect-list-accent{background:linear-gradient(180deg,#ee574c,#f8bbb5);}
.prospect-list-card.accent-warm .prospect-list-accent{background:linear-gradient(180deg,#eda718,#f6d695);}
.prospect-list-card.accent-neutral .prospect-list-accent{background:linear-gradient(180deg,#1764a8,#a8cceb);}
.prospect-list-card.accent-muted .prospect-list-accent{background:linear-gradient(180deg,#aeb9c6,#e4eaf1);}
.prospect-select{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:18px 6px 0 13px;
  margin:0;
}
.prospect-select input{
  width:17px;
  height:17px;
  min-height:0;
  padding:0;
}
.prospect-select span{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}
.prospect-list-content{
  padding:15px 16px 14px 4px;
  min-width:0;
}
.prospect-list-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:flex-start;
  margin-bottom:11px;
}
.prospect-list-title{min-width:0;}
.prospect-list-title h3{
  margin:0;
  font-size:18px;
  line-height:1.12;
  letter-spacing:-.025em;
}
.prospect-list-title h3 a{color:var(--text); text-decoration:none;}
.prospect-list-title h3 a:hover{color:var(--blue);}
.prospect-list-title p{
  margin:5px 0 0;
  font-size:12px;
  line-height:1.25;
  color:#6b7889;
  font-weight:700;
}
.prospect-list-score{
  width:58px;
  height:58px;
  min-width:58px;
  border-radius:50%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  border:1px solid #e4ebf4;
  background:#f3f6fa;
}
.prospect-list-score span{
  display:block;
  font-size:21px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.055em;
}
.prospect-list-score small{
  display:block;
  margin-top:4px;
  font-size:8.5px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#6b7889;
  font-weight:950;
}
.prospect-list-score.score-hot{background:var(--red-bg);border-color:#ffd6d1;}
.prospect-list-score.score-hot span{color:var(--red);}
.prospect-list-score.score-warm{background:var(--amber-bg);border-color:#ffe3ae;}
.prospect-list-score.score-warm span{color:var(--amber);}
.prospect-list-score.score-neutral{background:var(--blue-2);border-color:#cfe0f4;}
.prospect-list-score.score-neutral span{color:var(--blue);}
.prospect-list-score.score-muted span{color:#718096;}
.prospect-list-primary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-bottom:9px;
}
.prospect-list-primary>div{
  min-width:0;
  padding:9px 10px;
  border:1px solid #e2ebf5;
  border-radius:14px;
  background:#f8fbff;
}
.prospect-list-primary small,
.prospect-list-details span,
.prospect-list-signals>span{
  display:block;
  margin-top:6px;
  color:#68788d;
  text-transform:uppercase;
  font-size:9.5px;
  line-height:1;
  letter-spacing:.08em;
  font-weight:950;
}
.prospect-list-primary .badge{
  margin:0;
  max-width:100%;
}
.prospect-list-details{
  display:grid;
  grid-template-columns:1.15fr .8fr .55fr .75fr .75fr 1fr;
  gap:7px;
  align-items:stretch;
  margin-bottom:9px;
}
.prospect-list-details>div{
  min-width:0;
  padding:8px 9px;
  border:1px solid #eef3f8;
  background:#fbfdff;
  border-radius:12px;
}
.prospect-list-details span{
  margin:0 0 6px;
}
.prospect-list-details strong,
.scan-score-mini{
  display:block;
  color:#172033;
  font-size:12px;
  line-height:1.25;
  font-weight:850;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.prospect-list-details .badge,
.prospect-list-details .icon-pill{
  margin:0;
}
.prospect-list-details .icon-pill{
  min-width:30px !important;
  height:30px !important;
}
.prospect-list-signals{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.prospect-list-signals>span{
  flex:0 0 auto;
  margin:0;
}
.prospect-list-signals .compact-badges{
  flex:1 1 auto;
  min-width:0;
  gap:4px;
}
.prospect-list-card .badge{
  font-size:11px;
  padding:5px 8px;
}
@media(max-width:1320px){
  .prospect-list-primary{grid-template-columns:repeat(2,minmax(0,1fr));}
  .prospect-list-details{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:760px){
  .prospect-list-card{
    grid-template-columns:32px minmax(0,1fr);
    border-radius:18px;
  }
  .prospect-select{padding:16px 4px 0 10px;}
  .prospect-list-content{padding:13px 12px 12px 2px;}
  .prospect-list-head{gap:10px;margin-bottom:10px;}
  .prospect-list-title h3{font-size:17px;}
  .prospect-list-score{width:54px;height:54px;min-width:54px;}
  .prospect-list-score span{font-size:19px;}
  .prospect-list-primary{grid-template-columns:1fr 1fr;gap:7px;}
  .prospect-list-primary>div{padding:8px;}
  .prospect-list-details{grid-template-columns:1fr 1fr;gap:7px;}
  .prospect-list-signals{align-items:flex-start;flex-direction:column;gap:6px;}
}
@media(max-width:460px){
  .prospect-list-card{grid-template-columns:30px minmax(0,1fr);}
  .prospect-list-title h3{font-size:16px;}
  .prospect-list-title p{font-size:11.5px;}
  .prospect-list-score{width:50px;height:50px;min-width:50px;}
  .prospect-list-score span{font-size:18px;}
  .prospect-list-primary,
  .prospect-list-details{grid-template-columns:1fr;}
  .prospect-bulk-bar select,
  .prospect-bulk-bar .btn{width:100%;}
}

/* v0.3.8.8.5 — Prospect Card Typography + Adaptive Grid */
.prospect-list-card{
  grid-template-columns:42px minmax(0,1fr);
  border-radius:20px;
}
.prospect-list-content{
  padding:18px 18px 16px 6px;
}
.prospect-select{
  padding:20px 7px 0 15px;
}
.prospect-select input{
  width:18px;
  height:18px;
}
.prospect-list-head{
  gap:18px;
  margin-bottom:13px;
}
.prospect-list-title h3{
  font-size:22px;
  line-height:1.08;
  letter-spacing:-.035em;
}
.prospect-list-title p{
  margin-top:7px;
  font-size:14px;
  line-height:1.32;
  color:#536173;
  font-weight:750;
}
.prospect-list-score{
  width:72px;
  height:72px;
  min-width:72px;
}
.prospect-list-score span{
  font-size:27px;
}
.prospect-list-score small{
  margin-top:5px;
  font-size:9.5px;
}
.prospect-list-primary{
  grid-template-columns:1.05fr 1.05fr 1.05fr 1.15fr;
  gap:10px;
  margin-bottom:10px;
}
.prospect-list-primary>div{
  display:grid;
  grid-template-rows:auto auto;
  align-content:center;
  gap:8px;
  padding:12px 13px;
  border-radius:15px;
}
.prospect-list-primary small,
.prospect-list-details span,
.prospect-list-signals>span{
  font-size:10.5px;
  letter-spacing:.085em;
}
.prospect-list-primary small{
  margin-top:0;
  order:-1;
}
.prospect-list-primary .badge{
  align-self:start;
  width:max-content;
  max-width:100%;
}
.prospect-list-details{
  grid-template-columns:1.1fr .8fr .55fr .8fr .8fr 1.05fr;
  gap:9px;
  margin-bottom:11px;
}
.prospect-list-details>div{
  padding:11px 12px;
  border-radius:14px;
}
.prospect-list-details span{
  margin-bottom:7px;
}
.prospect-list-details strong,
.scan-score-mini{
  font-size:13.5px;
  line-height:1.25;
  letter-spacing:-.01em;
}
.prospect-list-card .badge{
  font-size:12.5px;
  padding:6px 10px;
}
.prospect-list-details .icon-pill{
  min-width:34px !important;
  height:34px !important;
  font-size:15px !important;
}
.prospect-list-signals{
  padding-top:2px;
  gap:12px;
}
.prospect-list-signals .compact-badges{
  gap:6px;
}
.prospect-list-signals .badge{
  font-size:12.5px;
  padding:7px 11px;
}

@media(max-width:1320px){
  .prospect-list-title h3{font-size:20px;}
  .prospect-list-primary{grid-template-columns:repeat(4,minmax(0,1fr));}
  .prospect-list-details{grid-template-columns:repeat(6,minmax(0,1fr));}
}
@media(max-width:1180px){
  .prospect-list-primary{grid-template-columns:repeat(2,minmax(0,1fr));}
  .prospect-list-details{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:760px){
  .prospect-list-card{
    grid-template-columns:34px minmax(0,1fr);
    border-radius:18px;
  }
  .prospect-list-content{
    padding:14px 13px 13px 3px;
  }
  .prospect-select{
    padding:17px 4px 0 11px;
  }
  .prospect-list-head{
    gap:10px;
    margin-bottom:11px;
  }
  .prospect-list-title h3{
    font-size:18px;
    line-height:1.12;
  }
  .prospect-list-title p{
    font-size:12px;
    margin-top:5px;
  }
  .prospect-list-score{
    width:58px;
    height:58px;
    min-width:58px;
  }
  .prospect-list-score span{
    font-size:21px;
  }
  .prospect-list-score small{
    font-size:8.5px;
  }
  .prospect-list-primary,
  .prospect-list-details{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px;
  }
  .prospect-list-primary>div,
  .prospect-list-details>div{
    padding:9px 10px;
  }
  .prospect-list-primary small,
  .prospect-list-details span{
    font-size:9.5px;
    line-height:1;
    margin-bottom:0;
  }
  .prospect-list-details span{margin-bottom:6px;}
  .prospect-list-details strong,
  .scan-score-mini{
    font-size:12.5px;
    white-space:normal;
  }
  .prospect-list-card .badge{
    font-size:11.5px;
    padding:6px 9px;
  }
  .prospect-list-signals{
    display:grid;
    grid-template-columns:72px minmax(0,1fr);
    align-items:start;
    gap:8px;
  }
  .prospect-list-signals .compact-badges{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
  }
  .prospect-list-signals .badge{
    font-size:11.5px;
    padding:6px 9px;
  }
}
@media(max-width:460px){
  .prospect-list-card{grid-template-columns:32px minmax(0,1fr);}
  .prospect-list-content{padding:13px 11px 12px 2px;}
  .prospect-list-title h3{font-size:17px;}
  .prospect-list-title p{font-size:11.5px;}
  .prospect-list-score{width:54px;height:54px;min-width:54px;}
  .prospect-list-score span{font-size:20px;}
  .prospect-list-primary,
  .prospect-list-details{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .prospect-list-primary>div,
  .prospect-list-details>div{
    padding:8px 9px;
  }
  .prospect-list-signals{
    grid-template-columns:1fr;
  }
}
@media(max-width:360px){
  .prospect-list-primary,
  .prospect-list-details{
    grid-template-columns:1fr !important;
  }
}

/* v0.3.8.9.1 — Quality Counter Visibility + Verification Audit */
.quality-hero .quality-build-stamp{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  padding:8px 10px;
  border:1px solid #cfe0f4;
  border-radius:999px;
  background:#fff;
  box-shadow:0 6px 18px rgba(15,35,65,.04);
}
.quality-build-stamp span,
.quality-build-stamp em{
  color:#64748b;
  font-size:11px;
  font-style:normal;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.quality-build-stamp strong{
  color:#155a9c;
  font-size:13px;
}
.financial-failed-card .quality-number{
  display:block !important;
  min-height:42px;
  line-height:1 !important;
  visibility:visible !important;
  opacity:1 !important;
}
.verification-audit-panel{
  border-color:#cfe0f4;
  background:linear-gradient(135deg,#fff,#f4f9ff);
}
.verification-audit-panel .audit-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-bottom:12px;
}
.verification-audit-panel .audit-grid strong{
  font-size:24px;
  letter-spacing:-.03em;
}
@media(max-width:1050px){
  .verification-audit-panel .audit-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px){
  .quality-hero .quality-build-stamp{align-items:flex-start;flex-direction:column;border-radius:16px;}
  .verification-audit-panel .audit-grid{grid-template-columns:1fr;}
}

/* v0.3.8.9.2 — Financial KPI Binding Fix + Verification List Usability */
.quality-kpi-link{
  color:inherit;
  text-decoration:none;
}
.quality-kpi-link:hover{
  text-decoration:none;
  transform:translateY(-1px);
  border-color:#fecaca;
  box-shadow:0 12px 28px rgba(180,35,24,.10);
}
.financial-failed-card .quality-number,
.quality-overview .financial-failed-card .quality-number{
  display:block !important;
  min-height:34px !important;
  margin:10px 0 8px !important;
  color:#b42318 !important;
  font-size:34px !important;
  line-height:1 !important;
  font-weight:950 !important;
  letter-spacing:-.05em !important;
  visibility:visible !important;
  opacity:1 !important;
  text-indent:0 !important;
  white-space:nowrap !important;
}
.verification-failed-panel{
  border-color:#dbe7f4;
}
.verification-failed-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:8px 0 12px;
}
.verification-failed-summary>div{
  border:1px solid var(--line);
  background:#f8fbff;
  border-radius:14px;
  padding:12px 14px;
}
.verification-failed-summary span{
  display:block;
  color:#64748b;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.verification-failed-summary strong{
  display:block;
  margin-top:5px;
  color:#082241;
  font-size:24px;
  line-height:1;
  letter-spacing:-.04em;
}
.verification-filter-tabs{
  margin:8px 0 14px !important;
}
.verification-filter-tabs a{
  gap:6px;
}
.verification-filter-tabs a strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:999px;
  background:#e8f1fb;
  color:#155a9c;
  font-size:11px;
  line-height:1;
}
.verification-filter-tabs a.active strong{
  background:#fff;
  color:#155a9c;
}
@media(max-width:900px){
  .verification-failed-summary{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:560px){
  .verification-failed-summary{grid-template-columns:1fr;}
}

/* v0.3.8.9.3 — Data Quality KPI Click-Through Filters */
.quality-overview .quality-kpi-link{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:124px;
  text-decoration:none !important;
  color:inherit;
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}
.quality-overview .quality-kpi-link:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(8,31,58,.12);
  border-color:#b9d2ef;
  background:linear-gradient(180deg,#fff,#f8fbff);
}
.quality-overview .quality-kpi-link:focus-visible{
  outline:3px solid #b9d7ff;
  outline-offset:3px;
}
.quality-overview .quality-kpi-link::after{
  content:'Open';
  position:absolute;
  right:12px;
  top:12px;
  opacity:0;
  transform:translateY(-2px);
  font-size:10px;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:950;
  color:#155a9c;
  background:#eef7ff;
  border:1px solid #c9e3ff;
  border-radius:999px;
  padding:5px 7px;
  transition:opacity .14s ease, transform .14s ease;
}
.quality-overview .quality-kpi-link:hover::after,
.quality-overview .quality-kpi-link:focus-visible::after{
  opacity:1;
  transform:translateY(0);
}
.quality-overview .quality-kpi-link strong{
  color:inherit;
}
.quality-overview .financial-failed-card::after{
  content:'Open failed';
}
@media(max-width:760px){
  .quality-overview .quality-kpi-link::after{
    opacity:1;
    transform:none;
  }
}

/* v0.3.9.0.2 — Identity Probe Evidence Review */
.probe-evidence-cell .badge{margin:2px 4px 2px 0}
.probe-evidence-cell .payload-cell{margin-top:6px}
.data-table .row-actions .danger-soft{border-color:#ffd2cc;color:#b42318;background:#fff7f5}
.data-table .row-actions .danger-soft:hover{background:#fff1ee}
#identity-probes .badge{white-space:nowrap}
@media(max-width:900px){
  #identity-probes .row-actions{display:grid;grid-template-columns:1fr;gap:7px}
  #identity-probes .row-actions .btn{width:100%}
}

/* v0.3.9.1.2 — Candidate Evidence Cards + Review Decision Aid */
.candidate-evidence-cell{min-width:330px;max-width:560px}
.candidate-decision-aid{display:flex;flex-direction:column;gap:8px;min-width:0}
.decision-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.decision-summary small{display:inline;color:#5f6f84;margin:0;line-height:1.35;max-width:360px}
.decision-evidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:2px}
.decision-evidence-grid>div{border:1px solid #dde7f2;background:#f8fbff;border-radius:12px;padding:8px;min-width:0}
.decision-evidence-grid>div:nth-child(1){background:#f3fff8;border-color:#ccefdc}
.decision-evidence-grid>div:nth-child(2){background:#f7f9fc;border-color:#dde5ee}
.decision-evidence-grid>div:nth-child(3){background:#fffaf0;border-color:#f4dfb5}
.decision-evidence-grid span{display:block;font-size:10px;line-height:1;text-transform:uppercase;letter-spacing:.08em;font-weight:950;color:#64748b;margin-bottom:5px}
.decision-evidence-grid .badges{gap:3px}
.decision-evidence-grid .badge{font-size:10px;padding:4px 7px;margin:1px}
.candidate-evidence-cell .payload-cell{margin-top:6px}
.candidate-evidence-cell .payload-details summary{font-size:11px;padding:5px 8px}
@media(max-width:1180px){.candidate-evidence-cell{min-width:260px}.decision-evidence-grid{grid-template-columns:1fr}.decision-summary{align-items:flex-start}.decision-summary small{display:block;max-width:100%;width:100%}}
@media(max-width:820px){.candidate-evidence-cell{min-width:0;max-width:none}.decision-evidence-grid{grid-template-columns:1fr 1fr}.decision-evidence-grid>div:nth-child(3){grid-column:1/-1}}
@media(max-width:520px){.decision-evidence-grid{grid-template-columns:1fr}}

/* v0.3.9.1.4 — Sidebar icon polish + vendor attribution UI */
.nav-link{
  align-items:center !important;
  gap:11px !important;
}
.nav-ico{
  width:32px !important;
  min-width:32px !important;
  height:32px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:11px !important;
  background:rgba(255,255,255,.10) !important;
  font-size:15px !important;
  line-height:1 !important;
  text-align:center !important;
  transform:none !important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important;
}
.nav-link.active .nav-ico{
  background:#e8f1fb !important;
  color:#155a9c !important;
  box-shadow:inset 0 0 0 1px rgba(21,90,156,.08) !important;
}
.nav-label{
  display:block !important;
  line-height:1.2 !important;
}
.brand-mark{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1 !important;
}
.vendor-card small{
  display:block;
  margin-top:8px;
  color:#66788d;
  font-weight:700;
  line-height:1.35;
}

/* v0.3.9.1.4 — Compact candidate evidence + corrected sidebar icons */
.candidate-evidence-cell{
  min-width:260px !important;
  max-width:390px !important;
}
.candidate-decision-aid.compact{
  gap:5px !important;
  max-width:390px;
}
.decision-summary.compact{
  display:flex !important;
  align-items:center !important;
  gap:7px !important;
  flex-wrap:nowrap !important;
}
.decision-summary.compact small{
  display:block !important;
  max-width:260px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  color:#607084 !important;
  font-size:11px !important;
}
.decision-chip-line{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:4px;
  min-width:0;
}
.decision-chip-line .chip-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:52px;
  height:20px;
  border-radius:999px;
  padding:0 7px;
  font-size:9px;
  line-height:1;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.decision-chip-line .chip-label.found{background:#e9f8f1;color:#157f52;}
.decision-chip-line .chip-label.missing{background:#eef2f7;color:#64748b;}
.decision-chip-line .chip-label.risk{background:#fff5df;color:#9a6500;}
.decision-chip-line .badge{
  margin:1px !important;
  padding:4px 7px !important;
  font-size:10px !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
.candidate-evidence-cell .payload-cell{
  margin-top:5px !important;
}
.candidate-evidence-cell .payload-details summary{
  padding:5px 8px !important;
  font-size:10px !important;
  border-radius:9px !important;
}
@media(max-width:1280px){
  .candidate-evidence-cell{min-width:230px !important;max-width:340px !important;}
  .decision-summary.compact small{max-width:200px !important;}
}
@media(max-width:820px){
  .candidate-evidence-cell{max-width:none !important;}
  .decision-summary.compact{flex-wrap:wrap !important;}
  .decision-summary.compact small{max-width:100% !important;white-space:normal !important;}
}

.nav-link{
  align-items:center !important;
  gap:12px !important;
}
.nav-ico{
  width:32px !important;
  min-width:32px !important;
  height:32px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:11px !important;
  background:rgba(255,255,255,.10) !important;
  color:#cfe0f4 !important;
  line-height:1 !important;
  padding:0 !important;
  overflow:hidden !important;
}
.nav-ico svg{
  display:block !important;
  width:16px !important;
  height:16px !important;
  flex:0 0 16px !important;
  stroke:currentColor !important;
}
.nav-link:hover .nav-ico{
  background:rgba(255,255,255,.16) !important;
  color:#fff !important;
}
.nav-link.active .nav-ico{
  background:#e8f1fb !important;
  color:#155a9c !important;
  box-shadow:inset 0 0 0 1px rgba(21,90,156,.10) !important;
}

/* v0.3.9.1.5 — Evidence line simplification + sidebar icon optical alignment */
.candidate-company-cell{min-width:270px !important;max-width:430px !important;}
.candidate-company-title{display:block;font-size:15px;line-height:1.2;letter-spacing:-.01em;margin-bottom:2px;}
.candidate-evidence-lines{margin-top:8px;display:flex;flex-direction:column;gap:4px;max-width:520px;}
.evidence-line{display:flex;align-items:flex-start;gap:7px;min-width:0;}
.evidence-line-label{flex:0 0 54px;height:20px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:9px;line-height:1;text-transform:uppercase;letter-spacing:.08em;font-weight:950;}
.evidence-line.found .evidence-line-label{background:#e7f8ef;color:#047848;}
.evidence-line.missing .evidence-line-label{background:#fff1f0;color:#b42318;}
.evidence-line-items{display:flex;flex-wrap:wrap;gap:4px;min-width:0;}
.evidence-token{display:inline-flex;align-items:center;min-height:20px;border-radius:999px;padding:4px 8px;font-size:10px;line-height:1;font-weight:850;letter-spacing:.01em;white-space:nowrap;}
.evidence-line.found .evidence-token{background:#ecfdf3;color:#027a48;border:1px solid #c8f0d7;}
.evidence-line.missing .evidence-token{background:#fff1f0;color:#b42318;border:1px solid #ffd0cc;}
.evidence-token.empty{opacity:.78;font-weight:750;}
.evidence-token.more{font-weight:950;}
.evidence-decision-note{display:flex;align-items:center;gap:7px;margin-top:2px;color:#66788d;font-size:11px;line-height:1.3;}
.evidence-decision-note span{font-weight:900;color:#09223f;}
.evidence-decision-note small{display:block;max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#66788d;}
.candidate-evidence-cell.json-only{min-width:130px !important;max-width:160px !important;}
.candidate-evidence-cell.json-only .payload-cell{margin-top:0 !important;}
.candidate-evidence-cell.json-only .payload-details summary{white-space:nowrap;}
.data-table.selectable th:nth-child(2),.data-table.selectable td:nth-child(2){width:32%;}
.data-table.selectable th:nth-child(7),.data-table.selectable td:nth-child(7){width:150px;}
@media(max-width:1280px){.candidate-company-cell{max-width:none !important}.evidence-decision-note small{max-width:260px}.data-table.selectable th:nth-child(2),.data-table.selectable td:nth-child(2){width:auto;}}
@media(max-width:820px){.candidate-evidence-lines{max-width:none}.evidence-line{flex-direction:column;gap:4px}.evidence-line-label{flex:0 0 auto}.evidence-decision-note{flex-direction:column;align-items:flex-start}.evidence-decision-note small{max-width:100%;white-space:normal}.candidate-evidence-cell.json-only{min-width:0 !important;max-width:none !important}}

.sidebar .nav-link{display:flex !important;align-items:center !important;gap:12px !important;min-height:44px !important;padding-top:6px !important;padding-bottom:6px !important;}
.sidebar .nav-ico{position:relative !important;width:34px !important;min-width:34px !important;height:34px !important;display:grid !important;place-items:center !important;border-radius:12px !important;padding:0 !important;line-height:0 !important;text-align:center !important;}
.sidebar .nav-ico svg{position:absolute !important;left:50% !important;top:50% !important;transform:translate(-50%,-50%) !important;width:18px !important;height:18px !important;display:block !important;margin:0 !important;}
.sidebar .nav-link.active .nav-ico svg{width:19px !important;height:19px !important;}
.sidebar .nav-label{line-height:1.1 !important;}


/* v0.3.9.1.6 — final sidebar icon centering + identity probe cleanup polish */
.sidebar .nav-link{display:flex !important;align-items:center !important;gap:12px !important;}
.sidebar .nav-link .nav-ico{position:static !important;display:flex !important;align-items:center !important;justify-content:center !important;width:34px !important;height:34px !important;min-width:34px !important;flex:0 0 34px !important;padding:0 !important;line-height:1 !important;border-radius:12px !important;}
.sidebar .nav-link .nav-ico svg{position:static !important;transform:none !important;display:block !important;width:20px !important;height:20px !important;min-width:20px !important;min-height:20px !important;margin:0 !important;}
.sidebar .nav-link.active .nav-ico svg{width:20px !important;height:20px !important;}
#identity-probes .row-superseded{display:none;}

/* v0.3.9.1.7 — truth reconciliation panel */
.truth-reconcile-panel .button-row input[type="number"]{max-width:120px}
.candidate-evidence-cell .candidate-evidence-lines{max-width:680px}

/* v0.3.9.1.8 — dashboard quick search + prospect truth polish */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
.dashboard-hero-actions{align-items:center!important;gap:10px!important;}
.dashboard-quick-search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #cfe0f4;border-radius:16px;padding:6px;box-shadow:0 10px 26px rgba(15,35,65,.06);min-width:min(390px,42vw);}
.dashboard-quick-search input{border:0!important;background:transparent!important;box-shadow:none!important;min-height:36px!important;padding:7px 10px!important;font-weight:800;color:var(--text);flex:1 1 auto;min-width:180px;}
.dashboard-quick-search input:focus{outline:none;}
.dashboard-quick-search .btn{white-space:nowrap;box-shadow:none;}
.top-prospect-meta.truth-meta{padding-bottom:10px;}
.top-prospect-statusline{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:0 16px 16px;}
.top-prospect-statusline .badge{margin:0;}
.quick-result-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f4f8fd;border:1px solid #d8e7f6;border-radius:16px;padding:10px 12px;margin:12px 0;}
.quick-result-strip>div{display:flex;align-items:center;gap:8px;min-width:0;}
.quick-result-strip strong{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#607389;}
.quick-result-strip span{font-weight:900;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
@media(max-width:900px){.dashboard-quick-search{min-width:0;width:100%;}.dashboard-hero-actions{width:100%;}.dashboard-hero-actions .btn{width:100%;}.dashboard-quick-search .btn{width:auto;}}
@media(max-width:520px){.dashboard-quick-search{flex-direction:column;align-items:stretch;padding:8px;}.dashboard-quick-search input{width:100%;min-width:0;}.dashboard-quick-search .btn{width:100%;}.quick-result-strip{flex-direction:column;align-items:stretch;}.quick-result-strip .btn{width:100%;}}

/* v0.3.9.1.10 — prospect repair action fix + discrete timestamps */
.prospect-time-meta{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0;padding-top:10px;border-top:1px solid #edf2f7;color:#7a8797;font-size:.74rem;line-height:1.35}
.prospect-time-meta span{display:inline-flex;gap:4px;align-items:center;background:transparent;border:0;border-radius:0;padding:0;white-space:nowrap}
.prospect-time-meta strong{color:#566579;font-weight:750}
.prospect-repair-panel{border-color:#f0d6a9;background:linear-gradient(180deg,#fffdf8,#fff)}
.prospect-repair-panel .panel-head p{max-width:520px}
.prospect-repair-panel details{border:1px solid #e6edf5;border-radius:16px;background:#f8fbff;margin:10px 0;overflow:hidden}
.prospect-repair-panel summary{cursor:pointer;padding:12px 14px;font-weight:900;color:#213047}
.prospect-repair-panel details[open] summary{border-bottom:1px solid #e6edf5;background:#fff}
.prospect-repair-panel .compact-form{padding:12px;grid-template-columns:1fr}
.prospect-repair-panel .repair-form label small{display:block;color:#65758b;margin-top:4px}
.repair-clear-form{padding:12px;display:flex;flex-direction:column;gap:10px}
.repair-clear-form label{display:flex;align-items:flex-start;gap:8px;font-weight:750;color:#233247}
.repair-danger{margin-top:12px}
.repair-danger .danger{background:#bc2e2e;color:#fff;border-color:#bc2e2e}
.repair-danger .danger:hover{filter:brightness(.96)}
@media(min-width:980px){.prospect-repair-panel .compact-form{grid-template-columns:1fr 1fr}.prospect-repair-panel .compact-form button{grid-column:1/-1}}
@media(max-width:640px){.prospect-time-meta{font-size:.72rem}.prospect-time-meta span{width:auto;justify-content:flex-start}}

.repair-queue-hint{margin-top:10px;padding:10px 12px;border-radius:14px;background:#f8fbff;border:1px solid #dbe8f5;color:#53667c;font-size:.78rem;line-height:1.4}
.repair-queue-hint strong{color:#213047}

/* v0.3.9.1.11 — requeue visibility + worker execution truth */
.refresh-work-panel{border-color:#d7e7f8;background:linear-gradient(180deg,#f8fbff,#fff)}
.refresh-work-panel .panel-head p,.queue-truth-panel .panel-head p{max-width:620px}
.queue-truth-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.queue-truth-summary>div{border:1px solid #dbe8f5;border-radius:16px;background:#fff;padding:12px 13px;box-shadow:0 8px 22px rgba(15,35,68,.04)}
.queue-truth-summary span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#66758b;font-weight:950}
.queue-truth-summary strong{display:block;font-size:24px;letter-spacing:-.04em;color:#09223d;margin-top:4px}
.queue-truth-summary small{display:block;color:#6b7c90;margin-top:2px;line-height:1.35}
.queue-truth-summary.wide{grid-template-columns:repeat(4,minmax(0,1fr))}
.worker-mini-truth{display:flex;gap:8px;align-items:center;flex-wrap:wrap;border:1px solid #dbe8f5;border-radius:14px;background:#f8fbff;padding:10px 12px;margin:8px 0 12px;color:#51647a;font-size:12px}
.worker-mini-truth strong{color:#1f3249}.worker-mini-truth.success{border-color:#cdebd8;background:#f5fff8}.worker-mini-truth.warm{border-color:#f3dfae;background:#fffaf0}.worker-mini-truth.hot{border-color:#f4c7c7;background:#fff7f7}
.refresh-work-table td,.refresh-work-table th{font-size:12px}.refresh-work-table td:first-child strong{display:block}.compact-notice{margin-top:12px;font-size:12px;line-height:1.45}
.queue-truth-panel{border-color:#d7e7f8;background:linear-gradient(180deg,#f8fbff,#fff)}
@media(max-width:1100px){.queue-truth-summary,.queue-truth-summary.wide{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.queue-truth-summary,.queue-truth-summary.wide{grid-template-columns:1fr}.worker-mini-truth{align-items:flex-start;flex-direction:column}.refresh-work-table th,.refresh-work-table td{font-size:11px}}

/* v0.3.9.1.12 — prospect repair audit + edit reliability finalization */
.prospect-repair-history-panel{border-color:#e3ecf7;background:linear-gradient(180deg,#fbfdff,#fff)}
.prospect-repair-history-panel .panel-head p{max-width:520px}
.prospect-repair-history-panel details{border:1px solid #e6edf5;border-radius:14px;background:#f9fbfe;margin:10px 0;overflow:hidden}
.prospect-repair-history-panel summary{cursor:pointer;padding:10px 12px;font-weight:900;color:#213047;font-size:13px}
.repair-history-list,.repair-block-list{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-top:1px solid #e6edf5;background:#fff}
.repair-history-list>div,.repair-block-list>div{border:1px solid #edf2f7;border-radius:12px;background:#fbfdff;padding:9px 10px;display:flex;flex-direction:column;gap:3px;min-width:0}
.repair-history-list strong,.repair-block-list strong{font-size:12px;color:#203046;line-height:1.25}
.repair-history-list small,.repair-block-list small{font-size:11px;color:#58687c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.repair-history-list span,.repair-block-list span{font-size:11px;color:#7a8797;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.repair-block-list>div{background:#fffaf5;border-color:#f2dfc4}
.repair-block-list strong{color:#7b4d10}

/* v0.3.9.2 — prospect truth registry + source priority model */
.truth-registry-box{margin-top:14px;border:1px solid #dbe8f5;border-radius:18px;background:linear-gradient(180deg,#f8fbff,#fff);padding:12px;box-shadow:0 10px 28px rgba(15,35,68,.04)}
.truth-registry-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.truth-registry-head strong{font-size:13px;color:#17283d;letter-spacing:-.01em}
.truth-registry-head span{font-size:11px;color:#66758b;text-align:right;max-width:560px;line-height:1.35}
.truth-chip-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.truth-chip{border:1px solid #e4edf7;background:#fff;border-radius:14px;padding:9px 10px;min-width:0;display:flex;flex-direction:column;gap:5px}
.truth-chip>span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#718095;font-weight:950}
.truth-chip strong{font-size:12px;color:#1f3249;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.truth-chip strong a{color:#134f91;text-decoration:none}.truth-chip strong a:hover{text-decoration:underline}
.truth-chip .badge{align-self:flex-start;font-size:10px;padding:3px 7px}
.truth-chip small{font-size:10px;color:#7b4d10;background:#fff8ed;border:1px solid #f2dfc4;border-radius:999px;padding:2px 6px;align-self:flex-start}
@media(max-width:960px){.truth-chip-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.truth-registry-head{flex-direction:column}.truth-registry-head span{text-align:left}}
@media(max-width:560px){.truth-chip-grid{grid-template-columns:1fr}}

/* v0.3.9.3 — cross-tab cleanup + display contract lock */
.display-contract-grid dd{display:flex;flex-direction:column;gap:5px;align-items:flex-start}
.truth-inline-source{display:flex;align-items:center;gap:5px;flex-wrap:wrap;color:#748298;font-size:10px;line-height:1.25;margin-top:2px}
.truth-inline-source .badge{font-size:9px;padding:2px 6px;line-height:1.2}
.display-contract-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 14px;padding:10px;border:1px solid #dbe8f5;border-radius:16px;background:#f8fbff}
.display-contract-summary>div{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;background:#fff;border:1px solid #e6edf5;border-radius:12px;padding:8px 10px}
.display-contract-summary span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#718095;font-weight:950;white-space:nowrap}
.display-contract-summary strong{font-size:12px;color:#1f3249;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:55%}
.display-contract-summary .badge{font-size:9px;padding:2px 6px;white-space:nowrap}
.quick-signal-strip .header-signal-badge{opacity:.92}
.prospect-tabs-panel .subsection-title{margin-top:16px;margin-bottom:8px}
@media(max-width:720px){.display-contract-summary{grid-template-columns:1fr}.display-contract-summary>div{align-items:flex-start;flex-direction:column}.display-contract-summary strong{max-width:100%}}

/* v0.3.9.7 Website Scan Evidence + Rescan Governance */
.scan-evidence-block{border:1px solid rgba(15,23,42,.08);border-radius:14px;padding:14px;margin:14px 0;background:rgba(248,250,252,.72)}
.scan-evidence-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}
.scan-evidence-head h3{margin:0 0 4px;font-size:15px}.scan-evidence-head p{margin:0;color:#64748b;font-size:12px;line-height:1.4}
.scan-evidence-status{white-space:nowrap}.scan-history-panel{margin:12px 0;border:1px solid rgba(15,23,42,.08);border-radius:12px;background:#fff;padding:10px 12px}.scan-history-panel>summary{cursor:pointer;font-weight:700;color:#334155}.scan-actions-card form{margin-top:10px}.notice.compact{padding:8px 10px;margin:8px 0}.metric-row.compact{margin:8px 0 10px}
@media(max-width:720px){.scan-evidence-head{display:block}.scan-evidence-status{margin-top:8px}.scan-actions-card .action-row{align-items:stretch}.scan-actions-card .btn{width:100%}}

/* v0.3.9.7.5 — prospect truth UI density: source/verified timestamps are hover-only */
.display-contract-grid dd{display:block;min-height:auto}
.truth-value-tooltip{display:inline-flex;align-items:center;gap:6px;max-width:100%;cursor:help}
.truth-value-tooltip a{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.truth-value-cleared{background:#fff8ed;border:1px solid #f2dfc4;border-radius:999px;padding:2px 8px}
.truth-inline-source{display:none!important}
.truth-registry-box.truth-registry-collapsed{padding:0;overflow:hidden;background:#fff;margin-top:12px}
.truth-registry-box.truth-registry-collapsed summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;font-weight:900;color:#17283d}
.truth-registry-box.truth-registry-collapsed summary::-webkit-details-marker{display:none}
.truth-registry-box.truth-registry-collapsed summary:before{content:'▸';font-size:12px;color:#50647f;margin-right:2px}
.truth-registry-box.truth-registry-collapsed[open] summary:before{content:'▾'}
.truth-registry-box.truth-registry-collapsed summary strong{font-size:13px;letter-spacing:-.01em}
.truth-registry-box.truth-registry-collapsed summary span{font-size:11px;color:#66758b;text-align:right;font-weight:700;line-height:1.35}
.truth-registry-box.truth-registry-collapsed .truth-chip-grid{padding:0 12px 12px;border-top:1px solid #edf2f7}
@media(max-width:720px){.truth-registry-box.truth-registry-collapsed summary{align-items:flex-start;flex-direction:column}.truth-registry-box.truth-registry-collapsed summary span{text-align:left}}

/* v0.3.9.9 contact candidate review UX */
.contact-review-summary .panel-head{align-items:flex-start;gap:16px}
.contact-governance-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));margin-top:12px}
.contact-governance-grid a{text-decoration:none;color:inherit;border:1px solid var(--border,#e5e7eb);border-radius:12px;padding:10px 12px;background:#fff;display:block}
.contact-governance-grid a span{display:block;font-size:12px;color:var(--muted,#64748b);margin-bottom:3px}
.contact-governance-grid a strong{font-size:20px;line-height:1.1}
.contact-filter{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));align-items:end}
.contact-candidates-table td small{display:block;margin-top:3px;line-height:1.25}
.contact-row-safe{background:rgba(16,185,129,.035)}
.contact-row-review{background:rgba(245,158,11,.035)}
.contact-row-blocked{background:rgba(239,68,68,.035)}
.compact-notice{margin-top:12px}
@media(max-width:760px){.contact-review-summary .panel-head{display:block}.contact-review-summary .inline-form{margin-top:10px}.contact-candidates-table th:nth-child(5),.contact-candidates-table td:nth-child(5),.contact-candidates-table th:nth-child(8),.contact-candidates-table td:nth-child(8),.contact-candidates-table th:nth-child(9),.contact-candidates-table td:nth-child(9){display:none}}

/* v0.3.9.9.7.4 — vendor grouping */
.vendor-manual-group-panel{margin-top:16px;margin-bottom:16px;border-style:dashed}
.vendor-group-inline{gap:6px;align-items:center}
.data-table td small{display:block;line-height:1.35;margin-top:3px}

/* v0.3.9.9.7.5 — vendor bulk merge + site drilldown */
.vendor-merge-bar{
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin:14px 0;
}
.vendor-merge-bar input{
  min-width:170px;
  max-width:240px;
}
.vendor-table .vendor-merge-check{
  transform:scale(1.05);
}
.vendor-name-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.vendor-name-link::after{
  content:'sites';
  font-size:10px;
  font-weight:700;
  color:#51637a;
  background:#eef3f9;
  border:1px solid #dde7f1;
  border-radius:999px;
  padding:2px 6px;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.vendor-detail-panel{
  border:1px solid #d9e7f3;
  box-shadow:0 10px 30px rgba(15,35,55,.06);
}
.vendor-detail-panel .data-table td small{
  display:block;
  margin-top:3px;
}


/* v0.3.9.9.7.6 vendor canonical lock */
.vendor-alias-manager{margin:10px 0 16px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#f8fafc;display:grid;gap:10px}
.alias-chip-list{display:flex;flex-wrap:wrap;gap:8px}
.alias-chip-form{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;background:#fff;padding:5px 8px;font-size:12px;color:var(--text)}
.alias-chip-form .chip-x{border:0;background:#eef2f7;color:#667085;border-radius:999px;width:20px;height:20px;line-height:18px;cursor:pointer;font-weight:700}
.alias-chip-form .chip-x:hover{background:#fee2e2;color:#991b1b}
.alias-add-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.alias-add-form input{min-width:180px}
.vendor-merge-bar input[required]{border-color:#b6c2d2}

.sort-link{display:inline-flex;align-items:center;gap:4px;color:inherit;text-decoration:none;font-weight:950;white-space:nowrap}.sort-link:hover{color:#155a9c;text-decoration:none}.sort-link.active{color:#155a9c}

/* v0.3.9.9.7.9 — vendor merge suggestions */
.vendor-suggestions-panel{border-color:#cfe1ff;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)}
.vendor-suggestions-panel .data-table td{vertical-align:middle}
.vendor-suggestions-panel .danger-text{display:block;color:#b42318;font-weight:700;margin-top:4px}


/* v0.3.9.9.8.1 — Offer UI checkbox + density polish */
input[type="checkbox"]{
  width:16px !important;
  height:16px !important;
  min-width:16px !important;
  min-height:16px !important;
  max-width:16px !important;
  max-height:16px !important;
  padding:0 !important;
  margin:0;
  border-radius:4px;
  box-shadow:none !important;
  vertical-align:middle;
  flex:0 0 auto;
  accent-color:var(--blue);
}
input[type="checkbox"]:focus{outline:2px solid #cfe0f4;outline-offset:2px;}
.switch-row input[type="checkbox"]{
  width:46px !important;
  height:26px !important;
  min-width:46px !important;
  min-height:26px !important;
  max-width:46px !important;
  max-height:26px !important;
  appearance:none;
  border-radius:999px;
  background:#cbd5e1;
  border:0;
  position:relative;
}
.switch-row input[type="checkbox"]:before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:white;box-shadow:0 1px 4px rgba(15,23,42,.25);transition:all .18s ease;}
.switch-row input[type="checkbox"]:checked{background:#1764a8;}
.switch-row input[type="checkbox"]:checked:before{left:23px;}
.switch-row.danger input[type="checkbox"]:checked{background:#b42318;}
.checkline,.repair-clear-form label,.compact-filter .check-row{
  display:inline-flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  width:auto !important;
  min-height:30px;
  margin:0 !important;
  font-weight:850;
  color:#24344a;
}
.offer-override-form{align-items:start;}
.offer-override-form label{margin:0;}
.offer-override-form textarea{min-height:94px;}
.offer-override-form .offer-notes{grid-column:1 / -1;}
.offer-review-flags{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#f8fafc;
}
.metric-row.enhanced.compact{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.metric-row.enhanced.compact div{
  min-height:86px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.metric-row.enhanced.compact strong{
  font-size:24px;
  line-height:1.12;
  max-width:100%;
  word-break:break-word;
}
.offer-fit-table td,.offer-fit-table th{vertical-align:middle;}
.offer-fit-table td:nth-child(2){min-width:190px;}
.offer-fit-table td:nth-child(6),.offer-fit-table td:nth-child(7){max-width:260px;}
.offer-fit-table .fit-score-cell strong{font-size:18px;line-height:1;}
.offer-fit-table .fit-score-cell small{font-size:10px;}
@media(max-width:1180px){.metric-row.enhanced.compact{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:720px){.metric-row.enhanced.compact{grid-template-columns:1fr;}.offer-review-flags{flex-direction:column;align-items:flex-start;}}

/* v0.3.9.9.8.3 — offer category filter explainability */
.filter-explainer{
  margin:10px 0 12px;
  padding:10px 12px;
  border:1px solid #d7e7fb;
  border-radius:12px;
  background:#f6fbff;
  color:#31506d;
  font-size:13px;
}
.filter-explainer strong{color:#064f94;}
.offer-fit-table .fit-score-cell strong{font-variant-numeric:tabular-nums;}


/* v0.3.9.9.8.4 — offer category focus clarity */
.offer-fit-table .matched-angle-cell strong{display:block;color:#062a4f;}
.offer-fit-table .matched-angle-cell small{font-size:10px;line-height:1.35;}
.offer-fit-table .category-score-cell strong{color:#064f94;}
.offer-score-strip{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin:8px 0 12px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#f8fafc;
}
.offer-score-strip>span{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  font-weight:900;
  margin-right:4px;
}
.offer-score-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid #dbe6f4;
  border-radius:999px;
  background:#fff;
  padding:6px 9px;
}
.offer-score-chip strong{font-size:11px;color:#20344c;}
.offer-score-chip em{font-style:normal;font-weight:950;color:#064f94;font-size:12px;}

/* v0.3.9.9.8.9 — Offer Scoring QA */
.offer-qa-note{border-color:#fed7aa;background:#fff7ed;color:#7c2d12}
.offer-qa-cell{min-width:96px}
.offer-qa-cell small{display:block;margin-top:4px;color:#64748b;font-size:11px}
.offer-qa-strip{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap;margin:14px 0;padding:12px;border:1px solid #dbe7f5;border-radius:16px;background:#f8fbff}
.offer-qa-strip>span{align-self:center;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#64748b;margin-right:4px}
.offer-qa-score,.offer-qa-flag{border:1px solid #dbe7f5;border-radius:999px;background:#fff;padding:8px 12px;display:flex;gap:8px;align-items:center;min-height:36px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.offer-qa-score strong{font-size:18px;line-height:1;color:#0f172a}.offer-qa-score small,.offer-qa-flag small{font-size:11px;color:#64748b;max-width:320px}.offer-qa-flag strong{font-size:12px;color:#0f172a}
.offer-qa-score.success,.offer-qa-flag.success{border-color:#bbf7d0;background:#f0fdf4}.offer-qa-score.info,.offer-qa-flag.info{border-color:#bfdbfe;background:#eff6ff}.offer-qa-score.warm,.offer-qa-flag.warm{border-color:#fed7aa;background:#fff7ed}.offer-qa-score.danger,.offer-qa-flag.danger{border-color:#fecaca;background:#fef2f2}

/* v0.3.9.9.8.10 — Offer counter truth + stat card readability */
.offer-stat-grid .offer-stat-card{ text-decoration:none; color:inherit; }
.offer-stat-grid .offer-stat-card .metric-number{ display:block!important; visibility:visible!important; opacity:1!important; min-height:34px; color:#082241!important; font-variant-numeric:tabular-nums; }
.offer-stat-grid .offer-stat-card.danger .metric-number{ color:#082241!important; }
.offer-stat-grid a.offer-stat-card:hover{ transform:translateY(-1px); box-shadow:0 12px 30px rgba(15,35,65,.09); border-color:#b9cee8; }

/* v0.3.10.0.8 — Admin design foundation + contact review workbench */
.admin-foundation-hero{
  border:1px solid rgba(15,23,42,.08);
  background:linear-gradient(135deg,#f8fbff 0%,#ffffff 58%,#f4f7fb 100%);
}
.compact-contact-stats .stat-card{min-height:92px;text-decoration:none;color:inherit}
.contact-policy-lock .action-list>div{border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0}
.contact-workbench-controls{display:grid;gap:12px}
.contact-workbench-controls .compact-filter{align-items:end}
.contact-review-actions{align-items:center;gap:8px;flex-wrap:wrap}
.contact-review-actions input[type=number]{width:82px}
.contact-company-stack{display:grid;gap:14px;margin-top:12px}
.contact-company-card{border:1px solid #dbe6f4;border-radius:18px;background:#fff;box-shadow:0 6px 20px rgba(15,23,42,.045);overflow:hidden}
.contact-company-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:14px 16px;border-bottom:1px solid #edf2f7;background:#fbfdff}
.contact-company-head small{display:block;margin-top:4px;color:#64748b;font-size:11px}
.contact-company-head .badges{justify-content:flex-end;flex-wrap:wrap}
.contact-current-strip{display:flex;gap:8px;flex-wrap:wrap;padding:10px 16px;border-bottom:1px solid #edf2f7;background:#f8fafc}
.contact-current-strip span{display:inline-flex;gap:5px;align-items:center;border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:6px 9px;font-size:11px;color:#64748b}
.contact-current-strip strong{color:#0f172a;font-weight:850}
.contact-candidate-list{display:grid;gap:0}
.contact-candidate-row{display:grid;grid-template-columns:34px minmax(150px,1.2fr) minmax(170px,1fr) minmax(180px,1.1fr) minmax(170px,1fr) auto;gap:10px;align-items:center;padding:12px 16px;border-bottom:1px solid #edf2f7}
.contact-candidate-row:last-child{border-bottom:0}
.contact-candidate-row:hover{background:#fbfdff}
.contact-candidate-row input[type=checkbox],.contact-review-results input[type=checkbox]{width:16px;height:16px;min-width:16px;accent-color:#0b5cab}
.contact-person-cell strong,.contact-value-cell strong{display:block;color:#0f172a;font-size:13px;line-height:1.3}
.contact-person-cell small,.contact-value-cell small,.contact-evidence-cell small{display:block;color:#64748b;font-size:11px;line-height:1.35;margin-top:2px}
.contact-governance-cell{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.contact-evidence-cell details{margin-top:4px}
.contact-review-results .bulk-bar{position:sticky;top:0;z-index:2;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:8px;margin-bottom:10px}
.route-contact-review .panel{border-radius:18px}
.route-contact-review .hero h2{letter-spacing:-.03em}
@media(max-width:1100px){.contact-candidate-row{grid-template-columns:28px 1fr;align-items:start}.contact-governance-cell,.contact-evidence-cell,.contact-value-cell,.contact-candidate-row .row-actions{grid-column:2}.contact-company-head{flex-direction:column}.contact-company-head .badges{justify-content:flex-start}}

/* v0.3.10.0.8.1 — Contact review QA + auto-confirm safety lock */
.safe-auto-confirm-actions .mini-control{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#64748b;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.safe-auto-confirm-actions .mini-control select{min-width:78px;height:32px;border:1px solid #dbe6f4;border-radius:10px;background:#fff;padding:0 8px;color:#0f172a;font-weight:800;text-transform:none;letter-spacing:0}
.inline-confirm{display:inline-flex;align-items:center;gap:6px;border:1px solid #dbe6f4;background:#f8fafc;border-radius:999px;padding:6px 10px;font-size:12px;color:#334155;font-weight:700;white-space:nowrap}
.inline-confirm input[type=checkbox]{width:15px!important;height:15px!important;min-width:15px!important;accent-color:#0b5cab}
.brreg-recovery-actions{margin-top:14px;padding-top:14px;border-top:1px solid var(--border);justify-content:flex-start}
.brreg-recovery-actions .inline-confirm{margin-right:auto}
.contact-auto-preview{border-color:#bfdbfe;background:linear-gradient(180deg,#eff6ff 0,#fff 48%)}
.contact-auto-preview .panel-head .badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.contact-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:10px 0 12px}
.contact-preview-grid>div{border:1px solid #dbe6f4;border-radius:14px;background:#fff;padding:12px;min-width:0}
.contact-preview-grid>div>strong{display:block;font-size:12px;color:#0f172a;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px}
.compact-list{list-style:none;margin:0;padding:0;display:grid;gap:8px;max-height:320px;overflow:auto}
.compact-list li{border-bottom:1px solid #edf2f7;padding:0 0 8px;margin:0;display:grid;gap:2px}
.compact-list li:last-child{border-bottom:0;padding-bottom:0}
.compact-list li span{font-size:11px;color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compact-list li strong{font-size:12px;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compact-list li small{font-size:10.5px;color:#64748b;line-height:1.35}
.contact-person-cell .badge{margin-top:5px;margin-right:4px;width:max-content}
@media(max-width:1100px){.contact-preview-grid{grid-template-columns:1fr}.contact-auto-preview .panel-head .badges{justify-content:flex-start}}

/* v0.3.10.0.8.2 — Structured contact package preview */
.structured-contact-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 12px;padding:10px 12px;border:1px solid var(--border,#d8dee8);border-radius:12px;background:var(--surface-soft,#f7f9fc)}
.structured-contact-preview strong{display:block;font-size:13px;line-height:1.2}
.structured-contact-preview small{display:block;color:var(--muted,#64748b);font-size:12px;margin-top:2px}
.contact-package-chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.structured-contact-preview details{margin-left:auto;min-width:145px;text-align:right}
@media (max-width: 900px){.structured-contact-preview{align-items:flex-start;flex-direction:column}.contact-package-chips{justify-content:flex-start}.structured-contact-preview details{margin-left:0;text-align:left}}


/* v0.3.10.1 — Prospect List + Prospect Detail Redesign
   Based on SW Prospect Intelligence Claude Design package.
   Scope: visual shell/tokens/navigation only. Backend logic remains locked. */
html[data-density="dense"]{
  --density:1;
  --row-h:36px;
  --row-h-sm:28px;
  --gap-1:4px;--gap-2:8px;--gap-3:12px;--gap-4:16px;--gap-5:20px;--gap-6:24px;
  --radius:6px;--radius-sm:4px;--radius-lg:10px;--panel-radius:8px;
  --font-sans:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:"Geist Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --fs-base:13px;--fs-xs:11px;--fs-sm:12px;--fs-md:13px;--fs-lg:15px;--fs-xl:18px;--fs-2xl:22px;
  --bg:#f5f6f8;--panel:#fff;--surface:#fff;--surface-2:#fafbfc;--surface-3:#f1f2f5;--surface-hover:#f5f6f8;
  --border:#e6e8ec;--line:#e6e8ec;--border-strong:#d6dae0;
  --text:#0d1116;--muted:#5c6573;--text-subtle:#8a909c;--text-faint:#afb4be;
  --accent:#1f6feb;--accent-hover:#1858c5;--accent-fg:#fff;--accent-bg:#eaf1fe;--accent-bg-strong:#d4e2fc;
  --blue:#1f6feb;--blue-2:#eaf1fe;--green:#1a7f37;--green-bg:#dafbe1;--amber:#9a5700;--amber-bg:#fff1c4;--red:#c0362c;--red-bg:#ffebe8;
  --shadow:0 1px 0 rgba(15,17,22,.04),0 1px 2px rgba(15,17,22,.06);
  --shadow-2:0 4px 10px rgba(15,17,22,.06),0 1px 3px rgba(15,17,22,.05);
  --sidebar-w:232px;
}
body.swpi-admin-shell{
  font-family:var(--font-sans)!important;
  font-size:var(--fs-base)!important;
  line-height:1.45!important;
  background:var(--bg)!important;
  color:var(--text)!important;
  -webkit-font-smoothing:antialiased;
  font-feature-settings:"cv11","ss01","cv02";
}
.swpi-admin-shell .sidebar{
  width:var(--sidebar-w)!important;min-width:var(--sidebar-w)!important;
  background:var(--surface-2)!important;color:var(--text)!important;
  border-right:1px solid var(--border)!important;border-radius:0!important;box-shadow:none!important;
  padding:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;
}
.swpi-admin-shell .brand{
  height:48px!important;margin:0!important;padding:12px 16px!important;border-bottom:1px solid var(--border)!important;gap:10px!important;flex-shrink:0;
}
.swpi-admin-shell .brand-mark{
  width:24px!important;height:24px!important;flex:0 0 24px!important;border-radius:4px!important;background:var(--text)!important;color:var(--surface)!important;font-size:11px!important;font-weight:700!important;letter-spacing:-.02em!important;
}
.swpi-admin-shell .brand-copy strong{color:var(--text)!important;font-size:13px!important;font-weight:650!important;letter-spacing:-.01em!important;line-height:1.1!important;white-space:nowrap!important;}
.swpi-admin-shell .brand-copy span{color:var(--text-muted)!important;font-size:11px!important;margin-top:1px!important;}
.swpi-admin-shell .nav{gap:0!important;padding:12px 8px 16px!important;overflow-y:auto!important;overflow-x:hidden!important;}
.swpi-admin-shell .nav-group{margin:0 0 16px!important;}
.swpi-admin-shell .nav-group>span{margin:0 0 6px 8px!important;color:var(--text-subtle)!important;font-size:10px!important;font-weight:650!important;letter-spacing:.06em!important;text-transform:uppercase!important;}
.swpi-admin-shell .nav-link{
  min-height:30px!important;padding:5px 8px!important;margin:1px 0!important;border-radius:6px!important;
  color:var(--text-muted)!important;background:transparent!important;box-shadow:none!important;font-size:12px!important;font-weight:500!important;gap:8px!important;
}
.swpi-admin-shell .nav-link:hover{background:var(--surface-hover)!important;color:var(--text)!important;text-decoration:none!important;}
.swpi-admin-shell .nav-link.active{background:var(--accent-bg)!important;color:var(--accent)!important;box-shadow:none!important;font-weight:650!important;}
.swpi-admin-shell .nav-ico{width:18px!important;height:18px!important;flex:0 0 18px!important;border-radius:4px!important;background:transparent!important;color:currentColor!important;}
.swpi-admin-shell .nav-link.active .nav-ico{background:transparent!important;color:var(--accent)!important;}
.swpi-admin-shell .sidebar-footer{margin-top:auto!important;padding:10px 12px!important;border-top:1px solid var(--border)!important;background:var(--surface-2)!important;gap:8px!important;}
.swpi-admin-shell .sidebar-footer a,.swpi-admin-shell .sidebar-footer small{color:var(--text-muted)!important;font-size:11px!important;}
.swpi-admin-shell .main{margin-left:var(--sidebar-w)!important;padding:20px!important;max-width:none!important;}
.swpi-admin-shell .topbar{
  min-height:48px!important;margin:-20px -20px 20px!important;padding:0 20px!important;background:var(--surface)!important;border-bottom:1px solid var(--border)!important;
  align-items:center!important;justify-content:space-between!important;gap:12px!important;position:sticky;top:0;z-index:50;
}
.swpi-admin-shell .topbar-title{min-width:0;}
.swpi-admin-shell .topbar h1{font-size:18px!important;font-weight:650!important;line-height:1.2!important;letter-spacing:-.015em!important;margin:0!important;color:var(--text)!important;}
.swpi-admin-shell .eyebrow{font-size:10px!important;letter-spacing:.08em!important;color:var(--text-subtle)!important;margin:0 0 1px!important;font-weight:650!important;}
.swpi-admin-shell .topbar-actions{display:flex;align-items:center;gap:8px;min-width:0;}
.swpi-admin-shell .shell-chip,.swpi-admin-shell .user-chip{display:inline-flex;align-items:center;min-height:24px;border:1px solid var(--border)!important;border-radius:999px!important;background:var(--surface-2)!important;color:var(--text-muted)!important;box-shadow:none!important;padding:3px 8px!important;font-size:11px!important;font-weight:600!important;white-space:nowrap;}
.swpi-admin-shell .panel,.swpi-admin-shell .hero,.swpi-admin-shell .detail-hero{
  border-radius:8px!important;border:1px solid var(--border)!important;background:var(--surface)!important;box-shadow:var(--shadow)!important;padding:16px!important;margin-bottom:16px!important;
}
.swpi-admin-shell .hero{background:var(--surface)!important;}
.swpi-admin-shell .hero h2,.swpi-admin-shell .detail-hero h2{font-size:22px!important;letter-spacing:-.02em!important;}
.swpi-admin-shell .panel h2,.swpi-admin-shell .panel-head h2{font-size:15px!important;font-weight:650!important;letter-spacing:-.01em!important;margin-bottom:6px!important;}
.swpi-admin-shell .panel-head{margin-bottom:12px!important;gap:12px!important;align-items:center!important;}
.swpi-admin-shell .panel-head p,.swpi-admin-shell .hero p,.swpi-admin-shell .detail-hero p{font-size:12px!important;color:var(--text-muted)!important;line-height:1.4!important;}
.swpi-admin-shell .stat-grid{gap:10px!important;margin-bottom:16px!important;}
.swpi-admin-shell .stat-card{border-radius:8px!important;border:1px solid var(--border)!important;background:var(--surface)!important;box-shadow:var(--shadow)!important;padding:12px!important;min-height:88px!important;}
.swpi-admin-shell .stat-card:before{height:2px!important;background:var(--border-strong)!important;}
.swpi-admin-shell .stat-card span{font-size:10px!important;font-weight:650!important;letter-spacing:.06em!important;text-transform:uppercase!important;color:var(--text-subtle)!important;}
.swpi-admin-shell .stat-card strong{font-size:24px!important;margin:6px 0 4px!important;color:var(--text)!important;letter-spacing:-.025em!important;}
.swpi-admin-shell .stat-card small{font-size:11px!important;color:var(--text-muted)!important;}
.swpi-admin-shell .btn,.swpi-admin-shell button{min-height:28px!important;border-radius:6px!important;padding:5px 10px!important;font-size:12px!important;font-weight:650!important;box-shadow:none!important;background:var(--accent)!important;color:#fff!important;border:1px solid var(--accent)!important;}
.swpi-admin-shell .btn.secondary,.swpi-admin-shell button.secondary,.swpi-admin-shell .btn.ghost{background:var(--surface)!important;color:var(--text)!important;border-color:var(--border-strong)!important;}
.swpi-admin-shell .btn.small,.swpi-admin-shell button.small{min-height:26px!important;padding:4px 8px!important;font-size:11px!important;border-radius:5px!important;}
.swpi-admin-shell .btn.danger,.swpi-admin-shell button.danger,.swpi-admin-shell .danger{background:var(--danger)!important;border-color:var(--danger)!important;color:#fff!important;}
.swpi-admin-shell input,.swpi-admin-shell select,.swpi-admin-shell textarea{min-height:30px!important;border-radius:6px!important;border:1px solid var(--border-strong)!important;background:var(--surface)!important;color:var(--text)!important;padding:5px 8px!important;font-size:12px!important;box-shadow:none!important;}
.swpi-admin-shell label{font-size:12px!important;font-weight:650!important;color:var(--text)!important;}
.swpi-admin-shell .data-table th{height:32px!important;padding:7px 9px!important;background:var(--surface-2)!important;color:var(--text-subtle)!important;border-bottom:1px solid var(--border)!important;font-size:10px!important;font-weight:650!important;letter-spacing:.06em!important;position:sticky;top:0;z-index:2;}
.swpi-admin-shell .data-table td{padding:8px 9px!important;border-bottom:1px solid var(--border)!important;font-size:12px!important;}
.swpi-admin-shell .data-table tr:hover td{background:var(--surface-hover)!important;}
.swpi-admin-shell .badge{min-height:19px!important;padding:2px 7px!important;border-radius:999px!important;font-size:10px!important;font-weight:650!important;margin:1px!important;box-shadow:none!important;}
.swpi-admin-shell .notice{border-radius:8px!important;padding:9px 11px!important;font-size:12px!important;margin-bottom:14px!important;box-shadow:none!important;}
.swpi-admin-shell .info-grid div,.swpi-admin-shell .metric-row div,.swpi-admin-shell .action-list a,.swpi-admin-shell .action-list>div{border-radius:8px!important;background:var(--surface-2)!important;border-color:var(--border)!important;box-shadow:none!important;}
.swpi-admin-shell .json-box,.swpi-admin-shell .codebox{border-radius:8px!important;font-size:11px!important;line-height:1.45!important;}
.swpi-admin-shell input[type="checkbox"]{width:16px!important;height:16px!important;min-height:16px!important;padding:0!important;border-radius:4px!important;vertical-align:middle;}
.swpi-admin-shell .advanced-box,.swpi-admin-shell details{border-radius:8px;}
@media(max-width:900px){
  .swpi-admin-shell .sidebar{position:fixed!important;top:0!important;left:0!important;bottom:0!important;width:min(86vw,320px)!important;min-width:0!important;transform:translateX(-108%)!important;transition:transform .2s ease!important;z-index:1000!important;}
  .swpi-admin-shell.nav-open .sidebar{transform:translateX(0)!important;}
  .swpi-admin-shell .main{margin-left:0!important;padding:14px 12px 42px!important;}
  .swpi-admin-shell .topbar{margin:-14px -12px 14px!important;padding:7px 12px!important;}
  .swpi-admin-shell .shell-chip{display:none!important;}
}

/* v0.3.10.1 — Prospect List + Prospect Detail Redesign */
.swpi-admin-shell.shell-v03101 .prospects-workspace-panel,
.swpi-admin-shell.route-prospects .prospects-workspace-panel{
  padding:14px!important;
}
.swpi-admin-shell .prospects-workspace-head{
  border-bottom:1px solid var(--border);
  padding-bottom:12px;
}
.swpi-admin-shell .view-tabs{
  display:flex;gap:6px;overflow-x:auto;padding:2px 0 10px;margin:0 0 10px!important;
  scrollbar-width:thin;
}
.swpi-admin-shell .view-tabs a{
  white-space:nowrap;border:1px solid var(--border)!important;border-radius:999px!important;background:var(--surface-2)!important;color:var(--text-muted)!important;
  min-height:26px;padding:5px 9px!important;font-size:11px!important;font-weight:650;text-decoration:none!important;
}
.swpi-admin-shell .view-tabs a:hover{background:var(--surface-hover)!important;color:var(--text)!important;}
.swpi-admin-shell .structured-filters{
  border:1px solid var(--border)!important;border-radius:8px!important;background:var(--surface-2)!important;padding:10px!important;margin:0 0 10px!important;
}
.swpi-admin-shell .filter-toolbar{display:grid!important;grid-template-columns:1.4fr repeat(4,minmax(150px,1fr));gap:8px!important;align-items:end!important;}
.swpi-admin-shell .filter-section{gap:5px!important;min-width:0!important;}
.swpi-admin-shell .filter-section label{font-size:10px!important;text-transform:uppercase;letter-spacing:.06em;color:var(--text-subtle)!important;}
.swpi-admin-shell .filter-section input,.swpi-admin-shell .filter-section select{width:100%;min-width:0!important;}
.swpi-admin-shell .filter-actions{display:flex;gap:8px;margin-top:10px;align-items:center;justify-content:flex-end;}
.swpi-admin-shell .bulk-bar.prospect-bulk-bar{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin:10px 0!important;padding:8px 10px!important;border:1px solid var(--border)!important;border-radius:8px!important;background:var(--surface-2)!important;}
.swpi-admin-shell .prospect-card-list{display:grid!important;gap:8px!important;}
.swpi-admin-shell .prospect-row-v2{
  display:grid!important;grid-template-columns:28px minmax(0,1fr) 190px;gap:12px!important;align-items:start;
  border:1px solid var(--border)!important;border-radius:8px!important;background:var(--surface)!important;box-shadow:var(--shadow)!important;padding:10px 12px!important;
  position:relative;overflow:hidden;margin:0!important;
}
.swpi-admin-shell .prospect-row-v2:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--border-strong);}
.swpi-admin-shell .prospect-row-v2.accent-high:before{background:var(--success);} 
.swpi-admin-shell .prospect-row-v2.accent-medium:before{background:var(--warning);} 
.swpi-admin-shell .prospect-row-v2.accent-low:before{background:var(--text-subtle);} 
.swpi-admin-shell .compact-select{display:flex!important;align-items:center;justify-content:center;margin-top:4px!important;font-size:0!important;}
.swpi-admin-shell .compact-select span{display:none!important;}
.swpi-admin-shell .prospect-row-main{min-width:0;display:flex;flex-direction:column;gap:7px;}
.swpi-admin-shell .prospect-row-titleline{display:flex;gap:10px;align-items:start;justify-content:space-between;min-width:0;}
.swpi-admin-shell .prospect-title-stack{min-width:0;}
.swpi-admin-shell .prospect-title-stack h3{font-size:14px!important;line-height:1.25!important;margin:0!important;font-weight:700!important;letter-spacing:-.01em;}
.swpi-admin-shell .prospect-title-stack p{font-size:11px!important;color:var(--text-muted)!important;margin:2px 0 0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.swpi-admin-shell .prospect-row-score{min-width:54px;border:1px solid var(--border)!important;border-radius:7px!important;text-align:center;padding:5px 7px!important;background:var(--surface-2)!important;}
.swpi-admin-shell .prospect-row-score strong{display:block;font-size:17px!important;line-height:1!important;letter-spacing:-.03em;}
.swpi-admin-shell .prospect-row-score span{display:block;font-size:9px!important;text-transform:uppercase;color:var(--text-subtle)!important;letter-spacing:.06em;margin-top:2px;}
.swpi-admin-shell .prospect-row-facts{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:6px;}
.swpi-admin-shell .prospect-row-facts>span{border:1px solid var(--border)!important;border-radius:7px!important;background:var(--surface-2)!important;padding:6px 7px!important;min-width:0;font-size:11px!important;color:var(--text)!important;line-height:1.25;}
.swpi-admin-shell .prospect-row-facts b{display:block;font-size:9px!important;text-transform:uppercase;letter-spacing:.06em;color:var(--text-subtle)!important;margin-bottom:2px;}
.swpi-admin-shell .prospect-row-signals{display:flex;gap:8px;align-items:center;min-width:0;}
.swpi-admin-shell .mini-label{font-size:9px!important;text-transform:uppercase;letter-spacing:.06em;color:var(--text-subtle)!important;font-weight:700!important;}
.swpi-admin-shell .prospect-row-actions{display:flex;flex-direction:column;gap:5px;align-items:stretch;min-width:0;}
.swpi-admin-shell .prospect-row-actions .badge{justify-content:center;max-width:100%;white-space:normal;text-align:center;}
.swpi-admin-shell .prospect-row-actions .btn{justify-content:center;text-align:center;}
.swpi-admin-shell .prospect-detail-summary-grid{
  display:grid;grid-template-columns:1.1fr 1fr 1.4fr 1fr;gap:10px;margin:-4px 0 16px;
}
.swpi-admin-shell .prospect-detail-summary-grid>div{
  border:1px solid var(--border)!important;border-radius:8px!important;background:var(--surface)!important;box-shadow:var(--shadow)!important;padding:11px 12px!important;min-width:0;
}
.swpi-admin-shell .prospect-detail-summary-grid span{display:block;font-size:10px!important;font-weight:700!important;text-transform:uppercase;letter-spacing:.06em;color:var(--text-subtle)!important;margin-bottom:5px;}
.swpi-admin-shell .prospect-detail-summary-grid strong{display:block;font-size:13px!important;line-height:1.25!important;color:var(--text)!important;min-width:0;overflow:hidden;text-overflow:ellipsis;}
.swpi-admin-shell .prospect-detail-summary-grid small{display:block;margin-top:4px;color:var(--text-muted)!important;font-size:11px!important;line-height:1.35;}
.swpi-admin-shell .prospect-detail-summary-grid em{font-style:normal;color:var(--text-muted);font-weight:600;}
.swpi-admin-shell .prospect-detail-v2{display:grid!important;grid-template-columns:minmax(0,1fr) 310px!important;gap:16px!important;align-items:start;}
.swpi-admin-shell .prospect-tabs-panel{padding:0!important;overflow:hidden;}
.swpi-admin-shell .detail-tabs{display:flex;gap:0;overflow-x:auto;border-bottom:1px solid var(--border)!important;background:var(--surface-2)!important;padding:6px!important;margin:0!important;}
.swpi-admin-shell .detail-tabs button{background:transparent!important;color:var(--text-muted)!important;border:0!important;border-radius:6px!important;min-height:28px!important;padding:5px 9px!important;font-size:11px!important;white-space:nowrap;}
.swpi-admin-shell .detail-tabs button.active{background:var(--surface)!important;color:var(--text)!important;box-shadow:var(--shadow)!important;}
.swpi-admin-shell .prospect-tabs-panel .tab-section{padding:16px!important;}
.swpi-admin-shell .action-side .panel{margin-bottom:10px!important;}
.swpi-admin-shell .action-side .stacked-actions{display:grid!important;gap:6px!important;}
@media(max-width:1180px){
  .swpi-admin-shell .filter-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));}
  .swpi-admin-shell .prospect-row-v2{grid-template-columns:26px minmax(0,1fr);} 
  .swpi-admin-shell .prospect-row-actions{grid-column:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));}
  .swpi-admin-shell .prospect-row-facts{grid-template-columns:repeat(2,minmax(0,1fr));}
  .swpi-admin-shell .prospect-detail-v2{grid-template-columns:1fr!important;}
  .swpi-admin-shell .prospect-detail-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:700px){
  .swpi-admin-shell .filter-toolbar{grid-template-columns:1fr;}
  .swpi-admin-shell .prospect-row-v2{grid-template-columns:1fr;padding:10px!important;}
  .swpi-admin-shell .compact-select{position:absolute;right:10px;top:8px;}
  .swpi-admin-shell .prospect-row-titleline{padding-right:34px;}
  .swpi-admin-shell .prospect-row-facts{grid-template-columns:1fr;}
  .swpi-admin-shell .prospect-row-actions{grid-column:auto;grid-template-columns:1fr 1fr;}
  .swpi-admin-shell .prospect-detail-summary-grid{grid-template-columns:1fr;}
}

/* v0.3.10.2 — Offer Intelligence UI + Readiness Governance + theme toggle */
html[data-density="dense"][data-theme="dark"]{
  --bg:#0b1118;--panel:#111923;--surface:#111923;--surface-2:#0f1720;--surface-3:#172232;--surface-hover:#172232;
  --border:#253245;--line:#253245;--border-strong:#334155;
  --text:#e5edf7;--muted:#a5b4c7;--text-muted:#a5b4c7;--text-subtle:#8190a6;--text-faint:#64748b;
  --accent:#60a5fa;--accent-hover:#93c5fd;--accent-fg:#07111f;--accent-bg:#132b49;--accent-bg-strong:#1d3f69;
  --blue:#60a5fa;--blue-2:#132b49;--green:#4ade80;--green-bg:#12351f;--amber:#fbbf24;--amber-bg:#352a12;--red:#f87171;--red-bg:#3a1717;
  --shadow:0 1px 0 rgba(255,255,255,.04),0 10px 30px rgba(0,0,0,.18);
  --shadow-2:0 20px 44px rgba(0,0,0,.28),0 1px 0 rgba(255,255,255,.04);
}
html[data-theme="dark"] body.swpi-admin-shell{background:var(--bg)!important;color:var(--text)!important;}
html[data-theme="dark"] .swpi-admin-shell input,
html[data-theme="dark"] .swpi-admin-shell select,
html[data-theme="dark"] .swpi-admin-shell textarea{background:var(--surface-2)!important;color:var(--text)!important;border-color:var(--border)!important;}
html[data-theme="dark"] .swpi-admin-shell .data-table th{background:var(--surface-2)!important;color:var(--text-subtle)!important;}
html[data-theme="dark"] .swpi-admin-shell .data-table td{border-color:var(--border)!important;}
html[data-theme="dark"] .swpi-admin-shell .notice.info{background:#10243b!important;border-color:#254b75!important;color:var(--text)!important;}
html[data-theme="dark"] .swpi-admin-shell .notice.warning{background:#2f2612!important;border-color:#604719!important;color:var(--text)!important;}
html[data-theme="dark"] .swpi-admin-shell .notice.success{background:#0f2a1a!important;border-color:#245a38!important;color:var(--text)!important;}
html[data-theme="dark"] .swpi-admin-shell .strong-link,
html[data-theme="dark"] .swpi-admin-shell a{color:#93c5fd;}
.theme-toggle{display:inline-flex;align-items:center;gap:6px;min-height:24px;border:1px solid var(--border)!important;border-radius:999px!important;background:var(--surface-2)!important;color:var(--text-muted)!important;padding:3px 8px!important;font-size:11px!important;font-weight:650!important;box-shadow:none!important;cursor:pointer;white-space:nowrap;}
.theme-toggle:hover{background:var(--surface-hover)!important;color:var(--text)!important;text-decoration:none!important;}
.theme-toggle span{font-size:12px;line-height:1;}
.offer-readiness-governance{background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 100%)!important;}
.offer-readiness-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px;}
.readiness-card{display:grid;gap:4px;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);text-decoration:none!important;color:var(--text)!important;box-shadow:var(--shadow);min-width:0;}
.readiness-card:hover{border-color:var(--border-strong);background:var(--surface-hover);}
.readiness-card span{font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:var(--text-subtle);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.readiness-card strong{font-size:24px;line-height:1;letter-spacing:-.04em;color:var(--text);}
.readiness-card small{font-size:11px;color:var(--muted);line-height:1.35;}
.readiness-card.success{border-left:3px solid var(--green);}
.readiness-card.warm{border-left:3px solid var(--amber);}
.readiness-card.info{border-left:3px solid var(--blue);}
.readiness-card.danger{border-left:3px solid var(--red);}
.offer-flow-rail{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid var(--border);}
.offer-flow-rail span{display:inline-flex;align-items:center;min-height:22px;padding:3px 8px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-size:11px;color:var(--muted);font-weight:650;}
.route-offer-intelligence .offer-fit-table td{vertical-align:top;}
.route-offer-intelligence .matched-angle-cell strong,
.route-offer-intelligence .fit-score-cell strong{display:block;}
.route-offer-intelligence .matched-angle-cell small,
.route-offer-intelligence .fit-score-cell small,
.route-offer-intelligence .offer-qa-cell small{display:block;color:var(--muted);font-size:11px;margin-top:2px;}
@media(max-width:1100px){.offer-readiness-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:700px){.offer-readiness-grid{grid-template-columns:1fr}.offer-flow-rail{display:grid;grid-template-columns:1fr}.theme-toggle strong{display:none;}}
html[data-density="dense"]{--text-muted:var(--muted);}


/* v0.3.10.3 — Vendor Intelligence UI + Merge Workflow Polish */
.vendor-intelligence-workspace{display:grid;gap:14px;}
.vendor-hero-head h2{margin-bottom:5px;}
.section-eyebrow{display:inline-flex;align-items:center;font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:900;color:var(--muted);margin-bottom:4px;}
.vendor-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.vendor-workflow-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:2px 0 4px;}
.vendor-workflow-strip>div{border:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(248,251,255,.88));border-radius:16px;padding:12px;display:grid;grid-template-columns:auto 1fr;column-gap:9px;row-gap:2px;align-items:start;}
.vendor-workflow-strip span{width:22px;height:22px;border-radius:999px;background:var(--blue-2);color:var(--blue);font-size:12px;font-weight:950;display:inline-flex;align-items:center;justify-content:center;grid-row:1 / span 2;}
.vendor-workflow-strip strong{font-size:13px;line-height:1.2;}
.vendor-workflow-strip small{color:var(--muted);font-size:11px;line-height:1.3;}
.vendor-filter-workbench{margin-top:0;}
.vendor-tools-bar,.vendor-merge-bar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2.6fr);gap:12px;align-items:center;}
.vendor-tools-bar .vendor-tool-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.vendor-tool-copy strong{display:block;font-size:13px;color:var(--text);}
.vendor-tool-copy span{display:block;color:var(--muted);font-size:12px;margin-top:2px;}
.vendor-merge-bar{grid-template-columns:minmax(220px,1.2fr) minmax(170px,1fr) minmax(150px,.9fr) minmax(170px,1fr) auto minmax(220px,1.2fr);}
.vendor-merge-bar .vendor-tool-copy span{max-width:360px;}
.vendor-compact-panel{background:linear-gradient(180deg,#fff,#fbfdff);}
.vendor-policy-notice{margin-top:14px;}
.vendor-table-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin:16px 0 10px;}
.vendor-table-head h2{font-size:18px;margin:0 0 3px;letter-spacing:-.03em;}
.vendor-table-head p{margin:0;color:var(--muted);font-size:12px;}
.vendor-polished-table th{white-space:nowrap;}
.vendor-polished-table td:nth-child(2){min-width:190px;}
.vendor-polished-table td:nth-child(6){max-width:220px;}
.vendor-polished-table .row-actions{justify-content:flex-start;}
.vendor-suggestions-panel .row-actions{gap:6px;}
.vendor-detail-panel{scroll-margin-top:16px;}
html[data-theme="dark"] .vendor-workflow-strip>div,html[data-theme="dark"] .vendor-compact-panel{background:rgba(15,23,42,.82);}
@media(max-width:1100px){.vendor-kpi-grid,.vendor-workflow-strip{grid-template-columns:repeat(2,minmax(0,1fr));}.vendor-tools-bar,.vendor-merge-bar{grid-template-columns:1fr}.vendor-tools-bar .vendor-tool-actions{justify-content:flex-start}.vendor-merge-bar input,.vendor-merge-bar button{width:100%;}}
@media(max-width:700px){.vendor-kpi-grid,.vendor-workflow-strip{grid-template-columns:1fr}.vendor-table-head{align-items:flex-start;flex-direction:column}.vendor-tools-bar .vendor-tool-actions{display:grid;grid-template-columns:1fr;}}

/* v0.3.10.4 — Diagnostics + Worker Operations Cleanup */
.operations-hero .button-row{justify-content:flex-end;align-items:center;}
.operation-command-center{background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 100%);}
.operation-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px;}
.operation-action-card{display:grid;gap:6px;align-content:start;min-height:112px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow);text-decoration:none!important;color:var(--text)!important;}
.operation-action-card.primary{border-left:3px solid var(--blue);}
.operation-action-card strong{font-size:13px;letter-spacing:-.02em;}
.operation-action-card span{font-size:12px;color:var(--muted);line-height:1.35;}
.operation-action-card em{font-style:normal;font-size:12px;font-weight:800;color:var(--blue);margin-top:auto;}
.operation-action-card button{justify-self:start;margin-top:auto;}
.advanced-operations-box,.advanced-diagnostics-box,.raw-json-box{margin-top:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);padding:0;overflow:hidden;}
.advanced-operations-box>summary,.advanced-diagnostics-box>summary,.raw-json-box>summary{cursor:pointer;list-style:none;padding:12px 14px;font-size:12px;font-weight:850;color:var(--text);border-bottom:1px solid transparent;}
.advanced-operations-box[open]>summary,.advanced-diagnostics-box[open]>summary,.raw-json-box[open]>summary{border-bottom-color:var(--line);}
.advanced-operations-box>summary::-webkit-details-marker,.advanced-diagnostics-box>summary::-webkit-details-marker,.raw-json-box>summary::-webkit-details-marker{display:none;}
.advanced-operations-box>summary:after,.advanced-diagnostics-box>summary:after,.raw-json-box>summary:after{content:'▾';float:right;color:var(--muted);font-size:11px;}
.advanced-operations-box:not([open])>summary:after,.advanced-diagnostics-box:not([open])>summary:after,.raw-json-box:not([open])>summary:after{content:'▸';}
.advanced-operations-box .notice{margin:12px 14px 8px;}
.advanced-actions{padding:0 14px 14px;}
.btn.danger{background:var(--red-bg)!important;border-color:rgba(248,113,113,.45)!important;color:var(--red)!important;}
.diagnostics-section{margin:14px 0;}
.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:10px;}
.section-heading h2{font-size:18px;margin:0 0 3px;letter-spacing:-.035em;}
.section-heading p{margin:0;color:var(--muted);font-size:12px;line-height:1.4;}
.diag-health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.diag-health-card{display:grid;gap:4px;min-height:88px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow);border-top:3px solid var(--border-strong);}
.diag-health-card span{font-size:10.5px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:var(--text-subtle);}
.diag-health-card strong{font-size:24px;line-height:1;letter-spacing:-.045em;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.diag-health-card small{font-size:11px;color:var(--muted);line-height:1.35;}
.diag-health-card.success{border-top-color:var(--green);}
.diag-health-card.warning,.diag-health-card.warm{border-top-color:var(--amber);}
.diag-health-card.danger,.diag-health-card.hot{border-top-color:var(--red);}
.diag-health-card.info,.diag-health-card.primary{border-top-color:var(--blue);}
.diag-health-card.neutral{border-top-color:var(--border-strong);}
.lane-health-table td{vertical-align:middle;}
.lane-health-table td:first-child{min-width:160px;}
.raw-json-box .settings-grid,.advanced-diagnostics-box .badges{padding:14px;}
.route-diagnostics .json-box{max-height:360px;overflow:auto;}
html[data-theme="dark"] .operation-action-card,html[data-theme="dark"] .diag-health-card{background:rgba(15,23,42,.82);}
html[data-theme="dark"] .advanced-operations-box,html[data-theme="dark"] .advanced-diagnostics-box,html[data-theme="dark"] .raw-json-box{background:rgba(15,23,42,.55);}
@media(max-width:1100px){.operation-action-grid,.diag-health-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.section-heading{align-items:flex-start;flex-direction:column;}}
@media(max-width:700px){.operation-action-grid,.diag-health-grid{grid-template-columns:1fr}.operations-hero .button-row{justify-content:flex-start}.operation-action-card{min-height:auto}.section-heading .btn{width:100%;}.lane-health-table{font-size:12px;}}

/* v0.3.10.5 — CRM Dry-Run Handoff QA + Global Design Tightening
   Scope: visual/admin design only + CRM dry-run QA presentation. Backend lanes remain locked. */
html[data-density="dense"]{
  --danger:#c0362c;
  --surface-soft:#f7f9fc;
  --focus-ring:0 0 0 3px rgba(31,111,235,.18);
}
html[data-density="dense"][data-theme="dark"]{
  --bg:#101722!important;
  --panel:#172232!important;
  --surface:#172232!important;
  --surface-2:#131d2a!important;
  --surface-3:#202d40!important;
  --surface-hover:#1d2a3d!important;
  --surface-soft:#1a2637!important;
  --border:#2b3a50!important;
  --line:#2b3a50!important;
  --border-strong:#3a4b63!important;
  --text:#eef4fb!important;
  --muted:#a9b7c8!important;
  --text-muted:#a9b7c8!important;
  --text-subtle:#8fa0b6!important;
  --text-faint:#6f8299!important;
  --accent:#60a5fa!important;
  --accent-hover:#93c5fd!important;
  --accent-fg:#06111f!important;
  --accent-bg:#132b47!important;
  --accent-bg-strong:#1c426d!important;
  --blue:#60a5fa!important;
  --blue-2:#132b47!important;
  --green:#4ade80!important;
  --green-bg:#11351f!important;
  --amber:#fbbf24!important;
  --amber-bg:#3b2b12!important;
  --red:#f87171!important;
  --red-bg:#3a1c1d!important;
  --shadow:none!important;
  --shadow-2:none!important;
}
.swpi-admin-shell{letter-spacing:-.006em;}
.swpi-admin-shell .main{max-width:1680px!important;margin-right:auto!important;}
.swpi-admin-shell .panel,.swpi-admin-shell .hero,.swpi-admin-shell .detail-hero{overflow:visible;}
.swpi-admin-shell .table-scroll{border:1px solid var(--border)!important;border-radius:8px!important;background:var(--surface)!important;overflow:auto!important;}
.swpi-admin-shell .data-table{background:var(--surface)!important;color:var(--text)!important;border-collapse:separate!important;border-spacing:0!important;}
.swpi-admin-shell .data-table th:first-child{border-top-left-radius:7px;}
.swpi-admin-shell .data-table th:last-child{border-top-right-radius:7px;}
.swpi-admin-shell .data-table td small{color:var(--muted)!important;}
.swpi-admin-shell .data-table .row-actions{gap:5px!important;}
.swpi-admin-shell input[type="checkbox"]{width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;padding:0!important;border-radius:3px!important;accent-color:var(--accent)!important;box-shadow:none!important;}
.swpi-admin-shell input:focus,.swpi-admin-shell select:focus,.swpi-admin-shell textarea:focus,.swpi-admin-shell button:focus,.swpi-admin-shell .btn:focus{outline:none!important;box-shadow:var(--focus-ring)!important;}
.swpi-admin-shell .badges{gap:5px!important;}
.swpi-admin-shell .badge{border:1px solid transparent!important;font-weight:750!important;line-height:1.15!important;}
.swpi-admin-shell .badge.neutral{background:var(--surface-3)!important;color:var(--text)!important;border-color:var(--border)!important;}
.swpi-admin-shell .badge.info,.swpi-admin-shell .badge.primary{background:var(--accent-bg)!important;color:var(--accent)!important;border-color:var(--accent-bg-strong)!important;}
.swpi-admin-shell .badge.success{background:var(--green-bg)!important;color:var(--green)!important;border-color:rgba(74,222,128,.28)!important;}
.swpi-admin-shell .badge.warm,.swpi-admin-shell .badge.warning{background:var(--amber-bg)!important;color:var(--amber)!important;border-color:rgba(251,191,36,.28)!important;}
.swpi-admin-shell .badge.danger,.swpi-admin-shell .badge.hot{background:var(--red-bg)!important;color:var(--red)!important;border-color:rgba(248,113,113,.30)!important;}
.swpi-admin-shell .notice{border-radius:8px!important;border:1px solid var(--border)!important;background:var(--surface-2)!important;color:var(--text)!important;padding:10px 12px!important;}
.swpi-admin-shell .notice small,.swpi-admin-shell .notice p{color:var(--muted)!important;}
.swpi-admin-shell .json-box,.swpi-admin-shell pre,.swpi-admin-shell code{background:var(--surface-2)!important;color:var(--text)!important;border-color:var(--border)!important;}
html[data-theme="dark"] .swpi-admin-shell .sidebar,
html[data-theme="dark"] .swpi-admin-shell .topbar,
html[data-theme="dark"] .swpi-admin-shell .sidebar-footer{background:#0f1723!important;border-color:var(--border)!important;}
html[data-theme="dark"] .swpi-admin-shell .panel,
html[data-theme="dark"] .swpi-admin-shell .hero,
html[data-theme="dark"] .swpi-admin-shell .detail-hero,
html[data-theme="dark"] .swpi-admin-shell .stat-card,
html[data-theme="dark"] .swpi-admin-shell .data-table,
html[data-theme="dark"] .swpi-admin-shell .table-scroll{background:var(--surface)!important;border-color:var(--border)!important;color:var(--text)!important;}
html[data-theme="dark"] .swpi-admin-shell .data-table th{background:#131d2a!important;color:var(--text-subtle)!important;border-color:var(--border)!important;}
html[data-theme="dark"] .swpi-admin-shell .data-table td{background:transparent!important;color:var(--text)!important;border-color:#223247!important;}
html[data-theme="dark"] .swpi-admin-shell .data-table tr:hover td{background:var(--surface-hover)!important;}
html[data-theme="dark"] .swpi-admin-shell .btn.secondary,
html[data-theme="dark"] .swpi-admin-shell button.secondary,
html[data-theme="dark"] .swpi-admin-shell .btn.ghost{background:#1a2637!important;color:var(--text)!important;border-color:var(--border-strong)!important;}
html[data-theme="dark"] .swpi-admin-shell .btn,
html[data-theme="dark"] .swpi-admin-shell button{background:#2563eb!important;border-color:#3b82f6!important;color:#fff!important;}
html[data-theme="dark"] .swpi-admin-shell input,
html[data-theme="dark"] .swpi-admin-shell select,
html[data-theme="dark"] .swpi-admin-shell textarea{background:#101927!important;border-color:var(--border-strong)!important;color:var(--text)!important;}
html[data-theme="dark"] .swpi-admin-shell input::placeholder,
html[data-theme="dark"] .swpi-admin-shell textarea::placeholder{color:#74869d!important;}
html[data-theme="dark"] .swpi-admin-shell .shell-chip,
html[data-theme="dark"] .swpi-admin-shell .user-chip,
html[data-theme="dark"] .theme-toggle{background:#111d2c!important;border-color:var(--border)!important;color:var(--text)!important;}
html[data-theme="dark"] .swpi-admin-shell .nav-link{color:#b8c5d6!important;}
html[data-theme="dark"] .swpi-admin-shell .nav-link:hover{background:#172232!important;color:#fff!important;}
html[data-theme="dark"] .swpi-admin-shell .nav-link.active{background:#12345a!important;color:#dbeafe!important;}
html[data-theme="dark"] .swpi-admin-shell .strong-link,
html[data-theme="dark"] .swpi-admin-shell a{color:#8ec5ff!important;}
html[data-theme="dark"] .swpi-admin-shell .payload-details summary{background:#132033!important;border-color:var(--border)!important;color:var(--text)!important;}
/* page-specific tightening */
.route-prospects .filter-panel,.route-prospects .filters,.route-prospects .prospect-workspace-filters{background:var(--surface)!important;border-color:var(--border)!important;}
.route-prospects .prospect-row,.route-prospects .prospect-card,.route-prospects .prospect-list-item{background:var(--surface)!important;border-color:var(--border)!important;}
.route-prospects .prospect-row:hover,.route-prospects .prospect-list-item:hover{background:var(--surface-hover)!important;}
.route-contact-review .contact-company-card{background:var(--surface)!important;border-color:var(--border)!important;box-shadow:none!important;border-radius:8px!important;}
.route-contact-review .contact-company-head{background:var(--surface-2)!important;border-color:var(--border)!important;}
.route-contact-review .contact-current-strip{background:var(--surface-soft)!important;border-color:var(--border)!important;}
.route-contact-review .contact-current-strip span{background:var(--surface)!important;border-color:var(--border)!important;color:var(--muted)!important;}
.route-contact-review .contact-current-strip strong,.route-contact-review .contact-person-cell strong,.route-contact-review .contact-value-cell strong{color:var(--text)!important;}
.route-contact-review .contact-person-cell small,.route-contact-review .contact-value-cell small,.route-contact-review .contact-evidence-cell small{color:var(--muted)!important;}
.route-contact-review .contact-candidate-row{border-color:var(--border)!important;background:var(--surface)!important;}
.route-contact-review .contact-candidate-row:hover{background:var(--surface-hover)!important;}
.route-contact-review .contact-review-results .bulk-bar{background:var(--surface)!important;border-color:var(--border)!important;}
.route-contact-review .inline-confirm,.route-contact-review .safe-auto-confirm-actions .mini-control select{background:var(--surface)!important;border-color:var(--border)!important;color:var(--text)!important;}
.route-contact-review .contact-auto-preview{background:var(--surface)!important;border-color:var(--border)!important;}
.route-vendors .vendor-workflow-strip>div,.route-vendors .vendor-compact-panel,.route-vendors .vendor-filter-workbench{background:var(--surface)!important;border-color:var(--border)!important;}
.route-vendors .vendor-tools-bar,.route-vendors .vendor-merge-bar{gap:10px!important;}
.route-vendors .vendor-polished-table td{vertical-align:middle!important;}
.route-vendors .vendor-polished-table .row-actions{display:grid!important;grid-template-columns:1fr!important;min-width:84px!important;}
.route-vendors .vendor-polished-table .row-actions .btn{width:100%!important;justify-content:center!important;}
html[data-theme="dark"] .route-vendors .vendor-workflow-strip>div,
html[data-theme="dark"] .route-vendors .vendor-compact-panel{background:var(--surface)!important;border-color:var(--border)!important;}
.route-offer-intelligence .offer-readiness-governance,
.route-offer-intelligence .readiness-card,
.route-worker .operation-command-center,
.route-diagnostics .diag-health-card{background:var(--surface)!important;border-color:var(--border)!important;}
/* CRM dry-run QA */
.crm-dryrun-qa-panel{background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 100%)!important;}
.crm-qa-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px;}
.crm-qa-grid>div{display:grid;gap:4px;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);min-height:106px;}
.crm-qa-grid span{width:22px;height:22px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--accent-bg);color:var(--accent);font-size:11px;font-weight:850;}
.crm-qa-grid strong{font-size:13px;color:var(--text);line-height:1.2;}
.crm-qa-grid small{font-size:11px;color:var(--muted);line-height:1.35;}
.route-crm-sync .payload-cell{max-width:260px;}
.route-crm-sync .data-table td{vertical-align:top;}
@media(max-width:1100px){.crm-qa-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.swpi-admin-shell .main{padding:14px!important}.swpi-admin-shell .topbar{margin:-14px -14px 14px!important;padding:0 14px!important;}.swpi-admin-shell .vendor-tools-bar,.swpi-admin-shell .vendor-merge-bar{grid-template-columns:1fr!important;}}
@media(max-width:720px){.crm-qa-grid{grid-template-columns:1fr}.swpi-admin-shell .sidebar{position:relative!important;width:100%!important;min-width:0!important;height:auto!important}.swpi-admin-shell .main{margin-left:0!important}.swpi-admin-shell .topbar{position:static!important}.swpi-admin-shell .stat-grid,.swpi-admin-shell .offer-readiness-grid{grid-template-columns:1fr!important}.swpi-admin-shell .panel-head{align-items:flex-start!important;flex-direction:column!important}.swpi-admin-shell .topbar-actions{flex-wrap:wrap;justify-content:flex-start}.route-vendors .vendor-polished-table .row-actions{min-width:0!important;}}

/* v0.3.10.5.1 — Dark Mode Layout QA + Prospects Density Tightening
   Visual-only QA patch. Backend/enrichment/CRM/outreach logic remains locked. */
html[data-density="dense"]{
  --sidebar-w:260px;
}
html[data-density="dense"][data-theme="dark"]{
  --bg:#0f1622!important;
  --panel:#151f2d!important;
  --surface:#151f2d!important;
  --surface-2:#111a27!important;
  --surface-3:#1c2a3d!important;
  --surface-hover:#1b293c!important;
  --surface-soft:#172538!important;
  --border:#314258!important;
  --line:#314258!important;
  --border-strong:#40536c!important;
  --text:#f3f7fc!important;
  --muted:#bdcad9!important;
  --text-muted:#bdcad9!important;
  --text-subtle:#9aacbf!important;
  --text-faint:#7f91a7!important;
  --accent:#74b8ff!important;
  --accent-hover:#a3d3ff!important;
  --accent-bg:#143252!important;
  --accent-bg-strong:#22517f!important;
  --blue:#74b8ff!important;
  --blue-2:#143252!important;
  --green:#5ee18e!important;
  --green-bg:#133c25!important;
  --amber:#ffd166!important;
  --amber-bg:#402e13!important;
  --red:#ff8b86!important;
  --red-bg:#442020!important;
  --shadow:none!important;
}
.swpi-admin-shell .sidebar{
  width:var(--sidebar-w)!important;
  min-width:var(--sidebar-w)!important;
  padding:10px 10px 12px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.swpi-admin-shell .main{
  margin-left:var(--sidebar-w)!important;
  max-width:none!important;
  padding:0 16px 42px!important;
}
.swpi-admin-shell .brand{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  min-height:72px!important;
  margin:0 0 12px!important;
  padding:10px 6px 14px!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;
}
.swpi-admin-shell .brand-mark{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  margin:0!important;
  border-radius:10px!important;
  font-size:13px!important;
  line-height:1!important;
}
.swpi-admin-shell .brand-copy{min-width:0!important;display:block!important;}
.swpi-admin-shell .brand-copy strong{
  display:block!important;
  max-width:178px!important;
  color:#fff!important;
  font-size:13px!important;
  line-height:1.15!important;
  letter-spacing:-.01em!important;
  white-space:normal!important;
  overflow:visible!important;
}
.swpi-admin-shell .brand-copy span{
  display:block!important;
  margin-top:3px!important;
  color:#a9bbcf!important;
  font-size:10.5px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.swpi-admin-shell .nav{gap:15px!important;}
.swpi-admin-shell .nav-group>span{
  margin:0 0 5px 4px!important;
  font-size:9.5px!important;
  line-height:1!important;
  color:#8ea4bc!important;
}
.swpi-admin-shell .nav-link{
  min-height:34px!important;
  padding:7px 8px!important;
  margin:2px 0!important;
  border-radius:8px!important;
  font-size:12px!important;
  line-height:1.15!important;
  gap:9px!important;
}
.swpi-admin-shell .nav-link .nav-ico,
.swpi-admin-shell .nav-ico{
  width:20px!important;
  min-width:20px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.swpi-admin-shell .sidebar-footer{
  padding:9px 6px 0!important;
  margin-top:auto!important;
  font-size:10.5px!important;
}
.swpi-admin-shell .topbar{
  min-height:40px!important;
  margin:0 -16px 12px!important;
  padding:0 16px!important;
  border-bottom:1px solid var(--border)!important;
  background:var(--surface)!important;
  align-items:center!important;
}
.swpi-admin-shell .topbar-title h1{
  margin:0!important;
  font-size:20px!important;
  line-height:1.1!important;
  letter-spacing:-.025em!important;
}
.swpi-admin-shell .topbar-title .eyebrow{
  margin:0 0 2px!important;
  font-size:9.5px!important;
  line-height:1!important;
}
.swpi-admin-shell .topbar-actions{gap:8px!important;align-items:center!important;}
.swpi-admin-shell .theme-toggle,.swpi-admin-shell .shell-chip,.swpi-admin-shell .user-chip{
  min-height:28px!important;
  height:28px!important;
  padding:5px 9px!important;
  border-radius:7px!important;
  font-size:11px!important;
}
.swpi-admin-shell .panel,.swpi-admin-shell .hero,.swpi-admin-shell .detail-hero,.swpi-admin-shell .stat-card{
  border-radius:10px!important;
}
.swpi-admin-shell .btn,.swpi-admin-shell button{
  min-height:28px!important;
  border-radius:7px!important;
  padding:6px 10px!important;
  font-size:11.5px!important;
}
.swpi-admin-shell .btn.small,.swpi-admin-shell button.small{
  min-height:24px!important;
  padding:4px 8px!important;
  font-size:10.5px!important;
}
html[data-theme="dark"] .swpi-admin-shell .sidebar,
html[data-theme="dark"] .swpi-admin-shell .topbar{
  background:#0d1520!important;
  border-color:#2b3d55!important;
}
html[data-theme="dark"] .swpi-admin-shell .panel,
html[data-theme="dark"] .swpi-admin-shell .hero,
html[data-theme="dark"] .swpi-admin-shell .detail-hero,
html[data-theme="dark"] .swpi-admin-shell .stat-card,
html[data-theme="dark"] .swpi-admin-shell .data-table,
html[data-theme="dark"] .swpi-admin-shell .table-scroll{
  background:#151f2d!important;
  border-color:#314258!important;
  color:var(--text)!important;
}
html[data-theme="dark"] .swpi-admin-shell .data-table th{
  background:#111a27!important;
  color:#b7c5d6!important;
}
html[data-theme="dark"] .swpi-admin-shell .data-table td{
  border-color:#273a52!important;
}
html[data-theme="dark"] .swpi-admin-shell input,
html[data-theme="dark"] .swpi-admin-shell select,
html[data-theme="dark"] .swpi-admin-shell textarea{
  background:#0f1927!important;
  border-color:#40536c!important;
  color:#f3f7fc!important;
}
html[data-theme="dark"] .swpi-admin-shell .muted,
html[data-theme="dark"] .swpi-admin-shell small,
html[data-theme="dark"] .swpi-admin-shell .mini-label{
  color:#b2c1d3!important;
}
html[data-theme="dark"] .swpi-admin-shell .btn.secondary,
html[data-theme="dark"] .swpi-admin-shell button.secondary,
html[data-theme="dark"] .swpi-admin-shell .btn.ghost{
  background:#172538!important;
  border-color:#40536c!important;
  color:#eef4fb!important;
}

/* Prospects list: fix clipped chips, heavy dark blocks and overwide rows. */
.swpi-admin-shell.route-prospects .prospects-workspace-panel{
  padding:10px!important;
}
.swpi-admin-shell.route-prospects .prospect-card-list{
  gap:8px!important;
}
.swpi-admin-shell.route-prospects .prospect-row-v2{
  grid-template-columns:24px minmax(0,1fr) 164px!important;
  gap:10px!important;
  padding:9px 10px!important;
  border-radius:8px!important;
  overflow:visible!important;
  align-items:start!important;
  background:var(--surface)!important;
  border-color:var(--border)!important;
}
.swpi-admin-shell.route-prospects .prospect-row-v2:before{
  width:3px!important;
  border-radius:8px 0 0 8px!important;
}
.swpi-admin-shell.route-prospects .compact-select{
  margin-top:3px!important;
  justify-content:flex-start!important;
}
.swpi-admin-shell.route-prospects .prospect-row-main{
  gap:7px!important;
  min-width:0!important;
  overflow:visible!important;
}
.swpi-admin-shell.route-prospects .prospect-row-titleline{
  align-items:flex-start!important;
  min-width:0!important;
}
.swpi-admin-shell.route-prospects .prospect-title-stack h3{
  font-size:13.5px!important;
  line-height:1.15!important;
  max-width:100%!important;
}
.swpi-admin-shell.route-prospects .prospect-title-stack p{
  font-size:10.5px!important;
  line-height:1.25!important;
  color:var(--muted)!important;
}
.swpi-admin-shell.route-prospects .prospect-row-score{
  min-width:50px!important;
  padding:5px 6px!important;
  border-radius:7px!important;
}
.swpi-admin-shell.route-prospects .prospect-row-score strong{font-size:16px!important;}
.swpi-admin-shell.route-prospects .prospect-row-score span{font-size:8.5px!important;}
.swpi-admin-shell.route-prospects .prospect-row-facts{
  display:grid!important;
  grid-template-columns:minmax(112px,1fr) minmax(95px,.85fr) minmax(88px,.75fr) minmax(132px,1.1fr) minmax(112px,.95fr)!important;
  gap:6px!important;
  align-items:stretch!important;
  min-width:0!important;
}
.swpi-admin-shell.route-prospects .prospect-row-facts>span{
  min-height:46px!important;
  padding:6px 7px!important;
  border-radius:7px!important;
  background:var(--surface-2)!important;
  border-color:var(--border)!important;
  color:var(--text)!important;
  font-size:10.5px!important;
  line-height:1.22!important;
  overflow:hidden!important;
}
.swpi-admin-shell.route-prospects .prospect-row-facts b{
  font-size:8.5px!important;
  margin-bottom:3px!important;
  color:var(--text-subtle)!important;
}
.swpi-admin-shell.route-prospects .prospect-row-signals{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  align-items:start!important;
  gap:8px!important;
  overflow:visible!important;
  min-width:0!important;
}
.swpi-admin-shell.route-prospects .prospect-row-signals .mini-label{
  padding-top:5px!important;
  font-size:8.5px!important;
}
.swpi-admin-shell.route-prospects .prospect-row-signals .compact-badges,
.swpi-admin-shell.route-prospects .compact-badges{
  max-width:none!important;
  width:100%!important;
  flex-wrap:wrap!important;
  overflow:visible!important;
  gap:5px!important;
  min-width:0!important;
}
.swpi-admin-shell.route-prospects .prospect-row-signals .badge,
.swpi-admin-shell.route-prospects .compact-badges .badge{
  max-width:none!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  padding:4px 7px!important;
  font-size:10px!important;
  line-height:1!important;
}
.swpi-admin-shell.route-prospects .prospect-row-actions{
  gap:5px!important;
  min-width:0!important;
}
.swpi-admin-shell.route-prospects .prospect-row-actions .badge,
.swpi-admin-shell.route-prospects .prospect-row-actions .btn{
  min-height:22px!important;
  padding:4px 7px!important;
  font-size:10px!important;
  border-radius:6px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .prospect-row-v2{
  background:#131f2e!important;
  border-color:#30455f!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .prospect-row-v2:hover{
  background:#172539!important;
  border-color:#46617e!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .prospect-row-facts>span,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .prospect-row-score{
  background:#101a28!important;
  border-color:#334961!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .prospect-title-stack h3 a{
  color:#86c7ff!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .badge.success{
  background:#123f26!important;
  color:#72f0a1!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .badge.info,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .badge.primary{
  background:#143a61!important;
  color:#9bd1ff!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .badge.neutral,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .badge-muted{
  background:#1d2b3e!important;
  color:#d4deea!important;
  border-color:#40536c!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .badge.warm,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .badge.warning{
  background:#443113!important;
  color:#ffdc77!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .badge.danger,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .badge.hot{
  background:#4b2222!important;
  color:#ffa19d!important;
}

/* Detail page and cross-page dark cleanup. */
html[data-theme="dark"] .swpi-admin-shell .info-grid div,
html[data-theme="dark"] .swpi-admin-shell .metric-row div,
html[data-theme="dark"] .swpi-admin-shell .prospect-detail-summary-grid>div,
html[data-theme="dark"] .swpi-admin-shell .action-list a,
html[data-theme="dark"] .swpi-admin-shell .action-list>div,
html[data-theme="dark"] .swpi-admin-shell .detail-tabs,
html[data-theme="dark"] .swpi-admin-shell .structured-filters,
html[data-theme="dark"] .swpi-admin-shell .bulk-bar,
html[data-theme="dark"] .swpi-admin-shell .crm-qa-grid>div,
html[data-theme="dark"] .swpi-admin-shell .contact-current-strip,
html[data-theme="dark"] .swpi-admin-shell .contact-company-head,
html[data-theme="dark"] .swpi-admin-shell .vendor-filter-workbench,
html[data-theme="dark"] .swpi-admin-shell .vendor-compact-panel,
html[data-theme="dark"] .swpi-admin-shell .vendor-workflow-strip>div{
  background:#111a27!important;
  border-color:#314258!important;
  color:var(--text)!important;
}
html[data-theme="dark"] .swpi-admin-shell .tab-section,
html[data-theme="dark"] .swpi-admin-shell .contact-company-card,
html[data-theme="dark"] .swpi-admin-shell .contact-candidate-row{
  background:#151f2d!important;
  border-color:#314258!important;
  color:var(--text)!important;
}
html[data-theme="dark"] .swpi-admin-shell .detail-tabs button.active{
  background:#1c2a3d!important;
  color:#f3f7fc!important;
}
html[data-theme="dark"] .swpi-admin-shell .notice.success{background:#123f26!important;color:#72f0a1!important;border-color:#23633c!important;}
html[data-theme="dark"] .swpi-admin-shell .notice.error,
html[data-theme="dark"] .swpi-admin-shell .alert{background:#4b2222!important;color:#ffa19d!important;border-color:#74403f!important;}
@media(max-width:1280px){
  .swpi-admin-shell.route-prospects .prospect-row-v2{grid-template-columns:24px minmax(0,1fr)!important;}
  .swpi-admin-shell.route-prospects .prospect-row-actions{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-column:2!important;}
  .swpi-admin-shell.route-prospects .prospect-row-facts{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:900px){
  .swpi-admin-shell .main{margin-left:0!important;padding:12px!important;}
  .swpi-admin-shell .topbar{margin:-12px -12px 12px!important;padding:8px 12px!important;min-height:auto!important;}
  .swpi-admin-shell.route-prospects .prospect-row-v2{grid-template-columns:22px minmax(0,1fr)!important;}
  .swpi-admin-shell.route-prospects .prospect-row-facts{grid-template-columns:1fr!important;}
  .swpi-admin-shell.route-prospects .prospect-row-actions{grid-template-columns:1fr 1fr!important;}
}

/* v0.3.10.5.2 — Prospect Detail Tabs QA + Dark Mode Surface Lock
   Focus: Prospect Detail tabs only. Backend/enrichment/outreach logic untouched. */
.swpi-admin-shell.route-prospect{
  --detail-gap:12px;
}
.swpi-admin-shell.route-prospect .main{
  padding-top:10px!important;
}
.swpi-admin-shell.route-prospect .topbar{
  min-height:42px!important;
  padding:6px 12px!important;
  margin-bottom:10px!important;
  align-items:center!important;
  border-bottom:1px solid var(--border)!important;
  background:var(--bg)!important;
}
.swpi-admin-shell.route-prospect .topbar .eyebrow{font-size:9px!important;line-height:1!important;margin:0 0 1px!important;}
.swpi-admin-shell.route-prospect .topbar h1{font-size:20px!important;line-height:1.05!important;margin:0!important;letter-spacing:-.035em!important;}
.swpi-admin-shell.route-prospect .topbar-actions{gap:6px!important;align-items:center!important;}
.swpi-admin-shell.route-prospect .theme-toggle,
.swpi-admin-shell.route-prospect .shell-chip,
.swpi-admin-shell.route-prospect .user-chip{min-height:26px!important;padding:5px 9px!important;font-size:11px!important;border-radius:8px!important;}

.swpi-admin-shell.route-prospect .detail-hero.enhanced{
  grid-template-columns:minmax(250px,.9fr) minmax(420px,2.1fr) minmax(118px,130px)!important;
  gap:12px!important;
  padding:12px!important;
  margin-bottom:12px!important;
  border-radius:12px!important;
  background:var(--surface)!important;
  border:1px solid var(--border)!important;
  box-shadow:none!important;
}
.swpi-admin-shell.route-prospect .detail-hero .profile-meta{font-size:12px!important;margin:2px 0 8px!important;color:var(--text-muted)!important;}
.swpi-admin-shell.route-prospect .detail-hero .eyebrow{font-size:10px!important;margin:0!important;color:var(--text-subtle)!important;}
.swpi-admin-shell.route-prospect .hero-badges .badge{font-size:10px!important;padding:4px 7px!important;}

.swpi-admin-shell.route-prospect .quick-signal-strip{
  display:flex!important;
  align-items:center!important;
  align-content:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  min-height:74px!important;
  padding:12px 14px!important;
  border-radius:14px!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.swpi-admin-shell.route-prospect .quick-signal-strip .badge.header-signal-badge{
  min-height:27px!important;
  padding:5px 9px!important;
  font-size:11px!important;
  border-radius:999px!important;
  max-width:100%!important;
}
.swpi-admin-shell.route-prospect .header-signal-badge .signal-icon{
  min-width:17px!important;height:17px!important;font-size:9px!important;padding:0 3px!important;
}

.swpi-admin-shell.route-prospect .hero-score-card{
  min-width:112px!important;
  min-height:74px!important;
  padding:10px!important;
  border-radius:14px!important;
  gap:6px!important;
  box-shadow:none!important;
}
.swpi-admin-shell.route-prospect .hero-score-card strong{
  width:58px!important;height:58px!important;font-size:25px!important;letter-spacing:-.06em!important;
}
.swpi-admin-shell.route-prospect .hero-score-card span{font-size:10px!important;letter-spacing:.05em!important;}

.swpi-admin-shell.route-prospect .prospect-detail-summary-grid{
  grid-template-columns:1fr 1fr 1.45fr 1fr!important;
  gap:10px!important;
  margin:0 0 12px!important;
}
.swpi-admin-shell.route-prospect .prospect-detail-summary-grid>div{
  min-height:74px!important;
  padding:11px 12px!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
.swpi-admin-shell.route-prospect .prospect-detail-summary-grid .badge{font-size:10px!important;padding:4px 8px!important;max-width:100%;white-space:normal;}

.swpi-admin-shell.route-prospect .prospect-detail-v2{
  grid-template-columns:minmax(0,1fr) 294px!important;
  gap:12px!important;
}
.swpi-admin-shell.route-prospect .prospect-tabs-panel{
  border-radius:12px!important;
  border:1px solid var(--border)!important;
  background:var(--surface)!important;
  overflow:hidden!important;
}
.swpi-admin-shell.route-prospect .detail-tabs{
  gap:4px!important;
  padding:7px!important;
  background:var(--surface-2)!important;
  border-bottom:1px solid var(--border)!important;
  position:sticky!important;
  top:0!important;
  z-index:4!important;
  scrollbar-width:thin;
}
.swpi-admin-shell.route-prospect .detail-tabs button{
  min-height:28px!important;
  padding:5px 9px!important;
  border:1px solid transparent!important;
  background:transparent!important;
  color:var(--text-muted)!important;
  border-radius:8px!important;
  font-size:11px!important;
  font-weight:850!important;
  box-shadow:none!important;
}
.swpi-admin-shell.route-prospect .detail-tabs button:hover{
  background:var(--surface-hover)!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}
.swpi-admin-shell.route-prospect .detail-tabs button.active{
  background:var(--blue)!important;
  color:#fff!important;
  border-color:var(--blue)!important;
  box-shadow:none!important;
}
.swpi-admin-shell.route-prospect .prospect-tabs-panel .tab-section{
  padding:14px!important;
  min-height:220px!important;
  background:var(--surface)!important;
  border:0!important;
}
.swpi-admin-shell.route-prospect .panel-head{margin-bottom:12px!important;gap:12px!important;}
.swpi-admin-shell.route-prospect .panel-head h2{font-size:15px!important;margin:0 0 4px!important;}
.swpi-admin-shell.route-prospect .panel-head p{font-size:12px!important;line-height:1.35!important;margin:0!important;color:var(--text-muted)!important;}

.swpi-admin-shell.route-prospect .display-contract-summary{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  padding:9px!important;
  border-radius:12px!important;
  margin-bottom:12px!important;
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
}
.swpi-admin-shell.route-prospect .display-contract-summary>div{
  background:var(--surface)!important;
  border:1px solid var(--border)!important;
  border-radius:10px!important;
  padding:7px 9px!important;
  min-height:34px!important;
}
.swpi-admin-shell.route-prospect .display-contract-summary strong{
  max-width:62%!important;
  color:var(--text)!important;
}
.swpi-admin-shell.route-prospect .display-contract-summary span{color:var(--text-subtle)!important;}

.swpi-admin-shell.route-prospect .empty-state,
.swpi-admin-shell.route-prospect .empty-state.compact-empty,
.swpi-admin-shell.route-prospect .empty-mini{
  background:var(--surface-2)!important;
  border:1px dashed var(--border-strong)!important;
  color:var(--text)!important;
  border-radius:12px!important;
  padding:18px!important;
  min-height:auto!important;
}
.swpi-admin-shell.route-prospect .empty-state strong,
.swpi-admin-shell.route-prospect .empty-mini strong{color:var(--text)!important;}
.swpi-admin-shell.route-prospect .empty-state p,
.swpi-admin-shell.route-prospect .empty-mini span{color:var(--text-muted)!important;}

.swpi-admin-shell.route-prospect .scan-evidence-block{
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
  border-radius:12px!important;
  padding:12px!important;
  margin:12px 0!important;
}
.swpi-admin-shell.route-prospect .scan-evidence-head h3{color:var(--text)!important;font-size:14px!important;}
.swpi-admin-shell.route-prospect .scan-evidence-head p{color:var(--text-muted)!important;}
.swpi-admin-shell.route-prospect .metric-row.enhanced.compact{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
}
.swpi-admin-shell.route-prospect .metric-row.enhanced.compact>div,
.swpi-admin-shell.route-prospect .info-grid.compact>div,
.swpi-admin-shell.route-prospect .reason-card,
.swpi-admin-shell.route-prospect .metric-card,
.swpi-admin-shell.route-prospect .insight-card,
.swpi-admin-shell.route-prospect .offer-box,
.swpi-admin-shell.route-prospect .content-preview,
.swpi-admin-shell.route-prospect .truth-registry-box,
.swpi-admin-shell.route-prospect .scan-history-panel{
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
  color:var(--text)!important;
  box-shadow:none!important;
}
.swpi-admin-shell.route-prospect .metric-row.enhanced.compact>div strong{font-size:20px!important;}
.swpi-admin-shell.route-prospect .metric-row.enhanced.compact>div span{font-size:10px!important;color:var(--text-subtle)!important;}
.swpi-admin-shell.route-prospect .info-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;}
.swpi-admin-shell.route-prospect .info-grid.compact>div{border-radius:10px!important;padding:10px!important;}
.swpi-admin-shell.route-prospect .info-grid dt{color:var(--text-subtle)!important;}
.swpi-admin-shell.route-prospect .info-grid dd{color:var(--text)!important;}

.swpi-admin-shell.route-prospect .table-scroll{
  background:transparent!important;
  border:1px solid var(--border)!important;
  border-radius:10px!important;
  overflow:auto!important;
}
.swpi-admin-shell.route-prospect .data-table th{
  background:var(--surface-2)!important;
  color:var(--text-subtle)!important;
}
.swpi-admin-shell.route-prospect .data-table td{
  background:var(--surface)!important;
  color:var(--text)!important;
}
.swpi-admin-shell.route-prospect .data-table tr:hover td{background:var(--surface-hover)!important;}
.swpi-admin-shell.route-prospect .row-actions{gap:5px!important;}

.swpi-admin-shell.route-prospect .detail-side.action-side{
  position:sticky!important;
  top:56px!important;
  max-height:calc(100vh - 70px)!important;
  overflow:auto!important;
  padding-right:3px!important;
  scrollbar-width:thin;
}
.swpi-admin-shell.route-prospect .action-side .panel{
  border-radius:12px!important;
  padding:13px!important;
  background:var(--surface)!important;
  border:1px solid var(--border)!important;
  box-shadow:none!important;
}
.swpi-admin-shell.route-prospect .action-side .panel h2{font-size:15px!important;margin:0 0 10px!important;}
.swpi-admin-shell.route-prospect .action-side .stacked-actions button{
  min-height:30px!important;
  padding:6px 9px!important;
  border-radius:8px!important;
  font-size:11px!important;
  background:var(--surface-2)!important;
  border:1px solid var(--border-strong)!important;
  color:var(--text)!important;
  box-shadow:none!important;
}
.swpi-admin-shell.route-prospect .action-side .stacked-actions button:hover{background:var(--surface-hover)!important;}
.swpi-admin-shell.route-prospect .action-side .stacked-actions button.danger,
.swpi-admin-shell.route-prospect .action-side .stacked-actions button[value="do_not_contact"]{
  background:rgba(239,68,68,.14)!important;
  border-color:rgba(239,68,68,.42)!important;
  color:#ffb4b4!important;
}
.swpi-admin-shell.route-prospect .prospect-repair-panel details{
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
  border-radius:10px!important;
  padding:0!important;
  margin:8px 0!important;
}
.swpi-admin-shell.route-prospect .prospect-repair-panel summary{
  padding:10px 11px!important;
  color:var(--text)!important;
  font-weight:850!important;
  cursor:pointer!important;
}
.swpi-admin-shell.route-prospect .repair-queue-hint{
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
  border-radius:10px!important;
  padding:10px!important;
  color:var(--text-muted)!important;
  font-size:11px!important;
}

html[data-theme="dark"] .swpi-admin-shell.route-prospect .quick-signal-strip,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .hero-score-card{
  background:#121d2b!important;
  border-color:#344961!important;
  color:#eaf2fb!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .quick-signal-strip .badge-success,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .quick-signal-strip .badge.badge-success{
  background:#0f3b26!important;
  color:#80f4ab!important;
  border-color:#205c3a!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .quick-signal-strip .badge-info,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .quick-signal-strip .badge.badge-info{
  background:#123250!important;
  color:#9bd3ff!important;
  border-color:#2f5c83!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .header-signal-badge .signal-icon{background:rgba(255,255,255,.1)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)!important;}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .hero-score-card strong{
  background:#3b2607!important;
  color:#ffd36f!important;
  box-shadow:inset 0 0 0 1px rgba(255,211,111,.24)!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .hero-score-card span{color:#cbd7e6!important;}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .display-contract-summary,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .empty-state,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .empty-mini,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .scan-evidence-block{
  background:#101a28!important;
  border-color:#344961!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .display-contract-summary>div,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .metric-row.enhanced.compact>div,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .info-grid.compact>div,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .reason-card,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .metric-card,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .insight-card,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .offer-box,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .content-preview,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .truth-registry-box,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .scan-history-panel{
  background:#121d2b!important;
  border-color:#344961!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .content-preview p,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .reason-card li,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .metric-card li{color:#d7e4f2!important;}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge-muted,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge.badge-muted,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge-neutral,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge.badge-neutral{
  background:#223247!important;
  border-color:#405871!important;
  color:#e5eef8!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect input,
html[data-theme="dark"] .swpi-admin-shell.route-prospect select,
html[data-theme="dark"] .swpi-admin-shell.route-prospect textarea{
  background:#0d1623!important;
  border-color:#3b536d!important;
  color:#f3f8ff!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect ::-webkit-scrollbar{width:10px;height:10px;}
html[data-theme="dark"] .swpi-admin-shell.route-prospect ::-webkit-scrollbar-track{background:#0b121c;}
html[data-theme="dark"] .swpi-admin-shell.route-prospect ::-webkit-scrollbar-thumb{background:#405871;border-radius:999px;border:2px solid #0b121c;}

@media(max-width:1280px){
  .swpi-admin-shell.route-prospect .detail-hero.enhanced{grid-template-columns:1fr 1.7fr 118px!important;}
  .swpi-admin-shell.route-prospect .prospect-detail-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .swpi-admin-shell.route-prospect .prospect-detail-v2{grid-template-columns:1fr!important;}
  .swpi-admin-shell.route-prospect .detail-side.action-side{position:static!important;max-height:none!important;}
}
@media(max-width:860px){
  .swpi-admin-shell.route-prospect .detail-hero.enhanced{grid-template-columns:1fr!important;}
  .swpi-admin-shell.route-prospect .quick-signal-strip{min-height:auto!important;}
  .swpi-admin-shell.route-prospect .hero-score-card{flex-direction:row!important;justify-content:flex-start!important;min-height:64px!important;}
  .swpi-admin-shell.route-prospect .prospect-detail-summary-grid,
  .swpi-admin-shell.route-prospect .display-contract-summary,
  .swpi-admin-shell.route-prospect .metric-row.enhanced.compact,
  .swpi-admin-shell.route-prospect .info-grid.compact{grid-template-columns:1fr!important;}
}

/* v0.3.10.5.3 — Prospects Responsive Filter/List QA + Mobile Navigation Lock
   Scope: CSS/layout only. Backend/enrichment/CRM/outreach logic untouched. */

/* Keep the mobile menu visible immediately; no white pre-menu gap. */
@media (max-width: 900px){
  html,body{
    margin:0!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
    background:var(--bg)!important;
  }
  .swpi-admin-shell{
    min-width:0!important;
    background:var(--bg)!important;
  }
  .swpi-admin-shell .main{
    margin-left:0!important;
    width:100%!important;
    max-width:100vw!important;
    padding:0 10px 34px!important;
    overflow-x:hidden!important;
  }
  .swpi-admin-shell .topbar{
    position:sticky!important;
    top:0!important;
    z-index:80!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    gap:8px 10px!important;
    align-items:center!important;
    margin:0 -10px 10px!important;
    padding:7px 10px!important;
    min-height:48px!important;
    background:rgba(15,23,32,.96)!important;
    border-bottom:1px solid var(--border)!important;
    backdrop-filter:blur(10px)!important;
  }
  .swpi-admin-shell .mobile-menu-toggle{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    min-height:34px!important;
    width:auto!important;
    padding:7px 10px!important;
    border-radius:10px!important;
    background:var(--surface-2)!important;
    border:1px solid var(--border-strong)!important;
    color:var(--text)!important;
    box-shadow:none!important;
  }
  .swpi-admin-shell .mobile-menu-toggle span:last-child{
    font-size:12px!important;
    font-weight:850!important;
  }
  .swpi-admin-shell .topbar-title{
    min-width:0!important;
  }
  .swpi-admin-shell .topbar-title .eyebrow{
    display:none!important;
  }
  .swpi-admin-shell .topbar h1{
    margin:0!important;
    font-size:18px!important;
    line-height:1.08!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .swpi-admin-shell .topbar-actions{
    grid-column:1/-1!important;
    display:flex!important;
    gap:6px!important;
    align-items:center!important;
    justify-content:flex-start!important;
    overflow-x:auto!important;
    padding-bottom:1px!important;
  }
  .swpi-admin-shell .theme-toggle,
  .swpi-admin-shell .user-chip{
    min-height:30px!important;
    padding:5px 8px!important;
    font-size:11px!important;
    white-space:nowrap!important;
  }
  .swpi-admin-shell .sidebar{
    position:fixed!important;
    inset:0 auto 0 0!important;
    width:min(86vw,318px)!important;
    min-width:0!important;
    height:100vh!important;
    transform:translateX(-108%)!important;
    z-index:1000!important;
    overflow:auto!important;
    border-radius:0 18px 18px 0!important;
  }
  body.nav-open .swpi-admin-shell .sidebar,
  .swpi-admin-shell.nav-open .sidebar{
    transform:translateX(0)!important;
  }
}

/* Prospects filter: turn the oversized floating layout into a compact control drawer. */
.swpi-admin-shell.route-prospects .prospects-workspace-panel{
  padding:12px!important;
}
.swpi-admin-shell.route-prospects .prospects-workspace-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:start!important;
  padding-bottom:10px!important;
  margin-bottom:8px!important;
}
.swpi-admin-shell.route-prospects .view-tabs{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  padding:0 0 10px!important;
  margin:0!important;
  border-bottom:1px solid var(--border)!important;
}
.swpi-admin-shell.route-prospects .view-tabs a{
  min-height:24px!important;
  padding:4px 8px!important;
  font-size:10.5px!important;
  background:var(--surface-2)!important;
  color:var(--text-muted)!important;
  border:1px solid var(--border)!important;
}
.swpi-admin-shell.route-prospects .mobile-filter-toggle{
  width:100%!important;
  min-height:40px!important;
  margin:10px 0 8px!important;
  padding:8px 10px!important;
  border-radius:12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
  color:var(--text)!important;
  box-shadow:none!important;
}
.swpi-admin-shell.route-prospects .mobile-filter-toggle>span{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:8px!important;
  background:var(--surface)!important;
  border:1px solid var(--border)!important;
  font-size:15px!important;
}
.swpi-admin-shell.route-prospects .mobile-filter-toggle strong{
  font-size:13px!important;
  line-height:1!important;
  color:var(--text)!important;
}
.swpi-admin-shell.route-prospects .mobile-filter-toggle em{
  margin-left:auto!important;
  color:var(--text-muted)!important;
  font-size:11px!important;
  font-style:normal!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.swpi-admin-shell.route-prospects .structured-filters[data-mobile-filter-panel]{
  background:var(--surface)!important;
  border:1px solid var(--border)!important;
  border-radius:14px!important;
  padding:12px!important;
  margin:0 0 10px!important;
  box-shadow:none!important;
  min-height:0!important;
}
.swpi-admin-shell.route-prospects .structured-filters[data-mobile-filter-panel].is-open{
  display:block!important;
}
.swpi-admin-shell.route-prospects .structured-filters .filter-toolbar{
  display:grid!important;
  grid-template-columns:1.25fr .95fr .75fr 1.05fr 1.05fr 1.2fr .95fr!important;
  gap:8px!important;
  align-items:stretch!important;
  min-height:0!important;
}
.swpi-admin-shell.route-prospects .structured-filters .filter-section{
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  min-height:0!important;
  height:auto!important;
  padding:9px!important;
  border:1px solid var(--border)!important;
  border-radius:11px!important;
  background:var(--surface-2)!important;
}
.swpi-admin-shell.route-prospects .structured-filters .filter-section label{
  margin:0!important;
  font-size:9px!important;
  line-height:1!important;
  color:var(--text-subtle)!important;
}
.swpi-admin-shell.route-prospects .structured-filters input,
.swpi-admin-shell.route-prospects .structured-filters select{
  min-height:31px!important;
  height:31px!important;
  border-radius:8px!important;
  font-size:11.5px!important;
  padding:0 8px!important;
  background:var(--surface)!important;
  border:1px solid var(--border-strong)!important;
  color:var(--text)!important;
}
.swpi-admin-shell.route-prospects .structured-filters .filter-actions{
  display:flex!important;
  justify-content:flex-end!important;
  gap:8px!important;
  margin-top:10px!important;
  padding-top:10px!important;
  border-top:1px solid var(--border)!important;
}
.swpi-admin-shell.route-prospects .structured-filters .filter-actions .btn{
  min-height:31px!important;
  min-width:92px!important;
  padding:6px 10px!important;
  border-radius:8px!important;
}

/* Prospects list: normalize proportions and remove the boxed-field look. */
.swpi-admin-shell.route-prospects .prospect-bulk-bar{
  margin:8px 0 10px!important;
  padding:8px!important;
  border-radius:12px!important;
  background:var(--surface)!important;
  border-color:var(--border)!important;
}
.swpi-admin-shell.route-prospects .prospect-card-list{
  gap:8px!important;
}
.swpi-admin-shell.route-prospects .prospect-row-v2{
  grid-template-columns:22px minmax(0,1fr) 150px!important;
  gap:10px!important;
  padding:10px!important;
  border-radius:11px!important;
  background:var(--surface)!important;
  border-color:var(--border)!important;
  box-shadow:none!important;
}
.swpi-admin-shell.route-prospects .prospect-row-titleline{
  margin:0!important;
  gap:10px!important;
}
.swpi-admin-shell.route-prospects .prospect-title-stack h3{
  font-size:14px!important;
  line-height:1.15!important;
}
.swpi-admin-shell.route-prospects .prospect-title-stack p{
  font-size:10.5px!important;
  margin-top:3px!important;
}
.swpi-admin-shell.route-prospects .prospect-row-score{
  min-width:48px!important;
  width:48px!important;
  padding:4px 5px!important;
}
.swpi-admin-shell.route-prospects .prospect-row-facts{
  display:grid!important;
  grid-template-columns:.9fr .7fr .7fr 1fr .85fr!important;
  gap:6px!important;
}
.swpi-admin-shell.route-prospects .prospect-row-facts>span{
  min-height:34px!important;
  padding:5px 7px!important;
  border-radius:8px!important;
  background:transparent!important;
  border:1px solid var(--border)!important;
  font-size:10.5px!important;
  line-height:1.2!important;
}
.swpi-admin-shell.route-prospects .prospect-row-facts b{
  font-size:8px!important;
  margin-bottom:2px!important;
}
.swpi-admin-shell.route-prospects .prospect-row-signals{
  margin-top:1px!important;
  grid-template-columns:42px minmax(0,1fr)!important;
}
.swpi-admin-shell.route-prospects .prospect-row-actions{
  align-self:stretch!important;
  justify-content:center!important;
  gap:4px!important;
}
.swpi-admin-shell.route-prospects .prospect-row-actions .badge,
.swpi-admin-shell.route-prospects .prospect-row-actions .btn{
  min-height:22px!important;
  padding:4px 6px!important;
  font-size:9.5px!important;
  border-radius:7px!important;
}

html[data-theme="dark"] .swpi-admin-shell.route-prospects .structured-filters,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .structured-filters .filter-section,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .mobile-filter-toggle,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .prospect-bulk-bar{
  background:#111a27!important;
  border-color:#344961!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .mobile-filter-toggle>span,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .structured-filters input,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .structured-filters select{
  background:#0c1521!important;
  border-color:#405871!important;
  color:#f1f7ff!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .view-tabs a{
  background:#0f1927!important;
  border-color:#334961!important;
  color:#cbd7e6!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .prospect-row-facts>span{
  background:#101a28!important;
  border-color:#334961!important;
}

@media(max-width:1280px){
  .swpi-admin-shell.route-prospects .structured-filters .filter-toolbar{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  .swpi-admin-shell.route-prospects .prospect-row-v2{
    grid-template-columns:22px minmax(0,1fr)!important;
  }
  .swpi-admin-shell.route-prospects .prospect-row-actions{
    grid-column:2!important;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }
  .swpi-admin-shell.route-prospects .prospect-row-facts{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:900px){
  .swpi-admin-shell.route-prospects .prospects-workspace-panel{
    padding:10px!important;
    margin-top:0!important;
  }
  .swpi-admin-shell.route-prospects .prospects-workspace-head{
    grid-template-columns:1fr auto!important;
    padding-bottom:8px!important;
  }
  .swpi-admin-shell.route-prospects .prospects-workspace-head h2{
    font-size:18px!important;
  }
  .swpi-admin-shell.route-prospects .prospects-workspace-head p:not(.eyebrow){
    display:none!important;
  }
  .swpi-admin-shell.route-prospects .table-meta{
    min-width:68px!important;
    padding:7px 8px!important;
    border-radius:12px!important;
  }
  .swpi-admin-shell.route-prospects .table-meta strong{
    font-size:18px!important;
  }
  .swpi-admin-shell.route-prospects .view-tabs{
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    padding-bottom:8px!important;
  }
  .swpi-admin-shell.route-prospects .view-tabs a{
    flex:0 0 auto!important;
  }
  .swpi-admin-shell.route-prospects .mobile-filter-toggle{
    min-height:38px!important;
  }
  .swpi-admin-shell.route-prospects .mobile-filter-toggle em{
    display:none!important;
  }
  .swpi-admin-shell.route-prospects .structured-filters[data-mobile-filter-panel]{
    display:none!important;
    padding:10px!important;
  }
  .swpi-admin-shell.route-prospects .structured-filters[data-mobile-filter-panel].is-open{
    display:block!important;
  }
  .swpi-admin-shell.route-prospects .structured-filters .filter-toolbar{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .swpi-admin-shell.route-prospects .structured-filters .filter-section{
    padding:8px!important;
  }
  .swpi-admin-shell.route-prospects .structured-filters .filter-actions{
    flex-direction:column!important;
  }
  .swpi-admin-shell.route-prospects .structured-filters .filter-actions .btn{
    width:100%!important;
  }
  .swpi-admin-shell.route-prospects .prospect-bulk-bar{
    align-items:stretch!important;
    flex-direction:column!important;
  }
  .swpi-admin-shell.route-prospects .prospect-bulk-bar select,
  .swpi-admin-shell.route-prospects .prospect-bulk-bar .btn{
    width:100%!important;
  }
  .swpi-admin-shell.route-prospects .prospect-row-v2{
    grid-template-columns:1fr!important;
    padding:10px!important;
  }
  .swpi-admin-shell.route-prospects .compact-select{
    position:absolute!important;
    top:10px!important;
    right:10px!important;
    margin:0!important;
  }
  .swpi-admin-shell.route-prospects .prospect-row-titleline{
    padding-right:34px!important;
  }
  .swpi-admin-shell.route-prospects .prospect-row-facts{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .swpi-admin-shell.route-prospects .prospect-row-actions{
    grid-column:auto!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:520px){
  .swpi-admin-shell .topbar-actions .user-chip{display:none!important;}
  .swpi-admin-shell.route-prospects .prospect-row-facts{
    grid-template-columns:1fr!important;
  }
  .swpi-admin-shell.route-prospects .prospect-row-actions{
    grid-template-columns:1fr!important;
  }
  .swpi-admin-shell.route-prospects .prospect-row-score{
    width:44px!important;
    min-width:44px!important;
  }
}

/* v0.3.10.5.4 — Claude Design Parity Pass: Prospects, Dashboard and Mobile Responsiveness
   Scope: CSS/layout only. No backend, worker, CRM, enrichment or outreach logic changed. */
html[data-density="dense"]{
  --bg:#f5f6f8!important;
  --surface:#ffffff!important;
  --surface-2:#fafbfc!important;
  --surface-3:#f1f2f5!important;
  --surface-hover:#f5f6f8!important;
  --border:#e6e8ec!important;
  --line:#e6e8ec!important;
  --border-strong:#d6dae0!important;
  --text:#0d1116!important;
  --muted:#5c6573!important;
  --text-muted:#5c6573!important;
  --text-subtle:#8a909c!important;
  --accent:#1f6feb!important;
  --accent-hover:#1858c5!important;
  --accent-bg:#eaf1fe!important;
  --blue:#1f6feb!important;
  --blue-2:#eaf1fe!important;
  --green:#1a7f37!important;
  --green-bg:#dafbe1!important;
  --amber:#9a5700!important;
  --amber-bg:#fff1c4!important;
  --red:#c0362c!important;
  --red-bg:#ffebe8!important;
  --shadow:0 1px 0 rgba(15,17,22,.04),0 1px 2px rgba(15,17,22,.06)!important;
}
html[data-density="dense"][data-theme="dark"]{
  --bg:#0a0c10!important;
  --panel:#141820!important;
  --surface:#141820!important;
  --surface-2:#11151c!important;
  --surface-3:#1a1f28!important;
  --surface-hover:#1c2230!important;
  --border:#232934!important;
  --line:#232934!important;
  --border-strong:#303743!important;
  --text:#e6e9ef!important;
  --muted:#8b94a3!important;
  --text-muted:#8b94a3!important;
  --text-subtle:#646b78!important;
  --text-faint:#4a505b!important;
  --accent:#4d8df6!important;
  --accent-hover:#6ba1ff!important;
  --accent-bg:#1a2a48!important;
  --accent-bg-strong:#213a66!important;
  --blue:#4d8df6!important;
  --blue-2:#1a2a48!important;
  --green:#4ec96d!important;
  --green-bg:#103a1e!important;
  --amber:#e0a64a!important;
  --amber-bg:#3e2d0c!important;
  --red:#ef5350!important;
  --red-bg:#421a18!important;
  --shadow:0 1px 0 rgba(0,0,0,.3),0 1px 2px rgba(0,0,0,.4)!important;
}

/* Global shell fidelity: reduce old heavy borders/buttons and keep surfaces consistent. */
.swpi-admin-shell .panel,
.swpi-admin-shell .hero,
.swpi-admin-shell .detail-hero,
.swpi-admin-shell .stat-card,
.swpi-admin-shell .top-prospect-card,
.swpi-admin-shell .prospect-row-v2{
  border-radius:8px!important;
  border:1px solid var(--border)!important;
  background:var(--surface)!important;
  box-shadow:var(--shadow)!important;
}
.swpi-admin-shell .btn,
.swpi-admin-shell button{
  border-radius:6px!important;
  min-height:28px!important;
  box-shadow:none!important;
}
.swpi-admin-shell .btn.secondary,
.swpi-admin-shell button.secondary,
.swpi-admin-shell .btn.ghost{
  background:var(--surface-2)!important;
  color:var(--text)!important;
  border-color:var(--border-strong)!important;
}
html[data-theme="dark"] .swpi-admin-shell .btn.secondary,
html[data-theme="dark"] .swpi-admin-shell button.secondary,
html[data-theme="dark"] .swpi-admin-shell .btn.ghost{
  background:var(--surface-2)!important;
  color:var(--text)!important;
  border-color:var(--border-strong)!important;
}
html[data-theme="dark"] .swpi-admin-shell input,
html[data-theme="dark"] .swpi-admin-shell select,
html[data-theme="dark"] .swpi-admin-shell textarea{
  background:#0f131a!important;
  color:var(--text)!important;
  border-color:var(--border-strong)!important;
}

/* Dashboard/frontpage: match Claude compact SaaS cards and responsive grid. */
.swpi-admin-shell.route-dashboard .dashboard-hero{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(360px,auto)!important;
  gap:16px!important;
  align-items:center!important;
  padding:16px!important;
}
.swpi-admin-shell.route-dashboard .dashboard-hero-actions{
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}
.swpi-admin-shell.route-dashboard .dashboard-quick-search{
  min-width:min(420px,100%)!important;
  height:32px!important;
  padding:3px!important;
  border-radius:8px!important;
  border:1px solid var(--border-strong)!important;
  background:var(--surface-2)!important;
}
.swpi-admin-shell.route-dashboard .dashboard-quick-search input{height:24px!important;min-height:24px!important;background:transparent!important;border:0!important;}
.swpi-admin-shell.route-dashboard .stat-grid{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;
  gap:10px!important;
}
.swpi-admin-shell.route-dashboard .stat-card{
  min-height:78px!important;
  padding:11px 12px!important;
}
.swpi-admin-shell.route-dashboard .stat-card strong{font-size:23px!important;margin:4px 0 2px!important;}
.swpi-admin-shell.route-dashboard .dashboard-main-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.45fr) minmax(300px,.7fr)!important;
  gap:14px!important;
  align-items:start!important;
}
.swpi-admin-shell.route-dashboard .top-prospect-list{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(330px,1fr))!important;
  gap:10px!important;
}
.swpi-admin-shell.route-dashboard .top-prospect-card{
  border-radius:8px!important;
  background:var(--surface)!important;
  color:var(--text)!important;
  overflow:hidden!important;
}
.swpi-admin-shell.route-dashboard .top-prospect-accent{
  height:3px!important;
  background:var(--border-strong)!important;
}
.swpi-admin-shell.route-dashboard .top-prospect-card.accent-hot .top-prospect-accent{background:var(--danger,#c0362c)!important;}
.swpi-admin-shell.route-dashboard .top-prospect-card.accent-warm .top-prospect-accent{background:var(--warning,#9a5700)!important;}
.swpi-admin-shell.route-dashboard .top-prospect-card.accent-neutral .top-prospect-accent{background:var(--accent)!important;}
.swpi-admin-shell.route-dashboard .top-prospect-head{padding:12px 12px 8px!important;}
.swpi-admin-shell.route-dashboard .top-prospect-title-wrap h3{font-size:15px!important;line-height:1.2!important;letter-spacing:-.01em!important;}
.swpi-admin-shell.route-dashboard .top-prospect-title-wrap p{font-size:11px!important;margin-top:4px!important;color:var(--text-muted)!important;}
.swpi-admin-shell.route-dashboard .top-prospect-score{
  width:54px!important;min-width:54px!important;height:54px!important;
  border-radius:999px!important;background:var(--surface-2)!important;border-color:var(--border)!important;
}
.swpi-admin-shell.route-dashboard .top-prospect-score span{font-size:20px!important;}
.swpi-admin-shell.route-dashboard .top-prospect-score small{font-size:8px!important;}
.swpi-admin-shell.route-dashboard .top-prospect-meta{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;padding:0 12px 10px!important;}
.swpi-admin-shell.route-dashboard .top-prospect-field{border-radius:7px!important;padding:7px 8px!important;background:var(--surface-2)!important;border-color:var(--border)!important;}
.swpi-admin-shell.route-dashboard .top-prospect-field>span{font-size:9px!important;margin-bottom:4px!important;color:var(--text-subtle)!important;}
.swpi-admin-shell.route-dashboard .top-prospect-statusline{padding:0 12px 12px!important;}
html[data-theme="dark"] .swpi-admin-shell.route-dashboard .top-prospect-card,
html[data-theme="dark"] .swpi-admin-shell.route-dashboard .top-prospect-field,
html[data-theme="dark"] .swpi-admin-shell.route-dashboard .action-list a,
html[data-theme="dark"] .swpi-admin-shell.route-dashboard .action-list>div{
  background:var(--surface)!important;
  border-color:var(--border)!important;
  color:var(--text)!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-dashboard .top-prospect-field,
html[data-theme="dark"] .swpi-admin-shell.route-dashboard .top-prospect-score{
  background:var(--surface-2)!important;
}

/* Prospects filter: Claude-style compact tray, not floating uneven boxes. */
.swpi-admin-shell.route-prospects .prospects-workspace-panel{
  padding:14px!important;
  background:var(--surface)!important;
}
.swpi-admin-shell.route-prospects .prospects-workspace-head{
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:16px!important;
  align-items:start!important;
  border-bottom:1px solid var(--border)!important;
  padding-bottom:12px!important;
}
.swpi-admin-shell.route-prospects .view-tabs{
  background:transparent!important;
  border-bottom:0!important;
  gap:6px!important;
  padding:10px 0 8px!important;
}
.swpi-admin-shell.route-prospects .view-tabs a{
  min-height:26px!important;
  padding:4px 9px!important;
  border-radius:999px!important;
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
  color:var(--text-muted)!important;
}
.swpi-admin-shell.route-prospects .view-tabs a.active,
.swpi-admin-shell.route-prospects .view-tabs a:hover{
  background:var(--accent-bg)!important;
  color:var(--accent)!important;
  border-color:var(--accent-bg-strong,var(--border-strong))!important;
}
.swpi-admin-shell.route-prospects .mobile-filter-toggle{
  min-height:36px!important;
  margin:6px 0!important;
  padding:6px 9px!important;
  border-radius:8px!important;
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
  color:var(--text)!important;
  display:flex!important;
}
.swpi-admin-shell.route-prospects .mobile-filter-toggle>span{width:24px!important;height:24px!important;min-width:24px!important;border-radius:6px!important;background:var(--surface)!important;}
.swpi-admin-shell.route-prospects .mobile-filter-toggle em{color:var(--text-muted)!important;font-size:11px!important;}
.swpi-admin-shell.route-prospects .structured-filters[data-mobile-filter-panel]:not(.is-open){display:none!important;}
.swpi-admin-shell.route-prospects .structured-filters[data-mobile-filter-panel].is-open{display:block!important;}
.swpi-admin-shell.route-prospects .structured-filters[data-mobile-filter-panel]{
  padding:10px!important;
  margin:6px 0 10px!important;
  border-radius:8px!important;
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
  box-shadow:none!important;
}
.swpi-admin-shell.route-prospects .structured-filters .filter-toolbar{
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:8px!important;
  align-items:start!important;
}
.swpi-admin-shell.route-prospects .structured-filters .filter-section{
  grid-column:span 2!important;
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  min-height:0!important;
}
.swpi-admin-shell.route-prospects .structured-filters .filter-main{grid-column:span 3!important;}
.swpi-admin-shell.route-prospects .structured-filters .filter-section:nth-of-type(4),
.swpi-admin-shell.route-prospects .structured-filters .filter-section:nth-of-type(6){grid-column:span 3!important;}
.swpi-admin-shell.route-prospects .structured-filters .filter-section label{
  font-size:10px!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
  color:var(--text-subtle)!important;
  margin:0!important;
}
.swpi-admin-shell.route-prospects .structured-filters input,
.swpi-admin-shell.route-prospects .structured-filters select{
  min-height:30px!important;
  height:30px!important;
  border-radius:6px!important;
  padding:4px 8px!important;
  font-size:12px!important;
  background:var(--surface)!important;
  border:1px solid var(--border-strong)!important;
  color:var(--text)!important;
}
.swpi-admin-shell.route-prospects .structured-filters .filter-actions{
  display:flex!important;
  justify-content:flex-end!important;
  gap:8px!important;
  margin-top:10px!important;
  padding-top:10px!important;
  border-top:1px solid var(--border)!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .structured-filters[data-mobile-filter-panel],
html[data-theme="dark"] .swpi-admin-shell.route-prospects .mobile-filter-toggle{
  background:var(--surface-2)!important;
  border-color:var(--border)!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .mobile-filter-toggle>span,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .structured-filters input,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .structured-filters select{
  background:#0f131a!important;
  border-color:var(--border-strong)!important;
  color:var(--text)!important;
}

/* Prospects list: use row/table proportions instead of boxed mini dashboards. */
.swpi-admin-shell.route-prospects .prospect-card-list{gap:6px!important;}
.swpi-admin-shell.route-prospects .prospect-row-v2{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr) 150px!important;
  gap:10px!important;
  padding:9px 10px!important;
  border-radius:8px!important;
  background:var(--surface)!important;
  border-color:var(--border)!important;
  min-height:auto!important;
}
.swpi-admin-shell.route-prospects .prospect-row-v2:before{width:2px!important;background:var(--border-strong)!important;}
.swpi-admin-shell.route-prospects .prospect-row-main{
  display:grid!important;
  grid-template-columns:minmax(190px,.7fr) minmax(420px,1.6fr)!important;
  gap:8px 12px!important;
  align-items:center!important;
}
.swpi-admin-shell.route-prospects .prospect-row-titleline{display:flex!important;align-items:center!important;gap:8px!important;margin:0!important;min-width:0!important;}
.swpi-admin-shell.route-prospects .prospect-title-stack h3{font-size:13px!important;line-height:1.15!important;margin:0!important;}
.swpi-admin-shell.route-prospects .prospect-title-stack p{font-size:10.5px!important;margin-top:2px!important;color:var(--text-muted)!important;}
.swpi-admin-shell.route-prospects .prospect-row-score{width:46px!important;min-width:46px!important;padding:4px 5px!important;border-radius:6px!important;background:var(--surface-2)!important;}
.swpi-admin-shell.route-prospects .prospect-row-score strong{font-size:16px!important;}
.swpi-admin-shell.route-prospects .prospect-row-score span{font-size:8px!important;}
.swpi-admin-shell.route-prospects .prospect-row-facts{
  display:grid!important;
  grid-template-columns:.9fr .7fr .7fr 1.1fr .9fr!important;
  gap:6px!important;
  align-items:center!important;
}
.swpi-admin-shell.route-prospects .prospect-row-facts>span{
  min-height:28px!important;
  padding:4px 6px!important;
  border-radius:6px!important;
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
  font-size:11px!important;
  line-height:1.15!important;
  overflow:hidden!important;
}
.swpi-admin-shell.route-prospects .prospect-row-facts b{font-size:8.5px!important;margin-bottom:1px!important;color:var(--text-subtle)!important;}
.swpi-admin-shell.route-prospects .prospect-row-signals{
  grid-column:1 / -1!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
  margin-top:0!important;
}
.swpi-admin-shell.route-prospects .prospect-row-signals .badges{display:flex!important;gap:4px!important;flex-wrap:wrap!important;min-width:0!important;overflow:visible!important;}
.swpi-admin-shell.route-prospects .prospect-row-signals .badge{font-size:10px!important;min-height:20px!important;padding:2px 7px!important;}
.swpi-admin-shell.route-prospects .prospect-row-actions{display:flex!important;flex-direction:column!important;gap:4px!important;align-self:center!important;}
.swpi-admin-shell.route-prospects .prospect-row-actions .badge,
.swpi-admin-shell.route-prospects .prospect-row-actions .btn{min-height:23px!important;padding:4px 6px!important;font-size:10px!important;border-radius:6px!important;}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .prospect-row-v2,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .prospect-row-score,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .prospect-row-facts>span{
  background:var(--surface)!important;
  border-color:var(--border)!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .prospect-row-facts>span,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .prospect-row-score{background:var(--surface-2)!important;}
html[data-theme="dark"] .swpi-admin-shell .badge-info{background:#1a2a48!important;color:#9ec7ff!important;border-color:#213a66!important;}
html[data-theme="dark"] .swpi-admin-shell .badge-success{background:#103a1e!important;color:#7be79a!important;border-color:#1a5230!important;}
html[data-theme="dark"] .swpi-admin-shell .badge-muted,
html[data-theme="dark"] .swpi-admin-shell .badge-neutral{background:#232934!important;color:#aab2c0!important;border-color:#303743!important;}

/* Prospect detail responsiveness: keep every tab usable on tablet/mobile. */
@media(max-width:1180px){
  .swpi-admin-shell.route-dashboard .dashboard-main-grid{grid-template-columns:1fr!important;}
  .swpi-admin-shell.route-dashboard .dashboard-hero{grid-template-columns:1fr!important;}
  .swpi-admin-shell.route-dashboard .dashboard-hero-actions{justify-content:flex-start!important;}
  .swpi-admin-shell.route-prospects .structured-filters .filter-toolbar{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
  .swpi-admin-shell.route-prospects .structured-filters .filter-section,
  .swpi-admin-shell.route-prospects .structured-filters .filter-main,
  .swpi-admin-shell.route-prospects .structured-filters .filter-section:nth-of-type(4),
  .swpi-admin-shell.route-prospects .structured-filters .filter-section:nth-of-type(6){grid-column:span 3!important;}
  .swpi-admin-shell.route-prospects .prospect-row-v2{grid-template-columns:20px minmax(0,1fr)!important;}
  .swpi-admin-shell.route-prospects .prospect-row-actions{grid-column:2!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;}
  .swpi-admin-shell.route-prospects .prospect-row-main{grid-template-columns:1fr!important;}
}
@media(max-width:900px){
  .swpi-admin-shell.route-dashboard .top-prospect-list{grid-template-columns:1fr!important;}
  .swpi-admin-shell.route-dashboard .top-prospect-meta{grid-template-columns:1fr!important;}
  .swpi-admin-shell.route-prospects .prospects-workspace-panel{padding:10px!important;}
  .swpi-admin-shell.route-prospects .structured-filters .filter-toolbar{grid-template-columns:1fr!important;}
  .swpi-admin-shell.route-prospects .structured-filters .filter-section,
  .swpi-admin-shell.route-prospects .structured-filters .filter-main,
  .swpi-admin-shell.route-prospects .structured-filters .filter-section:nth-of-type(4),
  .swpi-admin-shell.route-prospects .structured-filters .filter-section:nth-of-type(6){grid-column:auto!important;}
  .swpi-admin-shell.route-prospects .prospect-row-v2{grid-template-columns:1fr!important;position:relative!important;}
  .swpi-admin-shell.route-prospects .compact-select{position:absolute!important;top:10px!important;right:10px!important;}
  .swpi-admin-shell.route-prospects .prospect-row-titleline{padding-right:34px!important;}
  .swpi-admin-shell.route-prospects .prospect-row-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .swpi-admin-shell.route-prospects .prospect-row-actions{grid-column:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .swpi-admin-shell.route-prospect .detail-hero.enhanced{grid-template-columns:1fr!important;gap:10px!important;}
  .swpi-admin-shell.route-prospect .quick-signal-strip{min-height:auto!important;overflow:visible!important;}
  .swpi-admin-shell.route-prospect .prospect-detail-summary-grid{grid-template-columns:1fr!important;}
  .swpi-admin-shell.route-prospect .prospect-detail-v2{grid-template-columns:1fr!important;}
  .swpi-admin-shell.route-prospect .detail-side.action-side{position:static!important;max-height:none!important;overflow:visible!important;}
  .swpi-admin-shell.route-prospect .detail-tabs{position:sticky!important;top:48px!important;overflow-x:auto!important;}
}
@media(max-width:560px){
  .swpi-admin-shell.route-dashboard .dashboard-hero-actions,
  .swpi-admin-shell.route-dashboard .dashboard-quick-search{width:100%!important;}
  .swpi-admin-shell.route-dashboard .dashboard-hero-actions .btn{width:100%!important;}
  .swpi-admin-shell.route-prospects .prospect-row-facts{grid-template-columns:1fr!important;}
  .swpi-admin-shell.route-prospects .prospect-row-actions{grid-template-columns:1fr!important;}
}

/* v0.3.10.5.5 — Visual Legibility + List Standardization Lock
   Scope: CSS-only UI pass. Reduces radius, improves contrast, normalizes list rows,
   and organizes dense signal/status pills without changing backend/workers. */
.swpi-admin-shell{
  --radius-card:9px;
  --radius-panel:10px;
  --radius-control:6px;
  --radius-pill:999px;
  --row-pad-y:10px;
  --row-pad-x:12px;
  --ui-gap:10px;
}
html[data-theme="dark"] .swpi-admin-shell{
  --page-bg:#0b1119;
  --surface:#111a26;
  --surface-2:#151f2c;
  --surface-3:#1b2635;
  --surface-soft:#0f1722;
  --border:#2a394c;
  --border-strong:#3a4e67;
  --text:#eef5ff;
  --text-muted:#a8b7ca;
  --text-subtle:#8293a9;
  --accent:#4f8df7;
  --accent-strong:#6da2ff;
  --success:#52d17d;
  --success-bg:#10271b;
  --success-border:#24583a;
  --warning:#ffd26a;
  --warning-bg:#2b2212;
  --warning-border:#665027;
  --danger:#ff8c83;
  --danger-bg:#301719;
  --danger-border:#6c3034;
  --info:#93c5fd;
  --info-bg:#13263e;
  --info-border:#2d527f;
  background:var(--page-bg)!important;
  color:var(--text)!important;
}
html[data-theme="light"] .swpi-admin-shell{
  --surface:#ffffff;
  --surface-2:#f7fafc;
  --surface-3:#eef4fb;
  --border:#d9e4f0;
  --border-strong:#c3d1e3;
  --text:#122036;
  --text-muted:#58687d;
  --text-subtle:#73849a;
  --accent:#1f66d1;
  --accent-strong:#1555b8;
}

/* Normalize component shape and text clarity. */
.swpi-admin-shell .panel,
.swpi-admin-shell .card,
.swpi-admin-shell .stat-card,
.swpi-admin-shell .detail-card,
.swpi-admin-shell .action-list a,
.swpi-admin-shell .action-list>div,
.swpi-admin-shell .offer-box,
.swpi-admin-shell .empty-state,
.swpi-admin-shell .info-grid div,
.swpi-admin-shell .metric-row div,
.swpi-admin-shell .vendor-workflow-strip>div,
.swpi-admin-shell .vendor-compact-panel,
.swpi-admin-shell .prospects-workspace-panel,
.swpi-admin-shell .offer-readiness-governance,
.swpi-admin-shell .readiness-card,
.swpi-admin-shell .detail-side,
.swpi-admin-shell .prospect-truth-repair,
.swpi-admin-shell .structured-filters,
.swpi-admin-shell .prospect-row-v2{
  border-radius:var(--radius-panel)!important;
}
.swpi-admin-shell .btn,
.swpi-admin-shell button,
.swpi-admin-shell input,
.swpi-admin-shell select,
.swpi-admin-shell textarea,
.swpi-admin-shell .mobile-filter-toggle{
  border-radius:var(--radius-control)!important;
}
.swpi-admin-shell .badge,
.swpi-admin-shell .score-pill,
.swpi-admin-shell .view-tabs a,
.swpi-admin-shell .quick-signal-strip .badge{
  border-radius:var(--radius-pill)!important;
}
.swpi-admin-shell .btn,
.swpi-admin-shell button{
  min-height:30px!important;
  padding:6px 11px!important;
  font-size:12px!important;
  font-weight:750!important;
  letter-spacing:0!important;
  box-shadow:none!important;
  border:1px solid color-mix(in srgb,var(--accent),#000 14%)!important;
  background:var(--accent)!important;
  color:#fff!important;
}
.swpi-admin-shell .btn.secondary,
.swpi-admin-shell button.secondary,
.swpi-admin-shell .btn.ghost{
  background:transparent!important;
  color:var(--text)!important;
  border-color:var(--border-strong)!important;
}
html[data-theme="dark"] .swpi-admin-shell .btn.secondary,
html[data-theme="dark"] .swpi-admin-shell button.secondary,
html[data-theme="dark"] .swpi-admin-shell .btn.ghost{
  background:#121c29!important;
  color:#dfeaff!important;
  border-color:#3b506a!important;
}
.swpi-admin-shell .btn.small,
.swpi-admin-shell button.small{min-height:27px!important;padding:5px 9px!important;font-size:11px!important;border-radius:5px!important;}
.swpi-admin-shell .danger,
.swpi-admin-shell .btn.danger,
.swpi-admin-shell button.danger{background:var(--danger-bg)!important;border-color:var(--danger-border)!important;color:var(--danger)!important;}
.swpi-admin-shell .eyebrow,
.swpi-admin-shell .mini-label,
.swpi-admin-shell label,
.swpi-admin-shell .data-table th,
.swpi-admin-shell .info-grid dt{
  color:var(--text-subtle)!important;
  letter-spacing:.07em!important;
}
.swpi-admin-shell .muted,
.swpi-admin-shell small,
.swpi-admin-shell .panel-head p{color:var(--text-muted)!important;}
.swpi-admin-shell h1,
.swpi-admin-shell h2,
.swpi-admin-shell h3,
.swpi-admin-shell .strong-link{color:var(--text)!important;}
.swpi-admin-shell .strong-link{font-weight:850!important;}

/* Cleaner semantic badges; avoid muddy burgundy/blue/green conflicts. */
.swpi-admin-shell .badge{
  min-height:20px!important;
  padding:3px 8px!important;
  border:1px solid transparent!important;
  font-size:10.5px!important;
  line-height:1.1!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.swpi-admin-shell .badge-success{background:var(--success-bg)!important;color:var(--success)!important;border-color:var(--success-border)!important;}
.swpi-admin-shell .badge-info{background:var(--info-bg)!important;color:var(--info)!important;border-color:var(--info-border)!important;}
.swpi-admin-shell .badge-warm,
.swpi-admin-shell .badge-warning{background:var(--warning-bg)!important;color:var(--warning)!important;border-color:var(--warning-border)!important;}
.swpi-admin-shell .badge-hot,
.swpi-admin-shell .badge-danger{background:var(--danger-bg)!important;color:var(--danger)!important;border-color:var(--danger-border)!important;}
.swpi-admin-shell .badge-muted,
.swpi-admin-shell .badge-neutral{background:var(--surface-3)!important;color:var(--text-muted)!important;border-color:var(--border)!important;}
html[data-theme="dark"] .swpi-admin-shell .badge-hot,
html[data-theme="dark"] .swpi-admin-shell .badge-danger{background:#321a1d!important;color:#ffaaa4!important;border-color:#794044!important;}
html[data-theme="dark"] .swpi-admin-shell .badge-success{background:#102b1c!important;color:#7df0a1!important;border-color:#296545!important;}
html[data-theme="dark"] .swpi-admin-shell .badge-info{background:#142a45!important;color:#9bcaff!important;border-color:#315985!important;}
html[data-theme="dark"] .swpi-admin-shell .badge-muted,
html[data-theme="dark"] .swpi-admin-shell .badge-neutral{background:#202b39!important;color:#b5c2d2!important;border-color:#334357!important;}
html[data-theme="dark"] .swpi-admin-shell .stat-card strong,
html[data-theme="dark"] .swpi-admin-shell .metric-row strong,
html[data-theme="dark"] .swpi-admin-shell .table-meta strong{
  color:#f5f9ff!important;
  text-shadow:none!important;
}
html[data-theme="dark"] .swpi-admin-shell .stat-card span,
html[data-theme="dark"] .swpi-admin-shell .stat-card small{color:#aab8ca!important;}

/* Shared list/table surface standardization. */
.swpi-admin-shell .table-scroll,
.swpi-admin-shell .data-table,
.swpi-admin-shell .prospect-card-list,
.swpi-admin-shell .offer-fit-table{
  border-color:var(--border)!important;
}
.swpi-admin-shell .data-table{
  border-collapse:separate!important;
  border-spacing:0!important;
}
.swpi-admin-shell .data-table th{
  background:var(--surface-2)!important;
  color:var(--text-subtle)!important;
  padding:9px 10px!important;
  font-size:10.5px!important;
  border-bottom:1px solid var(--border)!important;
}
.swpi-admin-shell .data-table td{
  padding:12px 10px!important;
  color:var(--text)!important;
  border-bottom:1px solid var(--border)!important;
  vertical-align:middle!important;
}
html[data-theme="dark"] .swpi-admin-shell .data-table tr:hover td,
html[data-theme="dark"] .swpi-admin-shell .prospect-row-v2:hover{background:#162235!important;}
.swpi-admin-shell .row-actions{gap:6px!important;}

/* Prospects filter: compact, readable, not visually wild. */
.swpi-admin-shell.route-prospects .view-tabs{
  padding:8px!important;
  gap:6px!important;
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
  border-radius:var(--radius-panel)!important;
}
.swpi-admin-shell.route-prospects .view-tabs a{
  min-height:25px!important;
  padding:5px 10px!important;
  background:var(--surface)!important;
  color:var(--text)!important;
  border:1px solid var(--border-strong)!important;
  font-size:11px!important;
}
.swpi-admin-shell.route-prospects .view-tabs a:hover{background:var(--surface-3)!important;text-decoration:none!important;}
.swpi-admin-shell.route-prospects .mobile-filter-toggle{
  background:var(--surface-2)!important;
  color:var(--text)!important;
  border:1px solid var(--border)!important;
  padding:9px 12px!important;
  min-height:38px!important;
}
.swpi-admin-shell.route-prospects .mobile-filter-toggle span{
  width:27px!important;height:27px!important;border-radius:6px!important;
  background:var(--surface-3)!important;color:var(--text)!important;
}
.swpi-admin-shell.route-prospects .structured-filters[data-mobile-filter-panel]{
  background:var(--surface-soft,var(--surface))!important;
  border:1px solid var(--border)!important;
  padding:12px!important;
  margin-top:8px!important;
}
.swpi-admin-shell.route-prospects .structured-filters .filter-toolbar{
  display:grid!important;
  grid-template-columns:1.3fr 1.15fr .9fr 1.6fr 1.35fr 1.35fr 1fr!important;
  gap:10px!important;
  align-items:start!important;
}
.swpi-admin-shell.route-prospects .structured-filters .filter-section,
.swpi-admin-shell.route-prospects .structured-filters .filter-main{
  background:transparent!important;
  border:0!important;
  padding:0!important;
  display:grid!important;
  gap:5px!important;
}
.swpi-admin-shell.route-prospects .structured-filters .filter-section label{
  font-size:9.5px!important;
  font-weight:900!important;
  color:var(--text-subtle)!important;
  margin-left:1px!important;
}
.swpi-admin-shell.route-prospects .structured-filters input,
.swpi-admin-shell.route-prospects .structured-filters select{
  height:31px!important;
  min-height:31px!important;
  padding:5px 9px!important;
  background:var(--surface)!important;
  color:var(--text)!important;
  border:1px solid var(--border-strong)!important;
  font-size:12px!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospects .structured-filters input,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .structured-filters select{
  background:#0d141e!important;
  border-color:#304054!important;
  color:#edf5ff!important;
}
.swpi-admin-shell.route-prospects .structured-filters .filter-actions{
  margin-top:12px!important;
  padding-top:11px!important;
  border-top:1px solid var(--border)!important;
}

/* Prospects list: one standardized row pattern with organized signal lane. */
.swpi-admin-shell.route-prospects .prospect-card-list{gap:8px!important;}
.swpi-admin-shell.route-prospects .prospect-row-v2{
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr) 155px!important;
  gap:10px!important;
  align-items:center!important;
  padding:var(--row-pad-y) var(--row-pad-x)!important;
  background:var(--surface)!important;
  border:1px solid var(--border)!important;
  box-shadow:none!important;
}
.swpi-admin-shell.route-prospects .prospect-row-v2:before{width:3px!important;background:#41536b!important;opacity:.8!important;}
.swpi-admin-shell.route-prospects .prospect-row-v2.accent-high:before{background:var(--success)!important;}
.swpi-admin-shell.route-prospects .prospect-row-v2.accent-medium:before{background:var(--warning)!important;}
.swpi-admin-shell.route-prospects .prospect-row-main{
  display:grid!important;
  grid-template-columns:minmax(220px,.75fr) minmax(520px,1.6fr)!important;
  gap:10px 14px!important;
  align-items:center!important;
}
.swpi-admin-shell.route-prospects .prospect-row-titleline{min-width:0!important;display:flex!important;align-items:center!important;gap:9px!important;}
.swpi-admin-shell.route-prospects .prospect-title-stack h3{font-size:13px!important;line-height:1.2!important;letter-spacing:-.01em!important;}
.swpi-admin-shell.route-prospects .prospect-title-stack p{font-size:10.5px!important;color:var(--text-muted)!important;}
.swpi-admin-shell.route-prospects .prospect-row-score{
  width:48px!important;min-width:48px!important;
  background:var(--surface-2)!important;border:1px solid var(--border-strong)!important;
  border-radius:6px!important;color:var(--text)!important;
}
.swpi-admin-shell.route-prospects .prospect-row-score strong{color:var(--text)!important;font-size:17px!important;}
.swpi-admin-shell.route-prospects .prospect-row-facts{
  display:grid!important;
  grid-template-columns:.75fr .75fr .75fr 1.15fr .85fr!important;
  gap:6px!important;
}
.swpi-admin-shell.route-prospects .prospect-row-facts>span{
  min-height:34px!important;
  padding:6px 7px!important;
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
  color:var(--text)!important;
  border-radius:6px!important;
}
.swpi-admin-shell.route-prospects .prospect-row-facts b{
  display:block!important;
  color:var(--text-subtle)!important;
  font-size:8.5px!important;
  letter-spacing:.07em!important;
  margin-bottom:2px!important;
}
.swpi-admin-shell.route-prospects .prospect-row-signals{
  grid-column:1/-1!important;
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr)!important;
  align-items:start!important;
  gap:8px!important;
  margin-top:2px!important;
}
.swpi-admin-shell.route-prospects .prospect-row-signals .mini-label{
  font-size:9.5px!important;
  padding-top:4px!important;
  color:var(--text-subtle)!important;
}
.swpi-admin-shell.route-prospects .prospect-row-signals .badges{
  display:flex!important;flex-wrap:wrap!important;gap:4px!important;overflow:visible!important;min-width:0!important;
  max-height:48px!important;
}
.swpi-admin-shell.route-prospects .prospect-row-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:5px!important;
  align-self:stretch!important;
  align-content:center!important;
}
.swpi-admin-shell.route-prospects .prospect-row-actions .badge,
.swpi-admin-shell.route-prospects .prospect-row-actions .btn{
  min-height:24px!important;
  width:100%!important;
  justify-content:center!important;
  text-align:center!important;
  border-radius:5px!important;
  font-size:10.5px!important;
  padding:4px 7px!important;
}

/* Offer Intelligence: numbers and governance cards must read clearly. */
.swpi-admin-shell.route-offer-intelligence .stat-grid,
.swpi-admin-shell.route-offer-intelligence .offer-readiness-grid{gap:10px!important;}
.swpi-admin-shell.route-offer-intelligence .stat-card,
.swpi-admin-shell.route-offer-intelligence .readiness-card{
  background:var(--surface)!important;
  border:1px solid var(--border)!important;
  min-height:92px!important;
  padding:14px!important;
}
.swpi-admin-shell.route-offer-intelligence .stat-card strong,
.swpi-admin-shell.route-offer-intelligence .readiness-card strong{
  color:var(--text)!important;
  font-size:27px!important;
}
.swpi-admin-shell.route-offer-intelligence .offer-readiness-governance,
.swpi-admin-shell.route-offer-intelligence .notice{
  background:var(--surface)!important;
  border-color:var(--border)!important;
  color:var(--text)!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-offer-intelligence .notice{background:#10243a!important;border-color:#28537d!important;color:#dceeff!important;}
html[data-theme="dark"] .swpi-admin-shell.route-offer-intelligence .notice.warning,
html[data-theme="dark"] .swpi-admin-shell.route-offer-intelligence .alert{background:#2d2414!important;border-color:#72592a!important;color:#ffe0a1!important;}

/* Vendor list: readable data table with controlled row height and contrast. */
.swpi-admin-shell.route-vendors .vendor-table-head{margin-top:12px!important;align-items:center!important;}
.swpi-admin-shell.route-vendors .vendor-polished-table{
  min-width:1180px!important;
}
.swpi-admin-shell.route-vendors .vendor-polished-table th,
.swpi-admin-shell.route-vendors .vendor-polished-table td{
  padding:12px 10px!important;
}
.swpi-admin-shell.route-vendors .vendor-polished-table tr td{
  background:var(--surface)!important;
}
.swpi-admin-shell.route-vendors .vendor-polished-table tr:nth-child(even) td{
  background:var(--surface-2)!important;
}
.swpi-admin-shell.route-vendors .vendor-polished-table td:nth-child(2){min-width:210px!important;}
.swpi-admin-shell.route-vendors .vendor-polished-table td:nth-child(6){max-width:260px!important;color:var(--text-muted)!important;}
.swpi-admin-shell.route-vendors .vendor-polished-table td:nth-child(9){max-width:320px!important;line-height:1.35!important;}
.swpi-admin-shell.route-vendors .vendor-name-link{color:var(--info)!important;font-weight:850!important;}
.swpi-admin-shell.route-vendors .vendor-polished-table .row-actions{gap:5px!important;}
.swpi-admin-shell.route-vendors .vendor-polished-table .row-actions .btn{min-height:25px!important;font-size:10.5px!important;}

/* Contact/Review queue cards and dense lists share same surfaces. */
.swpi-admin-shell.route-contact-review .candidate-company-card,
.swpi-admin-shell.route-contact-review .contact-company-card,
.swpi-admin-shell.route-queues .data-table td,
.swpi-admin-shell.route-quality .data-table td{
  background:var(--surface)!important;
  color:var(--text)!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-contact-review .candidate-company-card,
html[data-theme="dark"] .swpi-admin-shell.route-contact-review .contact-company-card{background:#111a26!important;border-color:#2f4055!important;}

/* Responsive list rules after standardization. */
@media(max-width:1240px){
  .swpi-admin-shell.route-prospects .structured-filters .filter-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .swpi-admin-shell.route-prospects .prospect-row-v2{grid-template-columns:22px minmax(0,1fr)!important;}
  .swpi-admin-shell.route-prospects .prospect-row-main{grid-template-columns:1fr!important;}
  .swpi-admin-shell.route-prospects .prospect-row-actions{grid-column:2!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;}
}
@media(max-width:820px){
  .swpi-admin-shell.route-prospects .structured-filters .filter-toolbar{grid-template-columns:1fr!important;}
  .swpi-admin-shell.route-prospects .prospect-row-v2{grid-template-columns:1fr!important;}
  .swpi-admin-shell.route-prospects .compact-select{position:absolute!important;top:11px!important;right:11px!important;}
  .swpi-admin-shell.route-prospects .prospect-row-titleline{padding-right:34px!important;}
  .swpi-admin-shell.route-prospects .prospect-row-facts{grid-template-columns:1fr 1fr!important;}
  .swpi-admin-shell.route-prospects .prospect-row-signals{grid-template-columns:1fr!important;gap:4px!important;}
  .swpi-admin-shell.route-prospects .prospect-row-actions{grid-column:auto!important;grid-template-columns:1fr 1fr!important;}
}
@media(max-width:560px){
  .swpi-admin-shell.route-prospects .prospect-row-facts,
  .swpi-admin-shell.route-prospects .prospect-row-actions{grid-template-columns:1fr!important;}
}


/* v0.3.10.5.6 — Claude Design Parity Cleanup + Diagnostics Separation Lock
   Source of truth: Claude Design HANDOVER.md. UI-only; no worker/enrichment/CRM/outreach logic changes. */
html[data-density="dense"]{
  --density:1;
  --fs-base:13px;
  --radius:6px;
  --radius-sm:4px;
  --radius-lg:10px;
  --panel-radius:8px;
  --row-h:36px;
  --row-h-sm:28px;
}
html[data-density="dense"][data-theme="light"]{
  --bg:#f5f6f8!important;
  --surface:#ffffff!important;
  --surface-2:#fafbfc!important;
  --surface-3:#f1f2f5!important;
  --surface-hover:#f5f6f8!important;
  --surface-soft:#fafbfc!important;
  --border:#e6e8ec!important;
  --line:#e6e8ec!important;
  --border-strong:#d6dae0!important;
  --text:#0d1116!important;
  --muted:#5c6573!important;
  --text-muted:#5c6573!important;
  --text-subtle:#8a909c!important;
  --text-faint:#afb4be!important;
  --accent:#1f6feb!important;
  --accent-hover:#1858c5!important;
  --accent-bg:#eaf1fe!important;
  --accent-bg-strong:#d4e2fc!important;
  --success:#1a7f37!important;--success-bg:#dafbe1!important;--success-bg-strong:#bbf7d0!important;
  --warning:#9a5700!important;--warning-bg:#fff1c4!important;--warning-bg-strong:#ffe18b!important;
  --danger:#c0362c!important;--danger-bg:#ffebe8!important;--danger-bg-strong:#ffcdc8!important;
  --neutral-bg:#eef0f3!important;--neutral-fg:#5c6573!important;
  --info:#1f6feb!important;--info-bg:#eaf1fe!important;
}
html[data-density="dense"][data-theme="dark"]{
  --bg:#0a0c10!important;
  --panel:#141820!important;
  --surface:#141820!important;
  --surface-2:#11151c!important;
  --surface-3:#1a1f28!important;
  --surface-hover:#1c2230!important;
  --surface-soft:#11151c!important;
  --border:#232934!important;
  --line:#232934!important;
  --border-strong:#303743!important;
  --text:#e6e9ef!important;
  --muted:#8b94a3!important;
  --text-muted:#8b94a3!important;
  --text-subtle:#646b78!important;
  --text-faint:#4a505b!important;
  --accent:#4d8df6!important;
  --accent-hover:#6ba1ff!important;
  --accent-bg:#1a2a48!important;
  --accent-bg-strong:#213a66!important;
  --success:#4ec96d!important;--success-bg:#103a1e!important;--success-bg-strong:#1a5230!important;
  --warning:#e0a64a!important;--warning-bg:#3e2d0c!important;--warning-bg-strong:#5a4214!important;
  --danger:#ef5350!important;--danger-bg:#421a18!important;--danger-bg-strong:#5e2722!important;
  --neutral-bg:#232934!important;--neutral-fg:#aab2c0!important;
  --info:#4d8df6!important;--info-bg:#1a2a48!important;
  --shadow:none!important;
}

/* compact production primitives */
.swpi-admin-shell *{box-sizing:border-box;}
.swpi-admin-shell{font-size:var(--fs-base)!important;background:var(--bg)!important;color:var(--text)!important;}
.swpi-admin-shell .main{background:var(--bg)!important;}
.swpi-admin-shell .panel,
.swpi-admin-shell .hero,
.swpi-admin-shell .detail-hero,
.swpi-admin-shell .stat-card,
.swpi-admin-shell .kpi,
.swpi-admin-shell .table-scroll,
.swpi-admin-shell .data-table,
.swpi-admin-shell .action-list a,
.swpi-admin-shell .action-list>div{
  background:var(--surface)!important;
  color:var(--text)!important;
  border:1px solid var(--border)!important;
  border-radius:var(--panel-radius)!important;
  box-shadow:none!important;
}
.swpi-admin-shell .panel{padding:14px!important;}
.swpi-admin-shell .panel-head{margin-bottom:10px!important;gap:12px!important;}
.swpi-admin-shell .panel h2,.swpi-admin-shell .hero h2{color:var(--text)!important;letter-spacing:-.015em!important;}
.swpi-admin-shell .panel p,.swpi-admin-shell .hero p,.swpi-admin-shell small,.swpi-admin-shell .muted,.swpi-admin-shell .mini{color:var(--text-muted)!important;}
.swpi-admin-shell .eyebrow,.swpi-admin-shell .section-eyebrow,.swpi-admin-shell label,.swpi-admin-shell th{color:var(--text-subtle)!important;}
.swpi-admin-shell input,.swpi-admin-shell select,.swpi-admin-shell textarea{
  background:var(--surface-2)!important;color:var(--text)!important;border:1px solid var(--border-strong)!important;
  border-radius:var(--radius)!important;min-height:30px!important;padding:5px 9px!important;box-shadow:none!important;
}
.swpi-admin-shell input::placeholder,.swpi-admin-shell textarea::placeholder{color:var(--text-faint)!important;}
.swpi-admin-shell .btn,.swpi-admin-shell button{
  border-radius:var(--radius)!important;min-height:28px!important;padding:5px 10px!important;font-size:12px!important;font-weight:650!important;box-shadow:none!important;
}
.swpi-admin-shell .btn:not(.secondary):not(.ghost):not(.danger):not(.danger-soft),
.swpi-admin-shell button:not(.secondary):not(.ghost):not(.danger):not(.danger-soft){background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important;}
.swpi-admin-shell .btn.secondary,.swpi-admin-shell button.secondary,.swpi-admin-shell .btn.ghost{background:var(--surface-2)!important;color:var(--text)!important;border-color:var(--border-strong)!important;}
.swpi-admin-shell .danger,.swpi-admin-shell button.danger{background:var(--danger-bg)!important;border-color:var(--danger)!important;color:var(--danger)!important;}
.swpi-admin-shell .danger-soft{background:var(--danger-bg)!important;border-color:var(--danger-bg-strong)!important;color:var(--danger)!important;}

/* readable semantic chips without muddy color mixes */
.swpi-admin-shell .badge,.swpi-admin-shell .chip,.swpi-admin-shell .score-chip,.swpi-admin-shell .icon-pill,
.swpi-admin-shell .shell-chip,.swpi-admin-shell .user-chip,.swpi-admin-shell .theme-toggle{
  border-radius:var(--radius)!important;min-height:20px!important;padding:3px 7px!important;font-size:10.5px!important;font-weight:700!important;box-shadow:none!important;border:1px solid var(--border)!important;
  background:var(--neutral-bg)!important;color:var(--neutral-fg)!important;
}
.swpi-admin-shell .badge-success,.swpi-admin-shell .success,.swpi-admin-shell .score-chip.success{background:var(--success-bg)!important;color:var(--success)!important;border-color:var(--success-bg-strong)!important;}
.swpi-admin-shell .badge-warm,.swpi-admin-shell .warm,.swpi-admin-shell .score-chip.warm{background:var(--warning-bg)!important;color:var(--warning)!important;border-color:var(--warning-bg-strong)!important;}
.swpi-admin-shell .badge-danger,.swpi-admin-shell .danger,.swpi-admin-shell .score-chip.danger,.swpi-admin-shell .badge-hot{background:var(--danger-bg)!important;color:var(--danger)!important;border-color:var(--danger-bg-strong)!important;}
.swpi-admin-shell .badge-info,.swpi-admin-shell .info,.swpi-admin-shell .score-chip.info{background:var(--accent-bg)!important;color:var(--accent)!important;border-color:var(--accent-bg-strong)!important;}
.swpi-admin-shell .badges{gap:5px!important;align-items:center!important;}

/* tables/lists: one row system */
.swpi-admin-shell .data-table{border-collapse:separate!important;border-spacing:0!important;overflow:hidden!important;}
.swpi-admin-shell .data-table th{background:var(--surface-2)!important;color:var(--text-subtle)!important;border-bottom:1px solid var(--border)!important;padding:9px 10px!important;font-size:10px!important;}
.swpi-admin-shell .data-table td{background:var(--surface)!important;color:var(--text)!important;border-bottom:1px solid var(--border)!important;padding:10px!important;line-height:1.35!important;}
.swpi-admin-shell .data-table tr:nth-child(even) td{background:var(--surface-2)!important;}
.swpi-admin-shell .data-table tr:hover td{background:var(--surface-hover)!important;}
.swpi-admin-shell .row-actions{gap:5px!important;}
.swpi-admin-shell .row-actions .btn{min-height:24px!important;padding:4px 8px!important;font-size:11px!important;}

/* details/payloads are secondary, not the primary surface */
.swpi-admin-shell .payload-details summary{background:var(--surface-2)!important;border-color:var(--border-strong)!important;color:var(--text-muted)!important;border-radius:var(--radius)!important;padding:5px 8px!important;font-size:11px!important;}
.swpi-admin-shell .payload-details pre,.swpi-admin-shell .json-box,.swpi-admin-shell .codebox,.swpi-admin-shell .code{background:var(--surface-2)!important;color:var(--text-muted)!important;border:1px solid var(--border)!important;border-radius:var(--radius)!important;}

/* empty states and detail-tab cards should never turn white blocks in dark theme */
.swpi-admin-shell .empty-state,.swpi-admin-shell .empty,.swpi-admin-shell .offer-box,.swpi-admin-shell .reason-card,
.swpi-admin-shell .info-grid div,.swpi-admin-shell .metric-row div,.swpi-admin-shell .offer-score-strip,.swpi-admin-shell .offer-qa-strip,
.swpi-admin-shell .offer-qa-score,.swpi-admin-shell .offer-qa-flag,.swpi-admin-shell .offer-score-chip,
.swpi-admin-shell .offer-review-flags,.swpi-admin-shell .readiness-detail,.swpi-admin-shell .financial-detail,
.swpi-admin-shell .display-contract-grid>div,.swpi-admin-shell .action-list.static>div{
  background:var(--surface-2)!important;color:var(--text)!important;border:1px solid var(--border)!important;border-radius:var(--radius)!important;box-shadow:none!important;
}
.swpi-admin-shell .empty-state{padding:18px!important;text-align:center!important;color:var(--text-muted)!important;}
.swpi-admin-shell .offer-qa-score.success,.swpi-admin-shell .offer-qa-flag.success{background:var(--success-bg)!important;border-color:var(--success-bg-strong)!important;}
.swpi-admin-shell .offer-qa-score.warm,.swpi-admin-shell .offer-qa-flag.warm{background:var(--warning-bg)!important;border-color:var(--warning-bg-strong)!important;}
.swpi-admin-shell .offer-qa-score.danger,.swpi-admin-shell .offer-qa-flag.danger{background:var(--danger-bg)!important;border-color:var(--danger-bg-strong)!important;}
.swpi-admin-shell .offer-qa-score.info,.swpi-admin-shell .offer-qa-flag.info{background:var(--accent-bg)!important;border-color:var(--accent-bg-strong)!important;}
.swpi-admin-shell .offer-qa-score strong,.swpi-admin-shell .offer-qa-flag strong,.swpi-admin-shell .offer-score-chip strong,.swpi-admin-shell .offer-box strong{color:var(--text)!important;}
.swpi-admin-shell .offer-qa-score small,.swpi-admin-shell .offer-qa-flag small{color:var(--text-muted)!important;}

/* Contact Review: remove duplicated visual noise, align with Claude workbench density */
.route-contact-review .compact-policy{padding:0!important;overflow:hidden!important;}
.route-contact-review .policy-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0!important;}
.route-contact-review .policy-row>div{padding:12px 14px;border-right:1px solid var(--border);background:var(--surface)!important;}
.route-contact-review .policy-row>div:last-child{border-right:0;}
.route-contact-review .policy-row strong{display:block;color:var(--text)!important;font-size:12px!important;}
.route-contact-review .policy-row span{display:block;color:var(--text-muted)!important;font-size:11px!important;margin-top:3px;line-height:1.35;}
.route-contact-review .contact-company-card{border-radius:var(--panel-radius)!important;overflow:hidden!important;background:var(--surface)!important;border-color:var(--border)!important;}
.route-contact-review .contact-company-head{padding:12px 14px!important;background:var(--surface)!important;border-bottom:1px solid var(--border)!important;}
.route-contact-review .contact-current-strip.clean-summary{padding:8px 14px!important;background:var(--surface-2)!important;border-bottom:1px solid var(--border)!important;}
.route-contact-review .contact-current-strip.clean-summary span{border:0!important;background:transparent!important;padding:0!important;margin-right:12px!important;color:var(--text-muted)!important;border-radius:0!important;}
.route-contact-review .contact-current-strip.clean-summary strong{color:var(--text)!important;}
.route-contact-review .structured-contact-preview.clean-crm-preview{margin:0!important;padding:10px 14px!important;border-width:0 0 1px!important;border-radius:0!important;background:var(--surface)!important;}
.route-contact-review .structured-contact-preview.clean-crm-preview .secondary-action{margin-left:auto;}
.route-contact-review .contact-package-chips{display:flex;gap:5px;flex-wrap:wrap;}
.route-contact-review .contact-candidate-row{grid-template-columns:28px minmax(180px,1.05fr) minmax(160px,.9fr) minmax(160px,.95fr) minmax(100px,.55fr) auto!important;padding:10px 14px!important;border-bottom:1px solid var(--border)!important;background:var(--surface)!important;}
.route-contact-review .contact-candidate-row:nth-child(even){background:var(--surface-2)!important;}
.route-contact-review .contact-person-cell strong,.route-contact-review .contact-value-cell strong{font-size:12.5px!important;color:var(--text)!important;}
.route-contact-review .contact-person-cell small,.route-contact-review .contact-value-cell small{font-size:10.5px!important;color:var(--text-muted)!important;}
.route-contact-review .contact-evidence-cell{display:flex;align-items:center;justify-content:flex-start;}
.route-contact-review .bulk-bar.compact-bulk-bar{position:static!important;display:flex!important;gap:8px!important;align-items:center!important;padding:8px!important;background:var(--surface-2)!important;border:1px solid var(--border)!important;border-radius:var(--radius)!important;}

/* Prospect Detail: normal screens only; repair/diagnostic/raw detail belongs in advanced/Diagnostics */
.route-prospect .prospect-tabs-panel,.route-prospect .tab-section,.route-prospect .detail-side .panel{background:var(--surface)!important;border-color:var(--border)!important;}
.route-prospect .detail-tabs{display:flex!important;gap:4px!important;padding:6px!important;background:var(--surface-2)!important;border:1px solid var(--border)!important;border-radius:var(--radius)!important;overflow-x:auto;}
.route-prospect .detail-tabs button{border-radius:var(--radius-sm)!important;background:transparent!important;color:var(--text-muted)!important;border:0!important;min-height:26px!important;padding:4px 8px!important;}
.route-prospect .detail-tabs button.active{background:var(--accent-bg)!important;color:var(--accent)!important;}
.route-prospect .detail-side .stacked-actions button{background:var(--surface-2)!important;color:var(--text)!important;border-color:var(--border-strong)!important;}
.route-prospect .detail-side .stacked-actions button.danger{background:var(--danger-bg)!important;color:var(--danger)!important;border-color:var(--danger-bg-strong)!important;}
.route-prospect .prospect-repair-panel,.route-prospect .repair-history-panel,.route-prospect .queued-refresh-panel{background:var(--surface)!important;border-color:var(--border)!important;}
.route-prospect .prospect-top-signal-strip,.route-prospect .signal-strip,.route-prospect .readiness-banner{background:var(--surface)!important;border-color:var(--border)!important;color:var(--text)!important;}

/* Prospects and Vendor lists: prevent wild proportions and keep scanability */
.route-prospects .view-tabs{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:var(--panel-radius)!important;padding:6px!important;}
.route-prospects .view-tabs a{border-radius:var(--radius)!important;background:var(--surface-2)!important;color:var(--text-muted)!important;border-color:var(--border)!important;}
.route-prospects .view-tabs a:hover{background:var(--surface-hover)!important;color:var(--text)!important;}
.route-prospects .mobile-filter-toggle{background:var(--surface)!important;border:1px solid var(--border)!important;color:var(--text)!important;border-radius:var(--panel-radius)!important;}
.route-prospects .structured-filters{border-radius:var(--panel-radius)!important;background:var(--surface)!important;}
.route-prospects .prospect-row-v2{border-radius:var(--panel-radius)!important;background:var(--surface)!important;border-color:var(--border)!important;}
.route-prospects .prospect-row-facts>span{background:var(--surface-2)!important;border-color:var(--border)!important;border-radius:var(--radius)!important;}
.route-prospects .prospect-row-signals .badges{max-height:none!important;align-items:flex-start!important;}
.route-vendors .vendor-polished-table{font-size:12px!important;}
.route-vendors .vendor-polished-table td{padding:11px 10px!important;}
.route-vendors .vendor-polished-table tr:nth-child(even) td{background:var(--surface-2)!important;}
.route-vendors .vendor-polished-table td:nth-child(9){color:var(--text-muted)!important;}
.route-vendors .vendor-polished-table .row-actions .btn{background:var(--surface-2)!important;color:var(--text)!important;border-color:var(--border-strong)!important;}

/* Offer Intelligence: readable KPIs and no dark-blue/burgundy clutter */
.route-offer-intelligence .stat-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;}
.route-offer-intelligence .stat-card strong,.route-offer-intelligence .readiness-card strong{color:var(--text)!important;opacity:1!important;}
.route-offer-intelligence .stat-card span,.route-offer-intelligence .readiness-card span{color:var(--text-subtle)!important;}
.route-offer-intelligence .notice.warning,.route-offer-intelligence .alert{background:var(--warning-bg)!important;border-color:var(--warning-bg-strong)!important;color:var(--warning)!important;}
.route-offer-intelligence .notice.info{background:var(--accent-bg)!important;border-color:var(--accent-bg-strong)!important;color:var(--accent)!important;}

@media(max-width:1100px){
  .route-contact-review .policy-row{grid-template-columns:1fr!important;}
  .route-contact-review .policy-row>div{border-right:0;border-bottom:1px solid var(--border);}
  .route-contact-review .policy-row>div:last-child{border-bottom:0;}
  .route-contact-review .contact-candidate-row{grid-template-columns:24px 1fr!important;}
  .route-contact-review .contact-value-cell,.route-contact-review .contact-governance-cell,.route-contact-review .contact-evidence-cell,.route-contact-review .row-actions{grid-column:2!important;}
  .route-contact-review .structured-contact-preview.clean-crm-preview{flex-direction:column!important;align-items:flex-start!important;}
  .route-contact-review .structured-contact-preview.clean-crm-preview .secondary-action{margin-left:0!important;}
}

/* v0.3.10.5.7 — Full Admin Surface QA + Diagnostics Boundary Lock
   UI-only. Align all remaining admin surfaces with Claude Design dark-mode source of truth.
   Keep raw/technical detail secondary; no backend, worker, enrichment, CRM, outreach or email changes. */
html[data-density="dense"]{
  --radius:6px!important;
  --radius-sm:4px!important;
  --radius-lg:8px!important;
  --panel-radius:8px!important;
  --control-radius:5px!important;
}
html[data-density="dense"][data-theme="dark"]{
  --bg:#0b0e13!important;
  --surface:#131922!important;
  --surface-2:#10151d!important;
  --surface-3:#18202b!important;
  --surface-hover:#1a2533!important;
  --border:#2b3442!important;
  --border-strong:#3b4656!important;
  --text:#edf2f7!important;
  --muted:#a2adbd!important;
  --text-muted:#a2adbd!important;
  --text-subtle:#7f8a9a!important;
  --text-faint:#657182!important;
  --accent:#3f86ff!important;
  --accent-bg:#152943!important;
  --accent-bg-strong:#1f3b60!important;
  --success:#6ee18a!important; --success-bg:#12351f!important; --success-bg-strong:#1b4d2d!important;
  --warning:#efc15c!important; --warning-bg:#342912!important; --warning-bg-strong:#4a3917!important;
  --danger:#ff6b64!important; --danger-bg:#3f191a!important; --danger-bg-strong:#5a2425!important;
  --neutral-bg:#1b222d!important; --neutral-fg:#b9c2ce!important;
  --info:#79b2ff!important; --info-bg:#152943!important;
}
html[data-density="dense"][data-theme="light"]{
  --radius:6px!important; --radius-sm:4px!important; --radius-lg:8px!important; --panel-radius:8px!important;
}

/* Core surface reset: prevents leftover bright cards from older builds on operational pages. */
.swpi-admin-shell .panel,
.swpi-admin-shell .hero,
.swpi-admin-shell .detail-hero,
.swpi-admin-shell .stat-card,
.swpi-admin-shell .card,
.swpi-admin-shell .operation-action-card,
.swpi-admin-shell .setting-card,
.swpi-admin-shell .queue-card,
.swpi-admin-shell .diagnostics-section,
.swpi-admin-shell .contact-company-card,
.swpi-admin-shell .candidate-company-card,
.swpi-admin-shell .prospect-row-v2,
.swpi-admin-shell .vendor-suggestions-panel{
  border-radius:var(--panel-radius)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .swpi-admin-shell .panel,
html[data-theme="dark"] .swpi-admin-shell .hero,
html[data-theme="dark"] .swpi-admin-shell .detail-hero,
html[data-theme="dark"] .swpi-admin-shell .stat-card,
html[data-theme="dark"] .swpi-admin-shell .card,
html[data-theme="dark"] .swpi-admin-shell .operation-action-card,
html[data-theme="dark"] .swpi-admin-shell .setting-card,
html[data-theme="dark"] .swpi-admin-shell .queue-card,
html[data-theme="dark"] .swpi-admin-shell .diagnostics-section,
html[data-theme="dark"] .swpi-admin-shell .contact-company-card,
html[data-theme="dark"] .swpi-admin-shell .candidate-company-card,
html[data-theme="dark"] .swpi-admin-shell .prospect-row-v2,
html[data-theme="dark"] .swpi-admin-shell .vendor-suggestions-panel{
  background:var(--surface)!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}
html[data-theme="dark"] .swpi-admin-shell .hero,
html[data-theme="dark"] .swpi-admin-shell .detail-hero{background:var(--surface)!important;}
html[data-theme="dark"] .swpi-admin-shell .main{background:var(--bg)!important;color:var(--text)!important;}

/* Dense, readable typography. */
.swpi-admin-shell{font-size:13px!important;line-height:1.42!important;}
.swpi-admin-shell h1{font-size:24px!important;line-height:1.08!important;letter-spacing:-.035em!important;}
.swpi-admin-shell h2{font-size:16px!important;line-height:1.2!important;letter-spacing:-.02em!important;}
.swpi-admin-shell h3{font-size:14px!important;line-height:1.2!important;}
.swpi-admin-shell p,
.swpi-admin-shell small,
.swpi-admin-shell .muted,
.swpi-admin-shell .panel-head p{color:var(--text-muted)!important;}
.swpi-admin-shell .eyebrow{color:var(--text-subtle)!important;letter-spacing:.12em!important;}
html[data-theme="dark"] .swpi-admin-shell .strong-link,
html[data-theme="dark"] .swpi-admin-shell a.strong-link{color:#8fc2ff!important;}

/* Controls: smaller radius, clearer padding, no oversized pill/buttons. */
.swpi-admin-shell .btn,
.swpi-admin-shell button,
.swpi-admin-shell input,
.swpi-admin-shell select,
.swpi-admin-shell textarea{
  border-radius:var(--control-radius)!important;
}
.swpi-admin-shell .btn,
.swpi-admin-shell button{min-height:30px!important;padding:7px 11px!important;font-size:12px!important;line-height:1.2!important;box-shadow:none!important;}
.swpi-admin-shell .btn.small,
.swpi-admin-shell button.small{min-height:26px!important;padding:5px 9px!important;font-size:11px!important;}
html[data-theme="dark"] .swpi-admin-shell input,
html[data-theme="dark"] .swpi-admin-shell select,
html[data-theme="dark"] .swpi-admin-shell textarea{
  background:#0f141c!important;
  color:var(--text)!important;
  border-color:var(--border-strong)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .swpi-admin-shell input::placeholder,
html[data-theme="dark"] .swpi-admin-shell textarea::placeholder{color:var(--text-subtle)!important;opacity:1!important;}
html[data-theme="dark"] .swpi-admin-shell .btn.secondary,
html[data-theme="dark"] .swpi-admin-shell button.secondary,
html[data-theme="dark"] .swpi-admin-shell .btn.ghost{
  background:var(--surface-2)!important;
  color:var(--text)!important;
  border:1px solid var(--border-strong)!important;
}
html[data-theme="dark"] .swpi-admin-shell .btn.danger,
html[data-theme="dark"] .swpi-admin-shell button.danger,
html[data-theme="dark"] .swpi-admin-shell .btn.danger-soft,
html[data-theme="dark"] .swpi-admin-shell button.danger-soft{
  background:var(--danger-bg)!important;color:#ffd7d4!important;border:1px solid var(--danger-bg-strong)!important;
}

/* Metric/stat tiles: no white boxes in dark mode; compact readable content. */
.swpi-admin-shell .stat-grid{gap:10px!important;margin-bottom:14px!important;}
.swpi-admin-shell .stat-card{padding:12px 13px!important;min-height:82px!important;}
.swpi-admin-shell .stat-card:before{height:2px!important;opacity:.9!important;}
.swpi-admin-shell .stat-card span{font-size:10px!important;letter-spacing:.08em!important;color:var(--text-subtle)!important;text-transform:uppercase!important;}
.swpi-admin-shell .stat-card strong{font-size:24px!important;line-height:1!important;color:var(--text)!important;margin:8px 0 6px!important;opacity:1!important;}
.swpi-admin-shell .stat-card small{font-size:11px!important;color:var(--text-muted)!important;}
html[data-theme="dark"] .swpi-admin-shell .stat-card{background:var(--surface)!important;border-color:var(--border)!important;}
html[data-theme="dark"] .swpi-admin-shell .stat-card.primary:before{background:var(--accent)!important;}
html[data-theme="dark"] .swpi-admin-shell .stat-card.success:before{background:var(--success)!important;}
html[data-theme="dark"] .swpi-admin-shell .stat-card.warm:before{background:var(--warning)!important;}
html[data-theme="dark"] .swpi-admin-shell .stat-card.danger,
html[data-theme="dark"] .swpi-admin-shell .stat-card.hot{background:var(--surface)!important;}
html[data-theme="dark"] .swpi-admin-shell .stat-card.danger:before,
html[data-theme="dark"] .swpi-admin-shell .stat-card.hot:before{background:var(--danger)!important;}

/* All remaining metric/info boxes inherit the same surface rules. */
.swpi-admin-shell .mini-metric-grid>div,
.swpi-admin-shell .mini-metric-grid>a,
.swpi-admin-shell .metric-row>div,
.swpi-admin-shell .info-grid div,
.swpi-admin-shell .queue-truth-summary>div,
.swpi-admin-shell .worker-mini-truth,
.swpi-admin-shell .display-contract-summary>div,
.swpi-admin-shell .truth-chip,
.swpi-admin-shell .switch-row,
.swpi-admin-shell .empty-state,
.swpi-admin-shell .offer-qa-score,
.swpi-admin-shell .offer-qa-flag,
.swpi-admin-shell .offer-angle-scores,
.swpi-admin-shell .offer-recommendation-qa,
.swpi-admin-shell .lead-readiness-status,
.swpi-admin-shell .financial-detail-row,
.swpi-admin-shell .financial-signal-row{
  border-radius:var(--radius)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .swpi-admin-shell .mini-metric-grid>div,
html[data-theme="dark"] .swpi-admin-shell .mini-metric-grid>a,
html[data-theme="dark"] .swpi-admin-shell .metric-row>div,
html[data-theme="dark"] .swpi-admin-shell .info-grid div,
html[data-theme="dark"] .swpi-admin-shell .queue-truth-summary>div,
html[data-theme="dark"] .swpi-admin-shell .worker-mini-truth,
html[data-theme="dark"] .swpi-admin-shell .display-contract-summary>div,
html[data-theme="dark"] .swpi-admin-shell .truth-chip,
html[data-theme="dark"] .swpi-admin-shell .switch-row,
html[data-theme="dark"] .swpi-admin-shell .empty-state,
html[data-theme="dark"] .swpi-admin-shell .offer-qa-score,
html[data-theme="dark"] .swpi-admin-shell .offer-qa-flag,
html[data-theme="dark"] .swpi-admin-shell .offer-angle-scores,
html[data-theme="dark"] .swpi-admin-shell .offer-recommendation-qa,
html[data-theme="dark"] .swpi-admin-shell .lead-readiness-status,
html[data-theme="dark"] .swpi-admin-shell .financial-detail-row,
html[data-theme="dark"] .swpi-admin-shell .financial-signal-row{
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
  color:var(--text)!important;
}
.swpi-admin-shell .mini-metric-grid strong,
.swpi-admin-shell .metric-row strong,
.swpi-admin-shell .info-grid dd,
.swpi-admin-shell .truth-chip strong{color:var(--text)!important;}
.swpi-admin-shell .mini-metric-grid span,
.swpi-admin-shell .metric-row span,
.swpi-admin-shell .info-grid dt{color:var(--text-subtle)!important;}

/* Semantic status palette: softer, clearer and consistent. */
.swpi-admin-shell .badge,
.swpi-admin-shell .chip,
.swpi-admin-shell .evidence-token,
.swpi-admin-shell .pill,
.swpi-admin-shell .status-pill,
.swpi-admin-shell .quality-badge{
  border-radius:999px!important;
  min-height:20px!important;
  padding:3px 7px!important;
  font-size:10px!important;
  line-height:1.15!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .swpi-admin-shell .badge,
html[data-theme="dark"] .swpi-admin-shell .chip,
html[data-theme="dark"] .swpi-admin-shell .pill,
html[data-theme="dark"] .swpi-admin-shell .status-pill,
html[data-theme="dark"] .swpi-admin-shell .quality-badge{
  background:var(--neutral-bg)!important;
  color:var(--neutral-fg)!important;
  border:1px solid var(--border-strong)!important;
}
html[data-theme="dark"] .swpi-admin-shell .badge-success,
html[data-theme="dark"] .swpi-admin-shell .badge.success,
html[data-theme="dark"] .swpi-admin-shell .chip.success,
html[data-theme="dark"] .swpi-admin-shell .pill.success{background:var(--success-bg)!important;color:#c8ffd4!important;border-color:var(--success-bg-strong)!important;}
html[data-theme="dark"] .swpi-admin-shell .badge-info,
html[data-theme="dark"] .swpi-admin-shell .badge.info,
html[data-theme="dark"] .swpi-admin-shell .chip.info,
html[data-theme="dark"] .swpi-admin-shell .pill.info{background:var(--accent-bg)!important;color:#d9e9ff!important;border-color:var(--accent-bg-strong)!important;}
html[data-theme="dark"] .swpi-admin-shell .badge-warm,
html[data-theme="dark"] .swpi-admin-shell .badge.warning,
html[data-theme="dark"] .swpi-admin-shell .chip.warm,
html[data-theme="dark"] .swpi-admin-shell .pill.warm{background:var(--warning-bg)!important;color:#ffe3a7!important;border-color:var(--warning-bg-strong)!important;}
html[data-theme="dark"] .swpi-admin-shell .badge-hot,
html[data-theme="dark"] .swpi-admin-shell .badge.danger,
html[data-theme="dark"] .swpi-admin-shell .chip.danger,
html[data-theme="dark"] .swpi-admin-shell .pill.danger{background:var(--danger-bg)!important;color:#ffd6d3!important;border-color:var(--danger-bg-strong)!important;}

/* Tables/lists: one row system across Data Quality, Vendors, Website Scans, Imports, Worker and Review queues. */
.swpi-admin-shell .data-table{border-collapse:separate!important;border-spacing:0!important;width:100%!important;}
.swpi-admin-shell .data-table th{padding:9px 10px!important;font-size:10px!important;letter-spacing:.08em!important;color:var(--text-subtle)!important;border-bottom:1px solid var(--border)!important;}
.swpi-admin-shell .data-table td{padding:10px!important;font-size:12px!important;line-height:1.32!important;border-bottom:1px solid var(--border)!important;color:var(--text)!important;}
html[data-theme="dark"] .swpi-admin-shell .data-table th{background:var(--surface-2)!important;color:var(--text-subtle)!important;}
html[data-theme="dark"] .swpi-admin-shell .data-table td{background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important;}
html[data-theme="dark"] .swpi-admin-shell .data-table tr:nth-child(even) td{background:var(--surface-2)!important;}
html[data-theme="dark"] .swpi-admin-shell .data-table tr:hover td{background:var(--surface-hover)!important;}
.swpi-admin-shell .data-table small{color:var(--text-muted)!important;font-size:10.5px!important;}
.swpi-admin-shell .row-actions{gap:5px!important;}
.swpi-admin-shell .row-actions .btn,
.swpi-admin-shell .data-table .btn{border-radius:var(--control-radius)!important;min-height:23px!important;padding:4px 7px!important;font-size:10.5px!important;}

/* Inline payload/evidence previews: secondary action only, not a design-dominating diagnostics panel. */
.swpi-admin-shell .payload-details{display:inline-block!important;max-width:100%!important;}
.swpi-admin-shell .payload-details summary{
  list-style:none!important;
  display:inline-flex!important;
  align-items:center!important;
  min-height:23px!important;
  border-radius:var(--control-radius)!important;
  padding:4px 8px!important;
  border:1px solid var(--border-strong)!important;
  background:var(--surface-2)!important;
  color:var(--text-muted)!important;
  font-size:10px!important;
  font-weight:800!important;
  cursor:pointer!important;
}
.swpi-admin-shell .payload-details summary::-webkit-details-marker{display:none!important;}
.swpi-admin-shell .payload-details[open] summary{margin-bottom:6px!important;}
.swpi-admin-shell .payload-details pre{max-width:min(680px,72vw)!important;max-height:260px!important;background:#080b10!important;border:1px solid var(--border)!important;border-radius:var(--radius)!important;color:#d8e3ef!important;font-size:11px!important;}
.route-contact-review .structured-contact-preview .secondary-action,
.route-crm-sync .payload-cell,
.route-vendors .payload-cell{opacity:.72!important;}
.route-contact-review .structured-contact-preview .secondary-action:hover,
.route-crm-sync .payload-cell:hover,
.route-vendors .payload-cell:hover{opacity:1!important;}

/* Contact Review: remove duplicated feel, keep compact company-group structure. */
.route-contact-review .contact-workbench-controls{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
.route-contact-review .advanced-inline-tools{
  border:1px solid var(--border)!important;
  border-radius:var(--panel-radius)!important;
  background:var(--surface-2)!important;
  padding:0!important;
}
.route-contact-review .advanced-inline-tools summary{cursor:pointer!important;padding:9px 11px!important;color:var(--text-muted)!important;font-weight:800!important;font-size:12px!important;}
.route-contact-review .advanced-inline-tools[open] summary{border-bottom:1px solid var(--border)!important;}
.route-contact-review .advanced-contact-actions{padding:10px!important;margin:0!important;}
.route-contact-review .contact-company-head{padding:12px 14px!important;border-bottom:1px solid var(--border)!important;}
.route-contact-review .contact-current-strip.clean-summary,
.route-contact-review .structured-contact-preview.clean-crm-preview{
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
  border-radius:var(--radius)!important;
  margin:10px 12px!important;
  padding:9px 10px!important;
}
.route-contact-review .contact-current-strip.clean-summary{display:flex!important;gap:8px!important;flex-wrap:wrap!important;}
.route-contact-review .contact-current-strip.clean-summary span{background:transparent!important;border:0!important;padding:0 10px 0 0!important;color:var(--text-muted)!important;}
.route-contact-review .contact-current-strip.clean-summary strong{color:var(--text)!important;}
.route-contact-review .contact-candidate-list{margin:0!important;border-top:1px solid var(--border)!important;}
.route-contact-review .contact-candidate-row{
  display:grid!important;
  grid-template-columns:26px minmax(180px,1.2fr) minmax(190px,1.1fr) minmax(150px,.8fr) minmax(110px,.7fr) minmax(130px,.6fr)!important;
  gap:10px!important;
  align-items:center!important;
  padding:10px 12px!important;
  border-bottom:1px solid var(--border)!important;
  background:var(--surface)!important;
}
.route-contact-review .contact-candidate-row:nth-child(even){background:var(--surface-2)!important;}
.route-contact-review .contact-person-cell strong,
.route-contact-review .contact-value-cell strong{color:var(--text)!important;font-size:12.5px!important;}
.route-contact-review .contact-person-cell small,
.route-contact-review .contact-value-cell small{color:var(--text-muted)!important;font-size:10.5px!important;}
.route-contact-review .contact-evidence-cell.compact-evidence-link{text-align:left!important;}

/* Prospect detail tabs: remove lingering light blocks and use one consistent surface language. */
.route-prospect .tab-section,
.route-prospect .prospect-tabs-panel,
.route-prospect .detail-side .panel{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:var(--panel-radius)!important;}
.route-prospect .detail-tabs{background:var(--surface-2)!important;border-color:var(--border)!important;border-radius:var(--panel-radius)!important;}
.route-prospect .detail-tabs button{border-radius:var(--control-radius)!important;color:var(--text-muted)!important;background:transparent!important;}
.route-prospect .detail-tabs button.active{background:var(--accent-bg)!important;color:#dceaff!important;border:1px solid var(--accent-bg-strong)!important;}
.route-prospect .readiness-card,
.route-prospect .offer-angle-scores,
.route-prospect .recommendation-qa,
.route-prospect .lead-readiness-banner,
.route-prospect .financial-power-card,
.route-prospect .latest-scan-evidence,
.route-prospect .website-scan-evidence,
.route-prospect .website-truth-card,
.route-prospect .scan-evidence-card{
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
  color:var(--text)!important;
  border-radius:var(--panel-radius)!important;
}
.route-prospect .detail-side .stacked-actions button{background:var(--surface-2)!important;border:1px solid var(--border-strong)!important;color:var(--text)!important;}
.route-prospect .detail-side .stacked-actions button.danger{background:var(--danger-bg)!important;color:#ffd6d3!important;border-color:var(--danger-bg-strong)!important;}
.route-prospect .repair-history-panel,
.route-prospect .queued-refresh-panel{display:none!important;}
.route-prospect .prospect-repair-panel details{background:var(--surface-2)!important;border-color:var(--border)!important;}
.route-prospect .prospect-repair-panel summary{color:var(--text)!important;}

/* Vendor Signals: reduce wild table proportions and make actions less noisy. */
.route-vendors .vendor-tools,
.route-vendors .vendor-filters,
.route-vendors .manual-vendor-grouping,
.route-vendors .suggested-merges-panel{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:var(--panel-radius)!important;}
.route-vendors .vendor-polished-table{min-width:1080px!important;font-size:11.5px!important;}
.route-vendors .vendor-polished-table th,
.route-vendors .vendor-polished-table td{padding:9px 8px!important;vertical-align:middle!important;}
.route-vendors .vendor-polished-table td:nth-child(2){min-width:190px!important;max-width:240px!important;}
.route-vendors .vendor-polished-table td:nth-child(9){max-width:300px!important;line-height:1.28!important;color:var(--text-muted)!important;}
.route-vendors .vendor-polished-table td:nth-child(10){white-space:normal!important;min-width:86px!important;font-size:11px!important;color:var(--text-muted)!important;}
.route-vendors .vendor-polished-table .row-actions{display:flex!important;flex-direction:column!important;gap:4px!important;align-items:stretch!important;}
.route-vendors .vendor-polished-table .row-actions .btn{width:100%!important;background:var(--surface-2)!important;border-color:var(--border-strong)!important;color:var(--text)!important;}

/* Data Quality, Website Scans, Worker, Imports, Settings: operator pages should not look like raw diagnostics sheets. */
.route-quality .mini-metric-grid,
.route-scans .mini-metric-grid,
.route-worker .mini-metric-grid,
.route-settings .settings-grid,
.route-imports .settings-grid{gap:10px!important;}
.route-quality .panel,
.route-scans .panel,
.route-worker .panel,
.route-settings .panel,
.route-imports .panel{padding:14px!important;}
.route-quality .mini-metric-grid>div,
.route-scans .mini-metric-grid>div,
.route-worker .mini-metric-grid>div,
.route-settings .switch-row,
.route-imports .action-list a,
.route-imports .action-list>div{background:var(--surface-2)!important;border-color:var(--border)!important;color:var(--text)!important;}
.route-settings .switch-row{padding:10px 12px!important;margin-bottom:10px!important;}
.route-settings .switch-row input[type="checkbox"]{width:38px!important;height:22px!important;background:#374151!important;border:1px solid var(--border-strong)!important;}
.route-settings .switch-row input[type="checkbox"]:before{width:16px!important;height:16px!important;top:2px!important;left:2px!important;background:#f2f5f9!important;}
.route-settings .switch-row input[type="checkbox"]:checked{background:var(--accent)!important;}
.route-settings .switch-row input[type="checkbox"]:checked:before{left:18px!important;}
.route-settings .switch-row.danger input[type="checkbox"]:checked{background:var(--danger)!important;}
.route-settings .setting-card .notice,
.route-worker .notice,
.route-quality .notice,
.route-scans .notice{border-radius:var(--radius)!important;background:var(--surface-2)!important;color:var(--text-muted)!important;border-color:var(--border)!important;}
html[data-theme="dark"] .route-settings .setting-card .notice.warning,
html[data-theme="dark"] .route-worker .notice.warning,
html[data-theme="dark"] .route-quality .notice.warning,
html[data-theme="dark"] .route-scans .notice.warning{background:var(--warning-bg)!important;color:#ffe3a7!important;border-color:var(--warning-bg-strong)!important;}
html[data-theme="dark"] .route-settings .setting-card .notice.error,
html[data-theme="dark"] .route-worker .notice.error,
html[data-theme="dark"] .route-quality .notice.error,
html[data-theme="dark"] .route-scans .notice.error{background:var(--danger-bg)!important;color:#ffd6d3!important;border-color:var(--danger-bg-strong)!important;}

/* Prospects/dashboard: keep the Claude compact cards but remove bright breaks in dark mode. */
.route-dashboard .top-prospect-card,
.route-dashboard .dashboard-actions .action-list a,
.route-dashboard .dashboard-actions .action-list>div,
.route-prospects .structured-filters,
.route-prospects .bulk-scan-bar,
.route-prospects .prospect-list-toolbar{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:var(--panel-radius)!important;}
html[data-theme="dark"] .route-dashboard .top-prospect-card,
html[data-theme="dark"] .route-dashboard .dashboard-actions .action-list a,
html[data-theme="dark"] .route-dashboard .dashboard-actions .action-list>div,
html[data-theme="dark"] .route-prospects .bulk-scan-bar,
html[data-theme="dark"] .route-prospects .prospect-list-toolbar{background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important;}
.route-prospects .prospect-row-v2{padding:10px 11px!important;}
.route-prospects .prospect-row-facts{gap:6px!important;}
.route-prospects .prospect-row-facts>span{min-height:30px!important;padding:5px 7px!important;}
.route-prospects .prospect-row-signals{margin-top:4px!important;}
.route-prospects .prospect-row-signals .badges{gap:4px!important;}
.route-prospects .prospect-row-actions .badge,
.route-prospects .prospect-row-actions .btn{border-radius:var(--control-radius)!important;}

/* Responsive hygiene for dense admin. */
@media(max-width:1180px){
  .route-contact-review .contact-candidate-row{grid-template-columns:24px 1fr!important;align-items:start!important;}
  .route-contact-review .contact-person-cell,
  .route-contact-review .contact-value-cell,
  .route-contact-review .contact-governance-cell,
  .route-contact-review .contact-evidence-cell,
  .route-contact-review .row-actions{grid-column:2!important;}
  .route-contact-review .row-actions{flex-direction:row!important;flex-wrap:wrap!important;}
  .route-vendors .vendor-polished-table,
  .route-scans .data-table,
  .route-quality .data-table{min-width:920px!important;}
}
@media(max-width:760px){
  .swpi-admin-shell .stat-grid{grid-template-columns:1fr 1fr!important;}
  .swpi-admin-shell .panel{padding:12px!important;}
  .route-prospect .detail-layout{grid-template-columns:1fr!important;}
  .route-prospect .detail-side{order:2!important;}
}
@media(max-width:520px){
  .swpi-admin-shell .stat-grid{grid-template-columns:1fr!important;}
  .swpi-admin-shell .btn,
  .swpi-admin-shell button{width:auto!important;}
  .swpi-admin-shell .button-row{align-items:stretch!important;}
}


/* v0.3.10.5.8 — Contrast Parity + Workbench Standardization Sweep
   Final broad visual pass against Claude Design: high-contrast dark mode, consistent rows,
   reduced diagnostic clutter in workbench rows, and cleaner CRM/contact list presentation. */
html[data-theme="dark"] .swpi-admin-shell{
  --bg:#0a0c10!important;
  --panel:#141820!important;
  --surface:#141820!important;
  --surface-2:#11151c!important;
  --surface-3:#1a1f28!important;
  --surface-hover:#1c2230!important;
  --border:#232934!important;
  --border-strong:#303743!important;
  --text:#e6e9ef!important;
  --text-muted:#aeb7c5!important;
  --text-subtle:#8b94a3!important;
  --text-faint:#646b78!important;
  --accent:#4d8df6!important;
  --accent-hover:#6ba1ff!important;
  --accent-bg:#1a2a48!important;
  --accent-bg-strong:#213a66!important;
  --success:#4ec96d!important;
  --success-bg:#103a1e!important;
  --success-bg-strong:#1a5230!important;
  --warning:#e0a64a!important;
  --warning-bg:#3e2d0c!important;
  --warning-bg-strong:#5a4214!important;
  --danger:#ef5350!important;
  --danger-bg:#421a18!important;
  --danger-bg-strong:#5e2722!important;
  --neutral-bg:#232934!important;
  --neutral-fg:#c3cad5!important;
  --radius:6px!important;
  --radius-sm:4px!important;
  --radius-lg:10px!important;
  --panel-radius:8px!important;
  --control-radius:5px!important;
}

/* Dark mode should never show low-contrast navy links or near-black text in tables/lists. */
html[data-theme="dark"] .swpi-admin-shell a:not(.btn):not(.nav-link):not(.tab),
html[data-theme="dark"] .swpi-admin-shell .strong-link{
  color:#9cc9ff!important;
}
html[data-theme="dark"] .swpi-admin-shell a:not(.btn):hover{color:#c5dcff!important;text-decoration:none!important;}
html[data-theme="dark"] .swpi-admin-shell .matched-angle-cell strong,
html[data-theme="dark"] .swpi-admin-shell .offer-fit-table .matched-angle-cell strong,
html[data-theme="dark"] .swpi-admin-shell .filter-explainer strong,
html[data-theme="dark"] .swpi-admin-shell .category-score-cell strong,
html[data-theme="dark"] .swpi-admin-shell .offer-score-chip em,
html[data-theme="dark"] .swpi-admin-shell .offer-qa-score strong,
html[data-theme="dark"] .swpi-admin-shell .offer-qa-flag strong{
  color:var(--text)!important;
}
html[data-theme="dark"] .swpi-admin-shell .matched-angle-cell small,
html[data-theme="dark"] .swpi-admin-shell .offer-fit-table small,
html[data-theme="dark"] .swpi-admin-shell .data-table small{
  color:var(--text-muted)!important;
  opacity:1!important;
}

/* Normalize all panel/table surfaces to the Claude dark palette, overriding old light-card leftovers. */
html[data-theme="dark"] .swpi-admin-shell .panel,
html[data-theme="dark"] .swpi-admin-shell .card,
html[data-theme="dark"] .swpi-admin-shell .detail-card,
html[data-theme="dark"] .swpi-admin-shell .stat-card,
html[data-theme="dark"] .swpi-admin-shell .empty-state,
html[data-theme="dark"] .swpi-admin-shell .offer-box,
html[data-theme="dark"] .swpi-admin-shell .notice:not(.success):not(.error):not(.warning),
html[data-theme="dark"] .swpi-admin-shell .vendor-compact-panel,
html[data-theme="dark"] .swpi-admin-shell .vendor-tools,
html[data-theme="dark"] .swpi-admin-shell .vendor-filters,
html[data-theme="dark"] .swpi-admin-shell .manual-vendor-grouping,
html[data-theme="dark"] .swpi-admin-shell .suggested-merges-panel,
html[data-theme="dark"] .swpi-admin-shell .prospects-workspace-panel,
html[data-theme="dark"] .swpi-admin-shell .offer-readiness-governance,
html[data-theme="dark"] .swpi-admin-shell .crm-dryrun-qa-panel,
html[data-theme="dark"] .swpi-admin-shell .contact-company-card,
html[data-theme="dark"] .swpi-admin-shell .contact-current-strip,
html[data-theme="dark"] .swpi-admin-shell .structured-contact-preview,
html[data-theme="dark"] .swpi-admin-shell .bulk-bar,
html[data-theme="dark"] .swpi-admin-shell .action-list a,
html[data-theme="dark"] .swpi-admin-shell .action-list>div,
html[data-theme="dark"] .swpi-admin-shell .switch-row,
html[data-theme="dark"] .swpi-admin-shell .info-grid div,
html[data-theme="dark"] .swpi-admin-shell .metric-row div,
html[data-theme="dark"] .swpi-admin-shell .mini-metric-grid>div,
html[data-theme="dark"] .swpi-admin-shell .mini-metric-grid>a,
html[data-theme="dark"] .swpi-admin-shell .queue-truth-summary>div,
html[data-theme="dark"] .swpi-admin-shell .worker-mini-truth,
html[data-theme="dark"] .swpi-admin-shell .display-contract-summary>div,
html[data-theme="dark"] .swpi-admin-shell .truth-chip,
html[data-theme="dark"] .swpi-admin-shell .contact-preview-grid>div,
html[data-theme="dark"] .swpi-admin-shell .contact-policy-lock .action-list>div{
  background:var(--surface)!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .swpi-admin-shell .surface-2,
html[data-theme="dark"] .swpi-admin-shell .contact-company-head,
html[data-theme="dark"] .swpi-admin-shell .contact-candidate-row:nth-child(even),
html[data-theme="dark"] .swpi-admin-shell .data-table tr:nth-child(even) td,
html[data-theme="dark"] .swpi-admin-shell .offer-angle-scores,
html[data-theme="dark"] .swpi-admin-shell .offer-recommendation-qa,
html[data-theme="dark"] .swpi-admin-shell .lead-readiness-status,
html[data-theme="dark"] .swpi-admin-shell .latest-scan-evidence,
html[data-theme="dark"] .swpi-admin-shell .website-truth-card,
html[data-theme="dark"] .swpi-admin-shell .scan-evidence-card,
html[data-theme="dark"] .swpi-admin-shell .financial-detail-row,
html[data-theme="dark"] .swpi-admin-shell .financial-signal-row{
  background:var(--surface-2)!important;
  border-color:var(--border)!important;
  color:var(--text)!important;
}
html[data-theme="dark"] .swpi-admin-shell .empty-state,
html[data-theme="dark"] .swpi-admin-shell .compact-empty{
  background:var(--surface-2)!important;
  border:1px dashed var(--border-strong)!important;
  color:var(--text-muted)!important;
}
html[data-theme="dark"] .swpi-admin-shell .empty-state strong{color:var(--text)!important;}

/* Table/list contrast and row rhythm — standard pattern across Offer, Vendor, Quality, Scans and Worker pages. */
.swpi-admin-shell .data-table th,
.swpi-admin-shell .data-table td{line-height:1.35!important;}
html[data-theme="dark"] .swpi-admin-shell .data-table th{
  background:var(--surface-2)!important;
  color:var(--text-subtle)!important;
  border-color:var(--border)!important;
}
html[data-theme="dark"] .swpi-admin-shell .data-table td{
  background:var(--surface)!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}
html[data-theme="dark"] .swpi-admin-shell .data-table tr:hover td,
html[data-theme="dark"] .swpi-admin-shell .contact-candidate-row:hover,
html[data-theme="dark"] .swpi-admin-shell .prospect-row-v2:hover{
  background:var(--surface-hover)!important;
}
.swpi-admin-shell .data-table td,
.swpi-admin-shell .data-table th{padding:10px 12px!important;}
.swpi-admin-shell .table-scroll{border:1px solid var(--border)!important;border-radius:var(--panel-radius)!important;background:var(--surface)!important;}

/* Offer Intelligence specific: remove invisible dark-blue text and balance columns. */
.route-offer-intelligence .offer-fit-table .matched-angle-cell strong{font-weight:800!important;}
html[data-theme="dark"] .route-offer-intelligence .offer-fit-table .matched-angle-cell strong{color:#dfeaff!important;}
html[data-theme="dark"] .route-offer-intelligence .offer-fit-table .matched-angle-cell small{color:#b3bfce!important;}
.route-offer-intelligence .offer-fit-table td:nth-child(2){min-width:180px!important;}
.route-offer-intelligence .offer-fit-table td:nth-child(8),
.route-offer-intelligence .offer-fit-table td:nth-child(9){max-width:280px!important;}
.route-offer-intelligence .offer-fit-table .fit-score-cell strong{font-size:18px!important;color:var(--text)!important;}
.route-offer-intelligence .offer-fit-table .btn.small{min-width:48px!important;}

/* Semantic pills: no muddy burgundy/green/dark-blue collision. */
html[data-theme="dark"] .swpi-admin-shell .badge,
html[data-theme="dark"] .swpi-admin-shell .chip,
html[data-theme="dark"] .swpi-admin-shell .pill,
html[data-theme="dark"] .swpi-admin-shell .status-pill,
html[data-theme="dark"] .swpi-admin-shell .quality-badge,
html[data-theme="dark"] .swpi-admin-shell .view-tabs a{
  background:var(--neutral-bg)!important;
  color:var(--neutral-fg)!important;
  border:1px solid var(--border-strong)!important;
}
html[data-theme="dark"] .swpi-admin-shell .badge-success,
html[data-theme="dark"] .swpi-admin-shell .success,
html[data-theme="dark"] .swpi-admin-shell .chip.success,
html[data-theme="dark"] .swpi-admin-shell .pill.success{
  background:rgba(78,201,109,.16)!important;
  color:#bdf7cb!important;
  border-color:rgba(78,201,109,.38)!important;
}
html[data-theme="dark"] .swpi-admin-shell .badge-info,
html[data-theme="dark"] .swpi-admin-shell .info,
html[data-theme="dark"] .swpi-admin-shell .chip.info,
html[data-theme="dark"] .swpi-admin-shell .pill.info{
  background:rgba(77,141,246,.18)!important;
  color:#c8dcff!important;
  border-color:rgba(77,141,246,.42)!important;
}
html[data-theme="dark"] .swpi-admin-shell .badge-warm,
html[data-theme="dark"] .swpi-admin-shell .badge-warning,
html[data-theme="dark"] .swpi-admin-shell .warning,
html[data-theme="dark"] .swpi-admin-shell .chip.warm,
html[data-theme="dark"] .swpi-admin-shell .pill.warm{
  background:rgba(224,166,74,.16)!important;
  color:#ffe1a3!important;
  border-color:rgba(224,166,74,.38)!important;
}
html[data-theme="dark"] .swpi-admin-shell .badge-hot,
html[data-theme="dark"] .swpi-admin-shell .badge-danger,
html[data-theme="dark"] .swpi-admin-shell .danger,
html[data-theme="dark"] .swpi-admin-shell .chip.danger,
html[data-theme="dark"] .swpi-admin-shell .pill.danger{
  background:rgba(239,83,80,.15)!important;
  color:#ffb8b3!important;
  border-color:rgba(239,83,80,.40)!important;
}
html[data-theme="dark"] .swpi-admin-shell .btn.danger,
html[data-theme="dark"] .swpi-admin-shell button.danger,
html[data-theme="dark"] .route-prospect .detail-side .stacked-actions button.danger{
  background:rgba(239,83,80,.18)!important;
  color:#ffd6d3!important;
  border-color:rgba(239,83,80,.45)!important;
}

/* Buttons/controls: closer to Claude spec — smaller radius and less shouty. */
.swpi-admin-shell .btn,
.swpi-admin-shell button,
.swpi-admin-shell input,
.swpi-admin-shell select,
.swpi-admin-shell textarea{border-radius:5px!important;}
.swpi-admin-shell .btn,
.swpi-admin-shell button{min-height:28px!important;padding:5px 10px!important;font-weight:650!important;}
.swpi-admin-shell .btn.small,
.swpi-admin-shell button.small{min-height:24px!important;padding:4px 8px!important;font-size:11px!important;}
html[data-theme="dark"] .swpi-admin-shell .btn.secondary,
html[data-theme="dark"] .swpi-admin-shell button.secondary,
html[data-theme="dark"] .swpi-admin-shell .btn.ghost{
  background:var(--surface-2)!important;
  color:var(--text)!important;
  border-color:var(--border-strong)!important;
}
html[data-theme="dark"] .swpi-admin-shell .btn:not(.secondary):not(.ghost):not(.danger):not(.danger-soft),
html[data-theme="dark"] .swpi-admin-shell button:not(.secondary):not(.ghost):not(.danger):not(.danger-soft){
  background:var(--accent)!important;
  border-color:var(--accent)!important;
  color:#fff!important;
}

/* Contact Review: remove duplicated normal-workflow blocks and make candidates read like a workbench list, not diagnostics. */
.route-contact-review .structured-contact-preview.clean-crm-preview{
  display:none!important;
}
.route-contact-review .contact-current-strip.clean-summary{
  margin:0!important;
  padding:8px 12px!important;
  border-top:1px solid var(--border)!important;
  border-bottom:1px solid var(--border)!important;
  background:var(--surface-2)!important;
}
.route-contact-review .contact-current-strip.clean-summary span{
  background:transparent!important;
  border:0!important;
  color:var(--text-muted)!important;
  padding:0 12px 0 0!important;
  min-height:auto!important;
}
.route-contact-review .contact-current-strip.clean-summary strong{color:var(--text)!important;}
.route-contact-review .contact-company-head small{color:var(--text-muted)!important;}
.route-contact-review .contact-candidate-row{
  grid-template-columns:24px minmax(180px,1.15fr) minmax(190px,1.2fr) minmax(145px,.75fr) minmax(98px,.55fr) minmax(116px,.55fr)!important;
  padding:9px 12px!important;
}
.route-contact-review .contact-evidence-cell .payload-details summary,
.route-contact-review .secondary-action .payload-details summary{
  color:var(--text-muted)!important;
  font-weight:650!important;
}
.route-contact-review .contact-person-cell small,
.route-contact-review .contact-value-cell small{color:var(--text-muted)!important;}

/* Vendor rows and long evidence/alias columns: calmer typography, consistent actions. */
.route-vendors .vendor-polished-table td:nth-child(9),
.route-vendors .vendor-polished-table td:nth-child(10){color:var(--text-muted)!important;}
html[data-theme="dark"] .route-vendors .vendor-polished-table .row-actions .btn{
  background:var(--surface-2)!important;
  color:var(--text)!important;
  border-color:var(--border-strong)!important;
}
.route-vendors .vendor-polished-table td,
.route-vendors .vendor-polished-table th{padding:10px 9px!important;}
.route-vendors .vendor-polished-table .badge{margin:1px 2px!important;}

/* Hide debug/diagnostic-only content from normal prospect side rail; diagnostics has its own section. */
.route-prospect .repair-history-panel,
.route-prospect .queued-refresh-panel,
.route-prospect .prospect-repair-history-panel,
.route-prospect .queue-truth-panel,
.route-prospect .truth-registry-box:not(.truth-registry-collapsed){
  display:none!important;
}
.route-prospect .prospect-repair-panel .repair-queue-hint,
.route-prospect .prospect-repair-panel .worker-mini-truth{display:none!important;}
.route-prospect .detail-side .panel h2,
.route-prospect .detail-side .panel h3{color:var(--text)!important;}

/* Workbench forms and filter panels should be functional, not dominant. */
.route-prospects .structured-filters,
.route-offer-intelligence .panel .view-tabs,
.route-vendors .vendor-filters,
.route-scans .panel,
.route-quality .panel,
.route-worker .panel,
.route-settings .setting-card{
  border-radius:var(--panel-radius)!important;
}
.route-prospects .prospect-row-signals .badges,
.route-prospects .badges,
.route-offer-intelligence .view-tabs,
.route-vendors .badges{gap:5px!important;}
.route-prospects .prospect-row-signals .badge,
.route-offer-intelligence .view-tabs a,
.route-vendors .badge{margin:0!important;}

/* If old CSS leaves white/light blocks inside dark forms, force the immediate form surfaces back to dark tokens. */
html[data-theme="dark"] .swpi-admin-shell form,
html[data-theme="dark"] .swpi-admin-shell fieldset,
html[data-theme="dark"] .swpi-admin-shell .form-grid,
html[data-theme="dark"] .swpi-admin-shell .inline-form,
html[data-theme="dark"] .swpi-admin-shell .safe-auto-confirm-actions,
html[data-theme="dark"] .swpi-admin-shell .bulk-scan-bar{
  color:var(--text)!important;
}
html[data-theme="dark"] .swpi-admin-shell .inline-confirm,
html[data-theme="dark"] .swpi-admin-shell .safe-auto-confirm-actions .mini-control select,
html[data-theme="dark"] .swpi-admin-shell .compact-bulk-bar select{
  background:var(--surface-2)!important;
  border-color:var(--border-strong)!important;
  color:var(--text)!important;
}

/* Responsive lists: keep readable on narrower viewports without giant cards. */
@media(max-width:1100px){
  .route-offer-intelligence .offer-fit-table{min-width:1020px!important;}
  .route-vendors .vendor-polished-table{min-width:1040px!important;}
  .route-contact-review .contact-candidate-row{grid-template-columns:24px 1fr!important;}
  .route-contact-review .contact-person-cell,
  .route-contact-review .contact-value-cell,
  .route-contact-review .contact-governance-cell,
  .route-contact-review .contact-evidence-cell,
  .route-contact-review .row-actions{grid-column:2!important;}
}

/* v0.3.10.5.9 — Prospect Detail Dark Surface Hard Lock
   Hard override for remaining legacy light surfaces in prospect detail, offer and financial tabs.
   Keeps diagnostics/debug styling out of normal workbench surfaces and improves readable contrast. */
html[data-theme="dark"] .swpi-admin-shell{
  --swpi-page:#0a0d12!important;
  --swpi-surface:#121822!important;
  --swpi-surface-2:#151d29!important;
  --swpi-surface-3:#1a2432!important;
  --swpi-border:#2c3747!important;
  --swpi-border-soft:#223040!important;
  --swpi-text:#f3f7fb!important;
  --swpi-muted:#b7c3d3!important;
  --swpi-subtle:#91a0b4!important;
  --swpi-blue:#6aa7ff!important;
  --swpi-blue-bg:#132943!important;
  --swpi-green:#77e99e!important;
  --swpi-green-bg:#123922!important;
  --swpi-amber:#ffd166!important;
  --swpi-amber-bg:#37280f!important;
  --swpi-red:#ff8a82!important;
  --swpi-red-bg:#3a1818!important;
}

/* Remove the remaining white blocks in prospect detail tabs. */
html[data-theme="dark"] .swpi-admin-shell.route-prospect .readiness-hero,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .financial-scoreline,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .metric-card,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .reason-card,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .offer-box,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .empty-mini,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .empty-state,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .lead-readiness-status,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .website-truth-card,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .scan-evidence-block,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .latest-scan-evidence,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .display-contract-summary,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .display-contract-summary > div,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .content-preview,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .truth-chip,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .action-list > div,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .action-list a{
  background:var(--swpi-surface-2)!important;
  background-image:none!important;
  color:var(--swpi-text)!important;
  border:1px solid var(--swpi-border)!important;
  border-radius:8px!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .readiness-hero{
  padding:14px 16px!important;
  margin-bottom:12px!important;
  display:block!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .readiness-hero h2,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .financial-scoreline strong,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .metric-card h3,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .reason-card h3,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .offer-box strong{
  color:var(--swpi-text)!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .readiness-hero p,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .metric-card li,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .reason-card li,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .financial-signals li,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .content-preview p{
  color:var(--swpi-muted)!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .metric-card ul,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .reason-card ul,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .financial-signals ul{
  color:var(--swpi-muted)!important;
}

/* Financial tab: replace bright score bar and low-contrast rows with proper dark cards. */
html[data-theme="dark"] .swpi-admin-shell.route-prospect .financial-scoreline{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:center!important;
  padding:14px 16px!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .financial-scoreline span,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .financial-kv dt,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .financial-signals span{
  color:var(--swpi-subtle)!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .financial-scoreline strong{
  font-size:22px!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .financial-kv{
  display:grid!important;
  gap:8px!important;
  margin:12px 0!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .financial-kv div{
  background:var(--swpi-surface)!important;
  border:1px solid var(--swpi-border-soft)!important;
  border-radius:6px!important;
  padding:10px 12px!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .financial-kv dd{
  color:var(--swpi-text)!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .financial-signals{
  background:var(--swpi-surface)!important;
  border:1px solid var(--swpi-border-soft)!important;
  border-radius:6px!important;
  padding:12px!important;
}

/* Offer/readiness tab: warning panels should be compact readable dark cards, not white error islands. */
html[data-theme="dark"] .swpi-admin-shell.route-prospect .readiness-hero .badge,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .financial-scoreline .badge,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .financial-badges .badge{
  color:var(--swpi-text)!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge-hot,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge.badge-hot,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge-danger,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge.danger,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .danger:not(button):not(.btn){
  background:var(--swpi-red-bg)!important;
  color:#ffd7d3!important;
  border-color:#7a2d2a!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge-success,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge.success{
  background:var(--swpi-green-bg)!important;
  color:var(--swpi-green)!important;
  border-color:#2e7042!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge-info,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge.info,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge-primary,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge.primary{
  background:var(--swpi-blue-bg)!important;
  color:var(--swpi-blue)!important;
  border-color:#31587d!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge-warm,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge.warning,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .badge.warm{
  background:var(--swpi-amber-bg)!important;
  color:var(--swpi-amber)!important;
  border-color:#72531d!important;
}

/* Tabs/buttons: make the row calmer and closer to Claude workbench controls. */
.swpi-admin-shell.route-prospect .detail-tabs{
  gap:4px!important;
  padding:7px!important;
  border-radius:8px!important;
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
}
.swpi-admin-shell.route-prospect .detail-tabs button{
  min-height:28px!important;
  padding:5px 10px!important;
  border-radius:5px!important;
  font-size:12px!important;
  font-weight:750!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .detail-tabs button{
  background:#182231!important;
  color:var(--swpi-muted)!important;
  border-color:#2b394b!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .detail-tabs button.active{
  background:#2f6fe4!important;
  color:#fff!important;
  border-color:#6aa7ff!important;
}

/* Right action rail: reduce aggressive blue blocks and keep danger distinct only for real danger. */
html[data-theme="dark"] .swpi-admin-shell.route-prospect .action-side .stacked-actions button:not(.danger){
  background:#172334!important;
  color:#eaf2fb!important;
  border:1px solid #314257!important;
  border-radius:6px!important;
  min-height:32px!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .action-side .stacked-actions button:not(.danger):hover{
  background:#21314a!important;
  border-color:#4b6e99!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .action-side .stacked-actions button.danger,
html[data-theme="dark"] .swpi-admin-shell.route-prospect .action-side .stacked-actions button[value="do_not_contact"],
html[data-theme="dark"] .swpi-admin-shell.route-prospect .action-side button[value="force_refresh"]{
  background:#3a1818!important;
  color:#ffd7d3!important;
  border:1px solid #7a2d2a!important;
  border-radius:6px!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-prospect .detail-side .panel{
  background:var(--swpi-surface)!important;
  border-color:var(--swpi-border)!important;
  color:var(--swpi-text)!important;
}

/* Main lists: keep link text bright in all workbenches. */
html[data-theme="dark"] .swpi-admin-shell.route-offer-intelligence .data-table td,
html[data-theme="dark"] .swpi-admin-shell.route-vendors .data-table td,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .data-table td{
  color:var(--swpi-text)!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-offer-intelligence .data-table td strong,
html[data-theme="dark"] .swpi-admin-shell.route-vendors .data-table td strong,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .data-table td strong,
html[data-theme="dark"] .swpi-admin-shell.route-offer-intelligence .data-table a,
html[data-theme="dark"] .swpi-admin-shell.route-vendors .data-table a,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .data-table a{
  color:#b9d8ff!important;
}
html[data-theme="dark"] .swpi-admin-shell.route-offer-intelligence .data-table small,
html[data-theme="dark"] .swpi-admin-shell.route-vendors .data-table small,
html[data-theme="dark"] .swpi-admin-shell.route-prospects .data-table small{
  color:var(--swpi-muted)!important;
}

/* Safety net: no white card backgrounds inside dark admin content, while preserving actual white modals if ever added. */
html[data-theme="dark"] .swpi-admin-shell .main [style*="background:#fff"],
html[data-theme="dark"] .swpi-admin-shell .main [style*="background: #fff"],
html[data-theme="dark"] .swpi-admin-shell .main [style*="background:white"],
html[data-theme="dark"] .swpi-admin-shell .main [style*="background: white"]{
  background:var(--swpi-surface-2)!important;
  color:var(--swpi-text)!important;
  border-color:var(--swpi-border)!important;
}


/* v0.3.10.6 Claude Design System Hard Reset + Full Admin Surface Contract
   UI-only token and component normalization. No backend/workflow behavior is changed. */
:root{
  color-scheme:light;
  --claude-bg:#f6f4ef;
  --claude-surface:#ffffff;
  --claude-surface-2:#fbfaf7;
  --claude-surface-muted:#f1eee8;
  --claude-border:#ded8cc;
  --claude-border-soft:#ece6dc;
  --claude-text:#1f2933;
  --claude-text-muted:#6f6a61;
  --claude-text-subtle:#8b8478;
  --claude-accent:#1f5eff;
  --claude-accent-strong:#1747c8;
  --claude-accent-soft:#eef3ff;
  --claude-danger:#b42318;
  --claude-danger-soft:#fff0ee;
  --claude-warning:#976107;
  --claude-warning-soft:#fff7e6;
  --claude-success:#067647;
  --claude-success-soft:#ecfdf3;
  --sw-radius-xs:4px;
  --sw-radius-sm:6px;
  --sw-radius-md:8px;
  --sw-radius-lg:10px;
  --sw-radius-xl:12px;
  --sw-shadow-sm:0 1px 2px rgba(16,24,40,.04);
  --sw-shadow-md:0 12px 28px rgba(16,24,40,.07);
  --sw-font-sans:"Geist","Geist Sans",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  --sw-font-mono:"Geist Mono","SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
  --sw-bg:var(--claude-bg);
  --sw-surface:var(--claude-surface);
  --sw-surface-2:var(--claude-surface-2);
  --sw-surface-muted:var(--claude-surface-muted);
  --sw-border:var(--claude-border);
  --sw-border-soft:var(--claude-border-soft);
  --sw-text:var(--claude-text);
  --sw-text-muted:var(--claude-text-muted);
  --sw-text-subtle:var(--claude-text-subtle);
  --sw-accent:var(--claude-accent);
  --sw-danger:var(--claude-danger);
  --sw-warning:var(--claude-warning);
  --sw-success:var(--claude-success);
  /* legacy variable mapping */
  --bg:var(--sw-bg);
  --panel:var(--sw-surface);
  --text:var(--sw-text);
  --muted:var(--sw-text-muted);
  --line:var(--sw-border);
  --border:var(--sw-border);
  --surface:var(--sw-surface);
  --surface-2:var(--sw-surface-2);
  --ink:var(--sw-text);
  --blue:var(--sw-accent);
  --blue-2:var(--claude-accent-soft);
  --green:var(--sw-success);
  --green-bg:var(--claude-success-soft);
  --amber:var(--sw-warning);
  --amber-bg:var(--claude-warning-soft);
  --red:var(--sw-danger);
  --red-bg:var(--claude-danger-soft);
  --shadow:var(--sw-shadow-md);
}
html[data-theme="dark"]{
  color-scheme:dark;
  --claude-bg:#0d1117;
  --claude-surface:#121821;
  --claude-surface-2:#171f2a;
  --claude-surface-muted:#1d2633;
  --claude-border:#2b3645;
  --claude-border-soft:#243040;
  --claude-text:#edf2f7;
  --claude-text-muted:#b0bac7;
  --claude-text-subtle:#8995a5;
  --claude-accent:#8ab4ff;
  --claude-accent-strong:#5f93f7;
  --claude-accent-soft:#13233a;
  --claude-danger:#ff8a82;
  --claude-danger-soft:#351818;
  --claude-warning:#f7c66f;
  --claude-warning-soft:#2f2414;
  --claude-success:#75d691;
  --claude-success-soft:#142a1c;
  --sw-shadow-sm:0 1px 2px rgba(0,0,0,.35);
  --sw-shadow-md:0 14px 34px rgba(0,0,0,.34);
  --swpi-bg:var(--claude-bg)!important;
  --swpi-surface:var(--claude-surface)!important;
  --swpi-surface-2:var(--claude-surface-2)!important;
  --swpi-border:var(--claude-border)!important;
  --swpi-border-soft:var(--claude-border-soft)!important;
  --swpi-text:var(--claude-text)!important;
  --swpi-muted:var(--claude-text-muted)!important;
  --swpi-subtle:var(--claude-text-subtle)!important;
  --swpi-blue:var(--claude-accent)!important;
  --swpi-blue-bg:var(--claude-accent-soft)!important;
  --swpi-green:var(--claude-success)!important;
  --swpi-green-bg:var(--claude-success-soft)!important;
  --swpi-amber:var(--claude-warning)!important;
  --swpi-amber-bg:var(--claude-warning-soft)!important;
  --swpi-red:var(--claude-danger)!important;
  --swpi-red-bg:var(--claude-danger-soft)!important;
}
html,body,
.swpi-admin-shell{
  font-family:var(--sw-font-sans)!important;
  background:var(--sw-bg)!important;
  color:var(--sw-text)!important;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
.swpi-admin-shell *{letter-spacing:inherit;}
.swpi-admin-shell code,
.swpi-admin-shell pre,
.swpi-admin-shell kbd,
.swpi-admin-shell samp,
.swpi-admin-shell .json-box,
.swpi-admin-shell .payload-details pre,
.swpi-admin-shell .mono,
.swpi-admin-shell .diag-health-card strong,
.swpi-admin-shell .stat-card strong,
.swpi-admin-shell .metric-row strong,
.swpi-admin-shell .queue-truth-summary strong,
.swpi-admin-shell .info-grid dd,
.swpi-admin-shell .data-table td code{
  font-family:var(--sw-font-mono)!important;
}
.swpi-admin-shell .main{
  background:var(--sw-bg)!important;
  color:var(--sw-text)!important;
}
.swpi-admin-shell .topbar{
  align-items:center!important;
  gap:16px!important;
  margin-bottom:18px!important;
}
.swpi-admin-shell .topbar h1,
.swpi-admin-shell .hero h2,
.swpi-admin-shell .detail-hero h2,
.swpi-admin-shell .panel h2,
.swpi-admin-shell .section-heading h2{
  color:var(--sw-text)!important;
  font-weight:720!important;
  letter-spacing:-.035em!important;
}
.swpi-admin-shell .topbar h1{font-size:26px!important;line-height:1.08!important;}
.swpi-admin-shell .eyebrow,
.swpi-admin-shell .muted,
.swpi-admin-shell small,
.swpi-admin-shell .panel-head p,
.swpi-admin-shell .hero p,
.swpi-admin-shell .detail-hero p,
.swpi-admin-shell .section-heading p{
  color:var(--sw-text-muted)!important;
}
.swpi-admin-shell a{color:var(--sw-accent)!important;}
.swpi-admin-shell a.strong-link{color:var(--sw-text)!important;}
.swpi-admin-shell a.strong-link:hover{color:var(--sw-accent)!important;}

/* Shell and navigation */
.swpi-admin-shell .sidebar{
  background:linear-gradient(180deg,#101722,#0b111b)!important;
  border-right:1px solid rgba(255,255,255,.08)!important;
  box-shadow:none!important;
}
.swpi-admin-shell .brand,
.swpi-admin-shell .sidebar-footer{border-color:rgba(255,255,255,.10)!important;}
.swpi-admin-shell .brand-mark{
  border-radius:var(--sw-radius-lg)!important;
  background:#ffffff!important;
  color:#101722!important;
}
.swpi-admin-shell .nav-link{
  border-radius:var(--sw-radius-md)!important;
  min-height:34px!important;
  padding:8px 10px!important;
  color:#cfd8e3!important;
  box-shadow:none!important;
}
.swpi-admin-shell .nav-link.active{
  background:#ffffff!important;
  color:#101722!important;
  box-shadow:none!important;
}
.swpi-admin-shell .nav-link:hover{background:rgba(255,255,255,.08)!important;text-decoration:none!important;}
.swpi-admin-shell .shell-chip,
.swpi-admin-shell .user-chip,
.swpi-admin-shell .theme-toggle{
  background:var(--sw-surface)!important;
  color:var(--sw-text-muted)!important;
  border:1px solid var(--sw-border)!important;
  border-radius:var(--sw-radius-md)!important;
  box-shadow:none!important;
}

/* Core shared surface contract */
.swpi-admin-shell .panel,
.swpi-admin-shell .hero,
.swpi-admin-shell .detail-hero,
.swpi-admin-shell .stat-card,
.swpi-admin-shell .top-prospect-card,
.swpi-admin-shell .prospect-list-card,
.swpi-admin-shell .operation-action-card,
.swpi-admin-shell .diagnostics-section,
.swpi-admin-shell .diag-health-card,
.swpi-admin-shell .metric-card,
.swpi-admin-shell .reason-card,
.swpi-admin-shell .website-truth-card,
.swpi-admin-shell .scan-evidence-block,
.swpi-admin-shell .latest-scan-evidence,
.swpi-admin-shell .display-contract-summary,
.swpi-admin-shell .content-preview,
.swpi-admin-shell .empty-state,
.swpi-admin-shell .empty-mini,
.swpi-admin-shell .offer-box,
.swpi-admin-shell .readiness-hero,
.swpi-admin-shell .financial-scoreline,
.swpi-admin-shell .lead-readiness-status,
.swpi-admin-shell .crm-payload-card,
.swpi-admin-shell .audit-card,
.swpi-admin-shell .quality-card,
.swpi-admin-shell .candidate-card,
.swpi-admin-shell .contact-review-card,
.swpi-admin-shell .vendor-card{
  background:var(--sw-surface)!important;
  background-image:none!important;
  border:1px solid var(--sw-border)!important;
  color:var(--sw-text)!important;
  border-radius:var(--sw-radius-lg)!important;
  box-shadow:var(--sw-shadow-sm)!important;
}
.swpi-admin-shell .panel,
.swpi-admin-shell .hero,
.swpi-admin-shell .detail-hero{padding:16px!important;margin-bottom:14px!important;}
.swpi-admin-shell .panel-head,
.swpi-admin-shell .section-heading,
.swpi-admin-shell .topbar-title,
.swpi-admin-shell .topbar-actions{
  gap:12px!important;
}
.swpi-admin-shell .panel-head{margin-bottom:12px!important;}
.swpi-admin-shell .stat-grid{gap:10px!important;margin-bottom:14px!important;}
.swpi-admin-shell .stat-card{
  min-height:96px!important;
  padding:14px!important;
  overflow:hidden!important;
}
.swpi-admin-shell .stat-card:before{height:2px!important;background:var(--sw-border)!important;}
.swpi-admin-shell .stat-card.primary:before{background:var(--sw-accent)!important;}
.swpi-admin-shell .stat-card.success:before{background:var(--sw-success)!important;}
.swpi-admin-shell .stat-card.warm:before{background:var(--sw-warning)!important;}
.swpi-admin-shell .stat-card.hot:before{background:var(--sw-danger)!important;}
.swpi-admin-shell .stat-card strong{font-size:26px!important;margin:6px 0!important;color:var(--sw-text)!important;}
.swpi-admin-shell .stat-card span{font-size:11px!important;color:var(--sw-text-muted)!important;}

/* Buttons */
.swpi-admin-shell .btn,
.swpi-admin-shell button,
.swpi-admin-shell input[type="submit"],
.swpi-admin-shell .operation-action-card em{
  min-height:34px!important;
  border-radius:var(--sw-radius-md)!important;
  padding:8px 12px!important;
  font-size:12px!important;
  font-weight:720!important;
  line-height:1.15!important;
  box-shadow:none!important;
  border:1px solid transparent!important;
  background:var(--sw-accent)!important;
  color:#fff!important;
}
.swpi-admin-shell .btn:hover,
.swpi-admin-shell button:hover{text-decoration:none!important;filter:none!important;transform:none!important;}
.swpi-admin-shell .btn.secondary,
.swpi-admin-shell button.secondary,
.swpi-admin-shell .btn.ghost,
.swpi-admin-shell button.ghost,
.swpi-admin-shell .btn.subtle,
.swpi-admin-shell button.subtle{
  background:var(--sw-surface-2)!important;
  color:var(--sw-text)!important;
  border-color:var(--sw-border)!important;
}
.swpi-admin-shell .btn.secondary:hover,
.swpi-admin-shell button.secondary:hover,
.swpi-admin-shell .btn.ghost:hover,
.swpi-admin-shell button.ghost:hover{
  background:var(--sw-surface-muted)!important;
  border-color:var(--sw-border)!important;
}
.swpi-admin-shell .btn.small,
.swpi-admin-shell button.small,
.swpi-admin-shell .row-actions .btn,
.swpi-admin-shell .row-actions button,
.swpi-admin-shell .data-table .btn,
.swpi-admin-shell .data-table button{
  min-height:28px!important;
  padding:5px 9px!important;
  border-radius:var(--sw-radius-sm)!important;
  font-size:11px!important;
}
.swpi-admin-shell .danger,
.swpi-admin-shell .btn.danger,
.swpi-admin-shell button.danger,
.swpi-admin-shell button[value="do_not_contact"],
.swpi-admin-shell button[value="reset_discovery_cursor"]{
  background:var(--claude-danger-soft)!important;
  color:var(--sw-danger)!important;
  border-color:color-mix(in srgb,var(--sw-danger) 38%,var(--sw-border))!important;
}
.swpi-admin-shell .danger:hover,
.swpi-admin-shell .btn.danger:hover,
.swpi-admin-shell button.danger:hover{background:color-mix(in srgb,var(--claude-danger-soft) 84%,var(--sw-danger))!important;}
.swpi-admin-shell button:focus-visible,
.swpi-admin-shell .btn:focus-visible,
.swpi-admin-shell a:focus-visible,
.swpi-admin-shell input:focus-visible,
.swpi-admin-shell select:focus-visible,
.swpi-admin-shell textarea:focus-visible,
.swpi-admin-shell summary:focus-visible{
  outline:2px solid var(--sw-accent)!important;
  outline-offset:2px!important;
}

/* Chips and badges */
.swpi-admin-shell .badge,
.swpi-admin-shell .chip,
.swpi-admin-shell .truth-chip,
.swpi-admin-shell .score-chip,
.swpi-admin-shell .header-signal-badge,
.swpi-admin-shell .icon-pill,
.swpi-admin-shell .vendor-chip,
.swpi-admin-shell .source-chip{
  min-height:22px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  border-radius:var(--sw-radius-sm)!important;
  padding:3px 7px!important;
  font-size:11px!important;
  font-weight:720!important;
  line-height:1.2!important;
  border:1px solid var(--sw-border)!important;
  background:var(--sw-surface-2)!important;
  color:var(--sw-text-muted)!important;
  box-shadow:none!important;
}
.swpi-admin-shell .badge-success,
.swpi-admin-shell .badge.success,
.swpi-admin-shell .badge-primary.success,
.swpi-admin-shell .score-chip.success,
.swpi-admin-shell .success:not(.notice):not(.diag-health-card):not(.offer-qa-score):not(.offer-qa-flag){
  background:var(--claude-success-soft)!important;
  color:var(--sw-success)!important;
  border-color:color-mix(in srgb,var(--sw-success) 35%,var(--sw-border))!important;
}
.swpi-admin-shell .badge-info,
.swpi-admin-shell .badge-primary,
.swpi-admin-shell .badge.info,
.swpi-admin-shell .score-chip.info,
.swpi-admin-shell .info:not(.notice):not(.diag-health-card):not(.offer-qa-score):not(.offer-qa-flag){
  background:var(--claude-accent-soft)!important;
  color:var(--sw-accent)!important;
  border-color:color-mix(in srgb,var(--sw-accent) 35%,var(--sw-border))!important;
}
.swpi-admin-shell .badge-warm,
.swpi-admin-shell .badge-warning,
.swpi-admin-shell .badge.warning,
.swpi-admin-shell .badge.warm,
.swpi-admin-shell .score-chip.warm,
.swpi-admin-shell .warm:not(.notice):not(.diag-health-card):not(.offer-qa-score):not(.offer-qa-flag){
  background:var(--claude-warning-soft)!important;
  color:var(--sw-warning)!important;
  border-color:color-mix(in srgb,var(--sw-warning) 35%,var(--sw-border))!important;
}
.swpi-admin-shell .badge-hot,
.swpi-admin-shell .badge-danger,
.swpi-admin-shell .badge.danger,
.swpi-admin-shell .score-chip.danger,
.swpi-admin-shell .hot:not(.stat-card):not(.top-prospect-card):not(.prospect-list-card):not(.notice){
  background:var(--claude-danger-soft)!important;
  color:var(--sw-danger)!important;
  border-color:color-mix(in srgb,var(--sw-danger) 35%,var(--sw-border))!important;
}
.swpi-admin-shell .badge-muted,
.swpi-admin-shell .badge-neutral,
.swpi-admin-shell .neutral,
.swpi-admin-shell .muted:not(p):not(small):not(span){
  background:var(--sw-surface-2)!important;
  color:var(--sw-text-muted)!important;
  border-color:var(--sw-border)!important;
}
.swpi-admin-shell .badges,
.swpi-admin-shell .compact-badges{gap:4px!important;}

/* Forms, filters and search */
.swpi-admin-shell input,
.swpi-admin-shell select,
.swpi-admin-shell textarea{
  background:var(--sw-surface)!important;
  color:var(--sw-text)!important;
  border:1px solid var(--sw-border)!important;
  border-radius:var(--sw-radius-md)!important;
  min-height:36px!important;
  padding:7px 10px!important;
  box-shadow:none!important;
  font-family:var(--sw-font-sans)!important;
}
.swpi-admin-shell textarea{min-height:auto!important;line-height:1.4!important;}
.swpi-admin-shell input::placeholder,
.swpi-admin-shell textarea::placeholder{color:var(--sw-text-subtle)!important;opacity:1!important;}
.swpi-admin-shell label{font-size:12px!important;font-weight:680!important;color:var(--sw-text)!important;}
.swpi-admin-shell .filters,
.swpi-admin-shell .structured-filters,
.swpi-admin-shell .filter-toolbar,
.swpi-admin-shell .filter-section,
.swpi-admin-shell .bulk-bar,
.swpi-admin-shell .view-tabs,
.swpi-admin-shell .preset-row,
.swpi-admin-shell .quick-result-strip,
.swpi-admin-shell .dashboard-quick-search{
  background:var(--sw-surface)!important;
  border:1px solid var(--sw-border)!important;
  border-radius:var(--sw-radius-lg)!important;
  box-shadow:none!important;
}
.swpi-admin-shell .filters,
.swpi-admin-shell .structured-filters{padding:12px!important;gap:10px!important;}
.swpi-admin-shell .filter-toolbar{padding:0!important;border:0!important;background:transparent!important;}
.swpi-admin-shell .filter-section{padding:10px!important;background:var(--sw-surface-2)!important;}
.swpi-admin-shell .dashboard-quick-search{padding:4px!important;}
.swpi-admin-shell .dashboard-quick-search input{border:0!important;background:transparent!important;min-height:30px!important;}

/* Tables and dense rows */
.swpi-admin-shell .table-scroll{
  border:1px solid var(--sw-border)!important;
  border-radius:var(--sw-radius-lg)!important;
  background:var(--sw-surface)!important;
  overflow:auto!important;
}
.swpi-admin-shell .data-table{
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  background:var(--sw-surface)!important;
  color:var(--sw-text)!important;
}
.swpi-admin-shell .data-table th{
  background:var(--sw-surface-2)!important;
  color:var(--sw-text-subtle)!important;
  border-bottom:1px solid var(--sw-border)!important;
  padding:8px 10px!important;
  font-size:10px!important;
  font-weight:780!important;
  letter-spacing:.075em!important;
}
.swpi-admin-shell .data-table td{
  background:transparent!important;
  color:var(--sw-text)!important;
  border-bottom:1px solid var(--sw-border-soft)!important;
  padding:9px 10px!important;
  font-size:12px!important;
  line-height:1.35!important;
}
.swpi-admin-shell .data-table tr:hover td,
.swpi-admin-shell .prospect-list-card:hover,
.swpi-admin-shell .top-prospect-card:hover{
  background:var(--sw-surface-2)!important;
}
.swpi-admin-shell .data-table small{color:var(--sw-text-muted)!important;}
.swpi-admin-shell .data-table code,
.swpi-admin-shell .payload-code{
  background:var(--sw-surface-2)!important;
  color:var(--sw-text)!important;
  border:1px solid var(--sw-border)!important;
  border-radius:var(--sw-radius-sm)!important;
}

/* Prospect cards/detail and shared compact intelligence structures */
.swpi-admin-shell .prospect-card-list,
.swpi-admin-shell .top-prospects-grid,
.swpi-admin-shell .reason-grid,
.swpi-admin-shell .operation-action-grid,
.swpi-admin-shell .diag-health-grid{gap:10px!important;}
.swpi-admin-shell .prospect-list-card,
.swpi-admin-shell .top-prospect-card{padding:12px!important;}
.swpi-admin-shell .prospect-row-titleline,
.swpi-admin-shell .top-prospect-head{gap:10px!important;}
.swpi-admin-shell .prospect-row-score,
.swpi-admin-shell .top-prospect-score,
.swpi-admin-shell .score-pill,
.swpi-admin-shell .hero-score-card{
  border-radius:var(--sw-radius-md)!important;
  background:var(--sw-surface-2)!important;
  color:var(--sw-text)!important;
  border:1px solid var(--sw-border)!important;
  box-shadow:none!important;
}
.swpi-admin-shell .detail-layout{gap:14px!important;}
.swpi-admin-shell .detail-side{gap:12px!important;}
.swpi-admin-shell .quick-signal-strip{gap:5px!important;}
.swpi-admin-shell .info-grid,
.swpi-admin-shell .metric-row,
.swpi-admin-shell .queue-truth-summary,
.swpi-admin-shell .intake-summary{gap:8px!important;}
.swpi-admin-shell .info-grid div,
.swpi-admin-shell .metric-row div,
.swpi-admin-shell .queue-truth-summary > div,
.swpi-admin-shell .intake-summary > div,
.swpi-admin-shell .display-contract-summary > div,
.swpi-admin-shell .financial-kv div{
  background:var(--sw-surface-2)!important;
  border:1px solid var(--sw-border)!important;
  color:var(--sw-text)!important;
  border-radius:var(--sw-radius-md)!important;
  padding:10px!important;
  box-shadow:none!important;
}
.swpi-admin-shell .metric-row strong,
.swpi-admin-shell .queue-truth-summary strong,
.swpi-admin-shell .intake-summary strong,
.swpi-admin-shell .diag-health-card strong{color:var(--sw-text)!important;}
.swpi-admin-shell .metric-row span,
.swpi-admin-shell .queue-truth-summary span,
.swpi-admin-shell .intake-summary span,
.swpi-admin-shell .diag-health-card span{color:var(--sw-text-muted)!important;}

/* Tabs */
.swpi-admin-shell .detail-tabs,
.swpi-admin-shell .tabs,
.swpi-admin-shell .view-tabs{
  background:var(--sw-surface-2)!important;
  border:1px solid var(--sw-border)!important;
  border-radius:var(--sw-radius-lg)!important;
  padding:5px!important;
  gap:4px!important;
  box-shadow:none!important;
}
.swpi-admin-shell .detail-tabs button,
.swpi-admin-shell .tabs button,
.swpi-admin-shell .view-tabs a{
  min-height:28px!important;
  border-radius:var(--sw-radius-sm)!important;
  background:transparent!important;
  border:1px solid transparent!important;
  color:var(--sw-text-muted)!important;
  padding:5px 9px!important;
  font-size:11px!important;
  font-weight:720!important;
  box-shadow:none!important;
}
.swpi-admin-shell .detail-tabs button.active,
.swpi-admin-shell .tabs button.active,
.swpi-admin-shell .view-tabs a.active{
  background:var(--sw-surface)!important;
  border-color:var(--sw-border)!important;
  color:var(--sw-text)!important;
}
.swpi-admin-shell .tab-section{
  background:transparent!important;
  color:var(--sw-text)!important;
}

/* Diagnostics and technical surfaces */
.swpi-admin-shell .diagnostics-section,
.swpi-admin-shell .advanced-diagnostics-box,
.swpi-admin-shell .raw-json-box,
.swpi-admin-shell .advanced-operations-box,
.swpi-admin-shell .advanced-box,
.swpi-admin-shell .payload-details,
.swpi-admin-shell .technical-admin-panel{
  background:var(--sw-surface)!important;
  border:1px solid var(--sw-border)!important;
  border-radius:var(--sw-radius-lg)!important;
  color:var(--sw-text)!important;
  box-shadow:none!important;
}
.swpi-admin-shell details > summary{
  cursor:pointer!important;
  color:var(--sw-text)!important;
  font-weight:720!important;
  list-style:none!important;
}
.swpi-admin-shell details > summary::-webkit-details-marker{display:none!important;}
.swpi-admin-shell details > summary::before{
  content:"▸";
  display:inline-block;
  margin-right:6px;
  color:var(--sw-text-subtle);
  transition:transform .15s ease;
}
.swpi-admin-shell details[open] > summary::before{transform:rotate(90deg);}
.swpi-admin-shell .technical-admin-panel{padding:0!important;overflow:hidden!important;}
.swpi-admin-shell .technical-admin-panel > summary{
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
  padding:11px 12px!important;
  background:var(--sw-surface-2)!important;
  border-bottom:1px solid transparent!important;
}
.swpi-admin-shell .technical-admin-panel[open] > summary{border-bottom-color:var(--sw-border)!important;}
.swpi-admin-shell .technical-admin-panel > summary span{font-weight:760!important;color:var(--sw-text)!important;}
.swpi-admin-shell .technical-admin-panel > summary small{font-weight:520!important;color:var(--sw-text-muted)!important;}
.swpi-admin-shell .technical-admin-panel-body{padding:12px!important;}
.swpi-admin-shell .json-box,
.swpi-admin-shell .payload-details pre{
  background:#0b111b!important;
  color:#e4edf7!important;
  border:1px solid #263243!important;
  border-radius:var(--sw-radius-md)!important;
  box-shadow:none!important;
}
.swpi-admin-shell .notice{
  background:var(--sw-surface)!important;
  color:var(--sw-text)!important;
  border:1px solid var(--sw-border)!important;
  border-radius:var(--sw-radius-lg)!important;
  box-shadow:none!important;
}
.swpi-admin-shell .notice.success{background:var(--claude-success-soft)!important;color:var(--sw-success)!important;border-color:color-mix(in srgb,var(--sw-success) 35%,var(--sw-border))!important;}
.swpi-admin-shell .notice.warning,
.swpi-admin-shell .notice.info{background:var(--claude-warning-soft)!important;color:var(--sw-warning)!important;border-color:color-mix(in srgb,var(--sw-warning) 35%,var(--sw-border))!important;}
.swpi-admin-shell .notice.error,
.swpi-admin-shell .alert{background:var(--claude-danger-soft)!important;color:var(--sw-danger)!important;border-color:color-mix(in srgb,var(--sw-danger) 35%,var(--sw-border))!important;}

/* Dark-mode white-surface quarantine for legacy inline/local styles. */
html[data-theme="dark"] .swpi-admin-shell .main,
html[data-theme="dark"] .swpi-admin-shell .main *{
  border-color:var(--sw-border);
}
html[data-theme="dark"] .swpi-admin-shell .main [style*="background:#fff"],
html[data-theme="dark"] .swpi-admin-shell .main [style*="background: #fff"],
html[data-theme="dark"] .swpi-admin-shell .main [style*="background:white"],
html[data-theme="dark"] .swpi-admin-shell .main [style*="background: white"],
html[data-theme="dark"] .swpi-admin-shell .main [style*="background:rgb(255"],
html[data-theme="dark"] .swpi-admin-shell .main [style*="background: rgb(255"]{
  background:var(--sw-surface-2)!important;
  color:var(--sw-text)!important;
  border-color:var(--sw-border)!important;
}
html[data-theme="dark"] .swpi-admin-shell .panel,
html[data-theme="dark"] .swpi-admin-shell .hero,
html[data-theme="dark"] .swpi-admin-shell .detail-hero,
html[data-theme="dark"] .swpi-admin-shell .stat-card,
html[data-theme="dark"] .swpi-admin-shell .top-prospect-card,
html[data-theme="dark"] .swpi-admin-shell .prospect-list-card,
html[data-theme="dark"] .swpi-admin-shell .operation-action-card,
html[data-theme="dark"] .swpi-admin-shell .diagnostics-section,
html[data-theme="dark"] .swpi-admin-shell .diag-health-card,
html[data-theme="dark"] .swpi-admin-shell .metric-card,
html[data-theme="dark"] .swpi-admin-shell .reason-card,
html[data-theme="dark"] .swpi-admin-shell .empty-state,
html[data-theme="dark"] .swpi-admin-shell .empty-mini,
html[data-theme="dark"] .swpi-admin-shell .offer-box,
html[data-theme="dark"] .swpi-admin-shell .readiness-hero,
html[data-theme="dark"] .swpi-admin-shell .financial-scoreline,
html[data-theme="dark"] .swpi-admin-shell .info-grid div,
html[data-theme="dark"] .swpi-admin-shell .metric-row div,
html[data-theme="dark"] .swpi-admin-shell .queue-truth-summary > div,
html[data-theme="dark"] .swpi-admin-shell .intake-summary > div{
  background:var(--sw-surface)!important;
  background-image:none!important;
  color:var(--sw-text)!important;
  border-color:var(--sw-border)!important;
}
html[data-theme="dark"] .swpi-admin-shell .data-table th,
html[data-theme="dark"] .swpi-admin-shell .filter-section,
html[data-theme="dark"] .swpi-admin-shell .detail-tabs,
html[data-theme="dark"] .swpi-admin-shell .view-tabs,
html[data-theme="dark"] .swpi-admin-shell .bulk-bar{
  background:var(--sw-surface-2)!important;
}
html[data-theme="dark"] .swpi-admin-shell input,
html[data-theme="dark"] .swpi-admin-shell select,
html[data-theme="dark"] .swpi-admin-shell textarea{
  background:#0f1620!important;
  color:var(--sw-text)!important;
  border-color:var(--sw-border)!important;
}
html[data-theme="dark"] .swpi-admin-shell .btn.secondary,
html[data-theme="dark"] .swpi-admin-shell button.secondary,
html[data-theme="dark"] .swpi-admin-shell .btn.ghost,
html[data-theme="dark"] .swpi-admin-shell button.ghost{
  background:var(--sw-surface-2)!important;
  color:var(--sw-text)!important;
  border-color:var(--sw-border)!important;
}

/* Responsive lock: compact but usable on tablet/mobile without reverting legacy boxes. */
@media (max-width:1180px){
  .swpi-admin-shell .detail-layout,
  .swpi-admin-shell .two-col{grid-template-columns:1fr!important;}
  .swpi-admin-shell .filters,
  .swpi-admin-shell .structured-filters{grid-template-columns:1fr!important;}
}
@media (max-width:760px){
  .swpi-admin-shell .main{padding:18px 12px 44px!important;}
  .swpi-admin-shell .topbar,
  .swpi-admin-shell .hero,
  .swpi-admin-shell .detail-hero,
  .swpi-admin-shell .panel-head,
  .swpi-admin-shell .section-heading{align-items:stretch!important;}
  .swpi-admin-shell .topbar-actions,
  .swpi-admin-shell .button-row,
  .swpi-admin-shell .row-actions{flex-wrap:wrap!important;}
  .swpi-admin-shell .btn,
  .swpi-admin-shell button{width:auto!important;}
  .swpi-admin-shell .hero-actions .btn{width:100%!important;}
  .swpi-admin-shell .data-table td{font-size:12px!important;}
}

/* v0.3.10.6.1 — Post-Reset Visual QA + Contact Promotion No-op Guard
   Final visual QA layer only. Keeps the Claude reset intact, fixes remaining badge
   contrast by targeting the actual badge-* classes emitted by PHP, and tightens
   review/workbench rows without introducing new UI patterns. */
.swpi-admin-shell .badge.badge-neutral,
.swpi-admin-shell .badge.badge-more{
  background:var(--surface-3)!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}
.swpi-admin-shell .badge.badge-info,
.swpi-admin-shell .badge.badge-primary{
  background:var(--accent-bg)!important;
  color:var(--accent)!important;
  border-color:var(--accent-bg-strong)!important;
}
.swpi-admin-shell .badge.badge-success{
  background:var(--green-bg)!important;
  color:var(--green)!important;
  border-color:color-mix(in srgb,var(--green) 34%,var(--border))!important;
}
.swpi-admin-shell .badge.badge-warm,
.swpi-admin-shell .badge.badge-warning{
  background:var(--amber-bg)!important;
  color:var(--amber)!important;
  border-color:color-mix(in srgb,var(--amber) 34%,var(--border))!important;
}
.swpi-admin-shell .badge.badge-danger,
.swpi-admin-shell .badge.badge-hot{
  background:var(--red-bg)!important;
  color:var(--red)!important;
  border-color:color-mix(in srgb,var(--red) 34%,var(--border))!important;
}
.swpi-admin-shell .badge.badge-muted{
  background:var(--surface-2)!important;
  color:var(--text-muted)!important;
  border-color:var(--border)!important;
}
.swpi-admin-shell .panel-head,
.swpi-admin-shell .section-heading,
.swpi-admin-shell .contact-company-head,
.swpi-admin-shell .vendor-tools-bar,
.swpi-admin-shell .vendor-merge-bar,
.swpi-admin-shell .prospect-bulk-bar,
.swpi-admin-shell .bulk-bar{
  background-image:none!important;
}
.swpi-admin-shell .contact-review-results .bulk-bar,
.swpi-admin-shell .contact-company-card,
.swpi-admin-shell .contact-candidate-row,
.swpi-admin-shell .data-table tr,
.swpi-admin-shell .vendor-polished-table tr{
  transition:background-color .12s ease,border-color .12s ease!important;
}
.swpi-admin-shell .contact-candidate-row:hover,
.swpi-admin-shell .data-table tbody tr:hover td,
.swpi-admin-shell .vendor-polished-table tbody tr:hover td{
  background:var(--surface-hover)!important;
}
.swpi-admin-shell .contact-candidate-row .row-actions,
.swpi-admin-shell .data-table .row-actions,
.swpi-admin-shell .vendor-polished-table .row-actions{
  align-items:center!important;
  gap:6px!important;
}
.swpi-admin-shell .contact-candidate-row .btn,
.swpi-admin-shell .data-table .row-actions .btn,
.swpi-admin-shell .data-table .row-actions button,
.swpi-admin-shell .vendor-polished-table .row-actions .btn{
  min-height:27px!important;
  white-space:nowrap!important;
}
.swpi-admin-shell .payload-cell details,
.swpi-admin-shell .payload-details,
.swpi-admin-shell details.payload-details{
  background:var(--surface-2)!important;
  border-color:var(--border)!important;
  color:var(--text)!important;
}
.swpi-admin-shell .payload-cell summary,
.swpi-admin-shell .payload-details summary{
  color:var(--text)!important;
}
html[data-theme="dark"] .swpi-admin-shell .notice.info,
html[data-theme="dark"] .swpi-admin-shell .notice.warning{
  background:var(--amber-bg)!important;
  color:var(--amber)!important;
  border-color:color-mix(in srgb,var(--amber) 34%,var(--border))!important;
}
html[data-theme="dark"] .swpi-admin-shell .notice.success{
  background:var(--green-bg)!important;
  color:var(--green)!important;
  border-color:color-mix(in srgb,var(--green) 34%,var(--border))!important;
}
html[data-theme="dark"] .swpi-admin-shell .notice.error,
html[data-theme="dark"] .swpi-admin-shell .alert{
  background:var(--red-bg)!important;
  color:var(--red)!important;
  border-color:color-mix(in srgb,var(--red) 34%,var(--border))!important;
}
@media(max-width:1100px){
  .swpi-admin-shell .contact-candidate-row .row-actions,
  .swpi-admin-shell .data-table .row-actions{justify-content:flex-start!important;}
  .swpi-admin-shell .contact-candidate-row .btn,
  .swpi-admin-shell .data-table .row-actions .btn,
  .swpi-admin-shell .data-table .row-actions button{width:auto!important;}
}

/* v0.3.10.6.3 — Vendor alias merge UX */
.vendor-merge-bar.has-selection{
  border-color: color-mix(in srgb, var(--swpi-primary, #3b82f6) 48%, var(--swpi-border, #243244));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--swpi-primary, #3b82f6) 18%, transparent);
}
.vendor-merge-bar [data-vendor-merge-count]{
  color: var(--swpi-accent, #93c5fd);
  font-weight: 800;
}
.vendor-use-canonical{
  white-space: nowrap;
}

/* v0.3.10.6.9 — Vendor Workbench Simplification */
.swpi-admin-shell.route-vendors .vendor-intelligence-workspace{padding-bottom:18px!important;}
.swpi-admin-shell.route-vendors .vendor-simple-steps{grid-template-columns:repeat(3,minmax(0,1fr))!important;margin-top:10px!important;}
.swpi-admin-shell.route-vendors .vendor-simple-steps>div{min-height:56px!important;padding:11px 13px!important;}
.swpi-admin-shell.route-vendors .vendor-simple-tabs{gap:6px!important;flex-wrap:wrap!important;margin-top:12px!important;}
.swpi-admin-shell.route-vendors .vendor-simple-tabs a{padding:8px 10px!important;border-radius:10px!important;}
.swpi-admin-shell.route-vendors .vendor-simple-filter{margin-top:12px!important;padding:12px!important;}
.swpi-admin-shell.route-vendors .vendor-simple-filter .filter-toolbar{grid-template-columns:minmax(260px,1.6fr) minmax(180px,.9fr) minmax(160px,.75fr) minmax(140px,.65fr)!important;gap:10px!important;}
.swpi-admin-shell.route-vendors .vendor-more-filters{grid-column:1/-1!important;margin-top:8px!important;border:1px solid var(--border)!important;border-radius:12px!important;background:var(--surface-2)!important;padding:8px 10px!important;}
.swpi-admin-shell.route-vendors .vendor-more-filters summary{cursor:pointer!important;font-weight:800!important;color:var(--text)!important;}
.swpi-admin-shell.route-vendors .vendor-more-filters .filter-toolbar{margin-top:10px!important;grid-template-columns:repeat(2,minmax(180px,260px))!important;}
.swpi-admin-shell.route-vendors .vendor-advanced-collapsible{margin:12px 0!important;border:1px solid var(--border)!important;border-radius:14px!important;background:var(--surface)!important;overflow:hidden!important;}
.swpi-admin-shell.route-vendors .vendor-advanced-collapsible>summary{cursor:pointer!important;display:flex!important;gap:8px!important;align-items:center!important;justify-content:space-between!important;padding:12px 14px!important;background:var(--surface-2)!important;color:var(--text)!important;}
.swpi-admin-shell.route-vendors .vendor-advanced-collapsible>summary span{color:var(--text-muted)!important;font-size:12px!important;font-weight:600!important;}
.swpi-admin-shell.route-vendors .vendor-advanced-collapsible[open]>summary{border-bottom:1px solid var(--border)!important;}
.swpi-admin-shell.route-vendors .vendor-advanced-collapsible .vendor-tools-bar,
.swpi-admin-shell.route-vendors .vendor-advanced-collapsible .vendor-suggestions-panel,
.swpi-admin-shell.route-vendors .vendor-advanced-collapsible .vendor-manual-group-panel{margin:12px!important;}
.swpi-admin-shell.route-vendors .vendor-merge-bar{margin-top:12px!important;padding:12px!important;grid-template-columns:minmax(260px,1.6fr) minmax(170px,.75fr) minmax(170px,.75fr) minmax(170px,.75fr) auto!important;align-items:end!important;}
.swpi-admin-shell.route-vendors .vendor-simple-table{min-width:920px!important;font-size:12px!important;}
.swpi-admin-shell.route-vendors .vendor-simple-table th,
.swpi-admin-shell.route-vendors .vendor-simple-table td{padding:10px 9px!important;vertical-align:middle!important;}
.swpi-admin-shell.route-vendors .vendor-simple-table td:nth-child(2){min-width:240px!important;max-width:330px!important;}
.swpi-admin-shell.route-vendors .vendor-simple-table td:nth-child(4){max-width:300px!important;color:var(--text-muted)!important;}
.swpi-admin-shell.route-vendors .vendor-status-stack{display:flex!important;flex-wrap:wrap!important;gap:5px!important;align-items:center!important;}
.swpi-admin-shell.route-vendors .vendor-compact-actions{display:flex!important;align-items:center!important;gap:6px!important;min-width:145px!important;}
.swpi-admin-shell.route-vendors .vendor-row-more{position:relative!important;}
.swpi-admin-shell.route-vendors .vendor-row-more summary{list-style:none!important;cursor:pointer!important;border:1px solid var(--border-strong)!important;border-radius:9px!important;padding:5px 8px!important;font-size:11px!important;font-weight:800!important;background:var(--surface-2)!important;color:var(--text)!important;}
.swpi-admin-shell.route-vendors .vendor-row-more summary::-webkit-details-marker{display:none!important;}
.swpi-admin-shell.route-vendors .vendor-row-more[open] summary{background:var(--accent-soft)!important;border-color:var(--accent)!important;}
.swpi-admin-shell.route-vendors .vendor-row-more>div{position:absolute!important;right:0!important;top:calc(100% + 6px)!important;z-index:20!important;min-width:180px!important;display:grid!important;gap:6px!important;padding:8px!important;border:1px solid var(--border)!important;border-radius:12px!important;background:var(--surface)!important;box-shadow:var(--shadow-lg)!important;}
.swpi-admin-shell.route-vendors .vendor-row-more .inline-form,
.swpi-admin-shell.route-vendors .vendor-row-more .btn{width:100%!important;}
.swpi-admin-shell.route-vendors .vendor-row-more .btn{justify-content:center!important;}
@media(max-width:1100px){.swpi-admin-shell.route-vendors .vendor-simple-steps{grid-template-columns:1fr!important}.swpi-admin-shell.route-vendors .vendor-simple-filter .filter-toolbar{grid-template-columns:1fr!important}.swpi-admin-shell.route-vendors .vendor-merge-bar{grid-template-columns:1fr!important}.swpi-admin-shell.route-vendors .vendor-advanced-collapsible>summary{align-items:flex-start!important;flex-direction:column!important}}


/* v0.3.10.6.18 — UI Padding + Sidebar Density Polish
   Visual-only spacing layer. Keeps Claude tokens/dense UI, adds breathing room inside
   content containers and tightens sidebar vertical rhythm without changing markup. */
.swpi-admin-shell .main{
  padding:22px 24px 64px!important;
}
.swpi-admin-shell .topbar{
  margin:-22px -24px 22px!important;
  padding:0 24px!important;
}
.swpi-admin-shell .panel,
.swpi-admin-shell .hero,
.swpi-admin-shell .detail-hero{
  padding:18px 20px!important;
  margin-bottom:18px!important;
}
.swpi-admin-shell .panel-head{
  margin-bottom:14px!important;
  padding:0 1px!important;
}
.swpi-admin-shell .panel-head p,
.swpi-admin-shell .hero p,
.swpi-admin-shell .detail-hero p{
  line-height:1.48!important;
}
.swpi-admin-shell .stat-grid{
  gap:12px!important;
  margin-bottom:18px!important;
}
.swpi-admin-shell .stat-card{
  padding:15px 16px!important;
  min-height:96px!important;
}
.swpi-admin-shell .stat-card strong{
  margin:7px 0 5px!important;
}
.swpi-admin-shell .notice,
.swpi-admin-shell .alert{
  padding:11px 13px!important;
  line-height:1.45!important;
}
.swpi-admin-shell .data-table th{
  padding:9px 11px!important;
}
.swpi-admin-shell .data-table td{
  padding:10px 11px!important;
  line-height:1.42!important;
}
.swpi-admin-shell .table-scroll,
.swpi-admin-shell .diagnostics-panel,
.swpi-admin-shell .diagnostics-section,
.swpi-admin-shell .data-section{
  padding-inline:1px!important;
}
.swpi-admin-shell .structured-filters,
.swpi-admin-shell .smart-filters,
.swpi-admin-shell .vendor-simple-filter,
.swpi-admin-shell .vendor-merge-bar,
.swpi-admin-shell .vendor-tools-bar,
.swpi-admin-shell .bulk-bar,
.swpi-admin-shell .prospect-bulk-bar{
  padding:13px 14px!important;
}
.swpi-admin-shell .filter-toolbar,
.swpi-admin-shell .form-grid,
.swpi-admin-shell .settings-grid,
.swpi-admin-shell .info-grid,
.swpi-admin-shell .metric-row{
  gap:12px!important;
}
.swpi-admin-shell .filter-section,
.swpi-admin-shell .setting-row,
.swpi-admin-shell .switch-row,
.swpi-admin-shell .info-grid div,
.swpi-admin-shell .metric-row div,
.swpi-admin-shell .action-list a,
.swpi-admin-shell .action-list>div,
.swpi-admin-shell .empty-state,
.swpi-admin-shell details,
.swpi-admin-shell .payload-details,
.swpi-admin-shell .codebox,
.swpi-admin-shell .json-box{
  padding:13px 14px!important;
}
.swpi-admin-shell .badge{
  padding:3px 8px!important;
}
.swpi-admin-shell .btn,
.swpi-admin-shell button{
  padding:6px 11px!important;
}
.swpi-admin-shell .btn.small,
.swpi-admin-shell button.small{
  padding:5px 9px!important;
}
.swpi-admin-shell .nav{
  padding:10px 8px 14px!important;
}
.swpi-admin-shell .nav-group{
  margin:0 0 10px!important;
}
.swpi-admin-shell .nav-group>span{
  margin:0 0 4px 8px!important;
  line-height:1.05!important;
}
.swpi-admin-shell .nav-link{
  min-height:26px!important;
  padding:4px 8px!important;
  margin:0!important;
  line-height:1.08!important;
  gap:7px!important;
}
.swpi-admin-shell .nav-link span{
  line-height:1.08!important;
}
.swpi-admin-shell .nav-ico{
  width:16px!important;
  height:16px!important;
  flex-basis:16px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.swpi-admin-shell .sidebar-footer{
  padding:9px 12px!important;
}
@media(max-width:900px){
  .swpi-admin-shell .main{padding:16px 14px 48px!important;}
  .swpi-admin-shell .topbar{margin:-16px -14px 16px!important;padding:7px 14px!important;}
  .swpi-admin-shell .panel,
  .swpi-admin-shell .hero,
  .swpi-admin-shell .detail-hero{padding:16px!important;}
}


/* v0.3.10.6.19 — Section Edge Padding + Diagnostics Rhythm Lock
   Fixes the remaining cramped diagnostic/workbench section edges seen after v0.3.10.6.18.
   The previous pass improved inner cards and sidebar density, but section containers/headings still
   inherited legacy zero/inline-only padding. This layer gives every section a clear inset from its
   border and keeps dense tables readable without changing backend behavior. */
.swpi-admin-shell .diagnostics-section,
.swpi-admin-shell .data-section,
.swpi-admin-shell .operations-section,
.swpi-admin-shell .quality-section,
.swpi-admin-shell .workflow-section,
.swpi-admin-shell .section-card,
.swpi-admin-shell .technical-admin-panel{
  padding:20px 22px!important;
  margin:20px 0!important;
}
.swpi-admin-shell .diagnostics-section:first-child,
.swpi-admin-shell .data-section:first-child,
.swpi-admin-shell .operations-section:first-child,
.swpi-admin-shell .quality-section:first-child{
  margin-top:0!important;
}
.swpi-admin-shell .section-heading{
  padding:0!important;
  margin:0 0 15px!important;
  min-height:auto!important;
}
.swpi-admin-shell .section-heading>div,
.swpi-admin-shell .section-heading .section-title,
.swpi-admin-shell .section-heading .title-stack{
  padding:0!important;
  min-width:0!important;
}
.swpi-admin-shell .section-heading h2,
.swpi-admin-shell .diagnostics-section>h2,
.swpi-admin-shell .data-section>h2,
.swpi-admin-shell .operations-section>h2,
.swpi-admin-shell .quality-section>h2{
  margin:2px 0 5px!important;
  line-height:1.18!important;
}
.swpi-admin-shell .section-heading p,
.swpi-admin-shell .diagnostics-section>p,
.swpi-admin-shell .data-section>p,
.swpi-admin-shell .operations-section>p,
.swpi-admin-shell .quality-section>p{
  margin:0!important;
  line-height:1.45!important;
  max-width:980px!important;
}
.swpi-admin-shell .section-eyebrow,
.swpi-admin-shell .diagnostics-section>.eyebrow,
.swpi-admin-shell .data-section>.eyebrow,
.swpi-admin-shell .operations-section>.eyebrow,
.swpi-admin-shell .quality-section>.eyebrow,
.swpi-admin-shell .section-heading .eyebrow,
.swpi-admin-shell .section-heading .section-eyebrow{
  display:block!important;
  margin:0 0 5px!important;
  padding:0!important;
  line-height:1.15!important;
}
.swpi-admin-shell .section-heading + .diag-health-grid,
.swpi-admin-shell .section-heading + .stat-grid,
.swpi-admin-shell .section-heading + .table-scroll,
.swpi-admin-shell .section-heading + .data-table,
.swpi-admin-shell .section-heading + .panel,
.swpi-admin-shell .section-heading + .notice,
.swpi-admin-shell .diagnostics-section>h2 + p + .diag-health-grid,
.swpi-admin-shell .diagnostics-section>h2 + p + .table-scroll,
.swpi-admin-shell .data-section>h2 + p + .stat-grid,
.swpi-admin-shell .data-section>h2 + p + .table-scroll{
  margin-top:15px!important;
}
.swpi-admin-shell .diagnostics-section .diag-health-grid,
.swpi-admin-shell .data-section .stat-grid{
  gap:13px!important;
}
.swpi-admin-shell .diagnostics-section .diag-health-card,
.swpi-admin-shell .data-section .stat-card,
.swpi-admin-shell .quality-section .stat-card{
  padding:16px 17px!important;
}
.swpi-admin-shell .diagnostics-section .table-scroll,
.swpi-admin-shell .data-section .table-scroll,
.swpi-admin-shell .operations-section .table-scroll,
.swpi-admin-shell .quality-section .table-scroll{
  margin-top:14px!important;
  padding:0!important;
  border-radius:var(--sw-radius-lg,8px)!important;
}
.swpi-admin-shell .diagnostics-section .data-table th,
.swpi-admin-shell .data-section .data-table th,
.swpi-admin-shell .operations-section .data-table th,
.swpi-admin-shell .quality-section .data-table th{
  padding:11px 14px!important;
}
.swpi-admin-shell .diagnostics-section .data-table td,
.swpi-admin-shell .data-section .data-table td,
.swpi-admin-shell .operations-section .data-table td,
.swpi-admin-shell .quality-section .data-table td{
  padding:13px 14px!important;
  line-height:1.44!important;
}
.swpi-admin-shell .lane-health-table th,
.swpi-admin-shell .lane-health-table td{
  padding-left:15px!important;
  padding-right:15px!important;
}
.swpi-admin-shell .notice,
.swpi-admin-shell .alert{
  padding:13px 15px!important;
}
.swpi-admin-shell .panel > .notice:last-child,
.swpi-admin-shell .diagnostics-section > .notice:last-child{
  margin-bottom:0!important;
}
@media(max-width:900px){
  .swpi-admin-shell .diagnostics-section,
  .swpi-admin-shell .data-section,
  .swpi-admin-shell .operations-section,
  .swpi-admin-shell .quality-section,
  .swpi-admin-shell .workflow-section,
  .swpi-admin-shell .section-card,
  .swpi-admin-shell .technical-admin-panel{
    padding:16px!important;
    margin:16px 0!important;
  }
  .swpi-admin-shell .section-heading{margin-bottom:12px!important;}
}


/* v0.3.10.6.20 — Global Admin Padding Propagation + Admin Rhythm Lock
   Keep the diagnostics section fix as the baseline pattern for every admin page we pass through. */
.swpi-admin-shell .panel,
.swpi-admin-shell .card,
.swpi-admin-shell .admin-card,
.swpi-admin-shell .queue-panel,
.swpi-admin-shell .workbench-panel,
.swpi-admin-shell .review-panel,
.swpi-admin-shell .settings-card,
.swpi-admin-shell .filter-panel,
.swpi-admin-shell .summary-panel,
.swpi-admin-shell .status-panel,
.swpi-admin-shell .metric-panel{
  padding:18px 20px!important;
}
.swpi-admin-shell .panel.compact,
.swpi-admin-shell .hero.compact,
.swpi-admin-shell .compact-policy,
.swpi-admin-shell .compact-contact-stats .stat-card{
  padding:16px 18px!important;
}
.swpi-admin-shell .panel-head,
.swpi-admin-shell .card-head,
.swpi-admin-shell .workbench-head,
.swpi-admin-shell .queue-head,
.swpi-admin-shell .filter-head,
.swpi-admin-shell .settings-head{
  padding:0!important;
  margin:0 0 14px!important;
  gap:14px!important;
}
.swpi-admin-shell .panel-head h2,
.swpi-admin-shell .card-head h2,
.swpi-admin-shell .workbench-head h2,
.swpi-admin-shell .queue-head h2,
.swpi-admin-shell .settings-head h2{
  margin:1px 0 5px!important;
  line-height:1.18!important;
}
.swpi-admin-shell .panel-head p,
.swpi-admin-shell .card-head p,
.swpi-admin-shell .workbench-head p,
.swpi-admin-shell .queue-head p,
.swpi-admin-shell .settings-head p{
  margin:0!important;
  line-height:1.45!important;
}
.swpi-admin-shell .stat-grid,
.swpi-admin-shell .metric-grid,
.swpi-admin-shell .kpi-grid,
.swpi-admin-shell .quality-grid,
.swpi-admin-shell .settings-grid{
  gap:14px!important;
}
.swpi-admin-shell .stat-card,
.swpi-admin-shell .metric-card,
.swpi-admin-shell .kpi-card,
.swpi-admin-shell .summary-card,
.swpi-admin-shell .mini-metric-grid>div,
.swpi-admin-shell .audit-grid>div{
  padding:15px 16px!important;
}
.swpi-admin-shell .form-grid,
.swpi-admin-shell .compact-filter,
.swpi-admin-shell .filter-grid,
.swpi-admin-shell .settings-form,
.swpi-admin-shell .button-row,
.swpi-admin-shell .action-row{
  gap:12px!important;
}
.swpi-admin-shell label,
.swpi-admin-shell .field,
.swpi-admin-shell .mini-control{
  line-height:1.35!important;
}
.swpi-admin-shell input,
.swpi-admin-shell select,
.swpi-admin-shell textarea{
  padding:10px 12px!important;
}
.swpi-admin-shell .data-table th,
.swpi-admin-shell table.data-table th{
  padding:11px 14px!important;
}
.swpi-admin-shell .data-table td,
.swpi-admin-shell table.data-table td{
  padding:13px 14px!important;
  line-height:1.44!important;
}
.swpi-admin-shell .row-actions,
.swpi-admin-shell .stacked-actions{
  gap:8px!important;
}
.swpi-admin-shell .action-list>div,
.swpi-admin-shell .static-list>div,
.swpi-admin-shell .timeline-item,
.swpi-admin-shell .queue-row{
  padding:13px 14px!important;
}
.swpi-admin-shell details.panel>summary,
.swpi-admin-shell details.diagnostics-section>summary,
.swpi-admin-shell details.advanced-inline-tools>summary{
  padding:12px 14px!important;
  line-height:1.3!important;
}
.swpi-admin-shell details.panel[open]>summary,
.swpi-admin-shell details.diagnostics-section[open]>summary{
  margin-bottom:12px!important;
}
.swpi-admin-shell .hero,
.swpi-admin-shell .admin-foundation-hero{
  padding:20px 22px!important;
}
.swpi-admin-shell .hero h1,
.swpi-admin-shell .hero h2{
  margin:2px 0 6px!important;
  line-height:1.12!important;
}
.swpi-admin-shell .hero p{
  line-height:1.45!important;
}
@media(max-width:900px){
  .swpi-admin-shell .panel,
  .swpi-admin-shell .card,
  .swpi-admin-shell .admin-card,
  .swpi-admin-shell .queue-panel,
  .swpi-admin-shell .workbench-panel,
  .swpi-admin-shell .review-panel,
  .swpi-admin-shell .settings-card,
  .swpi-admin-shell .filter-panel,
  .swpi-admin-shell .summary-panel,
  .swpi-admin-shell .status-panel,
  .swpi-admin-shell .metric-panel,
  .swpi-admin-shell .hero,
  .swpi-admin-shell .admin-foundation-hero{
    padding:16px!important;
  }
}

/* v0.3.10.6.24 — closed-by-default filter drawer contract */
.swpi-admin-shell [data-filter-toggle]{cursor:pointer!important;}
.swpi-admin-shell [data-mobile-filter-panel]:not(.is-open){display:none!important;}
.swpi-admin-shell [data-mobile-filter-panel].is-open{display:block!important;}
.swpi-admin-shell.route-prospects .mobile-filter-toggle{margin:6px 0 8px!important;}
.swpi-admin-shell.route-prospects .mobile-filter-toggle[aria-expanded="false"]{background:var(--sw-surface)!important;}
.swpi-admin-shell.route-prospects .mobile-filter-toggle[aria-expanded="true"]{background:var(--sw-surface-2)!important;border-color:var(--sw-border-strong,var(--sw-border))!important;}

/* v0.3.10.6.25 — Dashboard Intelligence Cockpit */
.swpi-admin-shell.route-dashboard .dashboard-main-grid,
.swpi-admin-shell.route-dashboard .top-prospect-list,
.swpi-admin-shell.route-dashboard .dashboard-actions{display:none!important;}
.swpi-admin-shell.route-dashboard .intelligence-dashboard-hero{align-items:center!important;}
.swpi-admin-shell.route-dashboard .dashboard-pulse-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
.swpi-admin-shell.route-dashboard .dashboard-intel-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr);gap:16px;align-items:start;}
.swpi-admin-shell.route-dashboard .dashboard-intel-panel,
.swpi-admin-shell.route-dashboard .dashboard-signal-panel,
.swpi-admin-shell.route-dashboard .offer-mix-panel,
.swpi-admin-shell.route-dashboard .readiness-panel{padding:18px 20px!important;}
.swpi-admin-shell.route-dashboard .intel-bucket-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;}
.swpi-admin-shell.route-dashboard .intel-bucket-grid.signals{grid-template-columns:repeat(4,minmax(0,1fr));}
.swpi-admin-shell.route-dashboard .intel-bucket-grid.readiness{grid-template-columns:1fr;}
.swpi-admin-shell.route-dashboard .intel-bucket{display:flex;flex-direction:column;justify-content:space-between;min-height:96px;padding:13px 14px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);text-decoration:none;color:var(--text);box-shadow:var(--shadow);position:relative;overflow:hidden;}
.swpi-admin-shell.route-dashboard .intel-bucket:before{content:"";position:absolute;inset:0 0 auto;height:2px;background:var(--border-strong);}
.swpi-admin-shell.route-dashboard .intel-bucket.success:before{background:var(--success,#22c55e);}
.swpi-admin-shell.route-dashboard .intel-bucket.warm:before{background:var(--warning,#f59e0b);}
.swpi-admin-shell.route-dashboard .intel-bucket.hot:before{background:var(--danger,#ef4444);}
.swpi-admin-shell.route-dashboard .intel-bucket.danger:before{background:var(--danger,#ef4444);}
.swpi-admin-shell.route-dashboard .intel-bucket.info:before{background:var(--accent);}
.swpi-admin-shell.route-dashboard .intel-bucket:hover{border-color:var(--border-strong);background:var(--surface-hover);}
.swpi-admin-shell.route-dashboard .intel-bucket span{display:block;font-size:10px;line-height:1.25;text-transform:uppercase;letter-spacing:.07em;font-weight:750;color:var(--text-subtle);}
.swpi-admin-shell.route-dashboard .intel-bucket strong{display:block;margin:8px 0 6px;font-size:24px;line-height:1;font-weight:800;letter-spacing:-.03em;color:var(--text);}
.swpi-admin-shell.route-dashboard .intel-bucket small{display:block;font-size:11px;line-height:1.35;color:var(--text-muted);}
.swpi-admin-shell.route-dashboard .offer-mix-list{display:flex;flex-direction:column;gap:8px;}
.swpi-admin-shell.route-dashboard .offer-mix-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(92px,auto);gap:12px;align-items:center;padding:12px 13px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);text-decoration:none;color:var(--text);position:relative;overflow:hidden;}
.swpi-admin-shell.route-dashboard .offer-mix-row:hover{background:var(--surface-hover);border-color:var(--border-strong);}
.swpi-admin-shell.route-dashboard .offer-mix-main strong{display:block;font-size:13px;line-height:1.25;color:var(--text);}
.swpi-admin-shell.route-dashboard .offer-mix-main span,.swpi-admin-shell.route-dashboard .offer-mix-count span{display:block;margin-top:4px;font-size:11px;line-height:1.25;color:var(--text-muted);}
.swpi-admin-shell.route-dashboard .offer-mix-count{text-align:right;}
.swpi-admin-shell.route-dashboard .offer-mix-count strong{display:block;font-size:22px;line-height:1;color:var(--text);letter-spacing:-.03em;}
.swpi-admin-shell.route-dashboard .offer-mix-bar{grid-column:1/-1;height:5px;border-radius:999px;background:var(--surface);border:1px solid var(--border);overflow:hidden;}
.swpi-admin-shell.route-dashboard .offer-mix-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--accent),var(--accent-2,#60a5fa));}
.swpi-admin-shell.route-dashboard .empty-state{border:1px dashed var(--border-strong);border-radius:8px;padding:18px;background:var(--surface-2);color:var(--text-muted);font-size:12px;}
@media(max-width:1400px){.swpi-admin-shell.route-dashboard .dashboard-pulse-grid,.swpi-admin-shell.route-dashboard .intel-bucket-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}.swpi-admin-shell.route-dashboard .intel-bucket-grid.signals{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:980px){.swpi-admin-shell.route-dashboard .dashboard-intel-grid{grid-template-columns:1fr;}.swpi-admin-shell.route-dashboard .dashboard-pulse-grid,.swpi-admin-shell.route-dashboard .intel-bucket-grid,.swpi-admin-shell.route-dashboard .intel-bucket-grid.signals{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:640px){.swpi-admin-shell.route-dashboard .dashboard-pulse-grid,.swpi-admin-shell.route-dashboard .intel-bucket-grid,.swpi-admin-shell.route-dashboard .intel-bucket-grid.signals{grid-template-columns:1fr!important;}.swpi-admin-shell.route-dashboard .offer-mix-row{grid-template-columns:1fr;}.swpi-admin-shell.route-dashboard .offer-mix-count{text-align:left;}}

/* v0.3.10.6.41 — diagnostics copy/layout polish */
.swpi-admin-shell .diagnostics-section .diag-health-card strong,
.swpi-admin-shell .diag-health-card strong{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1.08!important;
  overflow-wrap:anywhere!important;
  font-size:22px!important;
}
.swpi-admin-shell .diag-health-card small{
  display:block!important;
  overflow-wrap:anywhere!important;
  max-width:100%!important;
}
.swpi-admin-shell .diag-health-card-wrap strong{font-size:21px!important;}
.swpi-admin-shell .lane-health-table td strong + small{display:block;margin-top:3px;font-size:10px;color:var(--muted);font-weight:500;}
.swpi-admin-shell .lane-health-table .badge{white-space:normal!important;line-height:1.15!important;text-align:left;}

/* v0.3.10.6.78 — version display polish */
.swpi-admin-shell .sidebar-footer.version-polish small{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  min-width:0!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-variant-numeric:tabular-nums!important;
}
.swpi-admin-shell .sidebar-footer.version-polish small span{opacity:.72;font-size:10px;}
.swpi-admin-shell .sidebar-footer.version-polish small strong{font-size:11px;letter-spacing:0;font-weight:700;}

/* v0.3.10.6.78 — Prospect offer tab query plan */
.detail-tabs.fast-tab-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  text-decoration:none;
  border:0;
  border-radius:999px;
  padding:.55rem .85rem;
  font-weight:700;
  color:inherit;
  background:var(--surface-muted,rgba(148,163,184,.12));
}
.detail-tabs.fast-tab-links a.active{
  background:var(--accent-soft,rgba(59,130,246,.18));
  color:var(--accent-strong,#1d4ed8);
}
.prospect-offer-fast-mode .lazy-tab-placeholder{min-height:220px;}
/* v0.3.10.6.109 — approved admin shell and readiness surfaces */
.shell-v109{--v109-bg:#f6f5f1;--v109-surface:#fff;--v109-surface-2:#f9f8f5;--v109-border:#dedbd2;--v109-text:#29261b;--v109-muted:#6d685b;--v109-faint:#a19b8c;--v109-accent:#315c52;--v109-accent-soft:#e6efec;--v109-good:#287a54;--v109-good-soft:#e7f4ed;--v109-warn:#a16a16;--v109-warn-soft:#fff3d9;--v109-bad:#a73d38;--v109-bad-soft:#fbe9e7;background:var(--v109-bg);color:var(--v109-text)}
[data-theme="dark"] .shell-v109{--v109-bg:#171813;--v109-surface:#20211b;--v109-surface-2:#282921;--v109-border:#3a3b31;--v109-text:#efede5;--v109-muted:#aaa697;--v109-faint:#777467;--v109-accent:#77ad9f;--v109-accent-soft:#243b35;--v109-good:#71c396;--v109-good-soft:#20372b;--v109-warn:#d7a557;--v109-warn-soft:#3c301d;--v109-bad:#df7c76;--v109-bad-soft:#422725}
.shell-v109 .sidebar{width:236px;padding:0;overflow-y:auto;background:var(--v109-surface);border-right:1px solid var(--v109-border);box-shadow:none}
.shell-v109 .brand{height:64px;padding:12px 16px;border-bottom:1px solid var(--v109-border)}
.shell-v109 .brand-mark{width:32px;height:32px;border-radius:8px;background:var(--v109-text);color:var(--v109-surface);font-size:12px;letter-spacing:.04em}
.shell-v109 .brand-copy strong{font-size:13px;font-weight:650}.shell-v109 .brand-copy span{font-size:11px;color:var(--v109-muted)}
.shell-v109 .nav{padding:10px 8px}.shell-v109 .nav-group{margin:0 0 12px}.shell-v109 .nav-group>span{display:block;padding:0 9px 5px;color:var(--v109-faint);font-size:10px;font-weight:650;letter-spacing:.07em;text-transform:uppercase}
.shell-v109 .nav-link{min-height:31px;padding:6px 9px;border-radius:6px;color:var(--v109-muted);font-size:12px;font-weight:480;gap:9px;border:0}
.shell-v109 .nav-link:hover{background:var(--v109-surface-2);color:var(--v109-text)}.shell-v109 .nav-link.active{background:var(--v109-accent-soft);color:var(--v109-accent);font-weight:650}
.shell-v109 .sidebar-footer{border-top:1px solid var(--v109-border);background:var(--v109-surface)}
.shell-v109 .main{margin-left:236px;padding:0 0 60px;background:var(--v109-bg)}
.shell-v109 .topbar{height:64px;margin:0 0 22px;padding:0 24px;align-items:center;background:color-mix(in srgb,var(--v109-surface) 94%,transparent);border-bottom:1px solid var(--v109-border);backdrop-filter:blur(10px);position:sticky;top:0;z-index:35}
.shell-v109 .topbar-title{min-width:190px}.shell-v109 .topbar-title .eyebrow{font-size:10px;color:var(--v109-faint);letter-spacing:.05em}.shell-v109 .topbar-title h1{font-size:16px;font-weight:650;color:var(--v109-text)}
.v109-global-search{flex:1;max-width:520px;margin:0 auto}.v109-global-search label{height:34px;display:flex;align-items:center;gap:7px;background:var(--v109-surface-2);border:1px solid var(--v109-border);border-radius:7px;padding:0 10px;color:var(--v109-faint)}.v109-global-search input{width:100%;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--v109-text);font-size:12px;padding:0!important}
.v109-attention{min-width:28px;height:28px;border-radius:999px;display:grid;place-items:center;text-decoration:none;background:var(--v109-warn-soft);color:var(--v109-warn);font:650 11px/1 system-ui}
.shell-v109 .theme-toggle{height:30px;border-color:var(--v109-border);background:var(--v109-surface)}.shell-v109 .user-chip{display:flex;flex-direction:column;align-items:flex-end;gap:0;background:transparent;border:0;padding:0}.shell-v109 .user-chip strong{font-size:11px}.shell-v109 .user-chip span{font-size:10px;color:var(--v109-muted)}
.shell-v109 .main>.notice{margin:16px 24px 0}.shell-v109 .main>div:not(.notice),.shell-v109 .main>section,.shell-v109 .main>form,.shell-v109 .main>.two-col,.shell-v109 .main>.stat-grid,.shell-v109 .main>.hero,.shell-v109 .main>.v109-page-head,.shell-v109 .main>.v109-kpi-grid,.shell-v109 .main>.v109-card-grid,.shell-v109 .main>details{max-width:1440px;margin-left:24px;margin-right:24px}
.shell-v109 .hero{border-radius:8px;background:var(--v109-surface);border:1px solid var(--v109-border);box-shadow:none}.shell-v109 .panel{border:1px solid var(--v109-border);background:var(--v109-surface);border-radius:8px;box-shadow:none}.shell-v109 .panel h2{font-size:14px;font-weight:650}.shell-v109 .panel-head{border-color:var(--v109-border)}
.shell-v109 .btn{border-radius:6px;box-shadow:none;font-weight:600}.shell-v109 .btn:not(.secondary):not(.ghost):not(.danger):not([disabled]){background:var(--v109-accent);border-color:var(--v109-accent);color:#fff}.shell-v109 .btn.secondary,.shell-v109 .btn.ghost{background:var(--v109-surface);border-color:var(--v109-border);color:var(--v109-text)}
.shell-v109 input,.shell-v109 select,.shell-v109 textarea{border-color:var(--v109-border);background:var(--v109-surface);color:var(--v109-text);border-radius:6px}.shell-v109 table{color:var(--v109-text)}.shell-v109 .data-table th{background:var(--v109-surface-2);color:var(--v109-muted);border-color:var(--v109-border);font-size:10px;letter-spacing:.025em}.shell-v109 .data-table td{border-color:var(--v109-border);font-size:12px}.shell-v109 .data-table tr:hover td{background:var(--v109-surface-2)}
.v109-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-top:24px;margin-bottom:16px}.v109-page-head>div:first-child>p{margin:0 0 4px;color:var(--v109-accent);font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.v109-page-head h2{font-size:22px;line-height:1.2;margin:0 0 5px;font-weight:650;color:var(--v109-text)}.v109-page-head>div:first-child>span{display:block;max-width:760px;font-size:12px;line-height:1.55;color:var(--v109-muted)}.v109-head-actions{display:flex;align-items:center;gap:8px}
.v109-state{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:650;white-space:nowrap}.v109-state i{width:6px;height:6px;border-radius:50%;background:currentColor}.v109-state.passed{background:var(--v109-good-soft);color:var(--v109-good)}.v109-state.blocked{background:var(--v109-warn-soft);color:var(--v109-warn)}
.v109-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:0;margin-bottom:16px}.v109-kpi{min-height:106px;background:var(--v109-surface);border:1px solid var(--v109-border);border-radius:8px;padding:14px;display:flex;flex-direction:column}.v109-kpi>span{font-size:10px;font-weight:650;color:var(--v109-muted);text-transform:uppercase;letter-spacing:.04em}.v109-kpi strong{font-size:21px;line-height:1.2;margin:8px 0 4px;font-variant-numeric:tabular-nums;color:var(--v109-text)}.v109-kpi small{margin-top:auto;color:var(--v109-muted);font-size:10px}.v109-kpi.attention{border-left:3px solid var(--v109-warn)}
.v109-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px;margin-bottom:18px}.v109-integration-card{display:flex;gap:12px;min-height:158px;padding:16px;border:1px solid var(--v109-border);border-radius:8px;background:var(--v109-surface);color:var(--v109-text);text-decoration:none;transition:transform .12s,border-color .12s}.v109-integration-card:hover{transform:translateY(-1px);border-color:var(--v109-accent)}.v109-card-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:8px;background:var(--v109-accent-soft);color:var(--v109-accent);font-size:11px;font-weight:750}.v109-integration-card h3{font-size:14px;margin:1px 0 5px}.v109-integration-card p{font-size:11px;color:var(--v109-muted);line-height:1.5;min-height:34px;margin:0 0 10px}.v109-integration-card small{display:block;margin-top:9px;color:var(--v109-faint);font-size:10px}
.v109-lifecycle ol{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;list-style:none;padding:0;margin:14px 0 9px;counter-reset:step}.v109-lifecycle li{counter-increment:step;min-height:58px;border:1px solid var(--v109-border);border-radius:6px;padding:9px 7px;font-size:10px;color:var(--v109-muted)}.v109-lifecycle li:before{content:counter(step);display:grid;place-items:center;width:17px;height:17px;margin-bottom:6px;border-radius:50%;background:var(--v109-surface-2);font-size:9px;font-weight:700}.v109-lifecycle p{font-size:11px;color:var(--v109-muted)}
.v109-gates .data-table td:first-child{width:150px;color:var(--v109-muted)}.v109-kv{display:grid;grid-template-columns:150px 1fr;gap:10px 12px;margin:0;font-size:12px}.v109-kv dt{color:var(--v109-muted)}.v109-kv dd{margin:0;color:var(--v109-text)}
.v109-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v109-action-grid a{display:flex;flex-direction:column;gap:4px;border:1px solid var(--v109-border);border-radius:7px;padding:13px;text-decoration:none;color:var(--v109-text);background:var(--v109-surface-2)}.v109-action-grid a:hover{border-color:var(--v109-accent)}.v109-action-grid strong{font-size:12px}.v109-action-grid span{font-size:10px;color:var(--v109-muted)}
.v109-inline-user{display:flex;align-items:center;gap:5px;min-width:390px}.v109-inline-user select{max-width:128px;height:29px;font-size:10px}.v109-inline-user .btn{height:29px}
.v109-password-control{margin-top:5px}.v109-password-control summary{font-size:10px;color:var(--v109-accent);cursor:pointer}.v109-password-control form{display:flex;gap:5px;margin-top:5px}.v109-password-control input{height:29px;max-width:170px;font-size:10px}
.v109-saved-menu{position:fixed;z-index:100;width:300px;max-height:420px;overflow:auto;padding:10px;border:1px solid var(--v109-border);border-radius:8px;background:var(--v109-surface);box-shadow:0 16px 40px rgba(0,0,0,.14);color:var(--v109-text)}.v109-saved-menu[hidden]{display:none}.v109-saved-menu>strong,.v109-saved-menu>small{display:block;padding:3px 5px}.v109-saved-menu>small{color:var(--v109-muted);font-size:10px;margin-bottom:6px}.v109-saved-menu>div{display:grid;grid-template-columns:1fr auto;gap:4px;padding:3px 0}.v109-saved-menu button{min-height:29px;border:0;border-radius:5px;padding:5px 8px;text-align:left;background:var(--v109-surface-2);color:var(--v109-text);font-size:11px;cursor:pointer}.v109-saved-menu button:hover{background:var(--v109-accent-soft)}.v109-saved-menu button.danger{color:var(--v109-bad)}.v109-saved-menu>button.primary{width:100%;margin-top:7px;background:var(--v109-accent);color:#fff;text-align:center}.v109-saved-menu button[disabled]{opacity:.5;cursor:not-allowed}
.swpi-state{min-height:100vh;display:grid;place-items:center;background:#f6f5f1;color:#29261b;font-family:Inter,ui-sans-serif,system-ui,sans-serif}.state-card{width:min(440px,calc(100% - 32px));padding:32px;border:1px solid #dedbd2;border-radius:10px;background:#fff;text-align:center}.state-code{font:650 44px/1 ui-monospace,monospace;color:#aaa}.state-card h1{font-size:20px}.state-card p{font-size:13px;line-height:1.6;color:#6d685b}.state-card .btn{display:inline-flex;margin-top:10px}
[data-density="compact"] .shell-v109 .data-table td,[data-density="compact"] .shell-v109 .data-table th{padding-top:6px;padding-bottom:6px}[data-density="comfortable"] .shell-v109 .data-table td,[data-density="comfortable"] .shell-v109 .data-table th{padding-top:12px;padding-bottom:12px}
@media(max-width:1100px){.v109-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v109-lifecycle ol{grid-template-columns:repeat(4,minmax(0,1fr))}.v109-global-search{display:none}.v109-card-grid{grid-template-columns:1fr}}
@media(max-width:760px){.shell-v109 .main{margin-left:0}.shell-v109 .topbar{padding:0 12px}.shell-v109 .main>div:not(.notice),.shell-v109 .main>section,.shell-v109 .main>form,.shell-v109 .main>.two-col,.shell-v109 .main>.stat-grid,.shell-v109 .main>.hero,.shell-v109 .main>.v109-page-head,.shell-v109 .main>.v109-kpi-grid,.shell-v109 .main>.v109-card-grid,.shell-v109 .main>details{margin-left:12px;margin-right:12px}.v109-page-head{flex-direction:column}.v109-kpi-grid,.v109-action-grid{grid-template-columns:1fr}.v109-lifecycle ol{grid-template-columns:repeat(2,minmax(0,1fr))}.shell-v109 .user-chip{display:none}.v109-inline-user{min-width:0;flex-wrap:wrap}}
