:root {
  --navy: #0b1b35;
  --navy2: #142d50;
  --ink: #12233f;
  --muted: #6f7d91;
  --line: #e2e7ee;
  --canvas: #f4f6f9;
  --red: #ee334e;
  --red2: #ca2039;
  --green: #0da678;
  --amber: #f5a623;
  --blue: #377cf6;
  --white: #fff;
  --page-gutter: clamp(20px, 2.2vw, 36px);
  --page-gap: 19px;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--canvas);
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button-link {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  text-decoration: none;
}
.eyebrow {
  color: #8a96a8;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 800;
  font-size: 9px;
  margin: 0;
}
.primary,
.secondary,
.light-button,
.text-button,
.button-link {
  border: 0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 760;
  padding: 11px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 16px rgba(238, 51, 78, 0.18);
}
.primary:hover {
  background: var(--red2);
}
.secondary,
.button-link {
  border: 1px solid var(--line);
  background: #fff;
  color: #34445d;
}
.secondary:hover,
.button-link:hover {
  background: #f8fafc;
  border-color: #c8d0dc;
}
.full {
  width: 100%;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--navy);
  color: #fff;
  padding: 28px 18px 22px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 9px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.brand-mark,
.auth-brand > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--red);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font-size: 17px;
}
.brand small {
  margin-top: 2px;
  color: #91a1b9;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.sidebar nav {
  display: grid;
  gap: 7px;
  margin-top: 28px;
}
.nav-button {
  border: 0;
  background: transparent;
  color: #9eacc0;
  border-radius: 10px;
  padding: 12px 13px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  text-align: left;
  font-size: 13px;
  font-weight: 680;
}
.nav-button > span {
  font-size: 17px;
  color: #8496af;
}
.nav-button em {
  font-style: normal;
}
.nav-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.nav-button.active {
  background: rgba(238, 51, 78, 0.14);
  color: #fff;
  box-shadow: inset 3px 0 var(--red);
}
.nav-button.active > span {
  color: var(--red);
}
.nav-button b {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 10px 0;
  font-size: 11px;
  color: #bac5d4;
}
.sidebar-foot i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #22ca91;
  border-radius: 50%;
  margin-right: 7px;
  box-shadow: 0 0 0 4px rgba(34, 202, 145, 0.12);
}
.sidebar-foot small {
  display: block;
  color: #72829a;
  margin-top: 5px;
  margin-left: 15px;
}
.workspace {
  min-width: 0;
}
.topbar {
  min-height: 93px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 21px var(--page-gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 15;
}
.topbar h1 {
  font-size: 25px;
  line-height: 1.15;
  margin: 3px 0 0;
  letter-spacing: -0.035em;
}
.top-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.user-chip {
  font-size: 10px;
  color: #6c788b;
  background: #f3f5f8;
  padding: 8px 11px;
  border-radius: 20px;
}
.icon-link {
  color: #7e8a9c;
  font-size: 20px;
  padding: 4px;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.dashboard-grid {
  width: 100%;
  padding: 27px var(--page-gutter) 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.75fr);
  gap: var(--page-gap);
  max-width: none;
  margin: 0;
}
.hero-panel {
  grid-column: 1/-1;
  min-height: 230px;
  padding: 38px 42px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(
      circle at 75% 20%,
      rgba(238, 51, 78, 0.24),
      transparent 26%
    ),
    linear-gradient(112deg, #0a1930 0%, #142d50 70%, #102440 100%);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  position: relative;
}
.hero-panel:after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  right: -80px;
  top: -150px;
  box-shadow:
    0 0 0 55px rgba(255, 255, 255, 0.025),
    0 0 0 110px rgba(255, 255, 255, 0.02);
}
.hero-panel > * {
  position: relative;
  z-index: 1;
}
.live-label {
  font-size: 9px;
  color: #d2dbe7;
  letter-spacing: 0.14em;
  font-weight: 800;
}
.live-label i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 8px;
  box-shadow: 0 0 0 5px rgba(238, 51, 78, 0.14);
}
.hero-panel h2 {
  font-size: clamp(28px, 3.1vw, 44px);
  max-width: 780px;
  line-height: 1.06;
  letter-spacing: -0.045em;
  margin: 18px 0 13px;
}
.hero-panel > div > p:not(.hero-count) {
  color: #aebbd0;
  max-width: 700px;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.hero-panel > div:last-child {
  text-align: right;
  min-width: 190px;
}
.light-button {
  background: #fff;
  color: var(--navy);
  white-space: nowrap;
}
.hero-count {
  color: #aebbd0;
  font-size: 10px;
  margin: 13px 0 0;
}
.hero-count strong {
  color: #fff;
}
.metrics {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  padding: 19px;
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  box-shadow: 0 8px 30px rgba(17, 35, 63, 0.035);
}
.metric-icon {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}
.metric-icon.red {
  color: var(--red);
  background: #fff0f3;
}
.metric-icon.amber {
  color: #d17d00;
  background: #fff7e7;
}
.metric-icon.blue {
  color: var(--blue);
  background: #eef4ff;
}
.metric-icon.green {
  color: var(--green);
  background: #eafaf5;
}
.metric small,
.metric strong,
.metric em {
  display: block;
}
.metric small {
  color: #7f8b9e;
  font-size: 10px;
}
.metric strong {
  font-size: 24px;
  letter-spacing: -0.04em;
  margin-top: 2px;
  line-height: 1;
}
.metric em {
  font-size: 9px;
  color: #98a3b2;
  font-style: normal;
  margin-top: 5px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(17, 35, 63, 0.035);
}
.priority-panel,
.funnel-panel {
  min-height: 350px;
}
.section-head {
  padding: 20px 22px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #eef1f5;
}
.section-head h3 {
  margin: 4px 0 0;
  font-size: 17px;
  letter-spacing: -0.025em;
}
.text-button {
  background: transparent;
  color: var(--red);
  font-size: 10px;
  padding: 8px;
}
.lead-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  background: #fff;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 48px minmax(190px, 1fr) minmax(130px, 0.55fr) auto 20px;
  gap: 11px;
  align-items: center;
  text-align: left;
  color: var(--ink);
}
.lead-row:hover,
.lead-row.selected {
  background: #f8fafc;
}
.lead-row.selected {
  box-shadow: inset 3px 0 var(--red);
}
.lead-row:last-child {
  border-bottom: 0;
}
.company-cell {
  min-width: 0;
}
.company-cell strong,
.company-cell small,
.contact-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.company-cell strong {
  font-size: 12px;
}
.company-cell small,
.contact-cell small {
  margin-top: 4px;
  color: #8d98a8;
  font-size: 9px;
  font-weight: 500;
}
.contact-cell {
  font-size: 10px;
  color: #48576c;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.score {
  width: 38px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 850;
}
.score.hot,
.big-score.hot {
  background: #fff0f2;
  color: var(--red);
}
.score.warm,
.big-score.warm {
  background: #fff7e6;
  color: #c97a00;
}
.score.cold,
.big-score.cold {
  background: #f0f3f7;
  color: #758296;
}
.status-pill {
  color: #55647a;
  background: #f2f5f8;
  border-radius: 12px;
  padding: 5px 8px;
  font-size: 8px;
  font-weight: 750;
  white-space: nowrap;
}
.row-arrow {
  color: #a9b2bf;
  font-size: 20px;
}
.empty-state {
  min-height: 285px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 35px;
}
.empty-state h4 {
  margin: 0 0 7px;
  font-size: 16px;
}
.empty-state p {
  max-width: 390px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 0 auto 18px;
}
.funnel-stats {
  display: grid;
  gap: 21px;
  padding: 25px 24px 18px;
}
.funnel-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}
.funnel-line span {
  font-size: 10px;
  color: #6f7d91;
}
.funnel-line strong {
  font-size: 13px;
}
.funnel-line i {
  grid-column: 1/-1;
  display: block;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red), #ff778b);
}
.truth-note {
  margin: 12px 22px 22px;
  background: #f7f9fb;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.truth-note > b {
  flex: 0 0 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
}
.truth-note p {
  color: #657287;
  font-size: 9px;
  line-height: 1.55;
  margin: 0;
}
.truth-note p strong {
  color: var(--ink);
}
.operator-layout {
  width: 100%;
  height: calc(100vh - 93px);
  padding: 22px var(--page-gutter);
  display: grid;
  grid-template-columns: minmax(540px, 1fr) minmax(320px, 400px);
  gap: var(--page-gap);
  max-width: none;
  margin: 0;
}
.employer-list-panel {
  min-width: 0;
  overflow: hidden;
}
.toolbar {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
}
.search-box {
  min-width: 180px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 11px;
  background: #fafbfd;
}
.search-box span {
  color: #8a96a7;
  font-size: 18px;
}
.search-box input {
  min-width: 0;
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 11px;
  padding: 9px 0;
}
.toolbar select,
.detail-block select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  color: #4c5a6e;
  font-size: 10px;
  padding: 0 10px;
}
.table-summary {
  color: #8792a2;
  font-size: 9px;
  padding: 9px 17px;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
}
.table-summary strong {
  color: var(--ink);
}
.lead-list {
  max-height: calc(100vh - 180px);
  overflow: auto;
}
.detail-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
  box-shadow: 0 10px 32px rgba(17, 35, 63, 0.035);
}
.mobile-close {
  display: none;
}
.empty-detail {
  height: 100%;
  min-height: 450px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 30px;
}
.empty-detail > span {
  font-size: 35px;
  color: #c3cad4;
}
.empty-detail h3 {
  margin: 15px 0 6px;
}
.empty-detail p {
  color: #8a95a5;
  font-size: 11px;
}
.detail-head {
  padding: 23px 21px 18px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.detail-head small {
  color: #9aa5b4;
  font-size: 8px;
  letter-spacing: 0.08em;
}
.detail-head h2 {
  font-size: 21px;
  margin: 5px 0;
  letter-spacing: -0.035em;
}
.detail-head p {
  margin: 0;
  color: #748196;
  font-size: 9px;
}
.big-score {
  flex: 0 0 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-content: center;
  text-align: center;
}
.big-score strong {
  font-size: 18px;
}
.big-score small {
  font-size: 7px;
  margin-top: 3px;
  text-transform: uppercase;
}
.evidence-card {
  margin: 17px 18px 8px;
  border: 1px solid #e3e8ee;
  border-left: 3px solid var(--red);
  border-radius: 9px;
  padding: 14px;
}
.evidence-title {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #8793a3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.evidence-title em {
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}
.evidence-card > strong {
  display: block;
  font-size: 12px;
  margin-top: 11px;
}
.evidence-card p {
  color: #7d899b;
  font-size: 9px;
  line-height: 1.55;
}
.evidence-card a {
  color: var(--red);
  font-size: 9px;
  font-weight: 750;
}
.detail-block {
  padding: 14px 19px;
  border-bottom: 1px solid #eef1f5;
}
.block-label {
  display: block;
  color: #8e99a9;
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
}
.contact-card {
  display: flex;
  gap: 10px;
  align-items: center;
}
.contact-card > span {
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 850;
}
.contact-card strong,
.contact-card small {
  display: block;
}
.contact-card strong {
  font-size: 11px;
}
.contact-card small {
  font-size: 8px;
  color: #8a96a7;
  margin-top: 3px;
}
.contact-line {
  display: flex;
  justify-content: space-between;
  color: #8692a2;
  font-size: 9px;
  margin: 11px 0 0;
}
.contact-line strong {
  color: #45546a;
  font-weight: 650;
}
.detail-block select {
  height: 36px;
  width: 100%;
}
.meta-line {
  color: #98a3b2;
  font-size: 8px;
  margin: 8px 0 0;
}
.message-preview {
  margin: 16px 18px 5px;
  background: #eef9f5;
  border-radius: 10px;
  padding: 13px;
}
.message-preview p {
  color: #365849;
  font-size: 10px;
  line-height: 1.6;
  margin: 0;
}
.detail-actions {
  padding: 16px 18px 22px;
  display: grid;
  gap: 8px;
}
.whatsapp-button,
.referral-button,
.danger-button,
.edit-button {
  border: 0;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 760;
  padding: 11px 15px;
}
.whatsapp-button {
  background: #18ad75;
  color: #fff;
}
.referral-button {
  background: var(--red);
  color: #fff;
}
.edit-button {
  background: #eef2f7;
  color: #43536a;
}
.danger-button {
  background: transparent;
  color: #a06770;
}
.reports-layout {
  width: 100%;
  padding: 28px var(--page-gutter) 45px;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--page-gap);
}
.report-hero {
  grid-column: 1/-1;
  background: var(--navy);
  color: #fff;
  border-radius: 17px;
  padding: 38px;
  background-image: radial-gradient(
    circle at 85% 5%,
    rgba(238, 51, 78, 0.25),
    transparent 23%
  );
}
.report-hero h2 {
  font-size: clamp(27px, 3vw, 40px);
  max-width: 680px;
  letter-spacing: -0.04em;
  margin: 13px 0 10px;
}
.report-hero > p:not(.eyebrow) {
  color: #acb9ca;
  max-width: 700px;
  font-size: 12px;
  line-height: 1.65;
}
.report-config {
  padding-bottom: 25px;
}
.report-config > label {
  display: grid;
  gap: 7px;
  color: #6f7c90;
  font-size: 10px;
  font-weight: 650;
  padding: 22px 22px 8px;
}
.report-config input {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  color: var(--ink);
  outline: 0;
}
.report-config > button {
  margin: 5px 22px;
}
.report-config > small {
  display: block;
  padding: 8px 22px 0;
  color: #929cab;
  font-size: 9px;
  line-height: 1.5;
}
.recon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px;
  gap: 9px;
}
.recon-grid div {
  background: #f7f9fb;
  border-radius: 9px;
  padding: 14px;
}
.recon-grid span,
.recon-grid strong {
  display: block;
}
.recon-grid span {
  color: #7f8b9c;
  font-size: 8px;
}
.recon-grid strong {
  font-size: 22px;
  margin-top: 5px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 13, 28, 0.62);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop[hidden] {
  display: none;
}
.modal {
  width: min(680px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  padding: 23px 25px 17px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 4px 0 0;
  font-size: 21px;
}
.modal-head > button {
  border: 0;
  background: #f1f3f6;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: #68758a;
  font-size: 20px;
}
.form-grid {
  padding: 21px 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid label,
.setup-form label,
.login-form label {
  color: #69768a;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  gap: 6px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-grid input,
.form-grid select,
.form-grid textarea,
.setup-form input,
.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 10px;
  outline: 0;
}
.form-grid textarea {
  min-height: 65px;
  resize: vertical;
}
.modal-actions {
  padding: 16px 25px 23px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 13px 17px;
  font-size: 11px;
  box-shadow: 0 15px 45px rgba(5, 15, 32, 0.3);
}
.toast.good {
  border-left: 4px solid #20c58c;
}
.toast.warn {
  border-left: 4px solid var(--amber);
}
.toast[hidden] {
  display: none;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(238, 51, 78, 0.18),
      transparent 25%
    ),
    var(--navy);
}
.auth-card {
  width: min(430px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
}
.setup-card {
  width: min(760px, 100%);
}
.auth-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 30px;
}
.auth-brand strong,
.auth-brand small {
  display: block;
}
.auth-brand strong {
  font-size: 19px;
}
.auth-brand small {
  font-size: 9px;
  color: #8b96a6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.auth-card h1 {
  font-size: 30px;
  letter-spacing: -0.04em;
  margin: 7px 0 8px;
}
.auth-copy {
  color: #718096;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 23px;
}
.login-form {
  display: grid;
  gap: 15px;
}
.alert {
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 11px;
  margin: 0 0 17px;
}
.alert.error {
  background: #fff0f2;
  color: #a91f36;
  border: 1px solid #ffd2da;
}
.setup-form {
  display: grid;
  gap: 18px;
}
.form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  padding: 17px;
  background: #f7f9fb;
  border-radius: 12px;
}
.form-section h2 {
  grid-column: 1/-1;
  font-size: 14px;
  margin: 0 0 3px;
}
.form-section .wide {
  grid-column: 1/-1;
}
@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 11px;
  }
  .brand {
    padding-inline: 7px;
  }
  .brand > div:last-child,
  .nav-button em,
  .sidebar-foot span,
  .sidebar-foot small {
    display: none;
  }
  .nav-button {
    grid-template-columns: 1fr;
    place-items: center;
    padding: 12px 7px;
  }
  .nav-button b {
    position: absolute;
    margin: -27px 0 0 24px;
  }
  .sidebar-foot {
    text-align: center;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .operator-layout {
    grid-template-columns: minmax(460px, 1fr) 330px;
  }
  .lead-row {
    grid-template-columns: 44px minmax(150px, 1fr) auto 18px;
  }
  .contact-cell {
    display: none;
  }
}
@media (max-width: 960px) {
  :root {
    --page-gutter: 16px;
    --page-gap: 13px;
  }
  .app-shell {
    display: block;
    padding-bottom: 70px;
  }
  .sidebar {
    position: fixed;
    height: 66px;
    width: 100%;
    inset: auto 0 0;
    padding: 8px 10px;
    display: block;
    z-index: 40;
  }
  .brand,
  .sidebar-foot {
    display: none;
  }
  .sidebar nav {
    margin: 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
  .nav-button,
  .nav-button.active {
    min-width: 0;
    height: 50px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
    padding: 4px;
    font-size: 8px;
    box-shadow: none;
  }
  .nav-button em {
    display: block;
  }
  .nav-button > span {
    font-size: 15px;
  }
  .nav-button b {
    margin: -24px 0 0 18px;
  }
  .topbar {
    min-height: 76px;
    padding: 15px var(--page-gutter);
    position: static;
  }
  .topbar h1 {
    font-size: 20px;
  }
  .user-chip,
  .top-actions .secondary {
    display: none;
  }
  .top-actions .primary {
    padding: 10px 12px;
    font-size: 10px;
  }
  .dashboard-grid,
  .reports-layout {
    padding: 15px var(--page-gutter);
    display: block;
  }
  .dashboard-grid > *,
  .reports-layout > * {
    margin-bottom: 13px;
  }
  .hero-panel {
    min-height: 280px;
    padding: 25px;
    display: block;
  }
  .hero-panel > div:last-child {
    text-align: left;
    margin-top: 22px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .metric {
    padding: 13px;
  }
  .metric-icon {
    display: none;
  }
  .metric strong {
    font-size: 21px;
  }
  .priority-panel,
  .funnel-panel {
    min-height: auto;
  }
  .operator-layout {
    height: auto;
    padding: 12px var(--page-gutter);
    display: block;
  }
  .employer-list-panel {
    min-height: 500px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search-box {
    flex-basis: 100%;
  }
  .toolbar select {
    min-height: 37px;
    flex: 1;
  }
  .lead-list {
    max-height: none;
  }
  .lead-row {
    grid-template-columns: 41px minmax(0, 1fr) auto 15px;
    padding: 13px 11px;
  }
  .status-pill {
    max-width: 85px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .detail-panel {
    display: none;
    position: fixed;
    inset: 0 0 66px;
    z-index: 45;
    border-radius: 0;
  }
  .detail-panel.open {
    display: block;
  }
  .mobile-close {
    display: inline-flex;
    margin: 10px 10px 0;
  }
  .reports-layout {
    display: block;
  }
  .report-hero {
    padding: 27px 22px;
  }
  .recon-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid,
  .form-section {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .form-grid .wide,
  .form-section h2,
  .form-section .wide {
    grid-column: auto;
  }
  .modal {
    max-height: 96vh;
  }
  .modal-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
  }
  .auth-card {
    padding: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
