

/* ================================
THIC BRAND DESIGN SYSTEM
=============================== */

:root{
--thic-navy:#0E1A2B;
--thic-teal:#5F8F9B;
--thic-aqua:#2FA4B3;
--thic-gray:#9AA3A6;
--thic-bg:#F7FAFC;
}

/* global background */
body{
background:var(--thic-bg);
color:#1f2937;
font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* sidebar */
.sidebar{
background:var(--thic-navy);
}

.sidebar .nav-btn{
border-color:rgba(255,255,255,0.06);
}

.sidebar .nav-btn:hover{
background:rgba(47,164,179,0.15);
color:white;
}

.sidebar .nav-btn.active{
background:var(--thic-aqua);
color:white;
}

/* buttons */
.primary-btn{
background:var(--thic-aqua);
border:none;
}

.primary-btn:hover{
background:var(--thic-teal);
}

.secondary-btn{
border:1px solid var(--thic-teal);
color:var(--thic-teal);
}

.secondary-btn:hover{
background:rgba(47,164,179,0.12);
}

/* cards */
.panel,
.stat-card,
.finance-kpi,
.portal-card{
border:1px solid rgba(0,0,0,0.05);
box-shadow:0 10px 25px rgba(0,0,0,0.04);
border-radius:6px;
}

/* KPI gradient */
.finance-kpi{
background:linear-gradient(135deg,var(--thic-teal),var(--thic-aqua));
color:white;
}

/* hover accent */
.panel:hover,
.portal-card:hover{
box-shadow:0 20px 40px rgba(0,0,0,0.08);
}

/* tables */
.table-wrap table thead{
background:rgba(47,164,179,0.08);
}

.table-wrap table tbody tr:hover{
background:rgba(47,164,179,0.05);
}

/* inputs focus */
input:focus,
textarea:focus,
select:focus{
outline:none;
border-color:var(--thic-aqua);
box-shadow:0 0 0 2px rgba(47,164,179,0.15);
}

/* greeting hero */
.dashboard-hero{
background:linear-gradient(135deg,var(--thic-navy),var(--thic-teal));
color:white;
border-radius:6px;
}

/* subtle logo area */
.sidebar::before{
content:"THE HYDROGEN\A INNOVATION COMPANY";
white-space:pre;
display:block;
font-weight:600;
font-size:11px;
letter-spacing:.08em;
color:rgba(255,255,255,.55);
padding:22px 18px 10px 18px;
line-height:1.4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #111;
}

button {
  cursor: pointer;
}

.landing-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0f172a, #111827);
  padding: 20px;
}

.landing-card {
  width: 100%;
  max-width: 520px;
  background: white;
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  text-align: center;
}

.landing-card h1 {
  margin: 0 0 8px;
  font-size: 42px;
}

.subtitle {
  margin: 0 0 28px;
  color: #666;
  font-size: 18px;
}

.module-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.module-btn {
  padding: 12px 16px;
  border-radius:4px;
  border: 1px solid #ccc;
  background: white;
  font-size: 15px;
}

.module-btn.selected {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.pin-block {
  margin-top: 32px;
}

.pin-block h3 {
  margin-bottom: 12px;
}

.pin-display {
  width: 180px;
  height: 48px;
  font-size: 26px;
  text-align: center;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius:4px;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 70px);
  gap: 10px;
  justify-content: center;
}

.keypad button {
  height: 60px;
  font-size: 20px;
  border-radius:4px;
  border: 1px solid #ccc;
  background: #f8fafc;
}

.landing-message {
  margin-top: 16px;
  font-weight: bold;
}

.landing-message.error {
  color: #dc2626;
}

.landing-message.success {
  color: #15803d;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: #111827;
  color: white;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
}

.brand h1 {
  margin: 0;
  font-size: 28px;
}

.brand p {
  margin: 6px 0 24px;
  color: #cbd5e1;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid #374151;
  color: white;
  border-radius: 8px;
  font-size: 15px;
}

.nav-btn:hover,
.nav-btn.active {
  background: #2563eb;
  border-color: #2563eb;
}

.sidebar-footer {
  margin-top: auto;
}

.logout-btn {
  width: 100%;
  padding: 12px 14px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: white;
  border-bottom: 1px solid #ddd;
  padding: 20px 28px;
}

.topbar h2 {
  margin: 0;
  font-size: 30px;
}

.topbar p {
  margin: 6px 0 0;
  color: #666;
}

.content-area {
  padding: 28px;
}

.page-header {
  margin-bottom: 24px;
}

.page-header h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.page-header p {
  margin: 0;
  color: #666;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
}

.stat-card {
  background: white;
  border: 1px solid #ddd;
  border-radius:5px;
  padding: 20px;
}

.stat-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #555;
}

.stat-card p {
  margin: 0;
  font-size: 30px;
  font-weight: bold;
}

.panel {
  background: white;
  border: 1px solid #ddd;
  border-radius:5px;
  padding: 20px;
  margin-bottom: 20px;
}

.panel h3 {
  margin-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.full-width {
  grid-column: 1 / -1;
}

.action-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.primary-btn {
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  background: #2563eb;
  color: white;
  border: none;
}

.primary-btn:hover {
  background: #1d4ed8;
}

.message {
  margin: 14px 0;
  font-weight: bold;
}

.message.error {
  color: #dc2626;
}

.message.success {
  color: #15803d;
}

.table-wrap {
  overflow-x: auto;
  scrollbar-color: rgba(92, 201, 179, 0.7) rgba(9, 28, 26, 0.9);
  scrollbar-width: thin;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.table-wrap::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.table-wrap::-webkit-scrollbar-track {
  background: rgba(9, 28, 26, 0.9);
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(44, 167, 154, 0.95), rgba(92, 201, 179, 0.85));
  border-radius: 999px;
  border: 2px solid rgba(9, 28, 26, 0.9);
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f9fafb;
  font-size: 14px;
}

.empty-note {
  color: #666;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.10);
  color: #f2fffb;
  border: 1px solid rgba(122,255,214,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.badge.new {
  background: linear-gradient(135deg, rgba(22,110,102,0.92), rgba(56,191,171,0.88));
  color: #f5fffc;
}

.badge.contacted {
  background: linear-gradient(135deg, rgba(116,89,21,0.94), rgba(186,142,36,0.88));
  color: #fff7df;
}

.badge.negotiation {
  background: linear-gradient(135deg, rgba(72,69,148,0.94), rgba(124,104,242,0.90));
  color: #f6f1ff;
}

.badge.won {
  background: linear-gradient(135deg, rgba(20,117,62,0.94), rgba(58,201,123,0.88));
  color: #effff5;
}

.badge.lost {
  background: linear-gradient(135deg, rgba(126,34,34,0.94), rgba(220,72,72,0.88));
  color: #fff1f1;
}

@media (max-width: 980px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .keypad {
    grid-template-columns: repeat(3, 60px);
  }
}

.secondary-btn {
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  color: #111;
  border: 1px solid #bbb;
}

.secondary-btn:hover {
  background: #f3f4f6;
}
.review-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.review-modal {
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius:6px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.review-header h3 {
  margin: 0;
}

.review-meta {
  margin-bottom: 18px;
  color: #555;
}

.review-meta p {
  margin: 4px 0;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  min-width: 1200px;
}

.content-area {
  overflow-x: hidden;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
}

.panel {
  overflow: hidden;
}

@media (max-width: 1200px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 16px 18px;
  }

  .content-area {
    padding: 16px;
  }

  .panel {
    padding: 16px;
  }

  .page-header h2 {
    font-size: 28px;
  }
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  min-width: 1200px;
}

.content-area {
  overflow-x: hidden;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
}

.panel {
  overflow: hidden;
}

@media (max-width: 1200px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 16px 18px;
  }

  .content-area {
    padding: 16px;
  }

  .panel {
    padding: 16px;
  }

  .page-header h2 {
    font-size: 28px;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .review-modal {
    max-width: 100%;
    padding: 16px;
  }
}
.online-stats-grid {
  margin-bottom: 20px;
}

.simple-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.simple-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(111, 197, 188, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(32, 63, 59, 0.92), rgba(17, 42, 39, 0.96));
}
.online-stats-grid {
  margin-bottom: 20px;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.simple-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.simple-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(111, 197, 188, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(32, 63, 59, 0.92), rgba(17, 42, 39, 0.96));
}

.simple-list-row strong {
  color: #f3f8f7;
  font-weight: 700;
}

.simple-list-row span {
  color: #8adbd1;
  font-weight: 700;
}

@media (max-width: 900px) {
  .two-col-grid {
    grid-template-columns: 1fr;
  }
}
.upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
}

.upload-row input[type="file"] {
  max-width: 100%;
}

.upload-panel p {
  color: #555;
}

.influencer-stats-grid {
  margin-bottom: 20px;
}


.finance-kpis{
 display:grid;
 grid-template-columns:repeat(4,1fr);
 gap:16px;
 margin:0 0 20px 0;
}
.finance-kpi{
 background:#fff;
 border:1px solid #ddd;
 padding:14px;
 border-radius:4px;
 text-align:left;
}
.finance-kpi h4{
 margin:0 0 8px 0;
 font-size:14px;
}
.finance-kpi div{
 font-size:28px;
 font-weight:700;
}
.finance-upload-msg{
 color:#2563eb;
 font-size:12px;
 margin-left:8px;
}


.finance-kpis{
 display:grid;
 grid-template-columns:repeat(6,1fr);
 gap:16px;
 margin:0 0 20px 0;
}
.finance-kpi{
 background:#fff;
 border:1px solid #ddd;
 padding:14px;
 border-radius:4px;
 text-align:left;
}
.finance-kpi h4{ margin:0 0 8px 0; font-size:14px; }
.finance-kpi div{ font-size:28px; font-weight:700; }
.finance-upload-msg{ color:#2563eb; font-size:12px; margin-left:8px; }
.finance-two-col{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.finance-summary-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.quick-chip-row{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.quick-chip{ border:1px solid #d1d5db; border-radius:999px; padding:8px 12px; background:#fff; cursor:pointer; }
.panel-subtle{ margin-top:12px; background:#f8fafc; border:1px solid #e5e7eb; border-radius:4px; padding:12px; }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.form-group label{ display:block; font-size:12px; margin-bottom:4px; }
.finance-section{ padding:0; overflow:hidden; }
.finance-section-toggle{
 width:100%;
 display:flex;
 justify-content:space-between;
 align-items:center;
 background:#f8fafc;
 border:0;
 padding:14px 16px;
 font-size:20px;
 font-weight:700;
 cursor:pointer;
}
.finance-section-body{ display:none; padding:16px; }
.finance-section-body.open{ display:block; }
.finance-modal{ max-width:1100px; }
@media (max-width: 1100px){
 .finance-kpis{ grid-template-columns:repeat(2,1fr); }
 .finance-two-col,.finance-summary-grid,.form-grid{ grid-template-columns:1fr; }
}


/* Finance V4.2 clean */
.finance-two-col{
  grid-template-columns:1fr !important;
}

.finance-kpis{
  grid-template-columns:repeat(4,1fr) !important;
}

#financeSuppliersBody td,
#financePaymentsBody td,
#financeForecastBody td,
#financeCustomerInvoicesBody td,
#financeSupplierInvoicesBody td{
  vertical-align:top;
}

.supplier-group-toggle,
.supplier-invoice-toggle{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:8px 10px;
  cursor:pointer;
  text-align:left;
}

.supplier-group-toggle{
  margin-bottom:10px;
}

.supplier-group-name{
  font-weight:700;
}

.supplier-group-lines{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.supplier-invoice-card{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.mini-collapse-body{
  display:none;
}

.mini-collapse-body.open{
  display:block;
}

.supplier-empty-note{
  font-size:12px;
  color:#6b7280;
  padding:8px 2px;
}

.supplier-invoice-line{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr 1fr !important;
  gap:10px;
  align-items:start;
  font-size:12px;
  padding:6px 8px;
  background:#f8fafc;
  border-radius:8px;
}

.supplier-invoice-head{
  background:#eef2ff;
  font-weight:700;
}

.supplier-invoice-line span{
  word-break:break-word;
}

@media (max-width: 1100px){
  .finance-kpis{
    grid-template-columns:repeat(2,1fr) !important;
  }
  .supplier-invoice-line{
    grid-template-columns:1fr !important;
  }
}


/* Roadmap V2 */
.roadmap-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.roadmap-filters{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.quick-chip.active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}
.roadmap-table th,
.roadmap-table td{
  vertical-align:top;
}
.roadmap-feature{
  font-weight:700;
  margin-bottom:4px;
}
.roadmap-feature-sub{
  color:#6b7280;
  font-size:12px;
  max-width:320px;
}
.roadmap-pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid #e5e7eb;
}
.priority-critical{ background:#fee2e2; color:#991b1b; }
.priority-high{ background:#ffedd5; color:#9a3412; }
.priority-medium{ background:#fef3c7; color:#92400e; }
.priority-low{ background:#ecfccb; color:#3f6212; }

.status-idea{ background:#f3f4f6; color:#374151; }
.status-planned{ background:#dbeafe; color:#1d4ed8; }
.status-in-progress{ background:#ede9fe; color:#6d28d9; }
.status-testing{ background:#dcfce7; color:#166534; }
.status-released{ background:#cffafe; color:#155e75; }

.roadmap-progress-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:150px;
}
.roadmap-progress-bar{
  width:110px;
  height:10px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
}
.roadmap-progress-fill{
  height:100%;
  background:#2563eb;
  border-radius:999px;
}
.roadmap-modal{
  max-width:900px;
}
textarea{
  width:100%;
  border:1px solid #d1d5db;
  border-radius:8px;
  padding:10px 12px;
  font:inherit;
}
.form-group.full-width{
  grid-column:1 / -1;
}
@media (max-width: 900px){
  .roadmap-toolbar{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* Admin + Portals V1 */
.admin-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-bottom:16px;
}
.portal-shell{
  min-height:100vh;
  background:
    radial-gradient(circle at 12% 14%, rgba(72,211,176,0.18), transparent 20%),
    radial-gradient(circle at 88% 84%, rgba(72,211,176,0.12), transparent 24%),
    linear-gradient(180deg, #071b19 0%, #0d2b28 100%);
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:24px;
}
.portal-topbar{
  display:flex;
  justify-content:flex-start;
  align-items:flex-start;
  gap:16px;
  margin-bottom:0;
}
.intake-hero-card{
  width:min(1320px, 100%);
  margin:0 auto;
  padding:22px 26px;
  border-radius:30px;
  background:linear-gradient(135deg, rgba(15,58,53,0.92) 0%, rgba(47,164,179,0.92) 58%, rgba(95,143,155,0.88) 100%);
  border:1px solid rgba(178,255,232,0.22);
  box-shadow:0 24px 46px rgba(7,30,26,0.18);
  justify-content:space-between;
  align-items:stretch;
}
.intake-hero-copy{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.intake-hero-kicker{
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:800;
  color:rgba(224,255,245,0.74);
}
.portal-topbar h1{
  margin:0 0 8px;
  color:#f6fffc;
  font-size:42px;
  line-height:1.04;
}
.portal-topbar p{
  margin:0;
  max-width:760px;
  color:rgba(233,249,244,0.88);
  font-size:16px;
  line-height:1.55;
}
.intake-hero-meta{
  display:grid;
  grid-template-columns:repeat(2, minmax(180px, 1fr));
  gap:14px;
  min-width:360px;
}
.intake-hero-signal{
  padding:16px 18px;
  border-radius:22px;
  background:rgba(8,28,24,0.16);
  border:1px solid rgba(255,255,255,0.16);
  backdrop-filter:blur(12px);
  display:flex;
  flex-direction:column;
  gap:6px;
}
.intake-hero-signal span{
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:800;
  color:rgba(224,255,245,0.68);
}
.intake-hero-signal strong{
  color:#f8fffd;
  font-size:18px;
  line-height:1.2;
}
.portal-kpis{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-bottom:20px;
}
.portal-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:6px;
  padding:16px;
}
.portal-card h3{
  margin:0 0 8px;
  font-size:14px;
}
.portal-card p{
  margin:0;
  font-size:26px;
  font-weight:700;
}
.portal-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-bottom:16px;
}
.portal-list{
  display:grid;
  gap:8px;
}
.portal-materials{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.portal-material-chip{
  background:#eef2ff;
  color:#3730a3;
  border-radius:999px;
  padding:8px 12px;
  font-weight:600;
}
.helper-text{
  color:#6b7280;
}
@media (max-width: 1100px){
  .admin-grid, .portal-grid, .portal-kpis{
    grid-template-columns:1fr;
  }
}

/* Contacts + Documents + Global Search */
.topbar-search{
  position:relative;
  min-width:340px;
  max-width:440px;
}
.topbar-search input{
  width:100%;
}
.global-search-results{
  position:absolute;
  top:44px;
  left:0;
  right:0;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:5px;
  box-shadow:0 12px 30px rgba(15,23,42,0.12);
  z-index:50;
  padding:8px;
  display:grid;
  gap:6px;
}
.global-search-item{
  width:100%;
  text-align:left;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:4px;
  padding:10px 12px;
  cursor:pointer;
  display:grid;
  gap:4px;
}
.global-search-item strong{
  font-size:14px;
}
.global-search-item span,
.global-search-empty{
  font-size:12px;
  color:#6b7280;
}
.contacts-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.contact-modal{
  max-width:920px;
}
.contact-pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:#eef2ff;
  color:#3730a3;
  font-size:12px;
  font-weight:700;
}
.contacts-overview-tiles{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin:0 0 16px;
}
.contact-overview-tile{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-start;
  text-align:left;
  padding:16px 18px;
  border-radius:16px;
  border:1px solid rgba(19,108,104,0.14);
  background:linear-gradient(135deg, rgba(9,43,42,0.98) 0%, rgba(14,65,62,0.96) 52%, rgba(20,109,104,0.92) 100%);
  color:#effcf8;
  box-shadow:0 16px 32px rgba(5,20,20,0.12);
  cursor:pointer;
}
.contact-overview-tile strong{
  font-size:28px;
  line-height:1;
  color:#fff;
}
.contact-overview-kicker{
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
  opacity:.78;
  font-weight:800;
}
.contact-overview-tile span:last-child{
  color:rgba(230,251,246,0.78);
  font-size:13px;
  line-height:1.35;
}
.contact-overview-tile.active{
  border-color:rgba(120,255,229,0.28);
  box-shadow:0 18px 36px rgba(5,20,20,0.18), 0 0 0 2px rgba(120,255,229,0.16);
}
@media (max-width: 1100px){
  .topbar-search{
    min-width:100%;
    max-width:none;
  }
  .contacts-overview-tiles{
    grid-template-columns:1fr;
  }
}

/* Communication center + dashboard */
.dashboard-hero{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:16px;
  padding:18px 20px;
  border:1px solid #e5e7eb;
  border-radius:6px;
  background:#f8fafc;
}
.dashboard-hero h3{ margin:0 0 6px; }
.dashboard-hero p{ margin:0; color:#6b7280; }
.dashboard-hero-actions{ display:flex; flex-wrap:wrap; gap:8px; }
.dashboard-badge{
  background:#eef2ff;
  color:#3730a3;
  border-radius:999px;
  padding:8px 12px;
  font-weight:700;
  font-size:12px;
}

.dashboard-spotlight-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  margin-bottom:16px;
}
.dashboard-spotlight-card{
  position:relative;
  overflow:hidden;
  min-height:184px;
  border-radius:16px;
  padding:20px;
  color:#fff;
  box-shadow:0 18px 42px rgba(15,23,42,0.14);
}
.dashboard-spotlight-card::after{
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  border-radius:50%;
  right:-60px;
  top:-60px;
  background:rgba(255,255,255,0.12);
}
.spotlight-leads{ background:linear-gradient(135deg, #0f766e 0%, #14b8a6 52%, #5eead4 100%); }
.spotlight-influencers{ background:linear-gradient(135deg, #6d28d9 0%, #8b5cf6 52%, #c4b5fd 100%); }
.spotlight-revenue{ background:linear-gradient(135deg, #b45309 0%, #f59e0b 55%, #fde68a 100%); }
.spotlight-kicker{
  position:relative;
  z-index:1;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.12em;
  text-transform:uppercase;
  opacity:0.9;
}
.spotlight-title{
  position:relative;
  z-index:1;
  margin-top:10px;
  font-size:22px;
  font-weight:800;
  line-height:1.15;
}
.spotlight-value-row{
  position:relative;
  z-index:1;
  margin-top:16px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
}
.spotlight-value{
  font-size:36px;
  font-weight:900;
  line-height:1;
}
.spotlight-caption{
  max-width:145px;
  font-size:13px;
  line-height:1.35;
  opacity:0.95;
  text-align:right;
}
.spotlight-meter{
  position:relative;
  z-index:1;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,0.24);
  overflow:hidden;
  margin-top:18px;
}
.spotlight-meter-fill{
  height:100%;
  width:0;
  border-radius:999px;
  background:rgba(255,255,255,0.96);
  box-shadow:0 0 20px rgba(255,255,255,0.35);
  transition:width .35s ease;
}
.spotlight-bars{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-end;
  gap:8px;
  height:96px;
  margin-top:12px;
}
.spotlight-bars span{
  flex:1;
  min-width:0;
  border-radius:10px 10px 4px 4px;
  background:rgba(255,255,255,0.88);
  height:18px;
  box-shadow:0 10px 20px rgba(15,23,42,0.10);
  transition:height .3s ease;
}
.spotlight-orbs{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-end;
  gap:12px;
  margin-top:18px;
}
.spotlight-orbs span{
  display:block;
  border-radius:999px;
  background:rgba(255,255,255,0.88);
  box-shadow:0 10px 22px rgba(15,23,42,0.12);
}
.spotlight-orbs span:nth-child(1){ width:22px; height:22px; opacity:0.76; }
.spotlight-orbs span:nth-child(2){ width:38px; height:38px; opacity:0.9; }
.spotlight-orbs span:nth-child(3){ width:58px; height:58px; }
.spotlight-mini-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:18px;
}
.spotlight-mini-grid div{
  background:rgba(255,255,255,0.16);
  border:1px solid rgba(255,255,255,0.22);
  border-radius:14px;
  padding:12px 10px;
  text-align:center;
}
.spotlight-mini-grid strong{
  display:block;
  font-size:24px;
  line-height:1;
}
.spotlight-mini-grid span{
  display:block;
  margin-top:6px;
  font-size:12px;
  opacity:0.94;
}
.dashboard-stat-accent{
  overflow:hidden;
}
.dashboard-stat-accent::after{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  border-radius:12px 0 0 12px;
}
.dashboard-stat-accent.teal::after{ background:linear-gradient(180deg,#14b8a6,#0f766e); }
.dashboard-stat-accent.amber::after{ background:linear-gradient(180deg,#f59e0b,#b45309); }
.dashboard-stat-accent.violet::after{ background:linear-gradient(180deg,#8b5cf6,#6d28d9); }
.dashboard-stat-accent.emerald::after{ background:linear-gradient(180deg,#34d399,#059669); }
.dashboard-stat-accent.sky::after{ background:linear-gradient(180deg,#38bdf8,#0369a1); }
.dashboard-stat-accent.rose::after{ background:linear-gradient(180deg,#fb7185,#be123c); }
.dashboard-stat-accent.lime::after{ background:linear-gradient(180deg,#a3e635,#4d7c0f); }
.dashboard-stat-accent.indigo::after{ background:linear-gradient(180deg,#818cf8,#4338ca); }
.dashboard-stats-grid{ grid-template-columns:repeat(4,1fr); }
.dashboard-two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:16px;
}
.dashboard-info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:14px;
}
.dashboard-list{ display:grid; gap:8px; }
.dashboard-list-item{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:4px;
  padding:10px 12px;
}
@media (max-width: 1100px){
  .dashboard-spotlight-grid,
  .dashboard-stats-grid,
  .dashboard-two-col,
  .dashboard-info-grid{ grid-template-columns:1fr; }
  .dashboard-hero{ flex-direction:column; align-items:flex-start; }
}


/* Smooth reveal on scroll */
.reveal-ready{
  opacity:0;
  transform:translateY(18px);
  transition:opacity 0.55s ease, transform 0.55s ease;
  will-change:opacity, transform;
}

.reveal-in{
  opacity:1;
  transform:translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .reveal-ready,
  .reveal-in{
    transition:none;
    opacity:1;
    transform:none;
  }
}


/* Next-level motion and hover */
.reveal-ready{
  opacity:0;
  transform:translateY(28px) scale(0.985);
  transition:opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  will-change:opacity, transform;
}

.reveal-in{
  opacity:1;
  transform:translateY(0) scale(1);
}

.panel,
.stat-card,
.finance-kpi,
.portal-card,
.dashboard-hero,
.nav-btn,
.primary-btn,
.secondary-btn,
.quick-chip,
.supplier-group-toggle,
.supplier-invoice-toggle,
.global-search-item,
.contact-pill{
  transition:transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease, color 0.24s ease;
}

.panel:hover,
.stat-card:hover,
.finance-kpi:hover,
.portal-card:hover,
.dashboard-hero:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 36px rgba(15,23,42,0.10);
}

.nav-btn:hover{
  transform:translateX(4px);
}

.primary-btn:hover,
.secondary-btn:hover,
.quick-chip:hover,
.supplier-group-toggle:hover,
.supplier-invoice-toggle:hover,
.global-search-item:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(15,23,42,0.10);
}

.table-wrap table tbody tr{
  transition:background-color 0.22s ease;
}
.table-wrap table tbody tr:hover{
  background:rgba(37,99,235,0.03);
}

.finance-section-toggle:hover{
  background:#eef2ff;
}

@media (prefers-reduced-motion: reduce){
  .panel,
  .stat-card,
  .finance-kpi,
  .portal-card,
  .dashboard-hero,
  .nav-btn,
  .primary-btn,
  .secondary-btn,
  .quick-chip,
  .supplier-group-toggle,
  .supplier-invoice-toggle,
  .global-search-item,
  .contact-pill,
  .table-wrap table tbody tr{
    transition:none !important;
    transform:none !important;
  }
}


/* ===== Sidebar redesign ===== */

.sidebar{
position:fixed;
left:0;
top:0;
bottom:0;
width:230px;
background:white;
border-right:1px solid rgba(0,0,0,0.06);
padding-top:10px;
z-index:20;
}

.app-shell{
display:flex;
}

.brand{
display:flex;
align-items:center;
gap:10px;
padding:16px 18px;
border-bottom:1px solid rgba(0,0,0,0.05);
}

.thic-logo{
width:42px;
height:auto;
}

.brand-text h1{
font-size:16px;
margin:0;
color:#0E1A2B;
}

.brand-text p{
margin:0;
font-size:12px;
color:#6b7280;
}

/* content shift for fixed sidebar */

.main,
.content,
.main-content{
margin-left:230px;
}

/* navigation style */

.nav-btn{
background:white;
border:1px solid rgba(0,0,0,0.05);
border-radius:4px;
margin:6px 14px;
padding:10px 12px;
text-align:left;
}

.nav-btn.active{
background:#2FA4B3;
color:white;
border-color:#2FA4B3;
}

.nav-btn:hover{
background:#eef6f7;
}


/* ===== THIC brand UI v3 refinement ===== */

.sidebar{
  width:250px;
  padding-top:6px;
  overflow-y:auto;
}

.brand.brand-logo-only{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:22px 18px 18px 18px;
  border-bottom:1px solid rgba(0,0,0,0.05);
  background:white;
}

.thic-logo.thic-logo-large{
  width:155px;
  max-width:100%;
  height:auto;
}

.brand-text{
  display:none;
}

.sidebar::before{
  display:none !important;
  content:none !important;
}

.nav{
  padding:12px 10px 10px 10px;
}

.nav-btn{
  display:block;
  width:100%;
  margin:0 0 10px 0;
  padding:13px 14px;
  border-radius:5px;
  font-weight:600;
  color:#334155;
  background:white;
  border:1px solid rgba(95,143,155,0.16);
  box-shadow:none;
}

.nav-btn:hover{
  background:#f4fbfc;
  border-color:rgba(47,164,179,0.45);
  color:#0E1A2B;
}

.nav-btn.active{
  background:#2FA4B3;
  border-color:#2FA4B3;
  color:white;
  box-shadow:0 10px 22px rgba(47,164,179,0.18);
}

.sidebar-footer{
  margin-top:auto;
  padding:8px 10px 16px 10px;
}

.logout-btn{
  width:100%;
  background:#0E1A2B !important;
  color:white !important;
  border:1px solid #0E1A2B !important;
  border-radius:5px;
  padding:13px 14px;
  font-weight:700;
}

.logout-btn:hover{
  background:#16314f !important;
  border-color:#16314f !important;
}

.main,
.content,
.main-content{
  margin-left:250px;
}

.topbar{
  padding-left:22px;
  padding-right:22px;
}

.page-header,
.panel,
.dashboard-hero,
.stats-grid,
.dashboard-two-col{
  max-width:none;
}

@media (max-width: 1100px){
  .sidebar{
    width:220px;
  }

  .thic-logo.thic-logo-large{
    width:135px;
  }

  .main,
  .content,
  .main-content{
    margin-left:220px;
  }
}


/* ===== UI v6 fixed sidebar ===== */
.sidebar{
  width:250px !important;
  min-width:250px;
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  overflow-y:auto;
  background:white;
  border-right:1px solid rgba(0,0,0,0.06);
  transition:width 0.28s ease, transform 0.28s ease;
  z-index:30;
}

.app-shell.sidebar-collapsed .sidebar{
  width:78px !important;
  min-width:78px;
}

.main,
.content,
.main-content{
  margin-left:250px !important;
  transition:margin-left 0.28s ease;
}

.app-shell.sidebar-collapsed .main,
.app-shell.sidebar-collapsed .content,
.app-shell.sidebar-collapsed .main-content{
  margin-left:78px !important;
}

.sidebar-top{
  position:sticky;
  top:0;
  background:white;
  z-index:2;
  height:20px;
}

.sidebar-collapse-btn{
  position:absolute;
  top:12px;
  right:10px;
  width:30px;
  height:30px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.08);
  background:white;
  color:#0E1A2B;
  font-size:16px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(15,23,42,0.08);
}

.app-shell.sidebar-collapsed .sidebar-collapse-btn{
  transform:rotate(180deg);
}

.brand.brand-logo-only{
  padding:26px 18px 18px 18px !important;
  display:flex;
  justify-content:center;
  align-items:center;
  border-bottom:1px solid rgba(0,0,0,0.05);
  overflow:hidden;
}

.thic-logo.thic-logo-large{
  width:150px !important;
  max-width:none;
  transition:width 0.28s ease, opacity 0.2s ease;
}

.app-shell.sidebar-collapsed .thic-logo.thic-logo-large{
  width:36px !important;
}

.nav{
  padding:14px 10px 10px 10px !important;
}

.nav-btn,
.logout-btn{
  position:relative;
  display:flex !important;
  align-items:center;
  gap:12px;
  width:100%;
  padding:13px 14px !important;
  margin:0 0 10px 0 !important;
  border-radius:5px;
  overflow:visible;
  white-space:nowrap;
}

.nav-icon{
  width:16px;
  height:16px;
  border-radius:4px;
  background:#9AA3A6;
  flex:0 0 16px;
  transition:background-color 0.22s ease;
}

.nav-btn:hover .nav-icon,
.logout-btn:hover .nav-icon,
.nav-btn.active .nav-icon{
  background:#2FA4B3;
}

.nav-label{
  display:inline-block;
  opacity:1;
  transition:opacity 0.18s ease;
  color:inherit;
}

.app-shell.sidebar-collapsed .nav-btn,
.app-shell.sidebar-collapsed .logout-btn{
  justify-content:center;
  padding-left:0 !important;
  padding-right:0 !important;
}

.app-shell.sidebar-collapsed .nav-label{
  opacity:0;
  width:0;
  overflow:hidden;
}

.app-shell.sidebar-collapsed .nav-btn:hover::after,
.app-shell.sidebar-collapsed .logout-btn:hover::after{
  content:attr(data-label);
  position:absolute;
  left:68px;
  top:50%;
  transform:translateY(-50%);
  background:#0E1A2B;
  color:white;
  padding:7px 10px;
  border-radius:8px;
  box-shadow:0 10px 20px rgba(15,23,42,0.12);
  font-size:12px;
  font-weight:600;
  z-index:50;
}

.logout-btn{
  background:#0E1A2B !important;
  color:white !important;
  border-color:#0E1A2B !important;
}

.logout-btn .nav-icon{
  background:rgba(255,255,255,0.75);
}

.logout-btn:hover{
  background:#16314f !important;
  border-color:#16314f !important;
}

@media (max-width: 900px){
  .sidebar{
    transform:translateX(-100%);
    width:280px !important;
    min-width:280px;
  }

  .app-shell.sidebar-collapsed .sidebar{
    transform:translateX(-100%);
    width:280px !important;
    min-width:280px;
  }

  .app-shell.chrome-reveal .sidebar,
  .app-shell.mobile-menu-open .sidebar{
    transform:translateX(0);
  }

  .main,
  .content,
  .main-content,
  .app-shell.sidebar-collapsed .main,
  .app-shell.sidebar-collapsed .content,
  .app-shell.sidebar-collapsed .main-content{
    margin-left:0 !important;
  }

  .nav-label{
    opacity:1 !important;
    width:auto !important;
  }

  .thic-logo.thic-logo-large,
  .app-shell.sidebar-collapsed .thic-logo.thic-logo-large{
    width:150px !important;
  }
}


/* ===== Headerless command center ===== */
.topbar{
  display:none !important;
}

.main-content{
  padding-top:18px;
}

.command-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:22px;
  padding:26px 28px;
  border-radius:20px;
  background:linear-gradient(135deg,#0E1A2B 0%, #5F8F9B 100%);
  color:white;
  box-shadow:0 18px 40px rgba(14,26,43,0.12);
}

.command-overline{
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  opacity:.78;
  margin-bottom:10px;
}

.command-hero h1{
  margin:0 0 8px 0;
  font-size:40px;
  line-height:1.08;
}

.command-hero p{
  margin:0;
  max-width:720px;
  color:rgba(255,255,255,.86);
}

.command-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.command-actions .secondary-btn{
  background:rgba(255,255,255,.12);
  color:white;
  border-color:rgba(255,255,255,.22);
}

.command-actions .secondary-btn:hover{
  background:rgba(255,255,255,.18);
}

.command-kpis .stat-card{
  min-height:116px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.command-kpis .stat-card h3{
  color:#64748b;
  font-size:14px;
  margin-bottom:8px;
}

.command-kpis .stat-card p{
  font-size:42px;
  line-height:1;
  margin:0;
}

@media (max-width: 1000px){
  .command-hero{
    flex-direction:column;
    align-items:flex-start;
  }
  .command-hero h1{
    font-size:32px;
  }
}


/* ===== Lead flow + command bar ===== */
.command-open-btn{
  margin-left:auto;
  border:1px solid rgba(14,26,43,0.08);
  background:#f8fafc;
  color:#64748b;
  font-weight:700;
  border-radius:4px;
  padding:7px 10px;
  font-size:12px;
}
.command-open-btn:hover{
  background:#eef2ff;
  color:#0E1A2B;
}

.command-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.18);
  backdrop-filter:blur(6px);
  z-index:90;
  align-items:flex-start;
  justify-content:center;
  padding-top:90px;
}
.command-modal{
  width:min(760px, calc(100vw - 32px));
  background:white;
  border-radius:18px;
  box-shadow:0 22px 60px rgba(15,23,42,0.18);
  border:1px solid rgba(0,0,0,0.05);
  overflow:hidden;
}
.command-input-wrap{
  display:flex;
  gap:10px;
  padding:14px;
  border-bottom:1px solid rgba(0,0,0,0.06);
}
.command-input-wrap input{
  flex:1;
  font-size:16px;
  padding:14px 16px;
}
.command-results{
  max-height:420px;
  overflow:auto;
  padding:8px;
  display:grid;
  gap:8px;
}
.command-result{
  width:100%;
  text-align:left;
  background:#f8fafc;
  border:1px solid rgba(0,0,0,0.05);
  border-radius:5px;
  padding:12px 14px;
}
.command-result:hover{
  background:#eef6f7;
  border-color:rgba(47,164,179,0.28);
}
.command-result-title{
  font-weight:700;
  color:#0f172a;
}
.command-result-meta,.command-empty{
  font-size:12px;
  color:#64748b;
}

.lead-mode-panel{
  background:linear-gradient(180deg, rgba(47,164,179,0.05) 0%, rgba(255,255,255,1) 100%);
}
.lead-mode-header{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:18px;
}
.lead-mode-switch{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.quick-chip.active{
  background:#0E1A2B;
  color:white;
  border-color:#0E1A2B;
}
.lead-flow-steps{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.lead-flow-step{
  border:1px solid rgba(95,143,155,0.18);
  background:white;
  color:#475569;
  border-radius:999px;
  padding:10px 14px;
  font-weight:700;
}
.lead-flow-step.active{
  background:#2FA4B3;
  border-color:#2FA4B3;
  color:white;
}
.lead-flow-pane{
  margin-bottom:14px;
}
.lead-mode-panel .form-group input,
.lead-mode-panel .form-group textarea{
  background:white;
}
@media (max-width: 900px){
  .lead-mode-header,
  .command-input-wrap{
    flex-direction:column;
  }
}


/* ===== Multi-creation flows ===== */
.flow-panel{
  background:linear-gradient(180deg, rgba(47,164,179,0.06) 0%, rgba(255,255,255,1) 100%);
}
.thic-user-intake-shell .flow-panel,
.thic-user-intake-shell .onboarding-portal-panel{
  background:
    radial-gradient(circle at 14% 16%, rgba(72,211,176,0.16), transparent 26%),
    linear-gradient(145deg, rgba(8,28,24,0.96), rgba(13,43,40,0.95)) !important;
  border:1px solid rgba(145,255,219,0.18) !important;
  box-shadow:0 24px 48px rgba(0,0,0,0.18) !important;
  width:min(1320px, 100%);
  margin:0 auto;
  padding:28px 28px 26px;
  border-radius:30px !important;
}
.thic-user-intake-shell .flow-panel h3{
  color:#f6fffc;
  font-size:32px;
  line-height:1.08;
  margin-bottom:10px;
}
.thic-user-intake-shell .flow-panel > p{
  color:rgba(223,245,238,0.82);
  font-size:16px;
  line-height:1.6;
  max-width:760px;
  margin-bottom:20px;
}
.thic-user-intake-shell .onboarding-portal-intro{
  margin-bottom:20px;
  gap:16px;
}
.thic-user-intake-shell .intake-status-shell{
  display:grid;
  grid-template-columns:minmax(240px, 320px) 1fr;
  align-items:stretch;
}
.thic-user-intake-shell .onboarding-readiness-cell{
  background:linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border:1px solid rgba(145,255,219,0.12);
  border-radius:24px;
  padding:18px 20px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
}
.thic-user-intake-shell .onboarding-readiness-cell strong{
  color:#f6fffc;
  font-size:28px;
  letter-spacing:-0.02em;
}
.thic-user-intake-shell .onboarding-readiness-cell span,
.thic-user-intake-shell .onboarding-check{
  color:rgba(223,245,238,0.78);
}
.thic-user-intake-shell .intake-status-kicker{
  color:rgba(145,255,219,0.7) !important;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.18em;
  text-transform:uppercase;
}
.thic-user-intake-shell .intake-status-strip{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  background:linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border:1px solid rgba(145,255,219,0.1);
  border-radius:24px;
  padding:14px 16px;
}
.thic-user-intake-shell .onboarding-check{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(145,255,219,0.12);
  border-radius:999px;
  padding:10px 14px;
  font-size:13px;
  font-weight:600;
}
.thic-user-intake-shell .onboarding-check.done{
  background:rgba(72,211,176,0.16);
  border-color:rgba(145,255,219,0.26);
  color:#effff9;
}
.thic-user-intake-shell .form-group label{
  color:rgba(223,245,238,0.84);
}
.thic-user-intake-shell .form-grid .form-group{
  background:rgba(255,255,255,0.03) !important;
  border-color:rgba(145,255,219,0.1) !important;
  padding:0 !important;
}
.thic-user-intake-shell input,
.thic-user-intake-shell textarea{
  background:rgba(4,26,23,0.84) !important;
  color:#effff9 !important;
  border:1px solid rgba(145,255,219,0.16) !important;
  min-height:52px;
}
.thic-user-intake-shell input::placeholder,
.thic-user-intake-shell textarea::placeholder{
  color:rgba(223,245,238,0.38);
}
.thic-user-intake-shell textarea{
  min-height:118px;
}
.thic-user-intake-shell .action-row{
  margin-top:18px;
}
.thic-user-intake-shell #userIntakeMessage{
  display:none !important;
}
@media (max-width: 1100px){
  .intake-hero-card{
    grid-template-columns:1fr;
    flex-direction:column;
  }
  .intake-hero-meta{
    min-width:0;
    width:100%;
  }
  .thic-user-intake-shell .intake-status-shell{
    grid-template-columns:1fr;
  }
}
@media (max-width: 720px){
  .portal-shell{
    padding:16px;
    gap:18px;
  }
  .intake-hero-card,
  .thic-user-intake-shell .flow-panel,
  .thic-user-intake-shell .onboarding-portal-panel{
    padding:20px 18px;
    border-radius:22px !important;
  }
  .portal-topbar h1{
    font-size:34px;
  }
  .intake-hero-meta{
    grid-template-columns:1fr;
  }
  .thic-user-intake-shell .flow-panel h3{
    font-size:28px;
  }
  .thic-user-intake-shell .intake-status-strip{
    padding:12px 14px;
  }
}
.influencer-flow-step.active{
  background:#5F8F9B;
  border-color:#5F8F9B;
  color:white;
}
.flow-panel h3{
  margin-bottom:8px;
}


/* ===== Onboarding center ===== */
.onboarding-portal-panel{
  max-width:1100px;
}
.onboarding-status-pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:#eef2ff;
}
.onboarding-status-pill.invited{
  background:rgba(129,140,248,0.18);
  color:#dbe4ff;
}
.onboarding-status-pill.submitted{
  background:rgba(45,212,191,0.18);
  color:#d7fff8;
}
.onboarding-status-pill.accepted{
  background:rgba(74,222,128,0.18);
  color:#deffe7;
}
.onboarding-status-pill.draft{
  background:rgba(148,163,184,0.18);
  color:#f1f5f9;
}
.onboarding-queue-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-end;
  margin-bottom:18px;
}
.onboarding-queue-tools{
  min-width:220px;
}
.onboarding-queue-tools .form-group{
  margin:0;
}
.onboarding-queue-cards{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  margin-bottom:18px;
}
.onboarding-queue-card{
  border:1px solid rgba(255,255,255,0.12);
  border-radius:18px;
  padding:18px;
  background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow:0 16px 40px rgba(8,28,24,0.14);
}
.onboarding-queue-card-top{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}
.onboarding-queue-card h4{
  margin:0 0 8px;
}
.onboarding-queue-card p{
  margin:0 0 10px;
}
.onboarding-queue-card-meta{
  font-size:13px;
  opacity:.82;
}
.onboarding-queue-nextstep{
  margin-top:10px;
  font-size:13px;
  line-height:1.5;
}
.onboarding-readiness-bar{
  width:100%;
  height:8px;
  margin:12px 0 6px;
  border-radius:999px;
  background:rgba(255,255,255,0.1);
  overflow:hidden;
}
.onboarding-readiness-bar span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(45,212,191,0.86), rgba(134,239,172,0.96));
}
.onboarding-readiness-cell{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.onboarding-readiness-cell span{
  font-size:12px;
  opacity:.78;
}
.onboarding-portal-intro{
  display:grid;
  gap:14px;
  margin:18px 0 22px;
  padding:16px 18px;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.onboarding-checklist{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.onboarding-check{
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.05);
  font-size:12px;
}
.onboarding-check.done{
  background:rgba(45,212,191,0.16);
  border-color:rgba(45,212,191,0.34);
}
.onboarding-role-field{
  animation:fadeIn .18s ease;
}


/* ===== Smart personal header banner ===== */
.smart-global-header{
  margin: 8px 0 22px 0;
  padding: 24px 26px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(47,164,179,0.24), transparent 28%),
    radial-gradient(circle at bottom left, rgba(95,143,155,0.26), transparent 24%),
    linear-gradient(135deg, #0F3A35 0%, #2FA4B3 55%, #5F8F9B 100%);
  color: white;
  box-shadow: 0 18px 50px rgba(15,58,53,0.18);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.smart-global-header::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06), transparent 22%, transparent 78%, rgba(255,255,255,0.05));
  pointer-events: none;
}

.smart-header-overline{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  opacity: .78;
  margin-bottom: 10px;
}

.smart-global-header h2{
  margin: 0 0 8px 0;
  font-size: 36px;
  line-height: 1.05;
  color: white;
}

.smart-global-header p{
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  max-width: 720px;
}

.smart-header-signals{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.smart-header-pill{
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.16);
  color: white;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.smart-header-fallback{
  padding: 12px 14px;
  border-radius:6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  line-height: 1.45;
  max-width: 520px;
  margin-left: auto;
}

.page-header{
  margin-top: 6px;
}

@media (max-width: 1100px){
  .smart-global-header{
    grid-template-columns: 1fr;
  }
  .smart-header-signals{
    justify-content: flex-start;
  }
  .smart-global-header h2{
    font-size: 30px;
  }
}


/* ===== WOW landing page ===== */
.wow-landing{
  min-height:100vh;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(47,164,179,0.16), transparent 18%),
    radial-gradient(circle at 85% 12%, rgba(95,143,155,0.18), transparent 20%),
    linear-gradient(135deg, #eef7f8 0%, #f7fafc 42%, #edf7f8 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:36px 20px;
}

.landing-bg-orb{
  position:absolute;
  border-radius:999px;
  filter:blur(6px);
  opacity:.9;
  pointer-events:none;
}
.orb-a{
  width:360px;
  height:360px;
  left:-90px;
  top:-70px;
  background:radial-gradient(circle, rgba(47,164,179,0.25), rgba(47,164,179,0.02));
}
.orb-b{
  width:440px;
  height:440px;
  right:-120px;
  bottom:-120px;
  background:radial-gradient(circle, rgba(95,143,155,0.22), rgba(95,143,155,0.02));
}
.landing-bg-grid{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(14,26,43,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,26,43,0.03) 1px, transparent 1px);
  background-size:36px 36px;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.35), transparent 70%);
  pointer-events:none;
}

.wow-landing-card{
  position:relative;
  width:min(1120px, 100%);
  border-radius:30px;
  padding:34px;
  border:1px solid rgba(255,255,255,0.7);
  background:rgba(255,255,255,0.72);
  backdrop-filter:blur(18px);
  box-shadow:
    0 30px 80px rgba(14,26,43,0.12),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.landing-brand-block{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:24px;
  margin-bottom:24px;
}

.landing-logo{
  width:220px;
  max-width:100%;
  height:auto;
  filter:drop-shadow(0 10px 20px rgba(47,164,179,0.12));
}

.landing-overline{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:800;
  color:#5F8F9B;
  margin-bottom:10px;
}
.wow-landing .landing-brand-copy h1{
  margin:0 0 8px 0;
  font-size:54px;
  line-height:1;
  color:#0E1A2B;
}
.wow-landing .subtitle{
  margin:0;
  font-size:18px;
  color:#4b5563;
  max-width:760px;
}

.landing-hero-band{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
  align-items:center;
  margin-bottom:24px;
  padding:22px 24px;
  border-radius:22px;
  background:linear-gradient(135deg, #0F3A35 0%, #2FA4B3 56%, #5F8F9B 100%);
  color:white;
  box-shadow:0 18px 50px rgba(15,58,53,0.18);
}
.landing-hero-band h2{
  margin:0 0 8px 0;
  font-size:30px;
  color:white;
}
.landing-hero-band p{
  margin:0;
  color:rgba(255,255,255,0.9);
}
.landing-hero-pills{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}
.landing-pill{
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.14);
  border:1px solid rgba(255,255,255,0.16);
  font-weight:700;
  font-size:13px;
}

.wow-module-buttons{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-bottom:24px;
}
.wow-module-buttons .module-btn{
  min-height:56px;
  border-radius:6px;
  border:1px solid rgba(95,143,155,0.18);
  background:white;
  color:#334155;
  font-weight:700;
  box-shadow:0 10px 24px rgba(15,23,42,0.05);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.wow-module-buttons .module-btn:hover{
  transform:translateY(-2px);
  border-color:rgba(47,164,179,0.38);
  box-shadow:0 16px 34px rgba(15,23,42,0.08);
}
.wow-module-buttons .module-btn.selected{
  background:#2FA4B3;
  color:white;
  border-color:#2FA4B3;
  box-shadow:0 18px 34px rgba(47,164,179,0.2);
}

.wow-pin-block{
  padding:26px;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(47,164,179,0.06) 0%, rgba(255,255,255,0.95) 100%);
  border:1px solid rgba(95,143,155,0.16);
}
.pin-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:16px;
}
.pin-header h3{
  margin:0 0 6px 0;
  font-size:26px;
  color:#0E1A2B;
}
.pin-header p{
  margin:0;
  color:#64748b;
}
.pin-badge{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  background:#0E1A2B;
  color:white;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.wow-pin-display{
  height:72px;
  border-radius:18px;
  border:1px solid rgba(95,143,155,0.18);
  background:white;
  font-size:34px;
  letter-spacing:.45em;
  text-align:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.6);
  margin-bottom:14px;
}

.wow-keypad{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:6px;
}
.wow-keypad button{
  min-height:62px;
  border-radius:6px;
  border:1px solid rgba(95,143,155,0.18);
  background:white;
  color:#0E1A2B;
  font-size:20px;
  font-weight:800;
  box-shadow:0 10px 24px rgba(15,23,42,0.05);
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.wow-keypad button:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 30px rgba(15,23,42,0.08);
  border-color:rgba(47,164,179,0.3);
}
.wow-keypad .keypad-ok{
  background:#2FA4B3;
  color:white;
  border-color:#2FA4B3;
}
.wow-keypad .keypad-muted{
  background:#f8fafc;
  color:#64748b;
}

.wow-landing .landing-message{
  margin-top:14px;
  min-height:24px;
}

@media (max-width: 900px){
  .wow-landing-card{
    padding:24px;
  }
  .landing-brand-block,
  .landing-hero-band{
    grid-template-columns:1fr;
  }
  .landing-logo{
    width:180px;
  }
  .wow-landing .landing-brand-copy h1{
    font-size:42px;
  }
  .landing-hero-pills{
    justify-content:flex-start;
  }
  .wow-module-buttons{
    grid-template-columns:1fr 1fr;
  }
}
@media (max-width: 640px){
  .wow-module-buttons{
    grid-template-columns:1fr;
  }
  .pin-header{
    flex-direction:column;
  }
  .wow-pin-display{
    font-size:28px;
    letter-spacing:.3em;
  }
}


/* ===== UI v13 alignment + color cleanup ===== */

/* align smart header with content cards */
.smart-global-header{
  margin: 8px 22px 22px 22px !important;
}

/* dashboard hero aligned same as content */
.dashboard-hero,
.command-hero{
  margin-left: 22px;
  margin-right: 22px;
}

/* page headers and panels aligned as a clean grid */
.page-header{
  margin-left: 22px;
  margin-right: 22px;
}

.panel,
.stats-grid,
.dashboard-two-col,
.two-col-grid,
.table-wrap,
.contacts-toolbar{
  margin-left: 22px;
  margin-right: 22px;
}

/* lower menu start so it visually begins under the top banner area */
.nav{
  padding-top: 26px !important;
}

/* remove duplicate black dashboard text if still rendered */
.page-header h2{
  color:#0E1A2B;
}
.page-header p{
  color:#64748b;
}

/* make buttons use banner palette */
.primary-btn{
  background: linear-gradient(135deg, #0F3A35 0%, #2FA4B3 62%, #5F8F9B 100%) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 10px 24px rgba(15,58,53,0.16);
}

.primary-btn:hover{
  background: linear-gradient(135deg, #11453f 0%, #278f9d 62%, #53828d 100%) !important;
  color: white !important;
}

.secondary-btn{
  border: 1px solid rgba(47,164,179,0.28) !important;
  color: #155e63 !important;
  background: rgba(47,164,179,0.08) !important;
}

.secondary-btn:hover{
  border-color: rgba(47,164,179,0.42) !important;
  background: rgba(47,164,179,0.14) !important;
  color: #0F3A35 !important;
}

.quick-chip{
  border: 1px solid rgba(47,164,179,0.22) !important;
  color: #155e63 !important;
  background: rgba(47,164,179,0.06) !important;
}

.quick-chip:hover{
  background: rgba(47,164,179,0.12) !important;
}

.quick-chip.active,
.lead-flow-step.active,
.influencer-flow-step.active{
  background: linear-gradient(135deg, #0F3A35 0%, #2FA4B3 62%, #5F8F9B 100%) !important;
  border-color: transparent !important;
  color: white !important;
}

.wow-module-buttons .module-btn.selected{
  background: linear-gradient(135deg, #0F3A35 0%, #2FA4B3 62%, #5F8F9B 100%) !important;
  border-color: transparent !important;
  color: white !important;
}

.wow-keypad .keypad-ok{
  background: linear-gradient(135deg, #0F3A35 0%, #2FA4B3 62%, #5F8F9B 100%) !important;
  border-color: transparent !important;
}

/* cleaner content width rhythm */
.content-area{
  padding-top: 0;
}

/* keep sidebar visually quieter */
.sidebar{
  border-right: 1px solid rgba(15,58,53,0.08);
}

/* mobile */
@media (max-width: 900px){
  .smart-global-header,
  .dashboard-hero,
  .command-hero,
  .page-header,
  .panel,
  .stats-grid,
  .dashboard-two-col,
  .two-col-grid,
  .table-wrap,
  .contacts-toolbar{
    margin-left: 14px !important;
    margin-right: 14px !important;
  }

  .nav{
    padding-top: 18px !important;
  }
}


/* ===== Sidebar menu redesign ===== */

.nav-btn{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-radius:6px;
  margin:4px 10px;
  font-weight:600;
  color:#334155;
  background:transparent;
  border:1px solid transparent;
  transition:all .18s ease;
}

.nav-btn:hover{
  background:rgba(47,164,179,0.08);
  border-color:rgba(47,164,179,0.22);
  color:#0F3A35;
  transform:translateX(2px);
}

.nav-btn.active{
  background:linear-gradient(135deg,#0F3A35 0%,#2FA4B3 62%,#5F8F9B 100%);
  color:white;
  border-color:transparent;
  box-shadow:0 8px 18px rgba(15,58,53,0.18);
}

.nav-btn.active .nav-icon{
  background:rgba(255,255,255,0.9);
}

.nav-icon{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#94a3b8;
  transition:all .18s ease;
}

.nav-btn:hover .nav-icon{
  background:#2FA4B3;
}

/* sidebar spacing to align with banner rhythm */
.sidebar{
  padding-top:12px;
}

/* logout button visual alignment */
.logout-btn,
.sidebar .logout{
  margin:16px 12px;
  border-radius:6px;
  background:#0F3A35;
  color:white;
  border:none;
}



/* ===== v15 sidebar micro interactions + cleaner header links ===== */

/* Make menu buttons visibly refined */
.sidebar .nav{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:28px 12px 10px 12px !important;
}

.sidebar .nav-btn{
  display:flex !important;
  align-items:center;
  gap:12px;
  width:100%;
  min-height:50px;
  padding:12px 16px !important;
  margin:0 !important;
  border-radius:6px !important;
  background:rgba(255,255,255,0.72) !important;
  border:1px solid rgba(95,143,155,0.12) !important;
  color:#334155 !important;
  box-shadow:none !important;
  position:relative;
  overflow:hidden;
}

.sidebar .nav-btn::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(47,164,179,0.06), transparent 48%);
  opacity:0;
  transition:opacity .2s ease;
}

.sidebar .nav-btn:hover::before{
  opacity:1;
}

.sidebar .nav-btn:hover{
  background:rgba(255,255,255,0.96) !important;
  border-color:rgba(47,164,179,0.28) !important;
  color:#0F3A35 !important;
  transform:translateX(4px) !important;
  box-shadow:0 10px 22px rgba(15,58,53,0.08) !important;
}

.sidebar .nav-btn.active{
  background:linear-gradient(135deg,#0F3A35 0%,#2FA4B3 62%,#5F8F9B 100%) !important;
  color:white !important;
  border-color:transparent !important;
  box-shadow:0 12px 26px rgba(15,58,53,0.18) !important;
}

.sidebar .nav-btn.active::after{
  content:"";
  position:absolute;
  left:0;
  top:12px;
  bottom:12px;
  width:3px;
  border-radius:999px;
  background:rgba(255,255,255,0.9);
  animation:sidebarPulse 2.2s ease-in-out infinite;
}

.sidebar .nav-icon{
  width:12px !important;
  height:12px !important;
  border-radius:999px !important;
  background:#94a3b8 !important;
  transform:scale(1);
  transition:transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  z-index:1;
}

.sidebar .nav-btn:hover .nav-icon{
  background:#2FA4B3 !important;
  transform:scale(1.15);
  box-shadow:0 0 0 4px rgba(47,164,179,0.10);
}

.sidebar .nav-btn.active .nav-icon{
  background:rgba(255,255,255,0.95) !important;
  box-shadow:0 0 0 5px rgba(255,255,255,0.10);
}

.sidebar .nav-label{
  position:relative;
  z-index:1;
  font-weight:700;
}

.app-shell.sidebar-collapsed .sidebar .nav-btn:hover .nav-label{
  width:auto !important;
  opacity:1 !important;
}

.app-shell.sidebar-collapsed .sidebar .nav-btn:hover::after{
  animation:none;
}

.app-shell.sidebar-collapsed .sidebar .nav-btn[data-label]:hover .nav-label{
  display:none;
}

.app-shell.sidebar-collapsed .sidebar .nav-btn[data-label]:hover .nav-icon{
  transform:scale(1.18);
}

/* Tooltip in collapsed state */
.app-shell.sidebar-collapsed .sidebar .nav-btn[data-label]:hover .nav-label{
  opacity:0 !important;
}

.app-shell.sidebar-collapsed .sidebar .nav-btn[data-label]:hover + *{
  pointer-events:none;
}

/* clickable text service links in smart header */
.smart-header-signals{
  gap:14px !important;
  justify-content:flex-end;
}

.smart-header-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  color:rgba(255,255,255,0.96);
  text-decoration:none;
  font-weight:700;
  line-height:1.3;
  padding:4px 0;
  border-bottom:1px solid rgba(255,255,255,0.14);
  transition:opacity .18s ease, transform .18s ease, border-color .18s ease;
}

.smart-header-link:hover{
  opacity:1;
  transform:translateY(-1px);
  border-color:rgba(255,255,255,0.34);
}

.smart-header-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  height:1px;
  width:100%;
  background:rgba(255,255,255,0.95);
  transform-origin:left center;
  animation:headerPulse 2.8s ease-in-out infinite;
}

.smart-header-fallback{
  background:transparent !important;
  border:none !important;
  padding:0 !important;
}

/* refine header so it feels less crowded */
.smart-global-header{
  padding-top:22px !important;
  padding-bottom:22px !important;
}

@keyframes headerPulse{
  0%,100%{ opacity:.22; transform:scaleX(.72); }
  50%{ opacity:.9; transform:scaleX(1); }
}

@keyframes sidebarPulse{
  0%,100%{ opacity:.35; transform:scaleY(.78); }
  50%{ opacity:1; transform:scaleY(1); }
}

/* logout aligned with sidebar system */
.sidebar-footer{
  padding:14px 12px 16px 12px !important;
}

.sidebar .logout-btn{
  width:100%;
  min-height:50px;
  border-radius:6px !important;
  background:#0F3A35 !important;
  color:white !important;
  border:none !important;
  box-shadow:0 12px 24px rgba(15,58,53,0.14);
}

.sidebar .logout-btn:hover{
  background:#15524b !important;
  transform:translateX(4px) !important;
}

@media (max-width:900px){
  .smart-header-signals{
    justify-content:flex-start;
  }
}


/* ===== v16 tighter professional corner system ===== */
.card,
.panel,
.tile,
input,
select,
textarea,
button{
  border-radius:6px !important;
}

.sidebar .nav-btn{
  border-radius:6px !important;
}

.smart-global-header{
  border-radius:8px !important;
}



/* ===== v17 premium depth system ===== */

/* larger THIC logo in sidebar */
.thic-logo,
.thic-logo.thic-logo-large{
  width: 190px !important;
  max-width: none !important;
  height: auto !important;
}

.app-shell.sidebar-collapsed .thic-logo,
.app-shell.sidebar-collapsed .thic-logo.thic-logo-large{
  width: 42px !important;
}

/* make banner links normal weight, calmer */
.smart-header-link{
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

/* glass depth layers */
.panel,
.stat-card,
.finance-kpi,
.portal-card,
.command-modal,
.landing-card,
.wow-landing-card,
.table-wrap,
.smart-global-header{
  background: rgba(255,255,255,0.82) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* shadow hierarchy */
.smart-global-header{
  box-shadow:
    0 18px 48px rgba(15,58,53,0.16),
    0 2px 0 rgba(255,255,255,0.28) inset !important;
}

.dashboard-hero,
.command-hero{
  box-shadow:
    0 16px 38px rgba(15,23,42,0.10),
    0 1px 0 rgba(255,255,255,0.22) inset !important;
}

.panel,
.table-wrap,
.command-modal,
.portal-card{
  box-shadow:
    0 10px 28px rgba(15,23,42,0.07),
    0 1px 0 rgba(255,255,255,0.22) inset !important;
}

.stat-card,
.finance-kpi{
  box-shadow:
    0 10px 24px rgba(15,23,42,0.08),
    0 1px 0 rgba(255,255,255,0.2) inset !important;
}

/* subtle gradient borders */
.panel,
.stat-card,
.finance-kpi,
.portal-card,
.table-wrap,
.command-modal{
  position: relative;
  border: 1px solid transparent !important;
  background-clip: padding-box !important;
}

.panel::before,
.stat-card::before,
.finance-kpi::before,
.portal-card::before,
.table-wrap::before,
.command-modal::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(47,164,179,0.20), rgba(95,143,155,0.06), rgba(255,255,255,0.55));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* micro hover lighting */
.panel:hover,
.stat-card:hover,
.finance-kpi:hover,
.portal-card:hover,
.table-wrap:hover,
.command-modal:hover{
  box-shadow:
    0 18px 42px rgba(15,23,42,0.10),
    0 1px 0 rgba(255,255,255,0.26) inset,
    0 0 0 1px rgba(47,164,179,0.06) !important;
  transform: translateY(-2px);
}

.panel:hover::after,
.stat-card:hover::after,
.finance-kpi:hover::after,
.portal-card:hover::after,
.table-wrap:hover::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.32), transparent 34%);
  pointer-events: none;
}

/* cleaner nav depth */
.sidebar{
  background: rgba(255,255,255,0.94) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 6px 0 30px rgba(15,23,42,0.05);
}

.sidebar .nav-btn{
  box-shadow: 0 4px 14px rgba(15,23,42,0.03) !important;
}

.sidebar .nav-btn:hover{
  box-shadow: 0 12px 26px rgba(15,58,53,0.08) !important;
}

.sidebar .nav-btn.active{
  box-shadow: 0 12px 28px rgba(15,58,53,0.20) !important;
}

/* polished inputs */
input,
select,
textarea{
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 2px 10px rgba(15,23,42,0.03) inset;
}

/* subtle emphasis for primary buttons */
.primary-btn{
  box-shadow:
    0 12px 24px rgba(15,58,53,0.18),
    0 1px 0 rgba(255,255,255,0.24) inset !important;
}

.primary-btn:hover{
  box-shadow:
    0 16px 30px rgba(15,58,53,0.22),
    0 1px 0 rgba(255,255,255,0.26) inset !important;
}

@media (max-width: 900px){
  .thic-logo,
  .thic-logo.thic-logo-large{
    width: 160px !important;
  }
}


/* ===== v18 restore banner gradient ===== */

.smart-global-header{
  background:
    radial-gradient(circle at top right, rgba(47,164,179,0.24), transparent 28%),
    radial-gradient(circle at bottom left, rgba(95,143,155,0.26), transparent 24%),
    linear-gradient(135deg, #0F3A35 0%, #2FA4B3 55%, #5F8F9B 100%) !important;
  color:white !important;
}

.smart-global-header h2,
.smart-global-header p,
.smart-header-link{
  color:white !important;
}

.smart-global-header{
  box-shadow:
    0 18px 48px rgba(15,58,53,0.20),
    0 2px 0 rgba(255,255,255,0.22) inset !important;
}



/* ===== v19 final cleanup ===== */

/* cleaner pages */
.page-header{
  margin-bottom: 8px !important;
}
.page-header p{
  display:none !important;
}

/* banner cleaner, no right-side text links */
.smart-global-header{
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  align-items: start !important;
}
.smart-header-signals{
  display:none !important;
}
.smart-global-header h2{
  margin-bottom: 6px !important;
}
.smart-global-header p{
  max-width: 980px !important;
  font-size: 14px !important;
  color: rgba(255,255,255,0.9) !important;
}

/* cleaner login page */
.landing-hero-band{
  grid-template-columns: 1fr !important;
  padding: 20px 22px !important;
}
.landing-hero-band h2{
  margin-bottom: 6px !important;
}
.landing-hero-band p{
  max-width: 760px;
}
.landing-hero-pills{
  display:none !important;
}

/* tighter buttons */
.primary-btn,
.secondary-btn,
.quick-chip,
.module-btn,
.wow-keypad button,
.nav-btn,
.logout-btn,
.sidebar .logout-btn{
  border-radius: 4px !important;
}

/* panels and inputs slightly tighter and cleaner */
.panel,
.table-wrap,
.stat-card,
.finance-kpi,
.portal-card,
.command-modal{
  border-radius: 6px !important;
}
input,
select,
textarea{
  border-radius: 4px !important;
}

/* cleaner spacing on content area */
.content-area{
  padding-top: 0 !important;
}

/* remove excess softness */
.wow-module-buttons .module-btn,
.primary-btn,
.secondary-btn{
  box-shadow: 0 6px 16px rgba(15,23,42,0.06) !important;
}

/* sidebar buttons a touch flatter */
.sidebar .nav-btn{
  min-height: 46px !important;
  border-radius: 4px !important;
}
.sidebar .logout-btn{
  border-radius: 4px !important;
}


/* ===== v20 mobile menu + minimal landing ===== */
.mobile-menu-toggle{
  display:none;
  position:fixed;
  top:14px;
  left:14px;
  z-index:60;
  width:42px;
  height:42px;
  border:none;
  border-radius:4px;
  background:linear-gradient(135deg,#0F3A35 0%,#2FA4B3 62%,#5F8F9B 100%);
  color:white;
  font-size:22px;
  box-shadow:0 10px 24px rgba(15,58,53,0.18);
}
.mobile-menu-overlay{ display:none; }

@media (max-width: 900px){
  .mobile-menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .sidebar{
    transform:translateX(-100%);
    transition:transform .24s ease;
    z-index:70;
  }
  .app-shell.mobile-menu-open .sidebar{
    transform:translateX(0);
  }
  .mobile-menu-overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,0.28);
    backdrop-filter:blur(3px);
    z-index:65;
  }
  .app-shell.mobile-menu-open .mobile-menu-overlay{
    display:block;
  }
  .main-content{
    margin-left:0 !important;
    padding-top:58px;
  }
}

/* Minimal landing page */
.landing-minimal .minimal-landing-card{
  width:min(680px, 100%);
  padding:28px 30px 24px 30px;
}
.minimal-brand-block{
  justify-content:center;
  margin-bottom:12px;
}
.landing-logo.landing-logo-large{
  width:240px !important;
  max-width:100%;
  height:auto;
}
.minimal-pin-block{
  max-width:500px;
  margin:0 auto;
  background:rgba(255,255,255,0.58);
}
.minimal-pin-header{
  justify-content:center;
  text-align:center;
}
.minimal-pin-header h3{
  margin:0 0 6px 0;
}
.minimal-pin-header p{
  max-width:420px;
  margin:0 auto;
}
.minimal-keypad button{
  transform:none !important;
}
.minimal-keypad button:hover,
.minimal-keypad button:active{
  transform:none !important;
}
.minimal-module-links{
  display:flex;
  justify-content:center;
  gap:18px;
  margin-top:16px;
  flex-wrap:wrap;
}
.minimal-module-links a{
  color:#4b5563;
  text-decoration:none;
  font-size:13px;
}
.minimal-module-links a:hover{
  color:#0F3A35;
}
.pin-badge{
  display:none !important;
}
.wow-module-buttons,
.landing-overline,
.wow-landing .landing-brand-copy h1,
.wow-landing .subtitle,
.landing-hero-band{
  display:none !important;
}
@media (max-width: 640px){
  .landing-logo.landing-logo-large{
    width:220px !important;
  }
  .landing-minimal .minimal-landing-card{
    padding:26px 20px 22px 20px;
  }
}


/* ===== v22 restored module compatibility ===== */
.finance-kpis{
  margin-left:22px;
  margin-right:22px;
}
.finance-two-col{
  margin-left:22px;
  margin-right:22px;
}
.admin-grid{
  margin-left:22px;
  margin-right:22px;
}
.quick-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
@media (max-width:900px){
  .finance-kpis,
  .finance-two-col,
  .admin-grid{
    margin-left:14px;
    margin-right:14px;
  }
}


/* ===== v27 contacts enhancement ===== */
.contacts-toolbar-advanced{
  display:grid;
  grid-template-columns: minmax(320px, 1.4fr) auto auto;
  gap:14px;
  align-items:center;
}
.contact-search-wrap{
  position:relative;
}
.contact-search-icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:#5F8F9B;
  font-size:16px;
  line-height:1;
  pointer-events:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
}
.contacts-search-input{
  width:100%;
  min-height:52px;
  padding:14px 16px 14px 42px !important;
  font-size:15px;
  border-radius:6px !important;
}
.contacts-tiles-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:18px;
  margin-top:12px;
}
.contact-tile{
  position:relative;
  background:linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,251,251,0.98) 100%);
  border:1px solid rgba(47,164,179,0.14);
  border-radius:10px;
  padding:18px;
  box-shadow:0 14px 30px rgba(15,23,42,0.06);
  min-height:240px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.contact-tile h4{
  margin:0;
  font-size:18px;
  line-height:1.25;
}
.contact-meta{
  color:#64748b;
  font-size:13px;
}
.contact-tile-hero{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.contact-avatar{
  width:44px;
  height:44px;
  border-radius:12px;
  background:linear-gradient(135deg, rgba(47,164,179,0.18), rgba(95,143,155,0.32));
  color:#0f3a35;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 44px;
}
.contact-hero-copy{
  min-width:0;
  flex:1 1 auto;
}
.contact-badge-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
.contact-meta-stack{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-height:74px;
}
.contact-meta-line{
  font-size:13px;
  color:#1f2937;
  overflow-wrap:anywhere;
}
.contact-meta-line.muted{
  color:#64748b;
}
.contact-module-chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.contact-module-chip,
.contact-subpill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}
.contact-module-chip{
  background:#f1f5f9;
  color:#334155;
}
.contact-subpill{
  background:rgba(15,58,53,0.08);
  color:#0f3a35;
}
.contact-tile-footer{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.contact-owner-line{
  font-size:12px;
  color:#64748b;
  overflow-wrap:anywhere;
}
.contact-tile-grid{
  display:none;
}
.contact-tags{
  color:#4b5563;
  font-size:13px;
  min-height:18px;
}
.action-row.compact{
  margin-top:12px;
}
.compact-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
@media (max-width: 1000px){
  .contacts-toolbar-advanced{
    grid-template-columns:1fr;
  }
}


/* ===== v29 banner copy + page alignment ===== */
.smart-global-header{
  margin-left: 22px !important;
  margin-right: 22px !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  align-items: start !important;
}
.smart-header-copy{
  max-width: 980px;
}
.smart-header-copy h2{
  margin: 0 0 8px 0 !important;
}
.smart-header-copy p{
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.45;
  color: rgba(255,255,255,0.92) !important;
}
.smart-header-overline,
.smart-header-signals,
.smart-header-link,
.smart-header-fallback{
  display:none !important;
}

/* unify left/right rhythm under banner */
.panel,
.table-wrap,
.stats-grid,
.dashboard-two-col,
.two-col-grid,
.contacts-toolbar,
.contacts-toolbar-advanced,
.roadmap-toolbar,
.finance-kpis,
.finance-two-col,
.admin-grid,
.quick-chip-row,
.portal-shell .panel,
.portal-topbar,
#contactsViewContainer{
  margin-left: 22px !important;
  margin-right: 22px !important;
}

/* remove duplicate big page titles across pages */
.page-header{
  display:none !important;
}

/* make content blocks start aligned with banner */
.content-area{
  padding-top: 0 !important;
}

/* on mobile keep same rhythm */
@media (max-width: 900px){
  .smart-global-header,
  .panel,
  .table-wrap,
  .stats-grid,
  .dashboard-two-col,
  .two-col-grid,
  .contacts-toolbar,
  .contacts-toolbar-advanced,
  .roadmap-toolbar,
  .finance-kpis,
  .finance-two-col,
  .admin-grid,
  .quick-chip-row,
  .portal-shell .panel,
  .portal-topbar,
  #contactsViewContainer{
    margin-left: 14px !important;
    margin-right: 14px !important;
  }
}


/* ===== v33 pipelines tiles/list ===== */
.pipeline-tiles-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(290px, 1fr));
  gap:14px;
  margin-top:12px;
}
.pipeline-tile{
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(47,164,179,0.16);
  border-radius:6px;
  padding:16px;
  box-shadow:0 8px 22px rgba(15,23,42,0.05);
}
.pipeline-tile-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  margin-bottom:14px;
}
.pipeline-tile h4{
  margin:0 0 4px 0;
  font-size:18px;
}
.pipeline-meta{
  color:#64748b;
  font-size:13px;
}
.pipeline-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 14px;
}
.pipeline-grid div{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.pipeline-grid strong{
  font-size:12px;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.pipeline-tiles-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(290px, 1fr));
  gap:14px;
  margin-top:12px;
}
.pipeline-tile{
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(47,164,179,0.16);
  border-radius:6px;
  padding:16px;
  box-shadow:0 8px 22px rgba(15,23,42,0.05);
}
.pipeline-tile-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  margin-bottom:14px;
}
.pipeline-tile h4{ margin:0 0 4px 0; font-size:18px; }
.pipeline-meta{ color:#64748b; font-size:13px; }
.pipeline-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 14px;
}
.pipeline-grid div{ display:flex; flex-direction:column; gap:4px; }
.pipeline-grid strong{ font-size:12px; color:#64748b; text-transform:uppercase; letter-spacing:.04em; }


/* v9 pipeline and filter polish */
.pipeline-tiles-grid{
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
}
.pipeline-tile{
  min-width:0;
  height:100%;
}
.pipeline-tile h4,
.pipeline-meta,
.pipeline-grid div,
.pipeline-grid strong,
.pipeline-grid span,
.pipeline-grid a{
  min-width:0;
}
.pipeline-tile h4,
.pipeline-meta,
.pipeline-grid div,
.pipeline-grid a,
.pipeline-grid span{
  overflow-wrap:anywhere;
  word-break:break-word;
}
.contacts-toolbar-advanced + .filter-grid,
.panel .filter-grid{
  margin-top:18px;
}
.filter-grid{
  gap:14px;
}
.filter-grid .form-group label{
  margin-bottom:6px;
  font-size:12px;
  font-weight:700;
  color:#5f6f81;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.filter-grid select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding:12px 40px 12px 14px;
  border:1px solid rgba(47,164,179,0.18);
  border-radius:10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,251,252,0.98)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%232f6f78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px;
  color:#102331;
  box-shadow:0 6px 18px rgba(15,23,42,0.04);
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.filter-grid select:hover{
  border-color:rgba(47,164,179,0.3);
  box-shadow:0 10px 24px rgba(47,164,179,0.08);
}
.filter-grid select:focus{
  border-color:#2fa4b3;
  box-shadow:0 0 0 4px rgba(47,164,179,0.12);
}
@media (max-width: 1400px){
  .pipeline-tiles-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px){
  .pipeline-tiles-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px){
  .pipeline-tiles-grid{
    grid-template-columns:1fr;
  }
}


/* v10 predictive lead suggestions */
.lead-predictive-box{
  margin-top:16px;
  border:1px solid rgba(47,164,179,0.16);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(245,251,252,0.96), rgba(255,255,255,0.98));
  padding:16px;
}
.lead-predictive-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:12px;
}
.lead-predictive-head h4{
  margin:0 0 4px;
  font-size:15px;
}
.lead-predictive-head p{
  margin:0;
  color:#587082;
  font-size:13px;
}
.lead-predictive-count{
  white-space:nowrap;
  font-size:12px;
  font-weight:700;
  color:#2f6f78;
  background:rgba(47,164,179,0.10);
  border-radius:999px;
  padding:7px 10px;
}
.lead-predictive-list{
  display:grid;
  gap:10px;
}
.lead-predictive-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  width:100%;
  padding:14px;
  border:1px solid rgba(16,35,49,0.08);
  border-radius:12px;
  background:#fff;
  text-align:left;
}
.lead-predictive-clickable{
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lead-predictive-clickable:hover{
  transform:translateY(-1px);
  border-color:rgba(47,164,179,0.26);
  box-shadow:0 12px 28px rgba(15,23,42,0.08);
}
.lead-predictive-chevron{
  flex:0 0 auto;
  font-size:12px;
  font-weight:700;
  color:#2f6f78;
  background:rgba(47,164,179,0.10);
  border-radius:999px;
  padding:8px 10px;
}
.lead-public-card{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  width:100%;
  padding:14px;
  border:1px solid rgba(16,35,49,0.08);
  border-radius:12px;
  background:#fff;
  text-align:left;
}
.tile-detail-note{
  margin:8px 0 0;
  color:#587082;
  font-size:13px;
}
.lead-proposal-grid{
  margin-top:12px;
}
.lead-proposal-grid.compact{
  margin-top:0;
}
.lead-predictive-copy{
  min-width:0;
  display:grid;
  gap:3px;
}
.lead-predictive-copy strong,
.lead-predictive-copy span,
.lead-predictive-copy small{
  overflow-wrap:anywhere;
}
.lead-predictive-copy span{
  color:#415566;
  font-size:13px;
}
.lead-predictive-copy small{
  color:#6f8495;
  font-size:12px;
}
.lead-predictive-type{
  display:inline-flex;
  width:max-content;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#2f6f78;
  background:rgba(47,164,179,0.10);
  border-radius:999px;
  padding:5px 8px;
}
.lead-predictive-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.ghost-btn{
  border:1px solid rgba(16,35,49,0.12);
  background:#fff;
  color:#102331;
  border-radius:10px;
  padding:10px 12px;
  font-weight:600;
  cursor:pointer;
}
.ghost-btn:hover{
  border-color:rgba(47,164,179,0.26);
  box-shadow:0 10px 22px rgba(15,23,42,0.05);
}
@media (max-width: 900px){
  .lead-predictive-item,
  .lead-predictive-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .lead-predictive-actions{
    width:100%;
    justify-content:flex-start;
  }
}


/* v11 interactive tiles and record modals */
.interactive-tile{
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.interactive-tile:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(15,23,42,0.08);
  border-color:rgba(47,164,179,0.28);
}
.tile-detail-overlay{
  padding:28px;
  z-index:9999;
}
.tile-detail-modal{
  width:min(1040px, 96vw);
  max-height:88vh;
  overflow:auto;
}
.tile-detail-grid{
  margin-top:8px;
}
.tile-detail-section{
  margin-bottom:14px;
}
.tile-detail-list{
  display:grid;
  gap:10px;
}
.tile-detail-list-item{
  display:grid;
  gap:4px;
  padding:12px 14px;
  border:1px solid rgba(16,35,49,0.08);
  border-radius:12px;
  background:#fff;
}
.tile-detail-list-item span,
.tile-detail-summary span{
  color:#64748b;
  font-size:13px;
}
.tile-detail-summary{
  padding:16px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(245,251,252,0.95), rgba(255,255,255,0.98));
  border:1px solid rgba(47,164,179,0.16);
}
.tile-detail-summary p{
  margin:6px 0;
  font-size:28px;
  font-weight:700;
}
.lead-stage-progress-row{
  display:grid;
  gap:8px;
  margin:2px 0 14px;
}
.lead-stage-progress{
  width:100%;
  height:8px;
  border-radius:999px;
  background:rgba(148,163,184,0.18);
  overflow:hidden;
}
.lead-stage-progress-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, #2fa4b3, #1b7c87);
}
.lead-stage-progress-label{
  font-size:12px;
  font-weight:700;
  color:#5f6f81;
  text-transform:uppercase;
  letter-spacing:.04em;
}
@media (max-width: 900px){
  .tile-detail-overlay{
    padding:14px;
  }
  .tile-detail-modal{
    width:100%;
    max-height:92vh;
  }
}


/* v16 sidebar account and predictive proposal polish */
.sidebar .nav-icon{ display:none !important; }
.sidebar .nav-btn,
.sidebar .logout-btn{
  gap:0 !important;
}
.sidebar .nav-btn{
  justify-content:flex-start !important;
  padding:13px 16px !important;
}
.sidebar .nav-label{
  font-weight:700;
}
.account-footer{
  padding:12px !important;
}
.sidebar-account-card{
  border:1px solid rgba(15,58,53,0.10);
  border-radius:10px;
  background:rgba(255,255,255,0.92);
  padding:12px 14px;
  display:grid;
  gap:6px;
  box-shadow:0 10px 24px rgba(15,23,42,0.05);
}
.sidebar-account-eyebrow{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#6f8495;
  font-weight:700;
}
.sidebar-account-name{
  font-size:14px;
  font-weight:700;
  color:#102331;
  overflow-wrap:anywhere;
}
.sidebar-logout-link{
  margin-top:2px;
  justify-self:start;
  border:none;
  background:transparent;
  padding:0;
  color:#5b6b79;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}
.sidebar-logout-link:hover{
  color:#0F3A35;
  text-decoration:underline;
}
.app-shell.sidebar-collapsed .sidebar-account-card{
  padding:10px;
}
.app-shell.sidebar-collapsed .sidebar-account-eyebrow,
.app-shell.sidebar-collapsed .sidebar-account-name,
.app-shell.sidebar-collapsed .sidebar-logout-link{
  display:none;
}
.lead-predictive-group{
  display:grid;
  gap:10px;
  margin-top:12px;
}
.lead-predictive-group-title{
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#415566;
}
.proposal-block{
  border:1px solid rgba(16,35,49,0.08);
  border-radius:14px;
  padding:14px;
  margin-top:14px;
  background:#fff;
}
.proposal-block-places{
  background:linear-gradient(180deg, rgba(245,251,252,0.96), rgba(255,255,255,0.98));
  border-color:rgba(47,164,179,0.22);
}
.proposal-block-web{
  background:linear-gradient(180deg, rgba(255,255,255,1), rgba(247,250,252,0.98));
}
.proposal-block-summary{
  background:rgba(249,251,252,0.95);
}
.proposal-block-head{
  display:grid;
  gap:8px;
  margin-bottom:12px;
}
.proposal-block-head h4{
  margin:0;
  font-size:15px;
  color:#102331;
}
.proposal-inline-meta{
  margin-top:10px;
  font-size:12px;
  color:#587082;
  line-height:1.5;
}


/* v17 predictive lookup speed feedback */
.lead-predictive-loading{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border:1px dashed rgba(47,164,179,0.28);
  border-radius:12px;
  background:rgba(255,255,255,0.92);
}
.lead-predictive-loading strong{
  display:block;
  font-size:13px;
  color:#102331;
}
.lead-predictive-loading small{
  display:block;
  color:#6f8495;
  font-size:12px;
  margin-top:2px;
}
.lead-predictive-spinner{
  width:18px;
  height:18px;
  border-radius:999px;
  border:2px solid rgba(47,164,179,0.18);
  border-top-color:#2fa4b3;
  animation:leadPredictiveSpin .8s linear infinite;
  flex:0 0 auto;
}
@keyframes leadPredictiveSpin{
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* v18 lead pipeline search alignment */
#leadPipelineSearch{
  min-height:48px;
  border:1px solid rgba(47,164,179,0.18) !important;
  border-radius:10px !important;
  background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,251,252,0.98));
  box-shadow:0 6px 18px rgba(15,23,42,0.04);
}
#leadPipelineSearch:hover{
  border-color:rgba(47,164,179,0.30) !important;
  box-shadow:0 10px 24px rgba(47,164,179,0.08);
}
#leadPipelineSearch:focus{
  border-color:#2fa4b3 !important;
  box-shadow:0 0 0 4px rgba(47,164,179,0.12);
}


/* v19 final lead pipeline alignment */
#leadPipelineSearch.contacts-search-input{
  min-height:48px !important;
  padding:12px 14px 12px 42px !important;
  font-size:14px !important;
  line-height:1.35 !important;
}
#leadPipelineSearch + .contact-search-icon,
.contact-search-wrap #leadPipelineSearch ~ .contact-search-icon{
  top:24px;
}


.pipeline-tile.just-saved {
  box-shadow: 0 0 0 2px rgba(35, 154, 170, 0.28);
  background: #f5fbfc;
}


@media (max-width: 1400px){
  .contacts-tiles-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px){
  .contacts-tiles-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px){
  .contacts-tiles-grid{ grid-template-columns:1fr; }
  .contact-tile{ min-height:auto; }
  .leads-summary-grid{ grid-template-columns:1fr !important; }
}

/* v87 extend THIC blue accent across dark surfaces */
body:not(.thic-light-mode) .module-control-panel{
  background:
    radial-gradient(circle at 82% 18%, rgba(103,182,255,0.14), transparent 24%),
    radial-gradient(circle at 18% 14%, rgba(84,236,197,0.16), transparent 24%),
    linear-gradient(135deg, rgba(9,43,56,0.98) 0%, rgba(13,74,72,0.96) 45%, rgba(28,87,110,0.92) 100%) !important;
}

body:not(.thic-light-mode) .flow-panel,
body:not(.thic-light-mode) .panel{
  background:
    radial-gradient(circle at 86% 18%, rgba(103,182,255,0.08), transparent 22%),
    radial-gradient(circle at 14% 84%, rgba(84,236,197,0.08), transparent 20%),
    linear-gradient(180deg, rgba(7,28,26,0.96), rgba(8,20,20,0.95)) !important;
  border-color:rgba(121,255,215,0.10) !important;
  box-shadow:0 18px 34px rgba(0,0,0,0.18) !important;
}

body:not(.thic-light-mode) .radar-home-hero{
  background:
    radial-gradient(circle at 84% 18%, rgba(103,182,255,0.12), transparent 22%),
    radial-gradient(circle at 16% 80%, rgba(84,236,197,0.10), transparent 24%),
    linear-gradient(145deg, rgba(4,11,11,0.98), rgba(10,28,31,0.96)) !important;
}

body:not(.thic-light-mode) .radar-status-card{
  background:
    radial-gradient(circle at 86% 14%, rgba(103,182,255,0.12), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05)) !important;
}

body:not(.thic-light-mode) .founder-signals-panel{
  background:
    radial-gradient(circle at 86% 18%, rgba(103,182,255,0.10), transparent 24%),
    radial-gradient(circle at 18% 16%, rgba(84,236,197,0.10), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05)) !important;
}

body:not(.thic-light-mode) .founder-signals-panel::before{
  background:radial-gradient(circle, rgba(103,182,255,0.12), transparent 70%) !important;
}

body:not(.thic-light-mode) .radar-command-deck .radar-preview-panel,
body:not(.thic-light-mode) .radar-command-deck .radar-activity-panel{
  background:
    radial-gradient(circle at 86% 18%, rgba(103,182,255,0.10), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)) !important;
}

body:not(.thic-light-mode) .radar-preview-stat{
  background:
    radial-gradient(circle at 86% 18%, rgba(103,182,255,0.08), transparent 20%),
    linear-gradient(180deg, rgba(12,41,39,0.92), rgba(8,22,22,0.96)) !important;
  border-color:rgba(121,255,215,0.10) !important;
}

body:not(.thic-light-mode) .radar-preview-stat span{
  color:rgba(202,251,237,0.72) !important;
}

body:not(.thic-light-mode) .radar-preview-stat strong{
  color:#f4fffc !important;
}

body:not(.thic-light-mode) .radar-activity-tile{
  background:
    radial-gradient(circle at 86% 18%, rgba(103,182,255,0.08), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)) !important;
  border-color:rgba(133,255,214,0.08) !important;
}

body:not(.thic-light-mode) .contacts-toolbar,
body:not(.thic-light-mode) .contacts-toolbar-advanced,
body:not(.thic-light-mode) .table-wrap{
  background:
    radial-gradient(circle at 86% 18%, rgba(103,182,255,0.08), transparent 22%),
    linear-gradient(180deg, rgba(7,28,26,0.96), rgba(8,20,20,0.95)) !important;
}


/* v25 unified tile system */
.thic-tile-card,
.pipeline-tile,
.contact-tile,
.stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.985) 0%, rgba(247,251,251,0.98) 100%);
  border: 1px solid rgba(47,164,179,0.14);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15,23,42,0.06);
}

.thic-tile-card {
  min-width: 0;
}

.pipeline-tile,
.contact-tile,
.stat-card {
  padding: 18px;
}

.contact-tile {
  min-height: 220px;
  gap: 12px;
}

.contact-tile-hero {
  gap: 0;
}

.contact-avatar {
  display: none;
}

.leads-summary-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:16px !important;
  margin-bottom:18px;
}

.leads-summary-grid .leads-kpi-card{
  position:relative;
  overflow:hidden;
  min-height:156px;
  padding:18px 18px 16px !important;
  border-radius:20px !important;
  border:1px solid rgba(121,255,215,0.12) !important;
  box-shadow:0 18px 32px rgba(0,0,0,0.18) !important;
}

.leads-summary-grid .leads-kpi-card h3{
  color:#d6f5ef !important;
  margin-bottom:10px !important;
  font-size:14px !important;
}

.leads-summary-grid .leads-kpi-card p{
  margin:0 0 8px !important;
  color:#ffffff !important;
  font-size:28px !important;
  line-height:1.02;
}

.leads-summary-grid .leads-kpi-card small{
  display:block;
  color:rgba(223,247,240,0.78);
  line-height:1.35;
  max-width:280px;
  font-size:13px;
}

.leads-summary-grid .leads-kpi-card .leads-kpi-bars{
  display:flex;
  align-items:flex-end;
  gap:7px;
  min-height:36px;
  margin-top:12px;
}

.leads-summary-grid .leads-kpi-card .leads-kpi-bars i{
  display:block;
  width:14px;
  border-radius:999px 999px 6px 6px;
  box-shadow:0 12px 22px rgba(0,0,0,0.18);
}

.leads-summary-grid .leads-kpi-card .leads-kpi-bars i:nth-child(1){ height:30px; }
.leads-summary-grid .leads-kpi-card .leads-kpi-bars i:nth-child(2){ height:22px; }
.leads-summary-grid .leads-kpi-card .leads-kpi-bars i:nth-child(3){ height:15px; }

.leads-summary-grid .leads-kpi-card.accent-mint{
  background:radial-gradient(circle at 86% 18%, rgba(132,255,226,0.16), transparent 24%), linear-gradient(145deg, rgba(10,37,34,0.96), rgba(14,63,56,0.92)) !important;
}
.leads-summary-grid .leads-kpi-card.accent-sky{
  background:radial-gradient(circle at 86% 18%, rgba(111,224,244,0.18), transparent 24%), linear-gradient(145deg, rgba(10,34,36,0.96), rgba(14,55,68,0.92)) !important;
}
.leads-summary-grid .leads-kpi-card.accent-blue{
  background:radial-gradient(circle at 86% 18%, rgba(103,182,255,0.18), transparent 24%), linear-gradient(145deg, rgba(10,31,38,0.96), rgba(12,49,63,0.92)) !important;
}
.leads-summary-grid .leads-kpi-card.accent-teal{
  background:radial-gradient(circle at 86% 18%, rgba(95,143,155,0.20), transparent 24%), linear-gradient(145deg, rgba(10,33,35,0.96), rgba(16,57,61,0.92)) !important;
}

.leads-summary-grid .leads-kpi-card.accent-mint .leads-kpi-bars i{ background:linear-gradient(180deg, rgba(132,255,226,0.96), rgba(39,144,126,0.42)); }
.leads-summary-grid .leads-kpi-card.accent-sky .leads-kpi-bars i{ background:linear-gradient(180deg, rgba(111,224,244,0.96), rgba(53,117,174,0.42)); }
.leads-summary-grid .leads-kpi-card.accent-blue .leads-kpi-bars i{ background:linear-gradient(180deg, rgba(103,182,255,0.96), rgba(44,92,156,0.42)); }
.leads-summary-grid .leads-kpi-card.accent-teal .leads-kpi-bars i{ background:linear-gradient(180deg, rgba(140,226,226,0.92), rgba(48,118,125,0.42)); }

.contact-badge-row {
  margin-bottom: 10px;
}

.contact-meta {
  margin-top: 2px;
}

.contact-meta-stack {
  gap: 8px;
  min-height: 60px;
}

.contact-module-chips {
  gap: 6px;
}

.contact-module-chip,
.contact-subpill,
.contact-pill {
  border-radius: 999px;
}

.pipeline-tile {
  border-radius: 12px;
}

.pipeline-tiles-grid,
.contacts-tiles-grid,
.dashboard-stats-grid {
  gap: 18px;
}

.stat-card h3 {
  margin-bottom: 10px;
}

.stat-card p {
  margin: 0;
}

.selector-note-box{
  min-height:46px;
  display:flex;
  align-items:center;
  padding:12px 14px;
  border:1px solid #d9e7e7;
  border-radius:8px;
  background:#f7fbfb;
  color:#4b5b67;
  font-size:13px;
  line-height:1.4;
}

#leadAdvancedCard,
#influencerAdvancedCard{
  margin-top:18px;
  border:1px solid #d9ecec;
  background:linear-gradient(180deg, #fcffff 0%, #f7fbfb 100%);
}

#leadFlowPanel #leadAdvancedCard,
#influencerFlowPanel #influencerAdvancedCard{
  box-shadow:none;
}


/* v33 role standardization + search input cleanup */
.contacts-search-input,
#leadPipelineSearch,
#influencerPipelineSearch,
#contactsSearchInput,
#commandBarInput {
  appearance:none !important;
  -webkit-appearance:none !important;
  border:1px solid rgba(47,164,179,0.18) !important;
  border-radius:10px !important;
  background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,251,252,0.98)) !important;
  box-shadow:0 6px 18px rgba(15,23,42,0.04) !important;
  outline:none !important;
}
.contacts-search-input:hover,
#leadPipelineSearch:hover,
#influencerPipelineSearch:hover,
#contactsSearchInput:hover,
#commandBarInput:hover {
  border-color:rgba(47,164,179,0.30) !important;
  box-shadow:0 10px 24px rgba(47,164,179,0.08) !important;
}
.contacts-search-input:focus,
#leadPipelineSearch:focus,
#influencerPipelineSearch:focus,
#contactsSearchInput:focus,
#commandBarInput:focus {
  border-color:#2fa4b3 !important;
  box-shadow:0 0 0 4px rgba(47,164,179,0.12) !important;
  outline:none !important;
}
#influencerPipelineSearch.contacts-search-input,
#contactsSearchInput.contacts-search-input,
#commandBarInput {
  min-height:48px !important;
  padding:12px 14px 12px 42px !important;
  font-size:14px !important;
  line-height:1.35 !important;
}
#influencerPipelineSearch + .contact-search-icon,
#contactsSearchInput + .contact-search-icon,
.contact-search-wrap #influencerPipelineSearch ~ .contact-search-icon,
.contact-search-wrap #contactsSearchInput ~ .contact-search-icon {
  top:24px;
}
.selector-note-box {
  min-height:52px;
  display:flex;
  align-items:center;
  padding:12px 14px;
  border:1px solid rgba(47,164,179,0.14);
  border-radius:10px;
  background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,251,251,0.98));
  color:#486170;
}
.form-grid select,
.filter-grid select {
  min-height:48px;
}


/* v36 founder mission control */
.dashboard-spotlight-card,
.dashboard-mission-card {
  background: linear-gradient(135deg, #0f3a35 0%, #16645c 48%, #1f8f84 100%) !important;
}
.spotlight-leads {
  background: linear-gradient(135deg, #0f3a35 0%, #16645c 48%, #23a594 100%) !important;
}
.spotlight-influencers {
  background: linear-gradient(135deg, #114540 0%, #1a756d 48%, #2cb9a9 100%) !important;
}
.spotlight-revenue {
  background: linear-gradient(135deg, #0f302d 0%, #145d56 48%, #1f9387 100%) !important;
}
.dashboard-mission-grid {
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:16px;
  margin-bottom:16px;
}
.dashboard-mission-card {
  position:relative;
  overflow:hidden;
  border-radius:16px;
  padding:20px;
  color:#fff;
  box-shadow:0 18px 42px rgba(15,23,42,0.12);
}
.dashboard-mission-card::after {
  content:"";
  position:absolute;
  inset:auto -40px -50px auto;
  width:180px;
  height:180px;
  border-radius:50%;
  background:rgba(255,255,255,0.09);
}
.mission-card-head {
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.mission-card-head h3 {
  margin:6px 0 0;
  color:#fff;
}
.mission-score {
  position:relative;
  z-index:1;
  font-size:42px;
  font-weight:900;
  line-height:1;
}
.mission-meter {
  position:relative;
  z-index:1;
}
.mission-grid {
  position:relative;
  z-index:1;
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}
.mission-grid div {
  background:rgba(255,255,255,0.14);
  border:1px solid rgba(255,255,255,0.18);
  border-radius:14px;
  padding:12px;
}
.mission-grid strong {
  display:block;
  font-size:22px;
  line-height:1;
}
.mission-grid span {
  display:block;
  margin-top:6px;
  font-size:12px;
  opacity:0.92;
}
.mission-activity-feed {
  position:relative;
  z-index:1;
  display:grid;
  gap:10px;
}
.mission-activity-item {
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.16);
  font-size:13px;
  line-height:1.45;
}
.mission-insight-copy {
  position:relative;
  z-index:1;
  margin:8px 0 18px;
  color:rgba(255,255,255,0.95);
  line-height:1.6;
}
.mission-network {
  position:relative;
  z-index:1;
  min-height:180px;
}
.mission-node {
  position:absolute;
  min-width:92px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.14);
  border:1px solid rgba(255,255,255,0.18);
  text-align:center;
  font-size:12px;
  font-weight:700;
  backdrop-filter: blur(6px);
}
.mission-node.center { left:50%; top:50%; transform:translate(-50%, -50%); background:rgba(255,255,255,0.92); color:#0f3a35; }
.mission-node.top { left:50%; top:4px; transform:translateX(-50%); }
.mission-node.left { left:0; top:50%; transform:translateY(-50%); }
.mission-node.right { right:0; top:50%; transform:translateY(-50%); }
.mission-node.bottom { left:50%; bottom:0; transform:translateX(-50%); }
.dashboard-stat-accent::after {
  background: linear-gradient(180deg, #1fa58d, #0f6158) !important;
}
.dashboard-stat-accent.amber::after,
.dashboard-stat-accent.violet::after,
.dashboard-stat-accent.emerald::after,
.dashboard-stat-accent.sky::after,
.dashboard-stat-accent.rose::after,
.dashboard-stat-accent.lime::after,
.dashboard-stat-accent.indigo::after,
.dashboard-stat-accent.teal::after {
  background: linear-gradient(180deg, #23b49d, #0f6158) !important;
}
@media (max-width: 1100px) {
  .dashboard-mission-grid { grid-template-columns:1fr; }
}

/* v37 full-width layout + upgraded snapshots */
:root{
  --thic-page-gutter: 24px;
}

main,
.main-content,
.page-content,
.module-content,
.content,
.content-wrap,
.content-area,
.dashboard-content,
.app-shell main {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding-left: var(--thic-page-gutter) !important;
  padding-right: var(--thic-page-gutter) !important;
  box-sizing: border-box;
}

.panel,
.dashboard-hero,
.dashboard-spotlight-grid,
.dashboard-mission-grid,
.dashboard-two-col,
.dashboard-info-grid,
.stats-grid,
.pipeline-tiles-grid,
.contacts-tiles-grid {
  width: 100%;
  max-width: none !important;
  box-sizing: border-box;
}

.dashboard-stats-grid,
.dashboard-spotlight-grid,
.dashboard-mission-grid,
.pipeline-tiles-grid,
.contacts-tiles-grid {
  gap: 20px !important;
}

.stat-card,
.dashboard-spotlight-card,
.dashboard-mission-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before,
.dashboard-spotlight-card::before,
.dashboard-mission-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 42%);
  pointer-events: none;
}

.stat-card {
  min-height: 150px;
  backdrop-filter: blur(6px);
}

.stat-card h3 {
  position: relative;
  z-index: 1;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.stat-card p {
  position: relative;
  z-index: 1;
  font-size: 34px;
  line-height: 1;
}

.stat-card small,
.stat-card .meta,
.dashboard-card-meta {
  position: relative;
  z-index: 1;
  color: #6b7d89;
}

@media (max-width: 900px) {
  :root{
    --thic-page-gutter: 16px;
  }
}

/* ===== v38 stable frame + balanced spacing ===== */
:root{
  --thic-sidebar-width: 250px;
  --thic-sidebar-width-collapsed: 78px;
  --thic-frame-gap: 24px;
  --thic-section-gap: 24px;
}

.main-content{
  width: calc(100vw - var(--thic-sidebar-width)) !important;
  margin-left: var(--thic-sidebar-width) !important;
  padding: var(--thic-frame-gap) !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

.app-shell.sidebar-collapsed .main-content{
  width: calc(100vw - var(--thic-sidebar-width-collapsed)) !important;
  margin-left: var(--thic-sidebar-width-collapsed) !important;
}

.content-area{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: grid;
  gap: var(--thic-section-gap);
}

.smart-global-header,
.command-hero,
.dashboard-hero,
.dashboard-spotlight-grid,
.dashboard-stats-grid,
.dashboard-mission-grid,
.dashboard-two-col,
.dashboard-info-grid,
.panel,
.stats-grid,
.table-wrap,
.pipeline-tiles-grid,
.contacts-tiles-grid,
.influencer-tiles-grid,
.filter-grid,
.quick-chip-row,
.contacts-toolbar,
.contacts-toolbar-advanced,
.finance-kpis,
.finance-two-col,
.admin-grid,
.portal-shell .panel,
.portal-topbar,
#contactsViewContainer{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.dashboard-spotlight-grid,
.dashboard-stats-grid,
.dashboard-mission-grid,
.dashboard-two-col,
.dashboard-info-grid,
.stats-grid,
.pipeline-tiles-grid,
.contacts-tiles-grid,
.influencer-tiles-grid,
.filter-grid,
.finance-kpis,
.finance-two-col,
.admin-grid{
  gap: 24px !important;
}

.dashboard-stats-grid{
  align-items: stretch;
}

.stat-card,
.dashboard-spotlight-card,
.dashboard-mission-card,
.panel{
  border-radius: 18px !important;
}

.stat-card{
  min-height: 154px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,250,250,0.98)) !important;
  border: 1px solid rgba(47,164,179,0.14) !important;
  box-shadow: 0 14px 30px rgba(15,58,53,0.06) !important;
}

.stat-card h3{
  color: #456b72 !important;
  margin-bottom: 12px !important;
}

.stat-card p{
  font-size: 42px !important;
  letter-spacing: -0.03em;
}

.dashboard-mission-card{
  min-height: 248px;
  background: linear-gradient(135deg, #0f5a53 0%, #1b877e 58%, #2fa4b3 100%) !important;
  box-shadow: 0 18px 36px rgba(15,58,53,0.12) !important;
}

.dashboard-mission-card::before{
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,0.18), transparent 18%),
    radial-gradient(circle at 88% 84%, rgba(255,255,255,0.10), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
}

.dashboard-mission-card .mission-card-head,
.dashboard-mission-card .mission-insight-copy,
.dashboard-mission-card .mission-activity-item,
.dashboard-mission-card .mission-grid div span,
.dashboard-mission-card .mission-grid div strong,
.dashboard-mission-card .mission-score,
.dashboard-mission-card h3,
.dashboard-mission-card .spotlight-kicker{
  position: relative;
  z-index: 1;
}

.dashboard-mission-card .mission-activity-feed{
  display: grid;
  gap: 12px;
}

.dashboard-mission-card .mission-activity-item{
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(6px);
}

.dashboard-mission-card .mission-grid{
  gap: 14px !important;
}

.dashboard-mission-card .mission-grid > div{
  background: rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 14px 16px;
}

.dashboard-spotlight-card{
  min-height: 200px;
  box-shadow: 0 18px 34px rgba(15,58,53,0.10) !important;
}

.dashboard-spotlight-card .spotlight-bars,
.dashboard-spotlight-card .spotlight-orbs,
.dashboard-spotlight-card .spotlight-mini-grid{
  position: relative;
  z-index: 1;
}

@media (max-width: 900px){
  .main-content,
  .app-shell.sidebar-collapsed .main-content{
    width: 100vw !important;
    margin-left: 0 !important;
    padding: 14px !important;
  }

  .content-area{
    gap: 18px;
  }

  .dashboard-spotlight-grid,
  .dashboard-stats-grid,
  .dashboard-mission-grid,
  .dashboard-two-col,
  .dashboard-info-grid,
  .stats-grid,
  .pipeline-tiles-grid,
  .contacts-tiles-grid,
  .influencer-tiles-grid,
  .filter-grid,
  .finance-kpis,
  .finance-two-col,
  .admin-grid{
    gap: 18px !important;
  }
}


/* ===== v39 top navigation layout ===== */
.sidebar{
  display:none !important;
}
.main-content,
.app-shell.sidebar-collapsed .main-content{
  width:100% !important;
  margin-left:0 !important;
  padding:20px 24px 28px !important;
}
.smart-header{
  position:relative;
  margin-bottom:24px !important;
  padding-bottom:6px !important;
}
.thic-header-nav{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid rgba(15,58,53,0.08);
}
.thic-header-link,
.thic-header-more summary,
.thic-header-more button{
  appearance:none;
  -webkit-appearance:none;
  border:none;
  background:transparent;
  color:#456b72;
  font-size:14px;
  font-weight:700;
  padding:0;
  cursor:pointer;
  transition:color .18s ease, opacity .18s ease;
}
.thic-header-link:hover,
.thic-header-more summary:hover,
.thic-header-more button:hover{
  color:#0f5a53;
}
.thic-header-link.active{
  color:#0f5a53;
  text-decoration:underline;
  text-underline-offset:6px;
}
.thic-header-more{
  position:relative;
}
.thic-header-more summary{
  list-style:none;
}
.thic-header-more[open]{
  background:#fff;
  border:1px solid rgba(15,58,53,0.10);
  box-shadow:0 16px 34px rgba(15,23,42,0.10);
  border-radius:14px;
  padding:12px 14px;
}
.thic-header-more[open] summary{
  margin-bottom:8px;
}
.thic-header-more button{
  display:block;
  width:100%;
  text-align:left;
  padding:8px 0;
}
.command-open-btn{
  color:#102331 !important;
  background:rgba(255,255,255,0.85) !important;
}
#commandBarInput{
  color:#102331 !important;
}
#commandBarInput::placeholder{
  color:#7b8f9a !important;
}
@media (max-width: 900px){
  .main-content,
  .app-shell.sidebar-collapsed .main-content{
    padding:16px !important;
  }
  .thic-header-nav{
    gap:14px;
  }
}

/* ===== v40 header nav visibility + command center readability ===== */
.smart-global-header{
  position:relative;
  overflow:visible;
}
.thic-header-nav{
  display:flex !important;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,0.18);
}
.thic-header-link,
.thic-header-more summary,
.thic-header-more button{
  color:rgba(255,255,255,0.92) !important;
  font-size:14px;
  font-weight:700;
}
.thic-header-link:hover,
.thic-header-more summary:hover,
.thic-header-more button:hover{
  color:#ffffff !important;
}
.thic-header-link.active{
  color:#ffffff !important;
  text-decoration:none;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,0.95);
}
.thic-header-more[open]{
  background:#ffffff;
}
.thic-header-more[open] summary,
.thic-header-more[open] button{
  color:#184b46 !important;
}
.dashboard-hero{
  background:#f8fafc !important;
  color:#12343a !important;
}
.dashboard-hero h3{
  color:#12343a !important;
}
.dashboard-hero p{
  color:#4f6b72 !important;
}
.main-content,
.app-shell.sidebar-collapsed .main-content{
  padding-top:16px !important;
}


/* ===== v41 header breathing room + glass nav ===== */
.smart-global-header{
  padding-bottom: 18px !important;
}
.thic-header-nav{
  margin-top: 18px !important;
  padding: 12px 18px !important;
  border-top: none !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.10) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 24px rgba(15,58,53,0.10);
}
.thic-header-link,
.thic-header-more summary{
  letter-spacing: 0.01em;
}
.dashboard-hero{
  margin-top: 30px !important;
  padding: 18px 18px !important;
  background: #f7faf9 !important;
  border: 1px solid rgba(15,90,83,0.07) !important;
  box-shadow: 0 8px 20px rgba(15,23,42,0.04);
}
.dashboard-hero-actions{
  gap: 10px !important;
}
.dashboard-badge{
  box-shadow: 0 4px 10px rgba(15,23,42,0.04);
}
.main-content,
.app-shell.sidebar-collapsed .main-content{
  padding-top: 18px !important;
}


/* ===== v42 global polish rollout ===== */
.panel,
.stat-card,
.dashboard-mission-card,
.dashboard-spotlight-card,
.pipeline-tile,
.contact-tile,
.influencer-tile,
.table-wrap {
  border-radius: 18px !important;
}

.panel,
.table-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,251,251,0.98)) !important;
  border: 1px solid rgba(47,164,179,0.12) !important;
  box-shadow: 0 16px 34px rgba(15,58,53,0.06) !important;
}

.dashboard-stats-grid .stat-card {
  min-height: 168px;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246,251,251,0.98)) !important;
  border: 1px solid rgba(47,164,179,0.13) !important;
  box-shadow: 0 18px 36px rgba(15,58,53,0.06) !important;
}

.dashboard-stats-grid .stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 18%, rgba(47,164,179,0.10), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0));
  pointer-events: none;
}

.dashboard-stats-grid .stat-card h3 {
  color: #56727a !important;
  letter-spacing: 0.01em;
}

.dashboard-stats-grid .stat-card p {
  color: #102331 !important;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.dashboard-stats-grid .stat-card:nth-last-child(-n+4) {
  background: linear-gradient(180deg, rgba(247,252,252,0.99), rgba(240,249,248,0.98)) !important;
}

.dashboard-mission-card,
.dashboard-spotlight-card {
  box-shadow: 0 22px 42px rgba(15,58,53,0.12) !important;
}

.dashboard-mission-card .mission-activity-item,
.dashboard-mission-card .mission-grid > div,
.dashboard-spotlight-card .spotlight-mini-grid > div {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.tile-detail-modal,
.tile-detail-card,
.modal-card,
.modal-content,
.contact-modal,
.popup-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246,251,251,0.98)) !important;
  border: 1px solid rgba(47,164,179,0.14) !important;
  border-radius: 22px !important;
  box-shadow: 0 26px 60px rgba(15,23,42,0.18) !important;
}

.tile-detail-overlay,
.modal-overlay,
.modal-backdrop,
.overlay {
  background: rgba(15,23,42,0.28) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tile-detail-header,
.tile-detail-head,
.modal-header,
.popup-header {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(15,58,53,0.08);
}

.tile-detail-footer,
.modal-footer,
.popup-footer {
  padding-top: 16px;
  margin-top: 18px;
  border-top: 1px solid rgba(15,58,53,0.08);
}

.tile-detail-card .form-grid,
.modal-card .form-grid,
.modal-content .form-grid,
.contact-modal .form-grid,
.popup-card .form-grid {
  gap: 18px !important;
}

.tile-detail-card input,
.tile-detail-card select,
.tile-detail-card textarea,
.modal-card input,
.modal-card select,
.modal-card textarea,
.modal-content input,
.modal-content select,
.modal-content textarea,
.contact-modal input,
.contact-modal select,
.contact-modal textarea,
.popup-card input,
.popup-card select,
.popup-card textarea {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,251,252,0.98)) !important;
  border: 1px solid rgba(47,164,179,0.16) !important;
  box-shadow: none !important;
}



/* ===== v43 full header nav + unified lower dashboard cards ===== */
.thic-header-nav{
  width:100%;
  display:grid;
  grid-template-columns:repeat(11,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
  padding:14px 16px;
  border-radius:20px;
  background:rgba(255,255,255,0.10);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,0.18);
}
.thic-header-link{
  appearance:none;
  border:0;
  background:transparent;
  color:rgba(255,255,255,0.94);
  font-weight:700;
  font-size:13px;
  padding:10px 8px 12px;
  border-radius:12px;
  text-align:center;
  cursor:pointer;
  position:relative;
}
.thic-header-link:hover{ background:rgba(255,255,255,0.10); }
.thic-header-link.active{ background:rgba(255,255,255,0.14); }
.thic-header-link.active::after{
  content:"";
  position:absolute;
  left:18%; right:18%; bottom:4px;
  height:3px; border-radius:999px;
  background:rgba(255,255,255,0.96);
}
.dashboard-hero{
  margin-top:30px;
}
.dashboard-two-col{
  gap:24px;
  margin-top:24px;
}
.dashboard-two-col .panel{
  position:relative;
  overflow:hidden;
  border:none;
  border-radius:24px;
  padding:22px;
  background:linear-gradient(135deg,#0f766e 0%, #1f8d87 55%, #32b6c2 100%);
  box-shadow:0 18px 38px rgba(15,118,110,0.18);
}
.dashboard-two-col .panel::before{
  content:"";
  position:absolute;
  inset:auto -30px -40px auto;
  width:180px; height:180px;
  border-radius:999px;
  background:radial-gradient(circle at center, rgba(255,255,255,0.16), rgba(255,255,255,0));
  pointer-events:none;
}
.dashboard-two-col .panel h3,
.dashboard-two-col .panel p,
.dashboard-two-col .panel strong,
.dashboard-two-col .panel{
  color:#fff;
}
.dashboard-two-col .panel h3{
  font-size:28px;
  line-height:1.1;
  margin:0 0 18px;
}
.dashboard-info-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.dashboard-info-grid > div{
  background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.16);
  border-radius:16px;
  padding:14px 16px;
}
.dashboard-info-grid strong{
  display:block;
  font-size:26px;
  margin-top:6px;
}
.dashboard-list{ display:grid; gap:12px; }
.dashboard-list-item{
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.16);
  border-radius:16px;
  padding:14px 16px;
  color:#fff;
  font-size:15px;
  line-height:1.4;
}
.dashboard-list-item strong{ color:#fff; }
@media (max-width: 1320px){
  .thic-header-nav{grid-template-columns:repeat(6,minmax(0,1fr));}
}
@media (max-width: 860px){
  .thic-header-nav{grid-template-columns:repeat(3,minmax(0,1fr));}
  .dashboard-info-grid{grid-template-columns:1fr;}
}


/* ===== v44 working header nav + unified THIC tile system ===== */
.thic-header-nav{
  position:relative;
  z-index:5;
}
.thic-header-link{
  pointer-events:auto;
}
.thic-header-link.active{
  box-shadow: inset 0 -3px 0 rgba(255,255,255,0.96);
}

.pipeline-tile,
.contact-tile{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:16px;
  min-height:250px;
  padding:20px !important;
  border-radius:24px !important;
  border:1px solid rgba(47,164,179,0.18) !important;
  background:
    radial-gradient(circle at 88% 14%, rgba(47,164,179,0.14), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(242,250,250,0.98) 100%) !important;
  box-shadow:0 22px 42px rgba(15,58,53,0.08) !important;
}
.pipeline-tile::before,
.contact-tile::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
  pointer-events:none;
}
.pipeline-tile-top,
.contact-tile-hero,
.contact-tile-footer,
.pipeline-grid,
.contact-meta-stack,
.contact-module-chips,
.action-row.compact{
  position:relative;
  z-index:1;
}
.pipeline-tile-top,
.contact-tile-hero{
  align-items:flex-start;
  gap:14px;
  margin-bottom:0 !important;
}
.pipeline-tile h4,
.contact-tile h4{
  margin:0 0 6px 0 !important;
  font-size:21px !important;
  line-height:1.15;
  letter-spacing:-0.02em;
  color:#10323a;
}
.pipeline-meta,
.contact-meta,
.contact-owner-line{
  color:#5b7279 !important;
  font-size:13px;
  line-height:1.45;
}
.pipeline-grid{
  grid-template-columns:1fr !important;
  gap:10px !important;
}
.pipeline-grid div,
.contact-meta-line,
.contact-module-chip{
  border-radius:14px;
}
.pipeline-grid div{
  padding:10px 12px;
  background:rgba(255,255,255,0.72);
  border:1px solid rgba(47,164,179,0.10);
}
.pipeline-grid strong{
  color:#6a7f86 !important;
  font-size:11px !important;
  letter-spacing:0.08em !important;
}
.pipeline-grid span,
.contact-meta-line{
  color:#153a43;
  font-size:14px;
}
.contact-meta-stack{
  display:grid;
  gap:10px;
  min-height:auto !important;
}
.contact-meta-line{
  padding:10px 12px;
  background:rgba(255,255,255,0.72);
  border:1px solid rgba(47,164,179,0.10);
}
.contact-meta-line.muted{
  color:#6d7f86;
}
.contact-module-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.contact-module-chip,
.contact-pill,
.contact-subpill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:6px 12px;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.03em;
}
.contact-pill{
  background:linear-gradient(135deg, rgba(15,118,110,0.16), rgba(47,164,179,0.16));
  color:#0f5c56;
  border:1px solid rgba(15,118,110,0.12);
}
.contact-subpill,
.contact-module-chip{
  background:rgba(255,255,255,0.82);
  color:#41636c;
  border:1px solid rgba(47,164,179,0.10);
}
.contact-badge-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px !important;
}
.contact-tile-footer,
.pipeline-tile .action-row.compact{
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid rgba(15,58,53,0.08);
}
.pipeline-tile .action-row.compact{
  display:flex;
  justify-content:flex-start;
}
.pipeline-tile .secondary-btn,
.contact-tile .secondary-btn{
  border-radius:14px;
  padding:10px 14px;
  background:rgba(255,255,255,0.88);
}
.pipeline-progress{
  margin-top:-4px;
}
.pipeline-tiles-grid,
.contacts-tiles-grid{
  gap:22px !important;
}
@media (max-width: 1100px){
  .pipeline-tile,
  .contact-tile{
    min-height:auto;
  }
}


/* ===== v45 nav click reliability + lower dashboard panel contrast ===== */
.thic-header-nav,
.thic-header-link{
  pointer-events:auto !important;
}
.thic-header-link{
  position:relative;
  z-index:2;
}
.dashboard-two-col .panel{
  background:linear-gradient(135deg,#0f766e 0%, #1f8d87 55%, #32b6c2 100%) !important;
  border:none !important;
  box-shadow:0 18px 38px rgba(15,118,110,0.18) !important;
}
.dashboard-two-col .panel h3,
.dashboard-two-col .panel p,
.dashboard-two-col .panel strong,
.dashboard-two-col .panel span,
.dashboard-two-col .panel div{
  color:#ffffff !important;
}
.dashboard-two-col .panel .dashboard-info-grid > div,
.dashboard-two-col .panel .dashboard-list-item{
  background:rgba(255,255,255,0.12) !important;
  border:1px solid rgba(255,255,255,0.16) !important;
  color:#ffffff !important;
}
.dashboard-two-col .panel .dashboard-list-item{
  min-height:48px;
}
.dashboard-two-col .panel .dashboard-info-grid > div strong{
  font-size:15px !important;
  font-weight:700 !important;
  margin:0 0 6px !important;
}
.dashboard-two-col .panel .dashboard-info-grid > div > div{
  font-size:26px;
  font-weight:800;
  line-height:1.05;
}

/* ===== v48 global spacing + command-center glow + THIC glass tiles ===== */
:root{
  --thic-glass-bg: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(244,251,251,0.74) 100%);
  --thic-glass-border: rgba(47,164,179,0.20);
  --thic-glass-shadow: 0 24px 48px rgba(15,58,53,0.10);
  --thic-glow-a: rgba(47,164,179,0.18);
  --thic-glow-b: rgba(95,143,155,0.16);
}

/* stronger vertical rhythm under the header banner across modules */
.smart-global-header{
  margin: 10px 0 34px 0 !important;
  overflow: hidden;
}
.smart-global-header::after{
  content:"";
  position:absolute;
  inset:-20% -10% auto auto;
  width:44%;
  height:140%;
  pointer-events:none;
  background:
    radial-gradient(circle at 28% 42%, rgba(255,255,255,0.12), rgba(255,255,255,0) 36%),
    radial-gradient(circle at 78% 58%, var(--thic-glow-a), rgba(47,164,179,0) 46%),
    radial-gradient(circle at 58% 24%, var(--thic-glow-b), rgba(95,143,155,0) 42%);
  filter: blur(8px);
  opacity: .95;
  animation: thicHeaderBreathe 6.8s ease-in-out infinite;
}
@keyframes thicHeaderBreathe {
  0%,100% { transform: translate3d(0,0,0) scale(1); opacity:.86; }
  50% { transform: translate3d(-2%, 2%, 0) scale(1.06); opacity:1; }
}

/* ensure the first content block never feels glued to the banner */
.smart-global-header + .page-header,
.smart-global-header + .lead-mode-header,
.smart-global-header + .panel,
.smart-global-header + .dashboard-hero,
.smart-global-header + .dashboard-spotlight-grid,
.smart-global-header + .dashboard-mission-grid,
.smart-global-header + .dashboard-stats-grid,
.smart-global-header + .contacts-toolbar,
.smart-global-header + .roadmap-toolbar,
.smart-global-header + .finance-kpis,
.smart-global-header + .quick-chip-row,
.smart-global-header + .filter-grid {
  margin-top: 6px !important;
}

/* subtle glass field and panel language */
.panel,
.table-wrap,
.selector-note-box,
#leadAdvancedCard,
#influencerAdvancedCard,
.review-modal,
.tile-detail-modal,
.contact-modal,
.modal-content,
.popup-card,
.modal-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,251,251,0.90)) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* THIC Glass Tiles for leads, influencers, contacts */
.pipeline-tile,
.contact-tile {
  background:
    radial-gradient(circle at 86% 16%, rgba(47,164,179,0.18), transparent 22%),
    radial-gradient(circle at 14% 88%, rgba(95,143,155,0.10), transparent 18%),
    var(--thic-glass-bg) !important;
  border: 1px solid var(--thic-glass-border) !important;
  box-shadow: var(--thic-glass-shadow) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.pipeline-tile:hover,
.contact-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(15,58,53,0.12) !important;
  border-color: rgba(47,164,179,0.24) !important;
}
.pipeline-tile::after,
.contact-tile::after{
  content:"";
  position:absolute;
  inset:auto auto -34px -26px;
  width:130px;
  height:130px;
  border-radius:50%;
  pointer-events:none;
  background: radial-gradient(circle at center, rgba(47,164,179,0.10), rgba(47,164,179,0));
}
.pipeline-tile .pipeline-grid div,
.contact-meta-line,
.contact-module-chip,
.pipeline-tile .secondary-btn,
.contact-tile .secondary-btn,
.pipeline-tile .contact-pill,
.contact-pill,
.contact-subpill {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pipeline-tile .secondary-btn,
.contact-tile .secondary-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,251,251,0.88)) !important;
  border: 1px solid rgba(47,164,179,0.14) !important;
  box-shadow: 0 8px 18px rgba(15,58,53,0.08);
}
.pipeline-tile .secondary-btn:hover,
.contact-tile .secondary-btn:hover{
  box-shadow: 0 12px 22px rgba(15,58,53,0.11);
  border-color: rgba(47,164,179,0.22) !important;
}

/* make tile content more pleasurable to scan */
.pipeline-tile h4,
.contact-tile h4 {
  color:#0f3138 !important;
  letter-spacing:-0.025em;
}
.pipeline-meta,
.contact-meta,
.contact-owner-line {
  color:#627981 !important;
}
.pipeline-grid {
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
}
.pipeline-grid div {
  min-height: 62px;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(248,252,252,0.70));
}
.pipeline-grid span,
.contact-meta-line {
  line-height:1.45;
}
.contact-meta-line {
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(248,252,252,0.68));
}
.contact-module-chip,
.contact-subpill {
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(248,252,252,0.76));
}
.contact-pill,
.pipeline-tile .contact-pill {
  background: linear-gradient(135deg, rgba(8,34,32,0.82), rgba(14,53,49,0.9)) !important;
  color:#dffbf3 !important;
  border:1px solid rgba(121,255,215,0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 18px rgba(3,18,17,0.18);
  text-shadow: none !important;
}

/* popup and form upgrade */
.tile-detail-modal,
.review-modal,
.contact-modal,
.modal-content,
.popup-card,
.modal-card {
  border-radius: 26px !important;
  box-shadow: 0 30px 80px rgba(15,23,42,0.22) !important;
}
.tile-detail-overlay,
.review-overlay,
.modal-overlay,
.modal-backdrop,
.overlay {
  background: rgba(10,24,34,0.34) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.review-header,
.modal-header,
.tile-detail-header,
.popup-header {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.review-header::after,
.modal-header::after,
.tile-detail-header::after,
.popup-header::after {
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:1px;
  background: linear-gradient(90deg, rgba(47,164,179,0.18), rgba(47,164,179,0.06), rgba(47,164,179,0.18));
}
.modal-content input,
.modal-content select,
.modal-content textarea,
.contact-modal input,
.contact-modal select,
.contact-modal textarea,
.review-modal input,
.review-modal select,
.review-modal textarea,
.tile-detail-modal input,
.tile-detail-modal select,
.tile-detail-modal textarea {
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,250,251,0.94)) !important;
  border: 1px solid rgba(47,164,179,0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 8px 18px rgba(15,58,53,0.04) !important;
}
.modal-content select,
.contact-modal select,
.review-modal select,
.tile-detail-modal select{
  color:#f4fffb !important;
  background:rgba(9,28,26,0.92) !important;
}
.modal-content select option,
.contact-modal select option,
.review-modal select option,
.tile-detail-modal select option{
  background:#102321 !important;
  color:#effff9 !important;
}
.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus,
.contact-modal input:focus,
.contact-modal select:focus,
.contact-modal textarea:focus,
.review-modal input:focus,
.review-modal select:focus,
.review-modal textarea:focus,
.tile-detail-modal input:focus,
.tile-detail-modal select:focus,
.tile-detail-modal textarea:focus {
  border-color:#2fa4b3 !important;
  box-shadow: 0 0 0 4px rgba(47,164,179,0.12), inset 0 1px 0 rgba(255,255,255,0.85) !important;
}

/* global row spacing so grids and cards breathe more */
.dashboard-stats-grid,
.dashboard-spotlight-grid,
.dashboard-mission-grid,
.dashboard-two-col,
.pipeline-tiles-grid,
.contacts-tiles-grid,
.influencer-tiles-grid,
.finance-kpis,
.stats-grid,
.filter-grid,
.quick-chip-row {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

@media (max-width: 900px){
  .pipeline-grid{ grid-template-columns: 1fr !important; }
}

/* v49 popup upgrade + corner discipline */
:root {
  --thic-radius-main: 14px;
  --thic-radius-inner: 10px;
  --thic-modal-bg: rgba(255,255,255,0.92);
  --thic-modal-line: rgba(15,23,42,0.08);
  --thic-modal-shadow: 0 18px 40px rgba(8,30,33,0.16), 0 4px 10px rgba(8,30,33,0.06);
  --thic-focus-ring: rgba(31,143,137,0.14);
}

.review-overlay,
.tile-detail-overlay,
.command-overlay {
  background: rgba(10,20,22,0.24) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.review-modal,
.tile-detail-modal,
.command-modal,
.contact-modal,
.finance-modal,
.roadmap-modal {
  background: var(--thic-modal-bg) !important;
  border: 1px solid var(--thic-modal-line) !important;
  border-radius: var(--thic-radius-main) !important;
  box-shadow: var(--thic-modal-shadow) !important;
}

html,
body{
  scrollbar-color: rgba(92, 201, 179, 0.78) rgba(8, 24, 23, 0.94);
  scrollbar-width: thin;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar{
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track{
  background: rgba(8, 24, 23, 0.94);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(46, 176, 156, 0.96), rgba(101, 255, 219, 0.82));
  border-radius: 999px;
  border: 2px solid rgba(8, 24, 23, 0.94);
}

.review-modal,
.contact-modal,
.finance-modal,
.roadmap-modal {
  padding: 28px !important;
}

.review-header,
.contact-modal-header,
.tile-detail-header {
  margin-bottom: 18px !important;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(19,108,104,0.14);
}

.review-header h3,
.contact-modal h3,
.tile-detail-modal h3 {
  font-size: 26px;
  line-height: 1.1;
  margin: 0;
  color: #17363a;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.review-modal input,
.review-modal select,
.review-modal textarea,
.contact-modal input,
.contact-modal select,
.contact-modal textarea,
.tile-detail-modal input,
.tile-detail-modal select,
.tile-detail-modal textarea,
.command-input-wrap input {
  border-radius: var(--thic-radius-inner) !important;
  border: 1px solid rgba(19,108,104,0.10) !important;
  background: rgba(255,255,255,0.78) !important;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.review-modal input:focus,
.review-modal select:focus,
.review-modal textarea:focus,
.contact-modal input:focus,
.contact-modal select:focus,
.contact-modal textarea:focus,
.tile-detail-modal input:focus,
.tile-detail-modal select:focus,
.tile-detail-modal textarea:focus,
.command-input-wrap input:focus {
  outline: none !important;
  border-color: rgba(31,143,137,0.42) !important;
  box-shadow: 0 0 0 4px var(--thic-focus-ring) !important;
}

.thic-tile-card,
.pipeline-tile,
.contact-tile,
.stat-card,
.dashboard-spotlight-card,
.dashboard-mission-card,
.card,
.tile,
.portal-card,
.selector-note-box {
  border-radius: var(--thic-radius-main) !important;
}

.secondary-btn,
.primary-btn,
button.secondary,
button.primary,
.thic-modal-close {
  border-radius: 12px !important;
}

.contact-module-chip,
.contact-subpill,
.contact-pill,
.dashboard-badge,
.quick-chip,
.contact-badge,
.status-pill {
  border-radius: 999px !important;
}


/* v50 finance mission control restore */
.finance-page-header{ margin-bottom:18px !important; }
.finance-hero-strip{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:0 0 18px; }
.finance-hero-item{ background:linear-gradient(135deg, rgba(20,109,104,0.92) 0%, rgba(33,152,143,0.92) 58%, rgba(87,188,180,0.9) 100%); color:#fff; border-radius:14px; padding:16px 18px; box-shadow:0 12px 28px rgba(8,30,33,0.08); border:1px solid rgba(255,255,255,0.14); }
.finance-hero-label{ display:block; font-size:11px; text-transform:uppercase; letter-spacing:.08em; opacity:.8; margin-bottom:6px; }
.finance-kpis{ gap:18px !important; margin-bottom:18px !important; }
.finance-kpi{ background:linear-gradient(135deg, rgba(20,109,104,0.92) 0%, rgba(33,152,143,0.92) 58%, rgba(87,188,180,0.9) 100%) !important; color:#fff !important; border:1px solid rgba(255,255,255,0.12) !important; border-radius:14px !important; min-height:128px; box-shadow:0 12px 28px rgba(8,30,33,0.08); }
.finance-kpi h4, .finance-kpi div{ color:#fff !important; }
.finance-kpi h4{ opacity:.85; font-size:12px !important; text-transform:uppercase; letter-spacing:.08em; }
.finance-kpi div{ font-size:38px !important; line-height:1.05; }
.finance-kpi small{ display:block; margin-top:10px; color:rgba(244,255,252,0.82); font-size:13px; line-height:1.45; }
.finance-kpi-button{ width:100%; text-align:left; cursor:pointer; transition:transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.finance-kpi-button:hover,
.finance-kpi-button.active{ transform:translateY(-2px); border-color:rgba(255,255,255,0.24) !important; box-shadow:0 20px 38px rgba(8,30,33,0.14) !important; }
.finance-kpi-detail{ margin-bottom:18px; }
.finance-two-col{ gap:18px !important; margin-bottom:18px !important; }
.finance-section{ background:linear-gradient(180deg, rgba(5,27,27,0.96) 0%, rgba(6,33,32,0.94) 100%) !important; border:1px solid rgba(59,163,151,0.18) !important; border-radius:14px !important; box-shadow:0 14px 30px rgba(3,14,14,0.22) !important; overflow:hidden; }
.finance-section-toggle{ background:linear-gradient(180deg, rgba(11,49,48,0.98) 0%, rgba(8,36,36,0.98) 100%) !important; color:#e8fffb !important; min-height:62px; font-weight:700; letter-spacing:.01em; }
.finance-section-body{ background:rgba(4,24,24,0.84) !important; }
.finance-section table{ width:100%; border-collapse:separate; border-spacing:0 10px; }
.finance-section thead th{ font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:rgba(209,244,238,0.82); padding:0 10px 6px; }
.finance-section tbody td{ background:rgba(6,38,37,0.88); border-top:1px solid rgba(59,163,151,0.10); border-bottom:1px solid rgba(59,163,151,0.10); padding:12px 10px; color:#e8fffb; }
.finance-section tbody td:first-child{ border-left:1px solid rgba(59,163,151,0.10); border-top-left-radius:10px; border-bottom-left-radius:10px; }
.finance-section tbody td:last-child{ border-right:1px solid rgba(59,163,151,0.10); border-top-right-radius:10px; border-bottom-right-radius:10px; }
.finance-summary-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.finance-summary-grid > div{ background:rgba(8,42,41,0.9); border:1px solid rgba(59,163,151,0.12); border-radius:10px; padding:14px; color:#e8fffb; }
.finance-upload-msg{ color:#d8fffa; }
.finance-section .panel-subtle{ background:rgba(8,42,41,0.9) !important; border:1px solid rgba(59,163,151,0.12) !important; border-radius:10px !important; color:rgba(226,252,247,0.84); }
.finance-section .upload-row{ gap:12px; flex-wrap:wrap; }
.finance-section input[type=text], .finance-section input[type=number], .finance-section input[type=date], .finance-section input[type=month], .finance-section select{ min-height:42px; border-radius:10px; background:rgba(4,24,24,0.92); border:1px solid rgba(59,163,151,0.18); color:#e8fffb; }
.finance-section input::placeholder{ color:rgba(188,227,221,0.52); }
.finance-section label,
.finance-section strong,
.finance-section p{ color:inherit; }
.finance-file-picker{ display:flex; align-items:center; gap:12px; min-height:42px; padding:12px; border-radius:10px; background:rgba(4,24,24,0.92); border:1px solid rgba(59,163,151,0.18); }
.finance-file-input{ position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.finance-file-trigger{ display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; cursor:pointer; }
.finance-file-name{ color:rgba(226,252,247,0.78); font-size:13px; line-height:1.35; word-break:break-word; }
.finance-supplier-filters{ margin:0 0 12px; }
.finance-supplier-search{ margin:0 0 14px; }
.finance-section .quick-chip{ background:rgba(8,42,41,0.92); border-color:rgba(59,163,151,0.18); color:#dffcf7; }
.finance-section .quick-chip.active{ background:linear-gradient(135deg, rgba(20,109,104,0.92) 0%, rgba(33,152,143,0.92) 100%); border-color:rgba(120,255,229,0.22); color:#fff; }
.finance-status-chip{ display:inline-flex; align-items:center; justify-content:center; min-width:72px; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; letter-spacing:.02em; }
.finance-status-chip{ background:rgba(146,174,170,0.12); color:#d7efeb; border:1px solid rgba(146,174,170,0.2); }
.finance-status-chip.is-open{ background:rgba(255,181,72,0.16); color:#ffd896; border:1px solid rgba(255,181,72,0.28); }
.finance-status-chip.is-paid{ background:rgba(70,200,154,0.16); color:#a9f3d4; border:1px solid rgba(70,200,154,0.28); }
.finance-inline-note{ margin-top:4px; font-size:12px; color:rgba(216,255,250,0.68); }
.finance-section .primary-btn, .finance-section .secondary-btn{ min-height:42px; }
@media (max-width: 980px){ .finance-hero-strip{ grid-template-columns:1fr; } .finance-file-picker{ flex-direction:column; align-items:flex-start; } }


/* ===== v56 control panels + reports ===== */
.module-control-panel{margin:0 0 20px;padding:20px 22px;border-radius:18px;background:radial-gradient(circle at top left, rgba(52,188,162,0.38), transparent 38%), linear-gradient(135deg, rgba(9,43,56,0.98) 0%, rgba(13,74,72,0.96) 45%, rgba(22,115,101,0.92) 100%);color:#fff;box-shadow:0 22px 44px rgba(6,18,24,0.18);border:1px solid rgba(255,255,255,0.12);position:relative;overflow:hidden;}
.module-control-panel::after{content:'';position:absolute;inset:auto -12% -42% auto;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle, rgba(101,255,211,0.18), transparent 65%);pointer-events:none;}
.module-control-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px;position:relative;z-index:1;}
.module-control-kicker{font-size:11px;letter-spacing:.1em;text-transform:uppercase;opacity:.78;font-weight:800;}
.module-control-head h3{margin:2px 0 0;font-size:24px;line-height:1.1;color:#fff;max-width:900px;}
.module-control-badge{border:1px solid rgba(255,255,255,0.18);background:rgba(255,255,255,0.10);padding:8px 12px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap;backdrop-filter:blur(8px);}
.module-control-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;position:relative;z-index:1;}
.module-control-stat{padding:15px 16px;border-radius:14px;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.10);display:flex;flex-direction:column;gap:6px;backdrop-filter:blur(10px);box-shadow:inset 0 1px 0 rgba(255,255,255,0.05);}
.module-control-stat .label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.78;font-weight:700;}
.module-control-stat strong{font-size:30px;line-height:1;font-weight:800;color:#fff;}
.module-control-stat small{font-size:12px;opacity:.82;}
.module-control-stat-theme{justify-content:space-between;}
.module-control-stat-theme strong{font-size:18px;line-height:1.15;}
.module-control-stat-theme .theme-tile-actions{margin-top:10px;}
.module-control-utility-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;position:relative;z-index:1;flex-wrap:wrap;}
.module-control-strip{display:flex;flex-direction:column;gap:4px;min-width:240px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.10);}
.module-control-strip-label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.72;font-weight:700;}
.module-control-strip strong{font-size:16px;line-height:1.2;color:#fff;}
.module-control-actions{display:flex;gap:10px;flex-wrap:wrap;}
.module-control-action{appearance:none;border:1px solid rgba(255,255,255,0.20);background:rgba(255,255,255,0.12);color:#fff;border-radius:999px;padding:10px 14px;font-size:12px;font-weight:700;cursor:pointer;transition:all .18s ease;position:relative;z-index:2;pointer-events:auto;}
.module-control-action:hover{transform:translateY(-1px);background:rgba(255,255,255,0.20);}
.module-control-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;position:relative;z-index:1;}
.module-control-note{padding:11px 14px;border-radius:12px;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.10);font-size:13px;line-height:1.4;}
.panel-spotlight{box-shadow:0 0 0 3px rgba(61,199,164,0.35), 0 18px 36px rgba(17,70,61,0.12) !important;transition:box-shadow .2s ease;}
.reports-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin:0 0 18px;}
.report-card{display:flex;flex-direction:column;gap:8px;align-items:flex-start;text-align:left;padding:18px;min-width:0;border-radius:14px;border:1px solid rgba(145,255,219,0.14);background:rgba(255,255,255,0.04);box-shadow:0 10px 24px rgba(8,30,33,0.06);cursor:pointer;transition:transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;}
.report-card:hover{transform:translateY(-2px);box-shadow:0 16px 30px rgba(3,16,14,0.18);background:rgba(74,204,170,0.16);border-color:rgba(145,255,219,0.26);}
.report-card-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#6f8287;font-weight:700;}
.report-card strong{font-size:17px;color:#17363a;}
.report-card span{font-size:13px;line-height:1.45;color:#58737a;}
.report-card strong,
.report-card span,
.report-card small{
  max-width:100%;
  overflow-wrap:anywhere;
}
.report-preview-card{margin-top:4px;padding:18px 20px;border-radius:14px;background:linear-gradient(135deg, rgba(20,109,104,0.94) 0%, rgba(33,152,143,0.92) 60%, rgba(87,188,180,0.88) 100%);color:#fff;box-shadow:0 12px 28px rgba(8,30,33,0.08);}
.report-preview-card .module-control-head h3,.report-preview-card .module-control-kicker{color:#fff;}
.investor-report-shell{
  padding:0 !important;
  background:
    radial-gradient(circle at 16% 18%, rgba(72,211,176,0.10), transparent 26%),
    linear-gradient(145deg, rgba(7,23,22,0.98), rgba(13,43,40,0.96)) !important;
  border:1px solid rgba(145,255,219,0.14) !important;
  box-shadow:0 24px 56px rgba(3,16,14,0.22) !important;
}
.investor-report-card small{font-size:12px;line-height:1.4;color:rgba(220,244,236,0.7);}
.investor-report-page{
  border-radius:18px;
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(72,211,176,0.10), transparent 24%),
    linear-gradient(145deg, rgba(7,25,23,0.96), rgba(13,44,40,0.94));
  color:#f3fffb;
}
.investor-report-topbar{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:28px 30px 18px;border-bottom:1px solid rgba(145,255,219,0.12);}
.investor-report-topbar h3{margin:4px 0 8px;color:#f3fffb !important;font-size:34px;line-height:1.05;}
.investor-report-topbar p{margin:0;color:rgba(224,247,239,0.82) !important;}
.investor-report-actions{display:flex;gap:10px;flex-wrap:wrap;}
.investor-report-hero{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:0 30px 24px;}
.investor-report-hero div,.investor-report-metric{
  padding:18px;
  border-radius:16px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(145,255,219,0.14);
  box-shadow:0 16px 30px rgba(3,16,14,0.14);
}
.investor-report-hero strong,.investor-report-metric strong{display:block;font-size:26px;line-height:1.05;color:#f3fffb;}
.investor-report-hero span,.investor-report-metric span{display:block;margin-top:6px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:rgba(191,255,233,0.72);font-weight:700;}
.investor-report-body{padding:0 30px 30px;display:flex;flex-direction:column;gap:18px;}
.investor-report-section{
  padding:22px 24px;
  border-radius:18px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(145,255,219,0.14);
  box-shadow:0 16px 30px rgba(3,16,14,0.14);
}
.investor-report-section h4{margin:0 0 12px;color:#f3fffb;font-size:18px;}
.investor-report-section p{margin:0 0 12px;color:rgba(224,247,239,0.82);line-height:1.7;}
.investor-report-section p:last-child{margin-bottom:0;}
.investor-report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
@media (max-width: 1100px){.investor-report-hero,.investor-report-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width: 720px){.investor-report-topbar,.investor-report-body{padding-left:18px;padding-right:18px;}.investor-report-hero{padding-left:18px;padding-right:18px;grid-template-columns:1fr;}.investor-report-grid{grid-template-columns:1fr;}.investor-report-topbar{flex-direction:column;}.investor-report-topbar h3{font-size:28px;}}
@media print{
  body *{visibility:hidden !important;}
  #reportsPreview, #reportsPreview *{visibility:visible !important;}
  #reportsPreview{position:absolute;left:0;top:0;width:100%;}
  .investor-report-page{
    box-shadow:none !important;
    border-radius:0 !important;
    background:#fff !important;
    color:#17363a !important;
  }
  .investor-report-topbar h3,
  .investor-report-section h4,
  .investor-report-hero strong,
  .investor-report-metric strong{color:#17363a !important;}
  .investor-report-topbar p,
  .investor-report-section p,
  .investor-report-hero span,
  .investor-report-metric span{color:#5d767c !important;}
  .investor-report-hero div,
  .investor-report-metric,
  .investor-report-section{
    background:#fff !important;
    border:1px solid rgba(23,54,58,0.08) !important;
    box-shadow:none !important;
  }
  .investor-report-actions{display:none !important;}
  .investor-report-shell{background:#fff !important;}
}
@media (max-width: 1200px){.module-control-grid,.radar-control-centers{grid-template-columns:repeat(2,minmax(0,1fr));}.module-control-notes{grid-template-columns:1fr;}}
@media (max-width: 980px){.module-control-grid,.reports-grid,.radar-control-centers{grid-template-columns:1fr;}.module-control-head{flex-direction:column;}.module-control-badge{align-self:flex-start;}.module-control-utility-row{flex-direction:column;align-items:stretch;}.module-control-actions{width:100%;}.module-control-action{flex:1;justify-content:center;}.radar-control-card strong{font-size:18px;}}

/* THIC Radar Navigation */
.radar-home-shell{
  display:grid;
  gap:22px;
}
.radar-home-hero{
  display:flex;
  justify-content:space-between;
  align-items:stretch;
  gap:18px;
  padding:26px 28px;
  border-radius:26px;
  background:
    radial-gradient(circle at top left, rgba(69, 196, 156, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(64, 133, 255, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(8, 18, 18, 0.96), rgba(15, 29, 29, 0.92));
  color:#effcf8;
  border:1px solid rgba(113, 255, 205, 0.14);
  box-shadow:0 28px 90px rgba(1, 11, 10, 0.42);
}
.radar-eyebrow{
  font-size:11px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:rgba(203,255,240,.72);
  margin-bottom:8px;
}
.radar-home-hero h2{
  margin:0 0 10px;
  font-size:36px;
  line-height:1.05;
  color:#fff;
}
.radar-home-hero p{
  margin:0;
  max-width:700px;
  color:rgba(232, 248, 244, 0.8);
}
.radar-hero-side{ display:flex; min-width:280px; }
.radar-status-card{
  width:100%;
  padding:18px 20px;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  border:1px solid rgba(255,255,255,0.1);
  backdrop-filter:blur(16px);
}
.radar-status-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:rgba(216, 244, 237, 0.7);
}
.radar-status-value{
  margin-top:10px;
  font-size:38px;
  font-weight:700;
  color:#fff;
}
.radar-status-caption{
  margin:6px 0 12px;
  color:rgba(223, 247, 240, 0.74);
}
.radar-workspace-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.radar-workspace-btn{
  border:1px solid rgba(104, 138, 134, 0.22);
  background:#fff;
  color:#17322d;
  border-radius:999px;
  padding:10px 16px;
  font-weight:600;
  cursor:pointer;
  transition:all .22s ease;
}
.radar-workspace-btn:hover,
.radar-workspace-btn.active{
  color:#fff;
  background:linear-gradient(135deg, rgba(17,124,109,0.96), rgba(44,167,154,0.94));
  box-shadow:0 14px 28px rgba(10, 80, 71, 0.22);
  transform:translateY(-1px);
}
.radar-layout-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.4fr) minmax(320px, .86fr);
  gap:22px;
  align-items:start;
}
.radar-control-centers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:0 0 18px;}
.radar-control-card{appearance:none;border:1px solid rgba(24,105,92,0.12);background:linear-gradient(180deg,#ffffff,#f6fbfa);border-radius:18px;padding:18px 18px 16px;text-align:left;display:flex;flex-direction:column;gap:8px;box-shadow:0 16px 30px rgba(10,43,39,0.08);cursor:pointer;transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;}
.radar-control-card:hover{transform:translateY(-3px);box-shadow:0 22px 38px rgba(10,43,39,0.12);border-color:rgba(24,105,92,0.18);}
.radar-control-card.active{border-color:rgba(103,255,188,0.42);box-shadow:0 0 0 1px rgba(103,255,188,0.18) inset,0 24px 42px rgba(10,43,39,0.18);}
.radar-control-kicker{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#4a7f78;font-weight:800;}
.radar-control-card strong{font-size:20px;color:#0c3c3b;line-height:1.1;}
.radar-control-card small{font-size:14px;color:#53736f;line-height:1.45;}
.radar-control-meta{font-size:12px;color:#168f79;font-weight:700;}
.radar-stage{
  position:relative;
  overflow:hidden;
  min-height:760px;
  padding:0;
  background:
    radial-gradient(circle at center, rgba(56, 171, 137, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(9,20,20,0.98), rgba(11,22,22,0.94));
  border:1px solid rgba(92, 202, 173, 0.12);
  box-shadow:0 26px 80px rgba(3, 12, 11, 0.35);
}
.radar-stage-shell{
  position:relative;
  min-height:760px;
}
.radar-ring{
  position:absolute;
  inset:50%;
  transform:translate(-50%, -50%);
  border-radius:999px;
  border:1px solid rgba(152, 255, 225, 0.11);
  box-shadow:0 0 0 1px rgba(41, 92, 83, 0.04) inset;
}
.radar-ring-inner{ width:270px; height:270px; }
.radar-ring-mid{ width:480px; height:480px; }
.radar-ring-outer{ width:690px; height:690px; }
.radar-sweep{
  position:absolute;
  width:380px;
  height:380px;
  left:50%;
  top:50%;
  transform-origin:0 0;
  background:linear-gradient(90deg, rgba(92,255,207,0.22), rgba(92,255,207,0.04), transparent 72%);
  clip-path:polygon(0 0, 100% 10%, 100% 22%, 0 0);
  animation:radarSweep 10s linear infinite;
  opacity:.8;
}
@keyframes radarSweep{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}
.radar-core,
.radar-node{
  position:absolute;
  border:none;
  cursor:pointer;
}
.radar-core{
  left:50%;
  top:50%;
  width:220px;
  height:220px;
  transform:translate(-50%, -50%);
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:10px;
  color:#fff;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,0.2), transparent 30%),
    linear-gradient(145deg, rgba(13,51,48,0.96), rgba(20,93,84,0.92));
  box-shadow:0 0 0 1px rgba(179, 255, 235, 0.14), 0 0 65px rgba(52, 189, 151, 0.24), inset 0 0 30px rgba(255,255,255,0.05);
}
.radar-core-kicker{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:rgba(228, 252, 245, 0.7);
}
.radar-core strong{ font-size:26px; }
.radar-core small{
  max-width:150px;
  line-height:1.35;
  color:rgba(231, 248, 243, 0.78);
}
.radar-node{
  width:160px;
  min-height:104px;
  padding:16px 16px 14px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:8px;
  border-radius:28px;
  color:#eefcf8;
  background:linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
  backdrop-filter:blur(14px);
  box-shadow:0 22px 38px rgba(2, 14, 13, 0.2);
  transition:transform .24s ease, box-shadow .24s ease, opacity .24s ease, filter .24s ease;
}
.radar-node:hover{
  transform:translateY(-4px) scale(1.02);
  box-shadow:0 30px 44px rgba(2, 14, 13, 0.28), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.radar-node-meta{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.14em;
  opacity:.72;
}
.radar-node strong{
  font-size:20px;
  line-height:1.05;
}
.radar-node small{
  font-size:15px;
  color:rgba(245,255,252,0.9);
}
.radar-node-hot{ border:1px solid rgba(255, 182, 98, 0.28); }
.radar-node-violet{ border:1px solid rgba(180, 139, 255, 0.26); }
.radar-node-sky{ border:1px solid rgba(119, 196, 255, 0.24); }
.radar-node-emerald{ border:1px solid rgba(103, 255, 188, 0.24); }
.radar-node-amber{ border:1px solid rgba(255, 202, 92, 0.25); }
.radar-node-teal{ border:1px solid rgba(94, 245, 219, 0.24); }
.radar-node-lime{ border:1px solid rgba(198, 255, 108, 0.24); }
.radar-node-indigo{ border:1px solid rgba(152, 160, 255, 0.25); }
.radar-node-top-left{ left:12%; top:12%; }
.radar-node-top-right{ right:12%; top:16%; }
.radar-node-mid-left{ left:7%; top:42%; }
.radar-node-mid-right{ right:7%; top:44%; }
.radar-node-bottom-left{ left:16%; bottom:14%; }
.radar-node-bottom-right{ right:16%; bottom:16%; }
.radar-node-inner-top{ left:50%; top:16%; transform:translateX(-50%); }
.radar-node-inner-bottom{ left:50%; bottom:13%; transform:translateX(-50%); }
.radar-node-inner-right{ right:24%; top:30%; }
.radar-node-inner-top:hover,
.radar-node-inner-bottom:hover{ transform:translateX(-50%) translateY(-4px) scale(1.02); }
.radar-node-inner-right:hover{ transform:translateY(-4px) scale(1.02); }
.radar-node.is-dimmed{
  opacity:.22;
  filter:saturate(.5);
}
.radar-node.is-highlighted{
  box-shadow:0 0 0 1px rgba(255,255,255,.05) inset, 0 0 42px rgba(77, 240, 179, 0.22), 0 24px 40px rgba(0, 0, 0, 0.24);
}
.radar-side-stack{
  display:grid;
  gap:22px;
}
.radar-support-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  margin:0 0 24px;
}
.radar-support-hero{
  grid-column:span 2;
}
.radar-support-hero-wide{
  grid-column:1 / -1;
}
.radar-layout-grid-solo{
  grid-template-columns:minmax(0,1fr) !important;
}
.radar-preview-panel,
.radar-activity-panel{
  padding:22px;
}
.radar-panel-kicker{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:#5b7f77;
  margin-bottom:10px;
}
.radar-preview-panel h3,
.radar-activity-panel h3{
  margin:0 0 16px;
  color:#14312d;
}
.radar-preview-stats{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-bottom:14px;
}
.radar-preview-stat{
  background:linear-gradient(180deg, rgba(248,251,250,0.98), rgba(236,244,241,0.98));
  border:1px solid rgba(125, 154, 146, 0.12);
  border-radius:18px;
  padding:14px 14px 12px;
}
.radar-preview-stat span{
  display:block;
  margin-bottom:8px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#6b7f7a;
}
.radar-preview-stat strong{
  display:block;
  color:#14312d;
  font-size:17px;
  line-height:1.25;
}
.radar-pulse-copy{
  margin:0;
  color:#36544d;
  line-height:1.6;
}
.founder-signals-panel{
  display:grid;
  gap:16px;
}
.founder-signals-activity-block{
  display:grid;
  gap:14px;
  margin-top:6px;
  padding-top:18px;
  border-top:1px solid rgba(133,255,214,0.10);
}
.founder-signals-activity-title{
  margin:0;
}
.founder-signals-activity-feed{
  gap:14px;
}
.radar-activity-feed{
  display:grid;
  gap:10px;
}
.radar-activity-overview{
  display:grid;
  gap:14px;
}
.radar-activity-hero{
  padding:16px 18px;
  border-radius:18px;
  background:
    radial-gradient(circle at top right, rgba(124,255,220,0.16), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border:1px solid rgba(133,255,214,0.12);
}
.radar-activity-kicker{
  display:block;
  margin-bottom:8px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(210,251,239,0.68);
}
.radar-activity-hero strong{
  display:block;
  font-size:30px;
  line-height:1;
  color:#f4fffc;
}
.radar-activity-hero span{
  display:block;
  margin-top:8px;
  color:rgba(220,243,237,0.78);
  line-height:1.45;
}
.radar-activity-sparks{
  display:grid;
  grid-template-columns:repeat(8, minmax(0, 1fr));
  align-items:end;
  gap:8px;
  min-height:72px;
}
.radar-activity-spark{
  display:block;
  border-radius:999px 999px 10px 10px;
  background:linear-gradient(180deg, rgba(141,255,225,0.92), rgba(36,142,126,0.48));
  box-shadow:0 10px 18px rgba(0,0,0,0.16);
}
.radar-activity-spark.spark-1{
  background:linear-gradient(180deg, rgba(123,229,255,0.92), rgba(47,122,173,0.42));
}
.radar-activity-spark.spark-2{
  background:linear-gradient(180deg, rgba(196,178,255,0.92), rgba(101,76,179,0.42));
}
.radar-activity-spark.spark-3{
  background:linear-gradient(180deg, rgba(255,213,140,0.92), rgba(171,111,47,0.42));
}
.radar-activity-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
.radar-activity-tile{
  display:flex;
  flex-direction:column;
  gap:0;
  min-height:148px;
  padding:14px 14px 12px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border:1px solid rgba(133,255,214,0.08);
  overflow:hidden;
}
.radar-activity-tile span{
  display:block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(210,251,239,0.66);
}
.radar-activity-tile strong{
  display:block;
  margin-top:8px;
  font-size:22px;
  line-height:1.05;
  color:#f4fffc;
}
.radar-activity-tile small{
  display:block;
  margin-top:6px;
  color:rgba(220,243,237,0.76);
  line-height:1.35;
}
.radar-activity-mini-chart{
  display:flex;
  align-items:flex-end;
  gap:8px;
  min-height:48px;
  margin-top:auto;
  padding-top:14px;
}
.mini-bar{
  display:block;
  width:12px;
  min-height:10px;
  border-radius:999px 999px 7px 7px;
  box-shadow:0 10px 22px rgba(0,0,0,0.18);
}
.mini-bar-0{
  background:linear-gradient(180deg, rgba(141,255,225,0.96), rgba(36,142,126,0.44));
}
.mini-bar-1{
  background:linear-gradient(180deg, rgba(123,229,255,0.96), rgba(47,122,173,0.42));
}
.mini-bar-2{
  background:linear-gradient(180deg, rgba(127,231,223,0.94), rgba(32,130,130,0.42));
}
.mini-bar-3{
  background:linear-gradient(180deg, rgba(132,198,230,0.94), rgba(30,103,150,0.40));
}
.radar-activity-item{
  border-radius:16px;
  padding:13px 14px;
  background:linear-gradient(180deg, rgba(241,247,245,0.95), rgba(233,242,238,0.95));
  color:#214139;
  border:1px solid rgba(125, 154, 146, 0.12);
}
@media (max-width: 1180px){
  .radar-support-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .radar-support-hero{ grid-column:1 / -1; }
  .radar-support-hero-wide{ grid-column:1 / -1; }
  .radar-layout-grid{ grid-template-columns:1fr; }
}
@media (max-width: 980px){
  .radar-home-hero{ flex-direction:column; }
  .radar-support-grid{ grid-template-columns:1fr; }
  .radar-support-hero{ grid-column:auto; }
  .radar-support-hero-wide{ grid-column:auto; }
  .radar-activity-grid{ grid-template-columns:1fr; }
  .radar-activity-tile{ min-height:132px; }
  .radar-stage,
  .radar-stage-shell{ min-height:880px; }
  .radar-ring-outer{ width:560px; height:560px; }
  .radar-ring-mid{ width:390px; height:390px; }
}
@media (max-width: 760px){
  .radar-stage,
  .radar-stage-shell{ min-height:1120px; }
  .radar-ring-outer{ width:420px; height:420px; }
  .radar-ring-mid{ width:300px; height:300px; }
  .radar-ring-inner{ width:180px; height:180px; }
  .radar-core{ width:164px; height:164px; }
  .radar-core strong{ font-size:20px; }
  .radar-node{ width:138px; min-height:98px; padding:14px; }
  .radar-node strong{ font-size:18px; }
  .radar-node-top-left{ left:4%; top:11%; }
  .radar-node-top-right{ right:4%; top:15%; }
  .radar-node-mid-left{ left:3%; top:37%; }
  .radar-node-mid-right{ right:3%; top:40%; }
  .radar-node-inner-top{ top:26%; }
  .radar-node-inner-bottom{ bottom:21%; }
  .radar-node-inner-right{ right:10%; top:28%; }
  .radar-node-bottom-left{ left:8%; bottom:11%; }
  .radar-node-bottom-right{ right:8%; bottom:12%; }
  .radar-preview-stats{ grid-template-columns:1fr; }
}


/* Phase 3 mission structure */
.module-mission-deck{margin:0 0 22px;padding:20px 22px;border-radius:22px;background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,251,250,0.96));border:1px solid rgba(20,96,84,0.1);box-shadow:0 18px 34px rgba(7,36,31,0.08);}
.module-mission-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:16px;}
.module-mission-eyebrow{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#4b837a;font-weight:800;margin-bottom:8px;}
.module-mission-head h3{margin:0 0 6px;color:#0f3937;font-size:24px;line-height:1.08;}
.module-mission-head p{margin:0;max-width:760px;color:#54736d;}
.module-mission-chips{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;}
.module-mission-chip{border:none;background:linear-gradient(135deg,#0f675d,#25a995);color:#fff;border-radius:999px;padding:10px 15px;font-weight:700;cursor:pointer;box-shadow:0 14px 28px rgba(9,71,64,0.16);}
.module-mission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.module-mission-card{padding:16px 16px 15px;border-radius:18px;background:linear-gradient(180deg,#ffffff,#f8fcfb);border:1px solid rgba(24,105,92,0.1);box-shadow:0 12px 26px rgba(10,43,39,0.06);display:flex;flex-direction:column;gap:8px;}
.module-mission-kicker{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#5a877f;font-weight:800;}
.module-mission-card strong{font-size:18px;color:#0c3c3b;line-height:1.1;}
.module-mission-card small{font-size:14px;color:#54736d;line-height:1.45;}
.radar-command-deck{padding:20px 20px 24px;border-radius:28px;background:radial-gradient(circle at top left, rgba(49,165,140,0.16), transparent 28%), linear-gradient(180deg, rgba(7,16,16,0.94), rgba(10,22,21,0.95));border:1px solid rgba(111,255,206,0.1);box-shadow:0 28px 70px rgba(4,11,10,0.3);}
.radar-command-deck .radar-workspace-toolbar{margin-bottom:14px;}
.radar-command-deck .radar-workspace-btn{background:rgba(255,255,255,0.06);color:#e8fbf6;border-color:rgba(122,255,214,0.14);backdrop-filter:blur(12px);}
.radar-command-deck .radar-workspace-btn:hover,.radar-command-deck .radar-workspace-btn.active{background:linear-gradient(135deg, rgba(16,110,98,0.96), rgba(44,167,154,0.94));}
.radar-command-deck .radar-control-card{background:linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));border-color:rgba(133,255,214,0.12);box-shadow:0 16px 34px rgba(0,0,0,0.18);}
.radar-command-deck .radar-control-card strong{color:#f3fffc;}
.radar-command-deck .radar-control-card small{color:rgba(220,243,237,0.74);}
.radar-command-deck .radar-control-kicker{color:rgba(188,255,232,0.72);}
.radar-command-deck .radar-control-meta{color:#78f0d3;}
.radar-command-deck .radar-stage{background:radial-gradient(circle at center, rgba(56,171,137,0.18), transparent 30%), radial-gradient(circle at center, rgba(56,171,137,0.06), transparent 55%), linear-gradient(180deg, rgba(6,15,15,0.98), rgba(10,20,20,0.96));}
.radar-command-deck .radar-stage-shell::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at center, rgba(92,255,207,0.05), transparent 40%), repeating-radial-gradient(circle at center, rgba(163,255,231,0.05) 0 1px, transparent 1px 88px);pointer-events:none;}
.radar-command-deck .radar-node{background:linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));box-shadow:0 24px 44px rgba(0,0,0,0.32), inset 0 0 0 1px rgba(255,255,255,0.05);}
.radar-command-deck .radar-node strong{color:#ffffff;text-shadow:0 2px 10px rgba(0,0,0,0.18);}
.radar-command-deck .radar-node small,.radar-command-deck .radar-node-meta{color:rgba(236,252,247,0.88);}
.radar-command-deck .radar-preview-panel,.radar-command-deck .radar-activity-panel{background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));border:1px solid rgba(140,255,220,0.12);box-shadow:0 22px 38px rgba(0,0,0,0.22);}
.radar-command-deck .radar-panel-kicker,.radar-command-deck .radar-preview-stat span{color:rgba(202,251,237,0.72);}
.radar-command-deck .radar-preview-panel h3,.radar-command-deck .radar-activity-panel h3,.radar-command-deck .radar-preview-stat strong,.radar-command-deck .radar-activity-item{color:#f4fffc;}
@media (max-width: 1200px){.module-mission-grid{grid-template-columns:1fr;}.module-mission-head{flex-direction:column;}.module-mission-chips{justify-content:flex-start;}}
@media (max-width: 720px){.module-mission-deck{padding:18px;}.radar-command-deck{padding:16px;}}

/* Phase 4 dashboard radar polish */
.radar-command-deck{
  position:relative;
  overflow:hidden;
  padding:24px 24px 28px;
  border-radius:30px;
  background:
    radial-gradient(circle at 0% 0%, rgba(87, 214, 183, 0.26), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(98, 164, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(12,32,31,0.98), rgba(16,42,40,0.97)) !important;
  border:1px solid rgba(139,255,225,0.16) !important;
  box-shadow:0 24px 64px rgba(5,22,21,0.26) !important;
}
.radar-command-deck::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), transparent 30%),
    radial-gradient(circle at center, rgba(113,255,219,0.05), transparent 42%);
}
.radar-command-deck .radar-control-centers{
  margin:0 0 22px;
}
.radar-command-deck .radar-control-card{
  border-radius:22px;
  padding:20px 20px 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035)) !important;
  border:1px solid rgba(126,255,218,0.14) !important;
  box-shadow:0 18px 36px rgba(0,0,0,0.22) !important;
  backdrop-filter:blur(14px);
}
.radar-command-deck .radar-control-card.active{
  background:linear-gradient(180deg, rgba(97,255,210,0.2), rgba(255,255,255,0.06)) !important;
  border-color:rgba(148,255,224,0.46) !important;
  box-shadow:0 0 0 1px rgba(148,255,224,0.2) inset, 0 22px 42px rgba(0,0,0,0.26) !important;
}
.radar-command-deck .radar-control-card::before,
.radar-command-deck .radar-stage::before,
.radar-command-deck .radar-preview-panel::before,
.radar-command-deck .radar-activity-panel::before,
.radar-command-deck .radar-node::before,
.radar-command-deck .radar-core::before{
  display:none !important;
}
.radar-command-deck .radar-stage.panel{
  position:relative;
  overflow:hidden;
  min-height:780px;
  border-radius:32px;
  padding:0;
  background:
    radial-gradient(circle at center, rgba(99,212,185,0.24), transparent 18%),
    radial-gradient(circle at center, rgba(99,212,185,0.12), transparent 36%),
    radial-gradient(circle at center, rgba(21,70,66,0.72), rgba(12,34,33,0.96) 76%) !important;
  border:1px solid rgba(145,255,227,0.15) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.04), 0 28px 64px rgba(6,22,21,0.24) !important;
}
.radar-command-deck .radar-stage.panel:hover{
  transform:none;
}
.radar-command-deck .radar-stage-shell{
  min-height:780px;
}
.radar-command-deck .radar-stage-shell::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at center, rgba(151,255,232,0.10), transparent 30%),
    repeating-radial-gradient(circle at center, rgba(190,255,239,0.10) 0 1px, transparent 1px 92px),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 16%, transparent 84%, rgba(255,255,255,0.03));
  opacity:.95;
}
.radar-command-deck .radar-ring{
  border-color:rgba(161,255,228,0.12);
  box-shadow:0 0 0 1px rgba(61,109,98,0.10) inset, 0 0 40px rgba(31,126,101,0.06);
}
.radar-command-deck .radar-sweep{
  width:460px;
  height:460px;
  background:linear-gradient(90deg, rgba(113,255,219,0.28), rgba(113,255,219,0.07), transparent 75%);
  opacity:.65;
}
.radar-command-deck .radar-core{
  width:238px;
  height:238px;
  border-radius:36px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,0.16), transparent 22%),
    radial-gradient(circle at center, rgba(44,168,145,0.22), rgba(16,69,62,0.98) 72%),
    linear-gradient(145deg, rgba(13,51,48,0.98), rgba(11,90,80,0.96)) !important;
  border:1px solid rgba(177,255,235,0.16);
  box-shadow:0 0 0 1px rgba(177,255,235,0.10), 0 0 80px rgba(39,178,146,0.26), 0 26px 52px rgba(0,0,0,0.34), inset 0 0 38px rgba(255,255,255,0.04) !important;
}
.radar-command-deck .radar-core strong{
  font-size:24px;
  letter-spacing:-0.03em;
}
.radar-command-deck .radar-core small{
  max-width:165px;
  font-size:13px;
  color:rgba(232,252,247,0.84);
}
.radar-command-deck .radar-node{
  width:176px;
  min-height:112px;
  border-radius:24px;
  padding:18px 18px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.11)) !important;
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 20px 42px rgba(5,22,21,0.22), inset 0 1px 0 rgba(255,255,255,0.10) !important;
  backdrop-filter:blur(16px);
}
.radar-command-deck .radar-node:hover{
  transform:translateY(-6px) scale(1.025);
  box-shadow:0 30px 60px rgba(0,0,0,0.34), 0 0 0 1px rgba(255,255,255,0.08) inset !important;
}
.radar-command-deck .radar-node strong{
  font-size:28px;
  line-height:1;
  margin-top:2px;
}
.radar-command-deck .radar-node small{
  font-size:14px;
  color:rgba(241,255,251,0.86);
}
.radar-command-deck .radar-node-meta{
  color:rgba(210,251,239,0.62);
}
.radar-command-deck .radar-preview-panel,
.radar-command-deck .radar-activity-panel{
  border-radius:24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)) !important;
  border:1px solid rgba(150,255,226,0.14) !important;
  box-shadow:0 18px 36px rgba(5,22,21,0.18) !important;
  backdrop-filter:blur(16px);
}
.radar-command-deck .dashboard-nav-panel{
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.radar-command-deck .dashboard-nav-panel:hover,
.radar-command-deck .dashboard-nav-panel:focus-visible{
  transform:translateY(-2px);
  border-color:rgba(170, 231, 255, 0.22) !important;
  box-shadow:0 24px 42px rgba(5,22,21,0.24) !important;
  outline:none;
}
.radar-command-deck .radar-activity-item{
  background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border:1px solid rgba(133,255,214,0.08);
}
@media (max-width: 980px){
  .radar-command-deck .radar-stage.panel,
  .radar-command-deck .radar-stage-shell{min-height:860px;}
}
@media (max-width: 720px){
  .radar-command-deck{padding:18px 18px 22px;}
  .radar-command-deck .radar-stage.panel,
  .radar-command-deck .radar-stage-shell{min-height:980px;}
  .radar-command-deck .radar-node{width:150px;min-height:102px;padding:16px 14px 14px;}
  .radar-command-deck .radar-node strong{font-size:24px;}
  .radar-command-deck .radar-core{width:210px;height:210px;}
}


/* Phase 5 founder signals + minimal header */
.thic-header-nav{display:none !important;}
.smart-global-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding-right:0;}
.smart-global-header::after{content:"Founder Mission Control";display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:999px;background:linear-gradient(135deg, rgba(10,76,69,0.96), rgba(31,146,128,0.9));border:1px solid rgba(121,255,215,0.22);box-shadow:0 16px 30px rgba(4,33,29,0.16);color:#effff9;font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap;}
.founder-signals-panel{position:relative;overflow:hidden;background:linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05)) !important;}
.founder-signals-panel::before{content:'';position:absolute;inset:-20% auto auto -10%;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle, rgba(68,214,178,0.16), transparent 70%);pointer-events:none;}
.founder-signals-grid{gap:14px;}
.founder-signal-card{position:relative;overflow:hidden;min-height:104px;padding:16px 16px 14px !important;border-radius:20px !important;background:linear-gradient(180deg, rgba(8,28,24,0.82), rgba(8,24,22,0.72)) !important;border:1px solid rgba(121,255,215,0.16) !important;box-shadow:0 18px 34px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.04) !important;backdrop-filter:blur(16px);transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;}
.founder-signal-card::before{content:'';position:absolute;inset:auto -10% -35% auto;width:140px;height:140px;border-radius:50%;background:radial-gradient(circle, rgba(102,255,221,0.12), transparent 68%);pointer-events:none;}
.founder-signal-card:hover{transform:translateY(-3px);box-shadow:0 24px 42px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.05) !important;border-color:rgba(121,255,215,0.24) !important;}
.founder-signal-card span{display:flex !important;align-items:center;gap:8px;margin-bottom:10px !important;color:rgba(210,255,241,0.80) !important;font-size:11px !important;font-weight:800;letter-spacing:.16em !important;text-transform:uppercase;}
.founder-signal-card strong{display:block;font-size:28px !important;line-height:1.05 !important;color:#f4fffc !important;letter-spacing:-.03em;}
.founder-signal-card small{display:block;margin-top:8px;color:rgba(223,245,238,0.76);font-size:13px;line-height:1.4;}
.signal-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#7cffdc;box-shadow:0 0 0 0 rgba(124,255,220,0.55);animation:signalPulse 2.2s infinite;flex:0 0 auto;}
.signal-pipeline .signal-dot{background:#78ffd1;box-shadow:0 0 18px rgba(120,255,209,0.55);}
.signal-creators .signal-dot{background:#73f1ff;box-shadow:0 0 18px rgba(115,241,255,0.45);}
.signal-network .signal-dot{background:#8de4ff;box-shadow:0 0 18px rgba(141,228,255,0.45);}
@keyframes signalPulse{0%{transform:scale(1);box-shadow:0 0 0 0 rgba(124,255,220,0.45);}70%{transform:scale(1.08);box-shadow:0 0 0 10px rgba(124,255,220,0);}100%{transform:scale(1);box-shadow:0 0 0 0 rgba(124,255,220,0);}}
@media (max-width: 980px){.smart-global-header{align-items:flex-start;flex-direction:column;}.smart-global-header::after{padding:10px 14px;}}


.smart-header-shell{
  display:flex;
  align-items:flex-start;
  gap:18px;
  flex-wrap:wrap;
}
.smart-header-hero-trigger{
  flex:1;
  min-width:0;
}
.smart-header-utility{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  min-width:0;
  flex:0 1 520px;
}
.smart-header-clock-card{
  min-width:0;
  min-height:92px;
  padding:18px 18px 16px;
  border-radius:20px;
  background:linear-gradient(180deg, rgba(9,29,24,0.32), rgba(7,20,17,0.18));
  border:1px solid rgba(255,255,255,0.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.05);
  color:#effff9;
}
.smart-header-utility-kicker{
  display:block;
  font-size:10px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(239,255,249,0.72);
  margin-bottom:8px;
}
.smart-header-clock-card strong{
  display:block;
  font-size:34px;
  line-height:1;
  color:#ffffff;
  margin-bottom:8px;
}
.smart-header-clock-card small{
  display:block;
  font-size:13px;
  color:rgba(239,255,249,0.82);
}
.smart-header-message-btn{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  min-height:92px;
  padding:16px 18px;
  border:1px solid rgba(255,255,255,0.18);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(9,29,24,0.34), rgba(7,20,17,0.18));
  color:#effff9;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.05);
}
.smart-header-message-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 28px rgba(7,30,26,0.16), inset 0 1px 0 rgba(255,255,255,0.05);
}
.smart-header-logout-btn{
  appearance:none;
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  min-height:92px;
  padding:16px 18px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.16);
  background:linear-gradient(180deg, rgba(9,29,24,0.34), rgba(7,20,17,0.18));
  color:rgba(239,255,249,0.88);
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.05);
  position:relative;
  z-index:2;
}
.smart-header-logout-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 28px rgba(7,30,26,0.16), inset 0 1px 0 rgba(255,255,255,0.05);
  background:linear-gradient(180deg, rgba(11,33,28,0.42), rgba(7,20,17,0.22));
  color:#ffffff;
}
.smart-header-logout-btn .smart-header-message-icon{
  flex:0 0 42px;
}
.smart-header-message-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
}
.smart-header-message-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
  flex:1;
  min-width:0;
}
.smart-header-message-copy strong{
  font-size:15px;
  line-height:1.1;
  color:#ffffff;
}
.smart-header-message-copy small{
  font-size:12px;
  color:rgba(239,255,249,0.76);
}
.smart-header-message-badge{
  min-width:26px;
  height:26px;
  padding:0 8px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:800;
  color:#06312a;
  background:#8df5d1;
}
.smart-header-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.smart-header-meta-pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(239,255,249,0.86);
  background:rgba(7,34,30,0.16);
  border:1px solid rgba(255,255,255,0.16);
}

.smart-radar-home-btn{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:4px;
  min-width:110px;
  padding:12px 16px;
  border-radius:18px;
  border:1px solid rgba(101, 211, 176, 0.26);
  background:linear-gradient(180deg, rgba(9, 29, 24, 0.96), rgba(10, 22, 18, 0.92));
  color:#effff9;
  box-shadow:0 16px 40px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.06);
  cursor:pointer;
}

.smart-radar-home-btn:hover,
.floating-radar-dock:hover,
.brand-radar-trigger:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 42px rgba(0,0,0,0.28), 0 0 0 1px rgba(101, 211, 176, 0.18);
}

.smart-radar-home-kicker,
.smart-header-page{
  font-size:11px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:#87d6bf;
}

.brand-radar-trigger{
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
}

.floating-radar-dock{
  position:sticky;
  top:18px;
  z-index:30;
  align-self:flex-end;
  margin:16px 22px 0 auto;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid rgba(101, 211, 176, 0.28);
  background:linear-gradient(180deg, rgba(8, 31, 25, 0.94), rgba(7, 20, 17, 0.92));
  color:#effff9;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  cursor:pointer;
  box-shadow:0 18px 40px rgba(0,0,0,0.24);
}

@media (max-width: 1280px){
  .smart-header-shell{
    flex-direction:column;
    align-items:stretch;
  }
  .smart-header-utility{
    min-width:0;
    width:100%;
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
  .smart-header-clock-card,
  .smart-header-message-btn,
  .smart-header-logout-btn{ width:100%; }

  .floating-radar-dock{
    top:10px;
    margin-right:14px;
  }
}

@media (max-width: 720px){
  .smart-header-utility{
    grid-template-columns:1fr;
  }
  .smart-header-clock-card,
  .smart-header-message-btn,
  .smart-header-logout-btn{
    width:100%;
  }
}

/* ===== restored light-only field wrapper cleanup ===== */
body.thic-light-mode .production-form-panel .form-grid .form-group,
body.thic-light-mode .production-form-grid .form-group,
body.thic-light-mode .contacts-filter-grid .form-group,
body.thic-light-mode .filter-grid .form-group,
body.thic-light-mode .company-question-grid .form-group,
body.thic-light-mode .tile-detail-card .form-grid .form-group,
body.thic-light-mode .ucb-section-grid .form-group{
  border:none !important;
  box-shadow:none !important;
  background:transparent !important;
  padding:0 !important;
}

/* ===== v81 compact smart header ===== */
.smart-global-header{
  padding:16px 18px !important;
  border-radius:24px !important;
}

.smart-header-shell{
  gap:14px !important;
}

.smart-header-copy h2{
  margin:0 0 8px 0 !important;
  font-size:28px !important;
  line-height:1.04 !important;
}

.smart-header-copy p{
  margin:0 !important;
  max-width:720px !important;
  font-size:14px !important;
}

.smart-header-clock-card,
.smart-header-message-btn{
  padding:14px 16px !important;
  border-radius:18px !important;
}

.smart-header-clock-card strong{
  font-size:26px !important;
  margin-bottom:6px !important;
}

.smart-header-message-icon{
  width:36px !important;
  height:36px !important;
  border-radius:12px !important;
  font-size:16px !important;
}

.smart-header-message-copy strong{
  font-size:14px !important;
}

.smart-header-message-copy small{
  font-size:11px !important;
}

@media (max-width: 1280px){
  .smart-global-header{
    padding:14px 16px !important;
  }
  .smart-header-copy h2{
    font-size:24px !important;
  }
}

@media (max-width: 720px){
  .smart-header-copy h2{
    font-size:22px !important;
  }
}


.smart-header-shell-clickable{appearance:none;border:0;width:100%;text-align:left;cursor:pointer;}
.smart-header-shell-clickable:hover{transform:translateY(-1px);box-shadow:0 14px 26px rgba(0,0,0,0.14);}
.module-control-stat.is-clickable,.module-control-strip strong.is-clickable{cursor:pointer;}
.module-control-stat.is-clickable:hover{transform:translateY(-2px);box-shadow:0 16px 30px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.04);border-color:rgba(121,255,215,0.26);}
.module-control-stat.is-clickable:focus-visible{outline:2px solid rgba(121,255,215,0.45);outline-offset:2px;}
.thic-popup-overlay{position:fixed;inset:0;background:rgba(4,12,12,0.58);backdrop-filter:blur(10px);display:none;align-items:center;justify-content:center;padding:24px;z-index:9999;}
.thic-popup-overlay.is-open{display:flex;}
.thic-popup-card{position:relative;max-width:520px;width:100%;padding:28px;border-radius:24px;background:linear-gradient(180deg, rgba(8,28,24,0.95), rgba(7,18,18,0.96));border:1px solid rgba(121,255,215,0.18);box-shadow:0 28px 70px rgba(0,0,0,0.34);color:#f4fffc;}
.thic-popup-close{position:absolute;top:14px;right:14px;appearance:none;border:0;background:rgba(255,255,255,0.08);color:#fff;width:34px;height:34px;border-radius:999px;cursor:pointer;font-size:20px;line-height:1;}
.thic-popup-kicker{font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:rgba(148,255,221,0.72);margin-bottom:10px;}
.thic-popup-card h3{margin:0 0 10px;font-size:28px;line-height:1.05;color:#f4fffc;}
.thic-popup-card p{margin:0;color:rgba(220,244,236,0.82);font-size:15px;line-height:1.6;}
.thic-popup-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;}
.thic-popup-action{appearance:none;border:1px solid rgba(121,255,215,0.22);background:rgba(22,76,68,0.58);color:#fff;padding:12px 14px;border-radius:999px;cursor:pointer;font-weight:700;}
.thic-popup-action:hover{transform:translateY(-1px);background:rgba(26,98,86,0.75);}
.invite-share-card{
  margin-top:18px;
  padding:18px 20px;
  border-radius:20px;
  border:1px solid rgba(121,255,215,0.18);
  background:linear-gradient(135deg, rgba(15,70,63,0.68), rgba(7,18,18,0.56));
  display:flex;
  flex-direction:column;
  gap:6px;
}
.invite-share-card-kicker{
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(148,255,221,0.72);
  font-weight:800;
}
.invite-share-card strong{
  font-size:26px;
  line-height:1.05;
  color:#f4fffc;
}
.invite-share-card span,
.invite-share-card small{
  color:rgba(220,244,236,0.82);
}
.invite-share-preview{
  margin-top:16px;
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(121,255,215,0.18);
  background:linear-gradient(135deg, rgba(25,119,106,0.72), rgba(11,31,29,0.86));
  box-shadow:0 18px 36px rgba(3,16,14,0.18);
}
.invite-share-preview-header{
  padding:14px 18px;
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(191,255,233,0.76);
  font-weight:800;
  border-bottom:1px solid rgba(121,255,215,0.12);
}
.invite-share-preview-body{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.invite-share-preview-body p{
  margin:0;
  color:#f4fffc;
  font-size:16px;
  line-height:1.6;
}
.invite-share-preview-block{
  padding:14px 16px;
  border-radius:16px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(121,255,215,0.14);
  display:flex;
  flex-direction:column;
  gap:6px;
}
.invite-share-preview-block label{
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(191,255,233,0.72);
  font-weight:800;
}
.invite-share-preview-block strong,
.invite-share-preview-block span{
  color:#f4fffc;
  font-size:15px;
  line-height:1.5;
  word-break:break-word;
}
.invite-share-preview-grid{
  display:grid;
  grid-template-columns:170px minmax(0,1fr);
  gap:12px;
}
.invite-share-block{
  margin-top:16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.invite-share-block label{
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(188,232,222,0.66);
  font-weight:800;
}
.invite-share-block textarea,
.invite-share-block input{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(121,255,215,0.16);
  background:rgba(255,255,255,0.04);
  color:#f4fffc;
  padding:14px 16px;
  font:inherit;
}
.invite-share-block textarea{
  resize:vertical;
  min-height:120px;
}
.invite-share-actions{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:10px;
  margin-top:18px;
}
.invite-share-status{
  margin-top:14px;
  color:rgba(220,244,236,0.82);
  font-size:14px;
}
@media (max-width: 720px){
  .invite-share-preview-grid{
    grid-template-columns:1fr;
  }
}
.founder-signal-card{appearance:none;text-align:left;cursor:pointer;}
.founder-signal-card:focus-visible{outline:2px solid rgba(121,255,215,0.45);outline-offset:2px;}


/* Phase 8 header cleanup, radar launcher and mobile refinements */
.smart-global-header::before,
.smart-global-header::after{display:none !important;content:none !important;}
.smart-global-header{padding-right:0 !important;background:transparent !important;box-shadow:none !important;}
.smart-header-shell{width:100%;}
.smart-header-shell-clickable{width:100%;}
.smart-header-shell-clickable:hover{box-shadow:0 18px 30px rgba(7,30,26,0.14);}
.thic-radar-launcher-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px;}
.thic-radar-launcher-card{appearance:none;border:1px solid rgba(121,255,215,0.18);background:linear-gradient(180deg, rgba(8,28,24,0.88), rgba(8,20,18,0.94));color:#f4fffc;border-radius:18px;padding:16px;text-align:left;cursor:pointer;box-shadow:0 14px 28px rgba(0,0,0,0.18);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;}
.thic-radar-launcher-card:hover{transform:translateY(-2px);border-color:rgba(121,255,215,0.28);box-shadow:0 20px 34px rgba(0,0,0,0.22);}
.thic-radar-launcher-card span{display:block;font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:rgba(148,255,221,0.72);margin-bottom:8px;}
.thic-radar-launcher-card strong{display:block;font-size:15px;line-height:1.45;font-weight:700;color:#f4fffc;}
.module-control-stat.is-clickable,
.module-control-action,
.radar-control-card,
.founder-signal-card{pointer-events:auto;}
.module-control-action{min-height:42px;}
@media (max-width: 900px){
  .smart-global-header{margin-bottom:16px !important;}
  .smart-header-copy h2{font-size:34px !important;line-height:1.05 !important;}
  .smart-header-copy p{font-size:14px !important;max-width:none !important;}
  .thic-radar-launcher-grid{grid-template-columns:1fr;}
}
@media (max-width: 720px){
  .smart-header-page{font-size:10px !important;}
  .smart-header-copy h2{font-size:28px !important;}
  .smart-header-copy p{font-size:13px !important;}
  .thic-popup-overlay{padding:14px;}
  .thic-popup-card{padding:22px 18px 18px;border-radius:18px;}
  .thic-popup-actions{display:grid;grid-template-columns:1fr;gap:10px;}
  .thic-popup-action{width:100%;text-align:center;}
  .radar-control-centers,.founder-signals-grid,.radar-preview-stats{grid-template-columns:1fr !important;}
  .founder-signal-card{min-height:92px;padding:14px !important;}
}

/* Phase 8.1 restore original clickable banner */
.smart-global-header{
  padding:30px 30px !important;
  border-radius:24px !important;
  background:
    radial-gradient(circle at top right, rgba(47,164,179,0.24), transparent 28%),
    radial-gradient(circle at bottom left, rgba(95,143,155,0.26), transparent 24%),
    linear-gradient(135deg, #0F3A35 0%, #2FA4B3 55%, #5F8F9B 100%) !important;
  box-shadow:
    0 18px 48px rgba(15,58,53,0.20),
    0 2px 0 rgba(255,255,255,0.22) inset !important;
  overflow:hidden;
  position:relative;
}
.smart-global-header::before{
  display:block !important;
  content:"" !important;
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(255,255,255,0.06), transparent 22%, transparent 78%, rgba(255,255,255,0.05));
  pointer-events:none;
}
.smart-header-shell,
.smart-header-shell-clickable{
  background:transparent !important;
  box-shadow:none !important;
  border:0 !important;
  padding:0 !important;
  margin:0 !important;
  position:relative;
  z-index:1;
}
.smart-header-shell-clickable:hover{
  transform:none !important;
  box-shadow:none !important;
}
@media (max-width: 720px){
  .smart-global-header{padding:18px 18px !important;}
  .smart-header-utility{
    flex-direction:column;
  }
}


.module-control-stat.is-clickable{position:relative;z-index:1;pointer-events:auto;}
.module-mission-chip{position:relative;z-index:2;pointer-events:auto;}
.radar-control-card,.thic-radar-launcher-card,.thic-popup-action{pointer-events:auto;}

/* v86 popup radar launcher */
.thic-radar-popup-card{
  max-width:760px !important;
  padding:30px 30px 26px !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(111,224,244,0.12), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(110,255,221,0.10), transparent 24%),
    linear-gradient(180deg, rgba(7,28,28,0.97), rgba(7,18,18,0.98)) !important;
}
.thic-radar-popup-body .thic-popup-kicker,
.thic-radar-popup-body h3,
.thic-radar-popup-body p{display:none;}
.thic-radar-launcher-shell{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:22px;
  align-items:center;
}
.thic-radar-popup-body .thic-radar-launcher-grid{
  margin-top:0;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.thic-radar-popup-body .thic-radar-launcher-card{
  min-height:104px;
  padding:14px 14px 12px;
  border-radius:20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.08), transparent 30%),
    linear-gradient(180deg, rgba(12,41,39,0.92), rgba(7,20,20,0.96));
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.thic-radar-popup-body .thic-radar-launcher-card:hover{
  transform:translateY(-2px);
  border-color:rgba(111,224,244,0.24);
  box-shadow:0 18px 30px rgba(0,0,0,0.24), 0 0 0 1px rgba(111,224,244,0.08) inset;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.10), transparent 30%),
    linear-gradient(180deg, rgba(14,48,46,0.94), rgba(8,22,22,0.98));
}
.thic-radar-popup-body .thic-radar-launcher-card strong{
  font-size:18px;
  line-height:1.12;
}
.thic-radar-popup-body .thic-radar-launcher-card span{
  margin-bottom:10px;
}
.thic-radar-launcher-card.accent-core{border-color:rgba(111,224,244,0.26);}
.thic-radar-launcher-card.accent-mint{border-color:rgba(110,255,221,0.24);}
.thic-radar-launcher-card.accent-blue{border-color:rgba(103,182,255,0.26);}
.thic-radar-launcher-card.accent-sky{border-color:rgba(122,218,255,0.26);}
.thic-radar-launcher-core{
  position:relative;
  width:220px;
  height:220px;
  border-radius:999px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at center, rgba(103,182,255,0.10), transparent 42%),
    radial-gradient(circle at center, rgba(110,255,221,0.08), transparent 64%);
}
.thic-radar-launcher-sweep{
  position:absolute;
  width:170px;
  height:170px;
  left:50%;
  top:50%;
  transform-origin:0 0;
  background:linear-gradient(90deg, rgba(111,224,244,0.28), rgba(111,224,244,0.08), transparent 72%);
  clip-path:polygon(0 0, 100% 12%, 100% 28%, 0 0);
  animation:thicRadarSweep 6.4s linear infinite;
  opacity:.95;
}
.thic-radar-launcher-core-ring{
  position:absolute;
  inset:50%;
  transform:translate(-50%, -50%);
  border-radius:999px;
  border:1px solid rgba(148,255,221,0.14);
}
.thic-radar-launcher-core .ring-outer{width:220px;height:220px;}
.thic-radar-launcher-core .ring-mid{width:156px;height:156px;}
.thic-radar-launcher-core .ring-inner{width:98px;height:98px;border-color:rgba(103,182,255,0.18);}
.thic-radar-launcher-core-pulse{
  position:absolute;
  border-radius:999px;
  background:radial-gradient(circle, rgba(110,255,221,0.22), rgba(110,255,221,0));
  animation:thicRadarPulse 2.6s ease-in-out infinite;
}
.thic-radar-launcher-core .pulse-a{
  width:18px;
  height:18px;
  top:34px;
  right:44px;
}
.thic-radar-launcher-core .pulse-b{
  width:14px;
  height:14px;
  bottom:52px;
  left:42px;
  background:radial-gradient(circle, rgba(103,182,255,0.24), rgba(103,182,255,0));
  animation-delay:1.1s;
}
.thic-radar-launcher-core-button{
  position:relative;
  z-index:1;
  width:88px;
  height:88px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.14), transparent 24%),
    radial-gradient(circle at 68% 72%, rgba(103,182,255,0.10), transparent 34%),
    linear-gradient(145deg, #0b2f2d 0%, #145952 52%, #2a7f87 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 24px rgba(95,143,155,0.16),
    inset 0 0 24px rgba(255,255,255,0.05);
}
.thic-radar-launcher-core-button::before{
  content:"";
  width:16px;
  height:16px;
  border-radius:999px;
  background:radial-gradient(circle, #f7fffd 0%, rgba(247,255,253,0.92) 44%, rgba(160,255,233,0.18) 100%);
  box-shadow:0 0 18px rgba(255,255,255,0.34), 0 0 30px rgba(111,224,244,0.12);
}
@keyframes thicRadarSweep{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}
@keyframes thicRadarPulse{
  0%,100%{ transform:scale(0.9); opacity:0.42; }
  50%{ transform:scale(1.24); opacity:0.9; }
}
@media (max-width: 900px){
  .thic-radar-launcher-shell{
    grid-template-columns:1fr;
    justify-items:center;
  }
  .thic-radar-popup-body .thic-radar-launcher-grid{
    width:100%;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 720px){
  .radar-command-deck{padding:16px 14px 20px !important;}
  .radar-command-deck .radar-stage.panel{min-height:640px;}
}


.sidebar-company-picker {
  margin: 10px 14px 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(10, 50, 42, 0.08);
  border: 1px solid rgba(15, 106, 85, 0.12);
}
.sidebar-company-kicker {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b7b74;
  margin-bottom: 6px;
}
.sidebar-company-label {
  font-weight: 700;
  color: #153f37;
  margin-bottom: 8px;
}
.sidebar-company-select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(15, 106, 85, 0.18);
  padding: 9px 10px;
  background: #fff;
}
.company-admin-list {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}
.company-admin-item { text-align:left; border:1px solid rgba(15,106,85,0.16); border-radius:22px; padding:18px 18px 16px; background:#fff; }
.company-admin-item.active { border-color:#0f6a55; box-shadow:0 0 0 2px rgba(15,106,85,0.08); }
.company-admin-item span { display:block; color:#56746d; font-size:12px; margin-top:4px; }
.company-admin-facts{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}
.company-admin-fact{
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(145,255,219,0.12);
}
.company-admin-fact-full{
  grid-column:1 / -1;
}
.company-admin-fact label{
  display:block;
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:6px;
}
.company-admin-fact strong{
  display:block;
  font-size:16px;
  line-height:1.35;
  margin-bottom:6px;
}
.budget-selected-company { color:#5f7d76; margin-top:6px; }
.budget-section-footer { display:flex; justify-content:space-between; gap:12px; margin-top:18px; }
.budget-entity-assign.static strong { display:block; font-size:14px; color:#183f37; }

/* ===== THIC sidebar restore + company picker visibility ===== */
.sidebar{
  display:flex !important;
  flex-direction:column;
  overflow-y:auto !important;
}
.main-content,
.app-shell.sidebar-collapsed .main-content{
  width:calc(100vw - var(--thic-sidebar-width)) !important;
  margin-left:var(--thic-sidebar-width) !important;
}
.app-shell.sidebar-collapsed .main-content{
  width:calc(100vw - var(--thic-sidebar-width-collapsed)) !important;
  margin-left:var(--thic-sidebar-width-collapsed) !important;
}
.sidebar-company-picker{
  display:block !important;
  position:sticky;
  top:84px;
  z-index:3;
  box-shadow:0 8px 18px rgba(11,52,45,0.08);
}
.app-shell.sidebar-collapsed .sidebar-company-picker{
  margin:10px 8px 12px;
  padding:10px 8px;
}
.app-shell.sidebar-collapsed .sidebar-company-kicker,
.app-shell.sidebar-collapsed .sidebar-company-label{
  display:none;
}
.app-shell.sidebar-collapsed .sidebar-company-select{
  font-size:11px;
  padding:8px 6px;
}
@media (max-width: 960px){
  .sidebar-company-picker{
    position:static;
    top:auto;
  }
}


/* Phase: radar-first shell. Global app sidebar removed. */
.sidebar,
.sidebar-backdrop,
.mobile-sidebar,
.mobile-sidebar-backdrop,
.mobile-menu,
.mobile-menu-backdrop,
.sidebar-company-picker,
#sidebarCompanySelector,
#sidebarCompanyLabel {
  display: none !important;
}

.hamburger,
.hamburger-btn,
.mobile-menu-toggle,
.sidebar-toggle,
.topbar-toggle,
.menu-toggle,
button[aria-label="Open menu"],
button[aria-label="Toggle menu"] {
  display: none !important;
}

.app-shell,
.crm-shell,
.layout-shell {
  grid-template-columns: 1fr !important;
}

.main-content,
.content,
.content-shell,
.main-panel {
  width: 100% !important;
  margin-left: 0 !important;
  max-width: 100% !important;
}

.smart-global-header,
.page-wrap,
.page-shell {
  left: 0 !important;
  width: 100% !important;
}

@media (max-width: 960px) {
  .sidebar,
  .mobile-menu-toggle,
  .hamburger,
  .hamburger-btn,
  .sidebar-toggle,
  .topbar-toggle,
  .menu-toggle {
    display: none !important;
  }

  .main-content,
  .content,
  .content-shell,
  .main-panel {
    margin-left: 0 !important;
    width: 100% !important;
  }
}


/* === THIC green surface unification === */
:root{
  --thic-surface-900:#0d4c46;
  --thic-surface-850:#0f5c53;
  --thic-surface-800:#11685d;
  --thic-surface-750:#177866;
  --thic-surface-700:#1f8a74;
  --thic-surface-border:rgba(185,255,233,0.14);
  --thic-surface-shadow:0 18px 38px rgba(7,42,38,0.18);
}

.panel,
.table-wrap,
.selector-note-box,
#leadAdvancedCard,
#influencerAdvancedCard,
.review-modal,
.tile-detail-modal,
.contact-modal,
.modal-content,
.popup-card,
.modal-card,
.quick-chip,
.dashboard-info-grid > div,
.dashboard-list-item,
.radar-control-card,
.module-mission-deck,
.module-mission-card,
.company-admin-item,
.company-card,
.company-table-wrap,
.flow-panel,
.onboarding-portal-panel,
.panel-subtle {
  background:linear-gradient(180deg, rgba(20,109,104,0.96), rgba(15,92,83,0.94)) !important;
  border:1px solid var(--thic-surface-border) !important;
  box-shadow:var(--thic-surface-shadow) !important;
}

.panel h1,.panel h2,.panel h3,.panel h4,.panel strong,
.table-wrap h1,.table-wrap h2,.table-wrap h3,.table-wrap h4,.table-wrap strong,
.dashboard-info-grid > div,
.dashboard-list-item,
.module-mission-head h3,
.module-mission-card strong,
.company-card-top h4,.company-large-card h3,
.company-summary-card strong,
.company-card-body strong,
.company-table th,.company-table td,
.quick-chip,
.radar-control-card,
.radar-control-card strong,
.radar-control-card span,
.panel-subtle,
.selector-note-box,
.flow-panel,
.onboarding-portal-panel {
  color:#ffffff !important;
}

.panel p,.panel small,.panel span,.panel div,
.table-wrap p,.table-wrap small,.table-wrap span,.table-wrap div,
.module-mission-head p,
.module-mission-kicker,
.module-mission-card small,
.company-card-body span,.company-large-card p,
.company-field span,
.company-table th,
.panel-subtle,
.selector-note-box,
.flow-panel,
.onboarding-portal-panel {
  color:rgba(232,255,249,0.86) !important;
}

.module-mission-chip,
.quick-chip,
.radar-workspace-btn,
.company-badge {
  background:linear-gradient(135deg, rgba(31,138,116,0.95), rgba(18,102,88,0.95)) !important;
  border:1px solid rgba(185,255,233,0.18) !important;
  color:#ffffff !important;
}

.module-mission-chip:hover,
.quick-chip:hover,
.radar-workspace-btn:hover,
.radar-control-card:hover {
  box-shadow:0 18px 34px rgba(7,42,38,0.22) !important;
}

.radar-control-card {
  background:linear-gradient(180deg, rgba(23,120,102,0.96), rgba(14,88,79,0.94)) !important;
}

.module-mission-deck {
  background:linear-gradient(180deg, rgba(19,118,103,0.97), rgba(14,94,85,0.95)) !important;
}

.module-mission-card {
  background:linear-gradient(180deg, rgba(29,132,115,0.92), rgba(18,103,91,0.94)) !important;
}

.pipeline-tile,
.contact-tile,
.influencer-tile,
.thic-tile-card,
.interactive-tile {
  background:linear-gradient(180deg, rgba(23,120,102,0.96), rgba(14,88,79,0.94)) !important;
  border:1px solid var(--thic-surface-border) !important;
  box-shadow:var(--thic-surface-shadow) !important;
}

.pipeline-tile *,
.contact-tile *,
.influencer-tile *,
.thic-tile-card *,
.interactive-tile * {
  color:#ffffff !important;
}


/* v62 dashboard alignment: radar section is the style lead */
.module-control-panel,
.module-mission-deck {
  position: relative;
  overflow: hidden;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at top left, rgba(49,165,140,0.16), transparent 28%),
    linear-gradient(180deg, rgba(7,16,16,0.94), rgba(10,22,21,0.95)) !important;
  border: 1px solid rgba(111,255,206,0.10) !important;
  box-shadow: 0 28px 70px rgba(4,11,10,0.30) !important;
}
.module-control-panel::before,
.module-mission-deck::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(72,211,176,0.10), transparent 30%),
    linear-gradient(135deg, rgba(18,122,107,0.10), transparent 44%);
}
.module-control-head,
.module-mission-head,
.module-control-grid,
.module-control-utility-row,
.module-control-notes,
.module-mission-grid {
  position: relative;
  z-index: 1;
}
.module-control-kicker,
.module-mission-eyebrow,
.module-mission-kicker,
.module-control-stat .label,
.module-control-strip-label {
  color: rgba(188,255,232,0.72) !important;
}
.module-control-head h3,
.module-mission-head h3,
.module-control-stat strong,
.module-control-strip strong,
.module-mission-card strong,
.module-control-badge {
  color: #f4fffc !important;
}
.module-control-panel p,
.module-control-panel small,
.module-mission-deck p,
.module-mission-card small,
.module-control-notes,
.module-control-stat small {
  color: rgba(220,243,237,0.82) !important;
}
.module-control-stat,
.module-control-strip,
.module-control-notes,
.module-mission-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04)) !important;
  border: 1px solid rgba(133,255,214,0.12) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,0.18) !important;
  backdrop-filter: blur(12px);
}
.module-control-stat:hover,
.module-mission-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(0,0,0,0.22) !important;
}
.module-control-badge,
.module-mission-chip {
  background: linear-gradient(135deg, rgba(16,110,98,0.96), rgba(44,167,154,0.94)) !important;
  border: 1px solid rgba(122,255,214,0.14) !important;
  color: #effff9 !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}
.module-mission-chip:hover {
  box-shadow: 0 18px 34px rgba(7,42,38,0.22) !important;
}
.module-control-actions .module-action-btn,
.module-control-actions .module-mission-chip,
.module-control-actions button,
.module-control-panel .module-mission-chip {
  background: rgba(255,255,255,0.06) !important;
  color: #e8fbf6 !important;
  border-color: rgba(122,255,214,0.14) !important;
}
.module-control-actions .module-action-btn:hover,
.module-control-actions button:hover {
  background: linear-gradient(135deg, rgba(16,110,98,0.96), rgba(44,167,154,0.94)) !important;
}
.module-control-strip {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 16px !important;
}
.module-control-notes {
  border-radius: 16px !important;
}
@media (max-width: 720px) {
  .module-control-panel,
  .module-mission-deck {
    border-radius: 22px !important;
    padding: 18px !important;
  }
}


/* v63 dashboard rhythm and radar-led spacing */
.radar-home-shell{
  gap:28px !important;
}
.radar-home-hero{
  gap:24px !important;
  padding:34px 36px !important;
  border-radius:30px !important;
  min-height:132px;
}
.radar-home-hero h2{
  font-size:42px !important;
  line-height:1.02 !important;
  margin:0 0 12px !important;
}
.radar-home-hero p{
  font-size:16px !important;
  line-height:1.55 !important;
}
.radar-command-deck{
  padding:32px !important;
  border-radius:30px !important;
}
.radar-control-centers{
  gap:18px !important;
  margin:0 0 28px !important;
}
.radar-layout-grid{
  gap:28px !important;
}
.radar-stage,
.radar-stage-shell{
  min-height:820px !important;
}
.radar-stage{padding:0 !important;}
.radar-home-shell > .module-control-panel,
.radar-home-shell > .module-mission-deck{
  margin:0 !important;
  padding:28px 30px !important;
  border-radius:30px !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(63,190,160,0.18), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(52,131,255,0.10), transparent 22%),
    linear-gradient(145deg, rgba(8,18,18,0.96), rgba(15,29,29,0.92)) !important;
  border:1px solid rgba(113,255,205,0.14) !important;
  box-shadow:0 28px 90px rgba(1, 11, 10, 0.30) !important;
}
.radar-home-shell > .module-control-panel::before,
.radar-home-shell > .module-mission-deck::before{
  background:
    radial-gradient(circle at 18% 18%, rgba(72,211,176,0.12), transparent 30%),
    linear-gradient(135deg, rgba(18,122,107,0.08), transparent 44%) !important;
}
.radar-home-shell > .module-control-panel .module-control-stat,
.radar-home-shell > .module-control-panel .module-control-strip,
.radar-home-shell > .module-control-panel .module-control-note,
.radar-home-shell > .module-mission-deck .module-mission-card{
  min-height:116px;
  padding:22px 22px 20px !important;
  border-radius:22px !important;
  background:linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04)) !important;
  border:1px solid rgba(133,255,214,0.12) !important;
  box-shadow:0 18px 36px rgba(0,0,0,0.18) !important;
}
.radar-home-shell > .module-control-panel .module-control-grid,
.radar-home-shell > .module-mission-deck .module-mission-grid{
  gap:18px !important;
}
.radar-home-shell > .module-control-panel .module-control-head,
.radar-home-shell > .module-mission-deck .module-mission-head{
  margin-bottom:18px !important;
}
.radar-home-shell > .module-control-panel .module-control-utility-row{
  margin-top:18px !important;
  gap:18px !important;
}
.radar-home-shell > .module-control-panel .module-control-notes{
  margin-top:18px !important;
  gap:12px !important;
}
.radar-home-shell > .module-mission-deck .module-mission-card strong,
.radar-home-shell > .module-control-panel .module-control-stat strong{
  font-size:20px !important;
  line-height:1.15 !important;
}
.smart-global-header{
  padding:30px 34px !important;
  border-radius:26px !important;
  margin-bottom:28px !important;
}
.smart-header-copy h2{
  font-size:44px !important;
  line-height:1.04 !important;
  margin:0 0 10px 0 !important;
}
.smart-header-copy p{
  font-size:16px !important;
  line-height:1.55 !important;
}
@media (max-width: 980px){
  .smart-global-header{padding:24px 24px !important;}
  .smart-header-copy h2{font-size:36px !important;}
  .radar-home-hero{padding:28px 24px !important;}
  .radar-command-deck{padding:24px !important;}
  .radar-home-shell > .module-control-panel,
  .radar-home-shell > .module-mission-deck{padding:24px !important;}
}
@media (max-width: 720px){
  .smart-global-header{margin-bottom:22px !important;}
  .smart-header-copy h2{font-size:30px !important;}
  .radar-home-shell{gap:22px !important;}
  .radar-home-hero{padding:24px 18px !important;}
  .radar-command-deck{padding:18px !important;}
  .radar-home-shell > .module-control-panel,
  .radar-home-shell > .module-mission-deck{padding:20px 18px !important;}
}


/* v63 dashboard button balance */
.module-mission-chip,
.quick-chip,
.radar-workspace-btn,
.company-badge {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(122,255,214,0.14) !important;
  color: #e8fbf6 !important;
  box-shadow: none !important;
}

.module-mission-chip:hover,
.quick-chip:hover,
.radar-workspace-btn:hover,
.radar-workspace-btn.active {
  background: linear-gradient(135deg, rgba(16,110,98,0.78), rgba(44,167,154,0.74)) !important;
  border-color: rgba(122,255,214,0.18) !important;
  box-shadow: 0 14px 26px rgba(7,42,38,0.16) !important;
}

.module-control-panel[data-module-panel="dashboard"] .module-control-badge {
  display: none !important;
}


.user-access-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.admin-user-summary-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
  gap:12px;
  margin-top:18px;
}
.admin-user-summary-card{
  padding:14px 16px;
  border:1px solid rgba(122,255,214,0.16);
  border-radius:18px;
  background:rgba(4,29,27,0.36);
  display:flex;
  flex-direction:column;
  gap:6px;
}
.admin-role-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
  margin-top:18px;
}
.admin-role-card{
  appearance:none;
  border:1px solid rgba(122,255,214,0.16);
  border-radius:18px;
  background:rgba(4,29,27,0.36);
  color:#eefcf8;
  padding:16px 18px;
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:8px;
  cursor:pointer;
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}
.admin-role-card:hover{
  transform:translateY(-1px);
  border-color:rgba(122,255,214,0.3);
}
.admin-role-card.active{
  border-color:rgba(122,255,214,0.42);
  background:linear-gradient(135deg, rgba(14,68,61,0.64), rgba(4,29,27,0.5));
  box-shadow:0 0 0 1px rgba(122,255,214,0.08) inset;
}
.admin-role-card span{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(204,239,231,0.68);
  font-weight:800;
}
.admin-role-card strong{
  font-size:15px;
  line-height:1.12;
  color:#eefcf8;
}
.finance-section-panel{
  padding:0;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.finance-section-panel:not(.is-active){
  display:none;
}
.admin-role-card small{
  color:rgba(204,239,231,0.72);
  line-height:1.45;
}
.admin-user-summary-card span,
.admin-user-summary-card small{
  color:rgba(204,239,231,0.68);
}
.admin-user-summary-card span{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:800;
}
.admin-user-summary-card strong{
  color:#eefcf8;
  font-size:28px;
  line-height:1.05;
}
.admin-presence-panel{
  margin-top:18px;
  padding:18px 20px;
  border:1px solid rgba(122,255,214,0.16);
  border-radius:20px;
  background:rgba(4,29,27,0.34);
}
.admin-presence-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
  margin-top:14px;
}
.admin-presence-card{
  border:1px solid rgba(122,255,214,0.14);
  border-radius:18px;
  background:rgba(255,255,255,0.03);
  padding:14px 16px;
  display:grid;
  gap:10px;
}
.admin-presence-card.is-online{
  background:linear-gradient(135deg, rgba(14,68,61,0.54), rgba(4,29,27,0.44));
  border-color:rgba(122,255,214,0.28);
}
.admin-presence-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.admin-presence-top strong{
  display:block;
  color:#eefcf8;
  font-size:15px;
  line-height:1.15;
}
.admin-presence-top span{
  display:block;
  margin-top:4px;
  color:rgba(204,239,231,0.72);
  font-size:12px;
  line-height:1.35;
}
.admin-presence-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:64px;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.admin-presence-badge.is-online{
  background:rgba(43,206,156,0.18);
  border:1px solid rgba(122,255,214,0.28);
  color:#8effd8;
}
.admin-presence-badge.is-away{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.08);
  color:rgba(223,245,238,0.74);
}
.admin-presence-meta{
  display:grid;
  gap:4px;
  color:rgba(204,239,231,0.72);
  font-size:12px;
  line-height:1.4;
}
.admin-presence-empty{
  color:rgba(204,239,231,0.72);
  font-size:13px;
}
.admin-user-invite-card{
  margin-top:18px;
  padding:18px 20px;
  border:1px solid rgba(122,255,214,0.16);
  border-radius:20px;
  background:rgba(4,29,27,0.34);
}
.admin-user-invite-card h4{
  margin:6px 0 8px;
}
.admin-user-invite-meta{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:10px;
  margin:14px 0;
  color:rgba(204,239,231,0.72);
}
.admin-role-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.admin-role-chip{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(122,255,214,0.16);
  background:rgba(255,255,255,0.04);
  color:rgba(232,250,244,0.88);
  font-size:12px;
  font-weight:700;
}
.thic-login-mode-switch{
  display:flex;
  gap:10px;
  margin:0 0 14px 0;
}
.thic-login-mode-btn{
  appearance:none;
  border:1px solid rgba(121,255,215,0.18);
  background:rgba(255,255,255,0.04);
  color:#effff9;
  border-radius:999px;
  padding:10px 16px;
  font-weight:800;
  cursor:pointer;
}
.thic-login-mode-btn.active{
  background:linear-gradient(135deg, rgba(10,76,69,0.96), rgba(31,146,128,0.9));
  color:#effff9;
}
.thic-login-credentials{
  display:grid;
  gap:12px;
}
.thic-login-credentials input{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(121,255,215,0.14);
  background:rgba(4,26,23,0.84);
  color:#effff9;
  padding:14px 16px;
}
.user-access-card {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text-color, #fff);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
}
.user-access-card strong{
  font-size: 17px;
  line-height: 1.2;
}
.user-access-card.active {
  border-color: rgba(110,255,210,0.45);
  box-shadow: 0 12px 30px rgba(12,77,62,0.22);
  transform: translateY(-1px);
}
.user-access-card span, .user-access-card small {
  opacity: 0.82;
  font-size: 13px;
  line-height: 1.4;
}
.admin-users-grid {
  margin-bottom: 24px;
}
.user-access-matrix {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.user-access-matrix-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.user-access-row {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 180px);
  gap: 16px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.user-access-row label {
  margin: 0;
}
.panel-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.online-order-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.country-signal-list{
  display:grid;
  gap:12px;
}
.country-signal-row{
  display:grid;
  gap:8px;
}
.country-signal-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.country-signal-head strong{
  color:var(--thic-text);
  font-size:14px;
}
.country-signal-head span{
  color:var(--thic-muted);
  font-size:12px;
}
.country-signal-bar{
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,0.06);
  overflow:hidden;
  border:1px solid rgba(145,255,219,0.1);
}
.country-signal-bar span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg, rgba(102,255,221,0.92), rgba(83,168,255,0.9));
  box-shadow:0 0 18px rgba(102,255,221,0.22);
}
@media (max-width: 900px) {
  .panel-headline { flex-direction: column; }
  .user-access-row { grid-template-columns: 1fr; }
  .country-signal-head{ flex-direction:column; align-items:flex-start; }
}
@media (max-width: 720px) {
  .online-sync-grid{
    grid-template-columns:1fr !important;
  }
  .online-sync-settings-panel{
    display:none !important;
  }
  .online-sync-status-panel{
    display:block !important;
  }
}


[data-admin-panel].admin-panel-muted {
  opacity: 0.45;
  transition: opacity 0.2s ease;
}
[data-admin-panel].admin-panel-active {
  opacity: 1;
}
#adminUsersAccessMount .panel,
#adminCompaniesPanel,
#adminInfluencerPortalPanel,
[data-admin-panel="communication"] {
  scroll-margin-top: 120px;
}
/* v70 unified radar-led look and feel across modules */
:root{
  --thic-surface-1: linear-gradient(145deg, rgba(7,25,23,0.96), rgba(13,44,40,0.94));
  --thic-surface-2: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  --thic-border: rgba(145,255,219,0.14);
  --thic-text: #f3fffb;
  --thic-muted: rgba(224,247,239,0.82);
  --thic-kicker: rgba(191,255,233,0.72);
  --thic-gap-lg: 28px;
  --thic-gap-md: 18px;
  --thic-gap-sm: 14px;
}

main, .content, .page-shell, .dashboard-two-col, .admin-grid, .company-shell, .budget-shell {
  gap: var(--thic-gap-lg);
}

.panel,
.panel-subtle,
.popup-card,
.modal-card,
.tile-detail-modal,
.tile-detail-card,
.company-card,
.company-admin-item,
.company-table-wrap,
.user-access-card,
.user-access-row,
[data-admin-panel],
.budget-sidebar,
.budget-main,
.budget-question-card,
.budget-review-card,
.budget-kpi-card,
.budget-report-kpis .budget-kpi-card,
.radar-control-card,
.finance-section .panel,
.finance-section .panel-subtle,
.dashboard-two-col .panel,
.admin-card,
.popup-section,
.module-control-panel,
.module-mission-deck {
  background:
    radial-gradient(circle at 18% 18%, rgba(72,211,176,0.10), transparent 28%),
    linear-gradient(145deg, rgba(7,23,22,0.96), rgba(13,43,40,0.94)) !important;
  border: 1px solid var(--thic-border) !important;
  color: var(--thic-text) !important;
  box-shadow: 0 24px 56px rgba(3,16,14,0.22) !important;
}

.panel::before,
.popup-card::before,
.modal-card::before,
.tile-detail-modal::before,
.budget-sidebar::before,
.budget-main::before,
.company-card::before,
[data-admin-panel]::before {
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(135deg, rgba(80,214,183,0.07), transparent 42%);
}

.panel,
.popup-card,
.modal-card,
.tile-detail-modal,
.budget-sidebar,
.budget-main,
.company-card,
[data-admin-panel] {
  position:relative;
  overflow:hidden;
}

.panel h1, .panel h2, .panel h3, .panel h4,
.popup-card h1, .popup-card h2, .popup-card h3, .popup-card h4,
.modal-card h1, .modal-card h2, .modal-card h3, .modal-card h4,
.tile-detail-card h1, .tile-detail-card h2, .tile-detail-card h3, .tile-detail-card h4,
.company-card h1, .company-card h2, .company-card h3, .company-card h4,
.budget-main h1, .budget-main h2, .budget-main h3, .budget-main h4,
.budget-sidebar h1, .budget-sidebar h2, .budget-sidebar h3, .budget-sidebar h4,
[data-admin-panel] h1, [data-admin-panel] h2, [data-admin-panel] h3, [data-admin-panel] h4 {
  color: var(--thic-text) !important;
}

.panel p, .panel small, .panel label,
.popup-card p, .popup-card small, .popup-card label,
.modal-card p, .modal-card small, .modal-card label,
.tile-detail-card p, .tile-detail-card small, .tile-detail-card label,
.company-card p, .company-card small, .company-card label,
.budget-main p, .budget-main small, .budget-main label,
.budget-sidebar p, .budget-sidebar small, .budget-sidebar label,
[data-admin-panel] p, [data-admin-panel] small, [data-admin-panel] label,
.company-card-body span,
.company-field span,
.company-table th,
.company-table td,
.budget-sidebar-note,
.budget-selected-company,
.user-access-card span,
.user-access-card small {
  color: var(--thic-muted) !important;
}

.module-control-badge,
.radar-home-shell .module-control-badge,
.module-control-panel .module-control-badge,
.module-control-head .module-control-badge {
  display:none !important;
}
.module-control-head,
.module-mission-head { align-items:flex-start !important; }

.primary-btn,
.secondary-btn,
.module-mission-chip,
.module-action-btn,
button,
.btn,
.action-chip,
.radar-filter,
.radar-control-chip,
.budget-section-btn,
.company-badge {
  border-radius: 14px !important;
}

.primary-btn,
.secondary-btn,
.module-mission-chip,
.module-action-btn,
.action-chip,
.radar-filter,
.radar-control-chip,
.budget-section-btn,
[data-admin-panel] .primary-btn,
[data-admin-panel] .secondary-btn,
.budget-section-footer button {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(145,255,219,0.14) !important;
  color: var(--thic-text) !important;
  box-shadow: none !important;
}
.primary-btn:hover,
.secondary-btn:hover,
.module-mission-chip:hover,
.module-action-btn:hover,
.action-chip:hover,
.radar-filter:hover,
.radar-control-chip:hover,
.budget-section-btn:hover,
.budget-section-btn.active,
.budget-section-footer button:hover,
[data-admin-panel] .primary-btn:hover,
[data-admin-panel] .secondary-btn:hover {
  background: rgba(74,204,170,0.16) !important;
  border-color: rgba(145,255,219,0.26) !important;
  transform: translateY(-1px);
}

input,
select,
textarea,
.form-group input,
.form-group select,
.form-group textarea,
.company-field input,
.company-field select,
.company-field textarea,
.budget-main input,
.budget-main select,
.budget-main textarea,
.budget-sidebar input,
.budget-sidebar select,
.budget-sidebar textarea,
.user-access-row select,
.user-access-row input {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(145,255,219,0.14) !important;
  color: var(--thic-text) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
input::placeholder,
textarea::placeholder { color: rgba(224,247,239,0.44) !important; }
input:focus,
select:focus,
textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none !important;
  border-color: rgba(145,255,219,0.32) !important;
  box-shadow: 0 0 0 3px rgba(74,204,170,0.12) !important;
}

.form-grid,
.company-question-grid,
.company-overview-grid,
.budget-kpi-grid,
.budget-report-kpis,
.user-access-matrix,
.module-control-grid,
.module-mission-grid,
.admin-users-grid {
  gap: var(--thic-gap-md) !important;
}

.popup-header,
.popup-footer,
.modal-footer,
.tile-detail-summary,
.panel-headline,
.module-control-utility-row,
.module-control-notes,
.budget-section-footer {
  gap: var(--thic-gap-md) !important;
}

.budget-shell { margin-top: 28px !important; }
.budget-sidebar,
.budget-main { padding: 26px !important; border-radius: 28px !important; }
.budget-kpi-card { min-height: 132px; }
.budget-question-card,
.budget-review-card,
.user-access-row,
.company-admin-item,
.company-card,
.company-table-wrap,
.panel-subtle,
.popup-section { padding: 18px !important; border-radius: 20px !important; }

.company-badge,
.company-mini-kicker,
.budget-kpi-card span,
.budget-section-btn,
.module-control-kicker,
.module-mission-kicker,
.module-mission-eyebrow,
.user-access-matrix-title {
  color: var(--thic-kicker) !important;
}

@media (max-width: 900px){
  .budget-shell { grid-template-columns: 1fr !important; }
  .budget-sidebar { position: static !important; top: auto !important; }
}

/* v66 lead/influencer radar-led dark fix */
:root {
  --thic-radar-surface: linear-gradient(180deg, rgba(14,65,58,0.96), rgba(9,41,39,0.96));
  --thic-radar-surface-alt: linear-gradient(160deg, rgba(17,88,77,0.92), rgba(11,47,43,0.94));
  --thic-radar-field: rgba(255,255,255,0.06);
  --thic-radar-field-border: rgba(145,255,219,0.14);
}

/* enforce dark glass tiles */
.pipeline-tile,
.contact-tile,
.influencer-tile,
.thic-tile-card,
.interactive-tile {
  position: relative;
  background:
    radial-gradient(circle at 14% 18%, rgba(72,211,176,0.13), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(72,160,211,0.09), transparent 22%),
    var(--thic-radar-surface) !important;
  border: 1px solid rgba(145,255,219,0.14) !important;
  box-shadow: 0 22px 48px rgba(4,17,15,0.22) !important;
}
.pipeline-tile h4,
.contact-tile h4,
.influencer-tile h4,
.pipeline-meta,
.contact-meta,
.contact-owner-line,
.pipeline-grid span,
.pipeline-grid strong,
.pipeline-grid a,
.contact-meta-line,
.contact-module-chip,
.contact-subpill {
  color: #effff9 !important;
}
.pipeline-meta,
.contact-meta,
.contact-owner-line,
.pipeline-grid strong,
.contact-meta-line,
.contact-module-chip,
.contact-subpill {
  color: rgba(219,247,240,0.76) !important;
}
.pipeline-grid div,
.contact-meta-line,
.contact-module-chip,
.contact-subpill {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04)) !important;
  border: 1px solid rgba(145,255,219,0.10) !important;
  box-shadow: none !important;
}
.pipeline-tile .secondary-btn,
.contact-tile .secondary-btn,
.influencer-tile .secondary-btn,
.pipeline-tile .action-row .secondary-btn,
.pipeline-tile .action-row .primary-btn,
.influencer-tile .action-row .secondary-btn,
.contact-tile .action-row .secondary-btn {
  background: rgba(255,255,255,0.07) !important;
  color: #f1fffb !important;
  border: 1px solid rgba(145,255,219,0.16) !important;
  box-shadow: none !important;
}
.pipeline-tile .secondary-btn:hover,
.contact-tile .secondary-btn:hover,
.influencer-tile .secondary-btn:hover {
  background: rgba(74,204,170,0.18) !important;
  border-color: rgba(145,255,219,0.28) !important;
}
.pipeline-progress {
  background: linear-gradient(90deg, rgba(64,230,188,0.78), rgba(112,255,214,0.96)) !important;
  box-shadow: 0 0 12px rgba(87,255,205,0.24) !important;
}

/* lead pipeline filters and search */
.contacts-toolbar-advanced,
.filter-grid,
.action-row,
.contact-search-wrap,
.pipeline-view-toggle,
.quick-chip-row {
  gap: 16px !important;
}
.contacts-toolbar-advanced{
  margin-bottom: 12px !important;
}
.filter-grid{
  margin-bottom: 18px !important;
}
.filter-grid + .action-row{
  margin-bottom: 18px !important;
}
#leadPipelineSearch.contacts-search-input,
#influencerPipelineSearch.contacts-search-input,
#contactsSearchInput.contacts-search-input,
.contact-search-wrap .contacts-search-input,
.contacts-search-input {
  min-height: 46px !important;
  background: var(--thic-radar-field) !important;
  border: 1px solid var(--thic-radar-field-border) !important;
  color: #effff9 !important;
  box-shadow: none !important;
}
#leadPipelineSearch.contacts-search-input::placeholder,
#influencerPipelineSearch.contacts-search-input::placeholder,
#contactsSearchInput.contacts-search-input::placeholder,
.contacts-search-input::placeholder {
  color: rgba(224,247,239,0.46) !important;
}
.filter-grid .form-group input,
.filter-grid .form-group select,
.contacts-toolbar-advanced .form-group input,
.contacts-toolbar-advanced .form-group select,
.pipeline-tile input,
.pipeline-tile select,
.pipeline-tile textarea,
.influencer-tile input,
.influencer-tile select,
.influencer-tile textarea,
.contact-tile input,
.contact-tile select,
.contact-tile textarea {
  min-height: 40px !important;
  background: var(--thic-radar-field) !important;
  border: 1px solid var(--thic-radar-field-border) !important;
  color: #effff9 !important;
  box-shadow: none !important;
}
.filter-grid .form-group label,
.contacts-toolbar-advanced .form-group label,
.pipeline-tile label,
.influencer-tile label,
.contact-tile label {
  color: rgba(219,247,240,0.82) !important;
}
.quick-chip,
.quick-chip-row .quick-chip,
.view-chip {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(145,255,219,0.12) !important;
  color: rgba(239,255,249,0.84) !important;
  box-shadow: none !important;
}
.quick-chip.active,
.quick-chip:hover,
.quick-chip-row .quick-chip.active,
.view-chip.active {
  background: rgba(74,204,170,0.16) !important;
  border-color: rgba(145,255,219,0.22) !important;
  color: #f4fffc !important;
}

/* tighter spacing like dashboard rhythm */
.panel,
.module-panel,
.contacts-toolbar-advanced,
.filter-grid,
.pipeline-tiles-grid,
.contacts-tiles-grid,
.influencer-tiles-grid,
.table-wrap,
.lead-pipeline-panel {
  margin-top: 0 !important;
}
.filter-grid { margin-bottom: 16px !important; }
.pipeline-tiles-grid,
.contacts-tiles-grid,
.influencer-tiles-grid { gap: 24px !important; }
.pipeline-tile,
.contact-tile,
.influencer-tile { padding: 22px !important; }


/* v41 influencer radar + dark tile polish */
.influencer-radar-panel {
  background:
    radial-gradient(circle at 16% 20%, rgba(72,211,176,0.14), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(72,160,211,0.10), transparent 20%),
    linear-gradient(180deg, rgba(10,45,42,0.98), rgba(6,22,24,0.98)) !important;
  border: 1px solid rgba(145,255,219,0.15) !important;
}
.influencer-radar-badge {
  padding: 8px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: #dffcf2; background: rgba(46,216,164,0.12); border: 1px solid rgba(46,216,164,0.22);
}
.influencer-radar-grid { display:grid; grid-template-columns: 320px 1fr; gap: 22px; align-items:center; }
.influencer-radar-visual {
  position: relative; min-height: 280px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(16,92,79,0.26), rgba(5,18,20,0.94) 72%);
  border: 1px solid rgba(145,255,219,0.12);
}
.influencer-radar-core {
  position:absolute; inset:50%; transform:translate(-50%, -50%); width:118px; height:118px; border-radius:50%;
  display:flex; flex-direction:column; align-items:center; justify-content:center; z-index:2;
  background: radial-gradient(circle at 30% 30%, rgba(46,216,164,0.34), rgba(5,18,20,0.96));
  border:1px solid rgba(145,255,219,0.26); box-shadow:0 0 0 12px rgba(46,216,164,0.05);
}
.influencer-radar-core span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(223,252,242,0.72); }
.influencer-radar-core strong { font-size: 34px; color: #ffffff; line-height: 1; }
.influencer-radar-core small { color: rgba(223,252,242,0.74); }
.influencer-radar-ring { position:absolute; inset:50%; transform:translate(-50%, -50%); border-radius:50%; border:1px solid rgba(145,255,219,0.18); }
.influencer-radar-ring.ring-a { width: 160px; height: 160px; }
.influencer-radar-ring.ring-b { width: 220px; height: 220px; }
.influencer-radar-ring.ring-c { width: 280px; height: 280px; }
.influencer-radar-sweep {
  position:absolute; inset:-20%; background: conic-gradient(from 0deg, rgba(46,216,164,0.00), rgba(46,216,164,0.22), rgba(46,216,164,0.00) 28%);
  animation: thicRadarSweep 6s linear infinite; opacity: .9;
}
@keyframes thicRadarSweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.influencer-radar-stats { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px; }
.influencer-radar-stat {
  padding:16px 18px; border-radius:20px; background: rgba(255,255,255,0.05); border:1px solid rgba(145,255,219,0.12);
  min-height: 110px;
}
.influencer-radar-stat.influencer-radar-stat-wide-metric { grid-column: span 2; }
.influencer-radar-stat.wide { grid-column: 1 / -1; min-height: 86px; }
.influencer-radar-stat span {
  display:block; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color: rgba(223,252,242,0.66);
  margin-bottom: 10px; line-height: 1.15; white-space: nowrap;
}
.influencer-radar-stat strong { display:block; font-size:28px; line-height:1.05; color:#ffffff; margin-bottom: 8px; }
.influencer-radar-stat small { color: rgba(223,252,242,0.72); }
.influencer-radar-status-list { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 20px; }
.influencer-radar-row, .influencer-radar-empty {
  display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:16px; background: rgba(255,255,255,0.04); border:1px solid rgba(145,255,219,0.10);
}
.influencer-radar-row strong { color:#f4fffb; font-size:14px; }
.influencer-radar-row small, .influencer-radar-empty { color:rgba(223,252,242,0.70); }
.influencer-radar-dot { width:10px; height:10px; border-radius:50%; background: radial-gradient(circle, #75ffd8, #1cbf97); box-shadow:0 0 14px rgba(117,255,216,0.55); }
.stat-card, .panel, .table-wrap, .company-card, .user-access-card, .company-admin-item, .panel-subtle {
  background-color: transparent;
}
@media (max-width: 980px) {
  .influencer-radar-grid { grid-template-columns: 1fr; }
  .influencer-radar-visual { min-height: 240px; }
}

/* v42 global dark tile restore */
.panel,
.panel-subtle,
.stat-card,
.table-wrap,
.table-wrap table,
.flow-panel,
.module-control-panel,
.company-card,
.user-access-card,
.budget-kpi,
.budget-card,
.budget-review-card,
.finance-kpi,
.finance-upload-card,
.finance-vat-card,
.finance-section,
.online-kpi,
.online-card,
.online-table-wrap,
.online-panel,
.contacts-toolbar,
.tile-detail-modal,
.thic-card,
.thic-panel,
.influencer-radar-panel,
.leaderboard-card,
.pipeline-tile,
.contact-tile,
.dashboard-tile,
.report-card {
  background:
    radial-gradient(circle at 18% 18%, rgba(72,211,176,0.10), transparent 28%),
    linear-gradient(145deg, rgba(7,23,22,0.96), rgba(13,43,40,0.94)) !important;
  color: var(--thic-text, #f4fffb) !important;
  border: 1px solid rgba(145,255,219,0.12) !important;
  box-shadow: 0 18px 34px rgba(0,0,0,0.18) !important;
}
.panel h1, .panel h2, .panel h3, .panel h4, .panel h5,
.stat-card strong, .table-wrap th, .table-wrap td,
.online-card strong, .online-card h3, .online-card h4,
.finance-section h3, .finance-section h4,
.contacts-toolbar strong, .contact-tile strong,
.pipeline-tile strong, .leaderboard-card strong,
.influencer-radar-panel strong {
  color: #f7fffc !important;
}
.panel p, .panel label, .panel small, .panel span,
.table-wrap td, .table-wrap th,
.online-card p, .online-card span,
.finance-section p, .finance-section span,
.contact-tile span, .pipeline-tile span,
.leaderboard-card span, .influencer-radar-panel span,
.influencer-radar-panel small {
  color: rgba(234,247,244,0.82) !important;
}
.table-wrap tbody td,
.online-table-wrap tbody td,
.finance-section tbody td {
  background: rgba(8,30,28,0.82) !important;
}
.table-wrap thead th,
.online-table-wrap thead th,
.finance-section thead th {
  background: rgba(14,45,40,0.82) !important;
}
.online-page .panel,
.online-page .table-wrap,
.online-page .online-card,
.online-page .stat-card,
#onlinePage .panel,
#onlinePage .table-wrap,
#onlinePage .online-card,
#onlinePage .stat-card {
  background:
    radial-gradient(circle at 14% 18%, rgba(72,211,176,0.12), transparent 26%),
    linear-gradient(145deg, rgba(6,24,23,0.98), rgba(10,39,37,0.95)) !important;
}
.influencer-radar-grid {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
}
.influencer-radar-stats {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
}
.influencer-radar-stat.wide {
  grid-column: span 3 !important;
}
.influencer-radar-stat.influencer-radar-stat-wide-metric {
  grid-column: span 2 !important;
}
@media (max-width: 1100px) {
  .influencer-radar-grid,
  .influencer-radar-stats {
    grid-template-columns: 1fr !important;
  }
  .influencer-radar-stat.influencer-radar-stat-wide-metric,
  .influencer-radar-stat.wide {
    grid-column: auto !important;
  }
}


/* v44 universal dark module lock */
:root{
  --thic-dark-surface: linear-gradient(145deg, rgba(8,24,23,0.97), rgba(13,43,40,0.95));
  --thic-dark-surface-soft: rgba(10,32,30,0.82);
  --thic-dark-border: rgba(145,255,219,0.12);
  --thic-dark-text: #f4fffb;
  --thic-dark-muted: rgba(228,244,240,0.78);
}
body, .main-content, .page-shell, .module-page, .content-area {
  background: radial-gradient(circle at 10% 10%, rgba(72,211,176,0.08), transparent 20%), linear-gradient(180deg, #061716 0%, #0d2b28 100%) !important;
  color: var(--thic-dark-text) !important;
}
.panel, .panel-subtle, .table-wrap, .company-table-wrap, .finance-section, .finance-section-body, .finance-section-toggle,
.finance-two-col > .panel, .finance-two-col > .finance-section, .finance-summary-grid > div, .finance-hero-item,
.upload-row, .form-grid .form-group, .online-card, .online-panel, .online-table-wrap, .contacts-toolbar,
.stat-card, .company-card, .user-access-card, .dashboard-tile, .report-card, .pipeline-tile, .contact-tile,
.leaderboard-card, .module-control-panel, .budget-kpi-card, .budget-review-card, .budget-sidebar-card,
.quick-chip, .review-modal, .review-header, .finance-modal, .finance-kpis .finance-kpi {
  background: radial-gradient(circle at 16% 18%, rgba(72,211,176,0.10), transparent 28%), var(--thic-dark-surface) !important;
  color: var(--thic-dark-text) !important;
  border: 1px solid var(--thic-dark-border) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,0.22) !important;
}
.finance-section-toggle {
  min-height: 62px;
}
.table-wrap table, .online-table-wrap table, .finance-section table {
  background: transparent !important;
}
.table-wrap thead th, .online-table-wrap thead th, .finance-section thead th {
  background: rgba(13,43,40,0.92) !important;
  color: #f5fffc !important;
}
.table-wrap tbody td, .online-table-wrap tbody td, .finance-section tbody td,
.finance-summary-grid > div {
  background: rgba(7,26,24,0.82) !important;
  color: var(--thic-dark-text) !important;
}
.finance-hero-item strong, .finance-summary-grid strong, .panel h1, .panel h2, .panel h3, .panel h4,
.online-card h3, .online-card h4, .stat-card strong, .table-wrap strong, .finance-kpi h4, .finance-kpi div {
  color: #ffffff !important;
}
.panel p, .panel span, .panel small, .panel label, .panel li,
.online-card p, .online-card span, .online-card small,
.finance-section p, .finance-section span, .finance-section small,
.table-wrap td, .table-wrap th, .company-card span, .user-access-card span {
  color: var(--thic-dark-muted) !important;
}
.finance-section input, .finance-section select, .finance-section textarea,
.online-page input, .online-page select, .online-page textarea,
#onlinePage input, #onlinePage select, #onlinePage textarea,
.panel input, .panel select, .panel textarea {
  background: rgba(6,22,21,0.82) !important;
  color: #f6fffc !important;
  border: 1px solid rgba(145,255,219,0.16) !important;
}
.quick-chip, .secondary-btn, .primary-btn, .close-btn {
  border-radius: 12px !important;
}
.quick-chip {
  color: #f6fffc !important;
  border-color: rgba(145,255,219,0.18) !important;
}
.online-page .panel, .online-page .table-wrap, .online-page .online-card, .online-page .stat-card,
#onlinePage .panel, #onlinePage .table-wrap, #onlinePage .online-card, #onlinePage .stat-card,
.finance-page .panel, .finance-page .table-wrap, .finance-page .finance-section,
#financePage .panel, #financePage .table-wrap, #financePage .finance-section {
  background: radial-gradient(circle at 14% 18%, rgba(72,211,176,0.12), transparent 26%), linear-gradient(145deg, rgba(6,24,23,0.98), rgba(10,39,37,0.95)) !important;
}
.reports-grid .report-card{
  background: radial-gradient(circle at 14% 18%, rgba(72,211,176,0.16), transparent 28%), linear-gradient(145deg, rgba(9,35,33,0.98), rgba(15,61,56,0.95)) !important;
  color:#f4fffb !important;
  border:1px solid rgba(145,255,219,0.18) !important;
  box-shadow:0 16px 34px rgba(0,0,0,0.2) !important;
}
.reports-grid .report-card:hover{
  transform:translateY(-3px);
  background: radial-gradient(circle at 14% 18%, rgba(98,231,196,0.24), transparent 32%), linear-gradient(145deg, rgba(19,91,82,0.98), rgba(32,132,119,0.95)) !important;
  border-color:rgba(145,255,219,0.34) !important;
  box-shadow:0 22px 40px rgba(5,26,23,0.24) !important;
}
.reports-grid .report-card-kicker{
  color:rgba(184,247,228,0.76) !important;
}
.reports-grid .report-card strong{
  color:#f7fffc !important;
}
.reports-grid .report-card span{
  color:rgba(228,248,243,0.82) !important;
}


.ucb-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.ucb-shell-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ucb-shell-copy h3 { margin: 0; }
.ucb-shell-copy p { margin: 0; color: rgba(232, 245, 240, 0.78); }
.ucb-shell-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ucb-shell-actions { display: flex; align-items: center; }
.ucb-modal {
  max-width: 960px;
  width: min(960px, 94vw);
}
.ucb-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.ucb-pane .selector-note-box { min-height: 54px; }
.ucb-step-intro-card{
  display:grid;
  gap:10px;
  padding:20px 22px;
  border-radius:22px;
  border:1px solid rgba(121,255,215,0.16);
  background:
    radial-gradient(circle at top right, rgba(92,187,204,0.16), transparent 22%),
    linear-gradient(145deg, rgba(15,58,54,0.96), rgba(8,34,32,0.96));
  box-shadow:0 18px 36px rgba(0,0,0,0.14);
  margin-bottom:16px;
}
.ucb-step-intro-card strong{
  color:#f3fffb;
  font-size:18px;
  line-height:1.2;
}
.ucb-step-intro-card p{
  margin:0;
  color:rgba(228,246,239,0.78);
  line-height:1.55;
}
.ucb-role-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}
.ucb-role-card{
  appearance:none;
  display:grid;
  gap:10px;
  text-align:left;
  padding:20px;
  border-radius:22px;
  border:1px solid rgba(121,255,215,0.14);
  background:
    radial-gradient(circle at top left, rgba(93,229,198,0.12), transparent 26%),
    linear-gradient(145deg, rgba(14,53,49,0.96), rgba(8,34,32,0.96));
  color:#effff9;
  box-shadow:0 16px 32px rgba(0,0,0,0.14);
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
  cursor:pointer;
}
.ucb-role-card:hover{
  transform:translateY(-1px);
  border-color:rgba(121,255,215,0.2);
  box-shadow:0 20px 34px rgba(0,0,0,0.16);
}
.ucb-role-card.active{
  border-color:rgba(121,255,215,0.3);
  background:
    radial-gradient(circle at top left, rgba(93,229,198,0.18), transparent 28%),
    linear-gradient(145deg, rgba(18,68,62,0.98), rgba(14,52,48,0.96));
  box-shadow:0 0 0 2px rgba(84,236,197,0.12), 0 22px 40px rgba(0,0,0,0.18);
}
.ucb-role-card-kicker{
  color:rgba(171,245,223,0.76);
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.ucb-role-card strong{
  color:#f3fffb;
  font-size:18px;
  line-height:1.18;
}
.ucb-role-card span{
  color:rgba(228,246,239,0.82);
  line-height:1.45;
}
.ucb-role-card small{
  color:rgba(171,245,223,0.72);
  font-size:12px;
  line-height:1.4;
}
.ucb-role-description{
  margin-top:14px;
}
.ucb-ai-card{
  margin-bottom:0;
}
.ucb-ai-card strong{
  font-size:18px;
}
.ucb-section-title{
  margin-top:4px;
  padding-top:14px;
  border-top:1px solid rgba(121,255,215,0.12);
}
.ucb-section-title span{
  display:block;
  color:rgba(171,245,223,0.82);
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.ucb-accordion{
  grid-column:1 / -1;
  border:1px solid rgba(121,255,215,0.12);
  border-radius:22px;
  background:linear-gradient(145deg, rgba(9,30,28,0.9), rgba(8,24,23,0.94));
  overflow:hidden;
}
.ucb-accordion + .ucb-accordion{
  margin-top:2px;
}
.ucb-accordion summary{
  list-style:none;
  cursor:pointer;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#effff9;
  font-size:13px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.ucb-accordion summary::-webkit-details-marker{
  display:none;
}
.ucb-accordion summary::after{
  content:"+";
  font-size:18px;
  line-height:1;
  color:rgba(171,245,223,0.72);
}
.ucb-accordion[open] summary::after{
  content:"-";
}
.contacts-loading-state{
  display:flex;
  align-items:center;
  gap:18px;
  padding:28px 30px;
  border-radius:24px;
  border:1px solid rgba(121,255,215,0.14);
  background:
    radial-gradient(circle at top left, rgba(84,236,197,0.14), transparent 26%),
    linear-gradient(145deg, rgba(12,47,43,0.96), rgba(8,29,28,0.96));
  box-shadow:0 18px 34px rgba(0,0,0,0.16);
}
.contacts-loading-orb{
  width:56px;
  height:56px;
  border-radius:50%;
  flex:0 0 56px;
  background:
    radial-gradient(circle at 34% 32%, rgba(232,255,249,0.92), rgba(137,243,223,0.62) 30%, rgba(48,170,149,0.14) 64%, rgba(9,30,28,0.02) 72%),
    linear-gradient(145deg, rgba(48,170,149,0.82), rgba(21,103,94,0.36));
  box-shadow:0 0 0 10px rgba(84,236,197,0.08), 0 0 24px rgba(84,236,197,0.22);
  animation:contactsLoadingPulse 1.8s ease-in-out infinite;
}
.contacts-loading-copy{
  display:grid;
  gap:8px;
}
.contacts-loading-copy strong{
  color:#f3fffb;
  font-size:24px;
  line-height:1.1;
}
.contacts-loading-copy span{
  color:rgba(225,246,239,0.78);
  line-height:1.55;
}
.contacts-loading-dots{
  display:flex;
  gap:8px;
  align-items:center;
  padding-top:2px;
}
.contacts-loading-dots span{
  width:9px;
  height:9px;
  border-radius:999px;
  background:rgba(130,247,219,0.84);
  box-shadow:0 0 12px rgba(84,236,197,0.28);
  animation:contactsLoadingDot 1.2s ease-in-out infinite;
}
.contacts-loading-dots span:nth-child(2){
  animation-delay:.18s;
}
.contacts-loading-dots span:nth-child(3){
  animation-delay:.36s;
}
@keyframes contactsLoadingPulse{
  0%, 100%{
    transform:scale(1);
    box-shadow:0 0 0 10px rgba(84,236,197,0.08), 0 0 24px rgba(84,236,197,0.22);
  }
  50%{
    transform:scale(1.06);
    box-shadow:0 0 0 14px rgba(84,236,197,0.12), 0 0 28px rgba(84,236,197,0.3);
  }
}
@keyframes contactsLoadingDot{
  0%, 100%{
    opacity:.35;
    transform:translateY(0);
  }
  50%{
    opacity:1;
    transform:translateY(-3px);
  }
}
.ucb-accordion-body{
  padding:0 18px 18px;
  border-top:1px solid rgba(121,255,215,0.1);
}
.ucb-section-grid{
  padding-top:16px;
}
.ucb-section-grid .form-group{
  margin-bottom:0;
}
.compact-actions { justify-content: flex-start; }
@media (max-width: 860px) {
  .ucb-shell { flex-direction: column; align-items: stretch; }
  .ucb-progress { grid-template-columns: 1fr; }
  .ucb-role-grid { grid-template-columns:1fr; }
}

/* v46c ucb modal dark input fix */
.ucb-modal input, .ucb-modal select, .ucb-modal textarea {
  background: rgba(7,23,22,0.92) !important;
  color: #f5fffb !important;
  border: 1px solid rgba(145,255,219,0.18) !important;
  box-shadow: none !important;
}
.ucb-modal input::placeholder, .ucb-modal textarea::placeholder { color: rgba(232,245,240,0.48) !important; }
.ucb-modal .form-group label, .ucb-modal .review-header p { color: rgba(234,247,244,0.82) !important; }
.ucb-modal .selector-note-box { background: rgba(10,33,31,0.82) !important; color: #eafbf5 !important; }
.ucb-modal .lead-flow-step { background: rgba(7,23,22,0.75) !important; color: rgba(245,255,251,0.72) !important; }
.ucb-modal .lead-flow-step.active { background: linear-gradient(135deg, rgba(31,139,134,0.95), rgba(92,187,204,0.95)) !important; color: #fff !important; }


.smart-header-add-btn{appearance:none;border:1px solid rgba(121,255,215,0.22);background:linear-gradient(135deg, rgba(10,76,69,0.96), rgba(31,146,128,0.9));color:#effff9;border-radius:999px;padding:12px 18px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 16px 30px rgba(4,33,29,0.16);cursor:pointer;white-space:nowrap;align-self:flex-end;}
.smart-header-add-btn:hover{transform:translateY(-1px);box-shadow:0 18px 30px rgba(7,30,26,0.18);}
.ucb-modal input,.ucb-modal select,.ucb-modal textarea{background:rgba(9,28,26,0.88)!important;color:#f4fffb!important;border:1px solid rgba(109,196,171,0.22)!important;}
.ucb-modal select option{background:#102321;color:#effff9;}
@media (max-width: 980px){.smart-header-add-btn{width:100%;align-self:stretch;text-align:center;}}

/* dashboard appearance tile + light mode */
.radar-theme-tile{
  position:relative;
  overflow:hidden;
}
.radar-theme-tile::after{
  content:"";
  position:absolute;
  inset:auto -30px -44px auto;
  width:120px;
  height:120px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,0.18), transparent 68%);
  pointer-events:none;
}
.theme-tile-actions{
  display:flex;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}
.theme-mode-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(9,28,26,0.42);
  color:#eefcf7;
  border-radius:999px;
  padding:10px 16px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.theme-mode-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,0.28);
}
.theme-mode-btn.active{
  background:#ffffff;
  color:#0c2321;
  border-color:#ffffff;
  box-shadow:0 14px 28px rgba(0,0,0,0.18);
}

body.thic-light-mode{
  background:
    radial-gradient(circle at 12% 10%, rgba(111,224,201,0.18), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(157,227,234,0.18), transparent 22%),
    linear-gradient(180deg, #eefaf6 0%, #e1f4ee 100%) !important;
  color:#10312c !important;
}
body.thic-light-mode .app-shell,
body.thic-light-mode .main-content,
body.thic-light-mode .content-area,
body.thic-light-mode .module-page,
body.thic-light-mode .page-shell{
  background:transparent !important;
  color:#10312c !important;
}
body.thic-light-mode .smart-global-header,
body.thic-light-mode .smart-header-shell,
body.thic-light-mode .smart-header-shell-clickable,
body.thic-light-mode .smart-header-copy,
body.thic-light-mode .smart-header-page,
body.thic-light-mode .smart-global-header h2,
body.thic-light-mode .smart-global-header p{
  color:inherit;
}
body.thic-light-mode .smart-global-header,
body.thic-light-mode .smart-header-shell{
  background:
    radial-gradient(circle at 18% 18%, rgba(72,211,176,0.16), transparent 28%),
    linear-gradient(145deg, rgba(7,23,22,0.96), rgba(13,43,40,0.94)) !important;
  border:1px solid rgba(145,255,219,0.18) !important;
  box-shadow:0 18px 34px rgba(0,0,0,0.18) !important;
}
body.thic-light-mode .smart-global-header{
  background:
    radial-gradient(circle at 14% 18%, rgba(94,219,204,0.20), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(110,197,221,0.18), transparent 26%),
    linear-gradient(135deg, rgba(27,106,110,0.96), rgba(61,157,170,0.92)) !important;
  border:1px solid rgba(126,220,229,0.20) !important;
  box-shadow:0 22px 42px rgba(14,58,63,0.24) !important;
}
body.thic-light-mode .smart-header-shell,
body.thic-light-mode .smart-header-shell-clickable{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
body.thic-light-mode .smart-global-header h2,
body.thic-light-mode .smart-global-header p,
body.thic-light-mode .smart-header-page{
  color:#f6fffc !important;
}
body.thic-light-mode .smart-header-clock-card,
body.thic-light-mode .smart-header-message-btn{
  background:linear-gradient(180deg, rgba(20,98,105,0.5), rgba(19,85,93,0.42)) !important;
  border:1px solid rgba(214,255,251,0.18) !important;
  box-shadow:0 14px 28px rgba(15,71,74,0.16) !important;
}
body.thic-light-mode .smart-header-clock-card strong,
body.thic-light-mode .smart-header-clock-card small,
body.thic-light-mode .smart-header-message-copy strong,
body.thic-light-mode .smart-header-message-copy small,
body.thic-light-mode .smart-header-message-icon,
body.thic-light-mode .smart-header-utility-kicker{
  color:#f4fffd !important;
}
body.thic-light-mode .panel,
body.thic-light-mode .panel-subtle,
body.thic-light-mode .table-wrap,
body.thic-light-mode .company-table-wrap,
body.thic-light-mode .finance-section,
body.thic-light-mode .finance-section-body,
body.thic-light-mode .finance-section-toggle,
body.thic-light-mode .finance-two-col > .panel,
body.thic-light-mode .finance-two-col > .finance-section,
body.thic-light-mode .finance-summary-grid > div,
body.thic-light-mode .finance-hero-item,
body.thic-light-mode .upload-row,
body.thic-light-mode .form-grid .form-group,
body.thic-light-mode .online-card,
body.thic-light-mode .online-panel,
body.thic-light-mode .online-table-wrap,
body.thic-light-mode .contacts-toolbar,
body.thic-light-mode .stat-card,
body.thic-light-mode .company-card,
body.thic-light-mode .user-access-card,
body.thic-light-mode .dashboard-tile,
body.thic-light-mode .report-card,
body.thic-light-mode .pipeline-tile,
body.thic-light-mode .contact-tile,
body.thic-light-mode .leaderboard-card,
body.thic-light-mode .module-control-panel,
body.thic-light-mode .budget-kpi-card,
body.thic-light-mode .budget-review-card,
body.thic-light-mode .budget-sidebar-card,
body.thic-light-mode .quick-chip,
body.thic-light-mode .review-modal,
body.thic-light-mode .review-header,
body.thic-light-mode .finance-modal,
body.thic-light-mode .finance-kpis .finance-kpi,
body.thic-light-mode .thic-card,
body.thic-light-mode .thic-panel,
body.thic-light-mode .influencer-radar-panel,
body.thic-light-mode .dashboard-panel,
body.thic-light-mode .budget-kpi,
body.thic-light-mode .budget-card,
body.thic-light-mode .budget-review-card,
body.thic-light-mode .finance-kpi,
body.thic-light-mode .finance-upload-card,
body.thic-light-mode .finance-vat-card,
body.thic-light-mode .online-kpi,
body.thic-light-mode .tile-detail-modal,
body.thic-light-mode .radar-stage,
body.thic-light-mode .radar-sidebar,
body.thic-light-mode .radar-status-card,
body.thic-light-mode .radar-control-card{
  background:
    radial-gradient(circle at 0% 0%, rgba(179,243,231,0.42), transparent 28%),
    linear-gradient(180deg, rgba(252,255,255,0.98) 0%, rgba(239,250,247,0.96) 100%) !important;
  color:#10312c !important;
  border:1px solid rgba(88,176,165,0.18) !important;
  box-shadow:0 16px 32px rgba(25,79,74,0.09) !important;
}
body.thic-light-mode .module-control-stat-theme{
  background:#ffffff !important;
}
body.thic-light-mode .radar-home-hero,
body.thic-light-mode .radar-layout-grid,
body.thic-light-mode .radar-command-deck,
body.thic-light-mode .radar-home-shell,
body.thic-light-mode .radar-stage-shell{
  background:transparent !important;
  color:#111111 !important;
}
body.thic-light-mode .radar-home-hero{
  background:
    radial-gradient(circle at 10% 12%, rgba(191,246,234,0.4), transparent 25%),
    linear-gradient(180deg, rgba(251,255,255,0.98), rgba(238,249,246,0.96)) !important;
  border:1px solid rgba(88,176,165,0.18) !important;
  box-shadow:0 20px 40px rgba(25,79,74,0.10) !important;
}
body.thic-light-mode .radar-home-hero h2,
body.thic-light-mode .radar-home-hero p,
body.thic-light-mode .radar-eyebrow,
body.thic-light-mode .radar-panel-kicker,
body.thic-light-mode .radar-preview-panel h3,
body.thic-light-mode .radar-activity-panel h3,
body.thic-light-mode .radar-pulse-copy,
body.thic-light-mode .radar-activity-item,
body.thic-light-mode .radar-preview-stat strong,
body.thic-light-mode .radar-preview-stat span,
body.thic-light-mode .radar-core-kicker,
body.thic-light-mode .radar-core small,
body.thic-light-mode .radar-node-meta,
body.thic-light-mode .radar-node small,
body.thic-light-mode .radar-node strong,
body.thic-light-mode .module-control-kicker,
body.thic-light-mode .module-control-head h3,
body.thic-light-mode .module-control-stat .label,
body.thic-light-mode .module-control-stat strong,
body.thic-light-mode .module-control-stat small,
body.thic-light-mode .module-control-strip-label,
body.thic-light-mode .module-control-strip strong,
body.thic-light-mode .module-control-note,
body.thic-light-mode .module-control-action,
body.thic-light-mode .radar-workspace-btn,
body.thic-light-mode .radar-status-label,
body.thic-light-mode .radar-status-caption{
  color:#10312c !important;
}
body.thic-light-mode .radar-eyebrow,
body.thic-light-mode .radar-panel-kicker,
body.thic-light-mode .module-control-kicker,
body.thic-light-mode .module-control-stat .label,
body.thic-light-mode .module-control-strip-label,
body.thic-light-mode .radar-status-label,
body.thic-light-mode .radar-preview-stat span,
body.thic-light-mode .radar-node-meta{
  color:rgba(16,49,44,0.58) !important;
}
body.thic-light-mode .module-control-panel,
body.thic-light-mode .radar-command-deck{
  background:
    radial-gradient(circle at 0% 0%, rgba(179,243,231,0.54), transparent 27%),
    linear-gradient(180deg, rgba(251,255,255,0.98) 0%, rgba(236,248,245,0.96) 100%) !important;
  border:1px solid rgba(88,176,165,0.18) !important;
  box-shadow:0 20px 42px rgba(25,79,74,0.10) !important;
}
body.thic-light-mode .module-control-panel::after,
body.thic-light-mode .radar-command-deck::before,
body.thic-light-mode .radar-command-deck::after{
  display:none !important;
}
body.thic-light-mode .module-control-stat,
body.thic-light-mode .module-control-strip,
body.thic-light-mode .module-control-note,
body.thic-light-mode .radar-preview-stat,
body.thic-light-mode .radar-preview-panel,
body.thic-light-mode .radar-activity-panel,
body.thic-light-mode .radar-activity-item{
  background:
    radial-gradient(circle at 0% 0%, rgba(196,248,238,0.5), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(243,252,249,0.96) 100%) !important;
  border:1px solid rgba(88,176,165,0.16) !important;
  box-shadow:0 12px 24px rgba(25,79,74,0.08) !important;
}
body.thic-light-mode .module-control-action,
body.thic-light-mode .radar-workspace-btn{
  background:rgba(255,255,255,0.78) !important;
  border:1px solid rgba(70,157,151,0.22) !important;
  box-shadow:none !important;
}
body.thic-light-mode .module-control-action:hover,
body.thic-light-mode .radar-workspace-btn:hover,
body.thic-light-mode .radar-workspace-btn.active{
  background:linear-gradient(135deg, rgba(35,142,149,0.96), rgba(109,213,223,0.92)) !important;
  color:#f7fffd !important;
  border-color:rgba(35,142,149,0.92) !important;
  transform:none !important;
}
body.thic-light-mode .radar-command-deck .radar-control-card,
body.thic-light-mode .radar-control-card{
  background:
    radial-gradient(circle at 0% 0%, rgba(196,248,238,0.46), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(242,251,248,0.96) 100%) !important;
  border:1px solid rgba(88,176,165,0.18) !important;
  box-shadow:0 14px 28px rgba(25,79,74,0.08) !important;
}
body.thic-light-mode .radar-control-kicker,
body.thic-light-mode .radar-control-meta{
  color:rgba(17,17,17,0.62) !important;
}
body.thic-light-mode .radar-command-deck .radar-control-card strong,
body.thic-light-mode .radar-command-deck .radar-control-card small,
body.thic-light-mode .radar-command-deck .radar-control-kicker,
body.thic-light-mode .radar-command-deck .radar-control-meta{
  color:inherit !important;
}
body.thic-light-mode .thic-popup-overlay{
  background:rgba(236,244,240,0.76) !important;
  backdrop-filter:blur(8px) !important;
}
body.thic-light-mode .thic-popup-card{
  background:
    radial-gradient(circle at 0% 0%, rgba(201,248,238,0.6), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fcfa 100%) !important;
  border:1px solid rgba(134,173,161,0.22) !important;
  box-shadow:0 28px 70px rgba(34,66,57,0.14) !important;
  color:#111111 !important;
}
body.thic-light-mode .invite-share-card{
  background:linear-gradient(135deg, rgba(102,221,236,0.26), rgba(255,255,255,0.88));
  border-color:rgba(67,164,177,0.22);
}
body.thic-light-mode .invite-share-card strong,
body.thic-light-mode .invite-share-block textarea,
body.thic-light-mode .invite-share-block input{
  color:#103533;
}
body.thic-light-mode .thic-popup-close{
  background:#ffffff !important;
  color:#111111 !important;
  border:1px solid rgba(17,17,17,0.12) !important;
}
body.thic-light-mode .thic-popup-kicker{
  color:rgba(17,17,17,0.58) !important;
}
body.thic-light-mode .thic-popup-card h3,
body.thic-light-mode .thic-popup-card p{
  color:#111111 !important;
}
body.thic-light-mode .thic-popup-action,
body.thic-light-mode .thic-radar-launcher-card{
  background:
    radial-gradient(circle at 0% 0%, rgba(214,250,242,0.52), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfefd 100%) !important;
  color:#111111 !important;
  border:1px solid rgba(134,173,161,0.18) !important;
  box-shadow:0 12px 22px rgba(34,66,57,0.08) !important;
}
body.thic-light-mode .thic-radar-launcher-card span{
  color:rgba(17,17,17,0.58) !important;
}
body.thic-light-mode .thic-radar-launcher-card strong{
  color:#111111 !important;
}
body.thic-light-mode .review-overlay,
body.thic-light-mode .tile-detail-overlay,
body.thic-light-mode .command-overlay,
body.thic-light-mode .modal-overlay,
body.thic-light-mode .modal-backdrop,
body.thic-light-mode .overlay{
  background:rgba(236,244,240,0.68) !important;
  backdrop-filter:blur(6px) !important;
}
body.thic-light-mode .review-modal,
body.thic-light-mode .tile-detail-modal,
body.thic-light-mode .contact-modal,
body.thic-light-mode .modal-content,
body.thic-light-mode .popup-card,
body.thic-light-mode .modal-card,
body.thic-light-mode .finance-modal,
body.thic-light-mode .roadmap-modal,
body.thic-light-mode .command-modal,
body.thic-light-mode .ucb-modal{
  background:
    radial-gradient(circle at 0% 0%, rgba(201,248,238,0.6), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fcfa 100%) !important;
  border:1px solid rgba(134,173,161,0.22) !important;
  box-shadow:0 28px 70px rgba(34,66,57,0.14) !important;
  color:#111111 !important;
}
body.thic-light-mode .review-header,
body.thic-light-mode .modal-header,
body.thic-light-mode .contact-modal-header{
  background:transparent !important;
  border-bottom:1px solid rgba(134,173,161,0.18) !important;
}
body.thic-light-mode .review-header h3,
body.thic-light-mode .contact-modal h3,
body.thic-light-mode .tile-detail-modal h3,
body.thic-light-mode .ucb-modal h3,
body.thic-light-mode .ucb-modal p,
body.thic-light-mode .ucb-modal label{
  color:#12332d !important;
}
body.thic-light-mode .ucb-modal input,
body.thic-light-mode .ucb-modal select,
body.thic-light-mode .ucb-modal textarea,
body.thic-light-mode .review-modal input,
body.thic-light-mode .review-modal select,
body.thic-light-mode .review-modal textarea,
body.thic-light-mode .contact-modal input,
body.thic-light-mode .contact-modal select,
body.thic-light-mode .contact-modal textarea,
body.thic-light-mode .tile-detail-modal input,
body.thic-light-mode .tile-detail-modal select,
body.thic-light-mode .tile-detail-modal textarea{
  background:#ffffff !important;
  color:#111111 !important;
  border:1px solid rgba(134,173,161,0.22) !important;
  box-shadow:none !important;
}
body.thic-light-mode .ucb-modal select option{
  background:#ffffff !important;
  color:#111111 !important;
}
body.thic-light-mode .ucb-modal input::placeholder,
body.thic-light-mode .ucb-modal textarea::placeholder{
  color:rgba(17,17,17,0.42) !important;
}
body.thic-light-mode .ucb-modal .selector-note-box,
body.thic-light-mode .selector-note-box{
  background:
    radial-gradient(circle at 0% 0%, rgba(214,250,242,0.52), transparent 28%),
    linear-gradient(180deg, #f9fffd 0%, #f2fbf7 100%) !important;
  color:#12332d !important;
  border:1px solid rgba(134,173,161,0.18) !important;
}
body.thic-light-mode .ucb-modal .lead-flow-step,
body.thic-light-mode .lead-flow-step,
body.thic-light-mode .influencer-flow-step{
  background:#e8f2ef !important;
  color:#4a5d58 !important;
  border:1px solid rgba(134,173,161,0.14) !important;
  box-shadow:none !important;
}
body.thic-light-mode .ucb-modal .lead-flow-step.active,
body.thic-light-mode .lead-flow-step.active,
body.thic-light-mode .influencer-flow-step.active{
  background:linear-gradient(135deg, #2f9eaa, #67c8d2) !important;
  color:#ffffff !important;
  border-color:transparent !important;
}
body.thic-light-mode .thic-modal-close,
body.thic-light-mode .close-btn{
  background:#ffffff !important;
  color:#111111 !important;
  border:1px solid rgba(134,173,161,0.22) !important;
}

/* light mode refinement + admin redesign */
body.thic-light-mode .smart-global-header{
  padding:22px 28px !important;
  border-radius:24px !important;
  margin-bottom:22px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(188,246,234,0.64), transparent 18%),
    radial-gradient(circle at 100% 0%, rgba(224,250,243,0.72), transparent 18%),
    linear-gradient(180deg, #fbfffd 0%, #f4fcf8 100%) !important;
  box-shadow:0 18px 34px rgba(34,66,57,0.08) !important;
}
body.thic-light-mode .smart-header-copy h2{
  font-size:34px !important;
  line-height:1.02 !important;
  margin-bottom:8px !important;
}
body.thic-light-mode .smart-header-copy p{
  font-size:15px !important;
  line-height:1.45 !important;
}
body.thic-light-mode .radar-home-shell > .module-control-panel,
body.thic-light-mode .radar-home-shell > .module-mission-deck{
  padding:24px 26px !important;
  border-radius:28px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(201,248,238,0.34), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%) !important;
  box-shadow:0 18px 34px rgba(34,66,57,0.08) !important;
}
body.thic-light-mode .radar-home-shell > .module-control-panel .module-control-stat,
body.thic-light-mode .radar-home-shell > .module-control-panel .module-control-strip,
body.thic-light-mode .radar-home-shell > .module-control-panel .module-control-note,
body.thic-light-mode .radar-home-shell > .module-mission-deck .module-mission-card{
  background:
    radial-gradient(circle at 0% 0%, rgba(214,250,242,0.34), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #fbfefd 100%) !important;
  box-shadow:0 10px 20px rgba(34,66,57,0.05) !important;
}
body.thic-light-mode .module-control-stat-theme{
  min-height:auto !important;
  justify-content:flex-start !important;
  gap:10px !important;
}
body.thic-light-mode .module-control-stat-theme strong{
  font-size:16px !important;
}
body.thic-light-mode .module-control-stat-theme small{
  font-size:13px !important;
  color:rgba(17,17,17,0.56) !important;
}
body.thic-light-mode .theme-tile-actions{
  margin-top:6px !important;
}
body.thic-light-mode .theme-mode-btn{
  padding:9px 14px !important;
  font-size:11px !important;
}
body.thic-light-mode .radar-home-hero{
  padding:26px 28px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(214,250,242,0.42), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #fbfefd 100%) !important;
}
body.thic-light-mode .radar-status-card{
  background:
    radial-gradient(circle at 0% 0%, rgba(214,250,242,0.42), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfefd 100%) !important;
}

.admin-shell{
  display:grid;
  gap:24px;
}
.admin-command-bar{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(320px,0.9fr);
  gap:22px;
  align-items:start;
}
.admin-command-copy h3{
  margin:4px 0 10px;
}
.admin-focus-pills{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:flex-start;
}
.admin-focus-btn{
  min-width:138px;
}
.admin-section-kicker{
  display:inline-block;
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:800;
  color:rgba(122,255,214,0.72);
  margin-bottom:8px;
}
.admin-panel-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.admin-panel-header h3{
  margin:2px 0 6px;
}
.admin-section-panel{
  padding-top:24px !important;
}
.admin-portal-grid,
.admin-ops-grid{
  align-items:start;
}

body.thic-light-mode .admin-shell{
  gap:22px;
}
body.thic-light-mode .admin-command-bar,
body.thic-light-mode .admin-reset-panel,
body.thic-light-mode .admin-section-panel,
body.thic-light-mode #adminUsersAccessMount > .admin-grid > .panel,
body.thic-light-mode #adminUsersAccessMount > .panel{
  background:
    radial-gradient(circle at 0% 0%, rgba(200,248,238,0.44), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%) !important;
  border:1px solid rgba(134,173,161,0.18) !important;
  box-shadow:0 18px 34px rgba(34,66,57,0.07) !important;
}
body.thic-light-mode .admin-command-bar{
  padding:24px 26px !important;
  border-radius:28px !important;
}

/* admin wrappers should not render as a second inner screen */
[data-admin-panel]{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  overflow:visible !important;
}

[data-admin-panel]::before{
  display:none !important;
  content:none !important;
}
body.thic-light-mode .admin-focus-btn,
body.thic-light-mode .company-admin-item,
body.thic-light-mode .user-access-card,
body.thic-light-mode .user-access-row{
  background:
    radial-gradient(circle at 0% 0%, rgba(214,250,242,0.4), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfefd 100%) !important;
  border:1px solid rgba(134,173,161,0.18) !important;
  color:#12332d !important;
  box-shadow:0 10px 18px rgba(34,66,57,0.05) !important;
}
body.thic-light-mode .company-admin-item span,
body.thic-light-mode .user-access-card span,
body.thic-light-mode .user-access-card small{
  color:rgba(18,51,45,0.64) !important;
}
body.thic-light-mode .user-access-card.active,
body.thic-light-mode .company-admin-item.active{
  border-color:#2f9eaa !important;
  box-shadow:0 0 0 2px rgba(47,158,170,0.12), 0 14px 24px rgba(34,66,57,0.08) !important;
}
body.thic-light-mode [data-admin-panel].admin-panel-muted{
  opacity:.62;
}
body.thic-light-mode .admin-section-kicker{
  color:rgba(18,51,45,0.52) !important;
}
body.thic-light-mode .admin-panel-header h3,
body.thic-light-mode .admin-command-copy h3{
  color:#12332d !important;
}
body.thic-light-mode .admin-quick-nav .helper-text,
body.thic-light-mode .admin-section-panel .helper-text,
body.thic-light-mode .admin-reset-panel .helper-text{
  color:rgba(18,51,45,0.70) !important;
}

@media (max-width: 980px){
  .admin-command-bar{
    grid-template-columns:1fr;
  }
  .admin-focus-pills{
    justify-content:flex-start;
  }
}

/* login redesign */
.thic-login-shell{
  position:relative;
  overflow:hidden;
}
.thic-login-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}
.thic-login-kicker{
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:800;
}
.thic-login-theme-switch{
  display:flex;
  gap:8px;
  padding:4px;
  border-radius:999px;
}
.thic-login-theme-btn{
  appearance:none;
  border:0;
  border-radius:999px;
  padding:9px 14px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}
.thic-login-theme-btn.active{
  transform:translateY(-1px);
}
.thic-login-hero{
  display:grid !important;
}
.thic-login-module-grid{
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:12px !important;
  margin-bottom:18px !important;
}
.thic-login-module-grid .module-btn{
  min-height:94px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  text-align:left;
  padding:16px 18px;
}
.thic-login-module-grid .module-btn strong{
  font-size:16px;
  line-height:1.1;
}
.thic-login-module-grid .module-btn span{
  font-size:13px;
  line-height:1.4;
  opacity:.82;
}
.thic-login-pin-kicker{
  display:inline-block;
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:800;
  margin-bottom:8px;
}
.thic-login-help-links{
  margin-top:18px !important;
}
.thic-login-help-links a{
  font-weight:600;
}

.thic-login-dark{
  background:
    radial-gradient(circle at 12% 10%, rgba(88,223,191,0.16), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(103,182,255,0.16), transparent 22%),
    linear-gradient(135deg, #071716 0%, #11373d 48%, #203f4c 100%) !important;
}
.thic-login-dark .wow-landing-card{
  background:
    radial-gradient(circle at 0% 0%, rgba(70,214,182,0.14), transparent 20%),
    radial-gradient(circle at 86% 12%, rgba(103,182,255,0.10), transparent 20%),
    linear-gradient(145deg, rgba(8,24,23,0.94), rgba(12,43,49,0.96)) !important;
  border:1px solid rgba(126,255,218,0.18) !important;
  box-shadow:0 32px 80px rgba(2,12,11,0.36) !important;
}
.thic-login-dark .thic-login-kicker,
.thic-login-dark .landing-overline,
.thic-login-dark .thic-login-pin-kicker{
  color:rgba(191,255,233,0.72) !important;
}
.thic-login-dark .thic-login-theme-switch{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(126,255,218,0.12);
}
.thic-login-dark .thic-login-theme-btn{
  background:transparent;
  color:rgba(233,251,246,0.74);
}
.thic-login-dark .thic-login-theme-btn.active{
  background:#ffffff;
  color:#0c2321;
}
.thic-login-dark .thic-login-hero{
  background:
    radial-gradient(circle at 0% 0%, rgba(84,227,194,0.18), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(103,182,255,0.16), transparent 22%),
    linear-gradient(135deg, rgba(11,42,39,0.96), rgba(24,82,96,0.92), rgba(95,143,155,0.82)) !important;
  box-shadow:0 20px 48px rgba(0,0,0,0.22) !important;
}
.thic-login-dark .wow-module-buttons .module-btn,
.thic-login-dark .wow-keypad button,
.thic-login-dark .minimal-pin-block{
  background:
    radial-gradient(circle at 14% 18%, rgba(72,211,176,0.14), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(103,182,255,0.12), transparent 22%),
    linear-gradient(145deg, rgba(10,34,31,0.96), rgba(14,44,50,0.94)) !important;
  border:1px solid rgba(126,255,218,0.14) !important;
  color:#effcf8 !important;
  box-shadow:0 18px 34px rgba(0,0,0,0.2) !important;
}
.thic-login-dark .wow-module-buttons .module-btn span,
.thic-login-dark .pin-header p,
.thic-login-dark .minimal-module-links a{
  color:rgba(224,247,239,0.74) !important;
}
.thic-login-dark .wow-module-buttons .module-btn.selected,
.thic-login-dark .wow-keypad .keypad-ok{
  background:linear-gradient(135deg, #2c9f9c, #6cc8d3) !important;
  border-color:transparent !important;
  color:#ffffff !important;
}
.thic-login-dark .wow-keypad .keypad-muted{
  background:rgba(255,255,255,0.06) !important;
  color:rgba(233,251,246,0.66) !important;
}
.thic-login-dark .wow-pin-display{
  background:rgba(6,21,20,0.92) !important;
  border:1px solid rgba(126,255,218,0.14) !important;
  color:#f4fffc !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.03) !important;
}
.thic-login-dark .pin-header h3,
.thic-login-dark .landing-card h1{
  color:#f4fffc !important;
}
.thic-login-dark .landing-message.error{ color:#ffb3b3; }
.thic-login-dark .landing-message.success{ color:#8af1c6; }

.thic-login-light{
  background:
    radial-gradient(circle at 12% 10%, rgba(193,249,238,0.72), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(214,234,255,0.92), transparent 20%),
    linear-gradient(180deg, #fbfffd 0%, #eef7fb 100%) !important;
}
.thic-login-light .wow-landing-card{
  background:
    radial-gradient(circle at 0% 0%, rgba(201,248,238,0.42), transparent 18%),
    radial-gradient(circle at 86% 12%, rgba(103,182,255,0.12), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f4fafe 100%) !important;
  border:1px solid rgba(134,173,161,0.18) !important;
  box-shadow:0 28px 64px rgba(34,66,57,0.10) !important;
}
.thic-login-light .thic-login-kicker,
.thic-login-light .landing-overline,
.thic-login-light .thic-login-pin-kicker{
  color:rgba(18,51,45,0.58) !important;
}
.thic-login-light .thic-login-theme-switch{
  background:rgba(18,51,45,0.04);
  border:1px solid rgba(134,173,161,0.16);
}
.thic-login-light .thic-login-theme-btn{
  background:transparent;
  color:#48615a;
}
.thic-login-light .thic-login-theme-btn.active{
  background:#111111;
  color:#ffffff;
}
.thic-login-light .thic-login-hero{
  background:
    radial-gradient(circle at 0% 0%, rgba(193,249,238,0.62), transparent 22%),
    radial-gradient(circle at 86% 16%, rgba(103,182,255,0.16), transparent 18%),
    linear-gradient(180deg, #fbfffd 0%, #eef6fc 100%) !important;
  color:#12332d !important;
  box-shadow:0 18px 36px rgba(34,66,57,0.08) !important;
}
.thic-login-light .landing-hero-band h2,
.thic-login-light .landing-hero-band p{
  color:#12332d !important;
}
.thic-login-light .landing-pill{
  background:#ffffff !important;
  border:1px solid rgba(134,173,161,0.18) !important;
  color:#12332d !important;
}
.thic-login-light .wow-module-buttons .module-btn,
.thic-login-light .wow-keypad button,
.thic-login-light .minimal-pin-block{
  background:
    radial-gradient(circle at 0% 0%, rgba(214,250,242,0.42), transparent 22%),
    radial-gradient(circle at 86% 12%, rgba(103,182,255,0.10), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%) !important;
  border:1px solid rgba(134,173,161,0.18) !important;
  color:#12332d !important;
  box-shadow:0 12px 22px rgba(34,66,57,0.06) !important;
}
.thic-login-light .wow-module-buttons .module-btn span,
.thic-login-light .pin-header p,
.thic-login-light .minimal-module-links a{
  color:rgba(18,51,45,0.68) !important;
}
.thic-login-light .wow-module-buttons .module-btn.selected,
.thic-login-light .wow-keypad .keypad-ok{
  background:linear-gradient(135deg, #2f9eaa, #67c8d2) !important;
  border-color:transparent !important;
  color:#ffffff !important;
}
.thic-login-light .wow-keypad .keypad-muted{
  background:#f3f7f5 !important;
  color:#48615a !important;
}
.thic-login-light .wow-pin-display{
  background:#ffffff !important;
  border:1px solid rgba(134,173,161,0.18) !important;
  color:#12332d !important;
}

@media (max-width: 980px){
  .thic-login-module-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px){
  .thic-login-topbar{
    flex-direction:column;
    align-items:flex-start;
  }
  .thic-login-module-grid{
    grid-template-columns:1fr !important;
  }
  .thic-login-light .wow-landing-card,
  .thic-login-dark .wow-landing-card{
    padding:22px 18px !important;
  }
}

/* final light theme brand pass */
body.thic-light-mode{
  --thic-light-accent-1:#2fa4b3;
  --thic-light-accent-2:#5f8f9b;
  --thic-light-accent-3:#0f3a35;
  --thic-light-accent-soft:rgba(47,164,179,0.14);
  --thic-light-border:rgba(95,143,155,0.22);
}
body.thic-light-mode .smart-global-header{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.18), transparent 18%),
    radial-gradient(circle at 100% 0%, rgba(95,143,155,0.16), transparent 18%),
    linear-gradient(135deg, rgba(15,58,53,0.10) 0%, rgba(47,164,179,0.08) 52%, rgba(95,143,155,0.10) 100%) !important;
  border:1px solid rgba(47,164,179,0.18) !important;
  box-shadow:0 18px 34px rgba(15,58,53,0.08) !important;
}
body.thic-light-mode .panel,
body.thic-light-mode .panel-subtle,
body.thic-light-mode .table-wrap,
body.thic-light-mode .company-table-wrap,
body.thic-light-mode .finance-section,
body.thic-light-mode .finance-section-body,
body.thic-light-mode .finance-section-toggle,
body.thic-light-mode .finance-two-col > .panel,
body.thic-light-mode .finance-two-col > .finance-section,
body.thic-light-mode .finance-summary-grid > div,
body.thic-light-mode .finance-hero-item,
body.thic-light-mode .upload-row,
body.thic-light-mode .form-grid .form-group,
body.thic-light-mode .online-card,
body.thic-light-mode .online-panel,
body.thic-light-mode .online-table-wrap,
body.thic-light-mode .contacts-toolbar,
body.thic-light-mode .stat-card,
body.thic-light-mode .company-card,
body.thic-light-mode .user-access-card,
body.thic-light-mode .dashboard-tile,
body.thic-light-mode .report-card,
body.thic-light-mode .pipeline-tile,
body.thic-light-mode .contact-tile,
body.thic-light-mode .leaderboard-card,
body.thic-light-mode .module-control-panel,
body.thic-light-mode .budget-kpi-card,
body.thic-light-mode .budget-review-card,
body.thic-light-mode .budget-sidebar-card,
body.thic-light-mode .review-modal,
body.thic-light-mode .review-header,
body.thic-light-mode .finance-modal,
body.thic-light-mode .finance-kpis .finance-kpi,
body.thic-light-mode .thic-card,
body.thic-light-mode .thic-panel,
body.thic-light-mode .influencer-radar-panel,
body.thic-light-mode .dashboard-panel,
body.thic-light-mode .budget-kpi,
body.thic-light-mode .budget-card,
body.thic-light-mode .finance-kpi,
body.thic-light-mode .finance-upload-card,
body.thic-light-mode .finance-vat-card,
body.thic-light-mode .online-kpi,
body.thic-light-mode .tile-detail-modal,
body.thic-light-mode .radar-status-card,
body.thic-light-mode .radar-control-card,
body.thic-light-mode .review-modal,
body.thic-light-mode .contact-modal,
body.thic-light-mode .modal-content,
body.thic-light-mode .popup-card,
body.thic-light-mode .modal-card,
body.thic-light-mode .finance-modal,
body.thic-light-mode .roadmap-modal,
body.thic-light-mode .command-modal,
body.thic-light-mode .ucb-modal{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.10), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #fbfefe 100%) !important;
  border:1px solid var(--thic-light-border) !important;
  box-shadow:0 16px 32px rgba(15,58,53,0.06) !important;
}
body.thic-light-mode .radar-home-shell > .module-control-panel,
body.thic-light-mode .radar-home-shell > .module-mission-deck,
body.thic-light-mode .radar-home-hero,
body.thic-light-mode .module-control-panel,
body.thic-light-mode .radar-command-deck,
body.thic-light-mode .admin-command-bar,
body.thic-light-mode .admin-reset-panel,
body.thic-light-mode .admin-section-panel,
body.thic-light-mode #adminUsersAccessMount > .admin-grid > .panel,
body.thic-light-mode #adminUsersAccessMount > .panel{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.12), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f9fdfd 100%) !important;
  border:1px solid var(--thic-light-border) !important;
  box-shadow:0 18px 34px rgba(15,58,53,0.07) !important;
}
body.thic-light-mode .module-control-stat,
body.thic-light-mode .module-control-strip,
body.thic-light-mode .module-control-note,
body.thic-light-mode .radar-preview-stat,
body.thic-light-mode .radar-preview-panel,
body.thic-light-mode .radar-activity-panel,
body.thic-light-mode .radar-activity-item,
body.thic-light-mode .company-admin-item,
body.thic-light-mode .user-access-row{
  background:
    radial-gradient(circle at 0% 0%, rgba(95,143,155,0.10), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #fbfefe 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  box-shadow:0 10px 20px rgba(15,58,53,0.05) !important;
}
body.thic-light-mode .primary-btn,
body.thic-light-mode .module-control-action:hover,
body.thic-light-mode .radar-workspace-btn:hover,
body.thic-light-mode .radar-workspace-btn.active,
body.thic-light-mode .theme-mode-btn.active,
body.thic-light-mode .thic-login-theme-btn.active,
body.thic-light-mode .wow-module-buttons .module-btn.selected,
body.thic-light-mode .wow-keypad .keypad-ok{
  background:linear-gradient(135deg, var(--thic-light-accent-3), var(--thic-light-accent-1)) !important;
  color:#ffffff !important;
  border-color:transparent !important;
  box-shadow:0 14px 26px rgba(15,58,53,0.16) !important;
}
body.thic-light-mode .primary-btn:hover{
  background:linear-gradient(135deg, var(--thic-light-accent-3), var(--thic-light-accent-2)) !important;
}
body.thic-light-mode .secondary-btn,
body.thic-light-mode .ghost-btn,
body.thic-light-mode .quick-chip,
body.thic-light-mode .module-control-action,
body.thic-light-mode .radar-workspace-btn,
body.thic-light-mode .theme-mode-btn,
body.thic-light-mode .close-btn,
body.thic-light-mode .thic-popup-action,
body.thic-light-mode .thic-popup-close,
body.thic-light-mode .thic-radar-launcher-card,
body.thic-light-mode .admin-focus-btn,
body.thic-light-mode .company-admin-item,
body.thic-light-mode .user-access-card,
body.thic-light-mode .wow-keypad button,
body.thic-light-mode .wow-module-buttons .module-btn{
  background:#ffffff !important;
  color:var(--thic-light-accent-3) !important;
  border:1px solid rgba(95,143,155,0.22) !important;
  box-shadow:0 8px 18px rgba(15,58,53,0.05) !important;
}
body.thic-light-mode .secondary-btn:hover,
body.thic-light-mode .ghost-btn:hover,
body.thic-light-mode .quick-chip:hover,
body.thic-light-mode .quick-chip.active,
body.thic-light-mode .module-control-action:hover,
body.thic-light-mode .theme-mode-btn:hover,
body.thic-light-mode .thic-popup-action:hover,
body.thic-light-mode .thic-radar-launcher-card:hover,
body.thic-light-mode .admin-focus-btn:hover{
  background:var(--thic-light-accent-soft) !important;
  color:var(--thic-light-accent-3) !important;
  border-color:rgba(47,164,179,0.28) !important;
}
body.thic-light-mode .quick-chip.active,
body.thic-light-mode .admin-focus-btn:focus-visible,
body.thic-light-mode .secondary-btn:focus-visible,
body.thic-light-mode .primary-btn:focus-visible,
body.thic-light-mode .theme-mode-btn:focus-visible{
  outline:2px solid rgba(47,164,179,0.22) !important;
  outline-offset:2px !important;
}
body.thic-light-mode .radar-ring,
body.thic-light-mode .radar-ring-outer,
body.thic-light-mode .radar-ring-mid,
body.thic-light-mode .radar-ring-inner,
body.thic-light-mode .radar-sweep{
  opacity:.22 !important;
  filter:grayscale(1) !important;
}
body.thic-light-mode .radar-core,
body.thic-light-mode .radar-node{
  background:#ffffff !important;
  color:#111111 !important;
  border:1px solid rgba(17,17,17,0.22) !important;
  box-shadow:0 16px 30px rgba(17,17,17,0.10) !important;
}
body.thic-light-mode .radar-node small,
body.thic-light-mode .radar-control-meta,
body.thic-light-mode .radar-status-caption,
body.thic-light-mode .radar-control-card small,
body.thic-light-mode .panel p,
body.thic-light-mode .panel span,
body.thic-light-mode .panel small,
body.thic-light-mode .panel label,
body.thic-light-mode .panel li,
body.thic-light-mode .online-card p,
body.thic-light-mode .online-card span,
body.thic-light-mode .online-card small,
body.thic-light-mode .finance-section p,
body.thic-light-mode .finance-section span,
body.thic-light-mode .finance-section small,
body.thic-light-mode .table-wrap td,
body.thic-light-mode .table-wrap th,
body.thic-light-mode .company-card span,
body.thic-light-mode .user-access-card span,
body.thic-light-mode .contact-owner-line,
body.thic-light-mode .pipeline-meta,
body.thic-light-mode .contact-tags{
  color:rgba(17,17,17,0.66) !important;
}
body.thic-light-mode .panel h1,
body.thic-light-mode .panel h2,
body.thic-light-mode .panel h3,
body.thic-light-mode .panel h4,
body.thic-light-mode .panel h5,
body.thic-light-mode .finance-hero-item strong,
body.thic-light-mode .finance-summary-grid strong,
body.thic-light-mode .online-card h3,
body.thic-light-mode .online-card h4,
body.thic-light-mode .stat-card strong,
body.thic-light-mode .table-wrap strong,
body.thic-light-mode .finance-kpi h4,
body.thic-light-mode .finance-kpi div,
body.thic-light-mode .contact-tile strong,
body.thic-light-mode .pipeline-tile strong,
body.thic-light-mode .leaderboard-card strong,
body.thic-light-mode .influencer-radar-panel strong,
body.thic-light-mode .radar-control-card strong,
body.thic-light-mode .radar-status-value,
body.thic-light-mode .radar-core strong{
  color:#111111 !important;
}
body.thic-light-mode .table-wrap thead th,
body.thic-light-mode .online-table-wrap thead th,
body.thic-light-mode .finance-section thead th{
  background:#111111 !important;
  color:#ffffff !important;
}
body.thic-light-mode .table-wrap tbody td,
body.thic-light-mode .online-table-wrap tbody td,
body.thic-light-mode .finance-section tbody td{
  background:#ffffff !important;
  color:#111111 !important;
  border-color:rgba(17,17,17,0.08) !important;
}
body.thic-light-mode input,
body.thic-light-mode select,
body.thic-light-mode textarea{
  background:#ffffff !important;
  color:#111111 !important;
  border:1px solid rgba(17,17,17,0.18) !important;
  box-shadow:none !important;
}
body.thic-light-mode input::placeholder,
body.thic-light-mode textarea::placeholder{
  color:rgba(17,17,17,0.42) !important;
}
body.thic-light-mode .quick-chip,
body.thic-light-mode .secondary-btn,
body.thic-light-mode .close-btn,
body.thic-light-mode .theme-mode-btn{
  background:#ffffff !important;
  color:#111111 !important;
  border:1px solid rgba(17,17,17,0.18) !important;
}
body.thic-light-mode .primary-btn{
  background:#111111 !important;
  color:#ffffff !important;
  border:1px solid #111111 !important;
}
body.thic-light-mode .theme-mode-btn.active{
  background:#111111 !important;
  color:#ffffff !important;
  border-color:#111111 !important;
  box-shadow:0 14px 24px rgba(17,17,17,0.12) !important;
}
body.thic-light-mode .sidebar{
  background:#0f1519 !important;
}
body.thic-light-mode .nav-btn{
  color:#e9f5f1 !important;
}
body.thic-light-mode .nav-btn.active{
  background:#ffffff !important;
  color:#111111 !important;
}
body.thic-light-mode .spotlight-meter{
  background:rgba(17,17,17,0.08) !important;
}
body.thic-light-mode .spotlight-meter-fill{
  background:linear-gradient(90deg, #111111, #4b4b4b) !important;
}

/* responsive stability pass */
html,
body{
  max-width:100%;
  overflow-x:hidden;
}

button,
a,
.module-btn,
.thic-login-theme-btn,
.wow-keypad button{
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}

body,
#app,
.app-shell,
.crm-shell,
.layout-shell,
.main-content,
.content,
.content-shell,
.main-panel,
.page-content,
.module-content,
.content-area,
.dashboard-content,
.app-shell main{
  min-width:0;
}

@media (min-width: 901px){
  .main,
  .content,
  .main-content,
  .app-shell.sidebar-collapsed .main,
  .app-shell.sidebar-collapsed .content,
  .app-shell.sidebar-collapsed .main-content{
    width:auto !important;
    max-width:none !important;
    overflow-x:clip !important;
  }
}

.landing-shell.thic-login-shell{
  padding:clamp(12px, 3vw, 28px);
}

.thic-login-dark .wow-landing-card,
.thic-login-light .wow-landing-card{
  width:min(640px, 100%);
  max-width:min(640px, calc(100vw - 24px));
  padding:clamp(20px, 3vw, 36px) !important;
}

.thic-login-module-grid{
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)) !important;
}

.minimal-pin-block{
  width:100%;
  max-width:100%;
  margin:0 auto;
}

.wow-pin-display{
  width:min(100%, 280px);
  max-width:100%;
  margin:0 auto 18px;
}

.wow-keypad{
  width:100%;
  max-width:420px;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  margin:0 auto;
}

.wow-keypad button{
  min-width:0;
  min-height:72px;
  font-size:24px;
}

@media (max-width: 900px){
  .landing-shell.thic-login-shell{
    align-items:flex-start;
    padding:16px;
  }

  .thic-login-dark .wow-landing-card,
  .thic-login-light .wow-landing-card{
    max-width:100%;
    border-radius:24px;
  }
}

@media (max-width: 640px){
  .landing-shell.thic-login-shell{
    padding:10px;
  }

  .thic-login-dark .wow-landing-card,
  .thic-login-light .wow-landing-card{
    max-width:calc(100vw - 20px);
    border-radius:20px;
    padding:18px 14px !important;
  }

  .landing-hero-band h2{
    font-size:clamp(24px, 8vw, 30px);
  }

  .landing-hero-band p,
  .thic-login-module-grid .module-btn span{
    font-size:13px;
  }

  .thic-login-module-grid .module-btn{
    min-height:auto;
    padding:14px;
  }

  .wow-keypad{
    max-width:100%;
    gap:10px;
  }

  .wow-keypad button{
    height:64px;
    font-size:22px;
  }
}

@media (max-width: 560px){
  .landing-shell.thic-login-shell{
    padding:6px;
  }

  .thic-login-topbar{
    justify-content:flex-end;
  }

  .thic-login-topbar{
    gap:8px;
    margin-bottom:10px;
  }

  .thic-login-kicker{
    font-size:10px;
    letter-spacing:.14em;
  }

  .thic-login-theme-switch{
    gap:6px;
    padding:3px;
  }

  .thic-login-theme-btn{
    padding:8px 12px;
    font-size:10px;
  }

  .landing-brand-block{
    gap:8px;
    margin-bottom:10px;
  }

  .landing-logo,
  .landing-logo.landing-logo-large{
    width:170px !important;
  }

  .thic-login-pin-kicker{
    font-size:10px;
    margin-bottom:6px;
  }

  .thic-login-module-grid{
    grid-template-columns:1fr !important;
    gap:8px !important;
    margin-bottom:10px !important;
  }

  .thic-login-module-grid .module-btn{
    min-height:auto;
    padding:10px 12px;
    gap:4px;
  }

  .thic-login-module-grid .module-btn strong{
    font-size:13px;
  }

  .thic-login-module-grid .module-btn span{
    font-size:11px !important;
    line-height:1.25;
  }

  .minimal-pin-block{
    padding:12px !important;
    border-radius:14px;
  }

  .pin-header h3{
    font-size:clamp(16px, 6.5vw, 22px);
    margin:0 0 3px;
  }

  .pin-header p{
    font-size:11px;
    line-height:1.25;
  }

  .wow-pin-display{
    width:min(100%, 220px);
    height:52px;
    font-size:22px;
    margin-bottom:12px;
  }

  .wow-keypad{
    max-width:100%;
    gap:8px;
  }

  .wow-keypad button{
    height:52px;
    font-size:20px;
  }

  .thic-login-help-links{
    margin-top:10px !important;
    gap:6px;
  }

  .thic-login-help-links a{
    font-size:11px;
  }
}

@media (min-width: 901px){
  .landing-minimal .minimal-landing-card,
  .thic-login-dark .wow-landing-card,
  .thic-login-light .wow-landing-card{
    width:min(620px, 100%) !important;
    max-width:min(620px, calc(100vw - 48px)) !important;
    padding:30px 30px 28px !important;
  }

  .landing-logo,
  .landing-logo.landing-logo-large{
    width:270px !important;
  }

  .thic-login-module-grid{
    gap:10px !important;
    margin-bottom:16px !important;
  }

  .thic-login-module-grid .module-btn{
    min-height:84px;
    padding:14px 16px;
  }

  .thic-login-module-grid .module-btn strong{
    font-size:15px;
  }

  .thic-login-module-grid .module-btn span{
    font-size:12px;
    line-height:1.3;
  }

  .minimal-pin-block{
    max-width:100%;
    margin:0 auto;
    padding:24px !important;
    border-radius:24px;
  }

  .pin-header h3{
    font-size:28px;
  }

  .pin-header p{
    font-size:15px;
  }

  .wow-pin-display{
    width:min(100%, 280px);
    height:68px;
    font-size:30px;
    margin-bottom:18px;
  }

  .wow-keypad{
    max-width:420px;
    margin:0 auto;
    gap:12px;
  }

  .wow-keypad button{
    min-height:72px;
    font-size:24px;
  }
}

@media (min-width: 1200px){
  .content-area{
    gap:18px !important;
  }

  .smart-global-header{
    padding:20px 26px !important;
    border-radius:24px !important;
    margin-bottom:18px !important;
    min-height:auto !important;
  }

  .smart-global-header h2{
    font-size:28px !important;
    line-height:1.08 !important;
    margin:0 0 8px !important;
  }

  .smart-global-header p{
    font-size:14px !important;
    line-height:1.45 !important;
    margin:0 !important;
  }

  .panel,
  .dashboard-hero,
  .founder-signals-panel,
  .module-control-panel,
  .budget-sidebar-card,
  .budget-review-card,
  .leaderboard-card{
    border-radius:24px !important;
  }

  .dashboard-hero,
  .founder-signals-panel{
    padding:20px 24px !important;
  }

  .dashboard-hero h3,
  .module-control-copy h3{
    font-size:18px !important;
    line-height:1.18 !important;
  }

  .dashboard-hero p,
  .module-control-copy p,
  .radar-pulse-copy{
    font-size:13px !important;
    line-height:1.45 !important;
  }

  .founder-signals-grid{
    gap:12px !important;
  }

  .founder-signal-card{
    min-height:92px !important;
    padding:14px 14px 12px !important;
    border-radius:18px !important;
  }

  .founder-signal-card span{
    margin-bottom:8px !important;
    font-size:10px !important;
  }

  .founder-signal-card strong{
    font-size:24px !important;
  }

  .founder-signal-card small{
    margin-top:6px !important;
    font-size:12px !important;
    line-height:1.35 !important;
  }

  .module-control-panel{
    padding:20px 24px !important;
  }

  .module-control-kicker{
    font-size:10px !important;
  }

  .module-control-panel h2,
  .module-control-panel h3{
    font-size:17px !important;
    line-height:1.2 !important;
  }

  .module-control-grid,
  .reports-grid,
  .radar-preview-stats{
    gap:12px !important;
  }

  .module-control-stat,
  .radar-preview-stat,
  .compact-card,
  .stat-card{
    padding:14px 16px !important;
    border-radius:18px !important;
  }

  .module-control-stat strong,
  .radar-preview-stat strong,
  .stat-card strong{
    font-size:28px !important;
    line-height:1.05 !important;
  }

  .module-control-stat small,
  .radar-preview-stat small,
  .stat-card small{
    font-size:12px !important;
    line-height:1.35 !important;
  }
}

@media (max-width: 640px){
  .radar-command-deck{
    padding:14px 10px 18px !important;
    border-radius:24px !important;
  }

  .radar-command-deck .radar-control-centers{
    gap:10px !important;
    margin-bottom:14px !important;
  }

  .radar-command-deck .radar-stage.panel,
  .radar-command-deck .radar-stage-shell{
    min-height:760px !important;
  }

  .radar-command-deck .radar-ring-outer{
    width:360px !important;
    height:360px !important;
  }

  .radar-command-deck .radar-ring-mid{
    width:255px !important;
    height:255px !important;
  }

  .radar-command-deck .radar-ring-inner{
    width:150px !important;
    height:150px !important;
  }

  .radar-command-deck .radar-sweep{
    width:290px !important;
    height:290px !important;
  }

  .radar-command-deck .radar-core{
    width:150px !important;
    height:150px !important;
    border-radius:24px !important;
  }

  .radar-command-deck .radar-core strong{
    font-size:16px !important;
  }

  .radar-command-deck .radar-core small{
    max-width:112px !important;
    font-size:11px !important;
    line-height:1.25 !important;
  }

  .radar-command-deck .radar-node{
    width:108px !important;
    min-height:72px !important;
    padding:10px 10px 9px !important;
    border-radius:18px !important;
  }

  .radar-command-deck .radar-node strong{
    font-size:13px !important;
    line-height:1.05 !important;
  }

  .radar-command-deck .radar-node small{
    font-size:10px !important;
    line-height:1.2 !important;
  }

  .radar-command-deck .radar-node-meta{
    font-size:9px !important;
    line-height:1.1 !important;
  }

  .radar-command-deck .radar-node-top-left{
    left:4% !important;
    top:14% !important;
  }

  .radar-command-deck .radar-node-top-right{
    right:4% !important;
    top:18% !important;
  }

  .radar-command-deck .radar-node-mid-left{
    left:1% !important;
    top:39% !important;
  }

  .radar-command-deck .radar-node-mid-right{
    right:2% !important;
    top:42% !important;
  }

  .radar-command-deck .radar-node-inner-top{
    left:calc(50% - 54px) !important;
    top:29% !important;
    transform:none !important;
  }

  .radar-command-deck .radar-node-inner-right{
    right:11% !important;
    top:31% !important;
  }

  .radar-command-deck .radar-node-inner-bottom{
    left:calc(50% - 54px) !important;
    bottom:24% !important;
    transform:none !important;
  }

  .radar-command-deck .radar-node-bottom-left{
    left:5% !important;
    bottom:12% !important;
  }

  .radar-command-deck .radar-node-bottom-right{
    right:5% !important;
    bottom:13% !important;
  }
}

@media (max-width: 420px){
  .radar-command-deck .radar-stage.panel,
  .radar-command-deck .radar-stage-shell{
    min-height:700px !important;
  }

  .radar-command-deck .radar-ring-outer{
    width:330px !important;
    height:330px !important;
  }

  .radar-command-deck .radar-ring-mid{
    width:235px !important;
    height:235px !important;
  }

  .radar-command-deck .radar-ring-inner{
    width:136px !important;
    height:136px !important;
  }

  .radar-command-deck .radar-core{
    width:136px !important;
    height:136px !important;
  }

  .radar-command-deck .radar-node{
    width:98px !important;
    min-height:68px !important;
    padding:9px 9px 8px !important;
  }

  .radar-command-deck .radar-node strong{
    font-size:12px !important;
  }

  .radar-command-deck .radar-node small{
    font-size:9px !important;
  }
}

@media (hover: none), (pointer: coarse){
  .radar-command-deck .radar-node:hover{
    transform:none !important;
  }

  .radar-command-deck .radar-node:active,
  .radar-command-deck .radar-node:focus,
  .radar-command-deck .radar-node:focus-visible{
    transform:none !important;
  }

  .radar-command-deck .radar-node-inner-top:hover,
  .radar-command-deck .radar-node-inner-top:active,
  .radar-command-deck .radar-node-inner-top:focus,
  .radar-command-deck .radar-node-inner-top:focus-visible,
  .radar-command-deck .radar-node-inner-bottom:hover,
  .radar-command-deck .radar-node-inner-bottom:active,
  .radar-command-deck .radar-node-inner-bottom:focus,
  .radar-command-deck .radar-node-inner-bottom:focus-visible{
    transform:none !important;
  }

  .radar-command-deck .radar-node-inner-right:hover,
  .radar-command-deck .radar-node-inner-right:active,
  .radar-command-deck .radar-node-inner-right:focus,
  .radar-command-deck .radar-node-inner-right:focus-visible{
    transform:none !important;
  }
}

/* UCB modal readability and dark review surface */
.ucb-modal{
  background:linear-gradient(180deg, rgba(8,24,23,0.98), rgba(10,35,33,0.97)) !important;
  border:1px solid rgba(109,196,171,0.18) !important;
  box-shadow:0 26px 60px rgba(0,0,0,0.30) !important;
}

.ucb-modal .review-header{
  background:transparent !important;
  border-bottom:1px solid rgba(109,196,171,0.14) !important;
}

.ucb-modal .review-header h3,
.ucb-modal .review-header p,
.ucb-modal .form-group label{
  color:#ecfffa !important;
}

.ucb-modal .review-header h3{
  font-size:28px !important;
  line-height:1.08 !important;
}

.ucb-modal .tile-detail-list{
  display:grid;
  gap:12px;
}

.ucb-modal .tile-detail-list-item{
  background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)) !important;
  border:1px solid rgba(109,196,171,0.16) !important;
  border-radius:18px !important;
  padding:14px 16px !important;
  box-shadow:0 14px 26px rgba(0,0,0,0.14) !important;
}

.ucb-modal .tile-detail-list-item strong{
  display:block;
  color:rgba(169,245,222,0.78) !important;
  font-size:11px !important;
  letter-spacing:.14em !important;
  text-transform:uppercase;
  margin-bottom:6px;
}

.ucb-modal .tile-detail-list-item span{
  color:#f5fffc !important;
  font-size:17px !important;
  line-height:1.35 !important;
}

.ucb-modal .secondary-btn,
.ucb-modal .primary-btn{
  border-radius:14px !important;
}

/* modal scroll containment */
.review-overlay{
  align-items:flex-start !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
  padding:20px !important;
}

.review-header h3,
.tile-detail-modal h3,
.contact-modal h3{
  color:#f4fffc !important;
  opacity:1 !important;
  text-shadow:none !important;
}

.review-modal,
.contact-modal,
.ucb-modal{
  max-height:calc(100vh - 40px) !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
  margin:auto 0 !important;
}

@media (max-width: 720px){
  .review-overlay{
    padding:10px !important;
  }

  .review-modal,
  .contact-modal,
  .ucb-modal{
    max-height:calc(100vh - 20px) !important;
  }
}

/* large overview panels should stay stable without hover flashlight */
.module-control-panel::after{
  display:none !important;
}

.flow-panel:hover,
.finance-section:hover,
.finance-section-body:hover,
.contacts-toolbar:hover,
.smart-contact-selector-shell:hover,
.contacts-overview-tiles:hover,
#contactsTilesWrap:hover,
#contactsListWrap:hover{
  transform:none !important;
  box-shadow:inherit !important;
}

.flow-panel:hover::after,
.finance-section:hover::after,
.finance-section-body:hover::after,
.contacts-toolbar:hover::after,
.smart-contact-selector-shell:hover::after,
.contacts-overview-tiles:hover::after,
#contactsTilesWrap:hover::after,
#contactsListWrap:hover::after{
  content:none !important;
  display:none !important;
}

/* dashboard feed panels should match the dark radar language */
.dashboard-feed-list{
  display:grid;
  gap:12px;
}

.dashboard-feed-list .tile-detail-list-item,
.dashboard-feed-item,
.dashboard-feed-empty{
  display:grid;
  gap:6px;
  padding:14px 16px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)) !important;
  border:1px solid rgba(109,196,171,0.16) !important;
  box-shadow:0 14px 26px rgba(0,0,0,0.14) !important;
  color:#f5fffc !important;
}

.dashboard-feed-item{
  width:100%;
  text-align:left;
  cursor:pointer;
}

.dashboard-feed-list .tile-detail-list-item strong,
.dashboard-feed-item strong,
.dashboard-feed-empty strong{
  color:#f5fffc !important;
  font-size:16px !important;
  line-height:1.3 !important;
}

.dashboard-feed-list .tile-detail-list-item span,
.dashboard-feed-item span,
.dashboard-feed-empty span{
  color:rgba(219,247,240,0.82) !important;
  font-size:13px !important;
  line-height:1.45 !important;
}
.dashboard-insight-shell{
  display:grid;
  gap:14px;
}
.radar-theme-panel-compact{
  align-content:start;
}
.dashboard-theme-orbit{
  position:relative;
  width:118px;
  height:118px;
  margin:2px 0 4px;
}
.theme-orbit-core{
  position:absolute;
  inset:28px;
  border-radius:50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 30%),
    linear-gradient(145deg, rgba(18,78,71,0.98), rgba(41,179,158,0.78));
  box-shadow:0 0 0 1px rgba(138,255,220,0.16), 0 16px 30px rgba(0,0,0,0.24);
}
.theme-orbit-core.light{
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.78), transparent 30%),
    linear-gradient(145deg, rgba(244,251,248,0.98), rgba(163,224,214,0.92));
}
.theme-orbit-dot{
  position:absolute;
  width:18px;
  height:18px;
  border-radius:50%;
  box-shadow:0 10px 18px rgba(0,0,0,0.20);
}
.theme-orbit-dot.dot-mint{ top:10px; left:44px; background:linear-gradient(180deg, #92ffe1, #2d8d7d); }
.theme-orbit-dot.dot-sky{ right:10px; top:44px; background:linear-gradient(180deg, #89dfff, #3276a6); }
.theme-orbit-dot.dot-gold{ left:14px; bottom:22px; background:linear-gradient(180deg, #7fe7df, #1f8c8d); }
.dashboard-theme-actions{
  margin-top:2px;
}
.dashboard-theme-status{
  display:grid;
  gap:6px;
  padding:14px 16px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border:1px solid rgba(109,196,171,0.14);
}
.dashboard-theme-status strong{
  color:#f5fffc;
  font-size:16px;
}
.dashboard-theme-status span{
  color:rgba(219,247,240,0.82);
  font-size:13px;
  line-height:1.45;
}
.dashboard-creator-hero,
.dashboard-creator-row,
.dashboard-lead-card{
  width:100%;
  text-align:left;
  cursor:pointer;
  border:none;
}
.dashboard-creator-hero{
  display:grid;
  gap:8px;
  padding:18px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border:1px solid rgba(139,255,225,0.14);
  box-shadow:0 16px 28px rgba(0,0,0,0.16);
}
.dashboard-creator-rank{
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(204,249,238,0.72);
}
.dashboard-creator-hero strong{
  color:#f5fffc;
  font-size:18px;
  line-height:1.1;
}
.dashboard-creator-hero span{
  color:rgba(219,247,240,0.82);
}
.dashboard-creator-hero-bar,
.dashboard-creator-row-bar{
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,0.05);
  overflow:hidden;
}
.dashboard-creator-hero-bar i,
.dashboard-creator-row-bar i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(117,255,214,0.96), rgba(95,188,255,0.92), rgba(127,231,223,0.92));
}
.dashboard-creator-leaderboard{
  display:grid;
  gap:10px;
}
.dashboard-creator-row{
  display:grid;
  gap:8px;
  padding:14px 16px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border:1px solid rgba(109,196,171,0.14);
}
.dashboard-creator-row-top,
.dashboard-creator-row-bottom{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.dashboard-creator-row-rank,
.dashboard-creator-row-bottom small{
  color:rgba(204,249,238,0.72);
  font-size:12px;
}
.dashboard-creator-row strong{
  color:#f5fffc;
  font-size:15px;
}
.dashboard-pipeline-summary{
  display:grid;
  gap:12px;
  padding:16px 18px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border:1px solid rgba(139,255,225,0.14);
}
.dashboard-pipeline-value{
  display:grid;
  gap:6px;
}
.dashboard-pipeline-value span{
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(204,249,238,0.72);
}
.dashboard-pipeline-value strong{
  color:#f5fffc;
  font-size:28px;
  line-height:1;
}
.dashboard-stage-strip{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}
.dashboard-stage-chip{
  min-width:0;
  padding:12px 12px 10px;
  border-radius:14px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
}
.dashboard-stage-chip small{
  display:block;
  text-transform:uppercase;
  font-size:9px;
  line-height:1.25;
  letter-spacing:.08em;
  white-space:normal;
  overflow-wrap:anywhere;
  color:rgba(219,247,240,0.72);
}
.dashboard-stage-chip strong{
  display:block;
  margin-top:6px;
  color:#f5fffc;
  font-size:20px;
  line-height:1;
}
.dashboard-lead-cards{
  display:grid;
  gap:10px;
}
.dashboard-lead-card{
  display:grid;
  gap:10px;
  padding:15px 16px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border:1px solid rgba(109,196,171,0.14);
}
.dashboard-lead-card-top,
.dashboard-lead-card-meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.dashboard-lead-card-top strong{
  color:#f5fffc;
  font-size:16px;
  line-height:1.2;
}
.dashboard-lead-card-top span,
.dashboard-lead-card-meta small{
  color:rgba(219,247,240,0.78);
  font-size:12px;
}
.dashboard-lead-card-value{
  color:#f5fffc;
  font-size:18px;
  font-weight:800;
}
.stage-negotiation{ border-color:rgba(95,188,255,0.28); }
.stage-qualified{ border-color:rgba(117,255,214,0.28); }
.stage-proposal{ border-color:rgba(127,205,255,0.28); }
.stage-contacted{ border-color:rgba(127,231,223,0.24); }
.stage-new{ border-color:rgba(255,255,255,0.10); }
.stage-won,
.stage-customer{ border-color:rgba(140,255,164,0.30); }
@media (max-width: 980px){
  .dashboard-stage-strip{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px){
  .dashboard-stage-strip{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .dashboard-stage-chip{
    padding:10px 10px 9px;
  }
  .dashboard-stage-chip small{
    font-size:8px;
    letter-spacing:.06em;
  }
}

/* lock background scrolling when a modal is open */
body.modal-open{
  overflow:hidden !important;
}

/* admin and finance should not render as nested inner screens */
body:not(.thic-light-mode) [data-admin-panel],
body:not(.thic-light-mode) .finance-section,
body:not(.thic-light-mode) .finance-section-body{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

body:not(.thic-light-mode) [data-admin-panel]::before,
body:not(.thic-light-mode) .finance-section::before{
  display:none !important;
  content:none !important;
}

body:not(.thic-light-mode) .finance-section-toggle{
  background:rgba(255,255,255,0.04) !important;
  border:1px solid rgba(109,196,171,0.12) !important;
  color:#f5fffc !important;
  box-shadow:none !important;
}

body:not(.thic-light-mode) .admin-shell .module-control-panel,
body:not(.thic-light-mode) .finance-page-header + .module-control-panel{
  overflow:visible !important;
}

.module-control-panel:hover,
.module-mission-deck:hover{
  transform:none !important;
}

.module-control-panel:hover::after,
.module-mission-deck:hover::after{
  content:none !important;
  display:none !important;
}

/* unified button language */
:root{
  --thic-btn-base-bg: linear-gradient(180deg, rgba(15,58,53,0.96), rgba(10,38,35,0.98));
  --thic-btn-base-border: rgba(126,255,218,0.16);
  --thic-btn-base-shadow: 0 12px 24px rgba(0,0,0,0.16);
  --thic-btn-active-bg: linear-gradient(135deg, #2c9f9c 0%, #57bcc6 58%, #6cc8d3 100%);
  --thic-btn-active-shadow: 0 18px 34px rgba(15,58,53,0.18);
}

button.primary-btn,
button.secondary-btn,
button.ghost-btn,
button.quick-chip,
button.close-btn,
button.theme-mode-btn,
button.module-control-action,
button.thic-popup-action,
button.thic-popup-close,
button.admin-focus-btn,
button.radar-workspace-btn,
.action-row button,
.quick-chip-row button,
.thic-header-more > button{
  background: var(--thic-btn-base-bg) !important;
  color: #f7fffd !important;
  border: 1px solid var(--thic-btn-base-border) !important;
  box-shadow: var(--thic-btn-base-shadow) !important;
  border-radius: 14px !important;
  text-shadow: none !important;
}

button.primary-btn:hover,
button.secondary-btn:hover,
button.ghost-btn:hover,
button.quick-chip:hover,
button.close-btn:hover,
button.theme-mode-btn:hover,
button.module-control-action:hover,
button.thic-popup-action:hover,
button.thic-popup-close:hover,
button.admin-focus-btn:hover,
button.radar-workspace-btn:hover,
button.primary-btn.active,
button.secondary-btn.active,
button.ghost-btn.active,
button.quick-chip.active,
button.close-btn.active,
button.theme-mode-btn.active,
button.module-control-action.active,
button.thic-popup-action.active,
button.thic-popup-close.active,
button.admin-focus-btn.active,
button.radar-workspace-btn.active,
button.primary-btn.selected,
button.secondary-btn.selected,
button.ghost-btn.selected,
button.quick-chip.selected,
button.close-btn.selected,
button.theme-mode-btn.selected,
button.module-control-action.selected,
button.thic-popup-action.selected,
button.thic-popup-close.selected,
button.admin-focus-btn.selected,
button.radar-workspace-btn.selected,
button.primary-btn:focus-visible,
button.secondary-btn:focus-visible,
button.ghost-btn:focus-visible,
button.quick-chip:focus-visible,
button.close-btn:focus-visible,
button.theme-mode-btn:focus-visible,
button.module-control-action:focus-visible,
button.thic-popup-action:focus-visible,
button.thic-popup-close:focus-visible,
button.admin-focus-btn:focus-visible,
button.radar-workspace-btn:focus-visible{
  background: var(--thic-btn-active-bg) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: var(--thic-btn-active-shadow) !important;
  outline: none !important;
}

input[type="file"]{
  display:none !important;
}
.thic-phase1-finance-admin-fixes .placeholder {}

body:not(.thic-light-mode) .finance-page-header + .module-control-panel,
body:not(.thic-light-mode) .admin-shell .module-control-panel{
  overflow:visible !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
body:not(.thic-light-mode) .finance-page-header + .module-control-panel .module-control-grid > *,
body:not(.thic-light-mode) .admin-shell .module-control-grid > *{
  background:linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04)) !important;
  border:1px solid rgba(120,255,210,0.10) !important;
  box-shadow:none !important;
}
.review-overlay{
  position:fixed !important;
  inset:0 !important;
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
  padding:24px 18px !important;
}
.review-modal{
  max-height:calc(100vh - 48px) !important;
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
  margin:auto !important;
}
.dashboard-feed-empty{
  background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)) !important;
  border:1px solid rgba(120,255,210,0.10) !important;
  color:#dff8f2 !important;
}
.dashboard-feed-empty strong,
.dashboard-feed-empty span{
  color:#dff8f2 !important;
}
body:not(.thic-light-mode) .admin-users-grid{
  align-items:start !important;
  grid-template-columns:minmax(300px, 420px) minmax(0, 1fr) !important;
}
body:not(.thic-light-mode) .admin-users-grid > .panel,
body:not(.thic-light-mode) #adminUsersAccessMount > .admin-grid > .panel{
  min-height:0 !important;
  height:auto !important;
  overflow:visible !important;
}
body:not(.thic-light-mode) .user-access-list,
body:not(.thic-light-mode) .user-access-matrix{
  overflow:visible !important;
}
body:not(.thic-light-mode) .user-access-list{
  grid-template-columns:1fr !important;
}
@media (max-width: 1100px){
  body:not(.thic-light-mode) .admin-users-grid{
    grid-template-columns:1fr !important;
  }
}
.admin-clean-shell,
.finance-clean-shell{
  margin-left:22px;
  margin-right:22px;
}
.admin-users-stack{
  display:grid;
  grid-template-columns:1fr !important;
  gap:18px;
  align-items:start !important;
  margin-bottom:24px;
}
.admin-user-editor-panel{
  order:-1;
}
.admin-user-editor-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.admin-list-header{
  margin-top:18px;
}
.admin-users-stack > .panel{
  min-height:auto !important;
  height:auto !important;
  overflow:visible !important;
}
.admin-collapse-toggle{
  min-width:140px;
}
.admin-editor-collapsed{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:14px;
}
.admin-editor-collapsed-item{
  padding:14px 16px;
  border:1px solid rgba(122,255,214,0.16);
  border-radius:18px;
  background:rgba(4,29,27,0.36);
}
.admin-editor-collapsed-item span{
  display:block;
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(188,232,222,0.62);
  margin-bottom:8px;
}
.admin-editor-collapsed-item strong{
  color:#eefcf8;
}
.company-admin-item small{
  display:block;
  margin-top:8px;
  color:rgba(204,239,231,0.62);
}
body:not(.thic-light-mode) .admin-section-panel h3,
body:not(.thic-light-mode) .admin-section-panel strong,
body:not(.thic-light-mode) .admin-section-panel label,
body:not(.thic-light-mode) .admin-section-panel th,
body:not(.thic-light-mode) .admin-section-panel td,
body:not(.thic-light-mode) [data-admin-panel="communication"] h3,
body:not(.thic-light-mode) [data-admin-panel="communication"] strong,
body:not(.thic-light-mode) [data-admin-panel="communication"] label{
  color:#f3fffb !important;
}
body:not(.thic-light-mode) .admin-section-panel .helper-text,
body:not(.thic-light-mode) .admin-section-panel p,
body:not(.thic-light-mode) .company-admin-item span,
body:not(.thic-light-mode) .company-admin-item small,
body:not(.thic-light-mode) .company-admin-meta label,
body:not(.thic-light-mode) [data-admin-panel="communication"] p,
body:not(.thic-light-mode) [data-admin-panel="communication"] small{
  color:rgba(232,255,249,0.82) !important;
}
body:not(.thic-light-mode) .company-admin-item{
  background:rgba(255,255,255,0.04) !important;
  border-color:rgba(185,255,233,0.14) !important;
  color:#f3fffb !important;
}
body:not(.thic-light-mode) .company-admin-fact{
  background:rgba(255,255,255,0.03) !important;
  border-color:rgba(185,255,233,0.12) !important;
}
body:not(.thic-light-mode) .company-admin-item strong,
body:not(.thic-light-mode) .company-admin-item span,
body:not(.thic-light-mode) .company-admin-item small,
body:not(.thic-light-mode) .company-admin-fact label,
body:not(.thic-light-mode) .company-admin-fact strong{
  color:#f3fffb !important;
}
body:not(.thic-light-mode) .company-admin-item span,
body:not(.thic-light-mode) .company-admin-item small{
  color:rgba(243,255,251,0.88) !important;
}
.company-admin-item strong,
.company-admin-item span,
.company-admin-item small,
.company-admin-fact strong{
  overflow-wrap:break-word;
  word-break:normal;
}
.company-admin-fact small{
  display:block;
  line-height:1.55;
  color:rgba(243,255,251,0.78);
}
.company-entity-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}
.company-entity-tile{
  padding:18px 18px 16px;
  border-radius:20px;
  background:linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border:1px solid rgba(145,255,219,0.12);
  min-height:188px;
}
.company-entity-tile h4{
  color:#f6fffc;
  font-size:26px;
  line-height:1.08;
  margin:0 0 12px;
}
.company-entity-tile p{
  margin:0;
  color:rgba(229,249,242,0.84);
  line-height:1.55;
}
.company-entity-metrics{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.company-entity-metrics div{
  padding:10px 12px;
  border-radius:14px;
  background:rgba(0,0,0,0.16);
  border:1px solid rgba(145,255,219,0.08);
}
.company-entity-metrics label{
  display:block;
  color:rgba(145,255,219,0.7);
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  margin-bottom:6px;
}
.company-entity-metrics strong{
  display:block;
  color:#f6fffc;
  font-size:28px;
  line-height:1.08;
}
.company-role-tile{
  min-height:164px;
}
.company-empty-note{
  padding:18px 20px;
  border-radius:18px;
  background:rgba(255,255,255,0.04);
  color:rgba(229,249,242,0.82);
}
@media (max-width: 1180px){
  .company-admin-list{
    grid-template-columns:1fr;
  }
  .company-admin-facts{
    grid-template-columns:1fr;
  }
  .company-entity-grid{
    grid-template-columns:1fr;
  }
}
.admin-clean-pills,
.finance-focus-pills{
  justify-content:flex-start !important;
  align-items:center !important;
  margin-bottom:18px;
}
.admin-clean-shell .admin-grid{
  grid-template-columns:1fr !important;
  margin-left:0 !important;
  margin-right:0 !important;
}
.admin-clean-shell .panel,
.finance-clean-shell .panel{
  min-height:auto !important;
  overflow:visible !important;
}
@media (max-width: 900px){
  .admin-clean-shell,
  .finance-clean-shell{
    margin-left:14px;
    margin-right:14px;
  }
}
html,
body{
  overflow-y:auto !important;
}
#app,
.app-shell,
.main,
.content,
.main-content,
.content-shell,
.main-panel,
.content-area,
.page-content,
.module-content,
.dashboard-content,
.app-shell main{
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  overflow-y:visible !important;
}

.smart-contact-selector-shell{
  display:grid;
  gap:14px;
}
.contact-desk-shell{
  gap:0;
}
.smart-contact-selector-toolbar{
  display:grid;
  grid-template-columns:minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap:16px;
  align-items:end;
}
.smart-contact-selector-actions{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  align-items:end;
}
.contact-desk-actions{
  grid-template-columns:minmax(0, 1fr) auto;
  justify-content:flex-start;
}
.contact-desk-role-group{
  display:grid;
  gap:12px;
}
.contact-desk-role-grid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.contact-desk-role-btn{
  min-height:44px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid rgba(121,255,215,0.16);
  background:rgba(10,34,31,0.86);
  color:rgba(235,252,246,0.9);
  font-weight:700;
  letter-spacing:0.01em;
  transition:background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.contact-desk-role-btn:hover{
  border-color:rgba(121,255,215,0.28);
  transform:translateY(-1px);
}
.contact-desk-role-btn.active{
  color:#072b2f;
  border-color:transparent;
  background:linear-gradient(135deg, rgba(129,218,255,0.98), rgba(124,255,220,0.92));
  box-shadow:0 16px 28px rgba(69,188,216,0.2);
}
.smart-contact-selector-actions .form-group{
  margin:0;
}
.smart-selector-create-btn{
  min-height:48px;
  align-self:end;
}
.smart-contact-selector-results{
  display:grid;
  gap:14px;
}
.smart-contact-selector-summary{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:14px;
  align-items:center;
}
.smart-contact-selector-summary-card,
.smart-contact-selector-card,
.smart-contact-selector-empty{
  border:1px solid rgba(121,255,215,0.14);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(9,41,37,0.90), rgba(10,35,31,0.94));
  box-shadow:0 18px 34px rgba(3,20,18,0.16);
}
.smart-contact-selector-summary-card{
  padding:16px 18px;
}
.smart-contact-selector-summary-card strong,
.smart-contact-selector-card h4{
  color:#f0fffa;
}
.smart-contact-selector-summary-card p,
.smart-contact-selector-card p,
.smart-contact-selector-empty{
  color:rgba(226,245,239,0.82);
}
.smart-contact-selector-summary-card p{
  margin:6px 0 0;
}
.smart-contact-selector-role-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.smart-role-chip{
  cursor:pointer;
}
.smart-role-chip strong{
  margin-left:6px;
}
.smart-contact-selector-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}
.smart-contact-selector-card{
  padding:18px 18px 16px;
  display:grid;
  gap:12px;
}
.smart-contact-selector-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.smart-contact-selector-card-head h4{
  margin:10px 0 0;
}
.smart-match-score{
  white-space:nowrap;
}
.smart-contact-selector-card-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.smart-contact-selector-empty{
  padding:18px;
  display:grid;
  gap:14px;
}
.smart-contact-search-wrap .contacts-search-input{
  min-height:52px;
}
@media (max-width: 1100px){
  .smart-contact-selector-toolbar{
    grid-template-columns:1fr;
  }
  .smart-contact-selector-actions{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .contact-desk-actions{
    grid-template-columns:1fr;
  }
  .smart-contact-selector-summary{
    grid-template-columns:1fr;
  }
  .smart-contact-selector-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width: 720px){
  .smart-contact-selector-actions{
    grid-template-columns:1fr;
  }
}

/* final page-scroll override: the browser page scrolls, not inner app panes */
html,
body{
  height:auto !important;
  min-height:100% !important;
  max-height:none !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
}

#app,
.app-shell,
.main,
.content,
.main-content,
.app-shell.sidebar-collapsed .main-content,
.content-area,
.content-shell,
.main-panel,
.page-content,
.module-content,
.dashboard-content,
.app-shell main{
  height:auto !important;
  min-height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  overflow-x:visible !important;
  overflow-y:visible !important;
}

.page-header,
.flow-panel,
.smart-contact-selector-shell,
.contacts-toolbar-advanced,
.finance-clean-shell,
.finance-hero-strip,
.finance-kpis,
.budget-shell,
.budget-main,
.budget-sidebar{
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
}

/* dashboard-first shared module language */
.page-header{
  position:relative;
  overflow:hidden;
  padding:30px 34px !important;
  border-radius:30px !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(72,211,176,0.14), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(92,187,204,0.12), transparent 22%),
    linear-gradient(145deg, rgba(9,30,29,0.98), rgba(14,53,49,0.96)) !important;
  border:1px solid rgba(121,255,215,0.12) !important;
  box-shadow:0 24px 46px rgba(4,17,16,0.2) !important;
}
.page-header::after{
  content:"";
  position:absolute;
  inset:-18% -10% auto auto;
  width:40%;
  height:150%;
  pointer-events:none;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.10), rgba(255,255,255,0) 34%),
    radial-gradient(circle at 72% 54%, rgba(72,211,176,0.18), rgba(72,211,176,0) 44%);
  filter:blur(8px);
  opacity:.9;
}
.page-header h2{
  font-size:42px !important;
  line-height:1.04 !important;
  letter-spacing:-0.03em;
  margin:0 0 10px !important;
  color:#f7fffc !important;
}
.page-header p{
  max-width:860px;
  font-size:16px !important;
  line-height:1.55 !important;
  color:rgba(228,247,242,0.84) !important;
}

.flow-panel,
.smart-contact-selector-shell,
.table-wrap,
.finance-section,
.finance-section-body,
.contacts-toolbar-advanced,
.panel-subtle{
  border-radius:28px !important;
  border:1px solid rgba(121,255,215,0.10) !important;
  background:
    radial-gradient(circle at 14% 18%, rgba(72,211,176,0.10), transparent 24%),
    linear-gradient(145deg, rgba(9,30,29,0.98), rgba(14,53,49,0.96)) !important;
  box-shadow:0 22px 40px rgba(4,17,16,0.18) !important;
}

.flow-panel h3,
.smart-contact-selector-shell h3,
.table-wrap h3,
.finance-section h3,
.finance-section h4{
  color:#f7fffc !important;
  letter-spacing:-0.025em;
}

.contacts-toolbar-advanced{
  padding:20px 22px !important;
}

.table-wrap{
  padding:18px 20px !important;
}

.table-wrap table,
.finance-section table{
  border-spacing:0 12px !important;
}

.table-wrap tbody td,
.finance-section tbody td{
  background:rgba(12,44,41,0.9) !important;
}

.table-wrap thead th,
.finance-section thead th{
  color:rgba(209,244,238,0.82) !important;
}

.smart-contact-selector-shell,
.flow-panel{
  padding:26px 28px !important;
}

.page-shell,
.contacts-page,
.finance-page,
.online-page,
#contactsPage,
#financePage,
#onlinePage{
  gap:24px;
}

.flow-panel,
.smart-contact-selector-shell,
.contacts-toolbar,
.contacts-toolbar-advanced,
.table-wrap,
.finance-section,
.finance-section-body{
  padding:26px 28px !important;
}

.flow-panel > h3,
.smart-contact-selector-shell > h3,
.finance-section-body > h3{
  margin:0 0 18px !important;
}

.finance-section-body > .panel-subtle,
.finance-section-body > .finance-summary-grid,
.finance-section-body > .finance-two-col,
.finance-section-body > .upload-row,
.finance-section-body > .quick-chip-row,
.finance-section-body > .contact-search-wrap,
.finance-section-body > table{
  margin-top:0;
  margin-bottom:22px;
}

.finance-section-body > :last-child{
  margin-bottom:0 !important;
}

.finance-clean-shell{
  gap:22px !important;
}

.finance-clean-shell > div{
  padding:24px;
  border-radius:24px;
  border:1px solid rgba(121,255,215,0.09);
  background:
    radial-gradient(circle at 12% 18%, rgba(72,211,176,0.08), transparent 26%),
    linear-gradient(155deg, rgba(10,31,30,0.96), rgba(16,55,51,0.9));
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.03);
}

.finance-clean-shell .panel-subtle{
  margin-bottom:18px;
}

.finance-clean-shell .form-grid{
  gap:18px 20px;
}

.finance-clean-shell .form-group{
  gap:0;
}

.finance-clean-shell .form-group label,
.contacts-toolbar .form-group label,
.contacts-toolbar-advanced .form-group label{
  margin:0 0 10px !important;
  font-size:11px !important;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(208,244,238,0.74) !important;
}

.finance-clean-shell .form-group input,
.finance-clean-shell .form-group select,
.finance-clean-shell .form-group textarea,
.contacts-toolbar .form-group input,
.contacts-toolbar .form-group select,
.contacts-toolbar-advanced .form-group input,
.contacts-toolbar-advanced .form-group select{
  min-height:50px;
}

.finance-clean-shell .upload-row,
.contacts-toolbar .quick-chip-row,
.contacts-toolbar-advanced .quick-chip-row{
  margin-top:20px;
}

.finance-section .upload-row,
.finance-section .contact-search-wrap{
  padding:14px 16px;
  border-radius:20px;
  border:1px solid rgba(121,255,215,0.08);
  background:linear-gradient(145deg, rgba(10,34,33,0.96), rgba(16,53,50,0.9));
}

.finance-supplier-filters{
  padding:0 !important;
  border:none !important;
  background:none !important;
}

.finance-supplier-search{
  margin-bottom:18px !important;
}

.contact-search-wrap,
.contacts-toolbar,
.contacts-toolbar-advanced{
  border-radius:24px !important;
}

.table-wrap table,
.finance-section table{
  margin-top:4px;
}

.contacts-recovery-status{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin:0 0 18px;
}

.contacts-recovery-status strong{
  display:block;
  min-width:160px;
  color:#f7fffc;
  letter-spacing:-0.01em;
}

.contacts-recovery-status span{
  display:block;
  flex:1;
  color:rgba(226,247,242,0.86);
}

.contacts-recovery-status.is-running{
  border-color:rgba(120,255,229,0.18) !important;
}

.contacts-recovery-status.is-success{
  border-color:rgba(70,200,154,0.22) !important;
}

.contacts-recovery-status.is-error{
  border-color:rgba(255,129,129,0.28) !important;
  color:#ffd7d7 !important;
}

.contacts-recovery-status.is-error span{
  color:#ffd7d7 !important;
}

.contacts-diagnostics-status{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin:0 0 18px;
}

.contacts-diagnostics-status strong{
  display:block;
  min-width:160px;
  color:#f7fffc;
  letter-spacing:-0.01em;
}

.contacts-diagnostics-status span{
  display:block;
  flex:1;
  color:rgba(226,247,242,0.86);
}

.contacts-diagnostics-status.is-success{
  border-color:rgba(70,200,154,0.22) !important;
}

.contacts-diagnostics-status.is-warning{
  border-color:rgba(255,194,102,0.28) !important;
}

.contacts-diagnostics-status.is-warning span{
  color:#ffe5b1 !important;
}

@media (max-width: 980px){
  .page-header{
    padding:24px 22px !important;
  }
  .page-header h2{
    font-size:34px !important;
  }
  .flow-panel,
  .smart-contact-selector-shell,
  .table-wrap,
  .contacts-toolbar-advanced{
    padding:20px 18px !important;
  }
  .finance-clean-shell > div,
  .finance-section-body,
  .contacts-toolbar,
  .contacts-toolbar-advanced,
  .contact-search-wrap{
    padding:18px !important;
  }
  .contacts-recovery-status{
    flex-direction:column;
  }
}

.inbox-shell{
  display:grid;
  gap:20px;
}

.inbox-toolbar-card,
.inbox-summary-card,
.inbox-thread-list,
.inbox-conversation,
.inbox-meta-card{
  position:relative;
  border:1px solid rgba(110, 236, 201, 0.14);
  background:linear-gradient(145deg, rgba(8,38,34,0.92), rgba(10,48,42,0.88));
  box-shadow:0 18px 34px rgba(2, 19, 16, 0.18);
}

.inbox-toolbar-card{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:24px 26px;
  border-radius:28px;
}

.inbox-toolbar-card h3{
  margin:6px 0 8px;
  font-size:28px;
  line-height:1.05;
}

.inbox-toolbar-card p{
  margin:0;
  color:rgba(229,244,239,0.78);
  max-width:720px;
}

.inbox-toolbar-kicker{
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(152, 231, 211, 0.9);
  font-weight:800;
}

.inbox-toolbar-actions{
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

.inbox-toolbar-stat{
  min-width:124px;
  padding:14px 16px;
  border-radius:20px;
  border:1px solid rgba(110, 236, 201, 0.12);
  background:rgba(255,255,255,0.035);
  display:flex;
  flex-direction:column;
  gap:4px;
}

.inbox-toolbar-stat strong{
  font-size:24px;
  line-height:1;
}

.inbox-toolbar-stat span{
  color:rgba(229,244,239,0.72);
  font-size:13px;
}

.inbox-summary-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
}

.inbox-summary-card{
  border-radius:22px;
  padding:18px 20px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.inbox-summary-card span,
.inbox-summary-card small{
  color:rgba(229,244,239,0.72);
}

.inbox-summary-card span{
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  font-weight:800;
}

.inbox-summary-card strong{
  font-size:28px;
  line-height:1.05;
}

.inbox-grid{
  display:grid;
  grid-template-columns:minmax(260px, 320px) minmax(0, 1fr) minmax(260px, 320px);
  gap:18px;
  align-items:start;
}

.inbox-thread-list,
.inbox-conversation,
.inbox-meta-card{
  border-radius:28px;
}

.inbox-thread-list,
.inbox-conversation{
  padding:18px;
}

.inbox-list-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
  color:rgba(229,244,239,0.74);
}

.inbox-thread-stack{
  display:grid;
  gap:12px;
}

.inbox-thread-card{
  appearance:none;
  width:100%;
  border:1px solid rgba(110, 236, 201, 0.12);
  background:rgba(255,255,255,0.03);
  color:inherit;
  border-radius:20px;
  padding:16px;
  text-align:left;
  cursor:pointer;
  display:grid;
  gap:10px;
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}

.inbox-thread-card:hover,
.inbox-thread-card.active{
  transform:translateY(-1px);
  border-color:rgba(121,255,215,0.28);
  background:rgba(26,152,132,0.10);
}

.inbox-thread-card-top,
.inbox-thread-card-bottom{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}

.inbox-thread-card-top{
  align-items:flex-start;
}

.inbox-thread-card-meta,
.inbox-thread-card-bottom{
  color:rgba(229,244,239,0.7);
  font-size:13px;
}

.inbox-status-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
  font-weight:800;
  border:1px solid rgba(121,255,215,0.16);
}

.inbox-status-chip.open{ background:rgba(27,156,133,0.18); color:#cffff2; }
.inbox-status-chip.waiting{ background:rgba(181,136,47,0.18); color:#ffe7aa; }
.inbox-status-chip.resolved{ background:rgba(100,133,122,0.22); color:#d7efe6; }

.inbox-unread-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(84,236,197,0.95), rgba(120,255,223,0.82));
  color:#05342d;
  font-size:12px;
  font-weight:900;
}

.inbox-conversation{
  display:grid;
  gap:16px;
}

.inbox-conversation-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}

.inbox-conversation-head h3{
  margin:6px 0 8px;
  font-size:28px;
}

.inbox-conversation-head p{
  margin:0;
  color:rgba(229,244,239,0.74);
}

.inbox-message-list{
  display:grid;
  gap:12px;
}

.inbox-message{
  padding:16px 18px;
  border-radius:20px;
  border:1px solid rgba(110, 236, 201, 0.12);
  background:rgba(255,255,255,0.035);
}

.inbox-message.mine{
  background:rgba(26,152,132,0.11);
  border-color:rgba(121,255,215,0.22);
}

.inbox-message-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  color:rgba(229,244,239,0.72);
  font-size:13px;
}

.inbox-message p{
  margin:0;
  line-height:1.55;
}

.inbox-composer{
  display:grid;
  gap:12px;
}

.inbox-composer textarea,
.inbox-meta-card input,
.inbox-meta-card select{
  width:100%;
  border-radius:18px;
  border:1px solid rgba(121,255,215,0.14);
  background:rgba(4,26,23,0.84);
  color:#effff9;
  padding:14px 16px;
}

.inbox-composer-actions{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  color:rgba(229,244,239,0.68);
  font-size:13px;
}

.inbox-meta-panel{
  display:grid;
}

.inbox-meta-card{
  padding:18px;
  display:grid;
  gap:10px;
}

.inbox-meta-card label{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(152, 231, 211, 0.82);
  font-weight:800;
  margin-top:6px;
}

.inbox-empty-state{
  padding:24px;
  border-radius:22px;
  border:1px dashed rgba(121,255,215,0.16);
  color:rgba(229,244,239,0.72);
  background:rgba(255,255,255,0.02);
}

@media (max-width: 1180px){
  .inbox-grid{
    grid-template-columns:1fr;
  }

  .inbox-summary-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px){
  .inbox-toolbar-card,
  .inbox-conversation-head,
  .inbox-composer-actions{
    grid-template-columns:1fr;
    display:grid;
  }

  .inbox-summary-grid{
    grid-template-columns:1fr;
  }
}

/* dashboard surface normalization */
body:not(.thic-light-mode){
  color-scheme:dark;
}

body:not(.thic-light-mode) input,
body:not(.thic-light-mode) select,
body:not(.thic-light-mode) textarea,
body:not(.thic-light-mode) .form-group input,
body:not(.thic-light-mode) .form-group select,
body:not(.thic-light-mode) .form-group textarea,
body:not(.thic-light-mode) .filter-grid select,
body:not(.thic-light-mode) .tile-detail-modal select,
body:not(.thic-light-mode) .inbox-meta-card select,
body:not(.thic-light-mode) .inbox-meta-card input,
body:not(.thic-light-mode) .sidebar-company-select{
  min-height:50px;
  padding:14px 16px;
  border-radius:16px !important;
  border:1px solid rgba(121,255,215,0.14) !important;
  background:linear-gradient(180deg, rgba(8,28,25,0.96), rgba(8,20,20,0.92)) !important;
  color:#effff9 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.03), 0 10px 20px rgba(0,0,0,0.12) !important;
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

body:not(.thic-light-mode) textarea,
body:not(.thic-light-mode) .form-group textarea{
  min-height:132px;
  resize:vertical;
}

body:not(.thic-light-mode) select,
body:not(.thic-light-mode) .form-group select,
body:not(.thic-light-mode) .filter-grid select,
body:not(.thic-light-mode) .tile-detail-modal select,
body:not(.thic-light-mode) .inbox-meta-card select,
body:not(.thic-light-mode) .sidebar-company-select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:44px;
  background-image:
    linear-gradient(180deg, rgba(8,28,25,0.96), rgba(8,20,20,0.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='none' stroke='%2397f1d7' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m4.5 7 4.5 4 4.5-4'/%3E%3C/svg%3E");
  background-repeat:no-repeat, no-repeat;
  background-position:0 0, calc(100% - 16px) 50%;
  background-size:auto, 16px 16px;
}

body:not(.thic-light-mode) input::placeholder,
body:not(.thic-light-mode) textarea::placeholder{
  color:rgba(224,247,239,0.46) !important;
}

body:not(.thic-light-mode) input:focus,
body:not(.thic-light-mode) select:focus,
body:not(.thic-light-mode) textarea:focus,
body:not(.thic-light-mode) .form-group input:focus,
body:not(.thic-light-mode) .form-group select:focus,
body:not(.thic-light-mode) .form-group textarea:focus,
body:not(.thic-light-mode) .filter-grid select:focus,
body:not(.thic-light-mode) .tile-detail-modal select:focus,
body:not(.thic-light-mode) .inbox-meta-card select:focus,
body:not(.thic-light-mode) .inbox-meta-card input:focus,
body:not(.thic-light-mode) .sidebar-company-select:focus{
  outline:none !important;
  border-color:rgba(121,255,215,0.3) !important;
  box-shadow:0 0 0 3px rgba(84,236,197,0.12), 0 14px 26px rgba(0,0,0,0.16) !important;
}

body:not(.thic-light-mode) .form-group label,
body:not(.thic-light-mode) .table-wrap label,
body:not(.thic-light-mode) .popup-card label,
body:not(.thic-light-mode) .inbox-meta-card label,
body:not(.thic-light-mode) .finance-section label{
  color:rgba(208,244,238,0.76) !important;
  font-size:11px !important;
  font-weight:800 !important;
  letter-spacing:.12em !important;
  text-transform:uppercase;
}

body:not(.thic-light-mode) .selector-note-box,
body:not(.thic-light-mode) .helper-text{
  border:1px solid rgba(121,255,215,0.1);
  background:linear-gradient(145deg, rgba(10,34,33,0.94), rgba(14,46,44,0.84));
  color:rgba(229,244,239,0.82) !important;
  border-radius:18px;
}

body:not(.thic-light-mode) .table-wrap{
  overflow:hidden;
  border-radius:30px !important;
}

body:not(.thic-light-mode) .table-wrap table{
  border-collapse:separate;
  border-spacing:0 12px !important;
}

body:not(.thic-light-mode) .table-wrap thead th{
  border:0 !important;
  color:rgba(209,244,238,0.76) !important;
  font-size:11px !important;
  font-weight:800 !important;
  letter-spacing:.12em;
  text-transform:uppercase;
}

body:not(.thic-light-mode) .table-wrap tbody tr{
  transition:transform .16s ease, box-shadow .16s ease;
}

body:not(.thic-light-mode) .table-wrap tbody td{
  border-top:1px solid rgba(121,255,215,0.1) !important;
  border-bottom:1px solid rgba(121,255,215,0.1) !important;
  background:linear-gradient(145deg, rgba(9,34,33,0.96), rgba(12,47,44,0.92)) !important;
  box-shadow:0 12px 22px rgba(0,0,0,0.08);
}

body:not(.thic-light-mode) .table-wrap tbody td:first-child{
  border-left:1px solid rgba(121,255,215,0.1) !important;
  border-top-left-radius:20px;
  border-bottom-left-radius:20px;
}

body:not(.thic-light-mode) .table-wrap tbody td:last-child{
  border-right:1px solid rgba(121,255,215,0.1) !important;
  border-top-right-radius:20px;
  border-bottom-right-radius:20px;
}

body:not(.thic-light-mode) .table-wrap tbody tr:hover{
  transform:translateY(-1px);
}

body:not(.thic-light-mode) .table-wrap tbody tr:hover td{
  background:linear-gradient(145deg, rgba(12,41,39,0.98), rgba(17,58,53,0.94)) !important;
  border-color:rgba(121,255,215,0.16) !important;
}

body:not(.thic-light-mode) .interactive-contact-row{
  cursor:pointer;
}

body:not(.thic-light-mode) .interactive-contact-row td{
  transition:background .16s ease, border-color .16s ease, transform .16s ease;
}

body:not(.thic-light-mode) .onboarding-queue-card{
  border:1px solid rgba(121,255,215,0.12);
  border-radius:24px;
  padding:22px;
  background:
    radial-gradient(circle at 14% 18%, rgba(72,211,176,0.12), transparent 24%),
    linear-gradient(145deg, rgba(9,30,29,0.98), rgba(14,53,49,0.96));
  box-shadow:0 22px 40px rgba(4,17,16,0.16);
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body:not(.thic-light-mode) .onboarding-queue-card:hover{
  transform:translateY(-2px);
  border-color:rgba(121,255,215,0.2);
  box-shadow:0 26px 46px rgba(4,17,16,0.22);
}

body:not(.thic-light-mode) .onboarding-readiness-bar{
  background:rgba(255,255,255,0.08);
}

body:not(.thic-light-mode) .onboarding-readiness-bar span{
  background:linear-gradient(90deg, rgba(74,204,170,0.92), rgba(120,255,223,0.86));
  box-shadow:0 0 18px rgba(120,255,223,0.16);
}

body:not(.thic-light-mode) .message.success,
body:not(.thic-light-mode) .message.info{
  border:1px solid rgba(121,255,215,0.14);
  background:linear-gradient(145deg, rgba(12,52,47,0.92), rgba(14,41,39,0.92));
  color:#eafff8;
  border-radius:18px;
  box-shadow:0 12px 26px rgba(0,0,0,0.1);
}

body:not(.thic-light-mode) .message.warning,
body:not(.thic-light-mode) .message.error{
  border-radius:18px;
}

body:not(.thic-light-mode) .compact-wrap{
  gap:10px;
}

body:not(.thic-light-mode) .compact-wrap .primary-btn,
body:not(.thic-light-mode) .compact-wrap .secondary-btn,
body:not(.thic-light-mode) .compact-wrap .ghost-btn{
  min-height:42px;
  padding:10px 14px;
  border-radius:999px !important;
}

body:not(.thic-light-mode) .thic-popup-card textarea,
body:not(.thic-light-mode) .thic-popup-card input{
  width:100%;
}

body:not(.thic-light-mode) .contacts-filter-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  flex:1 1 520px;
}

body:not(.thic-light-mode) .source-company-pill{
  color:#072b2f !important;
  background:linear-gradient(135deg, rgba(129,218,255,0.96), rgba(124,255,220,0.9)) !important;
  border-color:transparent !important;
  box-shadow:0 12px 22px rgba(69,188,216,0.18);
}

body:not(.thic-light-mode) .source-company-subpill{
  color:#dff8ff !important;
  border-color:rgba(129,218,255,0.24) !important;
  background:rgba(71,133,162,0.18) !important;
}

body:not(.thic-light-mode) .source-company-tile{
  border:1px solid rgba(129,218,255,0.2) !important;
  background:
    radial-gradient(circle at 14% 18%, rgba(129,218,255,0.16), transparent 24%),
    linear-gradient(145deg, rgba(8,31,38,0.98), rgba(12,53,63,0.94)) !important;
  box-shadow:0 26px 42px rgba(3,18,24,0.18) !important;
}

body:not(.thic-light-mode) .source-company-tile .contact-module-chip{
  border-color:rgba(129,218,255,0.18) !important;
  background:rgba(89,159,183,0.14) !important;
}

body:not(.thic-light-mode) .source-company-tile .ghost-btn[disabled]{
  opacity:1 !important;
  color:rgba(222,247,255,0.8) !important;
  border-color:rgba(129,218,255,0.16) !important;
  background:rgba(70,116,138,0.18) !important;
}

body:not(.thic-light-mode) .contact-record-detail{
  display:grid;
  gap:14px;
}

body:not(.thic-light-mode) .contact-record-badge-row{
  margin-bottom:2px;
}

body:not(.thic-light-mode) .contact-record-detail .tile-detail-list{
  gap:14px;
}

body:not(.thic-light-mode) .contact-record-detail .tile-detail-list-item{
  background:
    radial-gradient(circle at top left, rgba(93,229,198,0.08), transparent 28%),
    linear-gradient(145deg, rgba(10,35,33,0.98), rgba(14,49,46,0.94)) !important;
  border:1px solid rgba(121,255,215,0.12) !important;
  border-radius:20px !important;
  padding:16px 18px !important;
  box-shadow:0 18px 32px rgba(0,0,0,0.12) !important;
}

body:not(.thic-light-mode) .contact-record-detail .tile-detail-list-item strong{
  display:block;
  color:rgba(171,245,223,0.78) !important;
  font-size:11px !important;
  font-weight:800 !important;
  letter-spacing:.14em !important;
  text-transform:uppercase;
  margin-bottom:8px;
}

body:not(.thic-light-mode) .contact-record-detail .tile-detail-list-item span{
  color:#f3fffb !important;
  font-size:18px !important;
  line-height:1.4 !important;
}

body:not(.thic-light-mode) #tileDetailFooter .ghost-btn[disabled]{
  opacity:1 !important;
  color:rgba(221,246,255,0.82) !important;
  border-color:rgba(129,218,255,0.18) !important;
  background:rgba(70,116,138,0.18) !important;
}

@media (max-width: 980px){
  body:not(.thic-light-mode) .contacts-filter-grid{
    grid-template-columns:1fr;
  }
}

.radar-node-inner-left{ left:24%; top:30%; }
.radar-node-inner-left:hover{ transform:translateY(-4px) scale(1.02); }

.production-shell{
  display:grid;
  grid-template-columns:minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap:22px;
  margin-top:18px;
}

.production-form-panel,
.production-overview-panel,
.production-table-panel{
  border-radius:28px;
}

.production-form-grid{
  gap:16px;
}

.production-status-rail{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:12px 0 14px;
}

.production-status-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(121,255,215,0.14);
  background:rgba(19,64,58,0.55);
  color:#ebfffb;
  font-weight:700;
  font-size:12px;
}

.production-status-pill.is-planned{ background:rgba(53,90,112,0.35); border-color:rgba(135,191,224,0.16); color:#d5f1ff; }
.production-status-pill.is-running{ background:rgba(46,115,95,0.34); border-color:rgba(112,230,181,0.2); color:#e6fff4; }
.production-status-pill.is-qa{ background:rgba(120,101,34,0.3); border-color:rgba(229,205,105,0.2); color:#fff2b3; }
.production-status-pill.is-ready,
.production-status-pill.is-delivered{ background:rgba(28,110,86,0.36); border-color:rgba(102,255,207,0.22); color:#defff5; }
.production-status-pill.is-issue{ background:rgba(118,45,42,0.34); border-color:rgba(255,153,136,0.18); color:#ffd7cf; }
.production-qa-pill.is-pending{ background:rgba(52,71,79,0.34); color:#d9e8ee; }
.production-qa-pill.is-passed{ background:rgba(24,111,78,0.34); color:#dfffee; }
.production-qa-pill.is-monitor{ background:rgba(104,89,28,0.3); color:#fff2ba; }
.production-qa-pill.is-hold{ background:rgba(124,54,44,0.34); color:#ffd8d0; }

.production-batch-card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:16px;
}

.production-batch-card{
  appearance:none;
  border:1px solid rgba(121,255,215,0.14);
  background:
    radial-gradient(circle at top left, rgba(127,240,214,0.1), transparent 26%),
    linear-gradient(145deg, rgba(11,38,34,0.96), rgba(10,27,24,0.96));
  color:#f4fffc;
  border-radius:24px;
  padding:18px;
  text-align:left;
  cursor:pointer;
  box-shadow:0 18px 34px rgba(0,0,0,0.16);
}

.production-batch-card:hover{
  transform:translateY(-2px);
  border-color:rgba(121,255,215,0.24);
}

.production-batch-card-head{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.production-batch-card h4{
  margin:0;
  font-size:22px;
  line-height:1.05;
}

.production-batch-card p{
  margin:8px 0 12px;
  color:rgba(222,245,236,0.8);
}

.production-progress-bar{
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  overflow:hidden;
}

.production-progress-bar span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg, rgba(86,242,202,0.95), rgba(126,255,223,0.92));
}

.production-batch-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
  color:rgba(222,245,236,0.78);
  font-size:13px;
}

.production-photo-section{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 220px;
  gap:18px;
  margin-top:18px;
  align-items:start;
}

.production-photo-label{
  display:block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:8px;
  color:rgba(174,245,224,0.76);
}

.production-photo-preview{
  min-height:180px;
  border-radius:22px;
  border:1px dashed rgba(121,255,215,0.18);
  background:rgba(9,27,25,0.78);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.production-photo-preview img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.production-photo-empty{
  padding:20px;
  text-align:center;
  color:rgba(212,237,229,0.7);
  line-height:1.5;
}

.production-table{
  width:100%;
  border-collapse:collapse;
}

.production-table th,
.production-table td{
  padding:16px 14px;
  border-bottom:1px solid rgba(121,255,215,0.12);
  text-align:left;
  vertical-align:top;
}

.production-table th{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(180,245,226,0.74);
}

.table-subcopy{
  display:block;
  margin-top:6px;
  color:rgba(217,240,234,0.72);
  font-size:13px;
}

body.thic-light-mode .production-batch-card{
  background:linear-gradient(145deg, rgba(255,255,255,0.96), rgba(233,247,244,0.94));
  color:#133130;
}

body.thic-light-mode .production-photo-preview{
  background:rgba(244,250,248,0.94);
  border-color:rgba(44,122,110,0.16);
}

@media (max-width: 1100px){
  .production-shell{
    grid-template-columns:1fr;
  }
}

@media (max-width: 980px){
  .radar-node-inner-left{ left:10%; top:28%; }
  .production-photo-section{
    grid-template-columns:1fr;
  }
}

/* ===== v71 deeper smart banner, radar and inbox surfaces ===== */
.smart-global-header{
  background:
    radial-gradient(circle at top right, rgba(111, 224, 244, 0.18), transparent 28%),
    radial-gradient(circle at 76% 24%, rgba(64, 133, 255, 0.12), transparent 24%),
    radial-gradient(circle at bottom left, rgba(78, 213, 182, 0.16), transparent 26%),
    linear-gradient(135deg, #071714 0%, #123d43 48%, #5F8F9B 100%) !important;
  box-shadow:
    0 24px 56px rgba(2, 12, 11, 0.34),
    0 1px 0 rgba(255,255,255,0.10) inset !important;
}

.smart-header-pill,
.smart-header-fallback{
  background:rgba(255,255,255,0.14) !important;
  border:1px solid rgba(255,255,255,0.18) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 24px rgba(1, 10, 9, 0.18) !important;
}

body:not(.thic-light-mode) .radar-home-hero{
  background:
    radial-gradient(circle at top left, rgba(69, 196, 156, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(64, 133, 255, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(4, 11, 11, 0.98), rgba(9, 20, 20, 0.96)) !important;
  border-color:rgba(113, 255, 205, 0.12) !important;
  box-shadow:0 30px 96px rgba(0, 7, 7, 0.54) !important;
}

body:not(.thic-light-mode) .radar-status-card{
  background:linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05)) !important;
  border:1px solid rgba(255,255,255,0.12) !important;
}

body:not(.thic-light-mode) .radar-control-card{
  border:1px solid rgba(113,255,205,0.12) !important;
  background:linear-gradient(180deg, rgba(255,255,255,0.14), rgba(236,250,246,0.92)) !important;
  box-shadow:0 18px 34px rgba(1, 11, 10, 0.18) !important;
}

body:not(.thic-light-mode) .radar-control-card:hover{
  box-shadow:0 24px 42px rgba(1, 11, 10, 0.24) !important;
}

body:not(.thic-light-mode) .radar-stage{
  background:
    radial-gradient(circle at center, rgba(56, 171, 137, 0.11), transparent 30%),
    linear-gradient(180deg, rgba(4,10,10,1), rgba(7,15,15,0.98)) !important;
  border:1px solid rgba(92, 202, 173, 0.10) !important;
  box-shadow:0 30px 88px rgba(0, 6, 6, 0.48) !important;
}

.inbox-toolbar-card,
.inbox-summary-card,
.inbox-thread-list,
.inbox-conversation,
.inbox-meta-card{
  border:1px solid rgba(110, 236, 201, 0.12) !important;
  background:linear-gradient(145deg, rgba(4,18,16,0.96), rgba(8,28,25,0.94)) !important;
  box-shadow:0 24px 42px rgba(0, 8, 7, 0.28) !important;
}

body:not(.thic-light-mode) .inbox-toolbar-card,
body:not(.thic-light-mode) .inbox-summary-card,
body:not(.thic-light-mode) .inbox-thread-list,
body:not(.thic-light-mode) .inbox-conversation,
body:not(.thic-light-mode) .inbox-meta-card{
  border:1px solid rgba(110, 236, 201, 0.12) !important;
  background:linear-gradient(145deg, rgba(4,18,16,0.96), rgba(8,28,25,0.94)) !important;
  box-shadow:0 24px 42px rgba(0, 8, 7, 0.28) !important;
}

body:not(.thic-light-mode) .inbox-toolbar-stat,
body:not(.thic-light-mode) .inbox-thread-card,
body:not(.thic-light-mode) .inbox-message,
body:not(.thic-light-mode) .inbox-empty-state{
  background:rgba(255,255,255,0.05) !important;
  border-color:rgba(121,255,215,0.14) !important;
}

body:not(.thic-light-mode) .inbox-thread-card:hover,
body:not(.thic-light-mode) .inbox-thread-card.active,
body:not(.thic-light-mode) .inbox-message.mine{
  background:rgba(26,152,132,0.14) !important;
}

body.thic-light-mode .smart-global-header{
  background:
    radial-gradient(circle at top right, rgba(78, 213, 182, 0.14), transparent 30%),
    radial-gradient(circle at bottom left, rgba(31, 120, 110, 0.18), transparent 26%),
    linear-gradient(135deg, #123630 0%, #1b4d45 48%, #255f55 100%) !important;
  border:1px solid rgba(136, 226, 206, 0.22) !important;
  box-shadow:0 22px 48px rgba(4, 32, 28, 0.18) !important;
}

body.thic-light-mode .smart-global-header h2,
body.thic-light-mode .smart-global-header p,
body.thic-light-mode .smart-header-page{
  color:#f4fffd !important;
}

body.thic-light-mode .smart-header-clock-card,
body.thic-light-mode .smart-header-message-btn{
  background:linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.12)) !important;
  border:1px solid rgba(255,255,255,0.24) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.16), 0 10px 24px rgba(4, 32, 28, 0.10) !important;
}

body.thic-light-mode .smart-header-clock-card strong,
body.thic-light-mode .smart-header-clock-card small,
body.thic-light-mode .smart-header-message-copy strong,
body.thic-light-mode .smart-header-message-copy small,
body.thic-light-mode .smart-header-message-icon,
body.thic-light-mode .smart-header-utility-kicker{
  color:#f4fffd !important;
}

body.thic-light-mode .inbox-toolbar-card,
body.thic-light-mode .inbox-summary-card,
body.thic-light-mode .inbox-thread-list,
body.thic-light-mode .inbox-conversation,
body.thic-light-mode .inbox-meta-card{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.10), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  box-shadow:0 16px 32px rgba(15,58,53,0.07) !important;
}

body.thic-light-mode .inbox-toolbar-stat,
body.thic-light-mode .inbox-thread-card,
body.thic-light-mode .inbox-message,
body.thic-light-mode .inbox-empty-state{
  background:rgba(255,255,255,0.88) !important;
  border:1px solid rgba(95,143,155,0.14) !important;
}

body.thic-light-mode .inbox-thread-card:hover,
body.thic-light-mode .inbox-thread-card.active,
body.thic-light-mode .inbox-message.mine{
  background:rgba(47,164,179,0.10) !important;
}

/* ===== v72 force truly light surfaces in light mode ===== */
body.thic-light-mode .module-control-panel,
body.thic-light-mode .module-mission-deck,
body.thic-light-mode .radar-control-card,
body.thic-light-mode .finance-section .panel,
body.thic-light-mode .finance-section .panel-subtle,
body.thic-light-mode .dashboard-two-col .panel,
body.thic-light-mode .popup-section{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.10), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f9fdfc 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  color:#10312c !important;
  box-shadow:0 16px 32px rgba(15,58,53,0.07) !important;
}

body.thic-light-mode .module-control-panel h3,
body.thic-light-mode .module-control-panel p,
body.thic-light-mode .module-control-panel small,
body.thic-light-mode .module-control-panel strong,
body.thic-light-mode .module-control-kicker,
body.thic-light-mode .module-control-note,
body.thic-light-mode .module-control-strip,
body.thic-light-mode .module-control-stat strong,
body.thic-light-mode .module-control-stat small,
body.thic-light-mode .module-control-stat .label{
  color:#10312c !important;
}

body.thic-light-mode .radar-command-deck{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.12), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  box-shadow:0 18px 34px rgba(15,58,53,0.07) !important;
}

body.thic-light-mode .radar-command-deck::before,
body.thic-light-mode .radar-command-deck .radar-stage::before{
  display:none !important;
}

body.thic-light-mode .radar-command-deck .radar-control-card{
  background:
    radial-gradient(circle at 0% 0%, rgba(95,143,155,0.10), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #fbfefe 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  box-shadow:0 10px 20px rgba(15,58,53,0.05) !important;
}

body.thic-light-mode .radar-command-deck .radar-control-card strong,
body.thic-light-mode .radar-command-deck .radar-control-card small,
body.thic-light-mode .radar-command-deck .radar-control-kicker,
body.thic-light-mode .radar-command-deck .radar-control-meta{
  color:#10312c !important;
}

body.thic-light-mode .radar-command-deck .radar-stage.panel,
body.thic-light-mode .radar-command-deck .radar-stage{
  background:
    radial-gradient(circle at center, rgba(47,164,179,0.08), transparent 22%),
    radial-gradient(circle at center, rgba(95,143,155,0.06), transparent 46%),
    linear-gradient(180deg, #fdfefe 0%, #f2f8f7 100%) !important;
  border:1px solid rgba(95,143,155,0.16) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.55), 0 18px 34px rgba(15,58,53,0.08) !important;
}

body.thic-light-mode .radar-command-deck .radar-stage-shell::before{
  background:
    radial-gradient(circle at center, rgba(47,164,179,0.05), transparent 30%),
    repeating-radial-gradient(circle at center, rgba(95,143,155,0.07) 0 1px, transparent 1px 92px) !important;
  opacity:.8 !important;
}

body.thic-light-mode .radar-command-deck .radar-node{
  background:linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,250,249,0.98)) !important;
  box-shadow:0 16px 30px rgba(15,58,53,0.10) !important;
  border:1px solid rgba(95,143,155,0.14) !important;
}

body.thic-light-mode .radar-command-deck .radar-node strong,
body.thic-light-mode .radar-command-deck .radar-node small,
body.thic-light-mode .radar-command-deck .radar-node-meta,
body.thic-light-mode .radar-command-deck .radar-core-kicker,
body.thic-light-mode .radar-command-deck .radar-core strong,
body.thic-light-mode .radar-command-deck .radar-core small{
  color:#10312c !important;
  text-shadow:none !important;
}

body.thic-light-mode .radar-command-deck .radar-core{
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,0.9), transparent 30%),
    linear-gradient(145deg, #ffffff, #eef6f4) !important;
  box-shadow:0 18px 34px rgba(15,58,53,0.10) !important;
}

body.thic-light-mode .finance-section,
body.thic-light-mode .finance-section-body,
body.thic-light-mode .flow-panel,
body.thic-light-mode .smart-contact-selector-shell,
body.thic-light-mode .table-wrap,
body.thic-light-mode .contacts-toolbar-advanced,
body.thic-light-mode .panel-subtle,
body.thic-light-mode .finance-clean-shell > div{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.10), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f9fdfc 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  color:#10312c !important;
  box-shadow:0 16px 32px rgba(15,58,53,0.07) !important;
}

body.thic-light-mode .finance-section h3,
body.thic-light-mode .finance-section h4,
body.thic-light-mode .finance-section p,
body.thic-light-mode .finance-section span,
body.thic-light-mode .finance-clean-shell .form-group label,
body.thic-light-mode .contacts-toolbar .form-group label,
body.thic-light-mode .contacts-toolbar-advanced .form-group label{
  color:#10312c !important;
}

body.thic-light-mode .finance-section tbody td,
body.thic-light-mode .table-wrap tbody td{
  background:rgba(255,255,255,0.92) !important;
  color:#10312c !important;
  border-color:rgba(95,143,155,0.12) !important;
}

body.thic-light-mode .finance-section thead th,
body.thic-light-mode .table-wrap thead th{
  color:rgba(16,49,44,0.70) !important;
}

body.thic-light-mode .finance-section .upload-row,
body.thic-light-mode .finance-section .contact-search-wrap{
  background:rgba(255,255,255,0.80) !important;
  border:1px solid rgba(95,143,155,0.14) !important;
}

body.thic-light-mode .finance-kpi{
  background:linear-gradient(135deg, #6fcfdb 0%, #88d9e2 52%, #a6e6e0 100%) !important;
  border:1px solid rgba(255,255,255,0.45) !important;
  box-shadow:0 16px 28px rgba(95,143,155,0.14) !important;
}

body.thic-light-mode .finance-kpi h4,
body.thic-light-mode .finance-kpi div,
body.thic-light-mode .finance-kpi small{
  color:#08352f !important;
}

/* ===== v73 light-mode readability and radar visibility ===== */
body.thic-light-mode .inbox-toolbar-card h3,
body.thic-light-mode .inbox-toolbar-card p,
body.thic-light-mode .inbox-toolbar-kicker,
body.thic-light-mode .inbox-toolbar-stat strong,
body.thic-light-mode .inbox-toolbar-stat span,
body.thic-light-mode .inbox-summary-card strong,
body.thic-light-mode .inbox-summary-card span,
body.thic-light-mode .inbox-summary-card small,
body.thic-light-mode .inbox-list-head,
body.thic-light-mode .inbox-thread-card,
body.thic-light-mode .inbox-thread-card strong,
body.thic-light-mode .inbox-thread-card-meta,
body.thic-light-mode .inbox-thread-card-bottom,
body.thic-light-mode .inbox-conversation-head h3,
body.thic-light-mode .inbox-conversation-head p,
body.thic-light-mode .inbox-message-head,
body.thic-light-mode .inbox-message p,
body.thic-light-mode .inbox-composer-actions,
body.thic-light-mode .inbox-meta-card label,
body.thic-light-mode .inbox-empty-state{
  color:#10312c !important;
}

body.thic-light-mode .inbox-toolbar-kicker,
body.thic-light-mode .inbox-summary-card span,
body.thic-light-mode .inbox-meta-card label{
  color:#5b8b84 !important;
}

body.thic-light-mode .inbox-thread-card-meta,
body.thic-light-mode .inbox-thread-card-bottom,
body.thic-light-mode .inbox-conversation-head p,
body.thic-light-mode .inbox-message-head,
body.thic-light-mode .inbox-composer-actions,
body.thic-light-mode .inbox-summary-card small{
  color:rgba(16,49,44,0.68) !important;
}

body.thic-light-mode .inbox-status-chip{
  border-color:rgba(47,164,179,0.18) !important;
}

body.thic-light-mode .inbox-status-chip.open{
  background:rgba(47,164,179,0.12) !important;
  color:#0f5f59 !important;
}

body.thic-light-mode .inbox-status-chip.waiting{
  background:rgba(240,190,90,0.18) !important;
  color:#825b12 !important;
}

body.thic-light-mode .inbox-status-chip.resolved{
  background:rgba(125,160,148,0.18) !important;
  color:#48655c !important;
}

body.thic-light-mode .inbox-unread-badge{
  background:linear-gradient(135deg, #73e7c8, #9af1da) !important;
  color:#0a4c43 !important;
}

body.thic-light-mode .inbox-composer textarea,
body.thic-light-mode .inbox-meta-card input,
body.thic-light-mode .inbox-meta-card select{
  background:#ffffff !important;
  color:#10312c !important;
  border:1px solid rgba(95,143,155,0.18) !important;
}

body.thic-light-mode .inbox-composer textarea::placeholder,
body.thic-light-mode .inbox-meta-card input::placeholder{
  color:rgba(16,49,44,0.45) !important;
}

body.thic-light-mode .radar-ring,
body.thic-light-mode .radar-ring-outer,
body.thic-light-mode .radar-ring-mid,
body.thic-light-mode .radar-ring-inner{
  opacity:.7 !important;
  filter:none !important;
  border-color:rgba(58,130,119,0.16) !important;
  box-shadow:0 0 0 1px rgba(116,182,170,0.06) inset !important;
}

body.thic-light-mode .radar-sweep{
  opacity:.9 !important;
  filter:none !important;
  background:linear-gradient(90deg, rgba(47,164,179,0.28), rgba(47,164,179,0.12), transparent 76%) !important;
}

body.thic-light-mode .radar-command-deck .radar-sweep{
  opacity:.92 !important;
  background:linear-gradient(90deg, rgba(47,164,179,0.34), rgba(47,164,179,0.15), transparent 75%) !important;
}

body.thic-light-mode .radar-command-deck .radar-stage.panel,
body.thic-light-mode .radar-command-deck .radar-stage{
  background:
    radial-gradient(circle at center, rgba(47,164,179,0.12), transparent 18%),
    radial-gradient(circle at center, rgba(95,143,155,0.08), transparent 38%),
    linear-gradient(180deg, #f7fbfb 0%, #edf5f3 100%) !important;
}

/* ===== v74 contact page light-mode readability ===== */
body.thic-light-mode .contact-overview-tile{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.14), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  box-shadow:0 14px 28px rgba(15,58,53,0.08) !important;
  color:#10312c !important;
}

body.thic-light-mode .contact-overview-tile strong{
  color:#10312c !important;
}

body.thic-light-mode .contact-overview-kicker{
  color:#5b8b84 !important;
  opacity:1 !important;
}

body.thic-light-mode .contact-overview-tile span:last-child{
  color:rgba(16,49,44,0.72) !important;
}

body.thic-light-mode .contact-overview-tile.active{
  border-color:rgba(47,164,179,0.30) !important;
  box-shadow:0 16px 30px rgba(15,58,53,0.10), 0 0 0 2px rgba(47,164,179,0.10) !important;
}

body.thic-light-mode .contact-tile{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.10), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f9fdfc 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  box-shadow:0 16px 32px rgba(15,58,53,0.07) !important;
  color:#10312c !important;
}

body.thic-light-mode .contact-tile h4,
body.thic-light-mode .contact-tile strong,
body.thic-light-mode .contact-meta-line,
body.thic-light-mode .contact-owner-line{
  color:#10312c !important;
}

body.thic-light-mode .contact-meta,
body.thic-light-mode .contact-meta-line.muted{
  color:rgba(16,49,44,0.68) !important;
}

body.thic-light-mode .contact-pill,
body.thic-light-mode .contact-subpill,
body.thic-light-mode .contact-module-chip{
  background:rgba(47,164,179,0.10) !important;
  border:1px solid rgba(95,143,155,0.14) !important;
  color:#0f5f59 !important;
}

body.thic-light-mode .contact-avatar{
  background:linear-gradient(135deg, rgba(47,164,179,0.18), rgba(95,143,155,0.24)) !important;
  color:#0f5f59 !important;
}

body.thic-light-mode .contacts-toolbar,
body.thic-light-mode .contacts-toolbar-advanced{
  color:#10312c !important;
}

body.thic-light-mode .contacts-toolbar strong,
body.thic-light-mode .contacts-toolbar p,
body.thic-light-mode .contacts-toolbar span,
body.thic-light-mode .contacts-toolbar-advanced strong,
body.thic-light-mode .contacts-toolbar-advanced p,
body.thic-light-mode .contacts-toolbar-advanced span{
  color:#10312c !important;
}

body.thic-light-mode .contact-tile input,
body.thic-light-mode .contact-tile select,
body.thic-light-mode .contact-tile textarea{
  background:rgba(236,244,243,0.88) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  color:#10312c !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.55) !important;
}

/* ===== v75 remaining light-mode module cleanup ===== */
body.thic-light-mode .production-form-panel,
body.thic-light-mode .production-overview-panel,
body.thic-light-mode .production-table-panel,
body.thic-light-mode .budget-sidebar,
body.thic-light-mode .budget-main,
body.thic-light-mode .budget-question-card,
body.thic-light-mode .budget-review-card,
body.thic-light-mode .budget-kpi-card,
body.thic-light-mode .budget-report-kpis .budget-kpi-card,
body.thic-light-mode .online-card,
body.thic-light-mode .online-panel,
body.thic-light-mode .online-table-wrap,
body.thic-light-mode .online-page .panel,
body.thic-light-mode .leaderboard-card,
body.thic-light-mode .influencer-radar-panel{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.10), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f9fdfc 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  color:#10312c !important;
  box-shadow:0 16px 32px rgba(15,58,53,0.07) !important;
}

body.thic-light-mode .production-form-panel h3,
body.thic-light-mode .production-form-panel h4,
body.thic-light-mode .production-overview-panel h3,
body.thic-light-mode .production-overview-panel h4,
body.thic-light-mode .production-table-panel h3,
body.thic-light-mode .budget-main h1,
body.thic-light-mode .budget-main h2,
body.thic-light-mode .budget-main h3,
body.thic-light-mode .budget-main h4,
body.thic-light-mode .budget-sidebar h1,
body.thic-light-mode .budget-sidebar h2,
body.thic-light-mode .budget-sidebar h3,
body.thic-light-mode .budget-sidebar h4,
body.thic-light-mode .online-card h3,
body.thic-light-mode .online-card h4,
body.thic-light-mode .leaderboard-card h3,
body.thic-light-mode .leaderboard-card h4,
body.thic-light-mode .influencer-radar-panel h3,
body.thic-light-mode .influencer-radar-panel h4,
body.thic-light-mode .production-form-panel strong,
body.thic-light-mode .production-overview-panel strong,
body.thic-light-mode .production-table-panel strong,
body.thic-light-mode .budget-main strong,
body.thic-light-mode .budget-sidebar strong,
body.thic-light-mode .online-card strong,
body.thic-light-mode .leaderboard-card strong,
body.thic-light-mode .influencer-radar-panel strong{
  color:#10312c !important;
}

body.thic-light-mode .production-form-panel p,
body.thic-light-mode .production-overview-panel p,
body.thic-light-mode .production-table-panel p,
body.thic-light-mode .production-form-panel label,
body.thic-light-mode .production-overview-panel label,
body.thic-light-mode .budget-main p,
body.thic-light-mode .budget-main small,
body.thic-light-mode .budget-main label,
body.thic-light-mode .budget-sidebar p,
body.thic-light-mode .budget-sidebar small,
body.thic-light-mode .budget-sidebar label,
body.thic-light-mode .budget-sidebar-note,
body.thic-light-mode .budget-selected-company,
body.thic-light-mode .online-card p,
body.thic-light-mode .online-card span,
body.thic-light-mode .online-card small,
body.thic-light-mode .leaderboard-card p,
body.thic-light-mode .leaderboard-card span,
body.thic-light-mode .leaderboard-card small,
body.thic-light-mode .influencer-radar-panel p,
body.thic-light-mode .influencer-radar-panel span,
body.thic-light-mode .influencer-radar-panel small{
  color:rgba(16,49,44,0.72) !important;
}

body.thic-light-mode .production-status-pill,
body.thic-light-mode .production-qa-pill,
body.thic-light-mode .budget-section-btn,
body.thic-light-mode .budget-section-footer button{
  background:rgba(47,164,179,0.10) !important;
  border:1px solid rgba(95,143,155,0.14) !important;
  color:#0f5f59 !important;
}

body.thic-light-mode .budget-section-btn.active,
body.thic-light-mode .budget-section-btn:hover,
body.thic-light-mode .budget-section-footer button:hover{
  background:rgba(47,164,179,0.16) !important;
  border-color:rgba(47,164,179,0.24) !important;
  color:#0c4d47 !important;
}

body.thic-light-mode .budget-question-card,
body.thic-light-mode .budget-review-card{
  color:#10312c !important;
}

body.thic-light-mode .budget-question-card input,
body.thic-light-mode .budget-question-card select,
body.thic-light-mode .budget-question-card textarea,
body.thic-light-mode .budget-main input,
body.thic-light-mode .budget-main select,
body.thic-light-mode .budget-main textarea,
body.thic-light-mode .budget-sidebar input,
body.thic-light-mode .budget-sidebar select,
body.thic-light-mode .budget-sidebar textarea{
  background:#ffffff !important;
  color:#10312c !important;
  border:1px solid rgba(95,143,155,0.18) !important;
}

body.thic-light-mode .budget-kpi-card span,
body.thic-light-mode .budget-kpi-detail-item span,
body.thic-light-mode .budget-main .company-mini-kicker{
  color:#5b8b84 !important;
}

body.thic-light-mode .production-batch-card{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.10), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  color:#10312c !important;
  box-shadow:0 14px 30px rgba(15,58,53,0.08) !important;
}

body.thic-light-mode .production-batch-card h4,
body.thic-light-mode .production-batch-card p,
body.thic-light-mode .production-batch-card-meta,
body.thic-light-mode .production-batch-card strong{
  color:#10312c !important;
}

body.thic-light-mode .production-progress-bar{
  background:rgba(95,143,155,0.14) !important;
  border:1px solid rgba(95,143,155,0.10) !important;
}

body.thic-light-mode .production-progress-bar span{
  background:linear-gradient(90deg, #62e8d0, #67b6ff) !important;
}

body.thic-light-mode .simple-list-row{
  background:linear-gradient(135deg, #214b47 0%, #244f4a 48%, #295953 100%) !important;
  border:1px solid rgba(255,255,255,0.08) !important;
}

body.thic-light-mode .simple-list-row strong,
body.thic-light-mode .simple-list-row span{
  color:#f3fffb !important;
}

body.thic-light-mode .country-signal-head strong{
  color:#10312c !important;
}

body.thic-light-mode .country-signal-head span{
  color:rgba(16,49,44,0.72) !important;
}

body.thic-light-mode .country-signal-bar{
  background:rgba(95,143,155,0.10) !important;
  border:1px solid rgba(95,143,155,0.10) !important;
}

body.thic-light-mode .online-table-wrap thead th,
body.thic-light-mode .production-table th{
  background:#143f3b !important;
  color:#effcf8 !important;
}

body.thic-light-mode .online-table-wrap tbody td,
body.thic-light-mode .production-table td{
  background:#ffffff !important;
  color:#10312c !important;
  border-color:rgba(95,143,155,0.12) !important;
}

body.thic-light-mode .influencer-radar-visual{
  background:radial-gradient(circle at 50% 50%, rgba(47,164,179,0.18), rgba(234,244,242,0.96) 72%) !important;
  border:1px solid rgba(95,143,155,0.14) !important;
}

body.thic-light-mode .influencer-radar-core{
  background:radial-gradient(circle at 30% 30%, rgba(47,164,179,0.24), rgba(255,255,255,0.96)) !important;
  border:1px solid rgba(95,143,155,0.20) !important;
  box-shadow:0 0 0 12px rgba(47,164,179,0.05) !important;
}

body.thic-light-mode .influencer-radar-core span,
body.thic-light-mode .influencer-radar-core strong,
body.thic-light-mode .influencer-radar-core small{
  color:#10312c !important;
}

body.thic-light-mode .influencer-radar-ring{
  border-color:rgba(95,143,155,0.18) !important;
}

body.thic-light-mode .influencer-radar-sweep{
  background:conic-gradient(from 0deg, rgba(47,164,179,0.00), rgba(47,164,179,0.18), rgba(47,164,179,0.00) 28%) !important;
}

body.thic-light-mode .influencer-radar-stat,
body.thic-light-mode .influencer-radar-row,
body.thic-light-mode .influencer-radar-empty{
  background:rgba(255,255,255,0.86) !important;
  border:1px solid rgba(95,143,155,0.14) !important;
}

body.thic-light-mode .influencer-radar-stat span{
  color:#5b8b84 !important;
}

body.thic-light-mode .influencer-radar-stat strong,
body.thic-light-mode .influencer-radar-row strong{
  color:#10312c !important;
}

body.thic-light-mode .influencer-radar-stat small,
body.thic-light-mode .influencer-radar-row small,
body.thic-light-mode .influencer-radar-empty{
  color:rgba(16,49,44,0.70) !important;
}

body.thic-light-mode .influencer-radar-dot{
  background:radial-gradient(circle, #73e7c8, #24b79d) !important;
  box-shadow:0 0 10px rgba(47,164,179,0.24) !important;
}

/* ===== v76 contacts light-mode loader and tile field contrast ===== */
body.thic-light-mode .contacts-loading-state{
  border:1px solid rgba(95,143,155,0.18) !important;
  background:
    radial-gradient(circle at top left, rgba(47,164,179,0.12), transparent 24%),
    linear-gradient(145deg, rgba(233,244,242,0.98), rgba(223,238,235,0.96)) !important;
  box-shadow:0 16px 30px rgba(15,58,53,0.10) !important;
}

body.thic-light-mode .contacts-loading-copy strong{
  color:#10312c !important;
}

body.thic-light-mode .contacts-loading-copy span{
  color:rgba(16,49,44,0.74) !important;
}

body.thic-light-mode .contacts-loading-dots span{
  background:rgba(47,164,179,0.72) !important;
  box-shadow:0 0 10px rgba(47,164,179,0.18) !important;
}

body.thic-light-mode .contact-tile{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.12), transparent 18%),
    linear-gradient(180deg, #f8fcfb 0%, #eef5f3 100%) !important;
  border:1px solid rgba(95,143,155,0.20) !important;
}

body.thic-light-mode .contact-meta-line,
body.thic-light-mode .contact-meta-line.muted,
body.thic-light-mode .contact-owner-line{
  background:rgba(228,238,236,0.96) !important;
  border:1px solid rgba(95,143,155,0.12) !important;
  border-radius:14px !important;
  padding:10px 14px !important;
}

body.thic-light-mode .contact-tile input,
body.thic-light-mode .contact-tile select,
body.thic-light-mode .contact-tile textarea{
  background:rgba(226,237,235,0.98) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.52) !important;
}

body.thic-light-mode #contactsSearchInput.contacts-search-input,
body.thic-light-mode .contact-search-wrap .contacts-search-input,
body.thic-light-mode .contacts-search-input{
  background:rgba(232,240,239,0.96) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  color:#10312c !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.56) !important;
}

body.thic-light-mode #contactsSearchInput.contacts-search-input::placeholder,
body.thic-light-mode .contacts-search-input::placeholder{
  color:rgba(16,49,44,0.44) !important;
}

body.thic-light-mode .filter-grid .form-group input,
body.thic-light-mode .filter-grid .form-group select,
body.thic-light-mode .contacts-toolbar-advanced .form-group input,
body.thic-light-mode .contacts-toolbar-advanced .form-group select{
  background:rgba(232,240,239,0.96) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  color:#10312c !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.56) !important;
}

body.thic-light-mode .filter-grid .form-group label,
body.thic-light-mode .contacts-toolbar-advanced .form-group label{
  color:#5b8b84 !important;
}

body.thic-light-mode .view-chip{
  background:rgba(232,240,239,0.96) !important;
  border:1px solid rgba(95,143,155,0.16) !important;
  color:#10312c !important;
}

body.thic-light-mode .view-chip.active{
  background:rgba(47,164,179,0.14) !important;
  border-color:rgba(47,164,179,0.24) !important;
  color:#0f5f59 !important;
}

body.thic-light-mode .contact-desk-role-btn{
  background:rgba(232,240,239,0.96) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  color:#10312c !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.56) !important;
}

body.thic-light-mode .contact-desk-role-btn:hover{
  border-color:rgba(47,164,179,0.24) !important;
  background:rgba(223,236,234,0.98) !important;
}

body.thic-light-mode .contact-desk-role-btn.active{
  background:linear-gradient(135deg, rgba(111,224,244,0.95), rgba(118,240,214,0.92)) !important;
  border-color:transparent !important;
  color:#083a37 !important;
  box-shadow:0 12px 24px rgba(69,188,216,0.16) !important;
}

body.thic-light-mode .smart-selector-create-btn,
body.thic-light-mode .smart-contact-selector-shell .primary-btn{
  background:linear-gradient(180deg, #1c1c1c 0%, #111111 100%) !important;
  border:1px solid rgba(17,17,17,0.12) !important;
  color:#ffffff !important;
  box-shadow:0 10px 20px rgba(0,0,0,0.10) !important;
}

body.thic-light-mode .smart-selector-create-btn:hover,
body.thic-light-mode .smart-contact-selector-shell .primary-btn:hover{
  background:linear-gradient(180deg, #2a2a2a 0%, #161616 100%) !important;
  color:#ffffff !important;
}

body.thic-light-mode .contacts-recovery-status,
body.thic-light-mode .contacts-diagnostics-status{
  background:rgba(236,244,243,0.94) !important;
  border:1px solid rgba(95,143,155,0.14) !important;
  color:#10312c !important;
}

body.thic-light-mode .contacts-recovery-status strong,
body.thic-light-mode .contacts-diagnostics-status strong{
  color:#5b8b84 !important;
}

body.thic-light-mode .contacts-recovery-status span,
body.thic-light-mode .contacts-diagnostics-status span{
  color:#10312c !important;
}

/* ===== v77 final light-mode cleanup ===== */
body.thic-light-mode .admin-role-card,
body.thic-light-mode .user-access-card{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.10), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  color:#10312c !important;
  box-shadow:0 14px 28px rgba(15,58,53,0.08) !important;
}

body.thic-light-mode .admin-role-card span,
body.thic-light-mode .admin-role-card small,
body.thic-light-mode .user-access-card span,
body.thic-light-mode .user-access-card small{
  color:rgba(16,49,44,0.70) !important;
}

body.thic-light-mode .admin-role-card strong,
body.thic-light-mode .user-access-card strong{
  color:#10312c !important;
}

body.thic-light-mode .admin-role-card.active,
body.thic-light-mode .user-access-card.active{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.16), transparent 18%),
    linear-gradient(180deg, #f4fbfa 0%, #e9f5f3 100%) !important;
  border-color:rgba(47,164,179,0.26) !important;
}

body.thic-light-mode .onboarding-queue-card{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.10), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  color:#10312c !important;
  box-shadow:0 14px 28px rgba(15,58,53,0.08) !important;
}

body.thic-light-mode .onboarding-queue-card h4,
body.thic-light-mode .onboarding-queue-card p,
body.thic-light-mode .onboarding-queue-card-meta,
body.thic-light-mode .onboarding-queue-nextstep,
body.thic-light-mode .onboarding-readiness-cell strong,
body.thic-light-mode .onboarding-readiness-cell span{
  color:#10312c !important;
}

body.thic-light-mode .onboarding-status-pill.invited{
  background:rgba(129,140,248,0.12) !important;
  color:#4d5ec9 !important;
}

body.thic-light-mode .onboarding-status-pill.submitted{
  background:rgba(45,212,191,0.12) !important;
  color:#0f7e72 !important;
}

body.thic-light-mode .onboarding-status-pill.accepted{
  background:rgba(74,222,128,0.12) !important;
  color:#2d8a4b !important;
}

body.thic-light-mode .onboarding-status-pill.draft{
  background:rgba(148,163,184,0.12) !important;
  color:#64748b !important;
}

body.thic-light-mode .onboarding-readiness-bar{
  background:rgba(95,143,155,0.10) !important;
}

body.thic-light-mode .table-wrap td .onboarding-readiness-cell strong,
body.thic-light-mode .table-wrap td .onboarding-readiness-cell span{
  color:#10312c !important;
}

body.thic-light-mode .report-card{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.10), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  box-shadow:0 14px 28px rgba(15,58,53,0.08) !important;
}

body.thic-light-mode .report-card-kicker{
  color:#5b8b84 !important;
}

body.thic-light-mode .report-card strong{
  color:#10312c !important;
}

body.thic-light-mode .report-card span{
  color:rgba(16,49,44,0.70) !important;
}

body.thic-light-mode .investor-report-shell,
body.thic-light-mode .investor-report-page{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.12), transparent 18%),
    linear-gradient(180deg, #f7fbfb 0%, #eef5f3 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  color:#10312c !important;
  box-shadow:0 18px 34px rgba(15,58,53,0.08) !important;
}

body.thic-light-mode .investor-report-topbar{
  border-bottom:1px solid rgba(95,143,155,0.12) !important;
}

body.thic-light-mode .investor-report-topbar h3,
body.thic-light-mode .investor-report-hero strong,
body.thic-light-mode .investor-report-metric strong,
body.thic-light-mode .investor-report-section h4{
  color:#10312c !important;
}

body.thic-light-mode .investor-report-topbar p,
body.thic-light-mode .investor-report-hero span,
body.thic-light-mode .investor-report-metric span,
body.thic-light-mode .investor-report-section p{
  color:rgba(16,49,44,0.72) !important;
}

body.thic-light-mode .investor-report-hero div,
body.thic-light-mode .investor-report-metric,
body.thic-light-mode .investor-report-section{
  background:rgba(255,255,255,0.74) !important;
  border:1px solid rgba(95,143,155,0.14) !important;
  box-shadow:0 12px 24px rgba(15,58,53,0.06) !important;
}

body.thic-light-mode .finance-summary-grid > div,
body.thic-light-mode .finance-section .panel-subtle{
  background:rgba(236,244,243,0.92) !important;
  border:1px solid rgba(95,143,155,0.14) !important;
  color:#10312c !important;
}

body.thic-light-mode .finance-summary-grid > div strong,
body.thic-light-mode .finance-section .panel-subtle strong,
body.thic-light-mode .finance-summary-grid > div div,
body.thic-light-mode .finance-section .panel-subtle p,
body.thic-light-mode .finance-upload-msg{
  color:#10312c !important;
}

/* ===== v78 final visual polish for remaining light cards ===== */
body.thic-light-mode .budget-kpi,
body.thic-light-mode .budget-kpi-card,
body.thic-light-mode .budget-review-card,
body.thic-light-mode .budget-kpi-detail-item{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.12), transparent 18%),
    linear-gradient(180deg, #f7fbfa 0%, #edf5f3 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
  color:#10312c !important;
  box-shadow:0 14px 28px rgba(15,58,53,0.08) !important;
}

body.thic-light-mode .budget-kpi span,
body.thic-light-mode .budget-kpi-card span,
body.thic-light-mode .budget-review-card span,
body.thic-light-mode .budget-kpi-detail-item span{
  color:#5b8b84 !important;
}

body.thic-light-mode .budget-kpi strong,
body.thic-light-mode .budget-kpi-card strong,
body.thic-light-mode .budget-review-card strong,
body.thic-light-mode .budget-kpi-detail-item strong,
body.thic-light-mode .budget-kpi p,
body.thic-light-mode .budget-kpi-card p,
body.thic-light-mode .budget-review-card p{
  color:#10312c !important;
}

body.thic-light-mode .reports-grid .report-card{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.12), transparent 18%),
    linear-gradient(180deg, #f8fcfb 0%, #eef5f3 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
}

body.thic-light-mode .reports-grid .report-card strong{
  color:#10312c !important;
}

body.thic-light-mode .reports-grid .report-card span,
body.thic-light-mode .reports-grid .report-card .report-card-kicker{
  color:rgba(16,49,44,0.72) !important;
}

body.thic-light-mode .onboarding-queue-card,
body.thic-light-mode .onboarding-queue-card-top,
body.thic-light-mode .onboarding-queue-card-meta,
body.thic-light-mode .onboarding-queue-nextstep{
  color:#10312c !important;
}

body.thic-light-mode .onboarding-queue-card p{
  color:rgba(16,49,44,0.72) !important;
}

body.thic-light-mode .admin-user-summary-card,
body.thic-light-mode .admin-role-card{
  background:
    radial-gradient(circle at 0% 0%, rgba(47,164,179,0.12), transparent 18%),
    linear-gradient(180deg, #f7fbfa 0%, #edf5f3 100%) !important;
  border:1px solid rgba(95,143,155,0.18) !important;
}

body.thic-light-mode .admin-user-summary-card strong,
body.thic-light-mode .admin-user-summary-card div,
body.thic-light-mode .admin-role-card strong{
  color:#10312c !important;
}

body.thic-light-mode .admin-user-summary-card span,
body.thic-light-mode .admin-user-summary-card small,
body.thic-light-mode .admin-role-card span,
body.thic-light-mode .admin-role-card small{
  color:rgba(16,49,44,0.72) !important;
}

body.thic-light-mode .production-photo-label{
  color:#5b8b84 !important;
}

body.thic-light-mode .production-photo-preview{
  background:rgba(236,244,243,0.94) !important;
  border:1px dashed rgba(95,143,155,0.18) !important;
}

body.thic-light-mode .production-photo-empty{
  color:#10312c !important;
}

/* ===== v79 remove noisy inner field wrapper borders ===== */
.form-grid .form-group,
.company-question-grid .form-group,
.filter-grid .form-group,
.contacts-filter-grid .form-group,
.production-form-grid .form-group,
.onboarding-role-field,
.tile-detail-card .form-grid .form-group,
.ucb-section-grid .form-group{
  border:none !important;
  box-shadow:none !important;
  background:transparent !important;
  padding:0 !important;
}

/* ===== v80 mobile scaling fixes for radar + popup ===== */
@media (max-width: 720px){
  .radar-home-hero{
    padding:20px 16px !important;
    gap:14px !important;
    border-radius:20px !important;
  }

  .radar-home-hero h2{
    font-size:22px !important;
    line-height:1.08 !important;
  }

  .radar-home-hero p{
    font-size:13px !important;
    line-height:1.45 !important;
  }

  .radar-status-card{
    padding:14px !important;
    border-radius:16px !important;
  }

  .radar-status-value{
    font-size:40px !important;
    line-height:1 !important;
  }

  .founder-signals-grid,
  .radar-preview-stats{
    gap:10px !important;
  }

  .founder-signal-card,
  .radar-preview-stat{
    min-height:auto !important;
    padding:12px !important;
    border-radius:16px !important;
  }

  .founder-signal-card span,
  .radar-preview-stat span{
    margin-bottom:6px !important;
    font-size:9px !important;
    letter-spacing:.12em !important;
  }

  .founder-signal-card strong,
  .radar-preview-stat strong{
    font-size:20px !important;
    line-height:1.05 !important;
  }

  .founder-signal-card small,
  .radar-preview-stat small{
    margin-top:5px !important;
    font-size:11px !important;
    line-height:1.3 !important;
  }

  .radar-control-centers{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:10px !important;
    margin-bottom:14px !important;
  }

  .radar-command-deck .radar-control-card,
  .radar-control-card{
    min-height:auto !important;
    padding:12px !important;
    border-radius:16px !important;
    gap:6px !important;
  }

  .radar-control-kicker{
    font-size:9px !important;
    letter-spacing:.12em !important;
  }

  .radar-control-card strong{
    font-size:15px !important;
    line-height:1.1 !important;
  }

  .radar-control-card small{
    font-size:11px !important;
    line-height:1.28 !important;
  }

  .radar-control-meta{
    font-size:10px !important;
    line-height:1.2 !important;
  }

  .thic-popup-overlay{
    padding:10px !important;
    align-items:flex-start !important;
    overflow-y:auto !important;
  }

  .thic-popup-card{
    width:min(100%, 520px) !important;
    max-height:calc(100dvh - 20px) !important;
    margin:0 auto !important;
    padding:18px 14px 14px !important;
    border-radius:18px !important;
    overflow:hidden !important;
  }

  #thicPopupBody{
    max-height:calc(100dvh - 72px) !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
    padding-right:2px;
  }

  .thic-popup-card h3{
    font-size:22px !important;
    line-height:1.08 !important;
    padding-right:28px !important;
  }

  .thic-popup-card p{
    font-size:13px !important;
    line-height:1.45 !important;
  }

  .thic-radar-launcher-grid{
    grid-template-columns:1fr !important;
    gap:10px !important;
    margin-top:14px !important;
  }

  .thic-radar-launcher-card{
    padding:12px !important;
    border-radius:14px !important;
  }

  .thic-radar-launcher-card span{
    margin-bottom:6px !important;
    font-size:10px !important;
    letter-spacing:.12em !important;
  }

  .thic-radar-launcher-card strong{
    font-size:14px !important;
    line-height:1.35 !important;
  }
}

@media (max-width: 420px){
  .radar-home-hero{
    padding:18px 14px !important;
  }

  .radar-home-hero h2{
    font-size:20px !important;
  }

  .radar-status-value,
  .founder-signal-card strong,
  .radar-preview-stat strong{
    font-size:18px !important;
  }

  .radar-control-centers{
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }

  .radar-command-deck .radar-control-card,
  .radar-control-card{
    padding:10px !important;
    border-radius:14px !important;
  }

  .radar-control-card strong{
    font-size:14px !important;
  }

  .radar-control-card small,
  .radar-control-meta{
    font-size:10px !important;
  }

  .thic-popup-card{
    max-height:calc(100dvh - 12px) !important;
    padding:16px 12px 12px !important;
  }

  #thicPopupBody{
    max-height:calc(100dvh - 60px) !important;
  }
}

body:not(.thic-light-mode) .radar-control-card{
  border:1px solid rgba(121,255,215,0.16) !important;
  background:
    radial-gradient(circle at top right, rgba(110,255,221,0.10), transparent 26%),
    linear-gradient(180deg, rgba(8,28,24,0.88), rgba(8,22,20,0.78)) !important;
  box-shadow:0 18px 34px rgba(0,0,0,0.22) !important;
}

body:not(.thic-light-mode) .radar-control-card:hover{
  border-color:rgba(121,255,215,0.24) !important;
  box-shadow:0 24px 42px rgba(0,0,0,0.28) !important;
}

body:not(.thic-light-mode) .radar-control-card.active{
  background:
    radial-gradient(circle at top right, rgba(110,255,221,0.14), transparent 26%),
    linear-gradient(180deg, rgba(16,76,68,0.92), rgba(8,30,27,0.84)) !important;
  border-color:rgba(148,255,224,0.42) !important;
  box-shadow:0 0 0 1px rgba(148,255,224,0.18) inset, 0 24px 42px rgba(0,0,0,0.28) !important;
}

body:not(.thic-light-mode) .radar-control-card strong{
  color:#f4fffc !important;
}

body:not(.thic-light-mode) .radar-control-card small{
  color:rgba(220,243,237,0.78) !important;
}

body:not(.thic-light-mode) .radar-control-kicker{
  color:rgba(188,255,232,0.72) !important;
}

body:not(.thic-light-mode) .radar-control-meta{
  color:#78f0d3 !important;
}

/* ===== v81 header hit area fix ===== */
.smart-header-shell{
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) minmax(320px, 520px) !important;
  align-items:start !important;
  gap:18px !important;
  position:relative !important;
  z-index:1 !important;
}

.smart-header-hero-trigger,
.smart-header-shell-clickable.smart-header-hero-trigger{
  width:auto !important;
  min-width:0 !important;
  max-width:100% !important;
  position:relative !important;
  z-index:1 !important;
}

.smart-header-utility{
  position:relative !important;
  z-index:4 !important;
  pointer-events:auto !important;
}

.smart-header-clock-card,
.smart-header-message-btn,
.smart-header-logout-btn{
  position:relative !important;
  z-index:5 !important;
  pointer-events:auto !important;
}

@media (max-width: 1280px){
  .smart-header-shell{
    grid-template-columns:1fr !important;
  }
}

/* ===== v84 online commerce dashboard refresh ===== */
.online-page-header{
  margin-bottom:18px;
}

.online-commerce-hero{
  display:grid;
  grid-template-columns:minmax(0, 1.3fr) minmax(280px, 420px);
  gap:24px;
  align-items:center;
  margin-bottom:20px;
  padding:26px 28px;
  border-radius:28px;
  background:
    radial-gradient(circle at 12% 20%, rgba(86,220,186,0.18), transparent 26%),
    radial-gradient(circle at 86% 16%, rgba(95,178,255,0.12), transparent 24%),
    linear-gradient(160deg, rgba(10,32,31,0.98), rgba(16,58,53,0.92));
  border:1px solid rgba(136,255,219,0.14);
  box-shadow:0 22px 52px rgba(4,19,18,0.24);
}

.online-commerce-kicker,
.online-panel-kicker{
  font-size:11px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(192,250,235,0.74);
}

.online-commerce-hero-copy h3{
  margin:10px 0 10px;
  color:#f4fffc;
  font-size:38px;
  line-height:1.04;
  max-width:620px;
}

.online-commerce-summary{
  margin:0;
  color:rgba(219,247,240,0.82);
  font-size:16px;
  line-height:1.55;
  max-width:620px;
}

.online-commerce-meta{
  display:grid;
  gap:10px;
  margin-top:18px;
}

.online-commerce-status-pill{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.07);
  border:1px solid rgba(136,255,219,0.14);
  color:#f4fffc;
}

.online-commerce-status-text{
  color:rgba(204,243,235,0.72);
  font-size:13px;
  line-height:1.45;
}

.online-commerce-visual{
  position:relative;
  min-height:280px;
  display:grid;
  place-items:center;
}

.online-commerce-ring{
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(164,255,231,0.14);
}

.online-commerce-ring.ring-a{ width:280px; height:280px; }
.online-commerce-ring.ring-b{ width:212px; height:212px; }
.online-commerce-ring.ring-c{ width:144px; height:144px; }

.online-commerce-core{
  position:relative;
  z-index:1;
  width:196px;
  height:196px;
  padding:22px;
  border-radius:34px;
  display:grid;
  align-content:center;
  justify-items:center;
  text-align:center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.16), transparent 24%),
    linear-gradient(145deg, rgba(12,61,56,0.98), rgba(23,129,115,0.92));
  border:1px solid rgba(168,255,231,0.18);
  box-shadow:0 0 0 1px rgba(168,255,231,0.08), 0 0 72px rgba(51,188,155,0.18), 0 20px 44px rgba(0,0,0,0.28);
}

.online-commerce-core span{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:rgba(208,251,240,0.72);
}

.online-commerce-core strong{
  margin-top:10px;
  color:#f4fffc;
  font-size:34px;
  line-height:1;
}

.online-commerce-core small{
  margin-top:8px;
  color:rgba(214,246,239,0.78);
  font-size:14px;
}

.online-commerce-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
  margin:0 0 20px;
}

.online-kpi-card{
  display:grid;
  gap:8px;
  padding:18px 18px 16px;
  border-radius:22px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255,255,255,0.06), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  border:1px solid rgba(132,255,219,0.12);
  box-shadow:0 16px 34px rgba(3,17,16,0.18);
}

.online-kpi-primary{
  grid-column:span 2;
  min-height:176px;
}

.online-kpi-warning{
  border-color:rgba(95,188,255,0.14);
}

.online-kpi-label{
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(200,249,235,0.68);
}

.online-kpi-card strong{
  color:#f4fffc;
  font-size:32px;
  line-height:1;
}

.online-kpi-card small{
  color:rgba(219,247,240,0.78);
  line-height:1.45;
}

.online-kpi-bars{
  display:flex;
  align-items:flex-end;
  gap:10px;
  min-height:54px;
  margin-top:auto;
}

.online-kpi-bars i{
  display:block;
  width:18px;
  border-radius:999px 999px 8px 8px;
  box-shadow:0 10px 20px rgba(0,0,0,0.18);
}

.online-kpi-bars i:nth-child(1){ height:44px; background:linear-gradient(180deg, rgba(132,255,226,0.96), rgba(39,144,126,0.42)); }
.online-kpi-bars i:nth-child(2){ height:32px; background:linear-gradient(180deg, rgba(110,214,255,0.96), rgba(53,117,174,0.42)); }
.online-kpi-bars i:nth-child(3){ height:22px; background:linear-gradient(180deg, rgba(127,231,223,0.94), rgba(31,140,141,0.40)); }

.online-insight-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:20px;
  margin-bottom:20px;
}

.online-insight-grid-single{
  grid-template-columns:1fr;
}

.online-insight-panel,
.online-orders-panel,
.online-channel-panel{
  border-radius:26px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,0.05), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border:1px solid rgba(132,255,219,0.12);
  box-shadow:0 18px 38px rgba(3,17,16,0.18);
}

.online-insight-panel h3,
.online-orders-panel h3,
.online-channel-panel h3{
  margin:10px 0 14px;
  color:#f4fffc;
}

.online-signal-list .simple-list-row,
.online-insight-panel .simple-list-row{
  border-radius:16px;
  padding:12px 14px;
  background:linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border:1px solid rgba(132,255,219,0.10);
}

.online-signal-list .simple-list-row strong,
.online-insight-panel .simple-list-row strong{
  color:#f4fffc;
}

.online-signal-list .simple-list-row span,
.online-insight-panel .simple-list-row span{
  color:#89e7d7;
}

.online-orders-panel .panel-headline p{
  color:rgba(219,247,240,0.74);
}

@media (max-width: 1180px){
  .online-commerce-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .online-kpi-primary{
    grid-column:span 2;
  }
}

@media (max-width: 980px){
  .online-commerce-hero{
    grid-template-columns:1fr;
  }

  .online-commerce-hero-copy h3{
    font-size:30px;
  }

  .online-insight-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 720px){
  .online-commerce-grid{
    grid-template-columns:1fr;
  }

  .online-kpi-primary{
    grid-column:auto;
  }

  .online-commerce-visual{
    min-height:220px;
  }

  .online-commerce-ring.ring-a{ width:220px; height:220px; }
  .online-commerce-ring.ring-b{ width:168px; height:168px; }
  .online-commerce-ring.ring-c{ width:116px; height:116px; }

  .online-commerce-core{
    width:164px;
    height:164px;
  }

  .online-commerce-core strong{
    font-size:28px;
  }
}

/* v88 stronger visible THIC blue across primary dark surfaces */
body:not(.thic-light-mode) .smart-global-header{
  background:
    radial-gradient(circle at 78% 24%, rgba(112, 184, 255, 0.16), transparent 30%),
    radial-gradient(circle at 96% 50%, rgba(126, 196, 234, 0.12), transparent 22%),
    radial-gradient(circle at 16% 18%, rgba(90, 238, 201, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(7, 28, 25, 0.98) 0%, rgba(11, 58, 58, 0.95) 34%, rgba(17, 77, 92, 0.93) 68%, rgba(102, 166, 201, 0.84) 100%) !important;
  border:1px solid rgba(156, 219, 255, 0.18) !important;
  box-shadow:
    0 26px 60px rgba(2, 12, 11, 0.34),
    0 1px 0 rgba(255,255,255,0.10) inset !important;
}

body:not(.thic-light-mode) .smart-header-clock-card,
body:not(.thic-light-mode) .smart-header-message-btn,
body:not(.thic-light-mode) .smart-header-logout-btn{
  background:
    radial-gradient(circle at 86% 18%, rgba(112, 184, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(27, 66, 88, 0.58), rgba(15, 34, 43, 0.34)) !important;
  border:1px solid rgba(189, 232, 255, 0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 14px 28px rgba(4, 20, 25, 0.18) !important;
}

body:not(.thic-light-mode) .smart-header-message-icon{
  background:rgba(255,255,255,0.10) !important;
  border-color:rgba(197, 236, 255, 0.18) !important;
}

body:not(.thic-light-mode) .radar-home-hero{
  background:
    radial-gradient(circle at 84% 20%, rgba(106, 180, 255, 0.16), transparent 24%),
    radial-gradient(circle at 18% 78%, rgba(90, 238, 201, 0.12), transparent 24%),
    linear-gradient(145deg, rgba(4, 11, 11, 0.98), rgba(9, 30, 38, 0.96)) !important;
  border-color:rgba(126, 205, 255, 0.14) !important;
}

body:not(.thic-light-mode) .founder-signals-panel{
  background:
    radial-gradient(circle at 88% 18%, rgba(112, 184, 255, 0.16), transparent 24%),
    radial-gradient(circle at 18% 14%, rgba(90, 238, 201, 0.10), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05)) !important;
}

body:not(.thic-light-mode) .founder-signal-card,
body:not(.thic-light-mode) .module-control-panel,
body:not(.thic-light-mode) .flow-panel,
body:not(.thic-light-mode) .panel,
body:not(.thic-light-mode) .contacts-toolbar,
body:not(.thic-light-mode) .contacts-toolbar-advanced,
body:not(.thic-light-mode) .table-wrap{
  background:
    radial-gradient(circle at 84% 18%, rgba(106, 180, 255, 0.14), transparent 22%),
    radial-gradient(circle at 16% 82%, rgba(90, 238, 201, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(7, 28, 26, 0.97), rgba(8, 20, 24, 0.95)) !important;
}

.review-mode-launcher{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:90;
  appearance:none;
  border:1px solid rgba(154, 221, 255, 0.18);
  border-radius:999px;
  padding:14px 18px;
  background:
    radial-gradient(circle at 84% 18%, rgba(106, 180, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(11, 56, 65, 0.96), rgba(10, 28, 34, 0.94));
  box-shadow:0 20px 36px rgba(4, 18, 22, 0.24);
  color:#f4fffc;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
}
.review-mode-launcher span{
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(206,244,255,0.78);
}
.review-mode-launcher strong{
  font-size:15px;
}
.review-mode-backdrop{
  position:fixed;
  inset:0;
  z-index:88;
  background:rgba(2, 10, 12, 0.42);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
}
.review-mode-backdrop.open{
  opacity:1;
  pointer-events:auto;
}
.review-mode-drawer{
  position:fixed;
  top:24px;
  right:24px;
  bottom:24px;
  width:min(440px, calc(100vw - 32px));
  z-index:89;
  transform:translateX(calc(100% + 28px));
  transition:transform .22s ease;
  pointer-events:none;
}
.review-mode-drawer.open{
  transform:translateX(0);
  pointer-events:auto;
}
.review-mode-panel{
  height:100%;
  overflow:auto;
  margin:0;
  border-radius:28px;
  border:1px solid rgba(154, 221, 255, 0.16);
  background:
    radial-gradient(circle at 84% 18%, rgba(106, 180, 255, 0.18), transparent 22%),
    radial-gradient(circle at 16% 82%, rgba(90, 238, 201, 0.10), transparent 20%),
    linear-gradient(180deg, rgba(9, 33, 32, 0.98), rgba(8, 21, 25, 0.96)) !important;
  box-shadow:0 22px 40px rgba(4, 18, 22, 0.28);
}
.review-mode-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.review-mode-head h3{
  margin:6px 0 8px;
  color:#f4fffc;
}
.review-mode-head p{
  margin:0;
  color:rgba(219,247,240,0.82);
}
.review-mode-meta{
  min-width:220px;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(154, 221, 255, 0.12);
  display:flex;
  flex-direction:column;
  gap:8px;
}
.review-mode-meta span{
  color:rgba(206,244,255,0.72);
  font-size:13px;
  line-height:1.5;
}
.review-mode-meta strong{
  color:#f4fffc;
  font-size:15px;
}
.review-mode-compose{
  display:grid;
  gap:12px;
  margin-bottom:16px;
}
.review-mode-compose textarea{
  width:100%;
  min-height:96px;
  border-radius:18px;
  border:1px solid rgba(154, 221, 255, 0.14);
  background:rgba(255,255,255,0.05);
  color:#f4fffc;
  padding:14px 16px;
  font:inherit;
  resize:vertical;
}
.review-mode-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.review-mode-history,
.reviewer-feedback-list{
  display:grid;
  gap:12px;
}
.review-mode-entry,
.reviewer-feedback-item{
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(154, 221, 255, 0.10);
}
.review-mode-entry-top,
.reviewer-feedback-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.review-mode-entry strong,
.reviewer-feedback-item strong{
  color:#f4fffc;
}
.review-mode-entry p,
.reviewer-feedback-item p{
  margin:0 0 8px;
  color:rgba(223,245,238,0.82);
  line-height:1.55;
}
.review-mode-entry small,
.reviewer-feedback-item small,
.review-mode-empty{
  color:rgba(202,251,237,0.68);
}
.review-mode-badge,
.reviewer-feedback-top span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  background:rgba(255,255,255,0.08);
  color:#effff9;
}
.tone-approve .review-mode-badge,
.tone-approve .reviewer-feedback-top span{
  background:rgba(72, 214, 164, 0.18);
  color:#8ff8ce;
}
.tone-question .review-mode-badge,
.tone-question .reviewer-feedback-top span{
  background:rgba(102, 186, 255, 0.18);
  color:#9cd9ff;
}
.tone-changes .review-mode-badge,
.tone-changes .reviewer-feedback-top span{
  background:rgba(255, 173, 134, 0.16);
  color:#ffc29c;
}
.reviewer-feedback-panel{
  margin-top:18px;
}
.review-mode-close-row{
  margin-top:16px;
  display:flex;
  justify-content:flex-end;
}
.reviewer-manager-list{
  margin-top:18px;
  display:grid;
  gap:12px;
}
.admin-reviewer-list{
  margin-top:14px;
}
.reviewer-manager-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(154, 221, 255, 0.10);
}
.reviewer-manager-item.active{
  border-color:rgba(122,255,214,0.28);
  box-shadow:0 14px 34px rgba(4, 26, 24, 0.24);
}
.reviewer-manager-main{
  display:block;
  flex:1 1 auto;
  min-width:0;
  padding:0;
  border:0;
  background:none;
  text-align:left;
  cursor:pointer;
}
.reviewer-manager-item strong{
  display:block;
  color:#f4fffc;
  margin-bottom:4px;
}
.reviewer-manager-item span{
  color:rgba(223,245,238,0.76);
  font-size:13px;
}
.reviewer-manager-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
@media (max-width: 980px){
  .review-mode-head{
    flex-direction:column;
  }
  .review-mode-meta{
    min-width:0;
    width:100%;
  }
  .review-mode-drawer{
    top:auto;
    left:12px;
    right:12px;
    bottom:12px;
    width:auto;
  }
  .review-mode-launcher{
    right:16px;
    bottom:16px;
  }
  .reviewer-manager-item{
    flex-direction:column;
    align-items:flex-start;
  }
  .reviewer-manager-main{
    width:100%;
  }
  .reviewer-manager-actions{
    width:100%;
    justify-content:flex-start;
  }
}
