:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --panel-soft: rgba(5, 5, 5, 0.035);
  --line: rgba(5, 5, 5, 0.1);
  --line-strong: rgba(5, 5, 5, 0.18);
  --text: #080807;
  --muted: rgba(8, 8, 7, 0.56);
  --dark-text: #050505;
  --brand-aqua: #21cfc4;
  --brand-aqua-soft: rgba(33, 207, 196, 0.12);
  --brand-aqua-line: rgba(33, 207, 196, 0.42);
  --gold: #111111;
  --green: #16834a;
  --red: #ff7a7a;
  --orange: #b46a15;
  --accent-panel: #0d0d0d;
  --accent-text: #ffffff;
  --accent-muted: rgba(255, 255, 255, 0.62);
  --accent-bar: #ffffff;
  --radius: 8px;
  --card-radius: 18px;
  --shadow: 0 18px 44px rgba(20, 17, 10, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: 0;
}

button {
  font: inherit;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 17.5rem minmax(0, 1fr);
  width: min(100%, 1600px);
  min-height: 100vh;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100vh;
  padding: 1.35rem;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(18px);
}

.customer-sidebar {
  gap: 1rem;
  padding: 1.1rem;
  background:
    linear-gradient(180deg, rgba(33, 207, 196, 0.06), rgba(255, 255, 255, 0) 34%),
    rgba(255, 255, 255, 0.78);
}

.customer-sidebar .brand {
  min-height: 3rem;
  padding: 0.25rem 0.35rem;
  border-radius: var(--radius);
}

.customer-sidebar .brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-color: var(--line);
  border-radius: 999px;
}

.customer-sidebar .brand-mark img {
  width: 1.35rem;
  height: 1.35rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--dark-text);
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 800;
}

.brand-mark img {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
}

.brand strong,
h2,
.metric-card strong {
  font-family: "DM Sans", system-ui, sans-serif;
}

.brand small {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-stack {
  display: grid;
  gap: 0.45rem;
}

.sidebar-customer-card {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.customer-sidebar .sidebar-customer-card {
  position: relative;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  padding: 0.75rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(20, 17, 10, 0.06);
}

.customer-sidebar .sidebar-customer-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--brand-aqua);
}

.customer-sidebar .sidebar-customer-card .client-avatar {
  width: 2.75rem;
  height: 2.75rem;
}

.sidebar-customer-card strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-nav {
  align-content: start;
}

.customer-sidebar .customer-nav {
  gap: 0.3rem;
}

.nav-item,
.icon-button,
.primary-button,
.secondary-button,
.date-trigger,
.segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-item {
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
}

.nav-item.active,
.nav-item:hover {
  border-color: var(--brand-aqua-line);
  background: var(--brand-aqua-soft);
  color: var(--text);
}

.nav-item.active svg {
  color: var(--brand-aqua);
}

.nav-item svg,
.icon-button svg,
.primary-button svg,
.secondary-button svg,
.funnel-card-head svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 1.8;
}

.sidebar-divider {
  display: block;
  height: 1px;
  margin: 0.4rem 0;
  background: var(--line);
}

.sidebar-section-label {
  display: block;
  padding: 0.2rem 0.85rem 0.1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-subitem {
  min-height: 2.35rem;
  padding-left: 0.85rem;
  color: rgba(8, 8, 7, 0.66);
  font-size: 0.86rem;
}

.customer-sidebar .nav-item {
  min-height: 2.45rem;
  padding: 0 0.75rem;
}

.customer-sidebar .nav-item.active {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(20, 17, 10, 0.06);
}

.customer-sidebar .nav-item:hover {
  border-color: var(--brand-aqua-line);
}

.dashboard {
  position: relative;
  display: grid;
  gap: 0.45rem;
  overflow: hidden;
  padding: 1.35rem;
}

.customer-dashboard {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 30px 1.35rem 1.35rem;
}

.dashboard::before {
  content: "";
  position: absolute;
  top: clamp(3.5rem, 7vw, 6rem);
  right: clamp(-2rem, 3vw, 3rem);
  width: min(48vw, 42rem);
  min-width: 24rem;
  aspect-ratio: 1;
  pointer-events: none;
  background: rgba(8, 8, 7, 0.16);
  filter: blur(5px);
  opacity: 0.9;
  transform: rotate(-8deg);
  -webkit-mask: url("./assets/only-brands-mark.png") center / contain no-repeat;
  mask: url("./assets/only-brands-mark.png") center / contain no-repeat;
}

.dashboard > * {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0 0.05rem;
  z-index: 40;
}

.customer-dashboard .topbar {
  position: relative;
  align-items: flex-start;
  margin: 0 0 40px;
  padding-top: 0;
  padding-bottom: 0;
}

.customer-dashboard .top-actions {
  position: absolute;
  top: 0;
  right: 0;
}

.customer-kpi-section {
  display: grid;
  gap: 0;
  margin-top: 0;
  padding: 20px 15px 10px;
  border: 1px solid rgba(8, 8, 7, 0.16);
  border-radius: var(--card-radius);
  background: rgba(8, 8, 7, 0.035);
}

.kpi-section-title {
  margin: 0;
  font-family: "Hedvig Letters Serif", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.kpi-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 20px;
}

.kpi-section-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 0;
}

.kpi-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.18rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.kpi-tabs button {
  min-height: 2.05rem;
  padding: 0 0.78rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.kpi-tabs button.active,
.kpi-tabs button:hover {
  background: var(--brand-aqua-soft);
  color: var(--text);
}

.customer-metric-grid {
  grid-template-columns: repeat(4, minmax(8.25rem, 10.75rem));
  justify-content: flex-start;
  gap: 0.38rem;
  margin-top: 0;
}

.customer-metric-grid .metric-card {
  min-height: 3rem;
  padding: 10px 0.5rem;
}

.customer-metric-grid .metric-card {
  overflow: hidden;
}

.customer-metric-grid .metric-card strong {
  margin-top: 0.22rem;
  font-size: clamp(0.95rem, 1.1vw, 1.18rem);
}

.customer-metric-grid .metric-card small {
  margin-top: 0.16rem;
  font-size: 0.64rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-line {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-family: sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 34rem;
  font-family: "Hedvig Letters Serif", Georgia, serif;
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  font-weight: 400;
  line-height: 1;
}

h2 {
  font-size: 1.15rem;
  line-height: 1.12;
}

.serif-panel-title {
  font-family: "Hedvig Letters Serif", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
}

.top-actions {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
}

.customer-project-status {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}

.customer-project-status > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.customer-project-status .status-pill {
  width: auto;
  min-width: 7.5rem;
}

.view-hidden {
  display: none;
}

.icon-button {
  width: 2.75rem;
  height: 2.75rem;
  border-color: var(--line);
  background: var(--panel-solid);
  color: var(--text);
}

.primary-button,
.secondary-button,
.date-trigger {
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  white-space: nowrap;
}

.primary-button {
  border-color: #080807;
  background: #080807;
  color: #ffffff;
  font-weight: 800;
}

.secondary-button {
  border-color: var(--line);
  background: var(--panel-solid);
  color: var(--text);
}

.date-picker {
  position: relative;
}

.date-trigger {
  justify-content: flex-start;
  width: 13.75rem;
  min-height: 3.15rem;
  padding: 0.35rem 1.1rem 0.35rem 0.38rem;
  border: 1px solid rgba(5, 5, 5, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: #080807;
  box-shadow:
    0 10px 26px rgba(5, 5, 5, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.92);
  font-weight: 800;
  cursor: pointer;
}

.date-trigger:hover,
.date-picker.open .date-trigger {
  border-color: rgba(5, 5, 5, 0.14);
  box-shadow:
    0 14px 34px rgba(5, 5, 5, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.92);
}

.date-trigger-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-aqua-soft);
  color: #080807;
}

.date-trigger-icon svg {
  width: 1.08rem;
  height: 1.08rem;
  color: var(--brand-aqua);
}

.date-popover {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 60;
  display: none;
  grid-template-columns: 9.4rem 15.6rem;
  overflow: hidden;
  width: 25rem;
  min-height: 20.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(5, 5, 5, 0.16);
}

.date-picker.open .date-popover {
  display: grid;
}

.date-presets {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem;
  border-right: 1px solid var(--line);
}

.date-presets button,
.calendar-arrow,
.calendar-grid button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.date-presets button {
  min-height: 1.75rem;
  padding: 0 0.35rem;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
}

.date-presets button:hover,
.date-presets button.active {
  background: var(--brand-aqua-soft);
}

.calendar-panel {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 0.75rem 1rem 0.9rem;
}

.calendar-head {
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.calendar-head strong {
  text-align: center;
  font-size: 0.88rem;
}

.calendar-arrow {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--muted);
}

.calendar-arrow:hover {
  background: var(--brand-aqua-soft);
  color: var(--text);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1.65rem);
  gap: 0.28rem;
  align-content: start;
  justify-content: center;
}

.calendar-weekdays {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}

.calendar-grid button {
  width: 1.65rem;
  height: 1.65rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.calendar-grid button:hover:not(:disabled) {
  background: var(--brand-aqua-soft);
}

.calendar-grid button.muted {
  color: rgba(8, 8, 7, 0.44);
}

.calendar-grid button.disabled {
  color: rgba(8, 8, 7, 0.14);
  cursor: default;
}

.calendar-grid button.selected {
  background: #080807;
  color: #ffffff;
  box-shadow: 0 0 0 2px var(--brand-aqua-line);
}

.calendar-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.9rem;
}

.apply-date-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(5, 5, 5, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-aqua);
  box-shadow:
    0 10px 26px rgba(5, 5, 5, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.apply-date-button:hover {
  border-color: var(--brand-aqua-line);
  box-shadow:
    0 14px 34px rgba(5, 5, 5, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.92);
}

.apply-date-button svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2.4;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.metric-card {
  min-height: 6.25rem;
  padding: 0.75rem 0.9rem;
  background: var(--panel-solid);
}

.metric-card span,
.client-summary span,
.funnel-card span,
.source-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-top: 0.72rem;
  font-size: clamp(1.25rem, 1.82vw, 1.85rem);
  line-height: 0.96;
}

.metric-card small {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.74rem;
}

.positive {
  color: var(--green);
}

.warning {
  color: var(--orange);
}

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

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

.panel {
  padding: 1rem;
  background: var(--panel);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-header.compact {
  align-items: center;
}

.segmented {
  display: flex;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.segmented button {
  min-width: 2.7rem;
  height: 2rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.segmented button.active {
  background: #080807;
  color: #ffffff;
}

.client-list {
  display: grid;
  gap: 0.6rem;
}

.settings-placeholder {
  max-width: 760px;
}

.settings-placeholder h2 {
  margin: 0.35rem 0 0.45rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.settings-placeholder p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.client-row {
  display: grid;
  grid-template-columns: minmax(14rem, 1.35fr) repeat(4, minmax(5.8rem, 0.8fr)) 6.8rem;
  gap: 0.8rem;
  align-items: center;
  min-height: 5rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--panel-solid);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.client-row:hover,
.client-row.active {
  border-color: rgba(5, 5, 5, 0.22);
  background: rgba(5, 5, 5, 0.045);
}

.client-identity {
  display: grid;
  grid-template-columns: 0.45rem 2.35rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
}

.client-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(33, 207, 196, 0.12);
  color: #08756f;
  font-size: 0.72rem;
  font-weight: 800;
}

.client-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-title-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.active-client-dot {
  flex: 0 0 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--brand-aqua);
  opacity: 0;
  box-shadow: 0 0 0 3px rgba(33, 207, 196, 0.16);
  transition: opacity 160ms ease;
}

.client-row:hover .active-client-dot {
  opacity: 1;
}

.client-name strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
}

.client-name span,
.client-stat span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.client-stat strong {
  font-size: 0.95rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1.8rem;
  padding: 0 0.65rem;
  box-sizing: border-box;
  border: 1px solid rgba(246, 177, 93, 0.45);
  border-radius: 999px;
  background: rgba(246, 177, 93, 0.12);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.good {
  border-color: rgba(114, 224, 162, 0.4);
  background: rgba(114, 224, 162, 0.12);
  color: var(--green);
}

.status-pill.critical {
  border-color: rgba(255, 122, 122, 0.4);
  background: rgba(255, 122, 122, 0.12);
  color: var(--red);
}

.customer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 0.85rem;
}

.customer-profile-card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
}

.customer-profile-card .client-avatar {
  width: 4rem;
  height: 4rem;
  font-size: 1rem;
}

.customer-profile-card h2 {
  margin: 0 0 0.25rem;
  font-family: "Hedvig Letters Serif", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
}

.customer-profile-card p,
.customer-note p,
.muted-copy {
  margin: 0;
  color: var(--muted);
}

.customer-note {
  display: grid;
  align-content: center;
  gap: 0.5rem;
}

.customer-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 0.48rem;
}

.timeline-placeholder,
.funnel-placeholder {
  display: grid;
  gap: 0.65rem;
}

.placeholder-row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) 4rem;
  gap: 0.7rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.placeholder-bar {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-soft);
}

.placeholder-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(8, 8, 7, 0.3);
}

.client-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.client-summary div {
  min-height: 5.4rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--panel-solid);
}

.client-summary strong {
  display: block;
  margin-top: 0.95rem;
  font-size: 1.25rem;
}

.funnel-card {
  margin-top: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--card-radius);
  background: var(--accent-panel);
  color: var(--accent-text);
}

.funnel-card span {
  color: var(--accent-muted);
}

.funnel-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.funnel-card-head strong {
  display: block;
  margin-top: 0.25rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.3rem;
}

.funnel-steps {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.step-row {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) minmax(8rem, 1.25fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 800;
}

.step-bar {
  height: 0.58rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-text) 14%, transparent);
}

.step-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-bar);
}

.step-value {
  font-size: 0.8rem;
  font-weight: 900;
}

.decision-card {
  margin-top: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--panel-solid);
}

.decision-card span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.decision-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.sources-panel {
  margin-bottom: 1rem;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
}

.source-item {
  min-height: 7rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--panel-solid);
}

.source-item strong {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.95rem;
}

.source-item em {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.settings-panel {
  margin-bottom: 1rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
  gap: 0.85rem;
}

.customer-settings-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.settings-card {
  min-height: 13rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--panel-solid);
}

.settings-card.global {
  background: #080807;
  color: #ffffff;
}

.settings-card-head span,
.settings-row span,
.integration-row span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.settings-card.global .settings-card-head span,
.settings-card.global .settings-row span {
  color: rgba(255, 255, 255, 0.62);
}

.settings-card-head strong {
  display: block;
  margin-top: 0.3rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.15rem;
}

.settings-card p {
  margin: 1rem 0;
  color: var(--muted);
  line-height: 1.5;
}

.settings-card.global p {
  color: rgba(255, 255, 255, 0.72);
}

.settings-row,
.integration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.8rem;
  border-top: 1px solid var(--line);
}

.settings-card.global .settings-row {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.integration-list {
  display: grid;
  margin-top: 0.8rem;
}

.integration-row strong,
.integration-row span {
  display: block;
}

.integration-row em {
  color: var(--text);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 1160px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .customer-nav {
    grid-template-columns: 1fr;
  }

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

  .customer-hero,
  .customer-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .settings-grid,
  .customer-settings-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dashboard,
  .sidebar {
    padding: 1rem;
  }

  .topbar,
  .panel-header {
    flex-direction: column;
  }

  .top-actions,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .date-picker,
  .date-trigger {
    width: 100%;
  }

  .date-popover {
    right: auto;
    left: 0;
    grid-template-columns: 1fr;
    width: min(100%, 24rem);
  }

  .date-presets {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-grid,
  .workspace-grid,
  .source-grid,
  .settings-grid,
  .customer-settings-list,
  .client-summary,
  .customer-hero,
  .customer-detail-grid,
  .nav-stack {
    grid-template-columns: 1fr;
  }

  .client-row {
    grid-template-columns: 1fr 1fr;
  }

  .client-identity {
    grid-column: 1 / -1;
  }

  .step-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

body.customer-page .customer-dashboard {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  row-gap: 0 !important;
  gap: 0 !important;
  padding: 30px 1.35rem 1.35rem !important;
}

body.customer-page .customer-dashboard .topbar {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  min-height: 0 !important;
  margin: 0 0 40px !important;
  padding: 0 !important;
}

body.customer-page .customer-dashboard .topbar h1 {
  margin: 0 !important;
  line-height: 1 !important;
}

body.customer-page .customer-dashboard .top-actions {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: auto !important;
}

body.customer-page .customer-kpi-section {
  row-gap: 0 !important;
  margin: 0 0 30px !important;
  padding: 20px 15px 10px !important;
  border: 1px solid rgba(8, 8, 7, 0.1) !important;
  border-radius: 28px !important;
  background: #f4f4f2 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 42px rgba(8, 8, 7, 0.06) !important;
}

body.customer-page .kpi-section-title {
  margin: 0 !important;
  font-size: 1.5rem !important;
}

body.customer-page .kpi-section-head {
  margin: 0 0 20px !important;
}

body.customer-page .kpi-section-toolbar {
  margin: 0 !important;
}

body.customer-page .customer-metric-grid {
  margin: 0 !important;
}

body.customer-page .customer-metric-grid .metric-card {
  min-height: 4.35rem !important;
  padding: 14px 0.75rem !important;
  border-color: rgba(8, 8, 7, 0.08) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow:
    0 12px 26px rgba(8, 8, 7, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

body.customer-page .customer-metric-grid .metric-card span {
  font-size: 0.76rem !important;
}

body.customer-page .customer-metric-grid .metric-card strong {
  font-size: 1.38rem !important;
  line-height: 1.08 !important;
}

body.customer-page .customer-metric-grid .metric-card small {
  font-size: 0.7rem !important;
}

body.customer-page .kpi-tabs {
  border-color: rgba(8, 8, 7, 0.08) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(8, 8, 7, 0.06) !important;
}

body.customer-page .kpi-tabs button.active {
  background: rgba(33, 207, 196, 0.16) !important;
}

body.customer-page .funnel-card-section {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.85rem !important;
  margin: 0 !important;
}

body.customer-page .funnel-card {
  display: grid !important;
  position: relative !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: flex-start !important;
  gap: 0 !important;
  min-height: 12.1rem !important;
  padding: 0.95rem 1rem 1rem !important;
  border: 1px solid rgba(8, 8, 7, 0.08) !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow:
    0 12px 26px rgba(8, 8, 7, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease !important;
}

body.customer-page a.funnel-card:hover {
  border-color: rgba(33, 207, 196, 0.34) !important;
  box-shadow:
    0 16px 34px rgba(8, 8, 7, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
  transform: translateY(-1px) !important;
}

body.customer-page .funnel-card-icon {
  display: grid !important;
  width: 2.85rem !important;
  height: 2.85rem !important;
  place-items: center !important;
  border-radius: 15px !important;
  background: rgba(33, 207, 196, 0.14) !important;
  color: var(--brand-aqua) !important;
}

body.customer-page .funnel-card-icon svg {
  width: 1.15rem !important;
  height: 1.15rem !important;
  stroke-width: 2.1 !important;
}

body.customer-page .funnel-card-kicker {
  display: block !important;
  margin: 0 0 0.2rem !important;
  color: rgba(8, 8, 7, 0.48) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
}

body.customer-page .funnel-card strong {
  display: block !important;
  color: #080807 !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
}

body.customer-page .funnel-card-content {
  min-width: 0 !important;
}

body.customer-page .funnel-card-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  margin-top: 0 !important;
}

body.customer-page .funnel-card-roas {
  display: grid !important;
  position: absolute !important;
  top: 0.92rem !important;
  right: 1rem !important;
  flex: 0 0 auto !important;
  justify-items: end !important;
  min-width: 3.25rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #080807 !important;
  transform: none !important;
}

body.customer-page .funnel-card-roas small {
  color: rgba(8, 8, 7, 0.42) !important;
  font-size: 0.6rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

body.customer-page .funnel-card-roas b {
  display: block !important;
  margin: 0.18rem 0 0 !important;
  color: #080807 !important;
  font-size: 1.18rem !important;
  font-weight: 900 !important;
  line-height: 0.9 !important;
}

body.customer-page .funnel-diagram {
  display: grid !important;
  gap: 0.35rem !important;
  margin: 0.78rem 0 0 !important;
}

body.customer-page .funnel-stat-row {
  display: grid !important;
  grid-template-columns: 6.25rem minmax(0, 1fr) 5.35rem !important;
  align-items: center !important;
  gap: 0.45rem !important;
}

body.customer-page .funnel-stat-row > span:first-child {
  color: rgba(8, 8, 7, 0.48) !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.customer-page .funnel-stat-bar {
  display: block !important;
  overflow: hidden !important;
  height: 0.38rem !important;
  border-radius: 999px !important;
  background: #ededeb !important;
}

body.customer-page .funnel-stat-bar span {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: var(--brand-aqua) !important;
}

body.customer-page .funnel-stat-row > strong {
  min-width: 0 !important;
  color: #080807 !important;
  font-size: 0.9rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-align: right !important;
}

body.customer-page .funnel-add-card {
  place-items: center !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 0.75rem !important;
  border-style: dashed !important;
  border-color: rgba(8, 8, 7, 0.14) !important;
  background: #f0f0ee !important;
  color: rgba(8, 8, 7, 0.46) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
  cursor: pointer !important;
}

body.customer-page .funnel-add-card:hover {
  border-color: rgba(33, 207, 196, 0.55) !important;
  background: #f5f5f3 !important;
  color: #080807 !important;
}

body.customer-page .funnel-add-card .funnel-add-plus {
  display: grid !important;
  width: 2.75rem !important;
  height: 2.75rem !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: var(--brand-aqua) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

body.customer-page .funnel-add-card strong {
  color: inherit !important;
  font-size: 1.02rem !important;
}

body.customer-page .funnel-command-section {
  overflow: hidden !important;
  position: relative !important;
  margin: 0 0 30px !important;
  padding: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(33, 207, 196, 0.28), transparent 30%),
    linear-gradient(145deg, #0d0d0c 0%, #171714 54%, #080807 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 52px rgba(8, 8, 7, 0.16) !important;
}

body.customer-page .funnel-command-section::after {
  content: "" !important;
  position: absolute !important;
  right: -5.5rem !important;
  top: -6rem !important;
  width: 14rem !important;
  height: 14rem !important;
  border-radius: 999px !important;
  background: rgba(33, 207, 196, 0.12) !important;
  filter: blur(22px) !important;
  pointer-events: none !important;
}

body.customer-page .funnel-command-head,
body.customer-page .funnel-core-metrics,
body.customer-page .funnel-insight-strip {
  position: relative !important;
  z-index: 1 !important;
}

body.customer-page .funnel-command-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  margin: 0 0 16px !important;
}

body.customer-page .funnel-command-eyebrow {
  display: inline-flex !important;
  margin: 0 0 0.45rem !important;
  color: rgba(33, 207, 196, 0.88) !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

body.customer-page .funnel-command-head h2 {
  margin: 0 !important;
  max-width: 42rem !important;
  color: #ffffff !important;
  font-family: "Hedvig Letters Serif", Georgia, serif !important;
  font-size: clamp(1.75rem, 2.1vw, 2.45rem) !important;
  font-weight: 400 !important;
  line-height: 0.96 !important;
}

body.customer-page .funnel-command-head p {
  max-width: 42rem !important;
  margin: 0.58rem 0 0 !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}

body.customer-page .funnel-state-pill,
body.customer-page .funnel-roas-badge {
  display: grid !important;
  flex: 0 0 auto !important;
  align-content: center !important;
  justify-items: end !important;
  min-width: 7.4rem !important;
  min-height: 4.2rem !important;
  padding: 0.65rem 0.9rem !important;
  border: 1px solid rgba(33, 207, 196, 0.34) !important;
  border-radius: 20px !important;
  background: rgba(33, 207, 196, 0.14) !important;
  color: rgba(255, 255, 255, 0.88) !important;
  white-space: nowrap !important;
}

body.customer-page .funnel-roas-badge span {
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

body.customer-page .funnel-roas-badge strong {
  display: block !important;
  margin: 0.35rem 0 0 !important;
  color: #ffffff !important;
  font-size: 2.05rem !important;
  font-weight: 850 !important;
  line-height: 0.9 !important;
}

body.customer-page .funnel-core-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
}

body.customer-page .funnel-core-metrics .metric-card {
  min-height: 5rem !important;
  padding: 15px 0.9rem !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

body.customer-page .funnel-core-metrics .metric-card span {
  font-size: 0.76rem !important;
}

body.customer-page .funnel-core-metrics .metric-card strong {
  margin-top: 0.72rem !important;
  font-size: 1.38rem !important;
}

body.customer-page .funnel-core-metrics .metric-card small {
  font-size: 0.7rem !important;
}

body.customer-page .funnel-insight-strip {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin: 0.85rem 0 0 !important;
  padding: 0.72rem 0.85rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

body.customer-page .funnel-insight-strip span {
  color: rgba(255, 255, 255, 0.48) !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
}

body.customer-page .funnel-insight-strip strong {
  color: #ffffff !important;
  font-size: 0.9rem !important;
  font-weight: 850 !important;
}

body.customer-page .funnel-insight-strip p {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  text-align: right !important;
}

body.customer-page .funnel-step-section {
  margin: 0 !important;
  padding: 22px 18px !important;
  border-radius: 30px !important;
}

body.customer-page .funnel-step-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0.85rem !important;
}

body.customer-page .funnel-step-card {
  display: grid !important;
  gap: 0.82rem !important;
  min-height: 9.35rem !important;
  padding: 0.95rem !important;
  border: 1px solid rgba(8, 8, 7, 0.08) !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow:
    0 12px 26px rgba(8, 8, 7, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

body.customer-page .funnel-step-head {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
}

body.customer-page .funnel-step-head > span {
  display: grid !important;
  width: 1.85rem !important;
  height: 1.85rem !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: #080807 !important;
  color: var(--brand-aqua) !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
}

body.customer-page .funnel-step-head strong {
  min-width: 0 !important;
  color: #080807 !important;
  font-size: 0.96rem !important;
  line-height: 1.05 !important;
}

body.customer-page .funnel-step-bar {
  overflow: hidden !important;
  height: 0.45rem !important;
  border-radius: 999px !important;
  background: #ededeb !important;
}

body.customer-page .funnel-step-bar span {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: var(--brand-aqua) !important;
}

body.customer-page .funnel-step-metrics {
  display: grid !important;
  gap: 0.35rem !important;
}

body.customer-page .funnel-step-metrics div {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem !important;
}

body.customer-page .funnel-step-metrics span {
  color: rgba(8, 8, 7, 0.48) !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
}

body.customer-page .funnel-step-metrics strong {
  color: #080807 !important;
  font-size: 0.86rem !important;
  font-weight: 850 !important;
}

body.customer-page .funnel-detail-section {
  border-radius: 30px !important;
}

body.customer-page .funnel-detail-panel {
  border-radius: 24px !important;
  background: #ffffff !important;
}

body.customer-page .funnel-detail-panel .panel-header {
  padding-bottom: 0.1rem !important;
}

body.customer-page .customer-sidebar {
  gap: 1.15rem !important;
  padding: 1.15rem 0.95rem !important;
  border-right: 0 !important;
  background: #efefed !important;
  box-shadow: inset -1px 0 0 rgba(8, 8, 7, 0.04) !important;
}

body.customer-page .customer-sidebar .brand {
  min-height: 3.15rem !important;
  padding: 0.25rem 0.35rem !important;
  border-radius: 18px !important;
}

body.customer-page .customer-sidebar .brand-mark {
  width: 2.45rem !important;
  height: 2.45rem !important;
  border-color: rgba(8, 8, 7, 0.1) !important;
  background: #f8f8f6 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

body.customer-page .customer-sidebar .sidebar-customer-card {
  border-color: rgba(8, 8, 7, 0.08) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 26px rgba(8, 8, 7, 0.06) !important;
}

body.customer-page .customer-sidebar .sidebar-customer-card::before {
  width: 0 !important;
}

body.customer-page .customer-sidebar .customer-nav {
  gap: 0.58rem !important;
}

body.customer-page .customer-sidebar .nav-item {
  min-height: 2.75rem !important;
  padding: 0 0.85rem !important;
  border-color: transparent !important;
  border-radius: 16px !important;
  background: transparent !important;
  color: rgba(8, 8, 7, 0.62) !important;
  font-weight: 750 !important;
}

body.customer-page .customer-sidebar .nav-item svg {
  width: 1.05rem !important;
  height: 1.05rem !important;
  color: rgba(8, 8, 7, 0.54) !important;
  stroke-width: 1.85 !important;
}

body.customer-page .customer-sidebar .nav-item.active,
body.customer-page .customer-sidebar .nav-item:hover {
  border-color: rgba(255, 255, 255, 0.82) !important;
  background: #ffffff !important;
  color: #080807 !important;
  box-shadow:
    0 12px 26px rgba(8, 8, 7, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

body.customer-page .customer-sidebar .nav-item.active svg,
body.customer-page .customer-sidebar .nav-item:hover svg {
  color: #080807 !important;
}

body.customer-page .customer-sidebar .overview-link {
  margin-bottom: 0.2rem !important;
}

body.customer-page .customer-sidebar .sidebar-divider {
  margin: 0.2rem 0 !important;
  background: rgba(8, 8, 7, 0.08) !important;
}

body.customer-page .customer-sidebar .sidebar-section-label {
  padding: 0.35rem 0.85rem 0.15rem !important;
  color: rgba(8, 8, 7, 0.48) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.tracking-command-section {
  overflow: hidden;
  position: relative;
  display: grid;
  gap: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 0%, rgba(33, 207, 196, 0.28), transparent 32%),
    linear-gradient(145deg, #0d0d0c 0%, #171714 54%, #080807 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 52px rgba(8, 8, 7, 0.16);
}

.tracking-command-section::after {
  content: "";
  position: absolute;
  right: -5.5rem;
  top: -6rem;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: rgba(33, 207, 196, 0.12);
  filter: blur(22px);
  pointer-events: none;
}

.tracking-command-head,
.tracking-command-metrics {
  position: relative;
  z-index: 1;
}

.tracking-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 16px;
}

.tracking-command-eyebrow {
  display: inline-flex;
  margin: 0 0 0.45rem;
  color: rgba(33, 207, 196, 0.88);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
}

.tracking-command-head h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Hedvig Letters Serif", Georgia, serif;
  font-size: clamp(1.8rem, 2.25vw, 2.55rem);
  font-weight: 400;
  line-height: 0.96;
}

.tracking-command-head p {
  max-width: 40rem;
  margin: 0.58rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
}

.tracking-command-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 2.15rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(33, 207, 196, 0.34);
  border-radius: 999px;
  background: rgba(33, 207, 196, 0.13);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
  font-weight: 850;
  white-space: nowrap;
}

.tracking-command-metrics {
  gap: 0.75rem;
}

.tracking-command-metrics .metric-card {
  min-height: 5rem;
  padding: 15px 0.9rem;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.customer-page .customer-command-section {
  padding: 18px !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(33, 207, 196, 0.28), transparent 32%),
    linear-gradient(145deg, #0d0d0c 0%, #171714 54%, #080807 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 52px rgba(8, 8, 7, 0.16) !important;
}

body.customer-page .customer-command-section .kpi-section-head {
  position: relative !important;
  z-index: 1 !important;
  align-items: center !important;
  margin: 0 0 16px !important;
}

body.customer-page .customer-command-section .kpi-section-title {
  color: #ffffff !important;
  font-family: "Hedvig Letters Serif", Georgia, serif !important;
  font-size: clamp(1.75rem, 2.1vw, 2.45rem) !important;
  font-weight: 400 !important;
}

body.customer-page .customer-command-section .kpi-tabs {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

body.customer-page .customer-command-section .kpi-tabs button {
  color: rgba(255, 255, 255, 0.68) !important;
}

body.customer-page .customer-command-section .kpi-tabs button.active,
body.customer-page .customer-command-section .kpi-tabs button:hover {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #080807 !important;
}

body.customer-page .customer-command-section .customer-metric-grid {
  position: relative !important;
  z-index: 1 !important;
  gap: 0.75rem !important;
}

body.customer-page .customer-command-section .metric-card {
  min-height: 5rem !important;
  padding: 15px 0.9rem !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

/* 2026-05-19 Slim dashboard pass */
:root {
  --bg: #f6f7fc;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #ffffff;
  --panel-soft: #f4f6fb;
  --line: rgba(18, 24, 38, 0.08);
  --line-strong: rgba(18, 24, 38, 0.13);
  --text: #111827;
  --muted: rgba(17, 24, 39, 0.5);
  --brand-aqua: #2563eb;
  --brand-aqua-soft: rgba(37, 99, 235, 0.1);
  --brand-aqua-line: rgba(37, 99, 235, 0.26);
  --green: #1f9d64;
  --orange: #c27614;
  --red: #e85f5f;
  --radius: 12px;
  --card-radius: 16px;
  --shadow: 0 12px 30px rgba(28, 35, 61, 0.07);
}

html,
body {
  background:
    radial-gradient(circle at 78% 0%, rgba(37, 99, 235, 0.08), transparent 28rem),
    var(--bg) !important;
}

.app-shell {
  grid-template-columns: 13.25rem minmax(0, 1fr) !important;
  width: min(100%, 1480px) !important;
}

.sidebar {
  gap: 1.35rem !important;
  padding: 1.1rem 0.8rem !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border-right: 1px solid rgba(18, 24, 38, 0.07) !important;
  box-shadow: none !important;
}

.brand {
  gap: 0.58rem !important;
  min-height: 2.45rem !important;
  padding: 0 0.25rem !important;
}

.brand-mark,
.customer-sidebar .brand-mark {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 11px !important;
  border-color: rgba(18, 24, 38, 0.08) !important;
  box-shadow: 0 8px 18px rgba(28, 35, 61, 0.06) !important;
}

.brand-mark img,
.customer-sidebar .brand-mark img {
  width: 1.12rem !important;
  height: 1.12rem !important;
}

.brand strong {
  font-size: 0.82rem !important;
}

.nav-stack {
  gap: 0.18rem !important;
}

.nav-item,
.customer-sidebar .nav-item {
  min-height: 2.25rem !important;
  padding: 0 0.62rem !important;
  border-radius: 12px !important;
  color: rgba(17, 24, 39, 0.48) !important;
  font-size: 0.82rem !important;
  font-weight: 750 !important;
}

.nav-item.active,
.customer-sidebar .nav-item.active,
.customer-sidebar .nav-item.active {
  border-color: #2563eb !important;
  background: #2563eb !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2) !important;
  color: #ffffff !important;
}

.nav-item:hover,
.customer-sidebar .nav-item:hover {
  border-color: rgba(37, 99, 235, 0.12) !important;
  background: rgba(37, 99, 235, 0.08) !important;
  box-shadow: none !important;
  color: #111827 !important;
}

.nav-item.active svg,
.customer-sidebar .nav-item.active svg {
  color: #ffffff !important;
}

body.customer-page .customer-sidebar .nav-item.active {
  border-color: #2563eb !important;
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2) !important;
}

body.customer-page .customer-sidebar .nav-item.active svg {
  color: #ffffff !important;
}

.nav-item svg {
  width: 0.9rem !important;
  height: 0.9rem !important;
  stroke-width: 1.9 !important;
}

.sidebar-customer-card,
.customer-sidebar .sidebar-customer-card {
  grid-template-columns: 2rem minmax(0, 1fr) !important;
  gap: 0.5rem !important;
  padding: 0.5rem 0.58rem !important;
  border-radius: 14px !important;
  border-color: rgba(18, 24, 38, 0.08) !important;
  box-shadow: 0 10px 24px rgba(28, 35, 61, 0.06) !important;
}

.customer-sidebar .sidebar-customer-card::before {
  width: 2px !important;
  background: var(--brand-aqua) !important;
}

.client-avatar,
.customer-sidebar .sidebar-customer-card .client-avatar {
  width: 2rem !important;
  height: 2rem !important;
  font-size: 0.66rem !important;
}

.dashboard,
.customer-dashboard {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  overflow: visible !important;
  padding: 1.15rem 1.25rem !important;
}

.dashboard::before {
  display: none !important;
}

.topbar,
.customer-dashboard .topbar {
  align-items: center !important;
  margin: 0 !important;
  padding: 0.15rem 0 0.2rem !important;
  min-height: 2.85rem !important;
}

.top-actions {
  align-items: center !important;
}

.global-search {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  width: 15rem;
  min-height: 2.45rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(18, 24, 38, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(28, 35, 61, 0.045);
}

.global-search svg {
  width: 0.9rem;
  height: 0.9rem;
  color: rgba(17, 24, 39, 0.36);
}

.global-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.global-search input::placeholder {
  color: rgba(17, 24, 39, 0.34);
}

.welcome-line {
  margin-bottom: 0.18rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
}

h1 {
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: clamp(1.3rem, 1.7vw, 1.9rem) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
}

.serif-panel-title,
.kpi-section-title {
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

.date-trigger {
  width: 11.5rem !important;
  min-height: 2.45rem !important;
  padding: 0.28rem 0.82rem 0.28rem 0.3rem !important;
  border-color: rgba(18, 24, 38, 0.08) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(28, 35, 61, 0.045) !important;
  font-size: 0.8rem !important;
}

.date-trigger-icon {
  width: 1.86rem !important;
  height: 1.86rem !important;
  background: rgba(37, 99, 235, 0.1) !important;
  color: var(--brand-aqua) !important;
}

.date-trigger-icon svg {
  width: 0.92rem !important;
  height: 0.92rem !important;
}

.date-popover {
  border-radius: 18px !important;
  box-shadow: 0 22px 54px rgba(28, 35, 61, 0.14) !important;
}

.tracking-command-section,
body.customer-page .customer-command-section,
body.customer-page .funnel-command-section,
body.customer-page .funnel-step-section,
body.customer-page .funnel-detail-section {
  gap: 0.9rem !important;
  margin: 0 !important;
  padding: 1rem !important;
  border: 1px solid rgba(18, 24, 38, 0.08) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 255, 0.96)) !important;
  box-shadow: 0 16px 38px rgba(28, 35, 61, 0.07) !important;
}

.tracking-command-section::after {
  display: none !important;
}

.tracking-command-head,
.kpi-section-head,
body.customer-page .customer-command-section .kpi-section-head {
  align-items: center !important;
  margin: 0 !important;
}

.tracking-command-eyebrow,
.section-eyebrow,
.funnel-card-kicker,
body.customer-page .funnel-card-kicker {
  color: rgba(37, 99, 235, 0.78) !important;
  font-size: 0.66rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.02em !important;
}

.tracking-command-head h2,
body.customer-page .customer-command-section .kpi-section-title {
  color: #111827 !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: clamp(1.05rem, 1.35vw, 1.42rem) !important;
  font-weight: 850 !important;
  line-height: 1.08 !important;
}

.tracking-command-head p {
  max-width: 36rem !important;
  margin-top: 0.25rem !important;
  color: rgba(17, 24, 39, 0.48) !important;
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
}

.tracking-command-pill {
  min-height: 1.75rem !important;
  padding: 0 0.65rem !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
  background: rgba(37, 99, 235, 0.08) !important;
  color: rgba(17, 24, 39, 0.64) !important;
  font-size: 0.68rem !important;
}

.metric-grid,
.tracking-command-metrics,
body.customer-page .customer-command-section .customer-metric-grid {
  gap: 0.58rem !important;
}

.metric-card,
.tracking-command-metrics .metric-card,
body.customer-page .customer-command-section .metric-card,
body.customer-page .customer-metric-grid .metric-card,
body.customer-page .funnel-core-metrics .metric-card {
  min-height: 4.3rem !important;
  padding: 0.72rem 0.82rem !important;
  border: 1px solid rgba(18, 24, 38, 0.07) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(28, 35, 61, 0.06) !important;
  backdrop-filter: none !important;
}

.metric-card span,
body.customer-page .customer-metric-grid .metric-card span,
body.customer-page .funnel-core-metrics .metric-card span {
  color: rgba(17, 24, 39, 0.46) !important;
  font-size: 0.7rem !important;
  font-weight: 760 !important;
}

.metric-card strong,
body.customer-page .customer-metric-grid .metric-card strong,
body.customer-page .funnel-core-metrics .metric-card strong {
  margin-top: 0.32rem !important;
  color: #111827 !important;
  font-size: clamp(1.08rem, 1.35vw, 1.45rem) !important;
  line-height: 1 !important;
}

.metric-card small,
body.customer-page .customer-metric-grid .metric-card small,
body.customer-page .funnel-core-metrics .metric-card small {
  margin-top: 0.2rem !important;
  font-size: 0.66rem !important;
}

.panel {
  padding: 0.85rem !important;
  border: 1px solid rgba(18, 24, 38, 0.07) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 14px 34px rgba(28, 35, 61, 0.06) !important;
  backdrop-filter: none !important;
}

.panel-header {
  align-items: center !important;
  margin-bottom: 0.7rem !important;
}

.client-list {
  gap: 0.42rem !important;
}

.client-row {
  grid-template-columns: minmax(12rem, 1.4fr) repeat(4, minmax(4.7rem, 0.72fr)) 5.8rem !important;
  gap: 0.55rem !important;
  min-height: 3.85rem !important;
  padding: 0.55rem 0.65rem !important;
  border-color: rgba(18, 24, 38, 0.07) !important;
  border-radius: 15px !important;
  box-shadow: none !important;
}

.client-row:hover,
.client-row.active {
  border-color: rgba(37, 99, 235, 0.2) !important;
  background: rgba(37, 99, 235, 0.055) !important;
}

.client-identity {
  grid-template-columns: 0.34rem 2rem minmax(0, 1fr) !important;
  gap: 0.46rem !important;
}

.client-name strong {
  font-size: 0.84rem !important;
}

.client-name span,
.client-stat span {
  font-size: 0.68rem !important;
}

.client-stat strong {
  font-size: 0.82rem !important;
}

.status-pill {
  min-height: 1.65rem !important;
  border-radius: 999px !important;
  font-size: 0.66rem !important;
}

.kpi-tabs {
  padding: 0.14rem !important;
  border-color: rgba(18, 24, 38, 0.07) !important;
  background: #ffffff !important;
  box-shadow: 0 8px 20px rgba(28, 35, 61, 0.05) !important;
}

.kpi-tabs button {
  min-height: 1.78rem !important;
  padding: 0 0.62rem !important;
  color: rgba(17, 24, 39, 0.45) !important;
  font-size: 0.68rem !important;
}

body.customer-page .customer-command-section .kpi-tabs button {
  color: rgba(17, 24, 39, 0.45) !important;
}

.kpi-tabs button.active,
.kpi-tabs button:hover,
body.customer-page .customer-command-section .kpi-tabs button.active,
body.customer-page .customer-command-section .kpi-tabs button:hover {
  background: rgba(37, 99, 235, 0.1) !important;
  color: #111827 !important;
}

body.customer-page .funnel-card-section {
  gap: 0.62rem !important;
}

.funnel-card,
body.customer-page .funnel-card {
  min-height: 10.2rem !important;
  margin-top: 0 !important;
  padding: 0.82rem !important;
  border: 1px solid rgba(18, 24, 38, 0.07) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(28, 35, 61, 0.06) !important;
  color: #111827 !important;
}

body.customer-page a.funnel-card:hover {
  box-shadow: 0 16px 34px rgba(28, 35, 61, 0.08) !important;
}

body.customer-page .funnel-card strong {
  font-size: 0.98rem !important;
}

body.customer-page .funnel-card-roas {
  top: 0.8rem !important;
  right: 0.82rem !important;
}

body.customer-page .funnel-card-roas b {
  font-size: 1rem !important;
}

body.customer-page .funnel-diagram,
body.customer-page .funnel-detail-diagram {
  gap: 0.32rem !important;
  margin-top: 0.68rem !important;
}

.funnel-stat-row,
body.customer-page .funnel-detail-diagram .funnel-stat-row {
  grid-template-columns: 6.6rem minmax(0, 1fr) 4.4rem !important;
  gap: 0.5rem !important;
  min-height: 1.28rem !important;
  font-size: 0.68rem !important;
}

.funnel-stat-bar {
  height: 0.28rem !important;
  background: rgba(37, 99, 235, 0.1) !important;
}

.funnel-stat-bar span {
  background: linear-gradient(90deg, #2563eb, #77a4ff) !important;
}

.funnel-step-section {
  gap: 0.75rem !important;
}

.funnel-detail-grid {
  gap: 0.65rem !important;
}

.settings-placeholder {
  padding: 1.1rem !important;
}

body.customer-page .funnel-command-section::after {
  display: none !important;
}

body.customer-page .funnel-command-head {
  align-items: center !important;
  margin: 0 !important;
}

body.customer-page .funnel-command-eyebrow {
  margin-bottom: 0.32rem !important;
  color: rgba(37, 99, 235, 0.78) !important;
  font-size: 0.66rem !important;
}

body.customer-page .funnel-command-head h2 {
  max-width: 40rem !important;
  color: #111827 !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: clamp(1.05rem, 1.4vw, 1.5rem) !important;
  font-weight: 850 !important;
  line-height: 1.08 !important;
}

body.customer-page .funnel-command-head p {
  max-width: 40rem !important;
  margin-top: 0.25rem !important;
  color: rgba(17, 24, 39, 0.48) !important;
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
}

body.customer-page .funnel-state-pill,
body.customer-page .funnel-roas-badge {
  min-width: auto !important;
  min-height: 2.1rem !important;
  padding: 0 0.75rem !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(37, 99, 235, 0.08) !important;
  color: rgba(17, 24, 39, 0.62) !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
}

body.customer-page .funnel-core-metrics {
  gap: 0.58rem !important;
}

body.customer-page .funnel-insight-strip {
  grid-template-columns: auto auto minmax(0, 1fr) !important;
  gap: 0.6rem !important;
  margin-top: 0 !important;
  padding: 0.55rem 0.7rem !important;
  border-color: rgba(37, 99, 235, 0.12) !important;
  border-radius: 14px !important;
  background: rgba(37, 99, 235, 0.055) !important;
}

body.customer-page .funnel-insight-strip span {
  color: rgba(37, 99, 235, 0.72) !important;
  font-size: 0.66rem !important;
}

body.customer-page .funnel-insight-strip strong {
  color: #111827 !important;
  font-size: 0.78rem !important;
}

body.customer-page .funnel-insight-strip p {
  color: rgba(17, 24, 39, 0.48) !important;
  font-size: 0.72rem !important;
  text-align: right !important;
}

body.customer-page .funnel-step-grid {
  gap: 0.58rem !important;
}

body.customer-page .funnel-step-card {
  gap: 0.62rem !important;
  min-height: 7.9rem !important;
  padding: 0.78rem !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 24px rgba(28, 35, 61, 0.06) !important;
}

body.customer-page .funnel-step-head > span {
  width: 1.55rem !important;
  height: 1.55rem !important;
  background: #111827 !important;
  color: #ffffff !important;
  font-size: 0.64rem !important;
}

body.customer-page .funnel-step-head strong {
  font-size: 0.84rem !important;
}

body.customer-page .funnel-step-bar {
  height: 0.32rem !important;
  background: rgba(37, 99, 235, 0.1) !important;
}

body.customer-page .funnel-step-bar span {
  background: linear-gradient(90deg, #2563eb, #77a4ff) !important;
}

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

  .sidebar {
    position: static !important;
    height: auto !important;
  }

  .nav-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .dashboard,
  .customer-dashboard,
  .sidebar {
    padding: 0.85rem !important;
  }

  .topbar {
    align-items: stretch !important;
  }

  .global-search {
    display: none !important;
  }

  .metric-grid,
  .tracking-command-metrics,
  .customer-metric-grid,
  body.customer-page .funnel-card-section {
    grid-template-columns: 1fr !important;
  }

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

/* Reference pass 2026-05-19: lighter education/HR SaaS dashboard direction. */
:root {
  --ref-bg: #f6f8f4;
  --ref-surface: #ffffff;
  --ref-surface-soft: #fbfcfa;
  --ref-ink: #080807;
  --ref-muted: rgba(8, 8, 7, 0.56);
  --ref-line: rgba(8, 8, 7, 0.09);
  --ref-brand: #080807;
  --ref-brand-soft: rgba(8, 8, 7, 0.06);
  --ref-aqua: #21cfc4;
  --ref-aqua-soft: rgba(33, 207, 196, 0.12);
  --ref-aqua-line: rgba(33, 207, 196, 0.32);
  --ref-green: #16834a;
  --ref-green-dark: #0f5f38;
  --ref-green-soft: rgba(22, 131, 74, 0.1);
  --ref-blue: #2563eb;
  --ref-amber: #d88a21;
  --ref-red: #d54d4d;
}

body,
body.customer-page {
  background:
    radial-gradient(circle at 92% 6%, rgba(33, 207, 196, 0.08), transparent 22rem),
    var(--ref-bg) !important;
  color: var(--ref-ink) !important;
}

.app-shell {
  grid-template-columns: 13.1rem minmax(0, 1fr) !important;
  gap: 0 !important;
  min-height: 100vh !important;
}

.sidebar {
  width: auto !important;
  min-height: calc(100vh - 1.5rem) !important;
  margin: 0.75rem 0 0.75rem 0.75rem !important;
  padding: 0.58rem !important;
  border: 1px solid var(--ref-line) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 16px 42px rgba(31, 49, 40, 0.055) !important;
}

.brand {
  min-height: 2.45rem !important;
  padding: 0 0.25rem !important;
  color: var(--ref-ink) !important;
}

.brand-mark {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 13px !important;
  background: var(--ref-brand) !important;
  box-shadow: none !important;
}

.brand strong {
  font-size: 0.86rem !important;
  letter-spacing: 0 !important;
}

.sidebar-customer-card {
  min-height: 3rem !important;
  margin: 0.52rem 0 0.6rem !important;
  padding: 0.52rem !important;
  border: 1px solid var(--ref-line) !important;
  border-radius: 16px !important;
  background: var(--ref-surface-soft) !important;
  box-shadow: none !important;
}

.client-avatar {
  width: 1.95rem !important;
  height: 1.95rem !important;
  border-radius: 12px !important;
  background: var(--ref-aqua-soft) !important;
  color: var(--ref-brand) !important;
  font-size: 0.72rem !important;
}

.nav-stack {
  gap: 0.25rem !important;
}

.nav-item,
body.customer-page .nav-item {
  min-height: 1.94rem !important;
  padding: 0 0.48rem !important;
  border-radius: 12px !important;
  color: rgba(20, 33, 28, 0.62) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
}

.nav-item svg {
  width: 0.94rem !important;
  height: 0.94rem !important;
  stroke-width: 2.1 !important;
}

.nav-item.active,
.nav-item:hover,
body.customer-page .nav-item.active,
body.customer-page .nav-item:hover {
  background: var(--ref-brand) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(8, 8, 7, 0.16) !important;
}

.nav-subitem {
  padding-left: 0.76rem !important;
}

.sidebar-divider {
  margin: 0.36rem 0 !important;
  background: var(--ref-line) !important;
}

.sidebar-section-label {
  margin: 0.15rem 0 0.2rem !important;
  color: rgba(20, 33, 28, 0.38) !important;
  font-size: 0.62rem !important;
}

.dashboard,
.customer-dashboard {
  max-width: 1480px !important;
  padding: 0.68rem 0.95rem 1.1rem !important;
}

.topbar {
  min-height: 3.45rem !important;
  margin-bottom: 0.56rem !important;
  padding: 0.28rem 0.08rem !important;
  border: 0 !important;
}

.topbar h1 {
  color: var(--ref-ink) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: clamp(1.28rem, 1.8vw, 1.78rem) !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

.top-actions {
  gap: 0.5rem !important;
}

.global-search,
.date-trigger,
.view-toggle,
.filter-button {
  min-height: 2.38rem !important;
  border: 1px solid var(--ref-line) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 8px 20px rgba(31, 49, 40, 0.045) !important;
}

.global-search {
  width: min(18rem, 28vw) !important;
  padding: 0 0.86rem !important;
}

.global-search input {
  color: var(--ref-ink) !important;
  font-size: 0.78rem !important;
}

.global-search svg,
.date-trigger svg,
.filter-button svg {
  color: rgba(20, 33, 28, 0.44) !important;
}

.tracking-command-section,
body.customer-page .customer-command-section,
body.customer-page .funnel-command-section,
body.customer-page .funnel-step-section,
body.customer-page .funnel-detail-section {
  margin-bottom: 0.72rem !important;
  padding: 0.62rem !important;
  border: 1px solid var(--ref-line) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow: 0 16px 42px rgba(31, 49, 40, 0.055) !important;
}

.tracking-command-section::after,
body.customer-page .customer-command-section::after,
body.customer-page .funnel-command-section::after {
  display: none !important;
}

.kpi-section-head,
body.customer-page .customer-command-section .kpi-section-head {
  min-height: 2rem !important;
  margin-bottom: 0.58rem !important;
}

.kpi-section-title,
.serif-panel-title,
body.customer-page .customer-command-section .kpi-section-title {
  color: var(--ref-ink) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

.metric-grid,
.tracking-command-metrics,
body.customer-page .customer-command-section .customer-metric-grid,
body.customer-page .funnel-core-metrics {
  gap: 0.54rem !important;
}

.metric-card,
.tracking-command-metrics .metric-card,
body.customer-page .customer-command-section .metric-card,
body.customer-page .customer-metric-grid .metric-card,
body.customer-page .funnel-core-metrics .metric-card {
  min-height: 5.05rem !important;
  padding: 0.62rem 0.68rem !important;
  border: 1px solid var(--ref-line) !important;
  border-radius: 18px !important;
  background: var(--ref-surface) !important;
  box-shadow: 0 8px 18px rgba(31, 49, 40, 0.045) !important;
}

.metric-card::before {
  background: var(--ref-aqua) !important;
  opacity: 0.8 !important;
}

.metric-card span,
body.customer-page .customer-metric-grid .metric-card span,
body.customer-page .funnel-core-metrics .metric-card span {
  color: rgba(20, 33, 28, 0.58) !important;
  font-size: 0.66rem !important;
  font-weight: 800 !important;
}

.metric-card strong,
body.customer-page .customer-metric-grid .metric-card strong,
body.customer-page .funnel-core-metrics .metric-card strong {
  margin-top: 0.32rem !important;
  color: var(--ref-ink) !important;
  font-size: clamp(1.22rem, 1.55vw, 1.74rem) !important;
  line-height: 1 !important;
}

.metric-card small,
body.customer-page .customer-metric-grid .metric-card small,
body.customer-page .funnel-core-metrics .metric-card small {
  margin-top: auto !important;
  color: rgba(8, 8, 7, 0.58) !important;
  font-size: 0.65rem !important;
}

.kpi-tabs,
body.customer-page .customer-command-section .kpi-tabs {
  padding: 0.15rem !important;
  border: 1px solid var(--ref-line) !important;
  background: #f3f6f1 !important;
}

.kpi-tabs button,
body.customer-page .customer-command-section .kpi-tabs button {
  min-height: 1.72rem !important;
  padding: 0 0.64rem !important;
  border-radius: 999px !important;
  color: rgba(20, 33, 28, 0.5) !important;
  font-size: 0.67rem !important;
}

.kpi-tabs button.active,
.kpi-tabs button:hover,
body.customer-page .customer-command-section .kpi-tabs button.active,
body.customer-page .customer-command-section .kpi-tabs button:hover {
  background: var(--ref-surface) !important;
  color: var(--ref-brand) !important;
  box-shadow: 0 5px 12px rgba(31, 49, 40, 0.06) !important;
}

body.customer-page .funnel-card-section {
  grid-template-columns: repeat(auto-fit, minmax(14.8rem, 1fr)) !important;
  gap: 0.58rem !important;
}

.funnel-card,
body.customer-page .funnel-card {
  min-height: 8.75rem !important;
  padding: 0.64rem !important;
  border: 1px solid var(--ref-line) !important;
  border-radius: 18px !important;
  background: var(--ref-surface) !important;
  box-shadow: 0 8px 20px rgba(31, 49, 40, 0.045) !important;
  color: var(--ref-ink) !important;
}

body.customer-page a.funnel-card:hover {
  transform: translateY(-1px) !important;
  border-color: var(--ref-aqua-line) !important;
  box-shadow: 0 14px 28px rgba(31, 49, 40, 0.075) !important;
}

body.customer-page .funnel-card-kicker {
  color: rgba(8, 8, 7, 0.48) !important;
  font-size: 0.62rem !important;
}

body.customer-page .funnel-card strong {
  color: var(--ref-ink) !important;
  font-size: 0.94rem !important;
}

body.customer-page .funnel-card-roas {
  min-width: 2.82rem !important;
  padding: 0.3rem 0.42rem !important;
  border: 1px solid var(--ref-aqua-line) !important;
  border-radius: 13px !important;
  background: var(--ref-aqua-soft) !important;
}

body.customer-page .funnel-card-roas b {
  color: var(--ref-brand) !important;
  font-size: 0.86rem !important;
}

.funnel-stat-row,
body.customer-page .funnel-detail-diagram .funnel-stat-row {
  grid-template-columns: 6.25rem minmax(0, 1fr) 4.1rem !important;
  min-height: 1.18rem !important;
  color: rgba(20, 33, 28, 0.66) !important;
  font-size: 0.65rem !important;
}

.funnel-stat-bar {
  height: 0.24rem !important;
  background: rgba(33, 207, 196, 0.13) !important;
}

.funnel-stat-bar span,
body.customer-page .funnel-step-bar span {
  background: linear-gradient(90deg, var(--ref-brand), var(--ref-aqua)) !important;
}

body.customer-page .funnel-command-head h2 {
  color: var(--ref-ink) !important;
  font-size: clamp(1.08rem, 1.45vw, 1.48rem) !important;
}

body.customer-page .funnel-command-eyebrow,
body.customer-page .funnel-insight-strip span {
  color: rgba(8, 8, 7, 0.52) !important;
}

body.customer-page .funnel-state-pill,
body.customer-page .funnel-roas-badge {
  border-color: var(--ref-aqua-line) !important;
  background: var(--ref-aqua-soft) !important;
  color: var(--ref-brand) !important;
}

body.customer-page .funnel-insight-strip {
  border-color: var(--ref-aqua-line) !important;
  background: #f5f8f3 !important;
}

body.customer-page .funnel-step-grid {
  gap: 0.54rem !important;
}

body.customer-page .funnel-step-card,
body.customer-page .funnel-detail-panel,
.panel {
  border: 1px solid var(--ref-line) !important;
  border-radius: 18px !important;
  background: var(--ref-surface) !important;
  box-shadow: 0 8px 18px rgba(31, 49, 40, 0.045) !important;
}

body.customer-page .funnel-step-card {
  min-height: 6.9rem !important;
  padding: 0.64rem !important;
}

body.customer-page .funnel-step-head > span {
  width: 1.45rem !important;
  height: 1.45rem !important;
  background: var(--ref-brand) !important;
  font-size: 0.6rem !important;
}

body.customer-page .funnel-step-head strong {
  color: var(--ref-ink) !important;
  font-size: 0.78rem !important;
}

body.customer-page .funnel-step-card small,
body.customer-page .funnel-step-card p {
  color: var(--ref-muted) !important;
  font-size: 0.64rem !important;
}

.client-row {
  min-height: 3.75rem !important;
  padding: 0.66rem 0.72rem !important;
  border: 1px solid var(--ref-line) !important;
  border-radius: 16px !important;
  background: var(--ref-surface) !important;
  box-shadow: 0 7px 16px rgba(31, 49, 40, 0.04) !important;
}

.client-row:hover,
.client-row.active {
  border-color: var(--ref-aqua-line) !important;
  box-shadow: 0 12px 26px rgba(31, 49, 40, 0.07) !important;
}

.positive {
  color: var(--ref-green) !important;
}

.warning {
  color: var(--ref-amber) !important;
}

.critical,
.negative {
  color: var(--ref-red) !important;
}

@media (max-width: 1160px) {
  .sidebar {
    min-height: auto !important;
    margin: 0.75rem !important;
  }
}

@media (max-width: 760px) {
  .sidebar,
  .dashboard,
  .customer-dashboard {
    margin: 0 !important;
    padding: 0.72rem !important;
    border-radius: 0 !important;
  }

  .topbar {
    margin-bottom: 0.45rem !important;
  }
}
 
/* Dark/blue OB reference pass 2026-05-19 */
:root {
  --ref-bg: #f4f7ff;
  --ref-surface: #ffffff;
  --ref-surface-soft: #f8fbff;
  --ref-ink: #071425;
  --ref-muted: rgba(7, 20, 37, 0.58);
  --ref-line: rgba(7, 20, 37, 0.09);
  --ref-brand: #071425;
  --ref-brand-soft: rgba(7, 20, 37, 0.06);
  --ref-aqua: #21cfc4;
  --ref-aqua-soft: rgba(33, 207, 196, 0.11);
  --ref-aqua-line: rgba(33, 207, 196, 0.28);
  --ob-blue: #2563eb;
  --ob-blue-soft: rgba(37, 99, 235, 0.1);
  --ob-blue-line: rgba(37, 99, 235, 0.2);
  --ob-navy: #071425;
  --ob-navy-2: #0c1d33;
}

body,
body.customer-page {
  background:
    radial-gradient(circle at 86% 8%, rgba(37, 99, 235, 0.12), transparent 24rem),
    radial-gradient(circle at 18% 2%, rgba(33, 207, 196, 0.075), transparent 20rem),
    var(--ref-bg) !important;
  color: var(--ref-ink) !important;
}

.sidebar {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(7, 20, 37, 0) 34%),
    var(--ob-navy) !important;
  box-shadow: 0 18px 44px rgba(7, 20, 37, 0.16) !important;
}

.brand,
.brand strong {
  color: #ffffff !important;
}

.brand-mark {
  background: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(33, 207, 196, 0.24), 0 10px 22px rgba(0, 0, 0, 0.18) !important;
}

.sidebar-customer-card {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: #ffffff !important;
}

.sidebar-customer-card strong {
  color: #ffffff !important;
}

.client-avatar {
  background: rgba(33, 207, 196, 0.16) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(33, 207, 196, 0.28) !important;
}

.nav-item,
body.customer-page .nav-item {
  color: rgba(255, 255, 255, 0.66) !important;
}

.nav-item svg,
body.customer-page .nav-item svg {
  color: currentColor !important;
}

.nav-item.active,
.nav-item:hover,
body.customer-page .nav-item.active,
body.customer-page .nav-item:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3) !important;
}

.sidebar-divider {
  background: rgba(255, 255, 255, 0.08) !important;
}

.sidebar-section-label {
  color: rgba(255, 255, 255, 0.38) !important;
}

.overview-link {
  color: rgba(255, 255, 255, 0.5) !important;
}

.topbar h1,
.kpi-section-title,
.serif-panel-title,
body.customer-page .customer-command-section .kpi-section-title,
body.customer-page .funnel-command-head h2 {
  color: var(--ob-navy) !important;
}

.global-search,
.date-trigger,
.view-toggle,
.filter-button,
.tracking-command-section,
body.customer-page .customer-command-section,
body.customer-page .funnel-command-section,
body.customer-page .funnel-step-section,
body.customer-page .funnel-detail-section {
  border-color: rgba(7, 20, 37, 0.08) !important;
  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow: 0 16px 42px rgba(7, 20, 37, 0.07) !important;
}

.metric-card,
.tracking-command-metrics .metric-card,
body.customer-page .customer-command-section .metric-card,
body.customer-page .customer-metric-grid .metric-card,
body.customer-page .funnel-core-metrics .metric-card,
.funnel-card,
body.customer-page .funnel-card,
body.customer-page .funnel-step-card,
body.customer-page .funnel-detail-panel,
.panel,
.client-row {
  border-color: rgba(7, 20, 37, 0.08) !important;
  background: #ffffff !important;
  box-shadow: 0 9px 22px rgba(7, 20, 37, 0.055) !important;
}

.metric-card::before {
  background: linear-gradient(180deg, var(--ob-blue), var(--ref-aqua)) !important;
  opacity: 1 !important;
}

.metric-card span,
body.customer-page .customer-metric-grid .metric-card span,
body.customer-page .funnel-core-metrics .metric-card span,
.funnel-stat-row,
body.customer-page .funnel-detail-diagram .funnel-stat-row {
  color: rgba(7, 20, 37, 0.6) !important;
}

.metric-card strong,
body.customer-page .customer-metric-grid .metric-card strong,
body.customer-page .funnel-core-metrics .metric-card strong,
body.customer-page .funnel-card strong,
body.customer-page .funnel-step-head strong {
  color: var(--ob-navy) !important;
}

.kpi-tabs,
body.customer-page .customer-command-section .kpi-tabs {
  border-color: rgba(7, 20, 37, 0.08) !important;
  background: #eef3ff !important;
}

.kpi-tabs button.active,
.kpi-tabs button:hover,
body.customer-page .customer-command-section .kpi-tabs button.active,
body.customer-page .customer-command-section .kpi-tabs button:hover {
  color: var(--ob-blue) !important;
}

body.customer-page a.funnel-card:hover,
.client-row:hover,
.client-row.active {
  border-color: var(--ob-blue-line) !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12) !important;
}

body.customer-page .funnel-card-kicker,
body.customer-page .funnel-command-eyebrow,
body.customer-page .funnel-insight-strip span {
  color: rgba(37, 99, 235, 0.72) !important;
}

body.customer-page .funnel-card-roas,
body.customer-page .funnel-state-pill,
body.customer-page .funnel-roas-badge,
body.customer-page .funnel-insight-strip {
  border-color: var(--ob-blue-line) !important;
  background: var(--ob-blue-soft) !important;
  color: var(--ob-navy) !important;
}

body.customer-page .funnel-card-roas b {
  color: var(--ob-blue) !important;
}

.funnel-stat-bar,
body.customer-page .funnel-step-bar {
  background: rgba(37, 99, 235, 0.11) !important;
}

.funnel-stat-bar span,
body.customer-page .funnel-step-bar span {
  background: linear-gradient(90deg, var(--ob-blue), var(--ref-aqua)) !important;
}

body.customer-page .funnel-step-head > span {
  background: linear-gradient(135deg, var(--ob-navy), var(--ob-blue)) !important;
}

.positive {
  color: #16834a !important;
}

body.customer-page .customer-sidebar {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(7, 20, 37, 0) 34%),
    var(--ob-navy) !important;
  box-shadow: 0 18px 44px rgba(7, 20, 37, 0.16) !important;
}

body.customer-page .customer-sidebar .brand,
body.customer-page .customer-sidebar .brand strong {
  color: #ffffff !important;
}

body.customer-page .customer-sidebar .brand-mark {
  background: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(33, 207, 196, 0.24), 0 10px 22px rgba(0, 0, 0, 0.18) !important;
}

body.customer-page .customer-sidebar .sidebar-customer-card {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: #ffffff !important;
}

body.customer-page .customer-sidebar .sidebar-customer-card strong {
  color: #ffffff !important;
}

body.customer-page .customer-sidebar .sidebar-customer-card .client-avatar {
  background: rgba(33, 207, 196, 0.16) !important;
  color: #ffffff !important;
}

body.customer-page .customer-sidebar .nav-item {
  color: rgba(255, 255, 255, 0.66) !important;
}

body.customer-page .customer-sidebar .nav-item svg {
  color: currentColor !important;
  stroke: currentColor !important;
}

body.customer-page .customer-sidebar .nav-item.active,
body.customer-page .customer-sidebar .nav-item:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3) !important;
}

body.customer-page .customer-sidebar .nav-item.active svg,
body.customer-page .customer-sidebar .nav-item:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

body.customer-page .customer-sidebar .overview-link {
  color: rgba(255, 255, 255, 0.52) !important;
}

body.customer-page .customer-sidebar .sidebar-divider {
  background: rgba(255, 255, 255, 0.08) !important;
}

body.customer-page .customer-sidebar .sidebar-section-label {
  color: rgba(255, 255, 255, 0.38) !important;
}

/* Funnel overview cards: less squeezed, more status-card than mini-report. */
body.customer-page .funnel-card-section {
  grid-template-columns: repeat(auto-fit, minmax(19.5rem, 1fr)) !important;
  align-items: stretch !important;
  gap: 0.72rem !important;
}

.funnel-card,
body.customer-page .funnel-card {
  min-height: 10.1rem !important;
  padding: 0.82rem !important;
}

body.customer-page .funnel-card-top {
  align-items: flex-start !important;
  gap: 0.8rem !important;
  margin-bottom: 0.7rem !important;
}

body.customer-page .funnel-card strong {
  font-size: 1rem !important;
}

body.customer-page .funnel-card-roas {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.28rem !important;
  min-width: auto !important;
  min-height: 1.45rem !important;
  padding: 0.2rem 0.46rem !important;
  border-radius: 999px !important;
}

body.customer-page .funnel-card-roas small {
  color: rgba(7, 20, 37, 0.52) !important;
  font-size: 0.58rem !important;
  line-height: 1 !important;
}

body.customer-page .funnel-card-roas small::after {
  content: ":" !important;
}

body.customer-page .funnel-card-roas b {
  color: var(--ob-blue) !important;
  font-size: 0.74rem !important;
  line-height: 1 !important;
}

/* Customer overview list polish 2026-05-19 */
body:not(.customer-page) .client-list {
  gap: 0.62rem !important;
}

body:not(.customer-page) .client-row {
  grid-template-columns: minmax(18rem, 1.45fr) repeat(4, minmax(5.4rem, 0.72fr)) 6.2rem !important;
  gap: 0.58rem !important;
  min-height: 4.6rem !important;
  padding: 0.58rem !important;
  border-radius: 18px !important;
}

body:not(.customer-page) .client-identity {
  grid-template-columns: 2.85rem minmax(0, 1fr) !important;
  gap: 0.68rem !important;
  min-height: 3.35rem !important;
  padding: 0.42rem 0.5rem !important;
  border: 1px solid rgba(7, 20, 37, 0.06) !important;
  border-radius: 14px !important;
  background: #f8fbff !important;
}

body:not(.customer-page) .active-client-dot {
  display: none !important;
}

body:not(.customer-page) .client-avatar {
  position: relative !important;
  width: 2.55rem !important;
  height: 2.55rem !important;
  border: 1px solid rgba(33, 207, 196, 0.24) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(33, 207, 196, 0.2)),
    #071425 !important;
  color: #ffffff !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 22px rgba(7, 20, 37, 0.12) !important;
}

body:not(.customer-page) .client-avatar::after {
  content: "" !important;
  position: absolute !important;
  right: -0.12rem !important;
  bottom: -0.12rem !important;
  width: 0.58rem !important;
  height: 0.58rem !important;
  border: 2px solid #f8fbff !important;
  border-radius: 999px !important;
  background: #21cfc4 !important;
  opacity: 0 !important;
}

body:not(.customer-page) .client-row.active .client-avatar::after,
body:not(.customer-page) .client-row:hover .client-avatar::after {
  opacity: 1 !important;
}

body:not(.customer-page) .client-name {
  min-width: 0 !important;
}

body:not(.customer-page) .client-name strong {
  color: var(--ob-navy) !important;
  font-size: 0.93rem !important;
  font-weight: 850 !important;
}

body:not(.customer-page) .client-name span {
  color: rgba(7, 20, 37, 0.52) !important;
  font-size: 0.68rem !important;
  font-weight: 750 !important;
}

body:not(.customer-page) .client-stat {
  min-height: 3.35rem !important;
  padding: 0.48rem 0.54rem !important;
  border: 1px solid rgba(7, 20, 37, 0.035) !important;
  border-radius: 14px !important;
  background: rgba(248, 251, 255, 0.68) !important;
}

body:not(.customer-page) .client-stat strong {
  font-size: 0.88rem !important;
  font-weight: 850 !important;
}

body:not(.customer-page) .client-stat span {
  margin-top: 0.16rem !important;
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  text-transform: none !important;
}

body:not(.customer-page) .status-pill {
  min-height: 2rem !important;
  margin-left: 0.1rem !important;
  border-radius: 999px !important;
  font-size: 0.66rem !important;
}

/* SaaS flattening pass 2026-05-19 */
:root {
  --ref-bg: #f8fafc;
  --ref-surface: #ffffff;
  --ref-line: rgba(15, 23, 42, 0.09);
  --ref-ink: #0f172a;
  --ref-muted: rgba(15, 23, 42, 0.56);
  --ob-navy: #0f172a;
  --ob-blue: #2563eb;
  --ob-blue-soft: rgba(37, 99, 235, 0.08);
  --ob-blue-line: rgba(37, 99, 235, 0.18);
  --ref-aqua: #21cfc4;
}

body,
body.customer-page {
  background: var(--ref-bg) !important;
  color: var(--ref-ink) !important;
}

.topbar h1,
body.customer-page .customer-dashboard .topbar h1,
body.customer-page #funnelTitle {
  font-family: "Hedvig Letters Serif", Georgia, serif !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.tracking-command-head h2,
body.customer-page .funnel-command-head h2,
.kpi-section-title,
.serif-panel-title,
body.customer-page .customer-command-section .kpi-section-title {
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.app-shell {
  grid-template-columns: 13rem minmax(0, 1fr) !important;
}

.sidebar,
body.customer-page .customer-sidebar,
body:not(.customer-page) .sidebar {
  min-height: calc(100vh - 1.5rem) !important;
  margin: 0.75rem 0 0.75rem 0.75rem !important;
  padding: 0.58rem !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  background: #0f172a !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12) !important;
}

.nav-item.active,
.nav-item:hover,
body.customer-page .nav-item.active,
body.customer-page .nav-item:hover,
body.customer-page .customer-sidebar .nav-item.active,
body.customer-page .customer-sidebar .nav-item:hover,
body:not(.customer-page) .nav-item.active,
body:not(.customer-page) .nav-item:hover {
  background: rgba(37, 99, 235, 0.18) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.dashboard,
.customer-dashboard,
body:not(.customer-page) .dashboard {
  max-width: 1480px !important;
  padding: 0.78rem 1rem 1.2rem !important;
}

.global-search,
.date-trigger,
.view-toggle,
.filter-button {
  border-color: var(--ref-line) !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.tracking-command-section,
body.customer-page .customer-command-section,
body.customer-page .funnel-command-section,
body.customer-page .funnel-step-section,
body.customer-page .funnel-detail-section,
body:not(.customer-page) .tracking-command-section,
.panel,
body:not(.customer-page) .panel {
  border: 1px solid var(--ref-line) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035) !important;
}

.metric-card,
.tracking-command-metrics .metric-card,
body.customer-page .customer-command-section .metric-card,
body.customer-page .customer-metric-grid .metric-card,
body.customer-page .funnel-core-metrics .metric-card,
body:not(.customer-page) .metric-card,
.funnel-card,
body.customer-page .funnel-card,
body.customer-page .funnel-step-card,
body.customer-page .funnel-detail-panel {
  border: 1px solid var(--ref-line) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.metric-card::before {
  width: 3px !important;
  background: var(--ob-blue) !important;
}

body.customer-page .funnel-card .funnel-stat-row {
  border-color: rgba(15, 23, 42, 0.07) !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

body:not(.customer-page) .client-panel {
  padding: 0 !important;
  overflow: hidden !important;
}

body:not(.customer-page) .client-panel .panel-header {
  min-height: 3.2rem !important;
  margin: 0 !important;
  padding: 0.82rem 0.95rem 0.55rem !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
}

.client-table-head {
  display: grid;
  grid-template-columns: minmax(18rem, 1.55fr) repeat(4, minmax(5.4rem, 0.72fr)) 6.2rem;
  gap: 0.58rem;
  align-items: center;
  min-height: 2.15rem;
  padding: 0 0.95rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  color: rgba(15, 23, 42, 0.44);
  font-size: 0.64rem;
  font-weight: 850;
  text-transform: uppercase;
}

body:not(.customer-page) .client-list {
  gap: 0 !important;
}

body:not(.customer-page) .client-row {
  grid-template-columns: minmax(18rem, 1.55fr) repeat(4, minmax(5.4rem, 0.72fr)) 6.2rem !important;
  gap: 0.58rem !important;
  min-height: 4.15rem !important;
  padding: 0 0.95rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body:not(.customer-page) .client-row:last-child {
  border-bottom: 0 !important;
}

body:not(.customer-page) .client-row:hover,
body:not(.customer-page) .client-row.active {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.07) !important;
  box-shadow: none !important;
}

body:not(.customer-page) .client-identity {
  grid-template-columns: 2.3rem minmax(0, 1fr) !important;
  gap: 0.62rem !important;
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body:not(.customer-page) .active-client-dot {
  display: none !important;
}

body:not(.customer-page) .client-avatar {
  width: 2.25rem !important;
  height: 2.25rem !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(33, 207, 196, 0.16)), #f8fafc !important;
  color: #0f172a !important;
  font-size: 0.7rem !important;
  box-shadow: none !important;
}

body:not(.customer-page) .client-avatar::after {
  display: none !important;
}

body:not(.customer-page) .client-name strong {
  font-size: 0.88rem !important;
}

body:not(.customer-page) .client-name span {
  margin-top: 0.12rem !important;
  font-size: 0.66rem !important;
}

body:not(.customer-page) .client-stat {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body:not(.customer-page) .client-stat strong {
  display: block !important;
  color: var(--ob-navy) !important;
  font-size: 0.84rem !important;
  font-weight: 850 !important;
}

body:not(.customer-page) .client-stat span {
  display: none !important;
}

body:not(.customer-page) .status-pill {
  justify-self: start !important;
  width: auto !important;
  min-height: 1.65rem !important;
  margin-left: 0 !important;
  padding: 0 0.62rem !important;
  border-radius: 999px !important;
  font-size: 0.64rem !important;
}

@media (max-width: 980px) {
  .client-table-head {
    display: none !important;
  }

  body:not(.customer-page) .client-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    min-height: auto !important;
    padding: 0.75rem !important;
    border-radius: 0 !important;
  }

  body:not(.customer-page) .client-identity {
    grid-column: 1 / -1 !important;
  }

  body:not(.customer-page) .client-stat span {
    display: block !important;
  }
}


body:not(.customer-page) .client-row.active {
  background: #ffffff !important;
}

@media (max-width: 980px) {
  body:not(.customer-page) .client-row {
    grid-template-columns: 1fr 1fr !important;
  }

  body:not(.customer-page) .client-identity {
    grid-column: 1 / -1 !important;
  }
}


/* Dashboard/customer alignment pass 2026-05-19 */
.topbar h1,
.tracking-command-head h2,
body.customer-page .funnel-command-head h2,
.kpi-section-title,
.serif-panel-title {
  font-family: "Hedvig Letters Serif", Georgia, serif !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.topbar h1 {
  font-size: clamp(1.55rem, 2vw, 2.05rem) !important;
  line-height: 1.04 !important;
}

.tracking-command-head h2,
body.customer-page .funnel-command-head h2 {
  font-size: clamp(1.18rem, 1.55vw, 1.62rem) !important;
  line-height: 1.05 !important;
}

.kpi-section-title,
.serif-panel-title {
  font-size: 1.04rem !important;
  line-height: 1.08 !important;
}

body:not(.customer-page) .sidebar {
  width: auto !important;
  min-height: calc(100vh - 1.5rem) !important;
  margin: 0.75rem 0 0.75rem 0.75rem !important;
  padding: 0.58rem !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(7, 20, 37, 0) 34%),
    var(--ob-navy) !important;
  box-shadow: 0 18px 44px rgba(7, 20, 37, 0.16) !important;
}

body:not(.customer-page) .brand,
body:not(.customer-page) .brand strong {
  color: #ffffff !important;
}

body:not(.customer-page) .brand-mark {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 13px !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(33, 207, 196, 0.24), 0 10px 22px rgba(0, 0, 0, 0.18) !important;
}

body:not(.customer-page) .nav-stack {
  gap: 0.25rem !important;
}

body:not(.customer-page) .nav-item {
  min-height: 1.94rem !important;
  padding: 0 0.48rem !important;
  border-radius: 12px !important;
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
}

body:not(.customer-page) .nav-item svg {
  width: 0.94rem !important;
  height: 0.94rem !important;
  color: currentColor !important;
  stroke: currentColor !important;
}

body:not(.customer-page) .nav-item.active,
body:not(.customer-page) .nav-item:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3) !important;
}

body:not(.customer-page) .dashboard {
  max-width: 1480px !important;
  padding: 0.68rem 0.95rem 1.1rem !important;
}

body:not(.customer-page) .topbar {
  min-height: 3.45rem !important;
  margin-bottom: 0.56rem !important;
  padding: 0.28rem 0.08rem !important;
  border: 0 !important;
}

body:not(.customer-page) .welcome-line {
  margin: 0 0 0.16rem !important;
  color: rgba(7, 20, 37, 0.48) !important;
  font-size: 0.72rem !important;
  font-weight: 750 !important;
}

body:not(.customer-page) .tracking-command-section,
body:not(.customer-page) .panel {
  border: 1px solid rgba(7, 20, 37, 0.08) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow: 0 16px 42px rgba(7, 20, 37, 0.07) !important;
}

body:not(.customer-page) .tracking-command-section {
  margin-bottom: 0.72rem !important;
  padding: 0.62rem !important;
}

body:not(.customer-page) .tracking-command-head {
  align-items: center !important;
  min-height: 2.25rem !important;
  margin-bottom: 0.62rem !important;
}

body:not(.customer-page) .tracking-command-eyebrow {
  color: rgba(37, 99, 235, 0.72) !important;
  font-size: 0.64rem !important;
  font-weight: 850 !important;
}

body:not(.customer-page) .tracking-command-head p {
  max-width: 36rem !important;
  margin-top: 0.2rem !important;
  color: rgba(7, 20, 37, 0.5) !important;
  font-size: 0.76rem !important;
  line-height: 1.35 !important;
}

body:not(.customer-page) .tracking-command-pill {
  min-height: 1.8rem !important;
  padding: 0 0.68rem !important;
  border: 1px solid var(--ob-blue-line) !important;
  border-radius: 999px !important;
  background: var(--ob-blue-soft) !important;
  color: var(--ob-navy) !important;
  font-size: 0.68rem !important;
  font-weight: 850 !important;
}

body:not(.customer-page) .tracking-command-metrics {
  gap: 0.54rem !important;
}

body:not(.customer-page) .metric-card {
  min-height: 5.05rem !important;
  padding: 0.62rem 0.68rem !important;
  border: 1px solid rgba(7, 20, 37, 0.08) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 9px 22px rgba(7, 20, 37, 0.055) !important;
}

body:not(.customer-page) .metric-card::before {
  background: linear-gradient(180deg, var(--ob-blue), var(--ref-aqua)) !important;
  opacity: 1 !important;
}

body:not(.customer-page) .workspace-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.72rem !important;
}

body:not(.customer-page) .client-panel {
  padding: 0.72rem !important;
}

body:not(.customer-page) .panel-header {
  min-height: 2rem !important;
  margin-bottom: 0.58rem !important;
  padding: 0 !important;
}

body:not(.customer-page) .client-list {
  gap: 0.52rem !important;
}

body:not(.customer-page) .client-row {
  min-height: 3.65rem !important;
  padding: 0.62rem 0.68rem !important;
  border: 1px solid rgba(7, 20, 37, 0.08) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 7px 16px rgba(7, 20, 37, 0.045) !important;
}

body:not(.customer-page) .client-row:hover,
body:not(.customer-page) .client-row.active {
  border-color: var(--ob-blue-line) !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12) !important;
}

body:not(.customer-page) .client-name strong,
body:not(.customer-page) .client-stat strong {
  color: var(--ob-navy) !important;
}

body:not(.customer-page) .client-name span,
body:not(.customer-page) .client-stat span {
  color: rgba(7, 20, 37, 0.54) !important;
}

@media (max-width: 1160px) {
  body:not(.customer-page) .sidebar {
    min-height: auto !important;
    margin: 0.75rem !important;
  }
}

@media (max-width: 760px) {
  body:not(.customer-page) .sidebar,
  body:not(.customer-page) .dashboard {
    margin: 0 !important;
    padding: 0.72rem !important;
    border-radius: 0 !important;
  }
}


body.customer-page .funnel-diagram {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.46rem !important;
  margin-top: 0.2rem !important;
}

body.customer-page .funnel-card .funnel-stat-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  min-height: 2.05rem !important;
  padding: 0.44rem 0.5rem !important;
  border: 1px solid rgba(7, 20, 37, 0.07) !important;
  border-radius: 12px !important;
  background: #f8fbff !important;
  font-size: 0.68rem !important;
}

body.customer-page .funnel-card .funnel-stat-row span:first-child {
  overflow: hidden !important;
  color: rgba(7, 20, 37, 0.52) !important;
  font-weight: 750 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.customer-page .funnel-card .funnel-stat-row strong {
  color: var(--ob-navy) !important;
  font-size: 0.76rem !important;
  font-weight: 850 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

body.customer-page .funnel-card .funnel-stat-bar {
  display: none !important;
}

body.customer-page .funnel-add-card {
  min-height: 10.1rem !important;
  border: 1px dashed rgba(37, 99, 235, 0.24) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

body.customer-page .funnel-add-plus {
  border-color: var(--ob-blue-line) !important;
  background: var(--ob-blue-soft) !important;
  color: var(--ob-blue) !important;
}

@media (max-width: 760px) {
  body.customer-page .funnel-card-section {
    grid-template-columns: 1fr !important;
  }

  body.customer-page .funnel-diagram {
    grid-template-columns: 1fr !important;
  }
}

/* Final SaaS tightening pass 2026-05-19 */
body,
body.customer-page {
  background: #f7f9fc !important;
}

.app-shell {
  grid-template-columns: 12.5rem minmax(0, 1fr) !important;
}

body:not(.customer-page) .dashboard,
body.customer-page .customer-dashboard {
  max-width: 1480px !important;
  padding: 0.76rem 1rem 1.18rem !important;
}

body:not(.customer-page) .sidebar,
body.customer-page .customer-sidebar {
  margin: 0.72rem 0 0.72rem 0.72rem !important;
  padding: 0.54rem !important;
  border-radius: 18px !important;
  background: #0f172a !important;
  box-shadow: 0 10px 26px rgba(7, 20, 37, 0.14) !important;
}

body:not(.customer-page) .nav-item.active,
body:not(.customer-page) .nav-item:hover,
body.customer-page .customer-sidebar .nav-item.active,
body.customer-page .customer-sidebar .nav-item:hover {
  background: rgba(37, 99, 235, 0.2) !important;
  box-shadow: none !important;
}

body:not(.customer-page) .tracking-command-section,
body:not(.customer-page) .panel,
body.customer-page .customer-command-section,
body.customer-page .funnel-command-section,
body.customer-page .funnel-step-section,
body.customer-page .funnel-detail-section {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035) !important;
}

body:not(.customer-page) .tracking-command-section {
  padding: 0.7rem !important;
}

body:not(.customer-page) .metric-card,
body.customer-page .metric-card,
body.customer-page .funnel-card,
body.customer-page .funnel-step-card,
body.customer-page .funnel-detail-panel {
  border-radius: 14px !important;
  box-shadow: none !important;
}

body:not(.customer-page) .workspace-grid {
  grid-template-columns: 1fr !important;
  gap: 0.72rem !important;
}

body:not(.customer-page) .client-panel {
  padding: 0 !important;
  overflow: hidden !important;
}

body:not(.customer-page) .client-panel .panel-header {
  min-height: 3.05rem !important;
  margin: 0 !important;
  padding: 0.78rem 0.95rem 0.52rem !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
}

body:not(.customer-page) .client-table-head {
  display: grid !important;
  grid-template-columns: minmax(17rem, 1.55fr) repeat(4, minmax(5.2rem, 0.7fr)) 6rem !important;
  gap: 0.52rem !important;
  align-items: center !important;
  min-height: 2.1rem !important;
  padding: 0 0.95rem !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
  background: #fbfcfe !important;
  color: rgba(15, 23, 42, 0.46) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 0.62rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

body:not(.customer-page) .client-list {
  gap: 0 !important;
}

body:not(.customer-page) .client-row {
  grid-template-columns: minmax(17rem, 1.55fr) repeat(4, minmax(5.2rem, 0.7fr)) 6rem !important;
  gap: 0.52rem !important;
  align-items: center !important;
  min-height: 3.9rem !important;
  padding: 0 0.95rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body:not(.customer-page) .client-row:hover,
body:not(.customer-page) .client-row.active {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.07) !important;
  box-shadow: none !important;
}

body:not(.customer-page) .client-row:last-child {
  border-bottom: 0 !important;
}

body:not(.customer-page) .client-identity {
  grid-template-columns: 2.15rem minmax(0, 1fr) !important;
  gap: 0.58rem !important;
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body:not(.customer-page) .client-avatar {
  width: 2.15rem !important;
  height: 2.15rem !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}

body:not(.customer-page) .active-client-dot,
body:not(.customer-page) .client-avatar::after {
  display: none !important;
}

body:not(.customer-page) .client-name strong {
  font-size: 0.86rem !important;
  font-weight: 850 !important;
}

body:not(.customer-page) .client-name span {
  margin-top: 0.08rem !important;
  font-size: 0.65rem !important;
}

body:not(.customer-page) .client-stat {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.customer-page) .client-stat strong {
  display: block !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
}

body:not(.customer-page) .client-stat span {
  display: none !important;
}

body:not(.customer-page) .status-pill {
  justify-self: start !important;
  min-height: 1.55rem !important;
  padding: 0 0.58rem !important;
  font-size: 0.62rem !important;
  box-shadow: none !important;
}

body.customer-page .funnel-card .funnel-stat-row {
  min-height: 1.95rem !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

@media (max-width: 980px) {
  body:not(.customer-page) .client-table-head {
    display: none !important;
  }

  body:not(.customer-page) .client-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.48rem !important;
    min-height: auto !important;
    padding: 0.72rem !important;
  }

  body:not(.customer-page) .client-identity {
    grid-column: 1 / -1 !important;
  }

  body:not(.customer-page) .client-stat span {
    display: block !important;
  }
}

/* Customer dashboard density correction 2026-05-19 */
body.customer-page .funnel-card-section {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.72rem !important;
}

body.customer-page .funnel-card {
  min-height: 10.4rem !important;
  padding: 0.82rem 0.9rem 0.88rem !important;
  border-radius: 15px !important;
  box-shadow: none !important;
}

body.customer-page a.funnel-card:hover {
  transform: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.customer-page .funnel-card-top {
  min-height: 2rem !important;
  padding-right: 3.8rem !important;
}

body.customer-page .funnel-card-kicker {
  margin-bottom: 0.12rem !important;
  font-size: 0.64rem !important;
  color: rgba(15, 23, 42, 0.44) !important;
}

body.customer-page .funnel-card strong {
  font-size: 1rem !important;
}

body.customer-page .funnel-card-roas {
  top: 0.82rem !important;
  right: 0.9rem !important;
  min-width: 3.2rem !important;
  min-height: 1.7rem !important;
  padding: 0.25rem 0.42rem !important;
  border: 1px solid rgba(37, 99, 235, 0.14) !important;
  border-radius: 999px !important;
  background: rgba(37, 99, 235, 0.06) !important;
  justify-items: center !important;
}

body.customer-page .funnel-card-roas small {
  display: none !important;
}

body.customer-page .funnel-card-roas b {
  margin: 0 !important;
  color: #1d4ed8 !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.customer-page .funnel-card-roas b::before {
  content: "ROAS ";
  color: rgba(15, 23, 42, 0.52);
  font-size: 0.58rem;
  font-weight: 850;
}

body.customer-page .funnel-diagram {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.42rem !important;
  margin-top: 0.7rem !important;
}

body.customer-page .funnel-card .funnel-stat-row {
  min-height: 1.82rem !important;
  padding: 0.36rem 0.48rem !important;
  border-radius: 10px !important;
}

body.customer-page .funnel-card .funnel-stat-row span:first-child {
  font-size: 0.66rem !important;
}

body.customer-page .funnel-card .funnel-stat-row strong {
  font-size: 0.72rem !important;
}

body.customer-page .funnel-add-card {
  min-height: 10.4rem !important;
  border-radius: 15px !important;
  background: #fbfcfe !important;
  box-shadow: none !important;
}

body.customer-page .funnel-detail-diagram {
  gap: 0.5rem !important;
}

body.customer-page .funnel-detail-diagram .funnel-stat-row {
  grid-template-columns: 7rem minmax(7rem, 1fr) 4.8rem !important;
  min-height: 2rem !important;
  gap: 0.56rem !important;
  padding: 0.2rem 0 !important;
}

body.customer-page .funnel-detail-diagram .funnel-stat-row > span:first-child {
  font-size: 0.72rem !important;
}

@media (max-width: 1080px) {
  body.customer-page .funnel-card-section {
    grid-template-columns: 1fr !important;
  }
}

/* ROAS presentation pass 2026-05-19 */
body.customer-page .funnel-card-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 0.8rem !important;
  min-height: 2.35rem !important;
  padding-right: 0 !important;
}

body.customer-page .funnel-card-roas {
  display: grid !important;
  position: static !important;
  justify-items: end !important;
  align-self: start !important;
  min-width: 4.15rem !important;
  min-height: auto !important;
  padding: 0.02rem 0 0.02rem 0.7rem !important;
  border: 0 !important;
  border-left: 2px solid rgba(37, 99, 235, 0.32) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.customer-page .funnel-card-roas small {
  display: block !important;
  margin-bottom: 0.16rem !important;
  color: rgba(15, 23, 42, 0.46) !important;
  font-size: 0.58rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

body.customer-page .funnel-card-roas b {
  display: block !important;
  color: #0f172a !important;
  font-size: 1.3rem !important;
  font-weight: 900 !important;
  line-height: 0.92 !important;
  letter-spacing: -0.01em !important;
}

body.customer-page .funnel-card-roas b::before {
  content: "" !important;
}

body.customer-page .funnel-card-roas b::after {
  content: "x";
  margin-left: 0.04rem;
  color: #2563eb;
  font-size: 0.62rem;
  font-weight: 900;
}

/* Remove ROAS from funnel cards 2026-05-19 */
body.customer-page .funnel-card-top {
  grid-template-columns: minmax(0, 1fr) !important;
  min-height: 1.55rem !important;
  padding-right: 0 !important;
}

body.customer-page .funnel-card-roas {
  display: none !important;
}

/* Funnel target KPI status 2026-05-19 */
body.customer-page .target-kpi-strip {
  margin-top: 0.72rem !important;
  padding: 0.74rem !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
}

body.customer-page .target-kpi-strip-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.8rem !important;
  margin-bottom: 0.58rem !important;
}

body.customer-page .target-kpi-strip-head span {
  color: rgba(15, 23, 42, 0.52) !important;
  font-size: 0.65rem !important;
  font-weight: 850 !important;
  text-transform: uppercase !important;
}

body.customer-page .target-kpi-strip-head strong {
  color: #0f172a !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
}

body.customer-page .target-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.5rem !important;
}

body.customer-page .target-kpi-card {
  min-width: 0 !important;
  padding: 0.56rem 0.62rem !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.customer-page .target-kpi-top,
body.customer-page .target-kpi-value {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 0.55rem !important;
}

body.customer-page .target-kpi-top span {
  overflow: hidden !important;
  color: rgba(15, 23, 42, 0.68) !important;
  font-size: 0.68rem !important;
  font-weight: 850 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.customer-page .target-kpi-top small {
  flex: 0 0 auto !important;
  font-size: 0.58rem !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

body.customer-page .target-kpi-value {
  margin-top: 0.32rem !important;
}

body.customer-page .target-kpi-value strong {
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.customer-page .target-kpi-value span {
  color: rgba(15, 23, 42, 0.54) !important;
  font-size: 0.64rem !important;
  font-weight: 750 !important;
  white-space: nowrap !important;
}

body.customer-page .target-kpi-progress {
  overflow: hidden !important;
  height: 0.32rem !important;
  margin-top: 0.48rem !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.08) !important;
}

body.customer-page .target-kpi-progress span {
  display: block !important;
  height: 100% !important;
  max-width: 100% !important;
  border-radius: inherit !important;
}

body.customer-page .target-kpi-delta {
  margin-top: 0.36rem !important;
  color: rgba(15, 23, 42, 0.64) !important;
  font-size: 0.64rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

body.customer-page .target-good .target-kpi-top small {
  color: #059669 !important;
}

body.customer-page .target-good .target-kpi-progress span {
  background: #10b981 !important;
}

body.customer-page .target-watch .target-kpi-top small {
  color: #d97706 !important;
}

body.customer-page .target-watch .target-kpi-progress span {
  background: #f59e0b !important;
}

body.customer-page .target-bad .target-kpi-top small {
  color: #dc2626 !important;
}

body.customer-page .target-bad .target-kpi-progress span {
  background: #ef4444 !important;
}

@media (max-width: 980px) {
  body.customer-page .target-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  body.customer-page .target-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}
