:root {
  --navy: #10233f;
  --navy-2: #17365f;
  --teal: #0f9f9a;
  --teal-2: #dff8f5;
  --ink: #172033;
  --muted: #667085;
  --line: #e6e9ef;
  --page: #f7f9fc;
  --white: #ffffff;
  --soft-shadow: 0 10px 26px rgba(16, 35, 63, 0.07);
  --red: #c24135;
  --amber: #b7791f;
  --green: #16794c;
  --blue: #2463b7;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fbfcff 0%, var(--page) 280px);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(16, 35, 63, 0.92), rgba(16, 35, 63, 0.84)),
    url("data:image/svg+xml,%3Csvg width='1200' height='800' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1200' height='800' fill='%23f7f9fc'/%3E%3Cg fill='none' stroke='%230f9f9a' stroke-width='4' opacity='.35'%3E%3Cpath d='M120 520h260v70H120zM450 420h280v170H450zM800 500h240v90H800zM160 300h180v120H160zM860 260h120v180H860z'/%3E%3Cpath d='M480 390h220l35 30H445zM150 500l25-65h150l25 65'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

.login-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(56, 201, 191, 0.2), transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(36, 99, 183, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 44%);
}

.login-card {
  position: relative;
  width: min(460px, 100%);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(6, 24, 44, 0.28);
}

.login-card.signup-card {
  width: min(820px, 100%);
  overflow: hidden;
  border: 1px solid rgba(199, 232, 239, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), #ffffff 190px),
    linear-gradient(135deg, rgba(15, 159, 154, 0.12), rgba(36, 99, 183, 0.09));
}

.login-card.signup-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #0f9f9a, #2463b7, #ef9f35);
}

.login-card h1,
.login-card p {
  margin: 0;
}

.login-card h1 {
  color: var(--navy);
  font-size: 30px;
  line-height: 1.1;
}

.login-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-trial-box {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fbfd;
}

.auth-trial-box strong {
  color: var(--navy);
  font-size: 14px;
}

.auth-trial-box span,
.auth-footnote {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-links a,
.auth-footnote a {
  color: var(--blue);
  text-decoration: none;
}

.full-width {
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-subtitle {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8fbf8;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signup-progress-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.signup-progress-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  color: #0b3d5c;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #e8fbf8, #eef6ff);
  border: 1px solid #d4eef4;
}

.signup-form {
  padding: 18px;
  border: 1px solid #ddebf2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(16, 35, 63, 0.08);
}

.signup-form label {
  color: #28445f;
  font-size: 12.5px;
  font-weight: 850;
}

.signup-form input,
.signup-form select {
  min-height: 44px;
  border-color: #d5e4ef;
  background: #ffffff;
}

.signup-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #31506d 50%),
    linear-gradient(135deg, #31506d 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 13px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: var(--navy);
  font-weight: 750;
}

.field-help {
  color: #667085;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.4;
}

.signup-verify-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #dbe7f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(16, 35, 63, 0.05);
}

.signup-verify-card.sent {
  border-color: #b9e7e3;
  background: linear-gradient(180deg, #ffffff 0%, #f3fffd 100%);
}

.signup-verify-card.verified {
  border-color: #a7dfc4;
  background: linear-gradient(180deg, #ffffff 0%, #f1fff7 100%);
}

.signup-verify-actions {
  display: grid;
  grid-template-columns: auto minmax(110px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.signup-verify-actions .btn {
  min-height: 38px;
  white-space: nowrap;
  font-size: 12px;
}

.signup-verify-actions input {
  min-height: 38px;
  text-align: center;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.signup-verify-status {
  display: flex;
  align-items: center;
  min-height: 22px;
  color: #667085;
  font-size: 11.5px;
  font-weight: 750;
}

.signup-verify-status span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef3f8;
}

.signup-verify-status .status-ok {
  color: #146c43;
  background: #dcf7e8;
}

.password-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.password-checklist span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #667085;
  background: #f0f3f7;
  font-size: 11px;
  font-weight: 800;
}

.password-checklist span.ok {
  color: #146c43;
  background: #dcf7e8;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 212px 1fr;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(20, 52, 91, 0.92), rgba(10, 27, 50, 0.98)),
    var(--navy);
  color: var(--white);
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 0 6px 20px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #38c9bf, #2588d8);
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 34px;
  box-shadow: 0 10px 22px rgba(15, 159, 154, 0.22);
}

.brand h1 {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.25;
  white-space: nowrap;
}

.brand span {
  display: block;
  color: #a8c4df;
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  margin-top: 2px;
}

.nav {
  display: grid;
  gap: 7px;
}

.nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: #dce8f5;
  background: transparent;
  border-radius: 8px;
  padding: 9px 11px;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
  border: 1px solid transparent;
}

.nav button:hover,
.nav button.active {
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.06);
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: #8fe2dd;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main {
  min-width: 0;
}

.topbar {
  height: 68px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 1px 0 rgba(16, 35, 63, 0.03);
}

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

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.content {
  padding: 20px 20px 42px;
}

.grid {
  display: grid;
  gap: 16px;
}

.kpi-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-insights-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(340px, 1.12fr) minmax(330px, 1fr);
  gap: 16px;
}

.dashboard-ops-grid {
  display: grid;
  grid-template-columns: minmax(286px, 0.92fr) minmax(300px, 1fr) minmax(390px, 1.28fr);
  gap: 16px;
  align-items: stretch;
}

.dashboard-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.director-snapshot {
  display: grid;
  grid-template-columns: minmax(190px, 0.78fr) minmax(0, 2.25fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #dce7f2;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(16, 35, 63, 0.98), rgba(18, 66, 98, 0.94)),
    var(--navy);
  box-shadow: 0 14px 34px rgba(16, 35, 63, 0.12);
}

.director-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding-left: 4px;
}

.director-copy span {
  color: #95e8df;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.director-copy strong {
  color: var(--white);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
}

.director-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.director-metric {
  min-width: 0;
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.director-metric span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10.5px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.director-metric strong {
  color: var(--white);
  font-size: 23px;
  line-height: 1;
  font-weight: 950;
}

.director-metric.teal strong {
  color: #82f4e7;
}

.director-metric.blue strong {
  color: #9dc7ff;
}

.director-metric.amber strong {
  color: #ffd37a;
}

.director-metric.red strong {
  color: #ffb4a8;
}

.metric-card {
  height: 94px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 11px 8px;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.metric-icon {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--teal);
  background: var(--teal-2);
}

.metric-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-icon.mint {
  color: #139d63;
  background: #def7e8;
}

.metric-icon.blue {
  color: #1466d8;
  background: #e6f0ff;
}

.metric-icon.orange {
  color: #df7a13;
  background: #fff0d8;
}

.metric-icon.violet {
  color: #7257d7;
  background: #eee9ff;
}

.metric-icon.cyan {
  color: #0a929d;
  background: #def8fb;
}

.metric-icon.green {
  color: #19a05d;
  background: #e0f8e8;
}

.metric-body {
  min-width: 0;
  flex: 1;
}

.metric-label {
  color: var(--navy);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.6px;
  font-weight: 800;
  line-height: 1.1;
}

.metric-value {
  margin-top: 7px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  font-weight: 850;
}

.metric-trend {
  margin-top: 6px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.metric-trend span {
  color: #159447;
  font-weight: 800;
}

.metric-trend.down span,
.metric-trend.down {
  color: var(--red);
}

.metric-trend.flat span,
.metric-trend.flat {
  color: #667085;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(16, 35, 63, 0.045);
}

.card.compact {
  padding: 14px;
}

.kpi {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi .label {
  color: var(--muted);
  font-size: 13px;
}

.kpi .value {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title h3 {
  margin: 0;
  font-size: 16px;
}

.admin-page {
  display: grid;
  gap: 16px;
}

.admin-overview {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.6fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid #dce7f2;
  border-radius: 8px;
  background: linear-gradient(90deg, #10233f 0%, #17365f 100%);
  box-shadow: 0 14px 34px rgba(16, 35, 63, 0.12);
}

.admin-overview-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
}

.admin-overview-copy .form-subtitle {
  color: #8fe8df;
}

.admin-overview-copy h3,
.admin-overview-copy p {
  margin: 0;
}

.admin-overview-copy h3 {
  color: var(--white);
  font-size: 22px;
  line-height: 1.1;
}

.admin-overview-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-stat {
  min-width: 0;
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.admin-stat span,
.admin-stat em {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-stat strong {
  color: var(--white);
  font-size: 27px;
  line-height: 1;
  font-weight: 950;
}

.admin-stat.teal strong {
  color: #7df0e5;
}

.admin-stat.blue strong {
  color: #9dc7ff;
}

.admin-stat.green strong {
  color: #8be6b2;
}

.admin-stat.amber strong {
  color: #ffd37a;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(520px, 1.25fr);
  gap: 16px;
  align-items: start;
}

.admin-onboarding-card {
  padding: 0;
  overflow: hidden;
}

.admin-form-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.admin-form-header h3 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 18px;
}

.admin-trial-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-2);
  color: #08736f;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.admin-onboarding-form {
  display: grid;
  gap: 0;
}

.onboarding-group {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.onboarding-group:nth-child(even) {
  background: #fbfcfe;
}

.onboarding-group-head {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.onboarding-group-head strong,
.onboarding-group-head span {
  display: block;
}

.onboarding-group-head strong {
  color: var(--navy);
  font-size: 14px;
}

.onboarding-group-head span:not(.step-pill) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.step-pill {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eaf3ff;
  color: #0d5fc1;
  font-size: 12px;
  font-weight: 900;
}

.step-pill.muted-step {
  background: #eef2f6;
  color: #667085;
}

.compact-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-submit-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px 18px;
  background: #ffffff;
}

.tenant-portfolio-card,
.admin-users-card {
  overflow: hidden;
}

.tenant-table-wrap {
  margin: 0 -4px;
}

.tenant-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tenant-table td {
  padding: 13px 10px;
}

.tenant-portfolio-list {
  display: grid;
  gap: 12px;
}

.tenant-portfolio-item {
  display: grid;
  gap: 13px;
  padding: 13px;
  border: 1px solid #e0e8f1;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.tenant-portfolio-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.tenant-portfolio-top .tenant-name-cell {
  min-width: 0;
}

.tenant-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.tenant-setup-toggle {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.tenant-portfolio-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tenant-portfolio-meta div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f7fafc;
  border: 1px solid #e8edf4;
}

.tenant-portfolio-meta span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tenant-portfolio-meta strong {
  color: var(--navy);
  font-size: 13px;
  line-height: 1.25;
}

.tenant-portfolio-meta em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-integration-readiness {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dceef0;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8ffff 0%, #f7fbff 100%);
}

.tenant-readiness-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.tenant-ready-item {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid #e1e9f2;
  border-radius: 8px;
  background: #ffffff;
}

.tenant-ready-item.ready {
  border-color: #bfe8dd;
  background: #f4fffb;
}

.tenant-ready-item.configured {
  border-color: #f5ddb7;
  background: #fffaf2;
}

.tenant-ready-top {
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.tenant-ready-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--navy);
  background: #e9f7f6;
  font-size: 10px;
  font-weight: 950;
}

.tenant-ready-item.ready .tenant-ready-icon {
  color: #08715f;
  background: #d9f8ee;
}

.tenant-ready-item.configured .tenant-ready-icon {
  color: #9a5f00;
  background: #fff0d4;
}

.tenant-ready-top div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tenant-ready-top strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-ready-top em {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-ready-bottom {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.tenant-ready-bottom .badge {
  width: fit-content;
}

.tenant-ready-bottom span:not(.badge) {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-setup-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(10, 31, 68, 0.06);
}

.tenant-setup-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.tenant-setup-head h4 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.25;
}

.tenant-setup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tenant-setup-grid > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6edf4;
  background: #f8fbfd;
}

.tenant-setup-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tenant-setup-grid strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-setup-grid em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.tenant-setup-actions {
  display: grid;
  gap: 8px;
}

.tenant-setup-action {
  min-width: 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e2eaf3;
  background: #fbfdff;
}

.tenant-setup-action.high {
  border-color: #f6c2ba;
  background: #fff8f6;
}

.tenant-setup-action.medium {
  border-color: #f2dbb5;
  background: #fffaf2;
}

.tenant-setup-action.complete {
  border-color: #ccefe4;
  background: #f3fffb;
}

.tenant-action-priority {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  color: var(--navy);
  background: #eef4f8;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.tenant-setup-action.high .tenant-action-priority {
  color: #a33b2b;
  background: #ffe1dc;
}

.tenant-setup-action.medium .tenant-action-priority {
  color: #9a5f00;
  background: #ffefd3;
}

.tenant-setup-action.complete .tenant-action-priority {
  color: #08715f;
  background: #daf8ee;
}

.tenant-setup-action div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tenant-setup-action strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-setup-action em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-setup-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.owner-onboarding-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #dce9f3;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 159, 154, 0.1), rgba(36, 99, 183, 0.08)),
    #ffffff;
  box-shadow: var(--soft-shadow);
}

.owner-onboarding-main {
  display: grid;
  gap: 10px;
}

.owner-onboarding-main h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.2;
}

.owner-onboarding-main p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.owner-progress {
  max-width: 560px;
  background: rgba(255, 255, 255, 0.78);
}

.owner-onboarding-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-onboarding-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #d8e6f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.owner-onboarding-actions {
  display: grid;
  gap: 8px;
}

.owner-next-action {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid #dce6f0;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 8px 20px rgba(16, 35, 63, 0.05);
}

.owner-next-action:hover {
  border-color: rgba(15, 159, 154, 0.45);
  transform: translateY(-1px);
}

.owner-next-action strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-next-action span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-next-action.complete {
  border-color: #ccefe4;
  background: #f5fffc;
}

.client-setup-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #dce9f3;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 159, 154, 0.1), rgba(36, 99, 183, 0.08)),
    #ffffff;
  box-shadow: var(--soft-shadow);
}

.client-setup-hero h3 {
  margin: 4px 0 6px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.15;
}

.client-setup-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.client-setup-score {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #dbe7f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.client-setup-score strong {
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
}

.client-setup-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.setup-card {
  align-self: start;
}

.setup-step {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--teal-2);
  color: #08715f;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.setup-action-list {
  display: grid;
  gap: 10px;
}

.setup-action-tile {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 13px;
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  background: #fbfdff;
  text-align: left;
}

.setup-action-tile:hover {
  border-color: rgba(15, 159, 154, 0.45);
  box-shadow: 0 10px 20px rgba(16, 35, 63, 0.06);
}

.setup-action-tile.compact {
  padding: 10px;
}

.setup-action-tile strong {
  color: var(--navy);
  font-size: 14px;
  line-height: 1.2;
}

.setup-action-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.setup-launch-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dce6f0;
  border-radius: 8px;
  background: #fbfdff;
}

.setup-launch-card strong {
  color: var(--navy);
  font-size: 18px;
}

.setup-launch-card span {
  color: var(--muted);
  line-height: 1.5;
}

.meta-setup-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #dce9f3;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 99, 183, 0.1), rgba(15, 159, 154, 0.08)),
    #ffffff;
  box-shadow: var(--soft-shadow);
}

.meta-setup-hero h3 {
  margin: 4px 0 6px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.15;
}

.meta-setup-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.meta-readiness-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.meta-readiness-stack > div {
  display: grid;
  gap: 8px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid #dbe7f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.meta-readiness-stack span:not(.badge) {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

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

.meta-step-card {
  align-self: start;
}

.meta-oauth-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 1px solid #ccefea;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #f0fffc 0%, #f7fbff 100%);
}

.meta-oauth-panel div {
  display: grid;
  gap: 4px;
}

.meta-oauth-panel strong {
  color: var(--navy);
  font-size: 14px;
}

.meta-oauth-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.compact-title {
  margin-top: 4px;
}

.meta-check-list {
  display: grid;
  gap: 9px;
}

.meta-check {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  background: #fbfdff;
}

.meta-check span {
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: #c8d2df;
}

.meta-check.complete span {
  background: var(--teal);
}

.meta-check strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-check em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-webhook-box {
  display: grid;
  gap: 10px;
}

.meta-webhook-box > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  background: #fbfdff;
}

.meta-webhook-box span,
.meta-webhook-box em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.meta-webhook-box strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-checklist {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.tenant-checklist-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tenant-checklist-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tenant-checklist-head strong {
  color: var(--navy);
  font-size: 12px;
}

.tenant-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.tenant-progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #2463b7);
}

.tenant-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tenant-check {
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 9px;
  border: 1px solid #e4ebf4;
  border-radius: 8px;
  background: #fbfdff;
}

.tenant-check.complete {
  border-color: #cfeee7;
  background: #f4fffc;
}

.tenant-check-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-top: 3px;
  border-radius: 999px;
  background: #c8d2df;
}

.tenant-check.complete .tenant-check-dot {
  background: var(--teal);
}

.tenant-check div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tenant-check strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-check em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-name-cell {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 220px;
}

.tenant-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), #2463b7);
  font-size: 13px;
  font-weight: 900;
}

.tenant-status-stack {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.tenant-activity {
  display: flex;
  gap: 5px;
  align-items: baseline;
  color: var(--muted);
}

.tenant-activity strong {
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
}

.tenant-activity span {
  font-size: 12px;
  font-weight: 800;
}

.admin-user-form {
  padding-top: 2px;
}

.section-menu {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 1px;
}

.link-btn {
  border: 0;
  background: transparent;
  color: #0d5fc1;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.link-btn:hover {
  color: var(--navy);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.demo-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(15, 159, 154, 0.15), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4f8 100%);
}

.demo-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.demo-hero {
  min-height: 570px;
  display: grid;
  align-content: start;
  gap: 46px;
  border: 1px solid rgba(16, 35, 63, 0.08);
  border-radius: 14px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(16, 35, 63, 0.97), rgba(11, 73, 85, 0.9)),
    var(--navy);
  box-shadow: 0 26px 70px rgba(16, 35, 63, 0.16);
  overflow: hidden;
}

.cake-demo .demo-hero {
  background:
    linear-gradient(135deg, rgba(66, 28, 71, 0.96), rgba(13, 105, 103, 0.9)),
    #421c47;
}

.bridal-demo .demo-hero {
  background:
    linear-gradient(135deg, rgba(77, 24, 54, 0.98), rgba(150, 64, 89, 0.9)),
    #4d1836;
}

.jewellery-demo .demo-hero {
  background:
    linear-gradient(135deg, rgba(54, 31, 74, 0.98), rgba(173, 111, 53, 0.9)),
    #361f4a;
}

.salon-demo .demo-hero {
  background:
    linear-gradient(135deg, rgba(70, 23, 56, 0.98), rgba(12, 111, 107, 0.9)),
    #461738;
}

.car-demo .demo-hero {
  background:
    linear-gradient(135deg, rgba(12, 27, 48, 0.98), rgba(18, 65, 96, 0.94)),
    var(--navy);
}

.interior-demo .demo-hero {
  background:
    linear-gradient(135deg, rgba(32, 49, 45, 0.98), rgba(13, 105, 103, 0.9)),
    #20312d;
}

.photography-demo .demo-hero {
  background:
    linear-gradient(135deg, rgba(21, 24, 42, 0.98), rgba(96, 54, 135, 0.92)),
    #15182a;
}

.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.demo-brand,
.demo-nav-link {
  color: var(--white);
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.demo-brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #9df1ea;
}

.demo-nav-link,
.demo-primary,
.demo-secondary {
  text-decoration: none;
  font-weight: 850;
}

.demo-nav-link {
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.demo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 32px;
  align-items: center;
  padding: 12px 12px 24px;
}

.demo-copy {
  color: var(--white);
}

.demo-kicker,
.demo-section-title span {
  display: inline-flex;
  color: #7cf0e4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-copy h1 {
  max-width: 760px;
  margin: 12px 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.demo-copy p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.55;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.demo-primary,
.demo-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 16px;
}

.demo-primary {
  color: var(--navy);
  background: #8ef3e7;
}

.demo-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.demo-login-card {
  color: var(--white);
  border-radius: 12px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.demo-login-card > span {
  display: block;
  margin-bottom: 16px;
  color: #9df1ea;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.demo-login-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.demo-login-card dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.demo-login-card dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-login-card dd {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.demo-login-card p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.demo-section {
  margin-top: 18px;
  padding: 24px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid #e0e8f1;
  box-shadow: var(--soft-shadow);
}

.demo-section-title {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.demo-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.15;
}

.demo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.demo-info-card {
  display: grid;
  gap: 9px;
  min-height: 160px;
  padding: 18px;
  border-radius: 10px;
  background: #f8fbff;
  border: 1px solid #e1e9f2;
}

.demo-info-card strong {
  color: var(--navy);
  font-size: 17px;
}

.demo-info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.demo-flow {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: center;
}

.demo-message-list {
  display: grid;
  gap: 10px;
}

.demo-message-list span {
  display: block;
  border-radius: 999px;
  padding: 12px 14px;
  color: var(--navy);
  background: #ecf8f7;
  border: 1px solid #d4efec;
  font-weight: 750;
}

.donut-panel {
  min-height: 214px;
  display: grid;
  grid-template-columns: minmax(100px, 0.55fr) minmax(0, 1.45fr);
  gap: 12px;
  align-items: center;
}

.donut-visual {
  display: grid;
  place-items: center;
  min-width: 0;
}

.donut-chart {
  width: min(132px, 100%);
  min-width: 104px;
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
}

.donut-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 18px rgba(16, 35, 63, 0.08));
}

.donut-track,
.donut-segment {
  fill: none;
  stroke-width: 13;
}

.donut-track {
  stroke: #edf2f7;
}

.donut-segment {
  cursor: pointer;
  stroke-linecap: butt;
  transition:
    opacity 160ms ease,
    stroke-width 160ms ease,
    filter 160ms ease;
}

.donut-panel.is-hovering .donut-segment {
  opacity: 0.28;
}

.donut-panel.is-hovering .donut-segment.active {
  opacity: 1;
  stroke-width: 16;
  filter: drop-shadow(0 3px 6px rgba(16, 35, 63, 0.22));
}

.donut-panel:has(.donut-segment:hover) .donut-segment,
.donut-panel:has(.donut-legend-row:hover) .donut-segment {
  opacity: 0.28;
}

.donut-panel:has(.donut-segment[data-slice-index="0"]:hover) .donut-segment[data-slice-index="0"],
.donut-panel:has(.donut-legend-row[data-slice-index="0"]:hover) .donut-segment[data-slice-index="0"],
.donut-panel:has(.donut-segment[data-slice-index="1"]:hover) .donut-segment[data-slice-index="1"],
.donut-panel:has(.donut-legend-row[data-slice-index="1"]:hover) .donut-segment[data-slice-index="1"],
.donut-panel:has(.donut-segment[data-slice-index="2"]:hover) .donut-segment[data-slice-index="2"],
.donut-panel:has(.donut-legend-row[data-slice-index="2"]:hover) .donut-segment[data-slice-index="2"],
.donut-panel:has(.donut-segment[data-slice-index="3"]:hover) .donut-segment[data-slice-index="3"],
.donut-panel:has(.donut-legend-row[data-slice-index="3"]:hover) .donut-segment[data-slice-index="3"],
.donut-panel:has(.donut-segment[data-slice-index="4"]:hover) .donut-segment[data-slice-index="4"],
.donut-panel:has(.donut-legend-row[data-slice-index="4"]:hover) .donut-segment[data-slice-index="4"],
.donut-panel:has(.donut-segment[data-slice-index="5"]:hover) .donut-segment[data-slice-index="5"],
.donut-panel:has(.donut-legend-row[data-slice-index="5"]:hover) .donut-segment[data-slice-index="5"],
.donut-panel:has(.donut-segment[data-slice-index="6"]:hover) .donut-segment[data-slice-index="6"],
.donut-panel:has(.donut-legend-row[data-slice-index="6"]:hover) .donut-segment[data-slice-index="6"] {
  opacity: 1;
  stroke-width: 16;
  filter: drop-shadow(0 3px 6px rgba(16, 35, 63, 0.22));
}

.donut-center {
  position: absolute;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 0 0 1px #e8edf4;
  pointer-events: none;
}

.donut-center strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 850;
}

.donut-center span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.donut-legend {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.donut-legend-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 34px 44px;
  gap: 6px;
  align-items: center;
  min-height: 29px;
  padding: 3px 6px;
  border-radius: 8px;
  color: var(--navy);
  font-size: 12px;
  transition:
    background 160ms ease,
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.donut-panel.is-hovering .donut-legend-row {
  opacity: 0.42;
}

.donut-panel.is-hovering .donut-legend-row.active {
  opacity: 1;
  background: #f3f8ff;
  transform: translateX(2px);
}

.donut-panel:has(.donut-segment:hover) .donut-legend-row,
.donut-panel:has(.donut-legend-row:hover) .donut-legend-row {
  opacity: 0.42;
}

.donut-panel:has(.donut-segment[data-slice-index="0"]:hover) .donut-legend-row[data-slice-index="0"],
.donut-panel:has(.donut-legend-row[data-slice-index="0"]:hover) .donut-legend-row[data-slice-index="0"],
.donut-panel:has(.donut-segment[data-slice-index="1"]:hover) .donut-legend-row[data-slice-index="1"],
.donut-panel:has(.donut-legend-row[data-slice-index="1"]:hover) .donut-legend-row[data-slice-index="1"],
.donut-panel:has(.donut-segment[data-slice-index="2"]:hover) .donut-legend-row[data-slice-index="2"],
.donut-panel:has(.donut-legend-row[data-slice-index="2"]:hover) .donut-legend-row[data-slice-index="2"],
.donut-panel:has(.donut-segment[data-slice-index="3"]:hover) .donut-legend-row[data-slice-index="3"],
.donut-panel:has(.donut-legend-row[data-slice-index="3"]:hover) .donut-legend-row[data-slice-index="3"],
.donut-panel:has(.donut-segment[data-slice-index="4"]:hover) .donut-legend-row[data-slice-index="4"],
.donut-panel:has(.donut-legend-row[data-slice-index="4"]:hover) .donut-legend-row[data-slice-index="4"],
.donut-panel:has(.donut-segment[data-slice-index="5"]:hover) .donut-legend-row[data-slice-index="5"],
.donut-panel:has(.donut-legend-row[data-slice-index="5"]:hover) .donut-legend-row[data-slice-index="5"],
.donut-panel:has(.donut-segment[data-slice-index="6"]:hover) .donut-legend-row[data-slice-index="6"],
.donut-panel:has(.donut-legend-row[data-slice-index="6"]:hover) .donut-legend-row[data-slice-index="6"] {
  opacity: 1;
  background: #f3f8ff;
  transform: translateX(2px);
}

.donut-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(16, 35, 63, 0.04);
}

.donut-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donut-legend-row strong {
  text-align: right;
  font-weight: 850;
}

.donut-count {
  color: var(--muted);
  font-weight: 650;
}

.line-card-body {
  min-height: 214px;
  display: grid;
  grid-template-rows: minmax(170px, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.line-chart {
  width: 100%;
  height: auto;
  min-height: 214px;
  overflow: visible;
}

.line-grid {
  stroke: #e5eaf1;
  stroke-width: 1;
}

.line-y-label,
.line-x-label {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.line-y-label {
  text-anchor: end;
}

.line-x-label {
  text-anchor: middle;
}

.line-area {
  fill: url("#lineAreaFill");
}

.line-path {
  fill: none;
  stroke: #0f9f9a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-point circle {
  fill: #0f9f9a;
  stroke: var(--white);
  stroke-width: 3;
  cursor: pointer;
  transition:
    opacity 160ms ease,
    r 160ms ease,
    filter 160ms ease,
    stroke-width 160ms ease;
}

.line-point text {
  fill: var(--navy);
  text-anchor: middle;
  font-size: 12px;
  font-weight: 850;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.line-card-body.is-hovering .line-point {
  opacity: 0.32;
}

.line-card-body.is-hovering .line-point.active {
  opacity: 1;
}

.line-card-body.is-hovering .line-point.active circle,
.line-point:hover circle,
.line-point:focus circle {
  r: 7;
  stroke-width: 4;
  filter: drop-shadow(0 4px 7px rgba(15, 159, 154, 0.34));
}

.line-card-body.is-hovering .line-point.active text,
.line-point:hover text,
.line-point:focus text {
  opacity: 1;
  transform: translateY(-2px);
}

.vertical-chart {
  min-height: 214px;
  display: grid;
  grid-template-columns: repeat(6, minmax(40px, 1fr));
  grid-template-rows: 1fr auto;
  gap: 12px 8px;
  align-items: end;
  padding: 6px 4px 0;
}

.vertical-bar-item {
  min-width: 0;
  display: grid;
  grid-template-rows: 18px 140px auto;
  justify-items: center;
  align-items: end;
  gap: 8px;
  cursor: pointer;
  border-radius: 8px;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.vertical-bar-item strong {
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
}

.vertical-bar-track {
  width: clamp(24px, 64%, 34px);
  height: 140px;
  display: flex;
  align-items: flex-end;
  border-radius: 8px 8px 4px 4px;
  background: #eef6f7;
  overflow: hidden;
}

.vertical-bar-fill {
  width: 100%;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #0fabb2 0%, #087f89 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition:
    filter 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.vertical-bar-item > .bar-label-text {
  max-width: 100%;
  min-height: 30px;
  display: grid;
  align-content: start;
  color: var(--navy);
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
}

.bar-label-text span {
  display: block;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.vertical-chart.is-hovering .vertical-bar-item {
  opacity: 0.34;
}

.vertical-chart.is-hovering .vertical-bar-item.active,
.vertical-bar-item:hover,
.vertical-bar-item:focus {
  opacity: 1;
  transform: translateY(-3px);
  background: #f3fbfb;
}

.vertical-chart.is-hovering .vertical-bar-item.active .vertical-bar-fill,
.vertical-bar-item:hover .vertical-bar-fill,
.vertical-bar-item:focus .vertical-bar-fill {
  background: linear-gradient(180deg, #12c7cb 0%, #07808a 100%);
  filter: drop-shadow(0 6px 8px rgba(15, 159, 154, 0.2));
}

.chart-tooltip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 7px;
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--muted);
  background: #f7fafc;
  border: 1px solid #e7edf4;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.chart-tooltip strong {
  color: var(--navy);
}

.chart-tooltip span {
  color: var(--teal);
}

.chart-tooltip i {
  color: #98a2b3;
  font-style: normal;
}

.vertical-tooltip {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.funnel-panel {
  min-height: 218px;
  display: grid;
  grid-template-columns: minmax(128px, 0.95fr) minmax(126px, 1.05fr);
  gap: 14px;
  align-items: center;
}

.funnel-shape {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
}

.funnel-segment {
  height: clamp(28px, 4.2vw, 36px);
  max-height: 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 11px;
  font-weight: 850;
  clip-path: polygon(5% 0, 95% 0, 86% 100%, 14% 100%);
  box-shadow: 0 8px 14px rgba(16, 35, 63, 0.08);
}

.funnel-segment span {
  max-width: 78%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funnel-legend {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.funnel-row {
  display: grid;
  grid-template-columns: 10px minmax(52px, 1fr) minmax(34px, auto) minmax(30px, auto);
  gap: 7px;
  align-items: center;
  color: var(--navy);
  font-size: 12px;
}

.funnel-row span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funnel-row strong {
  text-align: right;
  font-weight: 850;
}

.funnel-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.funnel-total {
  grid-column: 1 / -1;
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
  padding-left: 8px;
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(120px, 2fr) 42px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.bar-track {
  height: 10px;
  background: #edf2f7;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 999px;
}

.staff-performance-list {
  min-height: 156px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.staff-performance-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(140px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f6;
}

.staff-performance-row:last-child {
  border-bottom: 0;
}

.staff-person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.staff-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.staff-copy strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.staff-copy span,
.staff-progress-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.staff-copy strong,
.staff-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-progress {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.staff-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--navy);
  font-size: 12px;
}

.staff-progress-meta strong {
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
}

.staff-progress-track {
  height: 9px;
  border-radius: 999px;
  background: #eef2f6;
  overflow: hidden;
}

.staff-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f9f9a, #22b8a8);
}

.staff-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.mini-stat {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  background: #eef2f6;
  color: #475467;
}

.mini-stat.done {
  color: var(--green);
  background: #e8f7ef;
}

.mini-stat.pending {
  color: var(--amber);
  background: #fff7df;
}

.mini-stat.overdue {
  color: var(--red);
  background: #fff0ed;
}

.owner-summary-panel {
  min-height: 156px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.owner-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.owner-summary-metric {
  min-width: 0;
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 7px;
  border: 1px solid #e7edf4;
  border-radius: 8px;
  padding: 10px;
  background: #fbfdff;
}

.owner-summary-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-summary-metric strong {
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.owner-summary-metric.blue strong {
  color: var(--blue);
}

.owner-summary-metric.green strong {
  color: var(--green);
}

.owner-summary-metric.amber strong {
  color: var(--amber);
}

.owner-summary-metric.red strong {
  color: var(--red);
}

.owner-summary-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.owner-summary-insights > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7fafc;
}

.owner-summary-insights span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.owner-summary-insights strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-action-list {
  min-height: 214px;
  display: grid;
  align-content: start;
}

.lead-action-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 9px 8px;
  border-bottom: 1px solid #edf1f6;
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.lead-action-row:last-child {
  border-bottom: 0;
}

.lead-action-row:hover {
  background: #f8fbff;
  transform: translateY(-1px);
}

.lead-row-main,
.lead-row-copy {
  min-width: 0;
}

.lead-row-main {
  display: grid;
  gap: 8px;
}

.lead-row-top {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.lead-row-copy {
  display: grid;
  gap: 2px;
}

.lead-row-copy strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.lead-row-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.lead-row-copy strong,
.lead-row-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-row-tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lead-owner-chip {
  min-height: 21px;
  max-width: 150px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  color: #475467;
  background: #eef2f6;
  font-size: 10.5px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-row-side {
  display: grid;
  justify-items: end;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.lead-row-side span {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-row-side.assign {
  align-content: center;
}

.lead-row-side .btn {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.hot-lead-row,
.unassigned-lead-row {
  border-left: 3px solid transparent;
}

.hot-lead-row:hover {
  border-left-color: var(--red);
}

.unassigned-lead-row:hover {
  border-left-color: var(--blue);
}

.lead-panel-empty {
  min-height: 214px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed #ccd5e2;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  background: #fbfcfe;
}

.lead-panel-empty strong {
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.lead-panel-empty span {
  max-width: 320px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.lead-panel-empty.success {
  border-color: #bfe8d1;
  background: #f8fffb;
}

.social-enquiry-list {
  min-height: 214px;
  display: grid;
  align-content: start;
}

.social-enquiry-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(92px, 0.65fr) minmax(0, 1.35fr) minmax(86px, auto);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 8px;
  border-bottom: 1px solid #edf1f6;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.social-enquiry-row:last-child {
  border-bottom: 0;
}

.social-enquiry-row.linked {
  cursor: pointer;
}

.social-enquiry-row:hover {
  background: #f8fbff;
  transform: translateY(-1px);
}

.social-enquiry-platform {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-enquiry-main,
.social-enquiry-status {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.social-enquiry-platform > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.social-enquiry-platform span:not(.source-pill):not(.source-icon),
.social-enquiry-main span,
.social-enquiry-status span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.social-enquiry-main strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.social-enquiry-main strong,
.social-enquiry-main span,
.social-enquiry-platform span:not(.source-pill),
.social-enquiry-status span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-enquiry-status {
  justify-items: end;
  text-align: right;
}

.source-pill.instagram {
  color: #087a7e;
  background: #ddf7f5;
}

.source-pill.facebook {
  color: #1466d8;
  background: #e7f0ff;
}

.source-pill.youtube {
  color: #c24135;
  background: #fff0ed;
}

.table-wrap {
  overflow-x: auto;
}

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

.dashboard-list {
  min-height: 214px;
  display: grid;
  align-content: start;
}

.dashboard-list-head,
.dashboard-list-row {
  display: grid;
  align-items: center;
}

.dashboard-list-head {
  min-height: 28px;
  padding: 0 8px 6px;
  color: #58657a;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-list-row {
  min-width: 0;
  border-bottom: 1px solid #edf1f6;
  cursor: pointer;
  transition: background 160ms ease;
}

.dashboard-list-row:last-child {
  border-bottom: 0;
}

.dashboard-list-row:hover {
  background: #f8fbff;
}

.followup-list-head,
.followup-list-row {
  grid-template-columns: 48px minmax(0, 1fr) 32px;
  gap: 8px;
}

.followup-list-row {
  min-height: 58px;
  padding: 7px 8px;
}

.followup-actions {
  display: flex;
  justify-content: flex-end;
}

.followup-status-inline {
  margin-top: 4px;
}

.followup-status-inline .badge {
  min-height: 20px;
  padding: 2px 8px;
  font-size: 11px;
}

.enquiry-list-head,
.enquiry-list-row {
  grid-template-columns: minmax(0, 1.34fr) minmax(112px, 0.8fr) minmax(52px, auto);
  gap: 10px;
}

.enquiry-list-row {
  min-height: 56px;
  padding: 8px;
}

.enquiry-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.enquiry-copy,
.enquiry-source {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.enquiry-copy strong {
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 850;
}

.enquiry-copy span,
.enquiry-source span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.enquiry-copy strong,
.enquiry-copy span,
.enquiry-source span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enquiry-status {
  justify-self: end;
}

.source-pill {
  width: fit-content;
  max-width: 100%;
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  color: #0d66d0;
  background: #eaf3ff;
  font-size: 10.5px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-pill.instagram-dm,
.source-pill.instagram-comment {
  color: #087a7e;
  background: #ddf7f5;
}

.source-pill.facebook-messenger,
.source-pill.facebook-comment,
.source-pill.facebook-lead-ad {
  color: #1466d8;
  background: #e7f0ff;
}

.source-pill.youtube-comment {
  color: #c24135;
  background: #fff0ed;
}

.source-pill.walk-in,
.source-pill.manual {
  color: #7257d7;
  background: #eee9ff;
}

.dashboard-mini-table {
  min-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
}

.dashboard-mini-table th,
.dashboard-mini-table td {
  height: 42px;
  padding: 8px 8px;
  vertical-align: middle;
  border-bottom: 1px solid #edf1f6;
}

.dashboard-mini-table th {
  color: #58657a;
  background: var(--white);
  font-size: 11px;
  font-weight: 750;
}

.dashboard-mini-table tr:last-child td {
  border-bottom: 0;
}

.dashboard-mini-table tbody tr {
  cursor: default;
}

.dashboard-mini-table tbody tr[data-action] {
  cursor: pointer;
}

.dashboard-mini-table tbody tr:hover td {
  background: #f8fbff;
}

.dashboard-mini-table strong {
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
}

.followups-mini-table th:nth-child(1),
.followups-mini-table td:nth-child(1) {
  width: 64px;
}

.followups-mini-table th:nth-child(2),
.followups-mini-table td:nth-child(2) {
  width: 35%;
}

.followups-mini-table th:nth-child(3),
.followups-mini-table td:nth-child(3) {
  width: 28%;
}

.followups-mini-table th:nth-child(4),
.followups-mini-table td:nth-child(4) {
  width: 78px;
}

.followups-mini-table th:nth-child(5),
.followups-mini-table td:nth-child(5) {
  width: 38px;
  text-align: right;
}

.enquiries-mini-table {
  min-width: 100%;
}

.enquiries-mini-table th:nth-child(1),
.enquiries-mini-table td:nth-child(1) {
  width: 22%;
}

.enquiries-mini-table th:nth-child(2),
.enquiries-mini-table td:nth-child(2) {
  width: 30px;
  text-align: center;
}

.enquiries-mini-table th:nth-child(3),
.enquiries-mini-table td:nth-child(3) {
  width: 17%;
}

.enquiries-mini-table th:nth-child(4),
.enquiries-mini-table td:nth-child(4) {
  width: 20%;
}

.enquiries-mini-table th:nth-child(5),
.enquiries-mini-table td:nth-child(5) {
  width: 18%;
}

.enquiries-mini-table th:nth-child(6),
.enquiries-mini-table td:nth-child(6) {
  width: 52px;
}

.dashboard-mini-table td,
.dashboard-mini-table th {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-cell,
.owner-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.person-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.person-copy strong,
.person-copy span,
.owner-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.mobile-product {
  display: none;
}

.person-avatar {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--avatar-color, var(--teal));
  font-size: 10px;
  font-weight: 850;
}

.owner-cell .person-avatar {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  font-size: 9px;
}

.time-cell {
  color: var(--navy);
  font-weight: 750;
}

.icon-btn {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #0d66d0;
  background: #eef6ff;
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--white);
  background: #0d66d0;
}

.icon-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.source-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #0d66d0;
  background: #eaf3ff;
  font-size: 9px;
  font-weight: 900;
}

.source-icon.instagram-dm,
.source-icon.instagram-comment,
.source-icon.instagram {
  color: #087a7e;
  background: #ddf7f5;
}

.source-icon.facebook-messenger,
.source-icon.facebook-comment,
.source-icon.facebook-lead-ad,
.source-icon.facebook {
  color: #1466d8;
  background: #e7f0ff;
}

.source-icon.youtube-comment,
.source-icon.youtube {
  color: #c24135;
  background: #fff0ed;
}

.source-icon.walk-in,
.source-icon.manual {
  color: #7257d7;
  background: #eee9ff;
}

.compact-empty {
  min-height: 210px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  background: #fbfcfe;
}

tr:hover td {
  background: #fbfcfe;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  background: #eef2f6;
  color: var(--ink);
  white-space: nowrap;
}

.badge.hot,
.badge.high,
.badge.overdue {
  background: #fff0ed;
  color: var(--red);
}

.badge.warm,
.badge.medium,
.badge.pending {
  background: #fff7df;
  color: var(--amber);
}

.badge.due {
  background: #eaf3ff;
  color: #0d5fc1;
}

.badge.won,
.badge.completed {
  background: #e8f7ef;
  color: var(--green);
}

.badge.new,
.badge.teal {
  background: var(--teal-2);
  color: #08736f;
}

.badge.lost,
.badge.spam,
.badge.low {
  background: #eef2f6;
  color: #475467;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.toolbar > * {
  min-width: 150px;
}

.toolbar-inline {
  display: contents;
}

.lead-list-card {
  overflow: hidden;
}

.lead-filter-panel {
  display: grid;
  gap: 16px;
  margin: -2px -2px 18px;
  padding: 18px;
  border: 1px solid #deebf4;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fcff 100%),
    linear-gradient(135deg, rgba(15, 159, 154, 0.08), rgba(36, 99, 183, 0.08));
}

.lead-filter-head,
.lead-filter-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.lead-filter-head h3 {
  margin: 10px 0 4px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
}

.lead-filter-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.lead-filter-total {
  min-width: 120px;
  display: grid;
  justify-items: end;
  padding: 10px 12px;
  border: 1px solid #d7e9ef;
  border-radius: 8px;
  background: #f1fffc;
  color: #08736f;
}

.lead-filter-total strong {
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
}

.lead-filter-total span {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.lead-filter-top {
  display: grid;
  gap: 12px;
  align-items: end;
}

.lead-filter-top.with-workspace {
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.35fr) minmax(170px, 0.55fr);
}

.lead-filter-top.standard {
  grid-template-columns: minmax(320px, 1fr) minmax(180px, 0.32fr);
}

.lead-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #354761;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.filter-field input,
.filter-field select {
  min-height: 42px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  background: #ffffff;
  border-color: #d7e1ec;
}

.filter-field input::placeholder {
  color: #94a3b8;
  font-weight: 650;
}

.search-filter input {
  padding-left: 14px;
}

.lead-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  border: 1px solid #ddeaf3;
  border-radius: 8px;
  background: #ffffff;
}

.lead-status-strip button {
  min-height: 34px;
  border-radius: 8px;
  padding: 7px 11px;
  color: #516173;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.lead-status-strip button:hover,
.lead-status-strip button.active {
  color: #08736f;
  background: var(--teal-2);
}

.lead-filter-active {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.lead-filter-chip,
.lead-filter-empty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 750;
}

.lead-filter-chip {
  color: #31506d;
  background: #eef6ff;
  border: 1px solid #d8e9fb;
}

.lead-filter-chip strong {
  color: var(--navy);
  font-size: 10.5px;
  text-transform: uppercase;
}

.lead-filter-empty {
  color: #667085;
  background: #f3f6fa;
}

.lead-filter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.lead-filter-actions .btn {
  min-height: 38px;
  font-size: 12.5px;
}

.lead-page {
  display: grid;
  gap: 14px;
}

.lead-page-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid #dce9f2;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 159, 154, 0.09), rgba(36, 99, 183, 0.06)),
    #ffffff;
  box-shadow: 0 10px 24px rgba(16, 35, 63, 0.045);
}

.lead-page-header h3 {
  margin: 10px 0 4px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.08;
}

.lead-page-header p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.lead-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.lead-loaded-count {
  min-width: 116px;
  display: grid;
  justify-items: end;
  padding: 9px 11px;
  border: 1px solid #cbece8;
  border-radius: 8px;
  background: #f2fffd;
}

.lead-loaded-count strong {
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
}

.lead-loaded-count span {
  color: #08736f;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-metric-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.lead-metric-card {
  min-width: 0;
  display: grid;
  gap: 3px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 8px 18px rgba(16, 35, 63, 0.035);
}

button.lead-metric-card {
  cursor: pointer;
}

.lead-metric-card.is-clickable:hover {
  border-color: #bfe5e1;
  background: #f4fffd;
}

.lead-metric-card span {
  color: #57677c;
  font-size: 11.5px;
  font-weight: 850;
}

.lead-metric-card strong {
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
}

.lead-metric-card small {
  color: #7a8798;
  font-size: 10.5px;
  font-weight: 700;
}

.lead-control-panel {
  display: grid;
  gap: 12px;
}

.lead-command-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.lead-search-box {
  min-width: 0;
  display: block;
}

.lead-search-box input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  color: var(--navy);
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.lead-filter-toggle span {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #08736f;
  background: var(--teal-2);
  font-size: 11px;
  font-weight: 900;
}

.lead-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.lead-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 6px 5px 10px;
  border: 1px solid #d8e9fb;
  border-radius: 999px;
  color: #31506d;
  background: #eef6ff;
  font-size: 12px;
  font-weight: 750;
}

.lead-filter-chip strong {
  color: var(--navy);
  font-size: 11px;
}

.lead-filter-chip button,
.lead-clear-link {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  border-radius: 999px;
  color: #36536f;
  background: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  font-weight: 900;
}

.lead-clear-link {
  padding: 4px 9px;
  color: var(--red);
  background: #fff6f4;
  font-size: 12px;
}

.lead-advanced-filters {
  display: none;
  padding: 14px;
  border: 1px solid #dfe9f2;
  border-radius: 8px;
  background: #fbfdff;
}

.lead-advanced-filters.open {
  display: grid;
  gap: 12px;
}

.lead-filter-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.lead-results-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e5ebf2;
  border-radius: 8px;
  background: #ffffff;
}

.lead-results-toolbar > div {
  display: grid;
  gap: 3px;
}

.lead-results-toolbar strong {
  color: var(--navy);
  font-size: 13px;
}

.lead-results-toolbar span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.lead-results-toolbar label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #536276;
  font-size: 12px;
  font-weight: 850;
}

.lead-results-toolbar select {
  min-height: 36px;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  color: var(--navy);
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.lead-results {
  min-width: 0;
}

.lead-table-shell {
  width: 100%;
  overflow: hidden;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
  background: #ffffff;
}

.lead-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.lead-table th,
.lead-table td {
  padding: 12px 11px;
  border-bottom: 1px solid #ecf1f6;
  vertical-align: middle;
}

.lead-table th {
  color: #617086;
  background: #f8fbfd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lead-table tbody tr:last-child td {
  border-bottom: 0;
}

.lead-table tbody tr:hover td {
  background: #fbfeff;
}

.lead-table th:nth-child(1),
.lead-table td:nth-child(1) {
  width: 19%;
}

.lead-table th:nth-child(2),
.lead-table td:nth-child(2) {
  width: 25%;
}

.lead-table th:last-child,
.lead-table td:last-child {
  width: 74px;
  text-align: right;
}

.lead-identity-cell,
.lead-enquiry-cell,
.lead-owner-cell {
  min-width: 0;
}

.lead-identity-cell,
.lead-enquiry-cell {
  display: grid;
  gap: 5px;
  align-content: center;
}

.lead-identity-cell strong {
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-identity-cell > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-enquiry-cell > span {
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: #31506d;
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-enquiry-cell p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  overflow: hidden;
  color: #40516a;
  font-size: 12.5px;
  line-height: 1.35;
}

.lead-owner-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lead-owner-cell span:last-child {
  min-width: 0;
  color: #344258;
  font-size: 12.5px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-created-date {
  color: #475467;
  font-size: 12px;
  font-weight: 750;
}

.lead-source-badge,
.lead-status-badge,
.lead-temp-badge,
.lead-priority-badge,
.lead-followup-badge {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.lead-source-badge span {
  min-width: 18px;
  min-height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #1466d8;
  font-size: 8px;
  line-height: 1;
}

.lead-source-badge {
  color: #1466d8;
  background: #e7f0ff;
}

.lead-source-badge.instagram-dm,
.lead-source-badge.instagram-comment,
.lead-source-badge.instagram {
  color: #087a7e;
  background: #ddf7f5;
}

.lead-source-badge.instagram-dm span,
.lead-source-badge.instagram-comment span,
.lead-source-badge.instagram span {
  background: #087a7e;
}

.lead-source-badge.facebook-messenger,
.lead-source-badge.facebook-comment,
.lead-source-badge.facebook-lead-ad,
.lead-source-badge.facebook {
  color: #1466d8;
  background: #e7f0ff;
}

.lead-source-badge.facebook-messenger span,
.lead-source-badge.facebook-comment span,
.lead-source-badge.facebook-lead-ad span,
.lead-source-badge.facebook span {
  background: #1466d8;
}

.lead-source-badge.youtube-comment,
.lead-source-badge.youtube {
  color: #c24135;
  background: #fff0ed;
}

.lead-source-badge.youtube-comment span,
.lead-source-badge.youtube span {
  background: #c24135;
}

.lead-source-badge.manual,
.lead-source-badge.walk-in {
  color: #7257d7;
  background: #eee9ff;
}

.lead-source-badge.manual span,
.lead-source-badge.walk-in span {
  background: #7257d7;
}

.lead-status-badge {
  color: #31506d;
  background: #eef3f8;
}

.lead-status-badge.new,
.lead-status-badge.follow-up-required {
  color: #08736f;
  background: #e4faf6;
}

.lead-status-badge.hot,
.lead-status-badge.quotation-required {
  color: #b42318;
  background: #fff0ed;
}

.lead-status-badge.warm,
.lead-status-badge.quotation-sent,
.lead-status-badge.visit-planned {
  color: #9a5b00;
  background: #fff7df;
}

.lead-status-badge.won,
.lead-status-badge.visited {
  color: #16794c;
  background: #e8f7ef;
}

.lead-status-badge.lost,
.lead-status-badge.spam,
.lead-status-badge.cold {
  color: #475467;
  background: #eef2f6;
}

.lead-temp-badge.hot {
  color: #b42318;
  background: #fff0ed;
}

.lead-temp-badge.warm,
.lead-temp-badge.medium {
  color: #9a5b00;
  background: #fff7df;
}

.lead-temp-badge.cold,
.lead-temp-badge.low,
.lead-temp-badge.unknown {
  color: #475467;
  background: #eef2f6;
}

.lead-priority-badge.high {
  color: #b42318;
  background: #fff0ed;
}

.lead-priority-badge.medium {
  color: #0d5fc1;
  background: #eaf3ff;
}

.lead-priority-badge.low {
  color: #475467;
  background: #eef2f6;
}

.lead-followup-cell {
  display: grid;
  gap: 3px;
  justify-items: start;
}

.lead-followup-cell small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.lead-followup-cell.none .lead-followup-badge {
  color: #667085;
  background: #f2f4f7;
}

.lead-followup-cell.scheduled .lead-followup-badge {
  color: #0d5fc1;
  background: #eaf3ff;
}

.lead-followup-cell.due .lead-followup-badge {
  color: #9a5b00;
  background: #fff7df;
}

.lead-followup-cell.overdue .lead-followup-badge {
  color: #b42318;
  background: #fff0ed;
}

.lead-card-list {
  display: none;
}

.lead-mobile-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 35, 63, 0.035);
}

.lead-mobile-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.lead-mobile-card-head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.lead-mobile-card-head strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-mobile-card-head > div > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-mobile-message {
  display: grid;
  gap: 5px;
}

.lead-mobile-message > span {
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: #31506d;
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-mobile-message p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  overflow: hidden;
  color: #40516a;
  font-size: 13px;
  line-height: 1.38;
}

.lead-mobile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lead-mobile-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #edf1f6;
}

.lead-mobile-meta > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.lead-mobile-meta > div > span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-mobile-meta strong {
  color: #344258;
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-empty-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  justify-content: center;
  gap: 10px;
  padding: 34px 20px;
  border: 1px dashed #cbd6e4;
  border-radius: 8px;
  background: #fbfdff;
  text-align: center;
}

.lead-empty-state strong {
  color: var(--navy);
  font-size: 18px;
}

.lead-empty-state p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.lead-empty-state.error-state {
  border-color: #ffd5cd;
  background: #fff8f6;
}

.lead-skeleton-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 0.7fr 0.7fr 0.8fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #ecf1f6;
}

.lead-skeleton-row span,
.lead-skeleton-card span {
  min-height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf2f7, #f7fafc, #edf2f7);
  background-size: 220% 100%;
  animation: leadSkeleton 1.1s ease-in-out infinite;
}

.lead-skeleton-row span:nth-child(2) {
  min-height: 32px;
}

@keyframes leadSkeleton {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

@media (max-width: 1380px) {
  .lead-metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lead-page-header h3 {
    font-size: 25px;
  }
}

@media (max-width: 1120px) {
  .lead-table-shell {
    display: none;
  }

  .lead-card-list {
    display: grid;
    gap: 10px;
  }

  .lead-command-bar {
    grid-template-columns: minmax(260px, 1fr) auto auto;
  }

  .lead-skeleton-card {
    min-height: 170px;
  }
}

@media (max-width: 780px) {
  .lead-page {
    gap: 12px;
  }

  .lead-page-header {
    flex-direction: column;
    padding: 15px;
  }

  .lead-page-header h3 {
    margin-top: 8px;
    font-size: 23px;
  }

  .lead-page-actions {
    width: 100%;
    justify-content: stretch;
  }

  .lead-page-actions .btn {
    flex: 1 1 150px;
  }

  .lead-loaded-count {
    width: 100%;
    justify-items: start;
  }

  .lead-metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .lead-metric-card {
    min-height: 76px;
    padding: 11px;
  }

  .lead-command-bar {
    grid-template-columns: 1fr;
  }

  .lead-command-bar .btn {
    width: 100%;
  }

  .lead-active-chips {
    gap: 6px;
  }

  .lead-filter-chip {
    max-width: 100%;
  }

  .lead-advanced-filters {
    padding: 12px;
  }

  .lead-filter-panel-actions {
    justify-content: stretch;
  }

  .lead-filter-panel-actions .btn {
    flex: 1 1 150px;
  }

  .lead-results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-results-toolbar label {
    justify-content: space-between;
  }

  .lead-mobile-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .lead-page-header {
    padding: 13px;
  }

  .lead-page-header h3 {
    font-size: 21px;
  }

  .lead-page-header p {
    font-size: 13px;
  }

  .lead-metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-metric-card span {
    font-size: 10.5px;
  }

  .lead-metric-card strong {
    font-size: 21px;
  }

  .lead-mobile-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-mobile-card-head .btn {
    width: 100%;
  }

  .lead-mobile-meta {
    grid-template-columns: 1fr;
  }
}

.new-lead-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.import-card {
  position: sticky;
  top: 92px;
}

.import-column-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e0e8f1;
  border-radius: 8px;
  background: #fbfdff;
}

.import-column-list span {
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.import-column-list code {
  border: 1px solid #dbeaf0;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1fbfa;
  color: #08736f;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
}

.import-preview {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

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

.import-summary-grid div {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid #e2eaf4;
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.import-summary-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.import-summary-grid strong {
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
}

.import-preview-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid #e1eaf3;
  border-radius: 8px;
  padding: 10px;
  background: #fbfdff;
}

.import-search {
  min-width: 0;
}

.import-search span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.import-search input {
  width: 100%;
  min-height: 40px;
  border-color: #dbe6f0;
  background: var(--white);
}

.import-status-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  gap: 6px;
}

.import-status-filter button {
  min-height: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.import-status-filter button:hover,
.import-status-filter button.active {
  border-color: #0f9f9a;
  background: #ecfbfa;
  box-shadow: 0 8px 18px rgba(15, 159, 154, 0.12);
}

.import-status-filter span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-status-filter strong {
  min-width: 24px;
  color: var(--navy);
  font-size: 12px;
  text-align: right;
}

.import-preview-match-count {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.import-preview-table {
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.import-preview-table table {
  min-width: 720px;
}

.import-preview-table th,
.import-preview-table td {
  font-size: 12px;
}

.import-preview-table tr.is-filtered-out {
  display: none;
}

.import-preview-empty {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  min-height: 96px;
}

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

.form-grid.compact-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8deea;
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 11px;
  outline: none;
}

textarea {
  min-height: 98px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 159, 154, 0.14);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 159, 154, 0.28);
  outline-offset: 2px;
}

.btn {
  min-height: 40px;
  border-radius: 8px;
  padding: 9px 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #eef2f6;
  color: var(--ink);
}

.btn.primary {
  background: var(--teal);
  color: var(--white);
}

.btn.navy {
  background: var(--navy);
  color: var(--white);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
}

.btn.danger {
  background: #fff0ed;
  color: var(--red);
}

.btn.danger-text {
  color: var(--red);
}

.btn.small-btn {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

button.is-loading,
a.is-loading {
  pointer-events: none;
  cursor: progress;
}

button.is-loading:disabled,
.btn.is-loading:disabled {
  opacity: 0.82;
}

button.is-loading::after,
a.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: inline-block;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: button-loading-spin 760ms linear infinite;
  opacity: 0.9;
}

.icon-btn.is-loading::after {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}

@keyframes button-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

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

.detail-title h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.stack {
  display: grid;
  gap: 14px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  border-left: 3px solid var(--teal);
  padding: 2px 0 2px 12px;
}

.message-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.notice {
  border: 1px solid #bee7e3;
  background: #f2fffd;
  color: #085f5b;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.subtle-notice {
  margin-bottom: 0;
  color: #45616d;
  background: #f7fbfc;
  border-color: #dbeaf0;
  font-size: 12px;
  line-height: 1.45;
}

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

.integration-shortcut strong {
  color: var(--navy);
}

.integration-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid #dcebf3;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 159, 154, 0.1), rgba(36, 99, 183, 0.09)),
    #ffffff;
  box-shadow: var(--soft-shadow);
}

.integration-hero h2 {
  margin: 10px 0 6px;
  color: var(--navy);
  font-size: 25px;
  line-height: 1.16;
}

.integration-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.integration-hero-meter {
  min-width: 150px;
  display: grid;
  justify-items: end;
  padding: 12px 14px;
  border: 1px solid #cdebe7;
  border-radius: 8px;
  background: #f2fffd;
  color: #08736f;
}

.integration-hero-meter strong {
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

.integration-hero-meter span {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.integration-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.integration-meta-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
}

.integration-channel-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 310px;
  padding: 18px;
  border: 1px solid #dfeaf4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 35, 63, 0.07);
}

.integration-channel-card.connected {
  border-color: #bfe7dc;
  background: linear-gradient(180deg, #ffffff 0%, #f5fffb 100%);
}

.integration-channel-card.needs-attention {
  border-color: #f8d7a4;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

.integration-meta-card {
  min-height: 330px;
  background:
    radial-gradient(circle at top right, rgba(24, 119, 242, 0.09), transparent 34%),
    radial-gradient(circle at bottom left, rgba(221, 42, 123, 0.1), transparent 34%),
    #ffffff;
}

.integration-channel-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.integration-channel-top h3,
.integration-channel-top p {
  margin: 0;
}

.integration-channel-top h3 {
  color: var(--navy);
  font-size: 18px;
}

.integration-channel-top p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.integration-channel-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(16, 35, 63, 0.12);
}

.integration-channel-icon.compact {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 7px;
  box-shadow: none;
}

.integration-channel-icon.compact svg {
  width: 19px;
  height: 19px;
}

.integration-channel-icon.facebook {
  background: #ffffff;
  border: 1px solid #dfe8f3;
}

.integration-channel-icon.instagram {
  background: #ffffff;
  border: 1px solid #dfe8f3;
}

.integration-channel-icon.whatsapp {
  background: #25d366;
}

.integration-brand-logo {
  width: 31px;
  height: 31px;
  display: block;
  object-fit: contain;
}

.integration-channel-icon.compact .integration-brand-logo {
  width: 23px;
  height: 23px;
}

.integration-channel-icon svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
}

.integration-channel-icon.facebook svg,
.integration-channel-icon.whatsapp svg {
  stroke: none;
}

.integration-channel-icon.instagram svg {
  fill: none;
}

.integration-channel-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.integration-channel-status span:not(.badge) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.integration-channel-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.integration-channel-card li {
  position: relative;
  padding-left: 18px;
  color: #40546b;
  font-size: 13px;
  font-weight: 700;
}

.integration-channel-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
}

.integration-channel-card .btn {
  width: 100%;
  margin-top: auto;
}

.integration-combo-icons {
  position: relative;
  width: 68px;
  height: 52px;
  flex: 0 0 68px;
}

.integration-combo-icons .integration-channel-icon {
  position: absolute;
  top: 0;
  left: 0;
}

.integration-combo-icons .integration-channel-icon.instagram {
  top: 8px;
  left: 24px;
}

.integration-meta-accounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.integration-meta-account {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dbe6f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.integration-meta-account.connected {
  border-color: #bde7dc;
  background: #f7fffc;
}

.integration-meta-account strong,
.integration-meta-account span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-meta-account strong {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.integration-meta-account span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.integration-terms-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.integration-terms-note a {
  color: #0f766e;
  font-weight: 900;
}

.integration-ops-grid {
  align-items: start;
}

.integration-account-card,
.integration-test-card {
  overflow: hidden;
}

.integration-test-card {
  border-color: #e6edf5;
  background: #fbfdff;
}

.integration-support-events {
  grid-column: 1 / -1;
}

.subscription-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid #dce7f4;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(15, 159, 154, 0.12), rgba(20, 52, 91, 0.08)),
    #ffffff;
  box-shadow: var(--shadow);
}

.subscription-hero.expired {
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.11), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.subscription-hero h2 {
  margin: 4px 0 6px;
  font-size: 26px;
  color: var(--navy);
}

.subscription-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.subscription-plan-badge {
  min-width: 180px;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.subscription-plan-badge strong {
  font-size: 26px;
  color: var(--navy);
}

.subscription-card {
  margin-bottom: 16px;
}

.subscription-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 14px;
  margin-bottom: 16px;
}

.subscription-cta-card {
  display: grid;
  gap: 10px;
  align-content: center;
  border-color: rgba(15, 159, 154, 0.28);
  background:
    linear-gradient(135deg, rgba(15, 159, 154, 0.1), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.subscription-cta-card h3,
.subscription-cta-card p {
  margin: 0;
}

.subscription-cta-card p {
  color: var(--muted);
  line-height: 1.55;
}

.subscription-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.subscription-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #2563eb);
}

.subscription-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.subscription-usage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.subscription-usage-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #e3ebf5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 52, 91, 0.06);
}

.subscription-usage-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.subscription-usage-card strong {
  color: var(--navy);
  font-size: 24px;
}

.subscription-usage-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.subscription-usage-card.teal {
  border-color: rgba(15, 159, 154, 0.22);
}

.subscription-usage-card.blue {
  border-color: rgba(37, 99, 235, 0.22);
}

.subscription-usage-card.green {
  border-color: rgba(22, 163, 74, 0.24);
}

.subscription-usage-card.navy {
  border-color: rgba(20, 52, 91, 0.22);
}

.subscription-usage-card.over {
  border-color: rgba(245, 158, 11, 0.55);
  background: #fffbeb;
}

.subscription-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.subscription-plan-card {
  display: grid;
  gap: 10px;
  align-content: start;
  position: relative;
  overflow: hidden;
}

.subscription-plan-card.recommended {
  border-color: rgba(15, 159, 154, 0.45);
  box-shadow: 0 16px 34px rgba(15, 159, 154, 0.13);
}

.subscription-plan-card.active {
  border-color: rgba(37, 99, 235, 0.22);
}

.subscription-plan-card.trial {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.subscription-plan-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.subscription-plan-card h3,
.subscription-plan-card p {
  margin: 0;
}

.subscription-plan-card strong {
  color: var(--navy);
  font-size: 22px;
}

.plan-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.plan-yearly {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--navy) !important;
  font-size: 12px;
  font-weight: 850;
}

.plan-limit-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #edf2f7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.plan-limit-row strong {
  font-size: 13px;
  text-align: right;
}

.plan-feature-list {
  display: grid;
  gap: 8px;
  margin: 4px 0;
  padding: 0;
  list-style: none;
}

.plan-feature-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.plan-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
}

.plan-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.subscription-plan-card p,
.subscription-note p {
  color: var(--muted);
  line-height: 1.55;
}

.plan-eyebrow {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0f766e;
  background: #dff8f4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.subscription-addons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.subscription-addon-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-color: rgba(20, 52, 91, 0.12);
  background: #fbfdff;
}

.subscription-addon-card div {
  display: grid;
  gap: 7px;
}

.subscription-addon-card h3,
.subscription-addon-card p {
  margin: 0;
}

.subscription-addon-card strong {
  color: var(--navy);
}

.subscription-addon-card p {
  color: var(--muted);
  line-height: 1.55;
}

.subscription-admin-list {
  display: grid;
  gap: 12px;
}

.subscription-admin-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #e3ebf5;
  border-radius: 10px;
  background: #fbfdff;
}

.subscription-client {
  display: grid;
  gap: 5px;
}

.subscription-client strong {
  color: var(--navy);
}

.subscription-client span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.error {
  border-color: #ffd5cd;
  background: #fff6f4;
  color: var(--red);
}

.empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #ccd5e2;
  border-radius: 8px;
  background: #fbfcfe;
}

.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

@media (max-width: 1340px) {
  .tenant-readiness-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tenant-setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-performance-row {
    grid-template-columns: minmax(150px, 1.05fr) minmax(120px, 0.9fr);
  }

  .staff-stats {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .owner-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .followups-mini-table .followup-product-heading,
  .followups-mini-table .followup-product-cell {
    display: none;
  }

  .followups-mini-table th:nth-child(1),
  .followups-mini-table td:nth-child(1) {
    width: 58px;
  }

  .followups-mini-table th:nth-child(2),
  .followups-mini-table td:nth-child(2) {
    width: auto;
  }

  .followups-mini-table th:nth-child(4),
  .followups-mini-table td:nth-child(4) {
    width: 76px;
  }

  .followups-mini-table th:nth-child(5),
  .followups-mini-table td:nth-child(5) {
    width: 34px;
  }

  .mobile-product {
    display: inline;
  }

  .enquiries-mini-table .budget-col {
    display: none;
  }

  .enquiries-mini-table th:nth-child(1),
  .enquiries-mini-table td:nth-child(1) {
    width: 26%;
  }

  .enquiries-mini-table th:nth-child(3),
  .enquiries-mini-table td:nth-child(3) {
    width: 20%;
  }

  .enquiries-mini-table th:nth-child(5),
  .enquiries-mini-table td:nth-child(5) {
    width: 24%;
  }
}

@media (max-width: 1240px) {
  .new-lead-layout {
    grid-template-columns: 1fr;
  }

  .import-card {
    position: static;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-ops-grid {
    grid-template-columns: 1fr;
  }

  .funnel-panel {
    grid-template-columns: minmax(190px, 0.8fr) minmax(220px, 1.2fr);
  }
}

@media (max-width: 1100px) {
  .admin-overview {
    grid-template-columns: 1fr;
  }

  .form-grid.compact-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .director-snapshot {
    grid-template-columns: 1fr;
  }

  .owner-onboarding-card {
    grid-template-columns: 1fr;
  }

  .client-setup-hero,
  .client-setup-grid,
  .meta-setup-hero,
  .meta-flow-grid,
  .integration-channel-grid {
    grid-template-columns: 1fr;
  }

  .subscription-overview-grid,
  .subscription-addons-grid {
    grid-template-columns: 1fr;
  }

  .subscription-usage-grid,
  .subscription-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subscription-admin-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subscription-client {
    grid-column: 1 / -1;
  }

  .director-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-insights-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-ops-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col,
  .three-col {
    grid-template-columns: 1fr;
  }

  .donut-panel {
    grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1.3fr);
  }

  .funnel-panel {
    grid-template-columns: minmax(180px, 0.75fr) minmax(220px, 1.25fr);
  }

  .tenant-readiness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tenant-setup-action {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .tenant-setup-action .link-btn {
    justify-self: start;
    grid-column: 2;
  }

  .vertical-chart {
    grid-template-columns: repeat(6, minmax(40px, 1fr));
  }
}

@media (max-width: 780px) {
  .demo-shell {
    width: min(100% - 20px, 1180px);
    padding: 10px 0 28px;
  }

  .demo-hero {
    min-height: auto;
    gap: 28px;
    padding: 14px;
  }

  .demo-nav {
    align-items: flex-start;
  }

  .demo-hero-grid,
  .demo-flow {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .demo-copy h1 {
    font-size: 38px;
  }

  .demo-copy p {
    font-size: 16px;
  }

  .demo-login-card {
    padding: 18px;
  }

  .demo-section {
    padding: 18px;
  }

  .demo-card-grid {
    grid-template-columns: 1fr;
  }

  .demo-section h2 {
    font-size: 24px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    position: relative;
    height: auto;
    padding: 18px;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .subscription-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .subscription-plan-badge {
    justify-items: start;
  }

  .subscription-usage-grid,
  .subscription-plan-grid,
  .subscription-addons-grid {
    grid-template-columns: 1fr;
  }

  .subscription-addon-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .subscription-admin-row {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 18px;
  }

  .import-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .import-preview-controls {
    grid-template-columns: 1fr;
  }

  .import-status-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-filter-head,
  .lead-filter-footer {
    flex-direction: column;
  }

  .lead-filter-total {
    width: 100%;
    justify-items: start;
  }

  .lead-filter-top,
  .lead-filter-grid {
    grid-template-columns: 1fr;
  }

  .lead-status-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-filter-actions {
    width: 100%;
    justify-content: stretch;
  }

  .lead-filter-actions .btn {
    flex: 1 1 150px;
  }

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

  .signup-form {
    padding: 14px;
  }

  .signup-progress-strip {
    grid-template-columns: 1fr;
  }

  .signup-verify-actions {
    grid-template-columns: 1fr;
  }

  .signup-verify-actions .btn {
    width: 100%;
  }

  .form-grid.compact-fields,
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-overview,
  .admin-form-header,
  .admin-submit-row {
    align-items: stretch;
  }

  .admin-form-header,
  .admin-submit-row {
    flex-direction: column;
  }

  .integration-shortcut {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-hero {
    flex-direction: column;
  }

  .integration-hero-meter {
    width: 100%;
    justify-items: start;
  }

  .integration-meta-accounts {
    grid-template-columns: 1fr;
  }

  .integration-meta-account {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .integration-meta-account .badge {
    grid-column: 2;
    justify-self: start;
  }

  .integration-channel-grid {
    grid-template-columns: 1fr;
  }

  .tenant-name-cell {
    min-width: 180px;
  }

  .tenant-checklist-grid {
    grid-template-columns: 1fr;
  }

  .tenant-readiness-grid {
    grid-template-columns: 1fr;
  }

  .tenant-setup-head {
    flex-direction: column;
  }

  .tenant-setup-grid {
    grid-template-columns: 1fr;
  }

  .tenant-setup-action {
    grid-template-columns: 1fr;
  }

  .tenant-setup-action .link-btn {
    grid-column: auto;
    justify-self: start;
  }

  .tenant-setup-shortcuts {
    justify-content: stretch;
  }

  .tenant-setup-shortcuts .btn {
    flex: 1 1 140px;
  }

  .owner-onboarding-card {
    padding: 14px;
  }

  .owner-onboarding-main h3 {
    font-size: 18px;
  }

  .client-setup-hero {
    padding: 14px;
  }

  .client-setup-hero h3 {
    font-size: 20px;
  }

  .meta-setup-hero {
    padding: 14px;
  }

  .meta-setup-hero h3 {
    font-size: 20px;
  }

  .meta-oauth-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .meta-readiness-stack {
    grid-template-columns: 1fr;
  }

  .dashboard-strip {
    grid-template-columns: 1fr;
  }

  .director-metrics {
    grid-template-columns: 1fr;
  }

  .donut-panel {
    grid-template-columns: 1fr;
  }

  .funnel-panel {
    grid-template-columns: 1fr;
  }

  .line-card-body {
    min-height: 190px;
  }

  .vertical-chart {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }

  .chart-tooltip {
    white-space: normal;
    text-align: center;
  }

  .staff-performance-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .lead-action-row {
    grid-template-columns: 1fr;
  }

  .social-enquiry-row {
    grid-template-columns: 1fr;
  }

  .social-enquiry-status {
    justify-items: start;
    text-align: left;
  }

  .lead-row-side {
    justify-items: start;
    text-align: left;
  }

  .staff-stats {
    justify-content: flex-start;
  }

  .owner-summary-grid,
  .owner-summary-insights {
    grid-template-columns: 1fr;
  }

  .dashboard-mini-table {
    font-size: 11px;
  }

  .followups-mini-table,
  .enquiries-mini-table {
    min-width: 520px;
  }
}
