@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --color-brand: #e60000;
  --color-brand-hover: #cd0200;
  --color-brand-strong: #cd0200;
  --color-brand-deep: #cd0200;
  --color-brand-mint: #e60000;
  --color-brand-soft: #fde8e8;
  --color-nav-selected: #ff312e;
  --color-canvas: #ffffff;
  --color-surface: #ffffff;
  --color-text: #111111;
  --color-text-soft: #353535;
  --color-text-muted: #4b5563;
  --color-border: #e5e7eb;
  --color-border-strong: #d1d5db;
  --color-success: #1e9b69;
  --color-success-soft: #e2f7ea;
  --color-warning: #c5782a;
  --color-warning-soft: #fff0e3;
  --color-purple: #7655c4;
  --color-purple-soft: #f0eafe;
  --color-danger: #c46676;
  --color-danger-soft: #fce8ec;
  --radius-card: 6px;
  --radius-control: 6px;
  --radius-chip: 999px;
  --radius-sidebar: 24px;
  --shadow-sidebar: 0 0 0 rgba(0, 0, 0, 0);
  --shadow-card: 0 0 0 rgba(0, 0, 0, 0);
  --shadow-card-hover: 0 4px 14px rgba(24, 28, 34, 0.06);
  --font-ui: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --sidebar-width: 272px;
  --page-gutter: 44px;
  --transition-fast: 160ms ease;
  --transition-base: 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--color-canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

[hidden] {
  display: none !important;
}

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

.icon-sprite {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
  visibility: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--color-text);
  color: #fff;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(228, 235, 243, 0.85);
  border-left: 0;
  border-radius: 0 var(--radius-sidebar) var(--radius-sidebar) 0;
  background: var(--color-surface);
  box-shadow: var(--shadow-sidebar);
}

.sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 20px 20px 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand__mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 10px;
  background: var(--color-brand);
  box-shadow: 0 8px 16px rgba(230, 0, 0, 0.16);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 36px;
  text-align: center;
}

.brand__mark span:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.38);
}

.brand__wordmark {
  display: flex;
  align-items: baseline;
  letter-spacing: -0.6px;
  white-space: nowrap;
}

.brand__wordmark strong,
.brand__wordmark b {
  font-size: 18px;
  font-weight: 800;
}

.brand__wordmark b {
  position: relative;
  color: #25364a;
}

.brand__wordmark b::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-brand);
  content: "";
  transform: translateX(-1px);
}

.sidebar__close.icon-button,
.mobile-menu.icon-button {
  display: none;
}

.sidebar__label {
  padding: 8px 22px 10px;
  color: #4b5563;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.sidebar__navigation {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 12px 18px;
  scrollbar-width: thin;
}

.nav-entry + .nav-entry {
  margin-top: 4px;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.nav-item:hover {
  background: var(--color-brand-soft);
  color: var(--color-text);
}

.nav-item.is-active {
  background: var(--color-brand);
  box-shadow: 0 8px 18px rgba(230, 0, 0, 0.16);
  color: #fff;
}

.nav-item__icon {
  display: grid;
  width: 22px;
  flex: 0 0 22px;
  place-items: center;
}

.nav-item__icon svg {
  width: 18px;
  height: 18px;
}

.nav-item__label {
  flex: 1;
}

.nav-item__chevron {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.nav-entry.is-expanded .nav-item__chevron {
  transform: rotate(180deg);
}

.nav-children {
  position: relative;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows var(--transition-base), opacity var(--transition-fast);
}

.nav-entry.is-expanded .nav-children {
  grid-template-rows: 1fr;
  opacity: 1;
}

.nav-children__inner {
  min-height: 0;
  overflow: hidden;
}

.nav-children__inner::before {
  position: absolute;
  top: 4px;
  bottom: 8px;
  left: 23px;
  width: 1px;
  background: var(--color-brand-soft);
  content: "";
}

.nav-child {
  position: relative;
  display: block;
  width: 100%;
  padding: 9px 12px 9px 42px;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  transition: color var(--transition-fast);
}

.nav-child::before {
  position: absolute;
  top: 50%;
  left: 21px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--color-brand-soft);
  border-radius: 50%;
  background: #fff;
  content: "";
  transform: translateY(-50%);
}

.nav-child:hover {
  color: var(--color-text);
}

.sidebar__footer {
  padding: 10px 12px 14px;
  border-top: 1px solid #eef2f6;
  background: #fff;
}

.sidebar__support {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.sidebar__utility {
  display: flex;
  width: 100%;
  height: 40px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.sidebar__utility:hover {
  background: #f6f8fb;
  color: var(--color-brand-strong);
}

.sidebar__utility svg {
  width: 17px;
  height: 17px;
}

.account-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #f9fbfd;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.account-card:hover {
  border-color: #c9dff1;
  background: #f3f8fc;
}

.account-card__avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.account-card__copy {
  display: grid;
  flex: 1;
  min-width: 0;
}

.account-card__copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card__copy small {
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card > svg {
  width: 16px;
  height: 16px;
  color: #4b5563;
}

.sidebar-backdrop {
  display: none;
}

.main-content {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 26px var(--page-gutter) 36px;
}

.content-frame {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  min-height: 78px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-header__identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.overview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: var(--color-brand-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  line-height: 1.4;
  text-transform: uppercase;
}

.overview-kicker i {
  width: 6px;
  height: 6px;
  border: 2px solid rgba(79, 190, 178, 0.22);
  border-radius: 50%;
  background: var(--color-brand-mint);
  box-sizing: content-box;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  color: #97a5b6;
  font-size: 11px;
  font-weight: 600;
}

.breadcrumb i {
  font-style: normal;
}

.breadcrumb strong {
  color: var(--color-brand-strong);
  font-weight: 700;
}

.page-header h1 {
  margin: 0;
  color: #182333;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.9px;
  line-height: 1.25;
}

.page-header p,
.section-heading p,
.card__header p {
  margin: 5px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.page-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: #5e6e81;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.icon-button:hover {
  border-color: #c8dced;
  box-shadow: 0 7px 16px rgba(43, 74, 105, 0.07);
  color: var(--color-brand-strong);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.has-indicator {
  position: relative;
}

.has-indicator::after {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--color-brand);
  content: "";
}

.period-picker {
  position: relative;
}

.period-picker__trigger {
  display: flex;
  height: 40px;
  min-width: 260px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: #536478;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.1px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.period-picker__trigger:hover,
.period-picker__trigger[aria-expanded="true"] {
  border-color: #bcd8ed;
  box-shadow: 0 7px 16px rgba(43, 74, 105, 0.06);
}

.period-picker__trigger > svg:first-child {
  width: 17px;
  height: 17px;
  color: var(--color-brand-strong);
}

.period-picker__trigger span {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  text-align: left;
  white-space: nowrap;
}

.period-picker__chevron {
  width: 16px;
  height: 16px;
  color: #4b5563;
  transition: transform var(--transition-fast);
}

.period-picker__trigger[aria-expanded="true"] .period-picker__chevron {
  transform: rotate(180deg);
}

.period-picker__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 260px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(41, 66, 92, 0.14);
}

.period-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border-radius: 8px;
  background: transparent;
  color: #57687b;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
}

.period-option:hover {
  background: #f4f8fc;
}

.period-option.is-selected {
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
}

.period-option small {
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
}

.section-heading,
.card__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading--compact {
  align-items: center;
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--color-brand-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.25px;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-heading h2,
.card__header h2,
.summary-card h2 {
  margin: 0;
  color: #1e2b3c;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.45px;
  line-height: 1.35;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8190a1;
  font-size: 11px;
  font-weight: 600;
}

.live-status i {
  width: 7px;
  height: 7px;
  border: 2px solid #d6f3e5;
  border-radius: 50%;
  background: #3db982;
  box-sizing: content-box;
}

.metrics-section {
  margin-bottom: 20px;
}

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

.metric-card {
  --metric-background: #edf6fe;
  --metric-border: #dbeefd;
  --metric-accent: var(--color-brand);
  position: relative;
  min-width: 0;
  min-height: 142px;
  overflow: hidden;
  padding: 17px 16px 15px;
  border: 1px solid var(--metric-border);
  border-radius: var(--radius-card);
  background: var(--metric-background);
  opacity: 0;
  transform: translateY(7px);
  animation: metric-in 360ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.metric-card::before {
  position: absolute;
  top: 0;
  left: 17px;
  width: 30px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--metric-accent);
  content: "";
}

.metric-card:nth-child(2) { animation-delay: 40ms; }
.metric-card:nth-child(3) { animation-delay: 80ms; }
.metric-card:nth-child(4) { animation-delay: 120ms; }
.metric-card:nth-child(5) { animation-delay: 160ms; }
.metric-card:nth-child(6) { animation-delay: 200ms; }
.metric-card:nth-child(7) { animation-delay: 240ms; }

.metric-card[data-tone="cyan"] {
  --metric-background: #e9f8f7;
  --metric-border: #d7efec;
  --metric-accent: #21a69a;
}

.metric-card[data-tone="green"] {
  --metric-background: #eaf8ef;
  --metric-border: #d9efdf;
  --metric-accent: #2da76f;
}

.metric-card[data-tone="mint"] {
  --metric-background: #e8f7f3;
  --metric-border: #d5eee7;
  --metric-accent: #138d7d;
}

.metric-card[data-tone="sky"] {
  --metric-background: #ecf5fd;
  --metric-border: #daeaf8;
  --metric-accent: #488dd0;
}

.metric-card[data-tone="orange"] {
  --metric-background: #fff2e7;
  --metric-border: #f5e3d2;
  --metric-accent: #c97d31;
}

.metric-card[data-tone="purple"] {
  --metric-background: #f2edfc;
  --metric-border: #e4dcf7;
  --metric-accent: #7655c4;
}

.metric-card[data-metric-id="net-sales"] {
  --metric-background: linear-gradient(135deg, #edf6fe 0%, #f2f6ff 68%, #effaf7 100%);
  --metric-border: #cdddf4;
  --metric-accent: var(--color-brand-deep);
  box-shadow: 0 10px 22px rgba(44, 79, 155, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.metric-card[data-metric-id="net-sales"]::before {
  width: 52px;
  background: linear-gradient(90deg, var(--color-brand-deep), var(--color-brand-mint));
}

.metric-card[data-metric-id="net-sales"]::after {
  position: absolute;
  right: -20px;
  bottom: -34px;
  z-index: 0;
  width: 106px;
  height: 106px;
  border: 1px solid rgba(79, 190, 178, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(79, 190, 178, 0.07);
  content: "";
  pointer-events: none;
}

.metric-card[data-metric-id="net-sales"] > * {
  position: relative;
  z-index: 1;
}

.metric-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.metric-card__label {
  color: #526478;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.65px;
  line-height: 1.5;
  text-transform: uppercase;
}

.metric-card__icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--metric-accent);
}

.metric-card__icon svg {
  width: 15px;
  height: 15px;
}

.metric-card__value {
  display: block;
  margin-top: 12px;
  overflow: hidden;
  color: #172536;
  font-size: clamp(18px, 1.35vw, 24px);
  font-weight: 800;
  letter-spacing: -0.7px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.metric-card__meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: #8290a1;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.metric-card__change {
  color: var(--metric-accent);
  font-weight: 800;
}

@keyframes metric-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(420px, 5fr);
  gap: 20px;
  margin-bottom: 26px;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.ranking-card {
  min-height: 326px;
  padding: 22px 24px 19px;
}

.card__header {
  align-items: flex-start;
  margin-bottom: 17px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  background: transparent;
  color: var(--color-brand-strong);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.text-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.text-link:hover svg {
  transform: translateX(3px);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 24px minmax(94px, 0.8fr) minmax(140px, 2.4fr) 82px 54px;
  align-items: center;
  gap: 10px;
}

.ranking-row__rank {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 7px;
  background: #f2f6fa;
  color: #718096;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ranking-row:first-child .ranking-row__rank {
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
}

.ranking-row__name {
  overflow: hidden;
  color: #344458;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row__track {
  height: 7px;
  overflow: hidden;
  border-radius: var(--radius-chip);
  background: #eff3f7;
}

.ranking-row__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #91c9f3;
  transition: width 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ranking-row:first-child .ranking-row__fill {
  background: var(--color-brand);
}

.ranking-row__amount,
.ranking-row__trend {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ranking-row__amount {
  color: #344458;
  font-size: 11px;
  font-weight: 700;
}

.ranking-row__trend {
  color: var(--color-success);
  font-size: 11px;
  font-weight: 700;
}

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

.summary-card {
  min-width: 0;
  min-height: 326px;
  padding: 21px 18px;
}

.summary-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}

.summary-card__icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
}

.summary-card__icon svg {
  width: 16px;
  height: 16px;
}

.summary-total {
  padding: 12px 13px;
  border-radius: 10px;
  background: #f7f9fc;
}

.summary-total span {
  display: block;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.summary-total strong {
  display: block;
  margin-top: 3px;
  color: #243448;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.7px;
  font-variant-numeric: tabular-nums;
}

.commission-bar {
  display: flex;
  height: 7px;
  gap: 2px;
  overflow: hidden;
  margin: 15px 0 14px;
  border-radius: var(--radius-chip);
  background: #eef2f6;
}

.commission-bar span {
  display: block;
  height: 100%;
}

.tone-green { background: #54c292; }
.tone-orange { background: #e5a15e; }
.tone-blue { background: var(--color-brand); }
.tone-pink { background: #dc8f9d; }

.summary-list {
  display: grid;
  gap: 11px;
}

.summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0;
}

button.summary-row {
  width: 100%;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.summary-row__label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: #5c6c7f;
  font-size: 11px;
  font-weight: 600;
}

.summary-row__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
}

.summary-row strong {
  color: #26364a;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.status-list {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}

.status-row {
  display: grid;
  gap: 7px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.status-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-row__top span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5c6c7f;
  font-size: 11px;
  font-weight: 600;
}

.status-row__top strong {
  color: #26364a;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.status-row__track {
  height: 5px;
  overflow: hidden;
  border-radius: var(--radius-chip);
  background: #eef2f6;
}

.status-row__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.arrivals-section {
  margin-bottom: 26px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.button svg {
  width: 14px;
  height: 14px;
}

.button--primary {
  border: 1px solid var(--color-brand);
  background: var(--color-brand);
  box-shadow: 0 8px 18px rgba(230, 0, 0, 0.16);
  color: #fff;
}

.button--primary:hover {
  border-color: var(--color-brand-hover);
  background: var(--color-brand-hover);
  box-shadow: 0 10px 22px rgba(230, 0, 0, 0.2);
  transform: translateY(-1px);
}

.button--secondary {
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: #506176;
}

.button--secondary:hover {
  border-color: #bcd7ec;
  color: var(--color-brand-strong);
}

.button--applied {
  border: 1px solid #ccebdc;
  background: var(--color-success-soft);
  box-shadow: none;
  color: var(--color-success);
}

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

.merchant-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 252px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.merchant-card:hover {
  border-color: #cbdfea;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.merchant-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.merchant-logo {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--logo-background);
  color: var(--logo-color);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.merchant-card__identity {
  min-width: 0;
  flex: 1;
  padding-top: 2px;
}

.merchant-card__identity h3 {
  margin: 0;
  overflow: hidden;
  color: #223247;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.25px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-card__identity p {
  margin: 3px 0 0;
  color: #93a0af;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.status-chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-chip);
  font-weight: 700;
  white-space: nowrap;
}

.status-chip {
  min-height: 23px;
  padding: 0 9px;
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
  font-size: 11px;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.merchant-card__commission {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 0 13px;
  padding: 12px 13px;
  border-radius: 10px;
  background: #f7f9fc;
}

.merchant-card__commission span {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.merchant-card__commission strong {
  color: var(--color-brand);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.merchant-card__meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-bottom: 16px;
  color: #637488;
  font-size: 11px;
  font-weight: 600;
}

.merchant-card__meta span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.merchant-card__meta svg {
  width: 13px;
  height: 13px;
  color: #91a1b4;
}

.merchant-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.merchant-card__domain {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #7d8c9e;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-card__footer .button {
  min-width: 62px;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px 0;
  border-top: 1px solid #e6edf4;
  color: #98a6b5;
  font-size: 11px;
  font-weight: 600;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(22, 35, 49, 0.28);
  cursor: default;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.merchant-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 110;
  width: min(460px, 42vw);
  overflow-y: auto;
  border-left: 1px solid var(--color-border);
  background: #fff;
  box-shadow: -18px 0 50px rgba(28, 48, 67, 0.15);
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.merchant-drawer.is-open {
  transform: translateX(0);
}

.merchant-drawer__content {
  min-height: 100%;
  padding: 24px;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.drawer-header__merchant {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.drawer-header .merchant-logo {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  cursor: default;
}

.drawer-header h2 {
  margin: 0;
  color: #1e2c3e;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.drawer-header p {
  margin: 3px 0 0;
  color: var(--color-text-muted);
  font-size: 11px;
}

.drawer-section {
  padding: 21px 0;
  border-bottom: 1px solid var(--color-border);
}

.drawer-section__label {
  margin: 0 0 12px;
  color: #96a3b3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.drawer-commission {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 17px;
  border-radius: 12px;
  background: var(--color-brand-soft);
}

.drawer-commission span {
  color: #6285a1;
  font-size: 11px;
  font-weight: 600;
}

.drawer-commission strong {
  color: var(--color-brand-strong);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}

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

.drawer-fact {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fbfcfe;
}

.drawer-fact span {
  display: block;
  color: #94a2b2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.drawer-fact strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #405166;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-chip {
  min-height: 28px;
  padding: 0 10px;
  background: #f2f6fa;
  color: #65768a;
  font-size: 11px;
}

.drawer-description {
  margin: 0;
  color: #4b5563;
  font-size: 11px;
  line-height: 1.75;
}

.drawer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 10px;
  padding-top: 22px;
}

.drawer-actions .button {
  min-height: 42px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: flex;
  min-width: 300px;
  max-width: 420px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #cfe9dd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(35, 59, 81, 0.16);
  color: #3e5366;
  font-size: 11px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast__icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-success-soft);
  color: var(--color-success);
}

.toast__icon svg {
  width: 15px;
  height: 15px;
}

.toast > span:nth-child(2) {
  flex: 1;
}

.toast button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  background: transparent;
  color: #96a4b4;
  cursor: pointer;
}

.toast button:hover {
  background: #f2f5f8;
  color: #596a7e;
}

.toast button svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 1439px) {
  :root {
    --sidebar-width: 220px;
    --page-gutter: 24px;
  }

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

  .metric-card {
    min-height: 132px;
  }

  .metric-card__value {
    font-size: 22px;
  }

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

@media (max-width: 1199px) {
  :root {
    --sidebar-width: 74px;
  }

  .sidebar__top {
    justify-content: center;
    padding-inline: 12px;
  }

  .brand__wordmark,
  .sidebar__label,
  .nav-item__label,
  .nav-item__chevron,
  .nav-children,
  .sidebar__utility span,
  .account-card__copy,
  .account-card > svg {
    display: none;
  }

  .sidebar__navigation {
    padding-inline: 9px;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .sidebar__utility,
  .account-card {
    justify-content: center;
    padding-inline: 0;
  }

  .account-card {
    border: 0;
    background: transparent;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

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

  .summary-card {
    min-height: 270px;
  }
}

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

  body.is-navigation-open,
  body.is-overlay-open {
    overflow: hidden;
  }

  .sidebar {
    width: min(274px, 86vw);
    border-radius: 0 var(--radius-sidebar) var(--radius-sidebar) 0;
    box-shadow: 16px 0 40px rgba(31, 52, 72, 0.18);
    transform: translateX(-110%);
    transition: transform var(--transition-base);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar__top {
    justify-content: space-between;
    padding-inline: 20px 14px;
  }

  .sidebar__close.icon-button,
  .mobile-menu.icon-button {
    display: inline-grid;
  }

  .brand__wordmark {
    display: flex;
  }

  .sidebar__label {
    display: block;
  }

  .nav-item__label {
    display: inline;
  }

  .nav-item__chevron {
    display: block;
  }

  .nav-children {
    display: grid;
  }

  .sidebar__utility span {
    display: inline;
  }

  .account-card__copy {
    display: grid;
  }

  .account-card > svg {
    display: block;
  }

  .sidebar__navigation {
    padding-inline: 12px;
  }

  .nav-item {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .sidebar__utility,
  .account-card {
    justify-content: flex-start;
    padding-inline: 12px;
  }

  .account-card {
    border: 1px solid var(--color-border);
    background: #f9fbfd;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(22, 35, 49, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .main-content {
    margin-left: 0;
    padding: 18px var(--page-gutter) 28px;
  }

  .page-header {
    display: block;
    margin-bottom: 20px;
  }

  .page-header__identity {
    align-items: center;
  }

  .mobile-menu {
    margin-top: 2px;
  }

  .breadcrumb {
    display: none;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .page-header p {
    max-width: 420px;
    margin-top: 3px;
  }

  .page-header__actions {
    padding-top: 16px;
  }

  .period-picker {
    min-width: 0;
    flex: 1;
  }

  .period-picker__trigger {
    width: 100%;
    min-width: 0;
  }

  .period-picker__menu {
    right: auto;
    left: 0;
    width: min(300px, calc(100vw - 32px));
  }

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

  .metric-card {
    min-height: 130px;
  }

  .metric-card[data-tone="green"],
  .metric-card[data-tone="mint"] {
    grid-column: span 2;
  }

  .analytics-grid,
  .summary-grid,
  .merchant-grid {
    grid-template-columns: 1fr;
  }

  .ranking-card,
  .summary-card {
    min-height: auto;
  }

  .ranking-card {
    padding: 20px 16px;
  }

  .ranking-row {
    grid-template-columns: 23px minmax(78px, 0.9fr) minmax(70px, 1.6fr) 76px;
    gap: 8px;
  }

  .ranking-row__trend {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
  }

  .merchant-card {
    min-height: 244px;
  }

  .merchant-drawer {
    width: 100%;
    max-width: none;
  }

  .merchant-drawer__content {
    padding: 20px 18px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 479px) {
  .utility-action {
    display: none;
  }

  .page-header__actions {
    width: 100%;
  }

  .section-heading--compact {
    align-items: flex-start;
  }

  .live-status {
    max-width: 90px;
    justify-content: flex-end;
    text-align: right;
  }

  .metric-card {
    padding-inline: 14px;
  }

  .metric-card__value {
    font-size: 19px;
  }

  .metric-card__meta > span:last-child {
    display: none;
  }

  .card__header {
    gap: 10px;
  }

  .ranking-row {
    grid-template-columns: 22px minmax(72px, 0.9fr) minmax(48px, 1fr) 70px;
  }

  .merchant-card__footer {
    flex-wrap: wrap;
  }

  .merchant-card__domain {
    width: 100%;
    flex-basis: 100%;
  }

  .merchant-card__footer .button {
    flex: 1;
  }

  .drawer-facts,
  .drawer-actions {
    grid-template-columns: 1fr;
  }

  .page-footer {
    display: grid;
    gap: 4px;
  }
}

/* Integrations & Settings / Recruitment page */
body.is-recruitment-page-settings-page {
  --recruitment-settings-red: #e60000;
  --recruitment-settings-red-dark: #c90000;
  --recruitment-settings-soft-red: #fde8e8;
  --recruitment-settings-selected-red: #ff312e;
  --recruitment-settings-border: #e5e7eb;
  --recruitment-settings-line: #edf0f3;
  --recruitment-settings-text: #111111;
  --recruitment-settings-text-strong: #1f2937;
  --recruitment-settings-text-secondary: #374151;
  --recruitment-settings-text-muted: #4b5563;
  --recruitment-settings-success: #13864e;
  background: #ffffff;
}

.is-recruitment-page-settings-page .page-header {
  min-height: 104px;
  margin-bottom: 18px;
}

.is-recruitment-page-settings-page .scope-line,
.is-recruitment-page-settings-page .page-header__filters {
  display: none;
}

.is-recruitment-page-settings-page .page-header__actions {
  width: auto;
  flex: 0 0 auto;
  gap: 20px;
  padding-top: 0;
}

.is-recruitment-page-settings-page .page-header__utility {
  padding-top: 0;
}

.is-recruitment-page-settings-page .page-header__page-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.is-recruitment-page-settings-page .recruitment-page-settings-actions > .button {
  min-width: 116px;
  height: 36px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.is-recruitment-page-settings-page .recruitment-page-settings-actions > .button:first-child {
  border-color: var(--recruitment-settings-border);
  color: var(--recruitment-settings-text-secondary);
}

.is-recruitment-page-settings-page .recruitment-page-settings-actions > .button:first-child:hover {
  border-color: var(--recruitment-settings-red);
  color: var(--recruitment-settings-red);
}

.is-recruitment-page-settings-page .recruitment-page-settings-actions > .button:last-child {
  border-color: var(--recruitment-settings-red);
  background: var(--recruitment-settings-red);
  color: #ffffff;
}

.is-recruitment-page-settings-page .recruitment-page-settings-actions > .button:last-child:hover {
  border-color: var(--recruitment-settings-red-dark);
  background: var(--recruitment-settings-red-dark);
}

.recruitment-page-settings-actions svg {
  width: 14px;
  height: 14px;
}

.is-recruitment-page-settings-page .breadcrumb [data-breadcrumb-parent] {
  color: var(--recruitment-settings-red);
  font-weight: 600;
}

.is-recruitment-page-settings-page .breadcrumb strong,
.is-recruitment-page-settings-page .page-header h1 {
  color: var(--recruitment-settings-text);
}

.is-recruitment-page-settings-page .page-header h1 {
  font-size: 30px;
  letter-spacing: -0.9px;
}

.is-recruitment-page-settings-page .page-header p {
  max-width: 720px;
  color: var(--recruitment-settings-text-secondary);
  font-size: 13px;
}

.is-recruitment-page-settings-page .nav-item[data-nav-item="settings"] {
  background: var(--recruitment-settings-red);
  color: #ffffff;
}

.is-recruitment-page-settings-page .nav-item[data-nav-item="settings"]:hover {
  background: var(--recruitment-settings-red-dark);
  color: #ffffff;
}

.is-recruitment-page-settings-page .nav-item[data-nav-item="settings"] .nav-item__icon,
.is-recruitment-page-settings-page .nav-item[data-nav-item="settings"] .nav-item__chevron {
  color: #ffffff;
}

.is-recruitment-page-settings-page .nav-child[data-nav-child="recruitment-page"] {
  background: var(--recruitment-settings-soft-red);
  box-shadow: inset 3px 0 0 var(--recruitment-settings-selected-red);
  color: var(--recruitment-settings-selected-red);
  font-weight: 600;
}

.recruitment-page-settings[hidden] {
  display: none;
}

.recruitment-page-settings {
  display: block;
  color: var(--recruitment-settings-text-secondary);
  font-size: 12px;
}

.recruitment-page-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .78fr);
  align-items: start;
  gap: 18px;
}

.recruitment-page-settings-main,
.recruitment-page-settings-aside {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.recruitment-page-settings-aside {
  position: sticky;
  top: 18px;
}

.recruitment-settings-card {
  min-width: 0;
  border: 1px solid var(--recruitment-settings-border);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: none;
}

.recruitment-settings-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid var(--recruitment-settings-line);
}

.recruitment-settings-card__header h2 {
  margin: 4px 0 5px;
  color: var(--recruitment-settings-text-strong);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.15px;
}

.recruitment-settings-card__header p {
  max-width: 560px;
  margin: 0;
  color: var(--recruitment-settings-text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.recruitment-settings-eyebrow {
  display: block;
  color: var(--recruitment-settings-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .9px;
  line-height: 1.2;
  text-transform: uppercase;
}

.recruitment-settings-status-pill,
.recruitment-page-preview__live-dot {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eaf8ef;
  color: var(--recruitment-settings-success);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.recruitment-settings-status-pill::before,
.recruitment-page-preview__live-dot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.recruitment-settings-status-pill.is-disabled {
  background: #f3f4f6;
  color: var(--recruitment-settings-text-muted);
}

.recruitment-settings-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 22px 0;
  padding: 14px;
  border: 1px solid #f2d1d1;
  border-radius: 6px;
  background: #fffafa;
}

.recruitment-settings-status-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--recruitment-settings-soft-red);
  color: var(--recruitment-settings-red);
}

.recruitment-settings-status-icon svg {
  width: 17px;
  height: 17px;
}

.recruitment-settings-status-row > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  flex: 1;
}

.recruitment-settings-status-row strong,
.recruitment-settings-status-row small {
  line-height: 1.35;
}

.recruitment-settings-status-row strong {
  color: var(--recruitment-settings-text-strong);
  font-size: 11px;
}

.recruitment-settings-status-row small {
  color: var(--recruitment-settings-text-muted);
  font-size: 11px;
}

.recruitment-settings-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--recruitment-settings-text-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.recruitment-settings-switch__track {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background .2s ease;
}

.recruitment-settings-switch__track i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(17 24 39 / 18%);
  transition: transform .2s ease;
}

.recruitment-settings-switch.is-enabled {
  color: var(--recruitment-settings-red);
}

.recruitment-settings-switch.is-enabled .recruitment-settings-switch__track {
  background: var(--recruitment-settings-red);
}

.recruitment-settings-switch.is-enabled .recruitment-settings-switch__track i {
  transform: translateX(14px);
}

.recruitment-settings-switch:focus-visible,
.recruitment-settings-url-control button:focus-visible,
.recruitment-page-preview__browser-bar button:focus-visible,
.recruitment-page-preview__cta:focus-visible {
  outline: 2px solid var(--recruitment-settings-selected-red);
  outline-offset: 2px;
}

.recruitment-settings-url-row {
  display: grid;
  gap: 7px;
  margin: 17px 22px 21px;
}

.recruitment-settings-url-row > label,
.recruitment-settings-field > span {
  color: var(--recruitment-settings-text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.recruitment-settings-url-control {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.recruitment-settings-url-control input,
.recruitment-settings-field input,
.recruitment-settings-field textarea,
.recruitment-settings-field select {
  min-width: 0;
  border: 1px solid var(--recruitment-settings-border);
  border-radius: 5px;
  background: #ffffff;
  color: var(--recruitment-settings-text-secondary);
  font: inherit;
  font-size: 11px;
  line-height: 1.35;
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.recruitment-settings-url-control input {
  flex: 1;
  height: 34px;
  padding: 0 10px;
  background: #f9fafb;
  color: var(--recruitment-settings-text-muted);
}

.recruitment-settings-url-control button {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid var(--recruitment-settings-border);
  border-radius: 5px;
  background: #ffffff;
  color: var(--recruitment-settings-text-secondary);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.recruitment-settings-url-control button:hover {
  border-color: var(--recruitment-settings-red);
  color: var(--recruitment-settings-red);
}

.recruitment-settings-url-control button svg {
  width: 13px;
  height: 13px;
}

.recruitment-settings-url-row > small,
.recruitment-settings-field > small {
  color: var(--recruitment-settings-text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.recruitment-settings-form-grid,
.recruitment-settings-copy-fields {
  display: grid;
  gap: 15px;
  padding: 18px 22px 22px;
}

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

.recruitment-settings-copy-fields {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
}

.recruitment-settings-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.recruitment-settings-field textarea {
  min-height: 79px;
  resize: vertical;
}

.recruitment-settings-field input,
.recruitment-settings-field select,
.recruitment-settings-field textarea {
  width: 100%;
  padding: 9px 10px;
}

.recruitment-settings-field input,
.recruitment-settings-field select {
  height: 36px;
}

.recruitment-settings-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #4b5563 50%), linear-gradient(135deg, #4b5563 50%, transparent 50%);
  background-position: calc(100% - 14px) 15px, calc(100% - 10px) 15px;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
  padding-right: 28px;
}

.recruitment-settings-field input:focus,
.recruitment-settings-field textarea:focus,
.recruitment-settings-field select:focus {
  border-color: var(--focus-accent);
  box-shadow: none;
}

.recruitment-settings-field--short {
  grid-column: 1 / -1;
  max-width: 300px;
}

.recruitment-settings-field-list {
  display: grid;
  padding: 7px 22px 14px;
}

.recruitment-settings-field-row {
  display: flex;
  min-height: 55px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--recruitment-settings-line);
  cursor: pointer;
}

.recruitment-settings-field-row:last-child {
  border-bottom: 0;
}

.recruitment-settings-field-row__icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border-radius: 5px;
  background: #f7f8fa;
  color: var(--recruitment-settings-text-muted);
}

.recruitment-settings-field-row__icon svg {
  width: 14px;
  height: 14px;
}

.recruitment-settings-field-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.recruitment-settings-field-row strong {
  color: var(--recruitment-settings-text-strong);
  font-size: 11px;
}

.recruitment-settings-field-row small {
  color: var(--recruitment-settings-text-muted);
  font-size: 11px;
}

.recruitment-settings-field-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--recruitment-settings-red);
}

.recruitment-page-preview-card {
  overflow: hidden;
}

.recruitment-settings-card__header--preview {
  align-items: center;
}

.recruitment-page-preview__live-dot {
  min-height: 22px;
  background: var(--recruitment-settings-soft-red);
  color: var(--recruitment-settings-red);
  font-size: 11px;
  letter-spacing: .2px;
  text-transform: uppercase;
}

.recruitment-page-preview__browser-bar {
  display: flex;
  height: 32px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border-bottom: 1px solid var(--recruitment-settings-line);
  background: #f8f9fb;
}

.recruitment-page-preview__browser-dots {
  display: inline-flex;
  gap: 3px;
}

.recruitment-page-preview__browser-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d1d5db;
}

.recruitment-page-preview__browser-url {
  overflow: hidden;
  flex: 1;
  color: var(--recruitment-settings-text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recruitment-page-preview__browser-bar button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--recruitment-settings-text-muted);
  cursor: pointer;
}

.recruitment-page-preview__browser-bar button:hover {
  color: var(--recruitment-settings-red);
}

.recruitment-page-preview__browser-bar button svg {
  width: 13px;
  height: 13px;
}

.recruitment-page-preview__canvas {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #ffffff;
}

.recruitment-page-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid #f1f2f4;
}

.recruitment-page-preview__logo {
  color: var(--recruitment-settings-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.8px;
}

.recruitment-page-preview__logo b {
  color: var(--recruitment-settings-red);
}

.recruitment-page-preview__brand-name {
  color: var(--recruitment-settings-text-muted);
  font-size: 11px;
}

.recruitment-page-preview__hero {
  padding: 36px 28px 31px;
  background: linear-gradient(135deg, #fff6f6 0%, #ffffff 74%);
}

.recruitment-page-preview__eyebrow {
  color: var(--recruitment-settings-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.recruitment-page-preview__hero h3 {
  max-width: 320px;
  margin: 10px 0 9px;
  color: var(--recruitment-settings-text);
  font-size: 27px;
  letter-spacing: -1px;
  line-height: 1.08;
}

.recruitment-page-preview__hero p {
  max-width: 355px;
  margin: 0;
  color: var(--recruitment-settings-text-secondary);
  font-size: 11px;
  line-height: 1.55;
}

.recruitment-page-preview__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 9px 13px;
  border: 1px solid var(--recruitment-settings-red);
  border-radius: 5px;
  background: var(--recruitment-settings-red);
  color: #ffffff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.recruitment-page-preview__cta:hover {
  border-color: var(--recruitment-settings-red-dark);
  background: var(--recruitment-settings-red-dark);
}

.recruitment-page-preview__cta svg {
  width: 13px;
  height: 13px;
}

.recruitment-page-preview__application {
  margin: 0 20px 20px;
  padding: 17px;
  border: 1px solid var(--recruitment-settings-border);
  border-radius: 6px;
  background: #ffffff;
}

.recruitment-page-preview__application-heading {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.recruitment-page-preview__application-heading > span {
  color: var(--recruitment-settings-red);
  font-size: 11px;
  font-weight: 800;
}

.recruitment-page-preview__application-heading > div {
  display: grid;
  gap: 3px;
}

.recruitment-page-preview__application-heading strong {
  color: var(--recruitment-settings-text-strong);
  font-size: 12px;
}

.recruitment-page-preview__application-heading small,
.recruitment-page-preview__queue-note {
  color: var(--recruitment-settings-text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.recruitment-page-preview__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 15px 0 11px;
}

.recruitment-page-preview__fields label {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.recruitment-page-preview__fields label > span {
  overflow: hidden;
  color: var(--recruitment-settings-text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recruitment-page-preview__fields label > i {
  min-height: 27px;
  padding: 7px 8px;
  border: 1px solid var(--recruitment-settings-border);
  border-radius: 4px;
  color: #9ca3af;
  font-size: 11px;
  font-style: normal;
}

.recruitment-page-preview__disabled {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 20px;
  background: rgb(255 255 255 / 88%);
  text-align: center;
}

.recruitment-page-preview__disabled strong {
  color: var(--recruitment-settings-text-strong);
  font-size: 13px;
}

.recruitment-page-preview__disabled span {
  color: var(--recruitment-settings-text-muted);
  font-size: 11px;
}

.recruitment-publishing-card {
  padding-bottom: 17px;
}

.recruitment-publishing-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 22px 0;
  list-style: none;
}

.recruitment-publishing-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 47px;
  border-bottom: 1px solid var(--recruitment-settings-line);
}

.recruitment-publishing-list li:last-child {
  border-bottom: 0;
}

.recruitment-publishing-list li > span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  background: #eaf8ef;
  color: var(--recruitment-settings-success);
}

.recruitment-publishing-list li > span svg {
  width: 12px;
  height: 12px;
}

.recruitment-publishing-list li > div {
  display: grid;
  gap: 2px;
}

.recruitment-publishing-list strong {
  color: var(--recruitment-settings-text-secondary);
  font-size: 11px;
}

.recruitment-publishing-list small {
  color: var(--recruitment-settings-text-muted);
  font-size: 11px;
}

.recruitment-publishing-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 12px 22px 0;
  padding: 9px 10px;
  border-radius: 5px;
  background: #f8f9fb;
  color: var(--recruitment-settings-text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.recruitment-publishing-note svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: var(--recruitment-settings-text-secondary);
}

@media (max-width: 1120px) {
  .recruitment-page-settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .recruitment-page-settings-aside {
    position: static;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    align-items: start;
  }
}

@media (max-width: 767px) {
  .is-recruitment-page-settings-page .page-header {
    min-height: 0;
  }

  .is-recruitment-page-settings-page .page-header__actions {
    display: grid;
    gap: 14px;
    padding-top: 16px;
  }

  .is-recruitment-page-settings-page .page-header__page-actions {
    align-items: stretch;
  }

  .is-recruitment-page-settings-page .recruitment-page-settings-actions > .button {
    width: 100%;
  }

  .recruitment-page-settings-aside {
    grid-template-columns: 1fr;
  }

  .recruitment-settings-status-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .recruitment-settings-status-row > div {
    flex-basis: calc(100% - 56px);
  }

  .recruitment-settings-switch {
    margin-left: 46px;
  }
}

@media (max-width: 479px) {
  .recruitment-settings-card__header,
  .recruitment-settings-form-grid,
  .recruitment-settings-copy-fields {
    padding-inline: 14px;
  }

  .recruitment-settings-status-row,
  .recruitment-settings-url-row {
    margin-inline: 14px;
  }

  .recruitment-settings-form-grid,
  .recruitment-settings-copy-fields,
  .recruitment-page-preview__fields {
    grid-template-columns: 1fr;
  }

  .recruitment-settings-field--short {
    max-width: none;
  }

  .recruitment-settings-field-list,
  .recruitment-publishing-list {
    padding-inline: 14px;
  }

  .recruitment-publishing-note {
    margin-inline: 14px;
  }

  .recruitment-page-preview__hero {
    padding-inline: 20px;
  }

  .recruitment-page-preview__application {
    margin-inline: 14px;
  }

  .recruitment-settings-url-control {
    align-items: stretch;
    flex-direction: column;
  }

  .recruitment-settings-url-control input,
  .recruitment-settings-url-control button {
    width: 100%;
  }
}

/* Integrations & Settings / Team accounts */
body.is-team-accounts-page {
  --team-accounts-red: #e60000;
  --team-accounts-red-dark: #cd0200;
  --team-accounts-soft-red: #fde8e8;
  --team-accounts-selected-red: #ff312e;
  --team-accounts-border: #e5e7eb;
  --team-accounts-line: #edf0f3;
  --team-accounts-text: #111111;
  --team-accounts-text-strong: #1f2937;
  --team-accounts-text-secondary: #374151;
  --team-accounts-text-muted: #4b5563;
  --team-accounts-success: #13864e;
  --team-accounts-warning: #a96b00;
  background: #ffffff;
}

.is-team-accounts-page .page-header {
  min-height: 104px;
  margin-bottom: 18px;
}

.is-team-accounts-page .scope-line,
.is-team-accounts-page .page-header__filters {
  display: none;
}

.is-team-accounts-page .page-header__actions {
  width: auto;
  flex: 0 0 auto;
  gap: 20px;
  padding-top: 0;
}

.is-team-accounts-page .page-header__utility {
  padding-top: 0;
}

.is-team-accounts-page .page-header__page-actions {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.is-team-accounts-page .team-accounts-page-actions > .button {
  min-width: 164px;
  height: 36px;
  border-color: var(--team-accounts-red);
  border-radius: 6px;
  background: var(--team-accounts-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

.is-team-accounts-page .team-accounts-page-actions > .button:hover {
  border-color: var(--team-accounts-red-dark);
  background: var(--team-accounts-red-dark);
}

.team-accounts-page-actions > .button svg {
  width: 15px;
  height: 15px;
}

.is-team-accounts-page .breadcrumb [data-breadcrumb-parent] {
  color: var(--team-accounts-red);
  font-weight: 600;
}

.is-team-accounts-page .breadcrumb strong,
.is-team-accounts-page .page-header h1 {
  color: var(--team-accounts-text);
}

.is-team-accounts-page .page-header h1 {
  font-size: 30px;
  letter-spacing: -0.9px;
}

.is-team-accounts-page .page-header p {
  max-width: 660px;
  color: var(--team-accounts-text-secondary);
  font-size: 13px;
}

.is-team-accounts-page .nav-item[data-nav-item="settings"] {
  background: var(--team-accounts-red);
  color: #ffffff;
}

.is-team-accounts-page .nav-item[data-nav-item="settings"]:hover {
  background: var(--team-accounts-red-dark);
  color: #ffffff;
}

.is-team-accounts-page .nav-item[data-nav-item="settings"] .nav-item__icon,
.is-team-accounts-page .nav-item[data-nav-item="settings"] .nav-item__chevron {
  color: #ffffff;
}

.is-team-accounts-page .nav-child[data-nav-child="team-accounts"] {
  background: var(--team-accounts-soft-red);
  box-shadow: inset 3px 0 0 var(--team-accounts-selected-red);
  color: var(--team-accounts-selected-red);
  font-weight: 600;
}

.team-accounts-page[hidden] {
  display: none;
}

.team-accounts-page {
  display: grid;
  gap: 18px;
  color: var(--team-accounts-text-secondary);
  font-size: 12px;
}

.team-accounts-summary-card,
.team-accounts-directory-card {
  min-width: 0;
  border: 1px solid var(--team-accounts-border);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: none;
}

.team-accounts-summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(155px, 1fr)) minmax(340px, 1.42fr);
  min-height: 144px;
  align-items: stretch;
  gap: 0;
  padding: 19px 21px;
}

.team-accounts-stat {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 0 23px;
  border-right: 1px solid var(--team-accounts-line);
}

.team-accounts-stat--members {
  padding-left: 8px;
}

.team-accounts-stat-icon {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  place-items: center;
  border-radius: 50%;
}

.team-accounts-stat-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.8;
}

.team-accounts-stat--members .team-accounts-stat-icon {
  background: #ffe3e5;
  color: var(--team-accounts-red);
}

.team-accounts-stat--invites .team-accounts-stat-icon {
  background: #fff6df;
  color: var(--team-accounts-warning);
}

.team-accounts-stat--seats .team-accounts-stat-icon {
  background: #eaf8ef;
  color: var(--team-accounts-success);
}

.team-accounts-stat-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.team-accounts-stat-copy strong,
.team-accounts-stat-copy small {
  color: var(--team-accounts-text-secondary);
  font-size: 11px;
  line-height: 1.3;
}

.team-accounts-stat-copy b {
  color: var(--team-accounts-text-strong);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.05;
}

.team-accounts-stat-copy small {
  color: var(--team-accounts-text-muted);
  font-size: 11px;
}

.team-accounts-invite-card {
  display: grid;
  align-content: center;
  gap: 11px;
  min-width: 0;
  margin-left: 16px;
  padding: 12px 15px;
  border: 1px solid var(--team-accounts-border);
  border-radius: 7px;
  background: #ffffff;
}

.team-accounts-invite-card h2 {
  margin: 0;
  color: var(--team-accounts-text-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.team-accounts-invite-card p {
  margin: 3px 0 0;
  color: var(--team-accounts-text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.team-accounts-invite-form {
  display: flex;
  min-width: 0;
  gap: 10px;
}

.team-accounts-invite-form input,
.team-accounts-search input {
  min-width: 0;
  height: 34px;
  border: 1px solid #dfe4ea;
  border-radius: 5px;
  background: #ffffff;
  color: var(--team-accounts-text-secondary);
  font: inherit;
  font-size: 11px;
  outline: none;
}

.team-accounts-invite-form input {
  flex: 1;
  padding: 0 10px;
}

.team-accounts-invite-form input::placeholder,
.team-accounts-search input::placeholder {
  color: #7a8698;
}

.team-accounts-invite-form input:focus,
.team-accounts-search input:focus,
.team-accounts-brand-filter select:focus,
.team-accounts-page-size select:focus,
.team-accounts-filter-menu select:focus {
  border-color: var(--focus-accent);
  box-shadow: none;
}

.team-accounts-invite-form button {
  min-width: 66px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #f4c8c8;
  border-radius: 5px;
  background: #fff4f4;
  color: var(--team-accounts-red);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
}

.team-accounts-invite-form button:hover {
  border-color: var(--team-accounts-red);
  background: var(--team-accounts-soft-red);
}

.team-accounts-toolbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 22px;
}

.team-accounts-toolbar-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.team-accounts-search-form,
.team-accounts-search {
  min-width: 0;
}

.team-accounts-search {
  display: flex;
  width: 222px;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #dfe4ea;
  border-radius: 5px;
  background: #ffffff;
}

.team-accounts-search svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--team-accounts-text-muted);
}

.team-accounts-search input {
  width: 100%;
  height: 31px;
  padding: 0;
  border: 0;
}

.team-accounts-search input:focus {
  box-shadow: none;
}

.team-accounts-filter-wrap {
  position: relative;
}

.team-accounts-outline-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #dfe4ea;
  border-radius: 5px;
  background: #ffffff;
  color: var(--team-accounts-text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
}

.team-accounts-outline-button:hover,
.team-accounts-outline-button[aria-expanded="true"] {
  border-color: #f2bcbc;
  background: #fff7f7;
  color: var(--team-accounts-red);
}

.team-accounts-outline-button svg {
  width: 15px;
  height: 15px;
}

.team-accounts-filter-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  width: 190px;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--team-accounts-border);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 9px 22px rgb(17 24 39 / 10%);
}

.team-accounts-filter-menu[hidden] {
  display: none;
}

.team-accounts-filter-menu label {
  display: grid;
  gap: 4px;
}

.team-accounts-filter-menu label span {
  color: var(--team-accounts-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.team-accounts-filter-menu select,
.team-accounts-brand-filter select,
.team-accounts-page-size select {
  min-width: 0;
  height: 32px;
  appearance: none;
  border: 1px solid #dfe4ea;
  border-radius: 5px;
  background: #ffffff;
  color: var(--team-accounts-text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  outline: none;
}

.team-accounts-filter-menu select {
  width: 100%;
  padding: 0 8px;
}

.team-accounts-filter-menu > button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--team-accounts-red);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
}

.team-accounts-filter-menu > button:hover {
  color: var(--team-accounts-red-dark);
  text-decoration: underline;
}

.team-accounts-brand-filter,
.team-accounts-page-size {
  position: relative;
  display: inline-flex;
  min-width: 0;
  align-items: center;
}

.team-accounts-brand-filter {
  width: 214px;
}

.team-accounts-brand-filter select {
  width: 100%;
  padding: 0 30px 0 11px;
}

.team-accounts-brand-filter svg,
.team-accounts-page-size svg {
  position: absolute;
  right: 9px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: var(--team-accounts-text-muted);
}

.team-accounts-table-scroll {
  overflow-x: auto;
  border-top: 1px solid var(--team-accounts-line);
}

.team-accounts-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
  table-layout: fixed;
}

.team-accounts-col--account {
  width: 19%;
}

.team-accounts-col--username {
  width: 15%;
}

.team-accounts-col--scope {
  width: 23%;
}

.team-accounts-col--last-active {
  width: 17%;
}

.team-accounts-col--status {
  width: 11%;
}

.team-accounts-col--actions {
  width: 15%;
}

.team-accounts-table th {
  height: 39px;
  padding: 0 13px;
  background: #f8fafb;
  color: var(--team-accounts-text-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
}

.team-accounts-table td {
  height: 45px;
  padding: 0 13px;
  border-top: 1px solid var(--team-accounts-line);
  color: var(--team-accounts-text-secondary);
  font-size: 11px;
  line-height: 1.35;
  vertical-align: middle;
}

.team-accounts-table tbody tr:hover {
  background: #fffafb;
}

.team-account-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.team-account-identity > strong,
.team-accounts-cell--username > span,
.team-accounts-cell--last-active time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-account-identity > strong {
  color: var(--team-accounts-text-strong);
  font-size: 11px;
  font-weight: 600;
}

.team-account-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.team-account-avatar--purple {
  background: #f2e3ff;
  color: #8a42bb;
}

.team-account-avatar--blue,
.team-account-avatar--cyan {
  background: #e2f3ff;
  color: #1878a9;
}

.team-account-avatar--orange {
  background: #fff0e7;
  color: #cc5c1f;
}

.team-account-avatar--red,
.team-account-avatar--pink {
  background: #ffe5e9;
  color: #d43e58;
}

.team-account-avatar--green {
  background: #e1f5ea;
  color: #208455;
}

.team-account-avatar--yellow {
  background: #fff4d9;
  color: #a46a00;
}

.team-account-role-scope {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.team-account-role-scope > strong {
  flex: 0 0 auto;
  color: var(--team-accounts-text-secondary);
  font-size: 11px;
  font-weight: 500;
}

.team-account-scope-list {
  display: inline-flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
}

.team-account-scope-chip {
  display: inline-flex;
  max-width: 126px;
  align-items: center;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f5f7;
  color: var(--team-accounts-text-secondary);
  font-size: 11px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-accounts-cell--last-active time {
  color: var(--team-accounts-text-secondary);
  font-size: 11px;
}

.team-accounts-info-icon {
  display: inline-grid;
  width: 13px;
  height: 13px;
  margin-left: 3px;
  vertical-align: -2px;
  place-items: center;
  color: var(--team-accounts-text-muted);
}

.team-accounts-info-icon svg {
  width: 13px;
  height: 13px;
}

.team-account-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.team-account-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}

.team-account-status--active {
  background: #eaf8ef;
  color: var(--team-accounts-success);
}

.team-account-status--pending {
  background: #fff6df;
  color: var(--team-accounts-warning);
}

.team-account-actions {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  white-space: nowrap;
}

.team-account-edit-button,
.team-account-deactivate-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
}

.team-account-edit-button {
  color: var(--team-accounts-text-secondary);
}

.team-account-deactivate-button {
  color: var(--team-accounts-red);
}

.team-account-edit-button:hover,
.team-account-deactivate-button:hover {
  text-decoration: underline;
}

.team-account-edit-button svg,
.team-account-deactivate-button svg {
  width: 14px;
  height: 14px;
}

.team-accounts-empty {
  height: 190px !important;
  text-align: center !important;
}

.team-accounts-empty strong,
.team-accounts-empty span {
  display: block;
}

.team-accounts-empty strong {
  color: var(--team-accounts-text-strong);
  font-size: 12px;
}

.team-accounts-empty span {
  margin-top: 5px;
  color: var(--team-accounts-text-muted);
  font-size: 11px;
}

.team-accounts-table-footer {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 22px;
  border-top: 1px solid var(--team-accounts-line);
  color: var(--team-accounts-text-muted);
  font-size: 11px;
}

.team-accounts-footer-controls {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.team-accounts-pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.team-accounts-pagination button {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--team-accounts-text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.team-accounts-pagination button:hover:not(:disabled),
.team-accounts-pagination button.is-current {
  border-color: #f2c6c6;
  background: var(--team-accounts-soft-red);
  color: var(--team-accounts-red);
}

.team-accounts-pagination button:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.team-accounts-page-size {
  width: 87px;
}

.team-accounts-page-size select {
  width: 100%;
  padding: 0 24px 0 8px;
  font-size: 11px;
}

.team-accounts-page :is(button, a):focus-visible {
  outline: 2px solid var(--team-accounts-red);
  outline-offset: 2px;
}

@media (max-width: 1199px) {
  .team-accounts-summary-card {
    grid-template-columns: repeat(3, minmax(135px, 1fr)) minmax(300px, 1.3fr);
    padding-inline: 16px;
  }

  .team-accounts-stat {
    padding-inline: 14px;
  }

  .team-accounts-stat--members {
    padding-left: 5px;
  }

  .team-accounts-invite-card {
    margin-left: 12px;
  }

  .team-accounts-toolbar,
  .team-accounts-table-footer {
    padding-inline: 16px;
  }
}

@media (max-width: 980px) {
  .team-accounts-summary-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px 0;
  }

  .team-accounts-invite-card {
    grid-column: 1 / -1;
    margin: 0;
  }

  .team-accounts-summary-card {
    padding-bottom: 16px;
  }
}

@media (max-width: 767px) {
  .is-team-accounts-page .page-header {
    min-height: 0;
  }

  .is-team-accounts-page .page-header__actions {
    display: grid;
    gap: 14px;
    padding-top: 16px;
  }

  .is-team-accounts-page .page-header__page-actions {
    align-items: stretch;
  }

  .is-team-accounts-page .team-accounts-page-actions > .button {
    width: 100%;
  }

  .team-accounts-summary-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .team-accounts-stat,
  .team-accounts-stat--members {
    min-height: 72px;
    padding: 9px 0;
    border-right: 0;
    border-bottom: 1px solid var(--team-accounts-line);
  }

  .team-accounts-stat:last-of-type {
    border-bottom: 0;
  }

  .team-accounts-invite-card {
    margin-top: 12px;
  }

  .team-accounts-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .team-accounts-toolbar-left {
    align-items: stretch;
  }

  .team-accounts-search-form,
  .team-accounts-search {
    width: 100%;
    flex: 1;
  }

  .team-accounts-brand-filter {
    width: 100%;
  }

  .team-accounts-table-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-accounts-footer-controls {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 479px) {
  .team-accounts-summary-card {
    padding: 14px;
  }

  .team-accounts-invite-form {
    align-items: stretch;
    flex-direction: column;
  }

  .team-accounts-invite-form input,
  .team-accounts-invite-form button {
    width: 100%;
  }

  .team-accounts-toolbar,
  .team-accounts-table-footer {
    padding-inline: 14px;
  }

  .team-accounts-toolbar-left {
    flex-direction: column;
  }

  .team-accounts-filter-wrap,
  .team-accounts-outline-button {
    width: 100%;
  }

  .team-accounts-outline-button {
    justify-content: center;
  }

  .team-accounts-filter-menu {
    width: 100%;
  }
}

/* Finance / Balance & payments only */
body.is-finance-page {
  --finance-red: #e60000;
  --finance-red-dark: #cd0200;
  --finance-soft-red: #fde8e8;
  --finance-selected-red: #ff312e;
  --finance-border: #e5e7eb;
  --finance-text: #111111;
  --finance-font-control: 12px;
  --finance-font-body: 12px;
  --finance-font-secondary: 11px;
  --finance-text-strong: #1f2937;
  --finance-text-secondary: #374151;
  --finance-text-muted: #4b5563;
  --finance-text-disabled: #4b5563;
  --finance-success-text: #1f7a4d;
  --finance-info-text: #2b6ca3;
  background: #ffffff;
}

.is-finance-page .page-header {
  min-height: 92px;
  margin-bottom: 14px;
}

.is-finance-page .scope-line,
.is-finance-page .page-header__filters {
  display: none;
}

.is-finance-page .page-header__actions {
  width: auto;
  flex: 0 0 auto;
  gap: 15px;
  padding-top: 0;
}

.is-finance-page .page-header__utility {
  padding-top: 0;
}

.is-finance-page .finance-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.is-finance-page .finance-page-actions .button {
  display: inline-flex;
  min-width: 140px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 6px;
  font-size: var(--finance-font-control);
  font-weight: 600;
}

.is-finance-page .finance-page-actions .button svg {
  width: 15px;
  height: 15px;
}

.is-finance-page .finance-page-actions .button--primary {
  background: var(--finance-red);
  color: #ffffff;
}

.is-finance-page .finance-page-actions .button--primary:hover {
  background: var(--finance-red-dark);
}

.is-finance-page .breadcrumb [data-breadcrumb-parent] {
  color: var(--finance-red);
  font-weight: 600;
}

.is-finance-page .breadcrumb strong {
  color: var(--finance-text);
}

.is-finance-page .nav-item[data-nav-item="finance"] {
  background: var(--finance-red);
  color: #ffffff;
}

.is-finance-page .nav-item[data-nav-item="finance"]:hover {
  background: var(--finance-red-dark);
  color: #ffffff;
}

.is-finance-page .nav-item[data-nav-item="finance"] .nav-item__chevron {
  color: #ffffff;
}

.is-finance-page .nav-child[data-nav-child="balance-payments"] {
  background: var(--finance-soft-red);
  box-shadow: inset 3px 0 0 var(--finance-selected-red);
  color: var(--finance-selected-red);
  font-weight: 600;
}

.finance-page[hidden] {
  display: none;
}

.finance-page {
  display: grid;
  gap: 14px;
  color: var(--finance-text);
}

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

.finance-summary-card {
  display: flex;
  min-width: 0;
  min-height: 106px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--finance-border);
  border-radius: 6px;
  background: #ffffff;
}

.finance-summary-card__copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.finance-summary-card__copy > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  color: var(--finance-text-muted);
  font-size: var(--finance-font-body);
  font-weight: 500;
  white-space: nowrap;
}

.finance-summary-card__copy strong {
  overflow: hidden;
  color: var(--finance-text-strong);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.45px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-summary-card__note {
  overflow: hidden;
  color: var(--finance-text-muted);
  font-size: var(--finance-font-secondary);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-summary-card__note--positive {
  color: var(--finance-success-text);
}

.finance-summary-card__note--positive::first-letter {
  font-weight: 700;
}

.finance-summary-card__icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  border-radius: 9px;
}

.finance-summary-card__icon svg {
  width: 20px;
  height: 20px;
}

.finance-summary-card--coral .finance-summary-card__icon {
  background: #ffe5e6;
  color: #f15d67;
}

.finance-summary-card--green .finance-summary-card__icon {
  background: #eaf8e9;
  color: #55ae53;
}

.finance-summary-card--purple .finance-summary-card__icon {
  background: #eee8ff;
  color: #8968e0;
}

.finance-summary-card--orange .finance-summary-card__icon {
  background: #fff0dd;
  color: #ef9c38;
}

.finance-summary-card--blue .finance-summary-card__icon {
  background: #e6f2ff;
  color: #5799dc;
}

.finance-info {
  width: 14px;
  height: 14px;
  color: var(--finance-text-muted);
}

.finance-info svg {
  width: 12px;
  height: 12px;
}

.finance-info:hover {
  color: var(--finance-red);
}

.finance-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(245px, .92fr) minmax(285px, 1.12fr);
  gap: 14px;
  align-items: stretch;
}

.finance-card {
  min-width: 0;
  border: 1px solid var(--finance-border);
  border-radius: 6px;
  background: #ffffff;
}

.finance-trend-card,
.finance-payout-card,
.finance-methods-card {
  min-height: 293px;
  padding: 17px 17px 14px;
}

.finance-card__header,
.finance-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.finance-card__header h2,
.finance-section-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  color: var(--finance-text-strong);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.finance-period-select select {
  width: 112px;
  height: 32px;
  padding: 0 7px;
  border: 1px solid #e0e5ec;
  border-radius: 5px;
  outline: none;
  background: #ffffff;
  color: var(--finance-text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--finance-font-secondary);
}

.finance-period-select select:focus-visible,
.finance-manage-button:focus-visible,
.finance-view-all:focus-visible,
.finance-add-method:focus-visible,
.finance-method-menu:focus-visible,
.finance-pagination button:focus-visible,
.finance-table button:focus-visible {
  outline: 2px solid var(--finance-red);
  outline-offset: 2px;
}

.finance-chart {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
  margin-top: 14px;
}

.finance-chart__axis-y {
  display: flex;
  height: 164px;
  flex-direction: column;
  justify-content: space-between;
  color: var(--finance-text-muted);
  font-size: var(--finance-font-secondary);
  line-height: 1.2;
  text-align: right;
}

.finance-chart__plot {
  min-width: 0;
}

.finance-chart__plot svg {
  display: block;
  width: 100%;
  height: 164px;
  overflow: visible;
}

.finance-chart__grid line {
  stroke: #e7ecf2;
  stroke-dasharray: 3 3;
  stroke-width: 1;
}

.finance-chart__area {
  fill: url(#finance-trend-fill);
}

.finance-chart__line {
  fill: none;
  stroke: var(--finance-red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.finance-chart__point {
  fill: #ffffff;
  stroke: var(--finance-red);
  stroke-width: 2;
}

.finance-chart__tooltip rect {
  fill: #ffffff;
  stroke: #e2e7ee;
  stroke-width: 1;
}

.finance-chart__tooltip text {
  fill: #778399;
  font-family: inherit;
  font-size: var(--finance-font-secondary);
  font-weight: 400;
  text-anchor: middle;
}

.finance-chart__tooltip .finance-chart__tooltip-value {
  fill: var(--finance-text-strong);
  font-size: 12px;
  font-weight: 600;
}

.finance-chart__axis-x {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: var(--finance-text-muted);
  font-size: var(--finance-font-secondary);
}

.finance-trend-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf0f4;
}

.finance-trend-stat {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.finance-trend-stat span {
  color: var(--finance-text-muted);
  font-size: var(--finance-font-secondary);
  white-space: nowrap;
}

.finance-trend-stat strong {
  overflow: hidden;
  color: var(--finance-text-strong);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-trend-stat--positive {
  color: var(--finance-success-text) !important;
}

.finance-trend-stat--negative {
  color: var(--finance-red) !important;
}

.finance-payout-list,
.finance-methods-list {
  display: grid;
  margin-top: 14px;
}

.finance-payout-row {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #edf0f4;
}

.finance-payout-row:first-child,
.finance-method-row:first-child {
  border-top: 0;
}

.finance-payout-row > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.finance-payout-row > div:last-child {
  justify-items: end;
}

.finance-payout-row strong {
  color: var(--finance-text-strong);
  font-size: var(--finance-font-body);
  font-weight: 600;
}

.finance-payout-row small {
  color: var(--finance-text-muted);
  font-size: var(--finance-font-secondary);
}

.finance-schedule-status,
.finance-paid-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  font-size: var(--finance-font-secondary);
  font-weight: 600;
  line-height: 1.15;
}

.finance-schedule-status {
  min-height: 22px;
  padding: 0 8px;
  background: #eaf8ef;
  color: var(--finance-success-text);
}

.finance-card__footer {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 3px;
  margin-top: 7px;
  padding-top: 11px;
  border-top: 1px solid #edf0f4;
  color: var(--finance-text-muted);
  font-size: var(--finance-font-secondary);
  line-height: 1.4;
}

.finance-manage-button,
.finance-view-all {
  min-height: 32px;
  padding: 0 10px;
  border-color: #e0e5ec;
  border-radius: 5px;
  color: var(--finance-text-secondary);
  font-size: var(--finance-font-secondary);
  font-weight: 600;
}

.finance-manage-button:hover,
.finance-view-all:hover {
  border-color: #f0bfc0;
  background: #fffafa;
  color: var(--finance-red);
}

.finance-method-row {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) 18px;
  min-height: 57px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #edf0f4;
}

.finance-method-brand {
  display: inline-flex;
  width: 37px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9edf2;
  border-radius: 6px;
  background: #ffffff;
  font-size: var(--finance-font-secondary);
  font-weight: 700;
  letter-spacing: -0.4px;
}

.finance-method-brand--visa {
  color: #142c68;
  font-style: italic;
}

.finance-method-brand--mastercard {
  gap: 0;
}

.finance-method-brand--mastercard i {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ef3c31;
}

.finance-method-brand--mastercard i + i {
  margin-left: -6px;
  background: #f5ad20;
  opacity: .9;
}

.finance-method-brand--bank {
  background: #f3f5f8;
  color: var(--finance-text-secondary);
}

.finance-method-brand--bank svg {
  width: 16px;
  height: 16px;
}

.finance-method-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.finance-method-copy strong,
.finance-method-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-method-copy strong {
  color: var(--finance-text-strong);
  font-size: var(--finance-font-body);
  font-weight: 600;
}

.finance-method-copy small {
  color: var(--finance-text-muted);
  font-size: var(--finance-font-secondary);
}

.finance-method-copy em {
  display: inline-flex;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #eaf4ff;
  color: var(--finance-info-text);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  vertical-align: 1px;
}

.finance-method-menu {
  display: grid;
  width: 18px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--finance-text-muted);
  cursor: pointer;
}

.finance-method-menu:hover {
  color: var(--finance-red);
}

.finance-method-menu svg {
  width: 15px;
  height: 15px;
}

.finance-methods-footer {
  justify-content: space-between;
  gap: 10px;
}

.finance-add-method {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--finance-red);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--finance-font-secondary);
  font-weight: 600;
}

.finance-add-method:hover {
  color: var(--finance-red-dark);
}

.finance-add-method svg {
  width: 13px;
  height: 13px;
}

.finance-activity-card {
  overflow: hidden;
}

.finance-section-header {
  align-items: center;
  padding: 17px 17px 14px;
}

.finance-section-header p {
  margin: 4px 0 0;
  color: var(--finance-text-muted);
  font-size: var(--finance-font-secondary);
  line-height: 1.45;
}

.finance-table-scroll {
  overflow-x: auto;
}

.finance-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
  table-layout: fixed;
}

.finance-table th,
.finance-table td {
  border-top: 1px solid #edf0f4;
  text-align: left;
  vertical-align: middle;
}

.finance-table th {
  height: 38px;
  padding: 0 10px;
  background: #fafbfc;
  color: var(--finance-text-muted);
  font-size: var(--finance-font-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.finance-table td {
  height: 48px;
  padding: 0 10px;
  color: var(--finance-text-secondary);
  font-size: var(--finance-font-body);
  white-space: nowrap;
}

.finance-table th:first-child,
.finance-table td:first-child {
  padding-left: 17px;
}

.finance-table td strong {
  color: var(--finance-text-strong);
  font-size: var(--finance-font-body);
  font-weight: 600;
}

.finance-col--id { width: 15%; }
.finance-col--date { width: 16%; }
.finance-col--amount { width: 11%; }
.finance-col--method { width: 16%; }
.finance-col--status { width: 10%; }
.finance-col--description { width: 18%; }
.finance-col--reference { width: 14%; }

.finance-table-method {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.finance-table-method::before {
  display: inline-grid;
  width: 22px;
  height: 14px;
  place-items: center;
  border-radius: 3px;
  background: #ffffff;
  color: #19336e;
  content: 'VISA';
  font-size: 11px;
  font-style: italic;
  font-weight: 800;
}

.finance-table-method--mastercard::before {
  width: 16px;
  border-radius: 50%;
  background: #ef4a37;
  color: transparent;
  box-shadow: 7px 0 0 #f3ad20;
  content: '';
}

.finance-table-method--bank::before {
  width: 16px;
  background: #f3f5f8;
  color: var(--finance-text-secondary);
  content: '▥';
  font-size: 11px;
  font-style: normal;
}

.finance-paid-status {
  min-height: 20px;
  padding: 0 7px;
  background: #e9f9ef;
  color: var(--finance-success-text);
}

.finance-paid-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #25b461;
}

.finance-activity-footer {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 17px;
  border-top: 1px solid #edf0f4;
  color: var(--finance-text-muted);
  font-size: var(--finance-font-secondary);
}

.finance-pagination {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.finance-pagination button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--finance-text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
}

.finance-pagination button:hover:not(:disabled),
.finance-pagination button.is-current {
  border-color: #f2c6c6;
  background: var(--finance-soft-red);
  color: var(--finance-red);
}

.finance-pagination button:disabled {
  color: var(--finance-text-disabled);
  cursor: not-allowed;
}

.finance-pagination > span {
  padding-inline: 4px;
  color: var(--finance-text-muted);
}

@media (max-width: 1199px) {
  .finance-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .finance-main-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(245px, .9fr);
  }

  .finance-methods-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .finance-main-grid {
    grid-template-columns: 1fr;
  }

  .finance-methods-card {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  .is-finance-page .page-header {
    min-height: 0;
  }

  .is-finance-page .page-header__actions {
    gap: 13px;
  }

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

  .is-finance-page .finance-page-actions .button {
    width: 100%;
  }

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

  .finance-summary-card:last-child {
    grid-column: 1 / -1;
  }

  .finance-trend-summary {
    gap: 8px;
  }

  .finance-activity-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 11px;
  }

  .finance-pagination {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 479px) {
  .finance-summary-grid {
    grid-template-columns: 1fr;
  }

  .finance-summary-card:last-child {
    grid-column: auto;
  }

  .finance-trend-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }

  .finance-methods-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .finance-section-header {
    align-items: flex-start;
  }
}

/* Commission & Rules / Commission rules only */
body.is-commission-rules-page {
  --commission-rules-red: #e60000;
  --commission-rules-red-dark: #cd0200;
  --commission-rules-soft-red: #fde8e8;
  --commission-rules-selected-red: #ff312e;
  --commission-rules-border: #e5e7eb;
  --commission-rules-text: #111111;
  background: #ffffff;
}

.is-commission-rules-page .page-header {
  min-height: 92px;
  margin-bottom: 14px;
}

.is-commission-rules-page .scope-line,
.is-commission-rules-page .page-header__filters {
  display: none;
}

.is-commission-rules-page .page-header__actions {
  width: auto;
  flex: 0 0 auto;
  gap: 15px;
  padding-top: 0;
}

.is-commission-rules-page .page-header__utility {
  padding-top: 0;
}

.is-commission-rules-page .commission-rules-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.is-commission-rules-page .commission-rules-page-actions .button {
  display: inline-flex;
  min-width: 125px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.is-commission-rules-page .commission-rules-page-actions .button svg {
  width: 15px;
  height: 15px;
}

.is-commission-rules-page .commission-rules-page-actions .button--primary {
  background: var(--commission-rules-red);
  color: #ffffff;
}

.is-commission-rules-page .commission-rules-page-actions .button--primary:hover {
  background: var(--commission-rules-red-dark);
}

.is-commission-rules-page .breadcrumb [data-breadcrumb-parent] {
  color: var(--commission-rules-red);
  font-weight: 600;
}

.is-commission-rules-page .breadcrumb strong {
  color: var(--commission-rules-text);
}

.is-commission-rules-page .nav-item[data-nav-item="commission-rules"] {
  background: var(--commission-rules-red);
  color: #ffffff;
}

.is-commission-rules-page .nav-item[data-nav-item="commission-rules"]:hover {
  background: var(--commission-rules-red-dark);
  color: #ffffff;
}

.is-commission-rules-page .nav-item[data-nav-item="commission-rules"] .nav-item__chevron {
  color: #ffffff;
}

.is-commission-rules-page .nav-child[data-nav-child="commission-rules-list"] {
  background: var(--commission-rules-soft-red);
  box-shadow: inset 3px 0 0 var(--commission-rules-selected-red);
  color: var(--commission-rules-selected-red);
  font-weight: 600;
}

.commission-rules-page[hidden] {
  display: none;
}

.commission-rules-page {
  display: grid;
  gap: 14px;
  color: var(--commission-rules-text);
}

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

.commission-rules-summary-card {
  display: flex;
  min-height: 98px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  border: 1px solid var(--commission-rules-border);
  border-radius: 6px;
  background: #ffffff;
}

.commission-rules-summary-card__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.commission-rules-summary-card__copy > span {
  color: #67748b;
  font-size: 11px;
  font-weight: 500;
}

.commission-rules-summary-card__copy strong {
  color: #18243a;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.1;
}

.commission-rules-summary-card__copy small {
  color: #4b5563;
  font-size: 11px;
  line-height: 1.3;
}

.commission-rules-summary-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 9px;
}

.commission-rules-summary-card__icon svg {
  width: 19px;
  height: 19px;
}

.commission-rules-summary-card--coral .commission-rules-summary-card__icon {
  background: #ffe5e6;
  color: #f05c67;
}

.commission-rules-summary-card--purple .commission-rules-summary-card__icon {
  background: #eee8ff;
  color: #8664dd;
}

.commission-rules-summary-card--orange .commission-rules-summary-card__icon {
  background: #fff0dd;
  color: #ed9a3c;
}

.commission-rules-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(350px, .9fr);
  gap: 14px;
  align-items: start;
}

.commission-rules-page.is-detail-closed .commission-rules-layout {
  grid-template-columns: 1fr;
}

.commission-rules-card {
  min-width: 0;
  border: 1px solid var(--commission-rules-border);
  border-radius: 6px;
  background: #ffffff;
}

.commission-rules-list-card {
  overflow: hidden;
}

.commission-rules-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px 14px;
}

.commission-rules-card__header h2 {
  margin: 3px 0 0;
  color: #18243a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.commission-rules-card__header p {
  margin: 5px 0 0;
  color: #4b5563;
  font-size: 11px;
  line-height: 1.5;
}

.commission-rules-settings {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid #e0e5ec;
  border-radius: 5px;
  color: #6f7d93;
}

.commission-rules-settings svg {
  width: 15px;
  height: 15px;
}

.commission-rules-settings:hover {
  border-color: #f0bfc0;
  color: var(--commission-rules-red);
}

.commission-rules-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(105px, 1fr)) auto minmax(150px, 1.15fr);
  gap: 8px;
  align-items: end;
  padding: 0 18px 14px;
}

.commission-rules-filter,
.commission-rules-search {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.commission-rules-filter > span {
  color: #4b5563;
  font-size: 11px;
  font-weight: 500;
}

.commission-rules-filter select,
.commission-rules-search input,
.commission-rules-pagination select {
  width: 100%;
  height: 33px;
  padding: 0 9px;
  border: 1px solid #e0e5ec;
  border-radius: 5px;
  outline: none;
  background: #ffffff;
  color: #273247;
  font-family: inherit;
  font-size: 11px;
}

.commission-rules-filter select:focus-visible,
.commission-rules-search input:focus-visible,
.commission-rules-pagination select:focus-visible,
.commission-rules-table button:focus-visible,
.commission-rules-checkbox input:focus-visible + span,
.commission-rules-detail-card button:focus-visible {
  outline: 2px solid var(--commission-rules-red);
  outline-offset: 2px;
}

.commission-rules-search {
  position: relative;
}

.commission-rules-search svg {
  position: absolute;
  top: 25px;
  left: 9px;
  width: 14px;
  height: 14px;
  color: #4b5563;
  pointer-events: none;
}

.commission-rules-search input {
  padding-left: 29px;
}

.commission-rules-more-filters {
  display: inline-flex;
  height: 33px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border-color: #e0e5ec;
  border-radius: 5px;
  color: #536078;
  font-size: 11px;
  white-space: nowrap;
}

.commission-rules-more-filters svg {
  width: 14px;
  height: 14px;
}

.commission-rules-more-filters:hover {
  border-color: #f0bfc0;
  background: #fffafa;
  color: var(--commission-rules-red);
}

.commission-rules-table-scroll {
  overflow-x: auto;
}

.commission-rules-table {
  width: 100%;
  min-width: 1030px;
  border-collapse: collapse;
  table-layout: fixed;
}

.commission-rules-table th,
.commission-rules-table td {
  border-top: 1px solid #edf0f4;
  text-align: left;
  vertical-align: middle;
}

.commission-rules-table th {
  height: 39px;
  padding: 0 8px;
  color: #65728a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
}

.commission-rules-table td {
  height: 57px;
  padding: 0 8px;
  color: #29364d;
  font-size: 11px;
  white-space: nowrap;
}

.commission-rules-table th:first-child,
.commission-rules-table td:first-child {
  padding-left: 18px;
}

.commission-rules-table tbody tr {
  cursor: pointer;
  transition: background .16s ease;
}

.commission-rules-table tbody tr:hover,
.commission-rules-table tbody tr.is-selected {
  background: #fff8f8;
}

.commission-rules-table tbody tr.is-selected {
  box-shadow: inset 3px 0 0 var(--commission-rules-selected-red);
}

.commission-rules-col--check { width: 4.5%; }
.commission-rules-col--name { width: 19%; }
.commission-rules-col--scope { width: 16%; }
.commission-rules-col--base { width: 10%; }
.commission-rules-col--bonus { width: 11%; }
.commission-rules-col--attribution { width: 14%; }
.commission-rules-col--effective { width: 12%; }
.commission-rules-col--status { width: 9%; }
.commission-rules-col--actions { width: 8.5%; }

.commission-rules-checkbox {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  cursor: pointer;
}

.commission-rules-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.commission-rules-checkbox span {
  display: block;
  width: 14px;
  height: 14px;
  border: 1px solid #cbd2dc;
  border-radius: 3px;
  background: #ffffff;
}

.commission-rules-checkbox input:checked + span {
  border-color: var(--commission-rules-red);
  background: var(--commission-rules-red);
  box-shadow: inset 0 0 0 3px #ffffff;
}

.commission-rules-checkbox input:indeterminate + span {
  border-color: var(--commission-rules-red);
  background: linear-gradient(var(--commission-rules-red), var(--commission-rules-red)) center / 8px 2px no-repeat #ffffff;
}

.commission-rules-cell--name,
.commission-rules-cell--scope,
.commission-rules-cell--rate,
.commission-rules-cell--bonus,
.commission-rules-cell--attribution,
.commission-rules-cell--effective {
  overflow: hidden;
}

.commission-rules-cell--name strong,
.commission-rules-cell--name small,
.commission-rules-cell--scope strong,
.commission-rules-cell--scope small,
.commission-rules-cell--rate strong,
.commission-rules-cell--rate small,
.commission-rules-cell--bonus strong,
.commission-rules-cell--bonus small,
.commission-rules-cell--attribution strong,
.commission-rules-cell--attribution small,
.commission-rules-cell--effective strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.commission-rules-cell--name strong {
  color: #29364d;
  font-size: 11px;
  font-weight: 600;
}

.commission-rules-cell--name small,
.commission-rules-cell--scope small,
.commission-rules-cell--rate small,
.commission-rules-cell--bonus small,
.commission-rules-cell--attribution small {
  margin-top: 4px;
  color: #4b5563;
  font-size: 11px;
}

.commission-rules-cell--scope strong,
.commission-rules-cell--rate strong,
.commission-rules-cell--bonus strong,
.commission-rules-cell--attribution strong,
.commission-rules-cell--effective strong {
  color: #29364d;
  font-size: 11px;
  font-weight: 600;
}

.commission-rules-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.commission-rules-status i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
}

.commission-rules-status--active {
  background: #e9f9ef;
  color: #28a560;
}

.commission-rules-status--active i { background: #25b461; }

.commission-rules-status--scheduled {
  background: #fff0dd;
  color: #d8892d;
}

.commission-rules-status--scheduled i { background: #ed9a3c; }

.commission-rules-status--inactive,
.commission-rules-status--expired {
  background: #f0f2f5;
  color: #7b879a;
}

.commission-rules-status--inactive i,
.commission-rules-status--expired i { background: #9aa5b5; }

.commission-rules-cell--actions {
  white-space: nowrap;
}

.commission-rules-cell--actions button,
.commission-rules-tier-actions button {
  display: inline-grid;
  width: 19px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #68758c;
  cursor: pointer;
}

.commission-rules-cell--actions button + button {
  margin-left: 8px;
}

.commission-rules-cell--actions button:hover,
.commission-rules-tier-actions button:first-child:hover {
  color: var(--commission-rules-red);
}

.commission-rules-tier-actions button:last-child {
  color: #ed626a;
}

.commission-rules-cell--actions svg,
.commission-rules-tier-actions svg {
  width: 15px;
  height: 15px;
}

.commission-rules-empty {
  height: 180px !important;
  text-align: center !important;
}

.commission-rules-empty strong,
.commission-rules-empty span {
  display: block;
}

.commission-rules-empty strong {
  color: #29364d;
  font-size: 12px;
}

.commission-rules-empty span {
  margin-top: 6px;
  color: #8793a6;
  font-size: 11px;
}

.commission-rules-list-footer {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-top: 1px solid #edf0f4;
  color: #4b5563;
  font-size: 11px;
}

.commission-rules-pagination {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.commission-rules-pagination button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #6f7c91;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
}

.commission-rules-pagination button:hover:not(:disabled),
.commission-rules-pagination button.is-current {
  border-color: #f2c6c6;
  background: var(--commission-rules-soft-red);
  color: var(--commission-rules-red);
}

.commission-rules-pagination button:disabled {
  color: #c4cbd5;
  cursor: not-allowed;
}

.commission-rules-pagination select {
  width: 83px;
  height: 27px;
  margin-left: 6px;
  font-size: 11px;
}

.commission-rules-detail-card {
  overflow: hidden;
  padding: 18px 17px 16px;
}

.commission-rules-detail-card[hidden] {
  display: none;
}

.commission-rules-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.commission-rules-detail__header h2 {
  margin: 4px 0 0;
  color: #18243a;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.commission-rules-detail__header p {
  margin: 5px 0 0;
  color: #4b5563;
  font-size: 11px;
}

.commission-rules-detail__header .icon-button {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: #758198;
}

.commission-rules-detail__header .icon-button svg {
  width: 16px;
  height: 16px;
}

.commission-rules-detail__description {
  margin: 14px 0 0;
  color: #59667d;
  font-size: 11px;
  line-height: 1.55;
}

.commission-rules-detail__facts {
  display: grid;
  gap: 11px;
  margin-top: 17px;
  padding: 14px 0;
  border-block: 1px solid #edf0f4;
}

.commission-rules-detail__facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.commission-rules-detail__facts span {
  color: #4b5563;
  font-size: 11px;
}

.commission-rules-detail__facts strong {
  color: #29364d;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
}

.commission-rules-detail__facts strong small {
  color: #4b5563;
  font-size: 11px;
  font-weight: 500;
}

.commission-rules-detail__section {
  padding-top: 17px;
}

.commission-rules-detail__section + .commission-rules-detail__section {
  margin-top: 17px;
  border-top: 1px solid #edf0f4;
}

.commission-rules-detail__section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.commission-rules-detail__section-header h3 {
  margin: 0;
  color: #29364d;
  font-size: 11px;
  font-weight: 700;
}

.commission-rules-detail__section-header p {
  margin: 4px 0 0;
  color: #4b5563;
  font-size: 11px;
  line-height: 1.4;
}

.commission-rules-detail__edit {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--commission-rules-red);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}

.commission-rules-detail__edit:hover {
  color: var(--commission-rules-red-dark);
}

.commission-rules-tier-table {
  margin-top: 11px;
  border: 1px solid #edf0f4;
  border-radius: 4px;
  overflow: hidden;
}

.commission-rules-tier-row {
  display: grid;
  grid-template-columns: .75fr 1.45fr 1fr .7fr 36px;
  min-height: 33px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border-top: 1px solid #edf0f4;
  color: #526078;
  font-size: 11px;
}

.commission-rules-tier-row:first-child {
  border-top: 0;
}

.commission-rules-tier-row--header {
  min-height: 28px;
  background: #fafbfc;
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
}

.commission-rules-tier-row strong {
  color: #29364d;
  font-size: 11px;
}

.commission-rules-tier-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 1px;
}

.commission-rules-tier-actions button {
  width: 17px;
  height: 20px;
}

.commission-rules-conditions ul {
  display: grid;
  gap: 7px;
  margin: 11px 0 0;
  padding: 0 0 0 15px;
  color: #526078;
  font-size: 11px;
  line-height: 1.45;
}

.commission-rules-conditions li::marker {
  color: var(--commission-rules-red);
}

.commission-rules-performance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.commission-rules-performance-grid div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px 8px;
  border-radius: 4px;
  background: #fafbfc;
}

.commission-rules-performance-grid span {
  color: #4b5563;
  font-size: 11px;
}

.commission-rules-performance-grid strong {
  overflow: hidden;
  color: #29364d;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  .commission-rules-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .9fr);
  }

  .commission-rules-toolbar {
    grid-template-columns: repeat(3, minmax(105px, 1fr)) auto;
  }

  .commission-rules-search {
    grid-column: span 2;
  }
}

@media (max-width: 980px) {
  .commission-rules-layout {
    grid-template-columns: 1fr;
  }

  .commission-rules-detail-card {
    order: -1;
  }
}

@media (max-width: 767px) {
  .is-commission-rules-page .page-header {
    min-height: 0;
  }

  .is-commission-rules-page .page-header__actions {
    gap: 13px;
  }

  .is-commission-rules-page .commission-rules-page-actions {
    width: 100%;
    justify-content: stretch;
  }

  .is-commission-rules-page .commission-rules-page-actions .button {
    width: 100%;
  }

  .commission-rules-summary-grid {
    grid-template-columns: 1fr;
  }

  .commission-rules-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commission-rules-more-filters,
  .commission-rules-search {
    grid-column: span 2;
  }

  .commission-rules-list-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 12px;
  }

  .commission-rules-pagination {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 479px) {
  .commission-rules-toolbar {
    grid-template-columns: 1fr;
  }

  .commission-rules-more-filters,
  .commission-rules-search {
    grid-column: auto;
  }

  .commission-rules-card__header {
    padding-inline: 14px;
  }

  .commission-rules-toolbar {
    padding-inline: 14px;
  }

  .commission-rules-detail-card {
    padding-inline: 14px;
  }

  .commission-rules-tier-row {
    grid-template-columns: .75fr 1.5fr 1fr .7fr 30px;
    gap: 4px;
    padding-inline: 5px;
    font-size: 11px;
  }
}

/* Commission & Rules / Restriction rules */
body.is-restriction-rules-page {
  --restriction-rules-red: #e60000;
  --restriction-rules-red-dark: #cd0200;
  --restriction-rules-soft-red: #fde8e8;
  --restriction-rules-selected-red: #ff312e;
  --restriction-rules-border: #dfe4ea;
  --restriction-rules-text-strong: #1f2937;
  --restriction-rules-text: #374151;
  --restriction-rules-text-muted: #4b5563;
  --restriction-rules-text-disabled: #4b5563;
  background: #ffffff;
}

.is-restriction-rules-page .page-header {
  min-height: 92px;
  margin-bottom: 14px;
}

.is-restriction-rules-page .scope-line,
.is-restriction-rules-page .page-header__filters {
  display: none;
}

.is-restriction-rules-page .page-header__actions {
  width: auto;
  flex: 0 0 auto;
  gap: 15px;
  padding-top: 0;
}

.is-restriction-rules-page .page-header__utility {
  padding-top: 0;
}

.is-restriction-rules-page .restriction-rules-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.is-restriction-rules-page .restriction-rules-page-actions .button {
  display: inline-flex;
  min-width: 125px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.is-restriction-rules-page .restriction-rules-page-actions .button svg {
  width: 15px;
  height: 15px;
}

.is-restriction-rules-page .restriction-rules-page-actions .button--primary {
  background: var(--restriction-rules-red);
  color: #ffffff;
}

.is-restriction-rules-page .restriction-rules-page-actions .button--primary:hover {
  background: var(--restriction-rules-red-dark);
}

.is-restriction-rules-page .breadcrumb [data-breadcrumb-parent] {
  color: var(--restriction-rules-red);
  font-weight: 600;
}

.is-restriction-rules-page .breadcrumb strong {
  color: var(--restriction-rules-text-strong);
}

.is-restriction-rules-page .nav-item[data-nav-item="commission-rules"] {
  background: var(--restriction-rules-red);
  color: #ffffff;
}

.is-restriction-rules-page .nav-item[data-nav-item="commission-rules"]:hover {
  background: var(--restriction-rules-red-dark);
  color: #ffffff;
}

.is-restriction-rules-page .nav-item[data-nav-item="commission-rules"] .nav-item__chevron {
  color: #ffffff;
}

.is-restriction-rules-page .nav-child[data-nav-child="restriction-rules"] {
  background: var(--restriction-rules-soft-red);
  box-shadow: inset 3px 0 0 var(--restriction-rules-selected-red);
  color: var(--restriction-rules-selected-red);
  font-weight: 600;
}

.restriction-rules-page[hidden] {
  display: none;
}

.restriction-rules-page {
  display: grid;
  gap: 14px;
  color: var(--restriction-rules-text);
}

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

.restriction-rules-summary-card {
  display: flex;
  min-height: 98px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  border: 1px solid var(--restriction-rules-border);
  border-radius: 6px;
  background: #ffffff;
}

.restriction-rules-summary-card__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.restriction-rules-summary-card__copy > span {
  color: var(--restriction-rules-text-muted);
  font-size: 11px;
  font-weight: 500;
}

.restriction-rules-summary-card__copy strong {
  color: var(--restriction-rules-text-strong);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.1;
}

.restriction-rules-summary-card__copy small {
  color: var(--restriction-rules-text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.restriction-rules-summary-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 9px;
}

.restriction-rules-summary-card__icon svg {
  width: 19px;
  height: 19px;
}

.restriction-rules-summary-card--coral .restriction-rules-summary-card__icon {
  background: #ffe5e6;
  color: #9b1c1c;
}

.restriction-rules-summary-card--purple .restriction-rules-summary-card__icon {
  background: #eee8ff;
  color: #5e35b1;
}

.restriction-rules-summary-card--orange .restriction-rules-summary-card__icon {
  background: #fff0dd;
  color: #8a4b00;
}

.restriction-rules-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(360px, .9fr);
  gap: 14px;
  align-items: start;
}

.restriction-rules-page.is-detail-closed .restriction-rules-layout {
  grid-template-columns: 1fr;
}

.restriction-rules-card {
  min-width: 0;
  border: 1px solid var(--restriction-rules-border);
  border-radius: 6px;
  background: #ffffff;
}

.restriction-rules-list-card {
  overflow: hidden;
}

.restriction-rules-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px 14px;
}

.restriction-rules-card__header h2 {
  margin: 3px 0 0;
  color: var(--restriction-rules-text-strong);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.restriction-rules-card__header p {
  max-width: 560px;
  margin: 5px 0 0;
  color: var(--restriction-rules-text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.restriction-rules-settings {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid #cfd6df;
  border-radius: 5px;
  color: var(--restriction-rules-text-muted);
}

.restriction-rules-settings svg {
  width: 15px;
  height: 15px;
}

.restriction-rules-settings:hover {
  border-color: #f0bfc0;
  color: var(--restriction-rules-red);
}

.restriction-rules-toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr)) auto minmax(180px, 1.1fr);
  gap: 8px;
  align-items: end;
  padding: 0 18px 14px;
}

.restriction-rules-filter,
.restriction-rules-search {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.restriction-rules-filter > span {
  color: var(--restriction-rules-text-muted);
  font-size: 11px;
  font-weight: 500;
}

.restriction-rules-filter select,
.restriction-rules-search input,
.restriction-rules-pagination select {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #cfd6df;
  border-radius: 5px;
  outline: none;
  background: #ffffff;
  color: var(--restriction-rules-text);
  font-family: inherit;
  font-size: 11px;
}

.restriction-rules-filter select:focus-visible,
.restriction-rules-search input:focus-visible,
.restriction-rules-pagination select:focus-visible,
.restriction-rules-table button:focus-visible,
.restriction-rules-checkbox input:focus-visible + span,
.restriction-rules-detail-card button:focus-visible {
  outline: 2px solid var(--restriction-rules-red);
  outline-offset: 2px;
}

.restriction-rules-search {
  position: relative;
}

.restriction-rules-search svg {
  position: absolute;
  top: 27px;
  left: 9px;
  width: 14px;
  height: 14px;
  color: var(--restriction-rules-text-muted);
  pointer-events: none;
}

.restriction-rules-search input {
  padding-left: 29px;
}

.restriction-rules-more-filters {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border-color: #cfd6df;
  border-radius: 5px;
  color: var(--restriction-rules-text);
  font-size: 11px;
  white-space: nowrap;
}

.restriction-rules-more-filters svg {
  width: 14px;
  height: 14px;
}

.restriction-rules-more-filters:hover {
  border-color: #f0bfc0;
  background: #fffafa;
  color: var(--restriction-rules-red);
}

.restriction-rules-table-scroll {
  overflow-x: auto;
}

.restriction-rules-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
  table-layout: fixed;
}

.restriction-rules-table th,
.restriction-rules-table td {
  border-top: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
}

.restriction-rules-table th {
  height: 44px;
  padding: 0 8px;
  color: var(--restriction-rules-text-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}

.restriction-rules-table td {
  height: 64px;
  padding: 0 8px;
  color: var(--restriction-rules-text);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.restriction-rules-table th:first-child,
.restriction-rules-table td:first-child {
  padding-left: 18px;
}

.restriction-rules-table tbody tr {
  cursor: pointer;
  transition: background .16s ease;
}

.restriction-rules-table tbody tr:hover,
.restriction-rules-table tbody tr.is-selected {
  background: #fff8f8;
}

.restriction-rules-table tbody tr.is-selected {
  box-shadow: inset 3px 0 0 var(--restriction-rules-selected-red);
}

.restriction-rules-col--check { width: 4.5%; }
.restriction-rules-col--name { width: 17%; }
.restriction-rules-col--policy { width: 9%; }
.restriction-rules-col--terms { width: 17%; }
.restriction-rules-col--channel { width: 12%; }
.restriction-rules-col--region { width: 12%; }
.restriction-rules-col--scope { width: 13%; }
.restriction-rules-col--effective { width: 11%; }
.restriction-rules-col--status { width: 9%; }
.restriction-rules-col--actions { width: 8.5%; }

.restriction-rules-checkbox {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  cursor: pointer;
}

.restriction-rules-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.restriction-rules-checkbox span {
  display: block;
  width: 15px;
  height: 15px;
  border: 1px solid #aeb8c5;
  border-radius: 3px;
  background: #ffffff;
}

.restriction-rules-checkbox input:checked + span {
  border-color: var(--restriction-rules-red);
  background: var(--restriction-rules-red);
  box-shadow: inset 0 0 0 3px #ffffff;
}

.restriction-rules-checkbox input:indeterminate + span {
  border-color: var(--restriction-rules-red);
  background: linear-gradient(var(--restriction-rules-red), var(--restriction-rules-red)) center / 8px 2px no-repeat #ffffff;
}

.restriction-rules-cell--name,
.restriction-rules-cell--terms {
  overflow: hidden;
}

.restriction-rules-cell--name strong,
.restriction-rules-cell--name small,
.restriction-rules-cell--terms strong,
.restriction-rules-cell--terms small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.restriction-rules-cell--name strong,
.restriction-rules-cell--terms strong {
  color: var(--restriction-rules-text-strong);
  font-size: 12px;
  font-weight: 600;
}

.restriction-rules-cell--name small,
.restriction-rules-cell--terms small {
  margin-top: 4px;
  color: var(--restriction-rules-text-muted);
  font-size: 11px;
}

.restriction-rules-cell--channel,
.restriction-rules-cell--region,
.restriction-rules-cell--scope,
.restriction-rules-cell--effective {
  overflow: hidden;
  color: var(--restriction-rules-text);
  text-overflow: ellipsis;
}

.restriction-rules-policy,
.restriction-rules-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.restriction-rules-policy i,
.restriction-rules-status i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
}

.restriction-rules-policy--blocked {
  background: var(--restriction-rules-soft-red);
  color: #9b1c1c;
}

.restriction-rules-policy--blocked i { background: #c62828; }

.restriction-rules-policy--allowed {
  background: #e9f9ef;
  color: #176b43;
}

.restriction-rules-policy--allowed i { background: #218a54; }

.restriction-rules-policy--review,
.restriction-rules-status--pending {
  background: #fff0dd;
  color: #8a4b00;
}

.restriction-rules-policy--review i,
.restriction-rules-status--pending i { background: #c87517; }

.restriction-rules-status--active {
  background: #e9f9ef;
  color: #176b43;
}

.restriction-rules-status--active i { background: #218a54; }

.restriction-rules-status--inactive,
.restriction-rules-status--expired {
  background: #f0f2f5;
  color: var(--restriction-rules-text);
}

.restriction-rules-status--inactive i,
.restriction-rules-status--expired i { background: #687483; }

.restriction-rules-cell--actions {
  white-space: nowrap;
}

.restriction-rules-cell--actions button {
  display: inline-grid;
  width: 22px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--restriction-rules-text-muted);
  cursor: pointer;
}

.restriction-rules-cell--actions button + button {
  margin-left: 7px;
}

.restriction-rules-cell--actions button:hover {
  color: var(--restriction-rules-red);
}

.restriction-rules-cell--actions svg {
  width: 15px;
  height: 15px;
}

.restriction-rules-empty {
  height: 180px !important;
  text-align: center !important;
}

.restriction-rules-empty strong,
.restriction-rules-empty span {
  display: block;
}

.restriction-rules-empty strong {
  color: var(--restriction-rules-text-strong);
  font-size: 13px;
}

.restriction-rules-empty span {
  margin-top: 6px;
  color: var(--restriction-rules-text-muted);
  font-size: 11px;
}

.restriction-rules-list-footer {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-top: 1px solid #e5e7eb;
  color: var(--restriction-rules-text-muted);
  font-size: 11px;
}

.restriction-rules-pagination {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.restriction-rules-pagination button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--restriction-rules-text);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
}

.restriction-rules-pagination button:hover:not(:disabled),
.restriction-rules-pagination button.is-current {
  border-color: #f2c6c6;
  background: var(--restriction-rules-soft-red);
  color: var(--restriction-rules-red);
}

.restriction-rules-pagination button:disabled {
  color: var(--restriction-rules-text-disabled);
  cursor: not-allowed;
}

.restriction-rules-pagination select {
  width: 86px;
  height: 30px;
  margin-left: 6px;
  font-size: 11px;
}

.restriction-rules-detail-card {
  position: sticky;
  top: 18px;
  overflow: hidden;
  padding: 18px 17px 16px;
}

.restriction-rules-detail-card[hidden] {
  display: none;
}

.restriction-rules-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.restriction-rules-detail__header h2 {
  margin: 4px 0 0;
  color: var(--restriction-rules-text-strong);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.restriction-rules-detail__header p {
  margin: 5px 0 0;
  color: var(--restriction-rules-text-muted);
  font-size: 11px;
}

.restriction-rules-detail__header .icon-button {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: var(--restriction-rules-text-muted);
}

.restriction-rules-detail__header .icon-button svg {
  width: 16px;
  height: 16px;
}

.restriction-rules-detail__description {
  margin: 15px 0 0;
  color: var(--restriction-rules-text);
  font-size: 12px;
  line-height: 1.55;
}

.restriction-rules-detail__facts {
  display: grid;
  gap: 11px;
  margin-top: 17px;
  padding: 14px 0;
  border-block: 1px solid #e5e7eb;
}

.restriction-rules-detail__facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.restriction-rules-detail__facts div > span:first-child {
  color: var(--restriction-rules-text-muted);
  font-size: 11px;
}

.restriction-rules-detail__facts strong {
  color: var(--restriction-rules-text-strong);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.restriction-rules-detail__facts strong .restriction-rules-policy {
  font-size: 11px;
  font-weight: 600;
}

.restriction-rules-detail__section {
  padding-top: 18px;
}

.restriction-rules-detail__section + .restriction-rules-detail__section {
  margin-top: 18px;
  border-top: 1px solid #e5e7eb;
}

.restriction-rules-detail__section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.restriction-rules-detail__section-header h3 {
  margin: 0;
  color: var(--restriction-rules-text-strong);
  font-size: 12px;
  font-weight: 700;
}

.restriction-rules-detail__section-header p {
  margin: 4px 0 0;
  color: var(--restriction-rules-text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.restriction-rules-detail__edit {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--restriction-rules-red);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}

.restriction-rules-detail__edit:hover {
  color: var(--restriction-rules-red-dark);
}

.restriction-rules-term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.restriction-rules-term-list span {
  padding: 6px 8px;
  border: 1px solid #f1c4c4;
  border-radius: 4px;
  background: #fff8f8;
  color: #7f1d1d;
  font-size: 11px;
  font-weight: 600;
}

.restriction-rules-conditions ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0 0 0 17px;
  color: var(--restriction-rules-text);
  font-size: 11px;
  line-height: 1.5;
}

.restriction-rules-conditions li::marker {
  color: var(--restriction-rules-red);
}

.restriction-rules-enforcement-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  background: #fafbfc;
}

.restriction-rules-enforcement-card__icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--restriction-rules-soft-red);
  color: var(--restriction-rules-red);
}

.restriction-rules-enforcement-card__icon svg {
  width: 16px;
  height: 16px;
}

.restriction-rules-enforcement-card div {
  display: grid;
  gap: 4px;
}

.restriction-rules-enforcement-card strong {
  color: var(--restriction-rules-text-strong);
  font-size: 12px;
}

.restriction-rules-enforcement-card span:not(.restriction-rules-enforcement-card__icon) {
  color: var(--restriction-rules-text-muted);
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 1199px) {
  .restriction-rules-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .9fr);
  }

  .restriction-rules-toolbar {
    grid-template-columns: repeat(3, minmax(118px, 1fr)) auto;
  }

  .restriction-rules-search {
    grid-column: span 2;
  }
}

@media (max-width: 980px) {
  .restriction-rules-layout {
    grid-template-columns: 1fr;
  }

  .restriction-rules-detail-card {
    position: static;
    order: -1;
  }
}

@media (max-width: 767px) {
  .is-restriction-rules-page .page-header {
    min-height: 0;
  }

  .is-restriction-rules-page .page-header__actions {
    gap: 13px;
  }

  .is-restriction-rules-page .restriction-rules-page-actions {
    width: 100%;
    justify-content: stretch;
  }

  .is-restriction-rules-page .restriction-rules-page-actions .button {
    width: 100%;
  }

  .restriction-rules-summary-grid {
    grid-template-columns: 1fr;
  }

  .restriction-rules-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .restriction-rules-more-filters,
  .restriction-rules-search {
    grid-column: span 2;
  }

  .restriction-rules-list-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 12px;
  }

  .restriction-rules-pagination {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 479px) {
  .restriction-rules-toolbar {
    grid-template-columns: 1fr;
  }

  .restriction-rules-more-filters,
  .restriction-rules-search {
    grid-column: auto;
  }

  .restriction-rules-card__header,
  .restriction-rules-toolbar,
  .restriction-rules-detail-card {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Operations workspace modules */
.workspace-module {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding-bottom: 8px;
}

.workspace-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.workspace-toolbar h2,
.workspace-panel h3,
.workspace-panel h4 {
  margin: 0;
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.workspace-toolbar h2 {
  font-size: 18px;
}

.workspace-toolbar p {
  max-width: 640px;
  margin: 5px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.workspace-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.workspace-toolbar__actions,
.workspace-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text-soft);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.workspace-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.workspace-button:hover,
.workspace-button:focus-visible {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.workspace-button--primary {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: #fff;
}

.workspace-button--primary:hover,
.workspace-button--primary:focus-visible {
  border-color: var(--color-brand-hover);
  background: var(--color-brand-hover);
  color: #fff;
}

.workspace-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workspace-stat-grid--wide {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.workspace-stat-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workspace-stat {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  min-height: 92px;
  padding: 14px 15px 13px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.workspace-stat::before {
  position: absolute;
  top: 0;
  left: 15px;
  width: 30px;
  height: 2px;
  background: var(--color-border-strong);
  content: '';
}

.workspace-stat[data-tone='success']::before {
  background: var(--color-success);
}

.workspace-stat[data-tone='warning']::before {
  background: var(--color-warning);
}

.workspace-stat[data-tone='danger']::before {
  background: var(--color-danger);
}

.workspace-stat span,
.workspace-stat small {
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.workspace-stat strong {
  color: var(--color-text);
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
}

.workspace-stat small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-filter-bar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface-muted);
}

.workspace-filter-bar--dense .workspace-select {
  min-width: 120px;
}

.workspace-filter-bar--brand,
.workspace-filter-bar--messages {
  justify-content: flex-start;
}

.workspace-select {
  position: relative;
  display: grid;
  flex: 0 1 150px;
  gap: 4px;
  min-width: 130px;
}

.workspace-select > span {
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1.2;
}

.workspace-select select,
.workspace-invite-form input,
.workspace-form-grid input,
.workspace-form-grid select,
.workspace-reply textarea {
  width: 100%;
  min-height: 34px;
  padding: 0 29px 0 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text-soft);
  font: inherit;
  font-size: 11px;
  outline: none;
}

.workspace-select select:focus-visible,
.workspace-invite-form input:focus-visible,
.workspace-form-grid input:focus-visible,
.workspace-form-grid select:focus-visible,
.workspace-reply textarea:focus-visible {
  border-color: var(--focus-accent);
  box-shadow: none;
}

.workspace-select > svg {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 13px;
  height: 13px;
  fill: none;
  pointer-events: none;
  stroke: var(--color-text-muted);
  stroke-width: 1.8;
}

.workspace-select--toolbar {
  flex: 0 0 145px;
  min-width: 145px;
  margin-bottom: -2px;
}

.workspace-search-form {
  display: block;
  flex: 1 1 210px;
  min-width: 190px;
}

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

.workspace-search {
  position: relative;
  display: block;
}

.workspace-search > svg {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--color-text-muted);
  stroke-width: 1.6;
}

.workspace-search input {
  width: 100%;
  min-height: 34px;
  padding: 0 34px 0 31px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 11px;
  outline: none;
}

.workspace-search input:focus-visible {
  border-color: var(--focus-accent);
  box-shadow: none;
}

.workspace-search button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.workspace-search button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.workspace-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.workspace-panel__header {
  display: grid;
  gap: 3px;
  padding: 14px 15px 11px;
  border-bottom: 1px solid var(--color-border);
}

.workspace-panel__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workspace-panel__header h3 {
  font-size: 14px;
}

.workspace-panel__header h4 {
  font-size: 12px;
}

.workspace-panel__count,
.workspace-panel__note {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.workspace-panel__note {
  align-self: center;
}

.workspace-split {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.workspace-split--rules {
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.85fr);
}

.workspace-split--attribution {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
}

.workspace-detail {
  min-width: 0;
}

.workspace-panel--detail {
  min-height: 100%;
}

.workspace-detail__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 15px;
}

.workspace-detail__intro > div:first-child,
.workspace-table__primary,
.workspace-method,
.workspace-integration,
.workspace-partner-profile {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.workspace-detail__intro h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.workspace-detail__intro p {
  max-width: 230px;
  margin: 4px 0 0;
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.workspace-avatar {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: var(--color-surface-muted);
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 600;
}

.workspace-avatar--red {
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.workspace-avatar--soft {
  background: var(--color-surface-muted);
  color: var(--color-brand);
}

.workspace-avatar--ink {
  background: var(--color-text-soft);
  color: #fff;
}

.workspace-avatar--gray {
  background: var(--color-border);
  color: var(--color-text-soft);
}

.workspace-avatar--success {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.workspace-avatar--warning {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.workspace-avatar--danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.workspace-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0 15px 15px;
}

.workspace-facts div {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background: var(--color-surface-muted);
}

.workspace-facts dt,
.workspace-facts dd {
  margin: 0;
  font-size: 11px;
}

.workspace-facts dt {
  color: var(--color-text-muted);
}

.workspace-facts dd {
  color: var(--color-text);
  font-weight: 600;
}

.workspace-detail-section {
  display: grid;
  gap: 8px;
  padding: 13px 15px;
  border-top: 1px solid var(--color-border);
}

.workspace-detail-section h4 {
  font-size: 11px;
}

.workspace-detail-section__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workspace-detail-section__heading span {
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 600;
}

.workspace-mini-table {
  display: grid;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  overflow: hidden;
}

.workspace-mini-table > div {
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  font-size: 11px;
}

.workspace-mini-table > div:last-child {
  border-bottom: 0;
}

.workspace-mini-table > div:first-child {
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  font-size: 11px;
}

.workspace-mini-table strong {
  font-weight: 600;
}

.workspace-check-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workspace-check-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text-soft);
  font-size: 11px;
}

.workspace-check-list svg,
.workspace-callout svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.workspace-check-list svg {
  color: var(--color-success);
}

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

.workspace-detail-metrics div {
  display: grid;
  gap: 3px;
}

.workspace-detail-metrics strong {
  font-size: 13px;
  font-weight: 600;
}

.workspace-detail-metrics span,
.workspace-muted-copy {
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.workspace-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 21px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.workspace-status[data-tone='success'] {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.workspace-status[data-tone='warning'] {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.workspace-status[data-tone='danger'] {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.workspace-table {
  min-width: 720px;
  overflow-x: auto;
}

.workspace-table__head,
.workspace-table__row {
  display: grid;
  align-items: center;
  gap: 10px;
  min-width: 720px;
  padding: 10px 14px;
  text-align: left;
}

.workspace-table__head {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.workspace-table__row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-soft);
  font: inherit;
  font-size: 11px;
  line-height: 1.3;
  transition: background 150ms ease;
}

.workspace-table__row:last-child {
  border-bottom: 0;
}

.workspace-table__row:hover,
.workspace-table__row:focus-visible,
.workspace-table__row.is-selected {
  background: var(--color-brand-soft);
}

.workspace-table__row > span,
.workspace-table__row > code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-table__row > span > small,
.workspace-table__primary small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-table__row > span:last-child svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--color-text-muted);
  stroke-width: 1.7;
}

.workspace-table--rules .workspace-table__head,
.workspace-table--rules .workspace-table__row {
  grid-template-columns: minmax(150px, 1.65fr) minmax(94px, 1fr) 88px 118px 64px 86px 74px 18px;
}

.workspace-table--compact .workspace-table__head,
.workspace-table--compact .workspace-table__row {
  grid-template-columns: minmax(170px, 1.5fr) 80px 64px minmax(130px, 1fr) 76px 72px;
}

.workspace-table--brand .workspace-table__head,
.workspace-table--brand .workspace-table__row {
  grid-template-columns: minmax(180px, 1.5fr) 80px 80px 108px 108px 82px;
}

.workspace-table--transactions .workspace-table__head,
.workspace-table--transactions .workspace-table__row {
  grid-template-columns: 112px minmax(130px, 1fr) minmax(150px, 1fr) 86px 86px 70px 136px 18px;
}

.workspace-table--campaigns .workspace-table__head,
.workspace-table--campaigns .workspace-table__row {
  grid-template-columns: minmax(190px, 1.5fr) 72px 90px 94px 72px 104px 116px;
}

.workspace-table--payouts .workspace-table__head,
.workspace-table--payouts .workspace-table__row {
  grid-template-columns: minmax(140px, 1fr) 110px minmax(180px, 1.2fr) 84px 18px;
}

.workspace-table--invoices .workspace-table__head,
.workspace-table--invoices .workspace-table__row {
  grid-template-columns: 132px 142px 112px 118px 92px minmax(150px, 1fr) 96px 80px 18px;
}

.workspace-table--accounts .workspace-table__head,
.workspace-table--accounts .workspace-table__row {
  grid-template-columns: minmax(190px, 1.4fr) minmax(220px, 1.65fr) 110px 80px 18px;
}

.workspace-table--api .workspace-table__head,
.workspace-table--api .workspace-table__row {
  grid-template-columns: minmax(160px, 1.2fr) 170px minmax(140px, 1fr) 96px 90px 72px 18px;
}

.workspace-table__primary strong {
  min-width: 0;
  overflow: hidden;
  color: var(--color-text);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-table__primary .workspace-avatar {
  flex: 0 0 27px;
}

.workspace-table--api code,
.workspace-webhooks code {
  color: var(--color-text-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.workspace-panel--table {
  overflow: hidden;
}

.workspace-panel--table > .workspace-table,
.workspace-panel--message-list > .workspace-message-list,
.workspace-panel--conversation > *:not(.workspace-panel__header),
.workspace-panel--message-context > *:not(.workspace-panel__header),
.workspace-panel--form > *:not(.workspace-panel__header),
.workspace-panel--webhooks > *:not(.workspace-panel__header) {
  margin-right: 14px;
  margin-left: 14px;
}

.workspace-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 11px 14px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 11px;
}

.workspace-pagination span {
  margin-right: auto;
}

.workspace-pagination button {
  min-width: 27px;
  min-height: 25px;
  padding: 0 7px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-text-soft);
  font: inherit;
  font-size: 11px;
}

.workspace-pagination button.is-active {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: #fff;
}

.workspace-empty {
  display: grid;
  min-height: 120px;
  padding: 25px;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: var(--color-text-muted);
  text-align: center;
}

.workspace-empty strong {
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
}

.workspace-empty span,
.workspace-empty-copy {
  font-size: 11px;
}

.workspace-attribution-top,
.workspace-balance-grid,
.workspace-integration-grid,
.workspace-api-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.workspace-model-select {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.workspace-model-select .workspace-select {
  flex-basis: auto;
  max-width: 360px;
}

.workspace-callout {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  color: var(--color-text-soft);
  font-size: 11px;
  line-height: 1.5;
}

.workspace-callout strong {
  display: block;
  margin-bottom: 1px;
  color: var(--color-text);
  font-weight: 600;
}

.workspace-callout--success {
  border-color: var(--color-success-soft);
  background: var(--color-success-soft);
  color: var(--color-success);
}

.workspace-callout--success strong {
  color: var(--color-success);
}

.workspace-callout--warning {
  border-color: var(--color-warning-soft);
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.workspace-callout--warning strong {
  color: var(--color-warning);
}

.workspace-callout--neutral {
  background: var(--color-surface-muted);
}

.workspace-model-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  padding: 15px;
}

.workspace-model-summary div {
  display: grid;
  gap: 4px;
}

.workspace-model-summary span,
.workspace-model-summary small {
  color: var(--color-text-muted);
  font-size: 11px;
}

.workspace-model-summary strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.workspace-distribution {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 15px;
}

.workspace-distribution__row {
  display: grid;
  gap: 6px;
}

.workspace-distribution__row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--color-text-soft);
  font-size: 11px;
}

.workspace-distribution__row strong {
  color: var(--color-text);
  font-weight: 600;
}

.workspace-distribution__row small {
  color: var(--color-text-muted);
  font-size: 11px;
}

.workspace-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-border);
}

.workspace-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-brand);
}

.workspace-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  padding: 10px 14px 0;
}

.workspace-tab {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
}

.workspace-tab:hover,
.workspace-tab:focus-visible {
  color: var(--color-brand);
}

.workspace-tab.is-active {
  background: var(--color-text);
  color: #fff;
  font-weight: 600;
}

.workspace-inline-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 9px 14px 14px;
}

.workspace-panel--chart-toolbar {
  overflow: visible;
}

.workspace-panel--chart-toolbar .workspace-select {
  flex-basis: 140px;
}

.workspace-panel--chart {
  overflow: visible;
}

.workspace-panel--chart .workspace-panel__header {
  border-bottom: 0;
}

.workspace-chart {
  min-width: 0;
  padding: 5px 14px 13px;
}

.workspace-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.workspace-chart__grid line {
  stroke: var(--color-border);
  stroke-width: 1;
}

.workspace-chart__grid text,
.workspace-chart__x-label,
.workspace-chart__point text {
  fill: var(--color-text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  stroke: none;
  stroke-width: 0;
}

.workspace-chart__point text {
  fill: var(--color-text-soft);
  font-size: 11px;
  font-weight: 500;
}

.workspace-chart__area {
  fill: var(--color-brand-soft);
  opacity: 0.78;
  stroke: none;
}

.workspace-chart__line,
.workspace-chart__line--comparison {
  fill: none;
  stroke: var(--color-brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  vector-effect: non-scaling-stroke;
}

.workspace-chart__line--comparison {
  stroke: var(--color-text-muted);
  stroke-dasharray: 4 4;
  stroke-width: 1.5;
}

.workspace-chart__point circle {
  fill: var(--color-brand);
  stroke: var(--color-surface);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.workspace-chart__legend {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.workspace-chart__legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.workspace-chart__legend i {
  display: inline-block;
  width: 15px;
  height: 2px;
  background: var(--color-brand);
}

.workspace-chart__legend--comparison i {
  height: 0;
  border-top: 1px dashed var(--color-text-muted);
  background: transparent;
}

.workspace-schedule,
.workspace-method-list {
  display: grid;
  gap: 13px;
  padding: 15px;
}

.workspace-schedule__date {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.workspace-schedule__date strong {
  color: var(--color-brand);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.workspace-schedule__date span,
.workspace-schedule p {
  color: var(--color-text-muted);
  font-size: 11px;
}

.workspace-schedule p {
  margin: 0;
  line-height: 1.5;
}

.workspace-schedule .workspace-button,
.workspace-panel--methods > .workspace-button {
  margin: 0 15px 15px;
}

.workspace-method {
  justify-content: flex-start;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--color-border);
}

.workspace-method:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.workspace-method__icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--color-surface-muted);
  color: var(--color-text-soft);
}

.workspace-method__icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.workspace-method > div,
.workspace-integration__copy,
.workspace-integration__scope,
.workspace-webhooks > div > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.workspace-method strong,
.workspace-integration strong,
.workspace-webhooks strong {
  color: var(--color-text);
  font-size: 11px;
  font-weight: 600;
}

.workspace-method small,
.workspace-integration small,
.workspace-integration__scope span,
.workspace-webhooks code {
  color: var(--color-text-muted);
  font-size: 11px;
}

.workspace-method .workspace-status {
  margin-left: auto;
}

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

.workspace-invoice-summary > div {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.workspace-invoice-summary span,
.workspace-invoice-summary small {
  color: var(--color-text-muted);
  font-size: 11px;
}

.workspace-invoice-summary strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.workspace-message-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.5fr) minmax(220px, 0.75fr);
  gap: 12px;
  min-width: 0;
}

.workspace-message-list {
  display: grid;
}

.workspace-message-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  width: 100%;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-soft);
  font: inherit;
  text-align: left;
}

.workspace-message-item:last-child {
  border-bottom: 0;
}

.workspace-message-item:hover,
.workspace-message-item:focus-visible,
.workspace-message-item.is-selected {
  background: var(--color-brand-soft);
}

.workspace-message-item > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.workspace-message-item strong,
.workspace-message-item small,
.workspace-message-item em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-message-item strong {
  position: relative;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 600;
}

.workspace-message-item small {
  color: var(--color-text-soft);
  font-size: 11px;
}

.workspace-message-item em {
  color: var(--color-text-muted);
  font-size: 11px;
  font-style: normal;
}

.workspace-message-item time {
  color: var(--color-text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.workspace-unread {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--color-brand);
  vertical-align: middle;
}

.workspace-conversation__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border-bottom: 1px solid var(--color-border);
}

.workspace-conversation__head h3 {
  margin: 0;
  font-size: 15px;
}

.workspace-conversation__head p {
  margin: 5px 0 0;
  color: var(--color-text-muted);
  font-size: 11px;
}

.workspace-conversation__body {
  min-height: 265px;
  padding: 16px;
  color: var(--color-text-soft);
  font-size: 11px;
  line-height: 1.65;
}

.workspace-conversation__body p {
  margin: 0 0 9px;
}

.workspace-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.workspace-attachments span,
.workspace-campaign-tags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface-muted);
  color: var(--color-text-soft);
  font-size: 11px;
}

.workspace-attachments svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--color-brand);
  stroke-width: 1.7;
}

.workspace-reply {
  display: grid;
  gap: 8px;
  padding: 12px 15px 15px;
  border-top: 1px solid var(--color-border);
}

.workspace-reply textarea {
  min-height: 58px;
  padding: 9px 10px;
  resize: vertical;
}

.workspace-reply > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.workspace-reply > div > span {
  color: var(--color-text-muted);
  font-size: 11px;
}

.workspace-panel--message-context {
  padding-bottom: 15px;
}

.workspace-partner-profile {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 15px;
  text-align: left;
}

.workspace-partner-profile .workspace-avatar {
  width: 36px;
  height: 36px;
}

.workspace-partner-profile strong {
  font-size: 13px;
  font-weight: 600;
}

.workspace-partner-profile small {
  color: var(--color-text-muted);
  font-size: 11px;
}

.workspace-context-list {
  display: grid;
  gap: 8px;
  padding: 0 15px 15px;
}

.workspace-context-list div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  font-size: 11px;
}

.workspace-context-list span,
.workspace-panel--message-context > h4,
.workspace-panel--message-context > p {
  color: var(--color-text-muted);
  font-size: 11px;
}

.workspace-context-list strong {
  color: var(--color-text);
  font-weight: 600;
  text-align: right;
}

.workspace-panel--message-context > h4,
.workspace-panel--message-context > p {
  margin-right: 15px;
  margin-left: 15px;
}

.workspace-panel--message-context > h4 {
  margin-top: 15px;
  margin-bottom: 8px;
  color: var(--color-text-soft);
  font-weight: 600;
}

.workspace-panel--message-context > p {
  line-height: 1.5;
}

.workspace-campaign-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 15px;
}

.workspace-invite-form,
.workspace-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.7fr) auto;
  align-items: end;
  gap: 10px;
  padding: 15px;
}

.workspace-invite-form label,
.workspace-form-grid label {
  display: grid;
  gap: 5px;
}

.workspace-invite-form label > span,
.workspace-form-grid label > span {
  color: var(--color-text-muted);
  font-size: 11px;
}

.workspace-invite-form .workspace-select,
.workspace-form-grid .workspace-select {
  flex-basis: auto;
  min-width: 0;
}

.workspace-invite-form .workspace-button {
  min-height: 34px;
}

.workspace-integration-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.workspace-integration-hero > div:first-child,
.workspace-health {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace-integration-hero h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.workspace-integration-hero p,
.workspace-health small {
  margin: 3px 0 0;
  color: var(--color-text-muted);
  font-size: 11px;
}

.workspace-health {
  padding: 9px 11px;
  border: 1px solid var(--color-success-soft);
  border-radius: 5px;
  background: var(--color-success-soft);
}

.workspace-health__dot,
.workspace-webhook__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px var(--color-surface);
}

.workspace-health strong {
  color: var(--color-success);
  font-size: 11px;
  font-weight: 600;
}

.workspace-health small {
  display: block;
}

.workspace-integration-list {
  display: grid;
}

.workspace-integration {
  gap: 11px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--color-border);
}

.workspace-integration:last-child {
  border-bottom: 0;
}

.workspace-integration__logo {
  display: grid;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 7px;
  background: var(--color-surface-muted);
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 700;
}

.workspace-integration__logo--shopify {
  color: var(--color-success);
}

.workspace-integration__logo--amazon {
  color: var(--color-warning);
}

.workspace-integration__scope {
  flex: 1 1 auto;
  margin-left: auto;
}

.workspace-integration .workspace-button {
  min-height: 27px;
  padding: 0 8px;
  font-size: 11px;
}

.workspace-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 15px;
  list-style: none;
}

.workspace-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 8px;
  min-height: 58px;
}

.workspace-timeline li:not(:last-child)::before {
  position: absolute;
  top: 12px;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: var(--color-border);
  content: '';
}

.workspace-timeline__dot {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  border: 3px solid var(--color-brand-soft);
  border-radius: 50%;
  background: var(--color-brand);
}

.workspace-timeline strong {
  color: var(--color-text);
  font-size: 11px;
  font-weight: 600;
}

.workspace-timeline p {
  margin: 4px 0 0;
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.workspace-permission-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 12px;
  padding: 0 15px 15px;
}

.workspace-permission-editor__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.workspace-permission-editor__heading h4 {
  font-size: 11px;
}

.workspace-permission-editor__heading span {
  color: var(--color-text-muted);
  font-size: 11px;
}

.workspace-permission-list {
  display: grid;
  gap: 6px;
  padding-top: 8px;
}

.workspace-permission-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background: var(--color-surface);
  color: var(--color-text-soft);
  font: inherit;
  text-align: left;
}

.workspace-permission-list button:hover,
.workspace-permission-list button:focus-visible {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
}

.workspace-permission-list button > span {
  display: grid;
  gap: 3px;
}

.workspace-permission-list strong {
  color: var(--color-text);
  font-size: 11px;
  font-weight: 600;
}

.workspace-permission-list small {
  color: var(--color-text-muted);
  font-size: 11px;
}

.workspace-permission-list svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--color-brand);
  stroke-width: 1.8;
}

.workspace-permission-editor__arrows {
  display: grid;
  place-content: center;
  gap: 12px;
  color: var(--color-text-muted);
}

.workspace-permission-editor__arrows svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.workspace-permission-editor__arrows svg:last-child {
  transform: rotate(180deg);
}

.workspace-panel--form > .workspace-callout {
  margin-bottom: 15px;
}

.workspace-form-actions {
  padding: 13px 15px 15px;
  border-top: 1px solid var(--color-border);
}

.workspace-webhooks {
  display: grid;
  gap: 0;
  padding: 0 15px;
}

.workspace-webhooks > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-border);
}

.workspace-webhooks > div:last-child {
  border-bottom: 0;
}

.workspace-webhooks .workspace-status {
  margin-left: auto;
}

.workspace-panel--webhooks > .workspace-button {
  margin: 12px 15px 15px;
}

@media (max-width: 1160px) {
  .workspace-table--rules .workspace-table__head,
  .workspace-table--rules .workspace-table__row {
    grid-template-columns: minmax(145px, 1.5fr) 100px 78px 100px 58px 78px 70px 18px;
  }

  .workspace-table--invoices .workspace-table__head,
  .workspace-table--invoices .workspace-table__row {
    grid-template-columns: 120px 132px 100px 110px 82px minmax(130px, 1fr) 86px 76px 18px;
  }

  .workspace-message-layout {
    grid-template-columns: minmax(210px, 0.8fr) minmax(350px, 1.5fr);
  }

  .workspace-panel--message-context {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .workspace-panel--message-context .workspace-panel__header,
  .workspace-panel--message-context .workspace-partner-profile {
    grid-column: 1 / -1;
  }

  .workspace-panel--message-context > h4,
  .workspace-panel--message-context > p {
    align-self: start;
  }
}

@media (max-width: 900px) {
  .workspace-split--rules,
  .workspace-split--attribution,
  .workspace-attribution-top,
  .workspace-balance-grid,
  .workspace-integration-grid,
  .workspace-api-grid {
    grid-template-columns: 1fr;
  }

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

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

  .workspace-integration__scope {
    display: none;
  }
}

@media (max-width: 767px) {
  .workspace-module {
    gap: 12px;
  }

  .workspace-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .workspace-toolbar__actions {
    justify-content: flex-start;
    width: 100%;
  }

  .workspace-toolbar__actions .workspace-button {
    flex: 1 1 auto;
  }

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

  .workspace-stat {
    min-height: 84px;
    padding: 12px;
  }

  .workspace-filter-bar {
    align-items: stretch;
  }

  .workspace-select,
  .workspace-search-form {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .workspace-filter-bar--dense .workspace-select {
    min-width: 0;
  }

  .workspace-search-form {
    flex-basis: 100%;
  }

  .workspace-inline-controls {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .workspace-inline-controls .workspace-select {
    flex: 1 1 140px;
  }

  .workspace-panel__header {
    padding: 12px;
  }

  .workspace-panel--table {
    overflow-x: auto;
  }

  .workspace-table {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .workspace-table__head,
  .workspace-table__row {
    padding-right: 12px;
    padding-left: 12px;
  }

  .workspace-facts {
    grid-template-columns: 1fr;
  }

  .workspace-detail-metrics,
  .workspace-model-summary {
    grid-template-columns: 1fr 1fr;
  }

  .workspace-model-summary div:last-child {
    grid-column: 1 / -1;
  }

  .workspace-distribution {
    grid-template-columns: 1fr;
  }

  .workspace-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-right: 12px;
    padding-left: 12px;
  }

  .workspace-tab {
    flex: 0 0 auto;
  }

  .workspace-chart {
    padding-right: 8px;
    padding-left: 8px;
    overflow-x: auto;
  }

  .workspace-chart svg {
    min-width: 660px;
  }

  .workspace-invoice-summary {
    grid-template-columns: 1fr 1fr;
  }

  .workspace-message-layout {
    grid-template-columns: 1fr;
  }

  .workspace-panel--message-context {
    display: block;
  }

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

  .workspace-invite-form .workspace-button {
    width: 100%;
  }

  .workspace-integration-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-integration {
    flex-wrap: wrap;
  }

  .workspace-integration .workspace-button {
    margin-left: 42px;
  }

  .workspace-permission-editor {
    grid-template-columns: 1fr;
  }

  .workspace-permission-editor__arrows {
    display: flex;
    justify-content: center;
    transform: rotate(90deg);
  }

  .workspace-form-actions {
    justify-content: stretch;
  }

  .workspace-form-actions .workspace-button {
    flex: 1 1 0;
  }

  .workspace-webhooks > div {
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .workspace-webhooks .workspace-status {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Merchant workspace additions */
.scope-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: #617286;
  font-size: 11px;
  font-weight: 600;
}

.scope-line strong {
  color: var(--color-brand-strong);
  font-weight: 800;
}

.scope-line i {
  color: #b4c0cc;
  font-style: normal;
}

.scope-line em {
  padding: 4px 8px;
  border: 1px solid #d7e8f5;
  border-radius: var(--radius-chip);
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.demo-state-picker {
  display: grid;
  min-width: 142px;
  gap: 3px;
  color: #8b99a8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.demo-state-picker select {
  height: 40px;
  padding: 0 28px 0 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: #536478;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.demo-state-banner {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -4px 0 22px;
  padding: 11px 15px;
  border: 1px solid #d9e6f0;
  border-radius: 12px;
  background: #f7fbfe;
  color: #567089;
  font-size: 11px;
}

.demo-state-banner strong {
  color: #28435b;
  font-weight: 800;
}

.demo-state-banner[data-tone="danger"] {
  border-color: #f1d5dc;
  background: #fff5f6;
}

.demo-state-banner[data-tone="warning"] {
  border-color: #f2dfc2;
  background: #fff9ef;
}

.demo-state-banner[data-tone="info"] {
  border-color: #cee3f2;
  background: #f1f8fd;
}

.ranking-row__name {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.ranking-row__name strong {
  overflow: hidden;
  color: #344458;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row__name small {
  overflow: hidden;
  color: #94a2b2;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-child.is-active {
  color: var(--color-nav-selected);
  font-weight: 700;
}

.action-center-section,
.quick-actions-section {
  margin-bottom: 26px;
}

.section-count {
  padding: 7px 10px;
  border: 1px solid #f0dfc5;
  border-radius: var(--radius-chip);
  background: #fff8ed;
  color: #b9782f;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

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

.action-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 15px 17px;
  border: 1px solid var(--color-border);
  border-radius: 13px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.action-card:hover {
  border-color: #cbdfea;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

.action-card__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
}

.action-card[data-tone="orange"] .action-card__icon {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.action-card[data-tone="purple"] .action-card__icon {
  background: var(--color-purple-soft);
  color: var(--color-purple);
}

.action-card[data-tone="green"] .action-card__icon {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.action-card__icon svg {
  width: 18px;
  height: 18px;
}

.action-card__content {
  min-width: 0;
}

.action-card__content .eyebrow {
  margin-bottom: 2px;
}

.action-card__content h3 {
  margin: 0;
  overflow: hidden;
  color: #243448;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-card__content p {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-card__aside {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-card__aside .status-chip {
  background: #f4f7fa;
  color: #6c7d8f;
  font-size: 11px;
  text-transform: none;
}

.action-card__aside .button {
  min-height: 34px;
  padding-inline: 11px;
  font-size: 11px;
}

.action-card__aside .button svg {
  width: 13px;
  height: 13px;
}

.action-empty,
.inline-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 150px;
  padding: 24px;
  border: 1px dashed #dbe5ed;
  border-radius: 12px;
  background: #fbfcfe;
  color: #8291a0;
  text-align: center;
}

.action-empty strong,
.inline-empty strong {
  color: #405166;
  font-size: 12px;
}

.action-empty p,
.inline-empty span {
  margin: 0;
  font-size: 11px;
}

.action-empty__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-success-soft);
  color: var(--color-success);
  font-weight: 800;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.quick-action {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  background: var(--color-surface);
  color: #526478;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.quick-action:hover {
  border-color: #c6ddec;
  background: #f7fbfe;
  color: var(--color-brand-strong);
  transform: translateY(-1px);
}

.quick-action > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
}

.quick-action > span svg,
.quick-action__arrow {
  width: 14px;
  height: 14px;
}

.quick-action strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action__arrow {
  color: #4b5563;
}

.module-placeholder {
  display: grid;
  min-height: 380px;
  place-items: center;
  align-content: center;
  padding: 46px 24px;
  text-align: center;
}

.module-placeholder__mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 17px;
  border: 1px solid #cfe5f5;
  border-radius: 18px;
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
  font-size: 28px;
  font-weight: 400;
}

.module-placeholder .eyebrow {
  margin-bottom: 6px;
}

.module-placeholder h2 {
  margin: 0;
  color: #223247;
  font-size: 22px;
  font-weight: 800;
}

.module-placeholder p {
  max-width: 520px;
  margin: 9px auto 0;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.module-placeholder__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}

@media (max-width: 1199px) {
  .quick-actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .page-header__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(125px, .62fr);
    align-items: end;
  }

  .demo-state-picker {
    min-width: 0;
    width: 100%;
  }

  .demo-state-picker select {
    width: 100%;
  }

  .period-picker {
    min-width: 0;
    width: 100%;
  }

  .scope-line {
    margin-top: 7px;
  }

  .demo-state-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .action-card {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
  }

  .action-card__icon {
    width: 34px;
    height: 34px;
  }

  .action-card__aside {
    grid-column: 2;
    justify-content: space-between;
    gap: 8px;
  }

  .action-card__content p {
    white-space: normal;
  }

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

@media (max-width: 479px) {
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .section-count {
    display: none;
  }

  .action-card__aside .status-chip {
    display: none;
  }
}

/* Reference dashboard skin: a quiet, red-led merchant workspace. */
html,
body {
  background: var(--color-canvas);
}

.sidebar {
  border-color: #e8e8ea;
  border-radius: 0 var(--radius-sidebar) var(--radius-sidebar) 0;
  box-shadow: none;
}

.sidebar__top {
  min-height: 72px;
  padding: 20px 28px 10px;
}

.brand {
  gap: 0;
}

.brand__wordmark {
  letter-spacing: -1.15px;
}

.brand__wordmark strong,
.brand__wordmark b {
  color: #15171b;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.brand__wordmark b {
  color: var(--color-brand);
}

.brand__wordmark b::before {
  display: none;
}

.sidebar__label {
  padding: 4px 28px 16px;
  color: #686c73;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.9px;
}

.sidebar__navigation {
  padding: 0 12px 18px;
}

.nav-entry + .nav-entry {
  margin-top: 0;
  border-top: 1px solid var(--color-border);
}

.nav-item {
  min-height: 55px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
}

.nav-item:hover {
  background: var(--color-brand-soft);
  color: var(--color-text);
}

.nav-item.is-active {
  background: var(--color-brand);
  box-shadow: none;
  color: #fff;
}

.nav-item.is-active::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -12px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--color-brand);
  content: "";
}

.nav-item__icon svg {
  width: 19px;
  height: 19px;
}

.nav-child:hover {
  color: var(--color-text);
}

.nav-child.is-active {
  color: var(--color-nav-selected);
}

.nav-children__inner::before {
  background: var(--color-brand-soft);
}

.nav-child::before {
  border-color: var(--color-brand-soft);
}

.nav-child {
  border-radius: 0 7px 7px 0;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-child:hover {
  background: linear-gradient(to right, transparent 0 29px, var(--color-brand-soft) 29px 100%);
  color: var(--color-text);
}

.nav-child.is-active {
  background: linear-gradient(to right, transparent 0 29px, var(--color-brand-soft) 29px 100%);
  color: var(--color-nav-selected);
  font-weight: 700;
}

.nav-child.is-active::before {
  left: 20px;
  width: 7px;
  height: 7px;
  border-color: var(--color-nav-selected);
  background: var(--color-nav-selected);
}

.sidebar__footer {
  padding: 12px 18px 22px;
  border-top: 0;
}

.sidebar__utility {
  color: #32363c;
  font-weight: 500;
}

.sidebar__utility:hover {
  background: var(--color-brand-soft);
  color: var(--color-text);
}

.account-card {
  padding: 10px;
  border-color: var(--color-border);
  border-radius: 8px;
  background: #fff;
}

.account-card:hover {
  border-color: var(--color-brand-soft);
  background: var(--color-brand-soft);
}

.account-card__avatar {
  background: #f1f1f2;
  color: #17191d;
}

.main-content {
  padding: 30px 28px 24px var(--page-gutter);
}

.content-frame {
  max-width: 1480px;
}

.page-header {
  min-height: 107px;
  gap: 28px;
  margin-bottom: 18px;
}

.page-header__identity {
  gap: 0;
}

.overview-kicker {
  display: none;
}

.breadcrumb {
  gap: 9px;
  margin-bottom: 10px;
  color: #777b81;
  font-size: 12px;
  font-weight: 400;
}

.breadcrumb [data-breadcrumb-parent] {
  color: var(--color-brand);
  font-weight: 600;
}

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

.breadcrumb [data-breadcrumb-current] {
  color: var(--color-text);
  font-weight: 500;
}

.page-header h1 {
  color: var(--color-text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.7px;
}

.page-header p {
  margin-top: 5px;
  color: #767a80;
  font-size: 12px;
}

.scope-line {
  gap: 5px;
  margin-top: 12px;
  color: #676b72;
  font-size: 11px;
  font-weight: 400;
}

.scope-line strong,
.scope-line em {
  color: inherit;
  font-weight: inherit;
}

.scope-line em {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: inherit;
}

.scope-line i {
  color: #4e5359;
  font-size: 13px;
  line-height: 1;
}

.page-header__actions {
  display: grid;
  width: 372px;
  flex: 0 0 372px;
  align-content: start;
  justify-items: end;
  gap: 17px;
  padding-top: 0;
}

.page-header__utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-height: 30px;
}

.page-header__utility .utility-action {
  width: 28px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #30343a;
}

.page-header__utility .utility-action:hover {
  box-shadow: none;
  color: var(--color-brand);
  transform: none;
}

.page-header__utility .utility-action svg {
  width: 21px;
  height: 21px;
}

.language-switch {
  display: inline-flex;
  min-width: 46px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid #cfd4da;
  border-radius: 999px;
  background: #ffffff;
  color: #30343a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.language-switch:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  transform: none;
}

.language-switch:active {
  transform: translateY(1px);
}

.page-header__utility .has-indicator::after {
  display: grid;
  width: 18px;
  height: 18px;
  top: -6px;
  right: -5px;
  border: 2px solid #fff;
  background: var(--color-brand);
  color: #fff;
  content: "3";
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  place-items: center;
}

.page-header__filters {
  display: flex;
  align-items: end;
  gap: 18px;
}

.demo-state-picker {
  min-width: 155px;
  gap: 4px;
  color: #686c73;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.demo-state-picker select {
  height: 36px;
  border-color: #dfe1e4;
  border-radius: 5px;
  color: #2c3035;
  font-size: 11px;
  font-weight: 400;
}

.period-picker__trigger {
  min-width: 182px;
  height: 36px;
  border-color: #dfe1e4;
  border-radius: 5px;
  color: #2c3035;
  font-size: 11px;
  font-weight: 400;
}

.period-picker__trigger:hover,
.period-picker__trigger[aria-expanded="true"] {
  border-color: var(--color-brand);
  box-shadow: none;
}

.period-picker__trigger > svg:first-child {
  width: 17px;
  height: 17px;
  color: #4c5158;
}

.period-picker__chevron {
  width: 14px;
  height: 14px;
  color: #454a50;
}

.section-heading,
.card__header {
  align-items: center;
  gap: 14px;
}

.section-heading {
  margin-bottom: 9px;
}

.section-heading .eyebrow,
.card__header .eyebrow,
.summary-card__header .eyebrow,
.action-card__content .eyebrow {
  display: none;
}

.section-heading h2,
.card__header h2,
.summary-card h2 {
  color: #17191d;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.25px;
}

.live-status {
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-chip);
  background: #edfbf2;
  color: #248e5b;
  font-size: 11px;
  font-weight: 600;
}

.live-status i {
  width: 5px;
  height: 5px;
  border: 0;
  background: #35b875;
}

.metrics-section {
  margin-bottom: 15px;
}

.metrics-section > .section-heading {
  justify-content: flex-start;
  gap: 10px;
}

.metrics-grid {
  gap: 12px;
}

.metric-card,
.metric-card[data-tone="cyan"],
.metric-card[data-tone="green"],
.metric-card[data-tone="mint"],
.metric-card[data-tone="sky"],
.metric-card[data-tone="orange"],
.metric-card[data-tone="purple"],
.metric-card[data-metric-id="net-sales"] {
  --metric-background: #fff;
  --metric-border: var(--color-border);
  --metric-accent: var(--color-brand);
  min-height: 168px;
  padding: 24px 14px 12px;
  border-radius: 5px;
  background: var(--metric-background);
  box-shadow: none;
}

.metric-card::before,
.metric-card[data-metric-id="net-sales"]::before {
  top: 13px;
  left: 14px;
  width: 38px;
  height: 4px;
  border-radius: 3px;
  background: var(--color-brand);
}

.metric-card[data-metric-id="net-sales"]::after {
  display: none;
}

.metric-card__top {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.metric-card__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  order: 1;
  border-radius: 6px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.metric-card__icon svg {
  width: 20px;
  height: 20px;
}

.metric-card__label {
  order: 2;
  color: #202328;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.metric-card__value {
  margin-top: 8px;
  color: #131518;
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 700;
  letter-spacing: -0.7px;
}

.metric-card__meta {
  gap: 5px;
  margin-top: 6px;
  color: #777b81;
  font-size: 11px;
}

.metric-card__change {
  color: var(--color-brand);
}

.card {
  border-color: var(--color-border);
  border-radius: 6px;
  box-shadow: none;
}

.analytics-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(0, .9fr) minmax(0, .9fr);
  gap: 12px;
  margin-bottom: 14px;
}

.ranking-card {
  display: flex;
  min-height: 284px;
  flex-direction: column;
  padding: 14px 14px 10px;
}

.ranking-card .card__header {
  margin-bottom: 8px;
}

.ranking-card .card__header p,
.ranking-card .card__header > .text-link {
  display: none;
}

.ranking-table-head,
.ranking-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 58px 92px 55px;
  align-items: center;
  gap: 8px;
}

.ranking-table-head {
  min-height: 27px;
  border-bottom: 1px solid var(--color-border);
  color: #71757b;
  font-size: 11px;
  font-weight: 500;
}

.ranking-table-head span:nth-child(n + 3),
.ranking-row__orders,
.ranking-row__amount,
.ranking-row__trend {
  text-align: right;
}

.ranking-list {
  gap: 0;
}

.ranking-row {
  min-height: 35px;
  border-bottom: 1px solid #f0f0f1;
}

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

.ranking-row__rank {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #24282d;
  font-size: 11px;
  font-weight: 500;
}

.ranking-row:first-child .ranking-row__rank {
  background: transparent;
  color: #24282d;
}

.ranking-row__name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #22262b;
  font-size: 11px;
  font-weight: 500;
}

.ranking-row__avatar {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 5px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 700;
}

.ranking-row__identity {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.ranking-row__name strong {
  color: #22262b;
  font-size: 11px;
  font-weight: 600;
}

.ranking-row__name small {
  color: #85898f;
  font-size: 11px;
  font-weight: 400;
}

.ranking-row__orders,
.ranking-row__amount {
  color: #292d32;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.ranking-row__trend {
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 600;
}

.ranking-row__track,
.ranking-row__fill {
  display: none;
}

.ranking-card__footer-link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 8px;
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 600;
}

.summary-grid {
  display: contents;
}

.summary-card {
  display: flex;
  min-height: 284px;
  flex-direction: column;
  padding: 14px 14px 10px;
}

.summary-card__header {
  margin-bottom: 11px;
}

.summary-card__icon {
  display: none;
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  order: 3;
  margin-top: auto;
  padding: 11px 0 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
}

.summary-total span {
  color: #24282d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.summary-total strong {
  margin-top: 0;
  color: #15181b;
  font-size: 12px;
  font-weight: 700;
}

.commission-bar {
  display: none;
}

.summary-list {
  order: 2;
  gap: 0;
  margin-top: 3px;
  border-top: 1px solid var(--color-border);
}

.summary-row {
  min-height: 39px;
  border-bottom: 1px solid var(--color-border);
}

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

.summary-row__label {
  color: #34383e;
  font-size: 11px;
  font-weight: 500;
}

.summary-row__dot {
  width: 7px;
  height: 7px;
  background: var(--color-brand);
}

.summary-row strong {
  color: #25292e;
  font-size: 11px;
  font-weight: 600;
}

.status-list {
  gap: 0;
  margin-top: 3px;
}

.status-row {
  min-height: 48px;
  align-items: center;
  border-top: 1px solid var(--color-border);
}

.status-row__top {
  gap: 8px;
}

.status-row__top span {
  color: #34383e;
  font-size: 11px;
  font-weight: 500;
}

.status-row__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-row__top strong,
.status-row__meta em {
  color: #25292e;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.status-row__meta em {
  color: #6e7379;
  min-width: 32px;
  text-align: right;
}

.status-row__track,
.status-row__fill {
  display: none;
}

.section-count {
  padding: 3px 8px;
  border: 0;
  border-radius: var(--radius-chip);
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 600;
}

.action-center-section,
.quick-actions-section {
  margin-bottom: 14px;
  padding: 8px 14px 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
}

.action-center-section .section-heading p,
.quick-actions-section .section-heading p {
  display: none;
}

.action-center-section .section-heading,
.quick-actions-section .section-heading {
  margin-bottom: 6px;
}

.action-center-grid {
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.action-card {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

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

.action-card:hover {
  border-color: var(--color-border);
  box-shadow: none;
  transform: none;
}

.action-card__icon,
.action-card[data-tone="orange"] .action-card__icon,
.action-card[data-tone="purple"] .action-card__icon,
.action-card[data-tone="green"] .action-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.action-card__content h3 {
  color: #22262b;
  font-size: 11px;
  font-weight: 600;
}

.action-card__content p {
  margin-top: 1px;
  color: #777b81;
  font-size: 11px;
}

.action-card__aside {
  gap: 12px;
}

.action-card__aside .status-chip {
  display: none;
}

.action-card__aside .button,
.action-card__aside .button--secondary {
  min-height: 32px;
  padding: 0 12px;
  border-color: var(--color-brand);
  border-radius: 4px;
  background: #fff;
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 600;
}

.action-card__aside .button:hover {
  border-color: var(--color-brand-hover);
  background: var(--color-brand-soft);
  color: var(--color-brand-hover);
}

.quick-actions-section {
  padding-bottom: 8px;
}

.quick-actions-grid {
  gap: 12px;
}

.quick-action {
  min-height: 50px;
  padding: 0 14px;
  border-color: var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--color-text);
}

.quick-action:hover {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  color: var(--color-brand);
  transform: none;
}

.quick-action > span {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
  border-radius: 5px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.quick-action strong {
  color: inherit;
  font-size: 11px;
  font-weight: 600;
}

.quick-action__arrow {
  display: none;
}

.page-footer {
  margin-top: 18px;
  color: #767a80;
  font-size: 11px;
}

@media (max-width: 1199px) {
  :root {
    --page-gutter: 28px;
  }

  .brand__wordmark,
  .sidebar__label,
  .nav-item__label,
  .nav-item__chevron,
  .nav-children,
  .sidebar__utility span,
  .account-card__copy,
  .account-card > svg {
    display: none;
  }

  .sidebar__top {
    justify-content: center;
    padding-inline: 12px;
  }

  .sidebar__navigation {
    padding-inline: 9px;
  }

  .nav-item {
    justify-content: center;
    padding-inline: 0;
  }

  .nav-item.is-active::before {
    left: -9px;
  }

  .sidebar__utility,
  .account-card {
    justify-content: center;
    padding-inline: 0;
  }

  .account-card {
    border: 0;
  }

  .main-content {
    padding-inline: var(--page-gutter);
  }

  .page-header__actions {
    width: 340px;
    flex-basis: 340px;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

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

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

  .sidebar__top {
    justify-content: space-between;
    padding-inline: 20px 14px;
  }

  .brand__wordmark,
  .sidebar__label,
  .nav-item__label,
  .nav-item__chevron,
  .nav-children,
  .sidebar__utility span,
  .account-card__copy,
  .account-card > svg {
    display: initial;
  }

  .brand__wordmark {
    display: flex;
  }

  .sidebar__label {
    display: block;
  }

  .nav-item__label,
  .nav-item__chevron {
    display: block;
  }

  .nav-children {
    display: grid;
  }

  .sidebar__utility span {
    display: inline;
  }

  .account-card__copy {
    display: grid;
  }

  .account-card > svg {
    display: block;
  }

  .nav-item {
    justify-content: flex-start;
    padding-inline: 12px;
  }

  .nav-item.is-active::before {
    left: -12px;
  }

  .sidebar__utility,
  .account-card {
    justify-content: flex-start;
    padding-inline: 12px;
  }

  .account-card {
    border: 1px solid var(--color-border);
  }

  .main-content {
    padding: 18px var(--page-gutter) 28px;
  }

  .page-header {
    display: block;
    min-height: 0;
    margin-bottom: 18px;
  }

  .page-header__actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    padding-top: 16px;
  }

  .page-header__utility {
    order: 1;
  }

  .page-header__filters {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(125px, .62fr);
    gap: 8px;
    order: 2;
  }

  .demo-state-picker,
  .period-picker {
    width: 100%;
    min-width: 0;
  }

  .demo-state-picker select,
  .period-picker__trigger {
    width: 100%;
    min-width: 0;
  }

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

  .metric-card[data-tone="green"],
  .metric-card[data-tone="mint"] {
    grid-column: auto;
  }

  .analytics-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    display: grid;
  }

  .ranking-card,
  .summary-card {
    min-height: auto;
  }

  .ranking-table-head,
  .ranking-row {
    grid-template-columns: 28px minmax(0, 1fr) 48px 74px;
  }

  .ranking-table-head span:last-child,
  .ranking-row__trend {
    display: none;
  }

  .action-card {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .action-card__aside {
    grid-column: 2;
    justify-content: flex-end;
  }

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

@media (max-width: 479px) {
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .section-count {
    display: none;
  }
}

/* Recruitment & Partners module pages */
.module-page {
  min-width: 0;
}

.recruitment-module {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.recruitment-panel,
.recruitment-filterbar,
.recruitment-stat {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: none;
}

.recruitment-filterbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 14px;
  padding: 14px 16px;
}

.recruitment-filterbar__fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 8px;
}

.recruitment-filter {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.recruitment-filter > span,
.recruitment-search > span:first-child,
.recruitment-sort > span:first-child,
.recruitment-field-label {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.recruitment-filter select,
.recruitment-search__control,
.recruitment-sort select {
  min-width: 0;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 12px;
}

.recruitment-filter select,
.recruitment-sort select {
  width: 100%;
  padding: 0 10px;
  cursor: pointer;
}

.recruitment-search {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.recruitment-search__control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.recruitment-search__control svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--color-text-muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.recruitment-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 12px;
}

.recruitment-filter select:focus-visible,
.recruitment-search input:focus-visible,
.recruitment-sort select:focus-visible,
.recruitment-button:focus-visible,
.recruitment-tab:focus-visible,
.recruitment-icon-link:focus-visible,
.partner-group-button:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.recruitment-panel {
  padding: 16px;
}

.recruitment-panel__header,
.recruitment-module-toolbar,
.recruitment-panel__header--results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
}

.recruitment-panel__header {
  margin-bottom: 14px;
}

.recruitment-panel__header h2 {
  margin: 2px 0 0;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.recruitment-panel__note,
.recruitment-toolbar-note {
  color: var(--color-text-muted);
  font-size: 11px;
  white-space: nowrap;
}

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

.recruitment-module--applications .recruitment-stat-grid,
.recruitment-module--invites .recruitment-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.recruitment-stat {
  position: relative;
  display: grid;
  min-height: 96px;
  align-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  overflow: hidden;
}

.recruitment-stat::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--color-border-strong);
  content: '';
}

.recruitment-stat[data-tone="success"]::before {
  background: var(--color-success);
}

.recruitment-stat[data-tone="warning"]::before {
  background: var(--color-warning);
}

.recruitment-stat[data-tone="danger"]::before {
  background: var(--color-danger);
}

.recruitment-stat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.recruitment-stat__icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 5px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.recruitment-stat__icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.recruitment-stat strong {
  color: var(--color-text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.recruitment-stat small {
  color: var(--color-text-muted);
  font-size: 11px;
}

.recruitment-tabs {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-border);
}

.recruitment-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  margin-bottom: -1px;
  padding: 0 12px 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.recruitment-tab:hover,
.recruitment-tab.is-active {
  color: var(--color-brand);
}

.recruitment-tab.is-active {
  border-bottom-color: var(--color-brand);
}

.recruitment-tab b {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: var(--radius-chip);
  background: #f3f4f6;
  color: var(--color-text-muted);
  font-size: 11px;
}

.recruitment-tab.is-active b {
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.recruitment-button,
.recruitment-icon-link,
.partner-group-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border-radius: var(--radius-control);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.recruitment-button {
  padding: 0 11px;
  border: 1px solid var(--color-border-strong);
  white-space: nowrap;
}

.recruitment-button svg,
.recruitment-icon-link svg,
.partner-group-button svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.recruitment-button--primary {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: #fff;
}

.recruitment-button--primary:hover {
  border-color: var(--color-brand-hover);
  background: var(--color-brand-hover);
}

.recruitment-button--secondary {
  background: #fff;
  color: var(--color-text-soft);
}

.recruitment-button--secondary:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.recruitment-button--quiet {
  min-height: 28px;
  padding: 0 4px;
  border-color: transparent;
  background: transparent;
  color: var(--color-brand);
}

.recruitment-button--quiet:hover {
  color: var(--color-brand-hover);
}

.recruitment-icon-link {
  width: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-brand);
}

.recruitment-icon-link:hover {
  border-color: var(--color-brand-soft);
  background: var(--color-brand-soft);
}

.recruitment-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.recruitment-featured-panel {
  background: #fcfcfc;
}

.influencer-featured-grid,
.publisher-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.influencer-featured-card,
.publisher-featured-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background: #fff;
}

.influencer-featured-card__profile,
.publisher-featured-card,
.publisher-featured-card > div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.influencer-featured-card__profile > div,
.publisher-featured-card > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.influencer-featured-card strong,
.publisher-featured-card strong {
  overflow: hidden;
  color: var(--color-text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.influencer-featured-card span:not(.recruitment-avatar):not(.recruitment-tag),
.publisher-featured-card > div > span {
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publisher-featured-card .recruitment-icon-link {
  margin-left: auto;
}

.recruitment-avatar,
.publisher-mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--avatar-background, var(--color-brand-soft));
  color: var(--avatar-color, var(--color-brand));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.recruitment-avatar--large {
  width: 42px;
  height: 42px;
  font-size: 13px;
}

.recruitment-avatar[data-tone="blue"],
.publisher-mark[data-tone="navy"],
.publisher-mark[data-tone="sky"] {
  --avatar-background: #eaf2fa;
  --avatar-color: #245b88;
}

.recruitment-avatar[data-tone="teal"],
.publisher-mark[data-tone="teal"],
.publisher-mark[data-tone="mint"],
.publisher-mark[data-tone="forest"] {
  --avatar-background: #e8f5f1;
  --avatar-color: #176b5b;
}

.recruitment-avatar[data-tone="sage"] {
  --avatar-background: #eef5e9;
  --avatar-color: #4b7442;
}

.publisher-mark[data-tone="violet"],
.recruitment-avatar[data-tone="lilac"] {
  --avatar-background: #f0ecfa;
  --avatar-color: #68509a;
}

.publisher-mark[data-tone="gold"] {
  --avatar-background: #fbf2dc;
  --avatar-color: #8a651c;
}

.publisher-mark[data-tone="charcoal"],
.publisher-mark[data-tone="ink"] {
  --avatar-background: #eef0f2;
  --avatar-color: #303943;
}

.recruitment-avatar[data-tone="peach"] {
  --avatar-background: #fff0e6;
  --avatar-color: #a85b2e;
}

.recruitment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.recruitment-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 100%;
  padding: 0 7px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background: #fafafa;
  color: var(--color-text-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-influencer-list,
.application-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.discovery-influencer-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.05fr) minmax(120px, .7fr) minmax(220px, 1.25fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.discovery-influencer-row:last-child,
.application-row:last-child {
  border-bottom: 0;
}

.discovery-influencer-row__identity,
.application-row__identity,
.table-identity,
.partner-card__identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.discovery-influencer-row__identity > div,
.application-row__identity > div,
.table-identity > span,
.partner-card__identity > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.discovery-influencer-row strong,
.application-row strong,
.table-identity strong,
.partner-card strong {
  overflow: hidden;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-influencer-row__identity span,
.application-row__identity span,
.table-identity small,
.partner-card__identity span {
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-influencer-row__identity small,
.application-row__identity small {
  overflow: hidden;
  color: var(--color-text-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-influencer-row__categories {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.recruitment-media-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(34px, 1fr));
  gap: 5px;
  min-width: 0;
}

.recruitment-media-tile {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: flex-end;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #f3f4f6;
}

.recruitment-media-tile::before,
.recruitment-media-tile::after {
  position: absolute;
  content: '';
}

.recruitment-media-tile::before {
  top: 8px;
  left: -12px;
  width: calc(100% + 24px);
  height: 1px;
  background: var(--tile-line, #d1d5db);
  transform: rotate(-24deg);
}

.recruitment-media-tile::after {
  right: 6px;
  bottom: 7px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--tile-line, #d1d5db);
  border-radius: 50%;
}

.recruitment-media-tile[data-tone="coral"],
.recruitment-media-tile[data-tone="rose"] {
  --tile-line: #f0a5a5;
  background: #fff3f3;
}

.recruitment-media-tile[data-tone="teal"] {
  --tile-line: #a5d4c8;
  background: #eff9f6;
}

.recruitment-media-tile[data-tone="sage"] {
  --tile-line: #c6d7b8;
  background: #f4f8ef;
}

.recruitment-media-tile small {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publisher-featured-panel {
  background: #fcfcfc;
}

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

.publisher-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  font-size: 11px;
}

.publisher-mark--large {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  font-size: 14px;
}

.publisher-grid,
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.publisher-card,
.partner-card {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background: #fff;
}

.publisher-card__header,
.partner-card__header,
.partner-card__meta,
.publisher-card__footer,
.partner-card__footer,
.partner-card__facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 8px;
}

.publisher-card__name {
  overflow: hidden;
  color: var(--color-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publisher-card__type,
.publisher-card__metric span,
.partner-card__meta > span:last-child,
.partner-card__facts small {
  color: var(--color-text-muted);
  font-size: 11px;
}

.publisher-card__metric {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.publisher-card__metric strong,
.partner-card__facts strong {
  color: var(--color-text);
  font-size: 12px;
}

.publisher-card__footer {
  justify-content: flex-end;
}

.recruitment-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-chip);
  background: #f5f6f7;
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.recruitment-status-chip[data-tone="success"] {
  border-color: #b9e5d0;
  background: var(--color-success-soft);
  color: #167a50;
}

.recruitment-status-chip[data-tone="warning"] {
  border-color: #f2d2b2;
  background: var(--color-warning-soft);
  color: #a36322;
}

.recruitment-status-chip[data-tone="danger"] {
  border-color: var(--color-danger);
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

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

.partner-card__meta {
  justify-content: flex-start;
}

.partner-card__facts {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
}

.partner-card__facts span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.partner-card__facts strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-card__footer {
  align-items: flex-end;
  padding-top: 3px;
  border-top: 1px solid var(--color-border);
}

.partner-group-button {
  min-height: 26px;
  max-width: 48%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-group-button svg {
  width: 11px;
  height: 11px;
}

.application-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(160px, .85fr) minmax(220px, 1.5fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.application-row__profile {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.application-row__profile > span:not(.recruitment-field-label) {
  color: var(--color-text-soft);
  font-size: 11px;
}

.application-row__message {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.application-row__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.recruitment-table-panel {
  padding-bottom: 6px;
}

.recruitment-table-scroll {
  overflow-x: auto;
}

.recruitment-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  table-layout: auto;
}

.recruitment-table th,
.recruitment-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-soft);
  font-size: 11px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.recruitment-table th {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.table-identity {
  min-width: 180px;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recruitment-empty {
  display: grid;
  min-height: 160px;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 28px;
  color: var(--color-text-muted);
  text-align: center;
}

.recruitment-empty__mark {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  place-items: center;
  border: 1px solid #f3c2c7;
  border-radius: 50%;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 18px;
}

.recruitment-empty strong {
  color: var(--color-text);
  font-size: 12px;
}

.recruitment-empty span:last-child {
  max-width: 360px;
  font-size: 11px;
}

@media (max-width: 1279px) {
  .recruitment-filterbar {
    grid-template-columns: 1fr;
  }

  .recruitment-search {
    max-width: 320px;
  }

  .discovery-influencer-row {
    grid-template-columns: minmax(180px, 1fr) minmax(120px, .7fr) minmax(190px, 1fr);
  }

  .discovery-influencer-row .recruitment-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .application-row {
    grid-template-columns: minmax(190px, 1fr) minmax(160px, .9fr) minmax(190px, 1.2fr);
  }

  .application-row__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

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

@media (max-width: 900px) {
  .recruitment-stat-grid,
  .recruitment-module--applications .recruitment-stat-grid,
  .recruitment-module--invites .recruitment-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .influencer-featured-grid,
  .publisher-featured-grid {
    grid-template-columns: 1fr;
  }

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

  .discovery-influencer-row {
    grid-template-columns: minmax(180px, 1fr) minmax(120px, .8fr);
  }

  .discovery-influencer-row .recruitment-media-strip {
    grid-column: 1 / -1;
  }

  .application-row {
    grid-template-columns: minmax(180px, 1fr) minmax(160px, .85fr);
  }

  .application-row__message {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .recruitment-filterbar {
    padding: 12px;
  }

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

  .recruitment-search {
    max-width: none;
  }

  .recruitment-panel {
    padding: 13px;
  }

  .recruitment-panel__header,
  .recruitment-module-toolbar,
  .recruitment-panel__header--results {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .recruitment-toolbar-note,
  .recruitment-panel__note {
    width: 100%;
    white-space: normal;
  }

  .recruitment-tabs {
    width: 100%;
    order: 1;
  }

  .recruitment-module-toolbar > .recruitment-button {
    order: 2;
  }

  .discovery-influencer-row,
  .application-row {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .discovery-influencer-row .recruitment-media-strip,
  .application-row__message,
  .application-row__actions,
  .discovery-influencer-row .recruitment-row-actions {
    grid-column: auto;
  }

  .discovery-influencer-row .recruitment-row-actions,
  .application-row__actions {
    justify-content: flex-start;
  }

  .partner-grid,
  .publisher-grid {
    grid-template-columns: 1fr;
  }

  .recruitment-media-strip {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
  }

  .recruitment-table-panel .recruitment-panel__header .recruitment-button {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .recruitment-filterbar__fields {
    grid-template-columns: 1fr;
  }

  .recruitment-stat-grid,
  .recruitment-module--applications .recruitment-stat-grid,
  .recruitment-module--invites .recruitment-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .recruitment-stat {
    min-height: 88px;
    padding: 11px;
  }

  .recruitment-stat strong {
    font-size: 21px;
  }

  .recruitment-media-strip {
    grid-template-columns: repeat(3, minmax(42px, 1fr));
  }

  .recruitment-media-tile:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 767px) {
  .page-header__identity {
    align-items: flex-start;
    gap: 12px;
  }

  .page-header__identity > div {
    min-width: 0;
    flex: 1;
  }
}

/* Overview workspace */
.overview-metrics-section {
  margin-bottom: 14px;
}

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

.overview-metric-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 102px;
  align-content: space-between;
  gap: 10px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  box-shadow: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-base);
}

.overview-metric-card::before {
  position: absolute;
  top: 0;
  left: 14px;
  width: 32px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--color-brand);
  content: '';
}

.overview-metric-card:hover,
.overview-metric-card.is-chart-selected {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
}

.overview-metric-card:active {
  transform: translateY(1px);
}

.overview-metric__top,
.overview-metric__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 8px;
}

.overview-metric__label {
  overflow: hidden;
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-metric__icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 5px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.overview-metric__icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.overview-metric__value {
  display: block;
  overflow: hidden;
  color: var(--color-text);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-metric__footer {
  justify-content: flex-start;
  gap: 6px;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.overview-metric__footer > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-metric__change {
  color: var(--color-success);
  font-size: 11px;
  font-weight: 700;
}

.overview-metric__change[data-trend="down"] {
  color: var(--color-brand);
}

.overview-metric__sparkline {
  position: absolute;
  right: 12px;
  bottom: 33px;
  width: 64px;
  height: 24px;
  overflow: visible;
  color: var(--color-brand);
  opacity: 0.95;
  pointer-events: none;
}

.overview-metric__sparkline path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(330px, .98fr);
  gap: 14px;
  margin-bottom: 14px;
}

.overview-panel {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: none;
}

.overview-chart-panel,
.overview-ranking-panel {
  padding: 16px;
}

.overview-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 14px;
}

.overview-panel__header h2,
.overview-summary-grid .summary-card h2,
.overview-action-panel h2,
.overview-shortcuts-panel h2 {
  margin: 2px 0 0;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.overview-chart__range,
.overview-chart-controls > span {
  color: var(--color-text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.overview-chart-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.overview-chart-tabs {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  padding: 3px;
  border-radius: var(--radius-chip);
  background: #f3f4f6;
  scrollbar-width: none;
}

.overview-chart-tabs::-webkit-scrollbar {
  display: none;
}

.overview-chart-tab {
  min-height: 27px;
  padding: 0 12px;
  border-radius: var(--radius-chip);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.overview-chart-tab:hover {
  color: var(--color-brand);
}

.overview-chart-tab.is-active {
  background: var(--color-text);
  color: #fff;
}

.overview-chart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.overview-chart-controls select {
  width: 82px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--color-text-soft);
  cursor: pointer;
  font-size: 11px;
}

.overview-chart {
  min-height: 248px;
  margin-top: 8px;
}

.overview-chart > svg {
  width: 100%;
  height: 224px;
  overflow: visible;
}

.overview-chart__grid-line line {
  stroke: #eef0f2;
  stroke-width: 1;
}

.overview-chart__grid-line text,
.overview-chart__x-label {
  fill: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: 11px;
}

.overview-chart__area {
  fill: var(--color-brand-soft);
  opacity: 0.68;
}

.overview-chart__line {
  fill: none;
  stroke: var(--color-brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.overview-chart__point circle {
  fill: var(--color-brand);
  stroke: #fff;
  stroke-width: 2;
}

.overview-chart__point text {
  fill: var(--color-text-soft);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
}

.overview-chart__legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.overview-chart__legend i {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-brand);
}

.overview-chart__empty {
  display: grid;
  min-height: 238px;
  align-content: center;
  justify-items: center;
  gap: 5px;
  color: var(--color-text-muted);
  text-align: center;
}

.overview-chart__empty strong {
  color: var(--color-text);
  font-size: 12px;
}

.overview-chart__empty span {
  font-size: 11px;
}

.overview-ranking-panel .overview-panel__header {
  align-items: center;
}

.overview-ranking-panel .card__header {
  margin-bottom: 14px;
}

.overview-ranking-panel .ranking-table-head,
.overview-ranking-panel .ranking-row {
  grid-template-columns: 22px minmax(0, 1fr) 46px 52px 72px;
  gap: 8px;
}

.overview-ranking-panel .ranking-table-head {
  padding: 9px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overview-ranking-panel .ranking-row {
  min-height: 53px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.overview-ranking-panel .ranking-row:last-child {
  border-bottom: 0;
}

.overview-ranking-panel .ranking-row__name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.overview-ranking-panel .ranking-row__name:hover strong {
  color: var(--color-brand);
}

.overview-ranking-panel .ranking-row__rank,
.overview-ranking-panel .ranking-row__clicks,
.overview-ranking-panel .ranking-row__conversions,
.overview-ranking-panel .ranking-row__amount {
  color: var(--color-text-soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.overview-ranking-panel .ranking-row__amount {
  color: var(--color-text);
  font-weight: 700;
}

.overview-ranking-panel .ranking-row__avatar {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 800;
}

.overview-ranking-panel .ranking-row__avatar[data-tone="blue"] {
  background: #eaf2fa;
  color: #245b88;
}

.overview-ranking-panel .ranking-row__avatar[data-tone="peach"] {
  background: #fff0e6;
  color: #a85b2e;
}

.overview-ranking-panel .ranking-row__avatar[data-tone="lilac"] {
  background: #f0ecfa;
  color: #68509a;
}

.overview-ranking-panel .ranking-row__avatar[data-tone="ink"] {
  background: #303943;
  color: #fff;
}

.overview-ranking-panel .ranking-row__identity {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 1px;
}

.overview-ranking-panel .ranking-row__identity strong,
.overview-ranking-panel .ranking-row__identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-ranking-panel .ranking-row__identity strong {
  color: var(--color-text);
  font-size: 11px;
}

.overview-ranking-panel .ranking-row__identity small {
  color: var(--color-text-muted);
  font-size: 11px;
}

.overview-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .95fr);
  gap: 14px;
  margin-bottom: 14px;
}

.overview-summary-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 14px;
}

.overview-summary-grid .summary-card {
  min-height: 218px;
  padding: 16px;
}

.overview-summary-grid .summary-card__header {
  margin-bottom: 18px;
}

.overview-summary-grid .summary-card__header .text-link {
  color: var(--color-text-muted);
  font-size: 11px;
}

.overview-summary-grid .summary-card__header .text-link:hover {
  color: var(--color-brand);
}

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

.overview-summary-column {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 0 12px;
  border-right: 1px solid var(--color-border);
}

.overview-summary-column:first-child {
  padding-left: 0;
}

.overview-summary-column:last-child {
  padding-right: 0;
  border-right: 0;
}

.overview-summary-column > span,
.overview-summary-totals span {
  color: var(--color-text-muted);
  font-size: 11px;
}

.overview-summary-column strong {
  color: var(--color-text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.overview-summary-column em {
  color: var(--color-text-soft);
  font-size: 11px;
  font-style: normal;
}

.overview-summary-column > i {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: var(--radius-chip);
  background: #eef0f2;
}

.overview-summary-column > i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-success);
}

.overview-summary-column[data-tone="warning"] > i b {
  background: var(--color-warning);
}

.overview-summary-column[data-tone="neutral"] > i b {
  background: #cfd4da;
}

.overview-summary-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.overview-summary-totals > div {
  display: grid;
  gap: 3px;
}

.overview-summary-totals strong {
  color: var(--color-text);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.overview-action-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fff;
}

.overview-action-panel .section-heading {
  margin-bottom: 13px;
}

.overview-action-panel .section-heading h2 {
  font-size: 15px;
}

.overview-action-panel .section-heading .text-link {
  color: var(--color-text-muted);
  font-size: 11px;
}

.overview-action-panel .section-heading .text-link:hover {
  color: var(--color-brand);
}

.overview-action-panel .action-center-grid {
  display: grid;
  gap: 0;
}

.overview-action-panel .action-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 72px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.overview-action-panel .action-card:last-child {
  border-bottom: 0;
}

.overview-action-panel .action-card__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.overview-action-panel .action-card[data-tone="warning"] .action-card__icon {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.overview-action-panel .action-card__icon svg {
  width: 16px;
  height: 16px;
}

.overview-action-panel .action-card__content {
  min-width: 0;
}

.overview-action-panel .action-card__content h3 {
  overflow: hidden;
  margin: 0;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-action-panel .action-card__content p {
  display: -webkit-box;
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.overview-action-panel .action-card__link {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.overview-action-panel .action-card__link:hover {
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.overview-action-panel .action-card__link svg {
  width: 14px;
  height: 14px;
}

.overview-shortcuts-panel {
  padding: 14px 16px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fff;
}

.overview-shortcuts-panel .section-heading {
  margin-bottom: 10px;
}

.overview-shortcuts-panel .quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.overview-shortcuts-panel .quick-action {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.overview-shortcuts-panel .quick-action:hover {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.overview-shortcuts-panel .quick-action > span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  color: var(--color-brand);
}

.overview-shortcuts-panel .quick-action > span svg {
  width: 15px;
  height: 15px;
}


/* Campaigns / All campaigns only */
body.is-campaign-page {
  --campaign-red: #e60000;
  --campaign-red-dark: #cd0200;
  --campaign-soft-red: #fde8e8;
  --campaign-selected-red: #ff312e;
  --campaign-border: #e5e7eb;
  --campaign-text: #111111;
  background: #ffffff;
}

.is-campaign-page .page-header {
  min-height: 78px;
  margin-bottom: 20px;
}

.is-campaign-page .scope-line,
.is-campaign-page .page-header__filters {
  display: none;
}

.is-campaign-page .page-header__actions {
  width: auto;
  flex: 0 0 auto;
  padding-top: 0;
}

.is-campaign-page .page-header__utility {
  padding-top: 0;
}

.is-campaign-page .breadcrumb [data-breadcrumb-parent] {
  color: var(--campaign-red);
  font-weight: 600;
}

.is-campaign-page .breadcrumb strong {
  color: var(--campaign-text);
}

.is-campaign-page .nav-item[data-nav-item="campaigns"] {
  background: var(--campaign-red);
  color: #ffffff;
}

.is-campaign-page .nav-item[data-nav-item="campaigns"]:hover {
  background: var(--campaign-red-dark);
  color: #ffffff;
}

.is-campaign-page .nav-item[data-nav-item="campaigns"] .nav-item__chevron {
  color: #ffffff;
}

.is-campaign-page .nav-child[data-nav-child="all-campaigns"] {
  background: var(--campaign-soft-red);
  box-shadow: inset 3px 0 0 var(--campaign-selected-red);
  color: var(--campaign-selected-red);
  font-weight: 600;
}

.is-campaign-page .page-footer {
  display: none;
}

.campaign-page[hidden] {
  display: none;
}

.campaign-page {
  display: grid;
  gap: 18px;
  color: var(--campaign-text);
}

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

.campaign-metric {
  display: grid;
  min-height: 86px;
  grid-template-columns: 42px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--campaign-border);
  border-radius: 6px;
  background: #ffffff;
}

.campaign-metric__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--campaign-red);
  border-radius: 50%;
  color: var(--campaign-red);
}

.campaign-metric__icon svg {
  width: 19px;
  height: 19px;
}

.campaign-metric__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.campaign-metric__label {
  overflow: hidden;
  color: #24272c;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-metric__copy strong {
  color: #111316;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.12;
}

.campaign-metric__meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: #73777d;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.campaign-metric__meta b {
  color: var(--campaign-red);
  font-weight: 700;
}

.campaign-metric__meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.campaign-metric__sparkline {
  width: 90px;
  height: 34px;
  color: var(--campaign-red);
  overflow: visible;
}

.campaign-workspace {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.campaign-toolbar {
  display: grid;
  grid-template-columns: minmax(210px, 1.65fr) repeat(6, minmax(106px, 1fr)) auto;
  align-items: end;
  gap: 10px;
}

.campaign-search,
.campaign-filter {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.campaign-search {
  position: relative;
}

.campaign-search > svg {
  position: absolute;
  bottom: 10px;
  left: 13px;
  width: 18px;
  height: 18px;
  color: #22262b;
  pointer-events: none;
}

.campaign-search input,
.campaign-filter select {
  width: 100%;
  height: 50px;
  border: 1px solid #dfe2e6;
  border-radius: 5px;
  outline: none;
  background: #ffffff;
  color: #22262b;
  font-family: inherit;
  font-size: 11px;
}

.campaign-search input {
  padding: 0 12px 0 42px;
}

.campaign-search input::placeholder {
  color: #7c8188;
  opacity: 1;
}

.campaign-filter span {
  color: #25292e;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.campaign-filter select {
  height: 50px;
  padding: 0 28px 0 12px;
  cursor: pointer;
}

.campaign-search input:focus-visible,
.campaign-filter select:focus-visible,
.campaign-pagination select:focus-visible,
.campaign-checkbox input:focus-visible + span,
.campaign-tab:focus-visible,
.campaign-bulk-action:focus-visible,
.campaign-clear-selection:focus-visible,
.campaign-row-action:focus-visible {
  outline: 2px solid var(--campaign-red);
  outline-offset: 2px;
}

.campaign-create-button {
  display: inline-flex;
  min-width: 142px;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.campaign-create-button > span {
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.campaign-tabs {
  display: flex;
  align-items: end;
  gap: 30px;
  min-height: 39px;
  overflow-x: auto;
  border-bottom: 1px solid var(--campaign-border);
}

.campaign-tab {
  position: relative;
  min-height: 39px;
  padding: 0 1px 11px;
  border: 0;
  background: transparent;
  color: #565c64;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.campaign-tab:hover,
.campaign-tab.is-active {
  color: #111316;
}

.campaign-tab.is-active {
  font-weight: 700;
}

.campaign-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--campaign-red);
  content: "";
}

.campaign-table-shell {
  overflow: hidden;
  border: 1px solid var(--campaign-border);
  border-radius: 6px;
  background: #ffffff;
}

.campaign-bulk-toolbar {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 22px;
  padding: 0 14px;
  border-bottom: 1px solid var(--campaign-border);
  color: #23272c;
}

.campaign-bulk-selection {
  display: inline-flex;
  min-width: 118px;
  align-items: center;
  gap: 12px;
}

.campaign-bulk-selection strong {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.campaign-bulk-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.campaign-bulk-action,
.campaign-clear-selection,
.campaign-row-action {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: #22262b;
  cursor: pointer;
  font-family: inherit;
}

.campaign-bulk-action {
  gap: 7px;
  min-height: 32px;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.campaign-bulk-action:hover,
.campaign-clear-selection:hover,
.campaign-row-action:hover {
  color: var(--campaign-red);
}

.campaign-bulk-action svg {
  width: 17px;
  height: 17px;
}

.campaign-bulk-action__chevron {
  width: 13px !important;
  height: 13px !important;
  margin-left: 1px;
}

.campaign-clear-selection {
  gap: 12px;
  margin-left: auto;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.campaign-clear-selection svg {
  width: 16px;
  height: 16px;
}

.overview-shortcuts-panel .quick-action strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  .overview-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-layout,
  .overview-secondary-grid {
    grid-template-columns: 1fr;
  }

  .overview-shortcuts-panel .quick-actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .overview-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-metric-card {
    min-height: 98px;
    padding: 12px;
  }

  .overview-metric__value {
    font-size: 18px;
  }

  .overview-metric__sparkline {
    right: 8px;
    bottom: 34px;
    width: 52px;
  }

  .overview-chart-panel,
  .overview-ranking-panel,
  .overview-summary-grid .summary-card,
  .overview-action-panel,
  .overview-shortcuts-panel {
    padding: 13px;
  }

  .overview-panel__header,
  .overview-chart-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .overview-chart-controls {
    width: 100%;
    justify-content: space-between;
  }

  .overview-chart {
    min-height: 226px;
  }

  .overview-chart > svg {
    height: 204px;
  }

  .overview-chart__point text,
  .overview-chart__grid-line text {
    font-size: 11px;
  }

  .overview-ranking-panel {
    overflow-x: auto;
  }

  .overview-ranking-panel .ranking-table-head,
  .overview-ranking-panel .ranking-row {
    min-width: 430px;
    grid-template-columns: 28px minmax(0, 1fr) 72px 82px;
  }

  .overview-ranking-panel .ranking-table-head span:nth-child(4),
  .overview-ranking-panel .ranking-row__conversions {
    display: none;
  }

  .overview-summary-grid {
    grid-template-columns: 1fr;
  }

  .overview-shortcuts-panel .quick-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .overview-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .overview-metric-card {
    padding: 11px;
  }

  .overview-metric__label,
  .overview-metric__footer,
  .overview-metric__change {
    font-size: 11px;
  }

  .overview-metric__value {
    font-size: 17px;
  }

  .overview-chart-tabs {
    width: 100%;
  }

  .overview-chart-tab {
    flex: 1 0 auto;
    padding-inline: 9px;
  }

  .overview-summary-columns {
    gap: 0;
  }

  .overview-summary-column {
    padding-inline: 8px;
  }

  .overview-summary-column strong {
    font-size: 11px;
  }
}

/* Typography clarity pass */
body {
  font-synthesis: none;
}

.overview-chart text {
  stroke: none;
  stroke-width: 0;
}

.brand__wordmark strong,
.brand__wordmark b {
  font-weight: 700;
}

.page-header h1 {
  font-weight: 600;
  letter-spacing: -0.55px;
}

.overview-metric__label {
  font-weight: 500;
}

.overview-metric__value {
  font-weight: 600;
  letter-spacing: -0.03em;
}

.overview-metric__footer {
  font-size: 11px;
  font-weight: 400;
}

.overview-metric__change {
  font-weight: 600;
}

.overview-panel__header h2,
.overview-summary-grid .summary-card h2,
.overview-action-panel h2,
.overview-shortcuts-panel h2 {
  font-weight: 600;
}

.overview-chart__grid-line text {
  font-size: 11px;
  font-weight: 400;
}

.overview-chart__point text {
  font-size: 11px;
  font-weight: 500;
}

.overview-chart__x-label {
  font-size: 11px;
  font-weight: 400;
}

.overview-ranking-panel .ranking-table-head {
  font-size: 11px;
  font-weight: 600;
}

.overview-ranking-panel .ranking-row__identity strong {
  font-weight: 500;
}

.overview-ranking-panel .ranking-row__amount {
  font-weight: 600;
}

.overview-summary-column strong {
  font-weight: 600;
}

.overview-action-panel .action-card__content h3 {
  font-weight: 600;
}

.overview-shortcuts-panel .quick-action {
  font-weight: 500;
}

@media (max-width: 767px) {
  .overview-chart__point text,
  .overview-chart__grid-line text {
    font-size: 11px;
  }
}

@media (max-width: 479px) {
  .overview-metric__footer {
    font-size: 11px;
  }
}

/* Products & Assets module pages */
.products-assets-module {
  display: grid;
  min-width: 0;
  gap: 16px;
  color: var(--color-text);
}

.products-assets-module button,
.products-assets-module input,
.products-assets-module select {
  font-size: 12px;
}

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

.products-assets-tabs,
.products-assets-subtabs,
.products-email-tabs {
  display: flex;
  min-width: 0;
  align-items: center;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-border);
  scrollbar-width: none;
}

.products-assets-tabs::-webkit-scrollbar,
.products-assets-subtabs::-webkit-scrollbar,
.products-email-tabs::-webkit-scrollbar {
  display: none;
}

.products-assets-tab,
.products-assets-subtab,
.products-email-tabs button {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}

.products-assets-tab::after,
.products-assets-subtab::after,
.products-email-tabs button::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  background: transparent;
  content: "";
}

.products-assets-tab:hover,
.products-assets-subtab:hover,
.products-email-tabs button:hover {
  color: var(--color-text);
}

.products-assets-tab.is-active,
.products-assets-subtab.is-active,
.products-email-tabs button.is-active {
  color: var(--color-brand);
  font-weight: 600;
}

.products-assets-tab.is-active::after,
.products-assets-subtab.is-active::after,
.products-email-tabs button.is-active::after {
  background: var(--color-brand);
}

.products-email-tabs button b {
  display: inline-grid;
  min-width: 20px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-chip);
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 600;
}

.products-assets-toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.products-assets-toolbar__filters,
.products-assets-toolbar__actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.products-assets-toolbar__filters {
  flex: 0 1 auto;
}

.products-assets-toolbar__actions {
  margin-left: auto;
}

.products-assets-toolbar > .products-assets-search-form {
  min-width: 210px;
  flex: 1 1 250px;
}

.products-assets-select,
.products-assets-field {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.products-assets-select--compact {
  display: inline-flex;
  width: 142px;
  min-height: 34px;
  align-items: center;
}

.products-assets-select select,
.products-assets-field input,
.products-assets-pagination select,
.products-assets-sort select {
  width: 100%;
  min-height: 34px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  outline: 0;
  background: var(--color-surface);
  color: var(--color-text-soft);
  cursor: pointer;
  font-size: 11px;
}

.products-assets-select--compact select {
  min-height: 34px;
}

.products-assets-select > svg {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: var(--color-text-muted);
}

.products-assets-select--compact > svg {
  bottom: 10px;
}

.products-assets-select select:focus,
.products-assets-field input:focus,
.products-assets-search input:focus,
.products-assets-pagination select:focus,
.products-assets-sort select:focus {
  border-color: var(--focus-accent);
  box-shadow: none;
}

.products-assets-search-form {
  min-width: 0;
}

.products-assets-search {
  display: flex;
  min-width: 0;
  height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text-muted);
}

.products-assets-search > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.products-assets-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 11px;
}

.products-assets-search input::placeholder,
.products-assets-field input::placeholder {
  color: #9aa1aa;
}

.products-assets-search-submit {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 4px;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.products-assets-search-submit:hover {
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.products-assets-search-submit svg {
  width: 14px;
  height: 14px;
}

.products-assets-search--panel {
  width: 100%;
}

.products-assets-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.products-assets-button svg {
  width: 15px;
  height: 15px;
}

.products-assets-button--primary {
  background: var(--color-brand);
  color: #fff;
}

.products-assets-button--primary:hover {
  background: var(--color-brand-hover);
}

.products-assets-button--secondary {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-soft);
}

.products-assets-button--secondary:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.products-assets-button:active {
  transform: translateY(1px);
}

.products-assets-view-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
}

.products-assets-view-toggle button {
  display: inline-grid;
  width: 28px;
  height: 26px;
  place-items: center;
  border-radius: 4px;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.products-assets-view-toggle button.is-active,
.products-assets-view-toggle button:hover {
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.products-assets-view-toggle svg {
  width: 15px;
  height: 15px;
}

.products-assets-section-head,
.products-assets-panel__header,
.products-assets-detail__header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.products-assets-section-head {
  align-items: center;
}

.products-assets-section-head h2,
.products-assets-panel__header h2,
.products-assets-detail__header h2,
.products-email-preview__header h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.25px;
  line-height: 1.25;
}

.products-assets-section-head p,
.products-assets-panel__header p {
  margin: 4px 0 0;
  color: var(--color-text-muted);
  font-size: 11px;
}

.products-assets-panel {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: none;
}

.products-assets-panel__header {
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--color-border);
}

.products-assets-table-scroll {
  min-width: 0;
  overflow-x: auto;
}

.products-assets-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  color: var(--color-text-soft);
  font-size: 11px;
  text-align: left;
}

.products-assets-table--feed {
  min-width: 1080px;
}

.products-assets-table--emails {
  min-width: 0;
  table-layout: fixed;
}

.products-assets-table--emails th:nth-child(1),
.products-assets-table--emails td:nth-child(1) {
  width: 38px;
}

.products-assets-table--emails th:nth-child(2),
.products-assets-table--emails td:nth-child(2) {
  width: 28%;
}

.products-assets-table--emails th:nth-child(3),
.products-assets-table--emails td:nth-child(3) {
  width: 32%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.products-assets-table--emails th:nth-child(4),
.products-assets-table--emails td:nth-child(4) {
  width: 23%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.products-assets-table--emails th:nth-child(5),
.products-assets-table--emails td:nth-child(5) {
  width: 17%;
}

.products-assets-table th {
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  white-space: nowrap;
}

.products-assets-table td {
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef0f2;
  vertical-align: middle;
  white-space: nowrap;
}

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

.products-assets-table tbody tr:hover,
.products-assets-table tbody tr.is-selected {
  background: var(--color-surface);
}

.products-table-check-cell {
  width: 38px;
  padding-inline: 14px 5px !important;
  text-align: center;
}

.products-table-check-cell input {
  width: 14px;
  height: 14px;
  accent-color: var(--color-brand);
  cursor: pointer;
}

.products-product-identity {
  display: flex;
  min-width: 260px;
  align-items: center;
  gap: 10px;
}

.products-product-identity > div,
.products-coupon-offer,
.products-template-select {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.products-product-identity strong,
.products-coupon-offer strong,
.products-template-select strong {
  overflow: hidden;
  max-width: 290px;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-product-identity span,
.products-coupon-offer span,
.products-template-select small {
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-product-art {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #f0f2f4;
  color: var(--color-text-soft);
}

.products-product-art::before,
.products-product-art::after {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  content: "";
}

.products-product-art::before {
  width: 30px;
  height: 30px;
  transform: translate(12px, -12px);
}

.products-product-art::after {
  width: 20px;
  height: 20px;
  transform: translate(-13px, 13px);
}

.products-product-art__mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.products-product-art[data-tone="ink"] { background: #e7ebea; }
.products-product-art[data-tone="stone"] { background: #e8e5df; }
.products-product-art[data-tone="pearl"] { background: #e5e9ee; }
.products-product-art[data-tone="graphite"] { background: #e0e2e4; }
.products-product-art[data-tone="aqua"] { background: #e2eded; }
.products-product-art[data-tone="charcoal"] { background: #e4e4e2; }
.products-product-art[data-tone="cream"] { background: #f1ebdf; }
.products-product-art[data-tone="blue"] { background: #e6eaef; }

.products-price--old {
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.products-price--new {
  color: var(--color-brand);
  font-size: 12px;
}

.products-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 600;
}

.campaign-checkbox {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  cursor: pointer;
}

.campaign-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.campaign-checkbox > span {
  display: block;
  width: 17px;
  height: 17px;
  border: 1px solid #b9bec5;
  border-radius: 2px;
  background: #ffffff;
}

.campaign-checkbox input:checked + span,
.campaign-checkbox input:indeterminate + span {
  border-color: var(--campaign-red);
  background: var(--campaign-red);
}

.campaign-checkbox input:checked + span::after {
  display: block;
  width: 8px;
  height: 4px;
  margin: 4px 0 0 3px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  content: "";
  transform: rotate(-45deg);
}

.campaign-table-scroll {
  overflow-x: auto;
}

.campaign-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
  table-layout: fixed;
}

.campaign-col--check {
  width: 44px;
}

.campaign-col--campaign {
  width: 210px;
}

.campaign-col--type {
  width: 82px;
}

.campaign-col--channel {
  width: 102px;
}

.campaign-col--status {
  width: 126px;
}

.campaign-col--stage {
  width: 88px;
}

.campaign-col--partners {
  width: 72px;
}

.campaign-col--sales {
  width: 126px;
}

.campaign-col--progress {
  width: 116px;
}

.campaign-col--next {
  width: 156px;
}

.campaign-col--updated {
  width: 136px;
}

.campaign-col--actions {
  width: 36px;
}

.campaign-table th,
.campaign-table td {
  padding: 0 9px;
  border-bottom: 1px solid #eceef0;
  text-align: left;
  vertical-align: middle;
}

.campaign-table th {
  height: 43px;
  color: #1f2328;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.campaign-table td {
  height: 55px;
  color: #25292e;
  font-size: 11px;
  font-weight: 500;
}

.products-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}

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

.campaign-table tbody tr:hover {
  background: #fffafa;
}

.campaign-table th:first-child,
.campaign-table td:first-child {
  padding-left: 14px;
}

.campaign-sort {
  display: inline-block;
  margin-left: 4px;
  color: #626870;
  font-size: 12px;
  font-weight: 400;
  transform: translateY(1px);
}

.campaign-cell--campaign,
.campaign-cell--sales,
.campaign-cell--updated {
  display: table-cell;
}

.campaign-cell--campaign strong,
.campaign-cell--campaign small,
.campaign-cell--sales strong,
.campaign-cell--sales small,
.campaign-cell--updated span,
.campaign-cell--updated small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-cell--campaign strong {
  color: #181b20;
  font-size: 11px;
  font-weight: 700;
}

.campaign-cell--campaign small {
  margin-top: 4px;
  color: #69717a;
  font-size: 11px;
  font-weight: 500;
}

.campaign-cell--type,
.campaign-cell--channel,
.campaign-cell--next {
  white-space: nowrap;
}

.campaign-cell--type > span:last-child,
.campaign-cell--channel > span:last-child,
.campaign-cell--next > span:last-child {
  vertical-align: middle;
}

.campaign-cell__icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  place-items: center;
  color: #22262b;
  vertical-align: middle;
}

.campaign-cell__icon svg {
  width: 17px;
  height: 17px;
}

.campaign-cell--number {
  text-align: center !important;
  font-variant-numeric: tabular-nums;
}

.campaign-cell--sales strong {
  color: #20242a;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.campaign-cell--sales small,
.campaign-cell--updated small {
  margin-top: 4px;
  color: #555d66;
  font-size: 11px;
  font-weight: 500;
}

.campaign-status {
  display: grid;
  min-height: 43px;
  align-content: center;
  gap: 2px;
  padding: 5px 8px;
  border: 1px solid var(--status-color);
  border-radius: 4px;
  background: #ffffff;
}

.campaign-status__top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.campaign-status__top i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--status-color);
}

.campaign-status strong {
  color: var(--status-color);
  font-size: 11px;
  font-weight: 700;
}

.campaign-status small {
  padding-left: 14px;
  color: #34383e;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.campaign-status--active {
  --status-color: #2c9a52;
}

.campaign-status--pending {
  --status-color: #ec9b17;
}

.campaign-status--completed {
  --status-color: #7141ad;
}

.campaign-status--paused {
  --status-color: #70757b;
}

.campaign-status--closed {
  --status-color: var(--campaign-red);
}

.campaign-status--draft {
  --status-color: #e58e16;
}

.campaign-cell--progress strong {
  display: block;
  color: #24282d;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.campaign-progress__track {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe2e4;
}

.campaign-progress__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--campaign-red);
}

.campaign-cell--next {
  color: #25292e;
}

.campaign-cell--next .campaign-cell__icon {
  color: #22262b;
}

.campaign-cell--updated {
  color: #25292e;
}

.campaign-row-action {
  width: 22px;
  height: 28px;
  justify-content: center;
  padding: 0;
}

.campaign-row-action svg {
  width: 16px;
  height: 16px;
}

.campaign-empty {
  height: 150px !important;
  text-align: center !important;
}

.campaign-empty strong,
.campaign-empty span {
  display: block;
}

.campaign-empty strong {
  color: #171a1e;
  font-size: 12px;
}

.campaign-empty span {
  margin-top: 5px;
  color: #747a81;
  font-size: 11px;
}

.campaign-table-footer {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 14px;
  border-top: 1px solid var(--campaign-border);
  color: #5d646c;
  font-size: 11px;
}

.campaign-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.campaign-pagination label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  white-space: nowrap;
}

.campaign-pagination select,
.campaign-pagination button {
  height: 32px;
  border: 1px solid #dfe2e6;
  border-radius: 5px;
  background: #ffffff;
  color: #25292e;
  font-family: inherit;
  font-size: 11px;
}

.campaign-pagination select {
  min-width: 64px;
  padding: 0 7px;
}

.campaign-pagination button {
  width: 32px;
  cursor: pointer;
}

.campaign-pagination button:hover:not(:disabled) {
  border-color: var(--campaign-red);
  color: var(--campaign-red);
}

.campaign-pagination button:disabled {
  cursor: default;
  opacity: 0.48;
}

.campaign-pagination button.is-current {
  border-color: var(--campaign-red);
  color: var(--campaign-red);
  font-weight: 700;
}

@media (max-width: 1399px) {
  .campaign-toolbar {
    grid-template-columns: minmax(210px, 1.7fr) repeat(4, minmax(120px, 1fr));
  }

  .campaign-filter:nth-of-type(5),
  .campaign-filter:nth-of-type(6),
  .campaign-filter:nth-of-type(7),
  .campaign-create-button {
    grid-row: 2;
  }

  .campaign-create-button {
    justify-self: stretch;
  }
}

@media (max-width: 980px) {
  .campaign-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .campaign-search,
  .campaign-create-button {
    grid-column: 1 / -1;
  }

  .campaign-filter:nth-of-type(5),
  .campaign-filter:nth-of-type(6),
  .campaign-filter:nth-of-type(7),
  .campaign-create-button {
    grid-row: auto;
  }

  .campaign-bulk-toolbar {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding-block: 8px;
  }

  .campaign-bulk-actions {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .campaign-clear-selection {
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  .is-campaign-page .page-header {
    min-height: 0;
  }

  .campaign-metrics-grid,
  .campaign-toolbar {
    grid-template-columns: 1fr;
  }

  .campaign-search,
  .campaign-create-button {
    grid-column: auto;
  }

  .campaign-metric {
    grid-template-columns: 42px minmax(0, 1fr) 74px;
  }

  .campaign-metric__sparkline {
    width: 74px;
  }

  .campaign-tabs {
    gap: 22px;
  }

  .campaign-table-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 12px;
  }

  .campaign-pagination {
    width: 100%;
    justify-content: flex-end;
  }
}


/* Commission & Rules / Attribution rules only */
body.is-attribution-page {
  --attribution-red: #e60000;
  --attribution-red-dark: #cd0200;
  --attribution-soft-red: #fde8e8;
  --attribution-selected-red: #ff312e;
  --attribution-border: #e5e7eb;
  --attribution-text: #111111;
  background: #ffffff;
}

.is-attribution-page .page-header {
  min-height: 92px;
  margin-bottom: 14px;
}

.is-attribution-page .scope-line,
.is-attribution-page .page-header__filters {
  display: none;
}

.is-attribution-page .page-header__actions {
  width: auto;
  flex: 0 0 auto;
  gap: 15px;
  padding-top: 0;
}

.is-attribution-page .page-header__utility {
  padding-top: 0;
}

.is-attribution-page .page-header__page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.is-attribution-page .page-header__page-actions .button {
  min-width: 138px;
  height: 42px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.is-attribution-page .page-header__page-actions .button--secondary {
  border-color: #dfe2e6;
  background: #ffffff;
  color: #25292e;
}

.is-attribution-page .page-header__page-actions .button--secondary:hover {
  border-color: #f0bfc0;
  background: #fffafa;
  color: var(--attribution-red);
}

.is-attribution-page .page-header__page-actions .button--primary {
  background: var(--attribution-red);
  color: #ffffff;
}

.is-attribution-page .page-header__page-actions .button--primary:hover {
  background: var(--attribution-red-dark);
}

.is-attribution-page .breadcrumb [data-breadcrumb-parent] {
  color: var(--attribution-red);
  font-weight: 600;
}

.is-attribution-page .breadcrumb strong {
  color: var(--attribution-text);
}

.is-attribution-page .nav-item[data-nav-item="commission-rules"] {
  background: var(--attribution-red);
  color: #ffffff;
}

.is-attribution-page .nav-item[data-nav-item="commission-rules"]:hover {
  background: var(--attribution-red-dark);
  color: #ffffff;
}

.is-attribution-page .nav-item[data-nav-item="commission-rules"] .nav-item__chevron {
  color: #ffffff;
}

.is-attribution-page .nav-child[data-nav-child="attribution-rules"] {
  background: var(--attribution-soft-red);
  box-shadow: inset 3px 0 0 var(--attribution-selected-red);
  color: var(--attribution-selected-red);
  font-weight: 600;
}

.attribution-page[hidden] {
  display: none;
}

.attribution-page {
  display: grid;
  gap: 16px;
  color: var(--attribution-text);
}

.attribution-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.28fr) minmax(0, 1.3fr);
  gap: 14px;
}

.attribution-card {
  min-width: 0;
  border: 1px solid var(--attribution-border);
  border-radius: 6px;
  background: #ffffff;
}

.attribution-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.attribution-card__header h2,
.attribution-section-header h2 {
  margin: 0;
  color: #18243a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.attribution-card__header p,
.attribution-section-header p {
  margin: 5px 0 0;
  color: #4b5563;
  font-size: 11px;
  line-height: 1.55;
}

.attribution-model-card,
.attribution-summary-card,
.attribution-distribution-card {
  min-height: 218px;
  padding: 18px 16px 15px;
}

.attribution-select {
  display: block;
  margin-top: 20px;
}

.attribution-select select {
  width: 100%;
  height: 40px;
  padding: 0 32px 0 11px;
  border: 1px solid #e0e5ec;
  border-radius: 5px;
  outline: none;
  background: #ffffff;
  color: #273247;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
}

.attribution-select select:focus-visible,
.attribution-link:focus-visible,
.attribution-add-rule:focus-visible,
.attribution-table button:focus-visible,
.inline-info:focus-visible {
  outline: 2px solid var(--attribution-red);
  outline-offset: 2px;
}

.attribution-callout {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 21px;
  padding: 10px 10px;
  border: 1px solid #ccebd8;
  border-radius: 5px;
  background: #f5fcf7;
  color: #273247;
  font-size: 11px;
  line-height: 1.55;
}

.attribution-callout__icon {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  margin-top: 1px;
  border: 1px solid #29b568;
  border-radius: 50%;
  color: #20a85f;
}

.attribution-callout__icon svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.attribution-summary-metrics {
  display: grid;
  grid-template-columns: minmax(130px, 1.25fr) repeat(2, minmax(100px, 1fr));
  margin-top: 25px;
}

.attribution-summary-metric {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 7px;
  padding: 0 14px;
  border-left: 1px solid #edf0f4;
}

.attribution-summary-metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.attribution-summary-metric strong {
  overflow: hidden;
  color: #18243a;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attribution-summary-metric--model strong {
  font-size: 13px;
}

.attribution-summary-metric span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: #66728a;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
}

.products-status[data-tone="success"] i { background: var(--color-success); }
.products-status[data-tone="warning"] i { background: var(--color-warning); }
.products-status[data-tone="danger"] i { background: var(--color-danger); }

.products-table-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.products-table-actions button {
  padding: 4px 0;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 11px;
}

.products-table-actions button:hover {
  color: var(--color-brand);
}

.products-assets-table-footbar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 11px;
}

.products-assets-table-footbar p {
  margin: 0;
}

.products-assets-table-footbar p button {
  padding: 0;
  background: transparent;
  color: var(--color-brand);
  cursor: pointer;
  font-size: inherit;
  font-weight: 600;
}

.products-assets-table-footbar--simple {
  justify-content: flex-end;
}

.products-assets-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.products-assets-pagination select {
  width: 48px;
  min-height: 28px;
  padding: 0 5px;
  font-size: 11px;
}

.products-assets-pagination button {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-text-soft);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.products-assets-pagination button:disabled {
  color: #b7bdc4;
  cursor: not-allowed;
}

.products-assets-empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 24px;
  color: var(--color-text-muted);
  text-align: center;
}

.products-assets-empty > span {
  color: var(--color-brand);
  font-size: 22px;
}

.products-assets-empty strong {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
}

.products-assets-empty p {
  max-width: 340px;
  margin: 0;
  font-size: 11px;
}

/* Coupons */
.products-coupon-filters {
  display: grid;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.products-coupon-filters__row {
  display: grid;
  grid-template-columns: 1.1fr repeat(2, minmax(130px, 0.72fr)) minmax(220px, 1.25fr);
  gap: 10px;
}

.products-coupon-filters__row--actions {
  grid-template-columns: minmax(180px, 0.8fr) 1fr;
  align-items: end;
}

.products-assets-field input {
  padding-inline: 10px;
  outline: 0;
  cursor: text;
}

.products-assets-field--search {
  min-width: 0;
}

.products-coupon-filters .products-assets-select {
  min-width: 0;
}

.products-coupon-filters__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.products-assets-search-button {
  flex: 0 0 auto;
}

/* Banners & images */
.products-assets-subtabs {
  margin-top: -4px;
  border-bottom-color: transparent;
}

.products-assets-subtab {
  min-height: 32px;
  padding-inline: 12px;
  font-size: 11px;
}

.products-assets-subtab::after {
  right: 12px;
  left: 12px;
}

.products-assets-section-head--assets {
  align-items: flex-end;
}

.products-assets-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.products-assets-sort select {
  width: 94px;
  padding-inline: 8px 22px;
}

.products-assets-workspace {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 14px;
}

.products-assets-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
}

.products-asset-card {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.products-asset-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

.products-asset-card.is-selected {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 1px var(--color-brand);
}

.products-asset-card__media {
  position: relative;
  display: flex;
  min-height: 120px;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
  padding: 13px;
  background: #edf0ef;
  color: var(--color-text);
}

.products-asset-card__media::before,
.products-asset-card__media::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.products-asset-card__media::before {
  top: -42px;
  right: -12px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.48);
}

.products-asset-card__media::after {
  right: 22%;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border: 18px solid rgba(255, 255, 255, 0.42);
}

.products-asset-card__media[data-tone="workspace"] { background: #e8ece8; }
.products-asset-card__media[data-tone="headphones"] { background: #e7ebef; }
.products-asset-card__media[data-tone="beauty"] { background: #f0eae5; }
.products-asset-card__media[data-tone="chair"] { background: #e7ebe8; }
.products-asset-card__media[data-tone="shoes"] { background: #ece8df; }
.products-asset-card__media[data-tone="summer"] { background: #f0e8df; }
.products-asset-card__media[data-tone="affiliate"] { background: var(--color-brand-soft); }
.products-asset-card__media[data-tone="shipping"] { background: #edf0f0; }
.products-asset-card__media[data-tone="arrivals"] { background: #eeebe3; }

.products-asset-card.is-strip .products-asset-card__media {
  min-height: 68px;
}

.products-asset-card__copy,
.products-asset-card__format {
  position: relative;
  z-index: 1;
}

.products-asset-card__copy {
  display: grid;
  max-width: 80%;
  gap: 3px;
}

.products-asset-card__copy strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.15px;
}

.products-asset-card__copy small {
  font-size: 11px;
  opacity: 0.75;
}

.products-asset-card__format {
  align-self: flex-start;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--color-text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.products-asset-card__footer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
}

.products-asset-card__footer > span:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.products-asset-card__footer strong {
  overflow: hidden;
  max-width: 155px;
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-asset-card__footer small {
  color: var(--color-text-muted);
  font-size: 11px;
}

.products-asset-card__selected {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
}

.products-asset-card__selected svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.1;
}

.products-assets-detail {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.products-assets-detail__header {
  align-items: center;
}

.products-assets-detail__header h2 {
  max-width: 214px;
  margin-top: 4px;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-assets-icon-button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
}

.products-assets-icon-button:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.products-assets-icon-button svg {

}

.status-dot--active {
  background: #21b365;
}

.inline-info {
  display: inline-grid;
  width: 15px;
  height: 15px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8490a4;
  cursor: pointer;
  vertical-align: -3px;
}

.inline-info:hover {
  color: var(--attribution-red);
}

.inline-info svg {
  width: 13px;
  height: 13px;
}

.attribution-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 31px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64708a;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
}

.attribution-link:hover {
  color: var(--attribution-red);
}

.attribution-link svg {
  width: 15px;
  height: 15px;
}

.products-assets-detail__preview {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
}

.products-assets-detail__preview .products-asset-card__media {
  min-height: 142px;
}

.products-assets-detail__facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.products-assets-detail__facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef0f2;
}

.products-assets-detail__facts dt {
  color: var(--color-text-muted);
  font-size: 11px;
}

.products-assets-detail__facts dd {
  max-width: 170px;
  margin: 0;
  overflow: hidden;
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-assets-detail__tags {
  display: grid;
  gap: 7px;
}

.products-assets-detail__tags > span {
  color: var(--color-text-muted);
  font-size: 11px;
}

.products-assets-detail__tags > div {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.products-assets-detail__tags > div span {
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 11px;
}

.products-assets-detail__description {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1.6;
}

.products-assets-detail__edit {
  width: 100%;
}

/* Texts & emails */
.products-email-workspace {
  display: grid;
  min-width: 0;
  grid-template-columns: 188px minmax(0, 1fr) 282px;
  align-items: start;
  gap: 14px;
}

.products-email-folders,
.products-email-list,
.products-email-preview {
  min-width: 0;
}

.products-email-folders {
  padding: 14px 10px;
}

.products-email-folders__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px 10px;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}

.products-email-folders__header button {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-brand);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.products-email-folders nav {
  display: grid;
  gap: 2px;
}

.products-email-folder {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
  border-radius: 4px;
  background: transparent;
  color: var(--color-text-soft);
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}

.products-email-folder span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-email-folder b {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 500;
}

.products-email-folder:hover,
.products-email-folder.is-active {
  background: var(--color-brand-soft);
  color: var(--color-nav-selected);
}

.products-email-folder.is-active b {
  color: var(--color-nav-selected);
}

.products-email-new-folder {
  width: 100%;
  margin-top: 10px;
  padding: 9px 8px;
  border-top: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-brand);
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}

.products-email-list {
  overflow: hidden;
}

.products-email-search-form {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.products-email-search-form .products-assets-search {
  max-width: 360px;
}

.products-assets-table--emails td {
  height: 54px;
}

.products-template-select {
  width: 100%;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.products-template-select:hover strong {
  color: var(--color-brand);
}

.products-email-preview {
  position: sticky;
  top: 18px;
  min-height: 360px;
  padding: 16px;
}

.products-email-preview__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.products-email-preview__header h2 {
  max-width: 210px;
  margin-top: 4px;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-email-preview__message {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 0;
  border-bottom: 1px solid #eef0f2;
}

.products-email-preview__avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 700;
}

.products-email-preview__message div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.products-email-preview__message strong {
  overflow: hidden;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-email-preview__message small {
  color: var(--color-text-muted);
  font-size: 11px;
}

.products-email-preview__body {
  display: grid;
  gap: 9px;
  padding: 16px 0;
  color: var(--color-text-soft);
  font-size: 11px;
  line-height: 1.65;
}

.products-email-preview__body p {
  margin: 0;
}

.products-email-preview__body button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  color: var(--color-brand);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.products-email-preview__body button svg {
  width: 13px;
  height: 13px;
}

.products-email-preview__tags,
.products-email-preview__empty > div {
  display: grid;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid #eef0f2;
}

.products-email-preview__tags > span,
.products-email-preview__empty > div > span {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.products-email-preview__tags > div,
.products-email-preview__empty > div > div {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.products-email-preview code {
  padding: 4px 6px;
  border-radius: 4px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-family: var(--font-ui);
  font-size: 11px;
}

.products-email-preview__empty {
  display: grid;
  min-height: 330px;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--color-text-muted);
  text-align: center;
}

.products-email-preview__envelope {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.products-email-preview__envelope svg {
  width: 23px;
  height: 23px;
}

.products-email-preview__empty strong {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
}

.products-email-preview__empty p {
  max-width: 208px;
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.6;
}

.products-email-preview__empty > div {
  width: 100%;
  text-align: left;
}

@media (max-width: 1260px) {
  .products-assets-toolbar--feed .products-assets-toolbar__actions,
  .products-assets-toolbar--assets .products-assets-toolbar__actions {
    margin-left: 0;
  }

  .products-assets-workspace {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .products-email-workspace {
    grid-template-columns: 170px minmax(0, 1fr) 250px;
  }
}

@media (max-width: 1080px) {
  .products-assets-toolbar {
    align-items: stretch;
  }

  .products-assets-toolbar__filters,
  .products-assets-toolbar__actions,
  .products-assets-toolbar > .products-assets-search-form {
    flex: 1 1 100%;
  }

  .products-assets-toolbar > .products-assets-search-form {
    order: 3;
  }

  .products-assets-toolbar__actions {
    justify-content: flex-start;
  }

  .products-assets-workspace {
    grid-template-columns: 1fr;
  }

  .products-assets-detail,
  .products-email-preview {
    position: static;
  }

  .products-assets-detail {
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr);
    align-items: start;
  }

  .products-assets-detail__header,
  .products-assets-detail__preview,
  .products-assets-detail__edit {
    grid-column: 1 / -1;
  }

  .products-assets-detail__facts {
    grid-column: 1;
  }

  .products-assets-detail__tags,
  .products-assets-detail__description {
    grid-column: 2;
  }

  .products-assets-detail__edit {
    grid-row: 4;
  }

  .products-email-workspace {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .products-email-preview {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .products-assets-module {
    gap: 12px;
  }

  .products-assets-section-head,
  .products-assets-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .products-assets-section-head--assets {
    align-items: flex-start;
  }

  .products-assets-sort {
    width: 100%;
    justify-content: flex-start;
  }

  .products-coupon-filters__row,
  .products-coupon-filters__row--actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-coupon-filters__actions {
    justify-content: flex-start;
  }

  .products-assets-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .products-assets-detail {
    grid-template-columns: 1fr;
  }

  .products-assets-detail__facts,
  .products-assets-detail__tags,
  .products-assets-detail__description {
    grid-column: auto;
  }

  .products-assets-detail__edit {
    grid-row: auto;
  }

  .products-email-workspace {
    grid-template-columns: 1fr;
  }

  .products-email-list,
  .products-email-preview {
    grid-column: auto;
  }
}

@media (max-width: 479px) {
  .products-assets-toolbar__filters,
  .products-assets-toolbar__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-assets-select--compact {
    width: 100%;
  }

  .products-assets-toolbar__actions .products-assets-button {
    width: 100%;
  }

  .products-assets-view-toggle {
    justify-self: start;
  }

  .products-coupon-filters__row,
  .products-coupon-filters__row--actions {
    grid-template-columns: 1fr;
  }

  .products-assets-grid {
    grid-template-columns: 1fr;
  }

  .products-assets-table-footbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .products-assets-table-footbar--simple {
    align-items: flex-end;
  }
}

/* Campaigns and support workspace modules */
.campaigns-support-module {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.campaign-support-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 0 4px;
}

.campaign-support-toolbar h2 {
  margin: 5px 0 4px;
  font-size: 25px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.campaign-support-toolbar p {
  max-width: 660px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.campaign-support-eyebrow {
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.campaign-support-toolbar__actions,
.campaign-support-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.campaign-support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.campaign-support-button svg,
.campaign-support-button svg use {
  width: 15px;
  height: 15px;
}

.campaign-support-button:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.campaign-support-button--primary {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: var(--color-canvas);
}

.campaign-support-button--primary:hover {
  border-color: var(--color-brand-hover);
  background: var(--color-brand-hover);
  color: var(--color-canvas);
}

.campaign-support-module .workspace-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.campaign-support-module .campaign-support-stat-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.campaign-support-module .workspace-stat {
  min-height: 96px;
  padding: 16px 17px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.campaign-support-module .workspace-stat > span,
.campaign-support-module .workspace-stat > small {
  color: var(--color-text-muted);
  font-size: 11px;
}

.campaign-support-module .workspace-stat > strong {
  display: block;
  margin: 8px 0 3px;
  font-size: 21px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.campaign-support-module .workspace-stat[data-tone="success"] > strong {
  color: var(--color-success);
}

.campaign-support-tabs {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-canvas);
}

.campaign-support-tab {
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.campaign-support-tab:hover,
.campaign-support-tab.is-active {
  background: var(--color-text);
  color: var(--color-canvas);
}

.campaign-support-filter-bar {
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 1px 0;
}

.campaign-support-filter-bar--wide {
  justify-content: flex-start;
}

.campaign-support-search-form {
  min-width: 210px;
  flex: 1 1 230px;
}

.campaign-support-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
}

.campaign-support-search > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--color-text-muted);
}

.campaign-support-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 12px;
}

.campaign-support-search input::placeholder {
  color: var(--color-text-muted);
}

.campaign-support-search button {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--color-brand);
  cursor: pointer;
}

.campaign-support-search button svg {
  width: 14px;
  height: 14px;
}

.attribution-distribution-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.attribution-distribution-row {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
}

.attribution-distribution-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: #273247;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.attribution-channel-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 7px;
}

.attribution-channel-icon svg {
  width: 14px;
  height: 14px;
}

.campaign-support-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
}

.campaign-support-select > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.campaign-support-select select {
  max-width: 178px;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--color-text-soft);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.campaign-support-select > svg {
  position: absolute;
  right: 9px;
  width: 13px;
  height: 13px;
  pointer-events: none;
}

.campaign-support-module .workspace-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: none;
}

.campaign-support-module .workspace-panel__header {
  padding: 15px 16px 12px;
  border-bottom: 1px solid var(--color-border);
}

.campaign-support-module .workspace-panel__title-row {
  align-items: center;
}

.campaign-support-module .workspace-panel h3 {
  font-size: 14px;
  font-weight: 600;
}

.campaign-support-count {
  color: var(--color-text-muted);
  font-size: 11px;
}

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

.campaign-table__head,
.campaign-table__row {
  display: grid;
  grid-template-columns: minmax(210px, 1.8fr) minmax(90px, .75fr) minmax(150px, 1.2fr) minmax(70px, .65fr) minmax(70px, .65fr) minmax(95px, .85fr) minmax(88px, .7fr) 26px;
  align-items: center;
  gap: 14px;
  min-width: 980px;
  padding: 12px 16px;
}

.campaign-table__head {
  padding-top: 11px;
  padding-bottom: 9px;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.campaign-table__row {
  min-height: 61px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-soft);
  font-size: 12px;
}

.campaign-table__row > span:not(.campaign-table__primary) {
  min-width: 0;
}

.campaign-table__row small,
.campaign-table__primary small {
  display: block;
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.campaign-table__primary,
.program-card__top > div,
.influencer-card__heading,
.help-article-row,
.settings-preference {
  display: flex;
  align-items: center;
}

.campaign-table__primary {
  gap: 10px;
  min-width: 0;
}

.campaign-table__primary strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-support-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 700;
}

.campaign-support-mark--green { background: var(--color-success-soft); color: var(--color-success); }
.campaign-support-mark--purple { background: var(--color-purple-soft); color: var(--color-purple); }
.campaign-support-mark--blue { background: var(--color-success-soft); color: var(--color-success); }
.campaign-support-mark--orange { background: var(--color-warning-soft); color: var(--color-warning); }
.campaign-support-mark--slate { background: var(--color-border); color: var(--color-text-soft); }
.campaign-support-mark--linen { background: var(--color-warning-soft); color: var(--color-warning); }
.campaign-support-mark--sand { background: var(--color-brand-soft); color: var(--color-brand); }

.campaign-support-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-chip);
  background: var(--color-border);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.campaign-support-status::before {
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.campaign-support-status[data-tone="success"] { background: var(--color-success-soft); color: var(--color-success); }
.campaign-support-status[data-tone="warning"] { background: var(--color-warning-soft); color: var(--color-warning); }
.campaign-support-status[data-tone="danger"] { background: var(--color-danger-soft); color: var(--color-danger); }

.campaign-table__action {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.campaign-table__action:hover { color: var(--color-brand); }
.campaign-table__action svg { width: 14px; height: 14px; }

.campaign-support-table-footbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.campaign-support-table-footbar > div { display: flex; align-items: center; gap: 5px; }
.campaign-support-table-footbar button { display: inline-grid; min-width: 26px; height: 26px; place-items: center; border: 1px solid var(--color-border); border-radius: 4px; background: var(--color-surface); color: var(--color-text-muted); font: inherit; cursor: pointer; }
.campaign-support-table-footbar button.is-active { border-color: var(--color-brand); background: var(--color-brand); color: var(--color-canvas); }
.campaign-support-table-footbar button svg { width: 13px; height: 13px; }

.campaign-support-empty {
  display: grid;
  gap: 5px;
  padding: 26px 18px;
  color: var(--color-text-muted);
  text-align: center;
}

.campaign-support-empty strong { color: var(--color-text-soft); font-size: 13px; font-weight: 600; }
.campaign-support-empty span { font-size: 12px; }

.program-grid,
.influencer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.program-card,
.influencer-card,
.help-category-card,
.help-support-card,
.help-system-status {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.program-card { display: grid; gap: 17px; padding: 17px; }
.program-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.program-card__top > div { gap: 10px; min-width: 0; }
.program-card h3, .influencer-card h3, .help-category-card h3, .help-support-card h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
.program-card__top span:not(.campaign-support-status):not(.campaign-support-mark) { display: block; margin-top: 4px; color: var(--color-text-muted); font-size: 11px; }
.program-card__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 13px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.program-card__metrics div { display: grid; gap: 4px; padding-right: 8px; }
.program-card__metrics div + div { padding-left: 12px; border-left: 1px solid var(--color-border); }
.program-card__metrics span, .program-card__footer > span { color: var(--color-text-muted); font-size: 11px; }
.program-card__metrics strong { font-size: 15px; font-weight: 600; }
.program-card__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.program-card__tags span { padding: 4px 7px; border-radius: var(--radius-chip); background: var(--color-brand-soft); color: var(--color-brand); font-size: 11px; }
.program-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.program-card__footer button, .help-support-card button, .help-system-status button, .influencer-card__action { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--color-brand); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.program-card__footer svg, .help-support-card button svg, .help-system-status button svg, .influencer-card__action svg { width: 13px; height: 13px; }

.influencer-card { overflow: hidden; }
.influencer-card__art { display: flex; align-items: flex-end; justify-content: space-between; min-height: 126px; padding: 16px; color: var(--color-text); }
.influencer-card__art > span { font-size: 28px; font-weight: 600; letter-spacing: -.08em; }
.influencer-card__art > div { display: grid; gap: 4px; justify-items: end; text-align: right; }
.influencer-card__art > div span { color: var(--color-text-muted); font-size: 11px; }
.influencer-card__art > div strong { font-size: 11px; font-weight: 600; }
.influencer-card__art--sand { background: var(--color-warning-soft); }
.influencer-card__art--slate { background: var(--color-border); }
.influencer-card__art--linen { background: var(--color-brand-soft); }
.influencer-card__art--blue { background: var(--color-success-soft); }
.influencer-card__art--green { background: var(--color-success-soft); }
.influencer-card__body { display: grid; gap: 15px; padding: 17px; }
.influencer-card__heading { align-items: flex-start; justify-content: space-between; gap: 10px; }
.influencer-card__heading > div { min-width: 0; }
.influencer-card__heading > div > span { display: block; margin-top: 5px; color: var(--color-text-muted); font-size: 11px; }
.influencer-card__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.influencer-card__meta span { display: grid; gap: 4px; color: var(--color-text-muted); font-size: 11px; }
.influencer-card__meta svg { width: 13px; height: 13px; color: var(--color-brand); }
.influencer-card__meta strong { color: var(--color-text-soft); font-size: 12px; font-weight: 600; }
.campaign-progress { display: grid; gap: 7px; }
.campaign-progress > div { display: flex; justify-content: space-between; color: var(--color-text-muted); font-size: 11px; }
.campaign-progress strong { color: var(--color-text-soft); font-weight: 600; }
.campaign-progress > span { display: block; height: 5px; overflow: hidden; border-radius: var(--radius-chip); background: var(--color-border); }
.campaign-progress i { display: block; height: 100%; border-radius: inherit; background: var(--color-brand); }
.influencer-card__action { justify-self: start; }

.help-search-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 28px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-brand-soft); }
.help-search-hero h3 { margin: 6px 0 4px; font-size: 21px; font-weight: 600; letter-spacing: -.04em; }
.help-search-hero p { margin: 0; color: var(--color-text-muted); font-size: 12px; }
.help-search-hero .campaign-support-search-form { max-width: 380px; }
.help-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.help-category-card { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; padding: 17px; }
.help-category-card > div { min-width: 0; }
.help-category-card > svg { width: 14px; height: 14px; color: var(--color-text-muted); }
.help-category-card__icon { display: inline-grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: var(--color-brand-soft); color: var(--color-brand); }
.help-category-card__icon svg { width: 16px; height: 16px; }
.help-category-card--green .help-category-card__icon { background: var(--color-success-soft); color: var(--color-success); }
.help-category-card--purple .help-category-card__icon { background: var(--color-purple-soft); color: var(--color-purple); }
.help-category-card p { margin: 7px 0 10px; color: var(--color-text-muted); font-size: 11px; line-height: 1.5; }
.help-category-card > div > span { color: var(--color-brand); font-size: 11px; font-weight: 600; }
.help-content-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 12px; }
.help-article-list .workspace-panel { overflow: hidden; }
.help-article-row { width: 100%; gap: 11px; padding: 14px 16px; border: 0; border-top: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); text-align: left; cursor: pointer; }
.help-article-row:hover { background: var(--color-brand-soft); }
.help-article-row > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; flex: 1; }
.help-article-row strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.help-article-row small { overflow: hidden; color: var(--color-text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.help-article-row em { color: var(--color-text-muted); font-size: 11px; font-style: normal; }
.help-article-row > svg { width: 14px; height: 14px; color: var(--color-text-muted); }
.help-article-row__icon { display: inline-grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: var(--color-brand-soft); color: var(--color-brand); }
.help-article-row__icon svg { width: 15px; height: 15px; }
.help-support-stack { display: grid; align-content: start; gap: 12px; }
.help-support-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 18px; background: var(--color-text); color: var(--color-canvas); }
.help-support-card__icon { display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; background: var(--color-brand); color: var(--color-canvas); }
.help-support-card__icon svg { width: 15px; height: 15px; }
.help-support-card p { margin: 7px 0 16px; color: var(--color-border-strong); font-size: 11px; line-height: 1.5; }
.help-support-card button { color: var(--color-canvas); }
.help-system-status { padding: 18px; }
.help-system-status > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.help-system-status h3 { margin: 0; font-size: 13px; font-weight: 600; }
.help-status-pill { color: var(--color-success); font-size: 11px; white-space: nowrap; }
.help-status-pill i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: currentColor; }
.help-system-status__row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 11px; }
.help-system-status__row strong { color: var(--color-success); font-size: 11px; font-weight: 600; }
.help-system-status > button { margin-top: 8px; }

.settings-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 18px; }
.settings-rail { display: grid; gap: 3px; padding: 5px 0; }
.settings-rail__item { width: 100%; gap: 9px; min-height: 37px; padding: 0 11px; border: 0; border-left: 2px solid transparent; border-radius: 0 var(--radius-control) var(--radius-control) 0; background: transparent; color: var(--color-text-muted); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.settings-rail__item svg { width: 15px; height: 15px; }
.settings-rail__item:hover { color: var(--color-text-soft); }
.settings-rail__item.is-active { border-left-color: var(--color-brand); background: var(--color-brand-soft); color: var(--color-brand); font-weight: 600; }
.settings-main { display: grid; gap: 12px; min-width: 0; }
.settings-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 17px; }
.settings-form-grid label { display: grid; gap: 7px; min-width: 0; }
.settings-form-grid label > span { color: var(--color-text-soft); font-size: 11px; font-weight: 500; }
.settings-form-grid input, .settings-form-grid textarea { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-control); outline: 0; background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 12px; resize: vertical; }
.settings-form-grid input:focus, .settings-form-grid textarea:focus, .campaign-support-search:focus-within { border-color: var(--focus-accent); }
.settings-form-grid__wide { grid-column: 1 / -1; }
.settings-form-grid--regional { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-form-grid--regional .campaign-support-select { width: 100%; min-height: 36px; }
.settings-form-grid--regional .campaign-support-select select { width: 100%; max-width: none; }
.settings-preference-list { padding: 2px 17px; }
.settings-preference { justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--color-border); }
.settings-preference:first-child { border-top: 0; }
.settings-preference > div { display: grid; gap: 4px; }
.settings-preference strong { color: var(--color-text-soft); font-size: 12px; font-weight: 500; }
.settings-preference span { color: var(--color-text-muted); font-size: 11px; line-height: 1.4; }
.settings-toggle { position: relative; width: 38px; height: 22px; flex: 0 0 auto; padding: 0; border: 0; border-radius: var(--radius-chip); background: var(--color-border-strong); cursor: pointer; }
.settings-toggle i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-canvas); transition: transform var(--transition-fast); }
.settings-toggle.is-on { background: var(--color-brand); }
.settings-toggle.is-on i { transform: translateX(16px); }
.settings-actions { display: flex; justify-content: flex-end; gap: 8px; }
.settings-actions > button:not(.campaign-support-button) { min-height: 36px; padding: 0 14px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-control); background: var(--color-surface); color: var(--color-text-soft); font: inherit; font-size: 12px; cursor: pointer; }
.sidebar__utility.is-active { background: var(--color-brand-soft); color: var(--color-brand); }

@media (max-width: 1100px) {
  .campaign-support-module .campaign-support-stat-grid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .program-grid, .influencer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-content-grid { grid-template-columns: minmax(0, 1fr); }
  .help-support-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .campaign-support-toolbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .campaign-support-toolbar__actions, .campaign-support-toolbar__actions .campaign-support-button { width: 100%; }
  .campaign-support-toolbar__actions .campaign-support-button { justify-content: center; }
  .campaign-support-module .workspace-stat-grid, .campaign-support-module .campaign-support-stat-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campaign-support-filter-bar { align-items: stretch; flex-direction: column; }
  .campaign-support-filter-bar > *, .campaign-support-filter-bar .campaign-support-search-form, .campaign-support-filter-bar .campaign-support-button { width: 100%; }
  .campaign-support-select select { width: 100%; max-width: none; }
  .campaign-support-tabs { width: 100%; overflow-x: auto; }
  .campaign-support-tab { flex: 1 0 auto; }
  .program-grid, .influencer-grid, .help-category-grid { grid-template-columns: 1fr; }
  .help-search-hero { align-items: stretch; flex-direction: column; padding: 19px; }
  .help-search-hero .campaign-support-search-form { max-width: none; }
  .help-support-stack { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-rail { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .settings-rail__item { width: auto; flex: 0 0 auto; border-left: 0; border-bottom: 2px solid transparent; border-radius: var(--radius-control); white-space: nowrap; }
  .settings-rail__item.is-active { border-bottom-color: var(--color-brand); border-left-color: transparent; }
  .settings-form-grid, .settings-form-grid--regional { grid-template-columns: 1fr; }
  .settings-form-grid__wide { grid-column: auto; }
  .settings-actions { flex-direction: column-reverse; }
  .settings-actions > button { width: 100%; }
  .campaign-support-table-footbar { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 479px) {
  .campaign-support-module .workspace-stat-grid, .campaign-support-module .campaign-support-stat-grid--five { grid-template-columns: 1fr; }
  .campaign-support-tabs { justify-content: flex-start; }
  .campaign-support-tab { flex: 0 0 auto; padding-inline: 12px; }
}

/* Header utility interactions and language switcher */
.page-header__utility {
  position: relative;
}

.page-header__utility .has-indicator::after {
  content: attr(data-count);
}

.language-toggle {
  min-width: 42px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-chip);
  background: var(--color-surface);
  color: var(--color-text-soft);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  color: var(--color-brand);
  outline: none;
}

.header-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 12px);
  right: 0;
  width: min(330px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: 0 16px 36px rgba(17, 17, 17, .12);
}

.header-popover__header,
.header-popover__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
}

.header-popover__header {
  border-bottom: 1px solid var(--color-border);
}

.header-popover__header strong {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
}

.header-popover__header button {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.header-popover__header button:hover { color: var(--color-brand); }
.header-popover__header button svg { width: 14px; height: 14px; }
.header-popover__body { display: grid; }

.header-popover__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}

.header-popover__item:hover { background: var(--color-brand-soft); }
.header-popover__item > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.header-popover__item strong { overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.header-popover__item small { color: var(--color-text-muted); font-size: 11px; }
.header-popover__item > svg { width: 13px; height: 13px; color: var(--color-text-muted); }
.header-popover__item-icon { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; background: var(--color-border); color: var(--color-text-soft); }
.header-popover__item-icon--brand { background: var(--color-brand-soft); color: var(--color-brand); }
.header-popover__item-icon svg { width: 14px; height: 14px; }
.header-popover__footer { justify-content: flex-end; }
.header-popover__footer button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: var(--color-brand); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.header-popover__footer button svg { width: 13px; height: 13px; }
.header-popover__empty { display: flex; align-items: center; gap: 8px; min-height: 88px; padding: 15px; color: var(--color-text-muted); font-size: 11px; }
.header-popover__empty svg { width: 15px; height: 15px; color: var(--color-success); }

@media (max-width: 767px) {
  .header-popover { right: -4px; }
}

@media (max-width: 479px) {
  .page-header__utility { justify-content: flex-start; }
  .language-toggle { margin-left: auto; }
}

.attribution-channel-icon--coral {
  background: #ffe5e6;
  color: #ff525e;
}

.attribution-channel-icon--orange {
  background: #fff0dd;
  color: #f09a38;
}

.attribution-channel-icon--purple {
  background: #f0e9ff;
  color: #8664dd;
}

.attribution-channel-icon--blue {
  background: #e6f2ff;
  color: #5799dc;
}

.attribution-distribution-bar {
  display: block;
  height: 21px;
  overflow: hidden;
  border-radius: 3px;
  background: #f7f8fa;
}

.attribution-distribution-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.attribution-distribution-row:nth-child(1) .attribution-distribution-bar i {
  background: #ffdfe1;
}

.attribution-distribution-row:nth-child(2) .attribution-distribution-bar i {
  background: #ffe9d0;
}

.attribution-distribution-row:nth-child(3) .attribution-distribution-bar i {
  background: #eee5ff;
}

.attribution-distribution-row:nth-child(4) .attribution-distribution-bar i {
  background: #dcecff;
}

.attribution-distribution-row > strong {
  color: #344057;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.attribution-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.65fr) minmax(265px, .8fr);
  gap: 14px;
  align-items: stretch;
}

.attribution-rules-card,
.attribution-audit-card {
  overflow: hidden;
}

.attribution-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 16px 14px;
}

.attribution-add-rule {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 0 11px;
  border-color: #dfe2e6;
  border-radius: 6px;
  background: #ffffff;
  color: #263248;
  font-size: 11px;
  font-weight: 600;
}

.attribution-add-rule svg {
  width: 15px;
  height: 15px;
}

.attribution-add-rule:hover {
  border-color: #f0bfc0;
  background: #fffafa;
  color: var(--attribution-red);
}

.attribution-table-scroll {
  overflow-x: auto;
}

.attribution-table {
  width: 100%;
  min-width: 810px;
  border-collapse: collapse;
  table-layout: fixed;
}

.attribution-table th,
.attribution-table td {
  border-top: 1px solid #edf0f4;
  text-align: left;
  vertical-align: middle;
}

.attribution-table th {
  height: 37px;
  padding: 0 10px;
  color: #5f6c84;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.attribution-table td {
  height: 51px;
  padding: 0 10px;
  color: #29364d;
  font-size: 11px;
  white-space: nowrap;
}

.attribution-table th:first-child,
.attribution-table td:first-child {
  padding-left: 26px;
}

.attribution-col--name {
  width: 22%;
}

.attribution-col--channel {
  width: 14%;
}

.attribution-col--logic {
  width: 20%;
}

.attribution-col--lookback {
  width: 17%;
}

.attribution-col--priority {
  width: 10%;
}

.attribution-col--status {
  width: 12%;
}

.attribution-col--actions {
  width: 9%;
}

.attribution-cell--name strong {
  color: #29364d;
  font-size: 11px;
  font-weight: 600;
}

.attribution-channel-chip,
.attribution-status {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.attribution-channel-chip {
  min-height: 22px;
  padding: 0 10px;
}

.attribution-channel-chip--publisher {
  background: #def7e8;
  color: #36a56b;
}

.attribution-channel-chip--influencer {
  background: #eee8ff;
  color: #805fd4;
}

.attribution-channel-chip--paid {
  background: #e2f1ff;
  color: #4d91d6;
}

.attribution-status {
  gap: 6px;
  min-height: 22px;
  padding: 0 9px;
  background: #e9f9ef;
  color: #28a560;
}

.attribution-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25b461;
}

.attribution-cell--priority {
  padding-left: 23px !important;
}

.attribution-cell--actions {
  display: table-cell;
  height: 51px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.attribution-cell--actions button + button {
  margin-left: 13px;
}

.attribution-cell--actions button {
  display: inline-grid;
  width: 17px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2d3b54;
  cursor: pointer;
}

.attribution-cell--actions button:hover {
  color: var(--attribution-red);
}

.attribution-cell--actions svg {
  width: 15px;
  height: 15px;
}

.attribution-rules-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 23px;
  border-top: 1px solid #edf0f4;
  color: #728098;
  font-size: 11px;
}

.attribution-rules-footer svg {
  width: 13px;
  height: 13px;
  color: #8a96aa;
}

.attribution-audit-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.attribution-audit-card .attribution-card__header {
  padding: 18px 16px 0;
}

.attribution-audit-list {
  display: grid;
  margin-top: 14px;
  padding: 0 16px;
}

.attribution-audit-entry {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  min-height: 75px;
}

.attribution-audit-entry:not(:last-child)::before {
  position: absolute;
  top: 13px;
  bottom: -3px;
  left: 5px;
  width: 1px;
  background: #e4e8ef;
  content: "";
}

.attribution-audit-entry__marker {
  position: relative;
  z-index: 1;
  display: block;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border: 2px solid #b9c2d1;
  border-radius: 50%;
  background: #ffffff;
}

.attribution-audit-entry time,
.attribution-audit-entry strong,
.attribution-audit-entry small {
  display: block;
}

.attribution-audit-entry time {
  color: #78849a;
  font-size: 11px;
  line-height: 1.35;
}

.attribution-audit-entry strong {
  margin-top: 4px;
  color: #2a354a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.attribution-audit-entry small {
  margin-top: 3px;
  color: #78849a;
  font-size: 11px;
}

.attribution-audit-link {
  margin: auto 16px 16px;
  padding-top: 13px;
  border-top: 1px solid #edf0f4;
}

@media (max-width: 1199px) {
  .attribution-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attribution-distribution-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .attribution-bottom-grid {
    grid-template-columns: 1fr;
  }

  .attribution-audit-card {
    min-height: 340px;
  }
}

@media (max-width: 767px) {
  .is-attribution-page .page-header {
    min-height: 0;
  }

  .is-attribution-page .page-header__actions {
    gap: 13px;
  }

  .is-attribution-page .page-header__page-actions {
    width: 100%;
    justify-content: stretch;
  }

  .is-attribution-page .page-header__page-actions .button {
    flex: 1 1 0;
    min-width: 0;
  }

  .attribution-top-grid {
    grid-template-columns: 1fr;
  }

  .attribution-distribution-card {
    grid-column: auto;
  }

  .attribution-summary-metrics {
    grid-template-columns: 1.15fr 1fr 1fr;
  }

  .attribution-summary-metric {
    padding-inline: 9px;
  }

  .attribution-summary-metric:first-child {
    padding-left: 0;
  }

  .attribution-distribution-row {
    grid-template-columns: 118px minmax(0, 1fr) 32px;
  }

  .attribution-section-header {
    align-items: flex-start;
  }
}

@media (max-width: 479px) {
  .is-attribution-page .page-header__page-actions {
    flex-direction: column;
  }

  .is-attribution-page .page-header__page-actions .button {
    width: 100%;
  }

  .attribution-summary-metrics {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .attribution-summary-metric,
  .attribution-summary-metric:first-child {
    padding: 0;
    border-left: 0;
  }

  .attribution-section-header {
    display: grid;
  }

  .attribution-add-rule {
    justify-self: start;
  }

  .attribution-distribution-row {
    grid-template-columns: 110px minmax(0, 1fr) 30px;
    gap: 7px;
  }
}

/* Help center / Help center */
body.is-help-center-page {
  --help-red: #e60000;
  --help-red-dark: #cd0200;
  --help-soft-red: #fde8e8;
  --help-selected-red: #ff312e;
  --help-border: #e5e7eb;
  --help-text: #111111;
  --help-text-secondary: #374151;
  --help-text-muted: #4b5563;
  background: #ffffff;
}

.is-help-center-page .page-header {
  min-height: 84px;
  margin-bottom: 17px;
}

.is-help-center-page .scope-line,
.is-help-center-page .page-header__filters,
.is-help-center-page .page-header__page-actions {
  display: none;
}

.is-help-center-page .page-header__actions {
  width: auto;
  flex: 0 0 auto;
  gap: 0;
  padding-top: 0;
}

.is-help-center-page .page-header__utility {
  padding-top: 0;
}

.is-help-center-page .breadcrumb [data-breadcrumb-parent] {
  color: var(--help-red);
  font-weight: 600;
}

.is-help-center-page .breadcrumb strong {
  color: var(--help-text);
}

.is-help-center-page .page-header h1 {
  color: var(--help-text);
  font-size: 30px;
  letter-spacing: -0.9px;
}

.is-help-center-page .page-header p {
  color: var(--help-text-secondary);
  font-size: 13px;
}

.is-help-center-page .sidebar__utility[data-help-center-utility] {
  position: relative;
  background: var(--help-soft-red);
  color: var(--help-selected-red);
  font-weight: 700;
}

.is-help-center-page .sidebar__utility[data-help-center-utility]::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--help-selected-red);
  content: "";
}

.is-help-center-page .sidebar__utility[data-help-center-utility]:hover {
  background: var(--help-soft-red);
  color: var(--help-selected-red);
}

.help-center-page[hidden] {
  display: none;
}

.help-center-page {
  display: grid;
  gap: 23px;
  color: var(--help-text);
}

.help-center-search-shell {
  width: min(100%, 820px);
}

.help-center-search {
  display: flex;
  height: 46px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #d5dbe5;
  border-radius: 7px;
  background: #ffffff;
  color: var(--help-text-muted);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.help-center-search:focus-within {
  border-color: var(--focus-accent);
  box-shadow: none;
}

.help-center-search > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #1f2937;
  stroke-width: 2;
}

.help-center-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--help-text);
  font-size: 13px;
}

.help-center-search input::placeholder {
  color: var(--help-text-muted);
  opacity: 1;
}

.help-center-search__hint {
  color: var(--help-text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.help-center-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 322px;
  gap: 22px;
  align-items: start;
}

.help-center-main,
.help-center-aside {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.help-center-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.help-center-card,
.help-center-category {
  border: 1px solid var(--help-border);
  border-radius: 8px;
  background: #ffffff;
}

.help-center-category {
  display: grid;
  min-height: 211px;
  align-content: start;
  padding: 22px 20px 18px;
  color: var(--help-text);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.help-center-category:hover {
  border-color: #f1bfc1;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.05);
  transform: translateY(-1px);
}

.help-center-category__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 17px;
}

.help-center-category__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
}

.help-center-category__icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.help-center-category__arrow {
  width: 17px;
  height: 17px;
  margin-top: 6px;
  color: var(--help-text);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.help-center-category:hover .help-center-category__arrow {
  color: var(--help-red);
  transform: translateX(3px);
}

.help-center-category > strong {
  color: var(--help-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.help-center-category__description {
  min-height: 48px;
  margin-top: 7px;
  color: var(--help-text-secondary);
  font-size: 11px;
  line-height: 1.55;
}

.help-center-category__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: var(--help-text-secondary);
  font-size: 11px;
  font-weight: 500;
}

.help-center-category__meta b {
  font-weight: 600;
}

.help-center-category__meta i {
  color: #9ca3af;
  font-style: normal;
}

.help-center-category--coral .help-center-category__icon {
  background: #fff0f0;
  color: var(--help-red);
}

.help-center-category--green .help-center-category__icon {
  background: #eaf8ef;
  color: #1e9b69;
}

.help-center-category--purple .help-center-category__icon {
  background: #f2ebff;
  color: #7a3ffc;
}

.help-center-articles-card {
  min-width: 0;
  padding: 19px 20px 13px;
}

.help-center-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.help-center-section-header--stacked {
  display: block;
}

.help-center-section-header h2 {
  margin: 0;
  color: var(--help-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.help-center-section-header p {
  margin: 7px 0 0;
  color: var(--help-text-secondary);
  font-size: 11px;
  line-height: 1.55;
}

.help-center-link,
.help-center-status-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  background: #ffffff;
  color: var(--help-text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.help-center-link:hover,
.help-center-status-link:hover {
  border-color: #f1bfc1;
  background: #fffafa;
  color: var(--help-red);
}

.help-center-link svg,
.help-center-status-link svg {
  width: 14px;
  height: 14px;
}

.help-center-article-list {
  margin-top: 12px;
}

.help-center-article {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid #edf0f3;
}

.help-center-article__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #fff0f0;
  color: var(--help-red);
}

.help-center-article__icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.help-center-article__copy {
  min-width: 0;
}

.help-center-article__copy strong {
  display: block;
  overflow: hidden;
  color: var(--help-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-center-article__copy p {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--help-text-secondary);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-center-article time {
  display: grid;
  min-width: 82px;
  gap: 2px;
  color: var(--help-text-secondary);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.help-center-article time span {
  color: var(--help-text-muted);
}

.help-center-load-more {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  border: 1px solid #e6e9ed;
  border-radius: 6px;
  background: #ffffff;
  color: var(--help-text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.help-center-load-more:hover:not(:disabled) {
  border-color: #f1bfc1;
  background: #fffafa;
  color: var(--help-red);
}

.help-center-load-more:disabled {
  cursor: default;
  opacity: 0.55;
}

.help-center-load-more svg {
  width: 15px;
  height: 15px;
}

.help-center-empty {
  display: grid;
  min-height: 154px;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-top: 1px solid #edf0f3;
  color: var(--help-text-secondary);
  text-align: center;
}

.help-center-empty strong {
  color: var(--help-text);
  font-size: 12px;
}

.help-center-empty span {
  font-size: 11px;
}

.help-center-support-card,
.help-center-status-card {
  padding: 21px 20px;
}

.help-center-support-hours {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 14px;
  padding: 13px 12px;
  border-radius: 7px;
  background: #fff2f2;
  color: var(--help-text-secondary);
}

.help-center-support-hours__icon {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  color: var(--help-text-secondary);
}

.help-center-support-hours__icon svg {
  width: 17px;
  height: 17px;
}

.help-center-support-hours > span:last-child {
  display: grid;
  gap: 5px;
}

.help-center-support-hours strong {
  color: var(--help-text);
  font-size: 11px;
  font-weight: 700;
}

.help-center-support-hours small {
  color: var(--help-text-secondary);
  font-size: 11px;
  line-height: 1.4;
}

.help-center-support-actions {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.is-help-center-page .help-center-support-actions .button {
  width: 100%;
  min-height: 36px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.is-help-center-page .help-center-support-actions .button--primary {
  border-color: var(--help-red);
  background: var(--help-red);
  box-shadow: none;
  color: #ffffff;
}

.is-help-center-page .help-center-support-actions .button--primary:hover {
  border-color: var(--help-red-dark);
  background: var(--help-red-dark);
  box-shadow: none;
}

.is-help-center-page .help-center-support-actions .button--secondary {
  border-color: #dfe3e8;
  background: #ffffff;
  color: var(--help-text);
}

.is-help-center-page .help-center-support-actions .button--secondary:hover {
  border-color: #f1bfc1;
  color: var(--help-red);
}

.help-center-support-actions .button svg {
  width: 15px;
  height: 15px;
}

.help-center-status-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
}

.help-center-status-summary__icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 8px;
  background: #e9f8ee;
  color: #1e9b69;
}

.help-center-status-summary__icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.help-center-status-summary > span:last-child {
  display: grid;
  gap: 3px;
}

.help-center-status-summary strong {
  color: var(--help-text);
  font-size: 11px;
  font-weight: 700;
}

.help-center-status-summary small {
  color: var(--help-text-secondary);
  font-size: 11px;
}

.help-center-status-list {
  display: grid;
  gap: 13px;
  margin-top: 19px;
}

.help-center-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--help-text);
  font-size: 11px;
}

.help-center-status-row__name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.help-center-status-row__name i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #1eaf69;
}

.help-center-status-row strong {
  color: #1e9b69;
  font-size: 11px;
  font-weight: 600;
}

.help-center-status-link {
  width: 100%;
  min-height: 37px;
  margin-top: 19px;
  font-size: 11px;
}

.is-help-center-page .page-footer {
  margin-top: 1px;
  border-top-color: #edf0f3;
  color: var(--help-text-muted);
  font-size: 11px;
}

@media (max-width: 1199px) {
  .help-center-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .help-center-category {
    padding-inline: 16px;
  }
}

@media (max-width: 980px) {
  .help-center-layout {
    grid-template-columns: 1fr;
  }

  .help-center-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 767px) {
  .is-help-center-page .page-header {
    min-height: 0;
  }

  .is-help-center-page .page-header__actions {
    width: auto;
    justify-self: end;
  }

  .help-center-search-shell {
    width: 100%;
  }

  .help-center-search__hint {
    display: none;
  }

  .help-center-category-grid,
  .help-center-aside {
    grid-template-columns: 1fr;
  }

  .help-center-category {
    min-height: 0;
  }

  .help-center-article {
    grid-template-columns: 31px minmax(0, 1fr);
  }

  .help-center-article time {
    display: none;
  }

  .help-center-article__copy p {
    white-space: normal;
  }
}

@media (max-width: 479px) {
  .help-center-articles-card,
  .help-center-support-card,
  .help-center-status-card {
    padding-inline: 15px;
  }

  .help-center-section-header {
    display: grid;
  }

  .help-center-link {
    justify-self: start;
  }
}

/* Integrations & Settings / API credentials */
body.is-api-credentials-page {
  --api-credentials-red: #e60000;
  --api-credentials-red-dark: #cd0200;
  --api-credentials-soft-red: #fde8e8;
  --api-credentials-selected-red: #ff312e;
  --api-credentials-border: #e5e7eb;
  --api-credentials-line: #edf0f3;
  --api-credentials-text: #111111;
  --api-credentials-text-secondary: #374151;
  --api-credentials-text-muted: #4b5563;
  background: #ffffff;
}

.is-api-credentials-page .page-header {
  min-height: 104px;
  margin-bottom: 18px;
}

.is-api-credentials-page .scope-line,
.is-api-credentials-page .page-header__filters {
  display: none;
}

.is-api-credentials-page .page-header__actions {
  width: auto;
  flex: 0 0 auto;
  gap: 20px;
  padding-top: 0;
}

.is-api-credentials-page .page-header__utility {
  padding-top: 0;
}

.is-api-credentials-page .page-header__page-actions {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.is-api-credentials-page .breadcrumb [data-breadcrumb-parent] {
  color: var(--api-credentials-red);
  font-weight: 600;
}

.is-api-credentials-page .breadcrumb strong,
.is-api-credentials-page .page-header h1 {
  color: var(--api-credentials-text);
}

.is-api-credentials-page .page-header h1 {
  font-size: 30px;
  letter-spacing: -0.9px;
}

.is-api-credentials-page .page-header p {
  max-width: 650px;
  color: var(--api-credentials-text-secondary);
  font-size: 13px;
}

.is-api-credentials-page .nav-item[data-nav-item="settings"] {
  background: var(--api-credentials-red);
  color: #ffffff;
}

.is-api-credentials-page .nav-item[data-nav-item="settings"]:hover {
  background: var(--api-credentials-red-dark);
  color: #ffffff;
}

.is-api-credentials-page .nav-item[data-nav-item="settings"] .nav-item__chevron {
  color: #ffffff;
}

.is-api-credentials-page .nav-child[data-nav-child="api-credentials"] {
  background: var(--api-credentials-soft-red);
  box-shadow: inset 3px 0 0 var(--api-credentials-selected-red);
  color: var(--api-credentials-selected-red);
  font-weight: 600;
}

.api-credentials-page[hidden] {
  display: none;
}

.api-credentials-page {
  display: grid;
  gap: 18px;
  color: var(--api-credentials-text);
}

.api-credentials-environment {
  display: grid;
  gap: 6px;
  min-width: 214px;
}

.api-credentials-environment > span {
  color: var(--api-credentials-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.api-credentials-environment__toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 36px;
  overflow: hidden;
  border: 1px solid var(--api-credentials-border);
  border-radius: 7px;
  background: #ffffff;
}

.api-credentials-environment__toggle button {
  min-width: 0;
  padding: 0 13px;
  background: #ffffff;
  color: var(--api-credentials-text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.api-credentials-environment__toggle button:hover,
.api-credentials-environment__toggle button.is-active {
  background: #fff3f3;
  color: var(--api-credentials-red);
}

.is-api-credentials-page .api-credentials-page-actions > .button {
  min-width: 146px;
  height: 36px;
  border-radius: 6px;
  background: var(--api-credentials-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

.is-api-credentials-page .api-credentials-page-actions > .button:hover {
  background: var(--api-credentials-red-dark);
}

.api-credentials-page-actions > .button svg {
  width: 15px;
  height: 15px;
}

.api-credentials-security {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 15px;
  padding: 13px 17px;
  border-radius: 7px;
  background: #fff2f2;
}

.api-credentials-security__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--api-credentials-red);
}

.api-credentials-security__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.api-credentials-security > div {
  min-width: 0;
  flex: 1;
}

.api-credentials-security strong {
  display: block;
  color: var(--api-credentials-text);
  font-size: 12px;
  font-weight: 700;
}

.api-credentials-security p {
  margin: 2px 0 0;
  color: var(--api-credentials-text-secondary);
  font-size: 11px;
  line-height: 1.45;
}

.api-credentials-text-link,
.api-credentials-webhook-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--api-credentials-text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.api-credentials-text-link:hover,
.api-credentials-webhook-help:hover {
  color: var(--api-credentials-red);
}

.api-credentials-text-link svg,
.api-credentials-webhook-help svg {
  width: 14px;
  height: 14px;
}

.api-credentials-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 345px;
  gap: 24px;
  align-items: start;
}

.api-credentials-card {
  min-width: 0;
  border: 1px solid var(--api-credentials-border);
  border-radius: 7px;
  background: #ffffff;
}

.api-credentials-card__header {
  display: flex;
  min-height: 69px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 17px;
}

.api-credentials-card__header h2 {
  margin: 0;
  color: var(--api-credentials-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.api-credentials-card__header p {
  max-width: 220px;
  margin: 8px 0 0;
  color: var(--api-credentials-text-secondary);
  font-size: 11px;
  line-height: 1.45;
}

.api-credentials-table-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.api-credentials-search {
  display: flex;
  width: 258px;
  height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--api-credentials-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--api-credentials-text-muted);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.api-credentials-search:focus-within {
  border-color: var(--focus-accent);
  box-shadow: none;
}

.api-credentials-search > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke-width: 2;
}

.api-credentials-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--api-credentials-text);
  font-size: 11px;
}

.api-credentials-search input::placeholder {
  color: var(--api-credentials-text-muted);
  opacity: 1;
}

.api-credentials-filter-wrap {
  position: relative;
}

.api-credentials-outline-button {
  display: inline-flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--api-credentials-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--api-credentials-text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.api-credentials-outline-button:hover,
.api-credentials-outline-button[aria-expanded="true"] {
  border-color: #f0bfc0;
  background: #fffafa;
  color: var(--api-credentials-red);
}

.api-credentials-outline-button svg {
  width: 15px;
  height: 15px;
}

.api-credentials-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: 180px;
  padding: 12px;
  border: 1px solid var(--api-credentials-border);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.12);
}

.api-credentials-filter-menu label {
  display: grid;
  gap: 6px;
}

.api-credentials-filter-menu label > span {
  color: var(--api-credentials-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.api-credentials-filter-menu select {
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--api-credentials-border);
  border-radius: 5px;
  outline: 0;
  background: #ffffff;
  color: var(--api-credentials-text-secondary);
  cursor: pointer;
  font-size: 11px;
}

.api-credentials-filter-menu select:focus-visible,
.api-credentials-table button:focus-visible,
.api-credentials-webhook button:focus-visible,
.api-credentials-outline-button:focus-visible,
.api-credentials-text-link:focus-visible,
.api-credentials-webhook-help:focus-visible,
.api-credentials-environment__toggle button:focus-visible {
  outline: 2px solid var(--api-credentials-red);
  outline-offset: 2px;
}

.api-credentials-table-scroll {
  overflow-x: auto;
}

.api-credentials-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  table-layout: fixed;
}

.api-credentials-table th,
.api-credentials-table td {
  border-top: 1px solid var(--api-credentials-line);
  text-align: left;
  vertical-align: middle;
}

.api-credentials-table th {
  height: 41px;
  padding: 0 10px;
  background: #fafbfc;
  color: var(--api-credentials-text-muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.api-credentials-table td {
  height: 65px;
  padding: 8px 10px;
  color: var(--api-credentials-text-secondary);
  font-size: 11px;
}

.api-credentials-table th:first-child,
.api-credentials-table td:first-child {
  padding-left: 17px;
}

.api-credentials-table th:nth-child(1),
.api-credentials-table td:nth-child(1) { width: 23%; }

.api-credentials-table th:nth-child(2),
.api-credentials-table td:nth-child(2) { width: 21%; }

.api-credentials-table th:nth-child(3),
.api-credentials-table td:nth-child(3),
.api-credentials-table th:nth-child(4),
.api-credentials-table td:nth-child(4) { width: 13%; }

.api-credentials-table th:nth-child(5),
.api-credentials-table td:nth-child(5) { width: 14%; }

.api-credentials-table th:nth-child(6),
.api-credentials-table td:nth-child(6) { width: 10%; }

.api-credentials-table th:nth-child(7),
.api-credentials-table td:nth-child(7) { width: 6%; }

.api-credentials-table td > strong,
.api-credentials-table td > small {
  display: block;
}

.api-credentials-table td > strong {
  color: var(--api-credentials-text-secondary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.api-credentials-table td > small {
  margin-top: 3px;
  color: var(--api-credentials-text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.api-credentials-key-copy,
.api-credentials-created-by {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.api-credentials-key-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: #f2f4f7;
  color: #687386;
}

.api-credentials-key-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.api-credentials-key-copy > div,
.api-credentials-created-by > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.api-credentials-key-copy strong,
.api-credentials-created-by strong {
  overflow: hidden;
  color: var(--api-credentials-text-secondary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-credentials-key-copy small,
.api-credentials-created-by small {
  overflow: hidden;
  color: var(--api-credentials-text-muted);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-credentials-key-copy small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.api-credentials-key-copy small button {
  display: inline-grid;
  width: 15px;
  height: 15px;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--api-credentials-text-muted);
  cursor: pointer;
}

.api-credentials-key-copy small button:hover {
  color: var(--api-credentials-red);
}

.api-credentials-key-copy small button svg {
  width: 13px;
  height: 13px;
}

.api-credentials-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: #eef0f3;
  color: #586272;
  font-size: 11px;
  font-weight: 700;
}

.api-credentials-scopes {
  display: grid;
  gap: 2px;
  color: var(--api-credentials-text-secondary);
  font-size: 11px;
  line-height: 1.35;
}

.api-credentials-scope-extra {
  color: var(--api-credentials-text-muted);
}

.api-credentials-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.api-credentials-status i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}

.api-credentials-status--active {
  background: #e7f8ed;
  color: #1d995e;
}

.api-credentials-status--inactive {
  background: #f0f2f5;
  color: #5f6876;
}

.api-credentials-cell--actions {
  text-align: right !important;
}

.api-credentials-cell--actions button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--api-credentials-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--api-credentials-text-secondary);
  cursor: pointer;
}

.api-credentials-cell--actions button:hover {
  border-color: #f0bfc0;
  color: var(--api-credentials-red);
}

.api-credentials-cell--actions button svg {
  width: 15px;
  height: 15px;
}

.api-credentials-empty {
  height: 180px !important;
  text-align: center !important;
}

.api-credentials-empty strong,
.api-credentials-empty span {
  display: block;
}

.api-credentials-empty strong {
  color: var(--api-credentials-text);
  font-size: 12px;
}

.api-credentials-empty span {
  margin-top: 5px;
  color: var(--api-credentials-text-muted);
  font-size: 11px;
}

.api-credentials-table-footer {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 17px;
  border-top: 1px solid var(--api-credentials-line);
  color: var(--api-credentials-text-muted);
  font-size: 11px;
}

.api-credentials-pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.api-credentials-pagination button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--api-credentials-text-secondary);
  cursor: pointer;
  font-size: 13px;
}

.api-credentials-pagination button:hover:not(:disabled),
.api-credentials-pagination button.is-current {
  border-color: #f2c6c6;
  background: var(--api-credentials-soft-red);
  color: var(--api-credentials-red);
}

.api-credentials-pagination button:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.api-credentials-webhooks-card {
  min-height: 575px;
  padding-bottom: 16px;
}

.api-credentials-card__header--webhooks {
  align-items: flex-start;
  padding-bottom: 15px;
}

.api-credentials-add-button {
  height: 34px;
  padding-inline: 10px;
  font-size: 11px;
}

.api-credentials-add-button svg {
  width: 14px;
  height: 14px;
}

.api-credentials-webhook-list {
  display: grid;
}

.api-credentials-webhook {
  display: grid;
  gap: 10px;
  padding: 16px 17px 14px;
  border-top: 1px solid var(--api-credentials-line);
}

.api-credentials-webhook__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.api-credentials-webhook__title > strong {
  color: var(--api-credentials-text-secondary);
  font-size: 11px;
  font-weight: 600;
}

.api-credentials-webhook__url {
  display: flex;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  background: #fafbfc;
}

.api-credentials-webhook__url > span {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  color: var(--api-credentials-text-secondary);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-credentials-webhook__url button {
  display: inline-grid;
  width: 20px;
  height: 24px;
  flex: 0 0 20px;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--api-credentials-text-muted);
  cursor: pointer;
}

.api-credentials-webhook__url button:hover {
  color: var(--api-credentials-red);
}

.api-credentials-webhook__url button svg {
  width: 14px;
  height: 14px;
}

.api-credentials-webhook__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.api-credentials-webhook__actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  color: var(--api-credentials-text-secondary);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
}

.api-credentials-webhook__actions button:hover {
  color: var(--api-credentials-red);
}

.api-credentials-webhook__actions button.is-danger {
  color: var(--api-credentials-red);
}

.api-credentials-webhook__actions button.is-danger:hover {
  color: var(--api-credentials-red-dark);
}

.api-credentials-webhook__actions button svg {
  width: 14px;
  height: 14px;
}

.api-credentials-webhook-help {
  margin: 16px 17px 0;
  font-size: 11px;
}

@media (max-width: 1199px) {
  .api-credentials-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
  }

  .api-credentials-search {
    width: 210px;
  }
}

@media (max-width: 980px) {
  .api-credentials-layout {
    grid-template-columns: 1fr;
  }

  .api-credentials-webhooks-card {
    min-height: 0;
  }

  .api-credentials-webhook-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-credentials-webhook {
    border-right: 1px solid var(--api-credentials-line);
  }

  .api-credentials-webhook:nth-child(-n + 2) {
    border-top: 1px solid var(--api-credentials-line);
  }
}

@media (max-width: 767px) {
  .is-api-credentials-page .page-header {
    min-height: 0;
  }

  .is-api-credentials-page .page-header__actions {
    display: grid;
    gap: 14px;
    padding-top: 16px;
  }

  .is-api-credentials-page .page-header__page-actions {
    align-items: stretch;
    gap: 12px;
  }

  .api-credentials-environment {
    min-width: 0;
    flex: 1;
  }

  .is-api-credentials-page .api-credentials-page-actions > .button {
    align-self: end;
    min-width: 134px;
  }

  .api-credentials-security {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .api-credentials-security .api-credentials-text-link {
    margin-left: 53px;
  }

  .api-credentials-card__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .api-credentials-table-tools {
    width: 100%;
  }

  .api-credentials-search {
    width: auto;
    flex: 1;
  }

  .api-credentials-webhook-list {
    grid-template-columns: 1fr;
  }

  .api-credentials-webhook,
  .api-credentials-webhook:nth-child(-n + 2) {
    border-right: 0;
    border-top: 1px solid var(--api-credentials-line);
  }
}

@media (max-width: 479px) {
  .is-api-credentials-page .page-header__page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .is-api-credentials-page .api-credentials-page-actions > .button {
    width: 100%;
  }

  .api-credentials-security {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .api-credentials-security .api-credentials-text-link {
    grid-column: 2;
    margin-left: 0;
    justify-self: start;
  }

  .api-credentials-table-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 11px;
  }

  .api-credentials-pagination {
    width: 100%;
    justify-content: flex-end;
  }

  .api-credentials-card__header--webhooks {
    align-items: flex-start;
  }

  .api-credentials-add-button {
    align-self: flex-start;
  }
}

/* Commission & Rules / Invoices */
body.is-invoices-page {
  --invoices-red: #e60000;
  --invoices-red-dark: #cd0200;
  --invoices-soft-red: #fde8e8;
  --invoices-selected-red: #ff312e;
  --invoices-border: #dfe4ea;
  --invoices-text-strong: #1f2937;
  --invoices-text: #374151;
  --invoices-text-muted: #4b5563;
  --invoices-text-disabled: #4b5563;
  --invoices-focus: #e60000;
  background: #ffffff;
}

.is-invoices-page .page-header {
  min-height: 92px;
  margin-bottom: 14px;
}

.is-invoices-page .scope-line,
.is-invoices-page .page-header__filters {
  display: none;
}

.is-invoices-page .page-header__actions {
  width: auto;
  flex: 0 0 auto;
  gap: 15px;
  padding-top: 0;
}

.is-invoices-page .page-header__utility {
  padding-top: 0;
}

.is-invoices-page .breadcrumb [data-breadcrumb-parent] {
  color: var(--invoices-red);
  font-weight: 600;
}

.is-invoices-page .breadcrumb strong {
  color: var(--invoices-text-strong);
}

.is-commission-invoices-page .nav-item[data-nav-item="commission-rules"],
.is-finance-invoices-page .nav-item[data-nav-item="finance"] {
  background: var(--invoices-red);
  color: #ffffff;
}

.is-commission-invoices-page .nav-item[data-nav-item="commission-rules"]:hover,
.is-finance-invoices-page .nav-item[data-nav-item="finance"]:hover {
  background: var(--invoices-red-dark);
  color: #ffffff;
}

.is-commission-invoices-page .nav-item[data-nav-item="commission-rules"] .nav-item__chevron,
.is-finance-invoices-page .nav-item[data-nav-item="finance"] .nav-item__chevron {
  color: #ffffff;
}

.is-commission-invoices-page .nav-child[data-nav-child="commission-invoices"],
.is-finance-invoices-page .nav-child[data-nav-child="invoices"] {
  background: var(--invoices-soft-red);
  box-shadow: inset 3px 0 0 var(--invoices-selected-red);
  color: var(--invoices-selected-red);
  font-weight: 600;
}

.invoices-page[hidden] {
  display: none;
}

.invoices-page {
  display: grid;
  gap: 14px;
  color: var(--invoices-text);
}

.invoices-card {
  overflow: hidden;
  border: 1px solid var(--invoices-border);
  border-radius: 6px;
  background: #ffffff;
}

.invoices-page__topbar {
  display: flex;
  align-items: center;
  padding: 16px 18px 0;
}

.invoices-date-range {
  position: relative;
  display: inline-flex;
  width: 204px;
  min-height: 38px;
  align-items: center;
}

.invoices-date-range svg {
  position: absolute;
  left: 10px;
  z-index: 1;
  width: 16px;
  height: 16px;
  color: var(--invoices-text-muted);
  pointer-events: none;
}

.invoices-date-range select,
.invoices-filter select,
.invoices-search input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--invoices-border);
  border-radius: 5px;
  outline: none;
  background: #ffffff;
  color: var(--invoices-text);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.35;
}

.invoices-date-range select {
  padding-left: 33px;
}

.invoices-date-range select:focus-visible,
.invoices-filter select:focus-visible,
.invoices-search input:focus-visible,
.invoices-checkbox input:focus-visible + span,
.invoices-pagination button:focus-visible,
.invoices-details-button:focus-visible,
.invoices-download-button:focus-visible {
  outline: 2px solid var(--invoices-focus);
  outline-offset: 2px;
}

.invoices-page__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 21px 18px 15px;
}

.invoices-page__heading .eyebrow {
  color: var(--invoices-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.invoices-page__heading h2 {
  margin: 4px 0 0;
  color: var(--invoices-text-strong);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.35px;
  line-height: 1.2;
}

.invoices-page__heading p {
  margin: 6px 0 0;
  color: var(--invoices-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.invoices-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 1fr)) minmax(180px, 1.2fr);
  gap: 9px;
  align-items: end;
  padding: 0 18px 16px;
}

.invoices-filter,
.invoices-search {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.invoices-filter > span {
  color: var(--invoices-text-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.invoices-search {
  position: relative;
}

.invoices-search svg {
  position: absolute;
  top: 29px;
  left: 10px;
  width: 16px;
  height: 16px;
  color: var(--invoices-text-muted);
  pointer-events: none;
}

.invoices-search input {
  padding-left: 34px;
}

.invoices-table-scroll {
  overflow-x: auto;
  border-top: 1px solid var(--invoices-border);
}

.invoices-table {
  width: 100%;
  min-width: 1260px;
  border-collapse: collapse;
  table-layout: fixed;
}

.invoices-table th,
.invoices-table td {
  border-top: 1px solid #e8ecf0;
  text-align: left;
  vertical-align: middle;
}

.invoices-table th {
  height: 43px;
  padding: 0 10px;
  background: #fafbfc;
  color: var(--invoices-text-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.invoices-table td {
  min-height: 58px;
  padding: 12px 10px;
  color: var(--invoices-text);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.invoices-table th:first-child,
.invoices-table td:first-child {
  padding-left: 18px;
}

.invoices-table td strong {
  color: var(--invoices-text-strong);
  font-size: 12px;
  font-weight: 600;
}

.invoices-table tbody tr {
  transition: background 160ms ease;
}

.invoices-table tbody tr:hover {
  background: #fffafa;
}

.invoices-col--check { width: 4%; }
.invoices-col--date { width: 14%; }
.invoices-col--id { width: 14%; }
.invoices-col--brand { width: 11%; }
.invoices-col--method { width: 14%; }
.invoices-col--type { width: 14%; }
.invoices-col--description { width: 17%; }
.invoices-col--amount { width: 8%; }
.invoices-col--status { width: 8%; }
.invoices-col--actions { width: 12%; }

.invoices-cell--date,
.invoices-cell--description {
  color: var(--invoices-text);
}

.invoices-cell--description {
  overflow: hidden;
  text-overflow: ellipsis;
}

.invoices-method {
  color: var(--invoices-text);
}

.invoices-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.invoices-status i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
}

.invoices-status--paid {
  background: #e8f7ee;
  color: #1f7a4d;
}

.invoices-status--paid i {
  background: #239b5b;
}

.invoices-status--pending {
  background: #fff3df;
  color: #8a5417;
}

.invoices-status--pending i {
  background: #d88920;
}

.invoices-status--failed {
  background: #fce8e8;
  color: #a43232;
}

.invoices-status--failed i {
  background: #c43f3f;
}

.invoices-checkbox {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  cursor: pointer;
}

.invoices-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.invoices-checkbox span {
  display: block;
  width: 15px;
  height: 15px;
  border: 1px solid #aeb8c5;
  border-radius: 3px;
  background: #ffffff;
}

.invoices-checkbox input:checked + span {
  border-color: var(--invoices-red);
  background: var(--invoices-red);
  box-shadow: inset 0 0 0 3px #ffffff;
}

.invoices-checkbox input:indeterminate + span {
  border-color: var(--invoices-red);
  background: linear-gradient(var(--invoices-red), var(--invoices-red)) center / 8px 2px no-repeat #ffffff;
}

.invoices-cell--actions {
  white-space: nowrap;
}

.invoices-details-button,
.invoices-download-button {
  display: inline-grid;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3b6b6;
  border-radius: 5px;
  background: #ffffff;
  color: #7f1d1d;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.invoices-details-button {
  min-width: 58px;
  padding: 0 8px;
}

.invoices-download-button {
  width: 30px;
  margin-left: 6px;
  border-color: var(--invoices-border);
  color: var(--invoices-text);
}

.invoices-download-button svg {
  width: 15px;
  height: 15px;
}

.invoices-details-button:hover,
.invoices-download-button:hover {
  border-color: var(--invoices-red);
  color: var(--invoices-red);
}

.invoices-empty {
  height: 180px !important;
  color: var(--invoices-text-muted) !important;
  text-align: center !important;
}

.invoices-empty strong,
.invoices-empty span {
  display: block;
}

.invoices-empty strong {
  color: var(--invoices-text-strong);
  font-size: 13px;
}

.invoices-empty span {
  margin-top: 6px;
  color: var(--invoices-text-muted);
  font-size: 11px;
}

.invoices-table-footer {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-top: 1px solid var(--invoices-border);
  color: var(--invoices-text-muted);
  font-size: 11px;
}

.invoices-pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.invoices-pagination button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--invoices-text);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
}

.invoices-pagination button:hover:not(:disabled),
.invoices-pagination button.is-current {
  border-color: #f0b7b7;
  background: var(--invoices-soft-red);
  color: var(--invoices-red);
}

.invoices-pagination button:disabled {
  color: var(--invoices-text-disabled);
  cursor: not-allowed;
}

.invoices-pagination > span {
  padding: 0 2px;
  color: var(--invoices-text-muted);
  font-size: 12px;
}

@media (max-width: 1199px) {
  .invoices-toolbar {
    grid-template-columns: repeat(3, minmax(128px, 1fr)) minmax(180px, 1.2fr);
  }

  .invoices-search {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .is-invoices-page .page-header {
    min-height: 0;
  }

  .invoices-page__heading {
    padding-top: 18px;
  }

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

  .invoices-search {
    grid-column: span 2;
  }

  .invoices-table-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 13px;
  }

  .invoices-pagination {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 479px) {
  .invoices-page__topbar {
    padding-inline: 14px;
  }

  .invoices-page__heading {
    padding-inline: 14px;
  }

  .invoices-page__heading h2 {
    font-size: 18px;
  }

  .invoices-toolbar {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }

  .invoices-search {
    grid-column: auto;
  }

  .invoices-table-footer {
    padding-inline: 14px;
  }
}

/* Products & Assets / Coupons routed page */
body.is-products-coupons-page {
  --coupons-red: #e60000;
  --coupons-red-dark: #cd0200;
  --coupons-soft-red: #fde8e8;
  --coupons-border: #e5e7eb;
  --coupons-border-strong: #d1d5db;
  --coupons-text-strong: #1f2937;
  --coupons-text: #374151;
  --coupons-text-muted: #4b5563;
}

.is-products-coupons-page .page-header {
  min-height: 36px;
  margin-bottom: 14px;
}

.is-products-coupons-page .page-header h1,
.is-products-coupons-page .page-header p,
.is-products-coupons-page .scope-line,
.is-products-coupons-page .page-header__filters,
.is-products-coupons-page .page-header__page-actions {
  display: none;
}

.is-products-coupons-page .page-header__actions {
  padding-top: 0;
}

.is-products-coupons-page .breadcrumb {
  margin-bottom: 0;
}

.is-products-coupons-page .breadcrumb [data-breadcrumb-parent] {
  color: var(--coupons-red);
  font-weight: 600;
}

.is-products-coupons-page .breadcrumb strong {
  color: var(--coupons-text-strong);
}

.products-coupons-page {
  gap: 18px;
}

.products-coupon-tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--coupons-border);
  border-radius: 7px;
  background: #ffffff;
}

.products-coupon-tab {
  min-width: 154px;
  min-height: 42px;
  padding: 0 18px;
  border-right: 1px solid var(--coupons-border);
  background: #ffffff;
  color: var(--coupons-text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.products-coupon-tab:last-child {
  border-right: 0;
}

.products-coupon-tab:hover,
.products-coupon-tab:focus-visible {
  background: #fffafa;
  color: var(--coupons-red);
}

.products-coupon-tab.is-active {
  background: #fff4f4;
  color: var(--coupons-red);
}

.products-coupon-tab:focus-visible,
.products-coupon-button:focus-visible,
.products-coupon-date:focus-visible,
.products-coupon-select select:focus-visible,
.products-coupon-field input:focus-visible,
.products-coupon-table button:focus-visible,
.products-coupon-checkbox input:focus-visible + span {
  outline: 2px solid var(--coupons-red);
  outline-offset: 2px;
}

.products-coupon-filters {
  display: grid;
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid var(--coupons-border);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 7px 20px rgba(31, 41, 55, 0.06);
}

.products-coupon-filters__row {
  display: grid;
  grid-template-columns: 1.18fr 0.86fr 0.86fr 1.1fr;
  gap: 20px;
}

.products-coupon-filters__row--actions {
  grid-template-columns: minmax(220px, 0.8fr) minmax(270px, 1fr);
  align-items: end;
}

.products-coupon-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.products-coupon-field > span:first-child {
  color: var(--coupons-text-strong);
  font-size: 11px;
  font-weight: 700;
}

.products-coupon-date,
.products-coupon-select,
.products-coupon-field--search input {
  min-height: 40px;
  border: 1px solid var(--coupons-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--coupons-text);
  font-size: 12px;
}

.products-coupon-date {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  cursor: pointer;
  text-align: left;
}

.products-coupon-date:hover {
  border-color: var(--coupons-red);
}

.products-coupon-date svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--coupons-text-muted);
}

.products-coupon-date span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-coupon-date i {
  color: var(--coupons-text-muted);
  font-style: normal;
}

.products-coupon-date__end-icon {
  margin-left: auto;
}

.products-coupon-select {
  position: relative;
  display: block;
}

.products-coupon-select select {
  width: 100%;
  min-height: 38px;
  padding: 0 34px 0 11px;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.products-coupon-select svg {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 15px;
  height: 15px;
  pointer-events: none;
  color: var(--coupons-text-muted);
}

.products-coupon-field--search input {
  width: 100%;
  padding: 0 11px;
  outline: 0;
}

.products-coupon-field--search input::placeholder {
  color: #4b5563;
  opacity: 1;
}

.products-coupon-filters__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.products-coupon-button {
  display: inline-flex;
  min-width: 126px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.products-coupon-button svg {
  width: 15px;
  height: 15px;
}

.products-coupon-button--primary {
  background: var(--coupons-red);
  color: #ffffff;
}

.products-coupon-button--primary:hover {
  background: var(--coupons-red-dark);
}

.products-coupon-button--secondary {
  border-color: var(--coupons-border);
  background: #ffffff;
  color: var(--coupons-text);
}

.products-coupon-button--secondary:hover {
  border-color: var(--coupons-red);
  color: var(--coupons-red);
}

.products-coupon-button:active {
  transform: translateY(1px);
}

.products-coupon-table-panel {
  overflow: hidden;
  box-shadow: 0 7px 20px rgba(31, 41, 55, 0.05);
}

.products-coupon-table-toolbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--coupons-border);
}

.products-coupons-page .products-assets-table-scroll {
  overflow-x: auto;
}

.products-coupons-page .products-coupon-table {
  min-width: 1000px;
  table-layout: fixed;
  color: var(--coupons-text);
  font-size: 12px;
}

.products-coupon-table col.products-coupon-col--check { width: 48px; }
.products-coupon-table col.products-coupon-col--code { width: 13%; }
.products-coupon-table col.products-coupon-col--offer { width: 23%; }
.products-coupon-table col.products-coupon-col--category { width: 13%; }
.products-coupon-table col.products-coupon-col--dates { width: 21%; }
.products-coupon-table col.products-coupon-col--usage { width: 12%; }
.products-coupon-table col.products-coupon-col--status { width: 11%; }
.products-coupon-table col.products-coupon-col--actions { width: 10%; }

.products-coupons-page .products-coupon-table th,
.products-coupons-page .products-coupon-table td {
  padding-inline: 12px;
}

.products-coupons-page .products-coupon-table th {
  height: 50px;
  border-bottom: 1px solid var(--coupons-border);
  color: var(--coupons-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.products-coupons-page .products-coupon-table td {
  height: 64px;
  border-bottom: 1px solid #eef0f2;
  color: var(--coupons-text);
  font-size: 12px;
  white-space: nowrap;
}

.products-coupons-page .products-coupon-table tbody tr:last-child td {
  border-bottom: 0;
}

.products-coupons-page .products-coupon-table tbody tr:hover,
.products-coupons-page .products-coupon-table tbody tr.is-selected {
  background: #fffafa;
}

.products-coupon-check-cell {
  padding-left: 17px !important;
  text-align: center;
}

.products-coupon-checkbox {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  cursor: pointer;
}

.products-coupon-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.products-coupon-checkbox > span {
  display: block;
  width: 17px;
  height: 17px;
  border: 1px solid #b7bec7;
  border-radius: 3px;
  background: #ffffff;
}

.products-coupon-checkbox input:checked + span,
.products-coupon-checkbox input:indeterminate + span {
  border-color: var(--coupons-red);
  background: var(--coupons-red);
}

.products-coupon-checkbox input:checked + span::after {
  display: block;
  width: 8px;
  height: 4px;
  margin: 4px 0 0 3px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  content: "";
  transform: rotate(-45deg);
}

.products-coupon-code strong {
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05px;
}

.products-coupon-offer {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.products-coupon-offer strong {
  overflow: hidden;
  color: var(--coupons-text-strong);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-coupon-offer span {
  overflow: hidden;
  color: var(--coupons-text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-coupon-category,
.products-coupon-usage {
  color: var(--coupons-text);
  font-size: 11px;
}

.products-coupon-dates {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--coupons-text);
  font-size: 11px;
}

.products-coupon-dates i {
  color: var(--coupons-text-muted);
  font-style: normal;
}

.products-coupon-usage {
  font-variant-numeric: tabular-nums;
}

.products-coupon-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.products-coupon-status i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}

.products-coupon-status--active {
  border-color: #c9efd9;
  background: #e8f8ef;
  color: #167346;
}

.products-coupon-status--expired {
  border-color: #e2e6ea;
  background: #f3f4f6;
  color: #4b5563;
}

.products-coupon-status--scheduled {
  border-color: #cfe1fb;
  background: #eef5ff;
  color: #2863a4;
}

.products-coupon-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.products-coupon-actions button {
  display: inline-grid;
  width: 20px;
  height: 24px;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--coupons-text-strong);
  cursor: pointer;
}

.products-coupon-actions button:hover {
  color: var(--coupons-red);
}

.products-coupon-actions button svg {
  width: 17px;
  height: 17px;
}

.products-coupon-empty {
  height: 160px !important;
  text-align: center !important;
}

.products-coupon-empty strong,
.products-coupon-empty span {
  display: block;
}

.products-coupon-empty strong {
  color: var(--coupons-text-strong);
  font-size: 13px;
}

.products-coupon-empty span {
  margin-top: 5px;
  color: var(--coupons-text-muted);
  font-size: 11px;
}

.products-coupon-table-footbar {
  min-height: 58px;
  padding-inline: 17px;
  color: var(--coupons-text-muted);
  font-size: 11px;
}

.products-coupon-table-footbar .products-assets-pagination {
  gap: 7px;
}

.products-coupon-table-footbar .products-assets-pagination button {
  width: 30px;
  height: 30px;
  font-size: 17px;
}

.products-coupon-table-footbar .products-assets-pagination button.is-current {
  border-color: var(--coupons-red);
  background: var(--coupons-red);
  color: #ffffff;
}

@media (max-width: 1100px) {
  .products-coupon-filters__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-coupon-filters__row--actions {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  }
}

@media (max-width: 767px) {
  .is-products-coupons-page .page-header {
    min-height: 0;
  }

  .is-products-coupons-page .page-header__utility {
    padding-top: 0;
  }

  .products-coupon-tabs {
    width: 100%;
  }

  .products-coupon-tab {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 10px;
  }

  .products-coupon-filters {
    padding: 16px;
  }

  .products-coupon-filters__row,
  .products-coupon-filters__row--actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .products-coupon-filters__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .products-coupon-table-toolbar {
    padding-inline: 14px;
  }
}

@media (max-width: 479px) {
  .products-coupon-filters__row,
  .products-coupon-filters__row--actions {
    grid-template-columns: 1fr;
  }

  .products-coupon-filters__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .products-coupon-button {
    width: 100%;
    min-width: 0;
  }
}

/* Products & Assets / Banners & images routed page */
.is-products-assets-page .page-header {
  min-height: 78px;
  margin-bottom: 18px;
}

.is-products-assets-page .scope-line,
.is-products-assets-page .page-header__filters {
  display: none;
}

.is-products-assets-page .page-header__actions {
  padding-top: 0;
}

.is-products-assets-page .breadcrumb [data-breadcrumb-parent] {
  color: var(--color-brand);
  font-weight: 600;
}

.is-products-assets-page .breadcrumb strong {
  color: var(--color-text);
}

.products-assets-page {
  gap: 15px;
}

.products-assets-section-head h2 {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.products-assets-count {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.products-assets-section-head__controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.products-assets-sort {
  position: relative;
}

.products-assets-sort > svg {
  position: absolute;
  right: 7px;
  width: 13px;
  height: 13px;
  pointer-events: none;
  color: var(--color-text-muted);
}

.products-assets-sort select {
  min-height: 30px;
  padding-right: 24px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 600;
}

.products-assets-grid-panel {
  overflow: hidden;
}

.products-assets-grid {
  padding: 12px 14px 14px;
}

.products-assets-page .products-asset-card__copy small,
.products-assets-page .products-asset-card__format,
.products-assets-page .products-asset-card__footer small {
  font-size: 11px;
}

.products-assets-page .products-asset-card__footer strong {
  font-size: 11px;
}

.products-assets-card__meta,
.products-asset-card__meta {
  display: grid;
  min-width: 0;
  justify-items: end;
  gap: 4px;
}

.products-asset-card__meta > small {
  max-width: 120px;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-asset-card__status {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.products-asset-card__status i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}

.products-asset-card__status--active {
  background: #e2f7ea;
  color: #167346;
}

.products-asset-card__status--in-use {
  background: #e7f1ff;
  color: #2863a4;
}

.products-asset-card__status--draft {
  background: #f0f2f4;
  color: #4b5563;
}

.products-asset-card__menu {
  position: absolute;
  right: 9px;
  bottom: 25px;
  z-index: 2;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--color-text-muted);
}

.products-asset-card__menu svg {
  width: 15px;
  height: 15px;
}

.products-assets-art {
  position: absolute;
  right: 8%;
  bottom: 0;
  z-index: 0;
  display: block;
  width: 34%;
  height: 70%;
  border-radius: 34px 34px 0 0;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
  opacity: 0.92;
  transform: rotate(-4deg);
}

.products-assets-art::before,
.products-assets-art::after {
  position: absolute;
  display: block;
  content: "";
}

.products-assets-art::before {
  right: 16%;
  bottom: 18%;
  width: 56%;
  height: 43%;
  border-radius: 10px 10px 3px 3px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 0 -5px rgba(45, 49, 45, 0.18);
}

.products-assets-art::after {
  right: 0;
  bottom: 0;
  width: 120%;
  height: 7px;
  border-radius: 8px;
  background: rgba(25, 34, 41, 0.16);
}

.products-assets-art--workspace { background: #a67554; }
.products-assets-art--headphones { width: 32%; height: 66%; border: 10px solid #92979a; border-bottom-color: transparent; border-radius: 50%; background: transparent; transform: rotate(12deg); }
.products-assets-art--headphones::before { right: auto; bottom: -3px; left: -13px; width: 18px; height: 32px; border-radius: 10px; background: #a5aaac; box-shadow: 56px 0 0 #a5aaac; }
.products-assets-art--headphones::after { display: none; }
.products-assets-art--beauty { width: 27%; height: 66%; border-radius: 8px 8px 0 0; background: #567d4c; box-shadow: -27px 16px 0 -7px #91a887, 28px 10px 0 -4px #3e6740; transform: rotate(3deg); }
.products-assets-art--beauty::before { right: 22%; bottom: 100%; width: 38%; height: 16px; border-radius: 4px 4px 0 0; background: #708b61; }
.products-assets-art--beauty::after { display: none; }
.products-assets-art--chair { width: 30%; height: 63%; border-radius: 14px 14px 5px 5px; background: #7799b8; transform: rotate(2deg); }
.products-assets-art--chair::before { right: 17%; bottom: -20px; width: 8px; height: 32px; background: #a1785e; box-shadow: -33px 0 0 #a1785e; }
.products-assets-art--chair::after { display: none; }
.products-assets-art--shoes { width: 44%; height: 35%; border-radius: 30px 12px 10px 8px; background: #e9edf0; transform: rotate(-17deg); }
.products-assets-art--shoes::before { right: -17px; bottom: 0; width: 54px; height: 20px; border-radius: 4px 18px 8px 3px; background: #d6dfe7; }
.products-assets-art--shoes::after { right: 45%; bottom: 18px; width: 80%; height: 4px; border-radius: 4px; background: rgba(82, 105, 125, 0.35); }
.products-assets-art--summer { width: 45%; height: 22%; border-radius: 5px 5px 0 0; background: #152d3e; transform: rotate(-3deg); }
.products-assets-art--summer::before { right: 6%; bottom: 22px; width: 28px; height: 28px; border: 3px solid #d2a165; border-radius: 50%; box-shadow: -35px 6px 0 -8px #d2a165; }
.products-assets-art--summer::after { right: 24%; bottom: 12px; width: 42px; height: 3px; background: #253b49; transform: rotate(25deg); }
.products-assets-art--affiliate { width: 28%; height: 70%; border-radius: 50%; background: #9cc3e0; }
.products-assets-art--shipping { width: 30%; height: 62%; border-radius: 6px; background: #f15a54; }
.products-assets-art--shipping::before { right: 15%; bottom: 30%; width: 64%; height: 5px; background: rgba(255, 255, 255, 0.8); box-shadow: 0 11px 0 rgba(255, 255, 255, 0.58); }
.products-assets-art--shipping::after { display: none; }
.products-assets-art--arrivals { width: 24%; height: 65%; border-radius: 50% 50% 6px 6px; background: #94ad7a; }

.products-assets-art__cta {
  width: max-content;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 700;
}

.products-asset-card__media--strip {
  min-height: 72px;
}

.products-asset-card__media--strip .products-asset-card__copy strong {
  font-size: 11px;
}

.products-assets-detail__header-actions,
.products-assets-detail__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.products-assets-detail__identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.products-assets-detail__identity > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-assets-page .products-assets-detail__tags > div span {
  font-size: 11px;
}

.products-assets-detail__preview .products-asset-card__media {
  min-height: 148px;
}

.products-assets-detail__preview .products-asset-card__copy strong {
  font-size: 16px;
}

.products-assets-detail__preview .products-asset-card__copy small {
  font-size: 11px;
}

.products-assets-detail__preview .products-assets-art {
  width: 42%;
  height: 75%;
}

.products-assets-detail__empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--color-text-muted);
  text-align: center;
}

.products-assets-detail__empty > span {
  color: var(--color-brand);
}

.products-assets-detail__empty > span svg {
  width: 28px;
  height: 28px;
}

.products-assets-detail__empty strong {
  color: var(--color-text);
  font-size: 13px;
}

.products-assets-detail__empty p {
  max-width: 210px;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.products-assets-page.is-detail-closed .products-assets-workspace {
  grid-template-columns: 1fr;
}

.products-assets-page.is-detail-closed .products-assets-grid-panel {
  grid-column: 1 / -1;
}

.products-assets-grid.is-list {
  grid-template-columns: 1fr;
}

.products-assets-grid.is-list .products-asset-card {
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  align-items: stretch;
}

.products-assets-grid.is-list .products-asset-card__media {
  min-height: 88px;
}

.products-assets-grid.is-list .products-asset-card__footer {
  min-height: 88px;
}

@media (max-width: 767px) {
  .is-products-assets-page .page-header {
    min-height: 0;
  }

  .is-products-assets-page .page-header__utility {
    padding-top: 0;
  }

  .products-assets-section-head__controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* Messages & Notifications */
body.is-messages-page {
  --messages-red: #e60000;
  --messages-red-dark: #cd0200;
  --messages-soft-red: #fde8e8;
  --messages-selected-red: #ff312e;
  --messages-border: #e5e7eb;
  --messages-border-strong: #d1d5db;
  --messages-text-strong: #1f2937;
  --messages-text: #374151;
  --messages-text-muted: #4b5563;
  --messages-text-disabled: #4b5563;
  --messages-focus: #e60000;
  --messages-font-body: 12px;
  --messages-font-secondary: 11px;
  background: #ffffff;
}

.is-messages-page .page-header {
  min-height: 132px;
  margin-bottom: 14px;
}

.is-messages-page .scope-line,
.is-messages-page .page-header__filters {
  display: none;
}

.is-messages-page .page-header__actions {
  width: auto;
  flex: 0 0 auto;
  gap: 12px;
  padding-top: 0;
}

.is-messages-page .page-header__utility {
  padding-top: 0;
}

.is-messages-page .breadcrumb [data-breadcrumb-parent] {
  color: var(--messages-red);
  font-weight: 600;
}

.is-messages-page .breadcrumb strong {
  color: var(--messages-text-strong);
}

.is-messages-page .page-header h1 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.messages-page-title-badge {
  display: inline-grid;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  place-items: center;
  border-radius: 999px;
  background: var(--messages-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.messages-page-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.messages-page-actions .button {
  min-height: 38px;
  padding-inline: 15px;
  border-color: var(--messages-red);
  background: var(--messages-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.messages-page-actions .button:hover {
  border-color: var(--messages-red-dark);
  background: var(--messages-red-dark);
}

.messages-page-actions .button svg,
.messages-preferences svg {
  width: 16px;
  height: 16px;
}

.messages-preferences {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--messages-text);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.messages-preferences:hover {
  color: var(--messages-red);
}

.is-messages-page .nav-item[data-nav-item="messages"] {
  background: var(--messages-red);
  color: #ffffff;
}

.is-messages-page .nav-item[data-nav-item="messages"]:hover {
  background: var(--messages-red-dark);
  color: #ffffff;
}

.is-messages-page .nav-item[data-nav-item="messages"] .nav-item__icon,
.is-messages-page .nav-item[data-nav-item="messages"] .nav-item__chevron {
  color: #ffffff;
}

.is-messages-page .nav-child[data-nav-child="all-messages"],
.is-messages-page .nav-child[data-nav-child="partner-messages"],
.is-messages-page .nav-child[data-nav-child="system-alerts"],
.is-messages-page .nav-child[data-nav-child="archived-messages"] {
  color: var(--messages-text);
}

.is-messages-page .nav-child[data-nav-child="all-messages"].is-active,
.is-messages-page .nav-child[data-nav-child="partner-messages"].is-active,
.is-messages-page .nav-child[data-nav-child="system-alerts"].is-active,
.is-messages-page .nav-child[data-nav-child="archived-messages"].is-active {
  background: var(--messages-soft-red);
  box-shadow: inset 3px 0 0 var(--messages-selected-red);
  color: var(--messages-selected-red);
  font-weight: 600;
}

.messages-page[hidden] {
  display: none;
}

.messages-page {
  display: grid;
  gap: 14px;
  color: var(--messages-text);
  font-size: var(--messages-font-body);
}

.messages-tabs {
  display: flex;
  min-height: 43px;
  align-items: stretch;
  gap: 26px;
  border-bottom: 1px solid var(--messages-border);
}

.messages-tab {
  position: relative;
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  gap: 6px;
  padding: 0 1px;
  border: 0;
  background: transparent;
  color: var(--messages-text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.messages-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.messages-tab strong {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: #f1f3f5;
  color: var(--messages-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.messages-tab:hover,
.messages-tab.is-active {
  color: var(--messages-red);
}

.messages-tab.is-active {
  font-weight: 600;
}

.messages-tab.is-active::after {
  background: var(--messages-red);
}

.messages-tab.is-active strong {
  background: var(--messages-soft-red);
  color: var(--messages-red-dark);
}

.messages-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.messages-search,
.messages-filter {
  position: relative;
  display: flex;
  min-height: 38px;
  align-items: center;
  min-width: 0;
}

.messages-search {
  width: min(360px, 100%);
}

.messages-filter {
  width: 140px;
}

.messages-search > svg,
.messages-filter > svg:first-child {
  position: absolute;
  left: 11px;
  z-index: 1;
  width: 16px;
  height: 16px;
  color: var(--messages-text-muted);
  pointer-events: none;
}

.messages-filter__chevron {
  position: absolute;
  right: 10px;
  width: 14px;
  height: 14px;
  color: var(--messages-text-muted);
  pointer-events: none;
}

.messages-search input,
.messages-filter select,
.messages-sort select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--messages-border-strong);
  border-radius: 5px;
  outline: none;
  background: #ffffff;
  color: var(--messages-text);
  font-family: inherit;
  font-size: var(--messages-font-body);
  line-height: 1.35;
}

.messages-search input {
  padding: 0 12px 0 35px;
}

.messages-filter select {
  appearance: none;
  padding: 0 31px 0 34px;
  cursor: pointer;
}

.messages-search input::placeholder {
  color: var(--messages-text-muted);
  opacity: 1;
}

.messages-search input:focus-visible,
.messages-filter select:focus-visible,
.messages-sort select:focus-visible,
.messages-checkbox input:focus-visible + span,
.messages-icon-button:focus-visible,
.messages-text-action:focus-visible,
.messages-tab:focus-visible,
.messages-list-row:focus-visible,
.messages-attachment:focus-visible,
.messages-pagination button:focus-visible,
.messages-reply-form textarea:focus-visible,
.messages-preferences:focus-visible {
  outline: 2px solid var(--messages-focus);
  outline-offset: 2px;
}

.messages-layout {
  display: grid;
  grid-template-columns: 344px minmax(460px, 1fr) 282px;
  gap: 14px;
  align-items: start;
}

.messages-list-card,
.messages-conversation-card,
.messages-detail-card {
  border: 1px solid var(--messages-border);
  border-radius: 6px;
  background: #ffffff;
}

.messages-list-card,
.messages-conversation-card {
  min-width: 0;
  overflow: hidden;
}

.messages-list__header {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 15px;
  border-bottom: 1px solid var(--messages-border);
  background: #fafbfc;
}

.messages-checkbox {
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  cursor: pointer;
}

.messages-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.messages-checkbox span {
  display: block;
  width: 15px;
  height: 15px;
  border: 1px solid #9ca3af;
  border-radius: 3px;
  background: #ffffff;
}

.messages-checkbox input:checked + span {
  border-color: var(--messages-red);
  background: var(--messages-red);
  box-shadow: inset 0 0 0 3px #ffffff;
}

.messages-checkbox input:indeterminate + span {
  border-color: var(--messages-red);
  background: linear-gradient(var(--messages-red), var(--messages-red)) center / 8px 2px no-repeat #ffffff;
}

.messages-sort {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--messages-text-muted);
  font-size: var(--messages-font-secondary);
  white-space: nowrap;
}

.messages-sort select {
  width: 92px;
  height: 30px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--messages-text);
  font-size: var(--messages-font-secondary);
  font-weight: 500;
}

.messages-sort-direction {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--messages-text-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.messages-sort-direction:hover {
  background: var(--messages-soft-red);
  color: var(--messages-red);
}

.messages-list {
  max-height: 624px;
  overflow-y: auto;
}

.messages-list-row {
  display: grid;
  min-height: 76px;
  grid-template-columns: 18px 35px minmax(0, 1fr) auto 7px;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-bottom: 1px solid #edf0f2;
  background: #ffffff;
  color: var(--messages-text);
  cursor: pointer;
}

.messages-list-row:hover {
  background: #fffafa;
}

.messages-list-row.is-selected {
  box-shadow: inset 3px 0 0 var(--messages-selected-red);
  background: var(--messages-soft-red);
}

.messages-list-row.is-unread .messages-list-row__copy > strong {
  color: var(--messages-text-strong);
  font-weight: 700;
}

.messages-list-row time {
  align-self: start;
  padding-top: 3px;
  color: var(--messages-text-muted);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.messages-list-row__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.messages-list-row__copy strong,
.messages-list-row__copy > span,
.messages-list-row__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-list-row__copy strong {
  color: var(--messages-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.messages-list-row__copy > span {
  color: var(--messages-text-strong);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.messages-list-row__copy small {
  color: var(--messages-text-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.messages-unread-dot {
  display: block;
  width: 7px;
  height: 7px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--messages-red);
  color: transparent;
  font-size: 11px;
  white-space: nowrap;
}

.messages-avatar {
  display: inline-grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border-radius: 50%;
  background: #e7e9ed;
  color: var(--messages-text-strong);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.messages-avatar--large {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  font-size: 13px;
}

.messages-avatar--rose { background: #f8d8da; color: #8f2931; }
.messages-avatar--lavender { background: #e4dcf6; color: #624796; }
.messages-avatar--blue { background: #d9e8f8; color: #2f6291; }
.messages-avatar--alert { background: #ffe3d3; color: #a94d1d; }
.messages-avatar--cyan { background: #d6f0f1; color: #1b6b70; }
.messages-avatar--pink { background: #f3dbe8; color: #8f3d67; }
.messages-avatar--peach { background: #f7e1ca; color: #8f5428; }
.messages-avatar--mint { background: #d9efe2; color: #2d704d; }
.messages-avatar--slate { background: #e0e6ee; color: #42536a; }

.messages-list__footer {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border-top: 1px solid var(--messages-border);
  color: var(--messages-text-muted);
  font-size: var(--messages-font-secondary);
}

.messages-pagination {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.messages-pagination button {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--messages-text);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
}

.messages-pagination button:hover,
.messages-pagination button.is-current {
  border-color: #f0b7b7;
  background: var(--messages-soft-red);
  color: var(--messages-red);
}

.messages-empty,
.messages-conversation-empty {
  display: grid;
  min-height: 220px;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 24px;
  color: var(--messages-text-muted);
  text-align: center;
}

.messages-empty strong,
.messages-conversation-empty strong {
  color: var(--messages-text-strong);
  font-size: 13px;
  font-weight: 600;
}

.messages-empty span,
.messages-conversation-empty p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.messages-conversation-card {
  min-height: 720px;
}

.messages-conversation__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--messages-border);
}

.messages-conversation__heading {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.messages-conversation__heading h2 {
  margin: 0;
  overflow: hidden;
  color: var(--messages-text-strong);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.15px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-kind {
  display: inline-flex;
  width: max-content;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.messages-kind--partner { background: var(--messages-soft-red); color: var(--messages-red-dark); }
.messages-kind--system { background: #fff1dc; color: #805119; }
.messages-kind--archived { background: #eef0f2; color: var(--messages-text-muted); }

.messages-conversation__actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.messages-icon-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--messages-text-muted);
  cursor: pointer;
}

.messages-icon-button:hover,
.messages-icon-button.is-selected {
  border-color: #f2c5c5;
  background: var(--messages-soft-red);
  color: var(--messages-red);
}

.messages-icon-button svg {
  width: 16px;
  height: 16px;
}

.messages-conversation__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--messages-border);
}

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

.messages-person-meta > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.messages-person-meta strong,
.messages-sent-meta strong {
  color: var(--messages-text-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.messages-person-meta b {
  overflow: hidden;
  color: var(--messages-text-strong);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-person-meta small {
  overflow: hidden;
  color: var(--messages-text-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-sent-meta {
  display: grid;
  align-content: center;
  gap: 3px;
  color: var(--messages-text);
  font-size: 11px;
  white-space: nowrap;
}

.messages-sent-meta span {
  color: var(--messages-text-muted);
}

.messages-message-body {
  padding: 20px;
  color: var(--messages-text);
  font-size: 13px;
  line-height: 1.6;
}

.messages-message-body p {
  margin: 0 0 12px;
}

.messages-message-body p:last-child {
  margin-bottom: 0;
}

.messages-attachments,
.messages-replies {
  padding: 0 20px 18px;
}

.messages-attachments h3,
.messages-replies h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 9px;
  color: var(--messages-text-strong);
  font-size: 12px;
  font-weight: 600;
}

.messages-attachments h3 span,
.messages-replies h3 span,
.messages-detail-card__header h3 span {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  border-radius: 999px;
  background: #f1f3f5;
  color: var(--messages-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.messages-attachment-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.messages-attachment {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 15px;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--messages-border);
  border-radius: 5px;
  background: #ffffff;
  color: var(--messages-text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.messages-attachment:hover {
  border-color: #e7b3b3;
  background: #fffafa;
}

.messages-attachment > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.messages-attachment strong,
.messages-attachment small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-attachment strong {
  color: var(--messages-text-strong);
  font-size: 11px;
  font-weight: 600;
}

.messages-attachment small {
  color: var(--messages-text-muted);
  font-size: 11px;
}

.messages-attachment > svg {
  width: 15px;
  height: 15px;
  color: var(--messages-text-muted);
}

.messages-attachment__icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 4px;
}

.messages-attachment__icon svg {
  width: 15px;
  height: 15px;
}

.messages-attachment__icon--pdf { background: #fde3e3; color: #b83232; }
.messages-attachment__icon--sheet { background: #e1f2e5; color: #277344; }
.messages-attachment__icon--image { background: #e2ebf8; color: #356a9d; }

.messages-replies {
  border-top: 1px solid var(--messages-border);
  padding-top: 17px;
}

.messages-reply {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid #f0f2f4;
}

.messages-reply > div {
  min-width: 0;
  flex: 1;
}

.messages-reply header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.messages-reply header strong {
  color: var(--messages-text-strong);
  font-size: 11px;
  font-weight: 600;
}

.messages-reply header time {
  color: var(--messages-text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.messages-reply p,
.messages-replies__empty {
  margin: 4px 0 0;
  color: var(--messages-text);
  font-size: 11px;
  line-height: 1.5;
}

.messages-replies__empty {
  color: var(--messages-text-muted);
}

.messages-reply-form {
  display: grid;
  gap: 8px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--messages-border);
  background: #fafbfc;
}

.messages-reply-form > label {
  color: var(--messages-text-strong);
  font-size: 11px;
  font-weight: 600;
}

.messages-reply-form textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  padding: 10px;
  border: 1px solid var(--messages-border-strong);
  border-radius: 5px;
  outline: none;
  background: #ffffff;
  color: var(--messages-text);
  font-family: inherit;
  font-size: var(--messages-font-body);
  line-height: 1.45;
}

.messages-reply-form textarea::placeholder {
  color: var(--messages-text-muted);
  opacity: 1;
}

.messages-reply-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.messages-reply-form__footer > span {
  color: var(--messages-text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.messages-reply-form .button {
  min-height: 34px;
  padding-inline: 12px;
  border-color: var(--messages-red);
  background: var(--messages-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

.messages-reply-form .button:hover {
  border-color: var(--messages-red-dark);
  background: var(--messages-red-dark);
}

.messages-reply-form .button svg {
  width: 15px;
  height: 15px;
}

.messages-details {
  display: grid;
  gap: 12px;
}

.messages-detail-card {
  padding: 15px;
}

.messages-detail-card__header {
  display: flex;
  min-height: 25px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--messages-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.messages-detail-card__header h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--messages-text-strong);
  font-size: 12px;
  font-weight: 600;
}

.messages-detail-card__header .messages-icon-button {
  width: 26px;
  height: 26px;
}

.messages-partner-card__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 10px;
}

.messages-partner-card__identity > div {
  min-width: 0;
}

.messages-partner-card__identity h2 {
  margin: 0;
  color: var(--messages-text-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.messages-partner-card__identity span,
.messages-partner-card__contact {
  color: var(--messages-text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.messages-partner-card__contact {
  margin: 0 0 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-text-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--messages-red-dark);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}

.messages-text-action:hover {
  color: var(--messages-red);
}

.messages-text-action svg {
  width: 14px;
  height: 14px;
}

.messages-campaign-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.messages-campaign-item {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f2f4;
}

.messages-campaign-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.messages-campaign-item strong {
  color: var(--messages-text-strong);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.messages-campaign-item span {
  color: var(--messages-text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.messages-campaign-item b,
.messages-info-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #237349;
  font-size: 11px;
  font-weight: 600;
}

.messages-campaign-item b i,
.messages-info-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1d9a59;
}

.messages-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 8px;
  margin: 14px 0 0;
}

.messages-stats-grid div,
.messages-info-list div {
  display: grid;
  gap: 3px;
}

.messages-stats-grid dt,
.messages-info-list dt {
  color: var(--messages-text-muted);
  font-size: 11px;
  line-height: 1.3;
}

.messages-stats-grid dd,
.messages-info-list dd {
  margin: 0;
  color: var(--messages-text-strong);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.messages-info-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.messages-label-chip {
  display: inline-flex;
  width: max-content;
  min-width: 20px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--messages-soft-red);
  color: var(--messages-red-dark);
}

@media (max-width: 1350px) {
  .messages-layout {
    grid-template-columns: 310px minmax(420px, 1fr) 250px;
  }

  .messages-list-row {
    grid-template-columns: 18px 32px minmax(0, 1fr) 7px;
  }

  .messages-list-row time {
    display: none;
  }
}

@media (max-width: 1199px) {
  .is-messages-page .page-header__actions {
    width: 340px;
    flex-basis: 340px;
  }

  .messages-layout {
    grid-template-columns: minmax(280px, .78fr) minmax(420px, 1.22fr);
  }

  .messages-details {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .messages-detail-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .is-messages-page .page-header {
    min-height: 0;
  }

  .is-messages-page .page-header__actions {
    width: 100%;
    flex-basis: auto;
  }

  .messages-page-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .messages-page-actions .button,
  .messages-preferences {
    justify-content: center;
    width: 100%;
  }

  .messages-tabs {
    gap: 16px;
    overflow-x: auto;
  }

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

  .messages-search,
  .messages-filter {
    width: 100%;
  }

  .messages-layout {
    grid-template-columns: 1fr;
  }

  .messages-details {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .messages-detail-card:last-child {
    grid-column: auto;
  }

  .messages-list {
    max-height: 470px;
  }

  .messages-conversation-card {
    min-height: 0;
  }

  .messages-conversation__meta {
    grid-template-columns: 1fr;
  }

  .messages-sent-meta {
    padding-left: 44px;
  }

  .messages-attachment-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  .messages-conversation__header,
  .messages-conversation__meta,
  .messages-message-body,
  .messages-attachments,
  .messages-replies,
  .messages-reply-form {
    padding-inline: 14px;
  }

  .messages-conversation__header {
    gap: 8px;
  }

  .messages-conversation__heading h2 {
    font-size: 14px;
  }

  .messages-list__footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 12px;
  }

  .messages-pagination {
    width: 100%;
    justify-content: flex-end;
  }

  .messages-reply-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .messages-reply-form__footer .button {
    justify-content: center;
  }
}

/* Integrations & Settings / Brand integration */
body.is-brand-integration-page {
  --brand-integration-red: #e60000;
  --brand-integration-red-dark: #cd0200;
  --brand-integration-soft-red: #fde8e8;
  --brand-integration-selected-red: #ff312e;
  --brand-integration-border: #e5e7eb;
  --brand-integration-line: #edf0f3;
  --brand-integration-text: #111111;
  --brand-integration-text-strong: #1f2937;
  --brand-integration-text-secondary: #374151;
  --brand-integration-text-muted: #4b5563;
  --brand-integration-success: #14854e;
  --brand-integration-warning: #a96b00;
  background: #ffffff;
}

.is-brand-integration-page .page-header {
  min-height: 104px;
  margin-bottom: 18px;
}

.is-brand-integration-page .scope-line,
.is-brand-integration-page .page-header__filters {
  display: none;
}

.is-brand-integration-page .page-header__actions {
  width: auto;
  flex: 0 0 auto;
  gap: 20px;
  padding-top: 0;
}

.is-brand-integration-page .page-header__utility {
  padding-top: 0;
}

.is-brand-integration-page .page-header__page-actions {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.is-brand-integration-page .brand-integration-page-actions > .button {
  min-width: 145px;
  height: 36px;
  border-color: var(--brand-integration-red);
  border-radius: 6px;
  background: var(--brand-integration-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

.is-brand-integration-page .brand-integration-page-actions > .button:hover {
  border-color: var(--brand-integration-red-dark);
  background: var(--brand-integration-red-dark);
}

.brand-integration-page-actions > .button svg {
  width: 15px;
  height: 15px;
}

.is-brand-integration-page .breadcrumb [data-breadcrumb-parent] {
  color: var(--brand-integration-red);
  font-weight: 600;
}

.is-brand-integration-page .breadcrumb strong,
.is-brand-integration-page .page-header h1 {
  color: var(--brand-integration-text);
}

.is-brand-integration-page .page-header h1 {
  font-size: 30px;
  letter-spacing: -0.9px;
}

.is-brand-integration-page .page-header p {
  max-width: 700px;
  color: var(--brand-integration-text-secondary);
  font-size: 13px;
}

.is-brand-integration-page .nav-item[data-nav-item="settings"] {
  background: var(--brand-integration-red);
  color: #ffffff;
}

.is-brand-integration-page .nav-item[data-nav-item="settings"]:hover {
  background: var(--brand-integration-red-dark);
  color: #ffffff;
}

.is-brand-integration-page .nav-item[data-nav-item="settings"] .nav-item__icon,
.is-brand-integration-page .nav-item[data-nav-item="settings"] .nav-item__chevron {
  color: #ffffff;
}

.is-brand-integration-page .nav-child[data-nav-child="brand-integration"] {
  background: var(--brand-integration-soft-red);
  box-shadow: inset 3px 0 0 var(--brand-integration-selected-red);
  color: var(--brand-integration-selected-red);
  font-weight: 600;
}

.brand-integration-page[hidden] {
  display: none;
}

.brand-integration-page {
  display: grid;
  gap: 18px;
  color: var(--brand-integration-text-secondary);
  font-size: 12px;
}

.brand-integration-card {
  min-width: 0;
  border: 1px solid var(--brand-integration-border);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: none;
}

.brand-integration-overview-grid,
.brand-integration-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 394px;
  gap: 18px;
}

.brand-integration-brand-card {
  min-height: 180px;
  padding: 19px 21px 20px;
}

.brand-integration-eyebrow,
.brand-integration-detail-label,
.brand-integration-column-label {
  color: var(--brand-integration-text-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.brand-integration-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand-integration-brand-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.3fr) minmax(150px, 0.86fr) minmax(150px, 0.86fr);
  gap: 19px;
  margin-top: 17px;
}

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

.brand-integration-brand-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 7px;
  background: #f5f6f7;
  color: var(--brand-integration-text-strong);
}

.brand-integration-brand-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}

.brand-integration-brand-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 10px;
}

.brand-integration-brand-name h2,
.brand-integration-health-card h2,
.brand-integration-card-header h2 {
  margin: 0;
  color: var(--brand-integration-text-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.brand-integration-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-integration-text-secondary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.brand-integration-status i,
.brand-integration-activity-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}

.brand-integration-status--connected,
.brand-integration-activity-dot--connected {
  color: var(--brand-integration-success);
}

.brand-integration-status--warning,
.brand-integration-activity-dot--warning {
  color: var(--brand-integration-warning);
}

.brand-integration-domain-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-integration-red);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.brand-integration-domain-link:hover {
  color: var(--brand-integration-red-dark);
  text-decoration: underline;
}

.brand-integration-domain-link svg {
  width: 13px;
  height: 13px;
}

.brand-integration-meta-list {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0 0 0 19px;
  border-left: 1px solid var(--brand-integration-line);
}

.brand-integration-meta-list div {
  display: grid;
  gap: 4px;
}

.brand-integration-meta-list dt {
  color: var(--brand-integration-text-muted);
  font-size: 11px;
  line-height: 1.3;
}

.brand-integration-meta-list dd {
  margin: 0;
  overflow: hidden;
  color: var(--brand-integration-text-secondary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-integration-health-card {
  display: grid;
  grid-template-columns: minmax(108px, 0.85fr) minmax(120px, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 180px;
  padding: 19px 21px;
}

.brand-integration-health-card h2 {
  grid-column: 1 / -1;
  align-self: start;
  margin-bottom: -2px;
}

.brand-integration-health-visual {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.brand-integration-health-ring {
  position: relative;
  display: grid;
  width: 102px;
  height: 102px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--brand-integration-success) calc(var(--health-value) * 1%), #e9eef0 0);
}

.brand-integration-health-ring::after {
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  background: #ffffff;
  content: "";
}

.brand-integration-health-ring > span {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
}

.brand-integration-health-ring strong {
  color: var(--brand-integration-text-strong);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.brand-integration-health-ring small,
.brand-integration-health-window {
  color: var(--brand-integration-text-muted);
  font-size: 11px;
  line-height: 1.25;
}

.brand-integration-health-window {
  font-size: 11px;
}

.brand-integration-health-legend {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-integration-health-legend li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand-integration-text-secondary);
  font-size: 11px;
  line-height: 1.3;
}

.brand-integration-health-legend li > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.brand-integration-health-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.brand-integration-health-dot--healthy {
  background: var(--brand-integration-success);
}

.brand-integration-health-dot--warning {
  background: var(--brand-integration-warning);
}

.brand-integration-health-dot--error {
  background: var(--brand-integration-red);
}

.brand-integration-health-legend strong {
  color: var(--brand-integration-text-strong);
  font-size: 11px;
}

.brand-integration-integrations-card {
  overflow: hidden;
}

.brand-integration-card-header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
}

.brand-integration-list {
  display: grid;
}

.brand-integration-row {
  display: grid;
  grid-template-columns: minmax(225px, 1.28fr) minmax(145px, 0.85fr) minmax(168px, 0.95fr) auto;
  gap: 17px;
  align-items: center;
  min-height: 112px;
  padding: 14px 20px;
  border-top: 1px solid var(--brand-integration-line);
}

.brand-integration-provider,
.brand-integration-activity-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 11px;
}

.brand-integration-provider-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 7px;
}

.brand-integration-provider-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.75;
}

.brand-integration-provider-icon--shopify {
  background: #e3f7ed;
  color: #0d9f5b;
}

.brand-integration-provider-icon--woocommerce {
  background: #f1eafb;
  color: #7045ba;
}

.brand-integration-provider-icon--amazon {
  background: #fff4df;
  color: #111111;
}

.brand-integration-provider-icon--analytics {
  background: #e5f0fb;
  color: #477db5;
}

.brand-integration-provider-copy {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 5px;
}

.brand-integration-provider-copy > strong {
  overflow: hidden;
  color: var(--brand-integration-text-strong);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-integration-provider-copy > small {
  color: var(--brand-integration-text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.brand-integration-data-column {
  min-width: 0;
}

.brand-integration-data-column ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.brand-integration-data-column li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--brand-integration-text-secondary);
  font-size: 11px;
  line-height: 1.35;
}

.brand-integration-data-column li i {
  display: inline-grid;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  place-items: center;
  border-radius: 50%;
  background: #e9f8ef;
  color: var(--brand-integration-success);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.brand-integration-data-column--status li {
  display: flex;
  width: 100%;
}

.brand-integration-data-column--status li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-integration-data-column li.is-warning {
  color: var(--brand-integration-warning);
  font-weight: 600;
}

.brand-integration-data-column li.is-warning i {
  background: #fff4dc;
  color: var(--brand-integration-warning);
}

.brand-integration-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.brand-integration-manage-button,
.brand-integration-more-button,
.brand-integration-view-button,
.brand-integration-activity-link {
  border: 0;
  background: transparent;
  color: var(--brand-integration-red);
  cursor: pointer;
  font: inherit;
}

.brand-integration-manage-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.brand-integration-manage-button:hover,
.brand-integration-view-button:hover,
.brand-integration-activity-link:hover {
  color: var(--brand-integration-red-dark);
  text-decoration: underline;
}

.brand-integration-manage-button.is-reconnect {
  color: var(--brand-integration-warning);
}

.brand-integration-manage-button.is-reconnect:hover {
  color: #875300;
}

.brand-integration-manage-button svg {
  width: 14px;
  height: 14px;
}

.brand-integration-more-button {
  display: grid;
  width: 28px;
  height: 30px;
  place-items: center;
  color: var(--brand-integration-text-muted);
}

.brand-integration-more-button:hover {
  color: var(--brand-integration-red);
}

.brand-integration-more-button svg {
  width: 16px;
  height: 16px;
}

.brand-integration-activity-card {
  overflow: hidden;
}

.brand-integration-card-header--activity {
  min-height: 54px;
}

.brand-integration-view-button {
  padding: 0;
  font-size: 11px;
  font-weight: 600;
}

.brand-integration-activity-list {
  display: grid;
  margin: 0;
  padding: 0 20px;
  list-style: none;
}

.brand-integration-activity-row {
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--brand-integration-line);
}

.brand-integration-activity-icon {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 6px;
}

.brand-integration-activity-icon svg {
  width: 17px;
  height: 17px;
}

.brand-integration-activity-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.brand-integration-activity-copy strong {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 7px;
  color: var(--brand-integration-text-secondary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.brand-integration-activity-copy strong .brand-integration-activity-dot {
  margin-top: 4px;
}

.brand-integration-activity-copy small,
.brand-integration-activity-copy time {
  color: var(--brand-integration-text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.brand-integration-activity-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 4px 20px 16px;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
}

.brand-integration-activity-link svg {
  width: 13px;
  height: 13px;
}

.brand-integration-page :is(button, a):focus-visible {
  outline: 2px solid var(--brand-integration-red);
  outline-offset: 2px;
}

@media (max-width: 1199px) {
  .brand-integration-overview-grid,
  .brand-integration-content-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .brand-integration-row {
    grid-template-columns: minmax(205px, 1.15fr) minmax(130px, 0.8fr) minmax(145px, 0.9fr) auto;
    gap: 12px;
    padding-inline: 16px;
  }

  .brand-integration-card-header {
    padding-inline: 16px;
  }

  .brand-integration-activity-list {
    padding-inline: 16px;
  }

  .brand-integration-activity-link {
    margin-inline: 16px;
  }
}

@media (max-width: 980px) {
  .brand-integration-overview-grid,
  .brand-integration-content-grid {
    grid-template-columns: 1fr;
  }

  .brand-integration-health-card {
    grid-template-columns: 140px minmax(180px, 1fr);
  }

  .brand-integration-health-card h2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .is-brand-integration-page .page-header {
    min-height: 0;
  }

  .is-brand-integration-page .page-header__actions {
    display: grid;
    gap: 14px;
    padding-top: 16px;
  }

  .is-brand-integration-page .page-header__page-actions {
    align-items: stretch;
  }

  .is-brand-integration-page .brand-integration-page-actions > .button {
    width: 100%;
  }

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

  .brand-integration-brand-identity {
    grid-column: 1 / -1;
  }

  .brand-integration-meta-list {
    padding-left: 14px;
  }

  .brand-integration-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .brand-integration-provider {
    grid-column: 1 / -1;
  }

  .brand-integration-row-actions {
    grid-column: 2;
    justify-self: end;
    margin-top: 8px;
  }

  .brand-integration-data-column--status {
    grid-column: 1;
  }
}

@media (max-width: 479px) {
  .brand-integration-brand-card,
  .brand-integration-health-card {
    padding-inline: 14px;
  }

  .brand-integration-brand-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .brand-integration-brand-identity {
    grid-column: auto;
  }

  .brand-integration-meta-list {
    padding: 0;
    border-left: 0;
  }

  .brand-integration-health-card {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand-integration-health-card h2 {
    width: 100%;
  }

  .brand-integration-health-legend {
    width: min(100%, 180px);
  }

  .brand-integration-row {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }

  .brand-integration-provider,
  .brand-integration-data-column--status,
  .brand-integration-row-actions {
    grid-column: auto;
  }

  .brand-integration-row-actions {
    justify-self: start;
    margin-top: 2px;
  }

  .brand-integration-card-header,
  .brand-integration-activity-list {
    padding-inline: 14px;
  }

  .brand-integration-activity-link {
    margin-inline: 14px;
  }
}

/* Recruitment interaction pass: quiet depth, clear state, no layout shift */
:root { --transition-recruitment: 240ms cubic-bezier(0.32, 0.72, 0, 1); }

.recruitment-panel__header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 12px;
}

.recruitment-carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.recruitment-carousel-control {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-soft);
  cursor: pointer;
  transition: border-color var(--transition-recruitment), background-color var(--transition-recruitment), color var(--transition-recruitment), transform var(--transition-recruitment);
}

.recruitment-carousel-control:hover:not(:disabled) {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  color: var(--color-brand);
  transform: translateY(-1px);
}

.recruitment-carousel-control:active:not(:disabled) { transform: scale(.96); }
.recruitment-carousel-control:disabled { cursor: not-allowed; opacity: .38; }
.recruitment-carousel-control--previous svg { transform: rotate(180deg); }
.recruitment-carousel-control svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.recruitment-button,
.recruitment-icon-link,
.partner-group-button,
.partner-group-select select {
  transition: background-color var(--transition-recruitment), border-color var(--transition-recruitment), color var(--transition-recruitment), transform var(--transition-recruitment), box-shadow var(--transition-recruitment);
}

.recruitment-button:hover:not(:disabled),
.recruitment-icon-link:hover,
.partner-group-select:hover select { transform: translateY(-1px); }

.recruitment-button:active:not(:disabled),
.recruitment-icon-link:active,
.partner-group-select select:active { transform: scale(.98); }

.recruitment-button:disabled { cursor: default; opacity: .72; }

.recruitment-button--primary.is-complete {
  border-color: var(--color-success);
  background: var(--color-success-soft);
  color: var(--color-success);
}

.partner-group-select {
  position: relative;
  display: inline-flex;
  min-width: 0;
  max-width: 48%;
  align-items: center;
}

.partner-group-select select {
  width: 100%;
  min-height: 28px;
  max-width: 170px;
  padding: 0 20px 0 0;
  overflow: hidden;
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-group-select svg {
  position: absolute;
  right: 2px;
  width: 11px;
  height: 11px;
  pointer-events: none;
  color: var(--color-text-muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.partner-group-select:focus-within {
  border-radius: var(--radius-control);
  outline: 1px solid var(--focus-accent);
  outline-offset: 3px;
}

.application-row__message-wrap {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 5px;
}

.application-row__message.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
}

.application-row__expand {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-brand);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  transition: color var(--transition-recruitment), transform var(--transition-recruitment);
}

.application-row__expand:hover { color: var(--color-brand-hover); transform: translateX(2px); }
.application-row__expand:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }

.recruitment-table-footbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 10px 4px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.recruitment-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.recruitment-pagination label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.recruitment-pagination select,
.recruitment-pagination button {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text-soft);
  font: inherit;
  font-size: 11px;
}

.recruitment-pagination select { cursor: pointer; }
.recruitment-pagination button { cursor: pointer; }
.recruitment-pagination button:hover:not(:disabled) { border-color: var(--color-brand); background: var(--color-brand-soft); color: var(--color-brand); }
.recruitment-pagination button:disabled { cursor: not-allowed; opacity: .38; }
.recruitment-pagination button:focus-visible,
.recruitment-pagination select:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }

.recruitment-drawer-form {
  display: grid;
  gap: 15px;
  padding: 18px 0;
}

.recruitment-drawer-form label {
  display: grid;
  gap: 7px;
}

.recruitment-drawer-form label > span {
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 600;
}

.recruitment-drawer-form input,
.recruitment-drawer-form textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  outline: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 12px;
  resize: vertical;
  transition: border-color var(--transition-recruitment), box-shadow var(--transition-recruitment);
}

.recruitment-drawer-form textarea { min-height: 112px; line-height: 1.55; }
.recruitment-drawer-form input:focus,
.recruitment-drawer-form textarea:focus { border-color: var(--focus-accent); box-shadow: none; }

@media (max-width: 767px) {
  .recruitment-panel__header-actions { align-items: flex-end; flex-direction: column; gap: 7px; }
  .recruitment-carousel-controls { align-self: flex-end; }
  .recruitment-table-footbar { align-items: flex-start; flex-direction: column; }
  .recruitment-pagination { width: 100%; justify-content: space-between; }
  .partner-group-select { max-width: 100%; }
  .partner-group-select select { max-width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .recruitment-carousel-control,
  .recruitment-button,
  .recruitment-icon-link,
  .partner-group-button,
  .partner-group-select select,
  .application-row__expand,
  .recruitment-drawer-form input,
  .recruitment-drawer-form textarea { transition-duration: .01ms !important; }
}

/* Recruitment interaction refinement: visible context, soft depth, deliberate feedback */
.recruitment-filterbar {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(253, 232, 232, .58), transparent 34%),
    var(--color-surface);
}

.recruitment-filter.has-value > span,
.recruitment-search.has-value > span:first-child {
  color: var(--color-brand);
}

.recruitment-filter.has-value select,
.recruitment-search.has-value .recruitment-search__control {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
}

.recruitment-search__control {
  position: relative;
}

.recruitment-search__clear {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color var(--transition-recruitment), color var(--transition-recruitment), transform var(--transition-recruitment);
}

.recruitment-search__clear:hover,
.recruitment-search__clear:focus-visible {
  background: var(--color-brand-soft);
  color: var(--color-brand);
  outline: 0;
  transform: scale(1.05);
}

.recruitment-search__submit {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--color-brand);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--transition-recruitment), transform var(--transition-recruitment), box-shadow var(--transition-recruitment);
}

.recruitment-search__submit:hover,
.recruitment-search__submit:focus-visible {
  background: var(--color-brand-hover);
  box-shadow: 0 5px 12px rgba(230, 0, 0, .14);
  outline: 0;
  transform: translateY(-1px);
}

.recruitment-search__submit:active { transform: scale(.96); }

.recruitment-search__submit svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  transition: transform var(--transition-recruitment);
}

.recruitment-search__submit:hover svg { transform: translateX(1px); }

.recruitment-search__clear svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.recruitment-filterbar__summary {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 14px;
  min-height: 30px;
  padding-top: 11px;
  border-top: 1px solid rgba(229, 231, 235, .82);
}

.recruitment-filterbar__summary-lead,
.recruitment-filterbar__chips,
.recruitment-criterion {
  display: inline-flex;
  align-items: center;
}

.recruitment-filterbar__summary-lead {
  min-width: 0;
  gap: 7px;
  color: var(--color-text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.recruitment-filterbar__summary-lead strong {
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 700;
}

.recruitment-filterbar__status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-brand);
  box-shadow: 0 0 0 4px var(--color-brand-soft);
}

.recruitment-filterbar__chips {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.recruitment-criterion {
  max-width: 230px;
  min-height: 25px;
  gap: 5px;
  padding: 0 7px 0 9px;
  overflow: hidden;
  border: 1px solid var(--color-brand-soft);
  border-radius: var(--radius-chip);
  background: var(--color-brand-soft);
  color: var(--color-text-soft);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  transition: border-color var(--transition-recruitment), background-color var(--transition-recruitment), color var(--transition-recruitment), transform var(--transition-recruitment), box-shadow var(--transition-recruitment);
}

.recruitment-criterion span,
.recruitment-criterion b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recruitment-criterion span {
  color: var(--color-text-muted);
}

.recruitment-criterion b {
  max-width: 125px;
  color: var(--color-brand);
  font-weight: 700;
}

.recruitment-criterion svg,
.recruitment-filterbar__clear-all {
  flex: 0 0 auto;
}

.recruitment-criterion svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.recruitment-criterion:hover,
.recruitment-criterion:focus-visible {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  color: var(--color-brand);
  outline: 0;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(230, 0, 0, .08);
}

.recruitment-filterbar__clear-all {
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: var(--color-brand);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  transition: color var(--transition-recruitment), transform var(--transition-recruitment);
}

.recruitment-filterbar__clear-all:hover,
.recruitment-filterbar__clear-all:focus-visible {
  color: var(--color-brand-hover);
  outline: 0;
  transform: translateX(2px);
}

@keyframes recruitment-module-reveal {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.recruitment-module {
  animation: recruitment-module-reveal 360ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

.influencer-featured-card,
.publisher-featured-card,
.publisher-card,
.partner-card {
  transition: border-color var(--transition-recruitment), box-shadow var(--transition-recruitment), transform var(--transition-recruitment), background-color var(--transition-recruitment);
}

.influencer-featured-card:hover,
.influencer-featured-card:focus-within,
.publisher-featured-card:hover,
.publisher-featured-card:focus-within,
.publisher-card:hover,
.publisher-card:focus-within,
.partner-card:hover,
.partner-card:focus-within {
  border-color: var(--color-brand);
  background: var(--color-surface);
  box-shadow: 0 14px 28px rgba(17, 17, 17, .055);
  transform: translateY(-2px);
}

.application-row,
.recruitment-table tbody tr {
  transition: background-color var(--transition-recruitment), box-shadow var(--transition-recruitment);
}

.application-row:hover,
.application-row:focus-within,
.recruitment-table tbody tr:hover {
  background: var(--color-brand-soft);
}

.recruitment-media-tile {
  transition: border-color var(--transition-recruitment), background-color var(--transition-recruitment), transform var(--transition-recruitment), box-shadow var(--transition-recruitment);
}

.discovery-influencer-row:hover .recruitment-media-tile,
.discovery-influencer-row:focus-within .recruitment-media-tile {
  border-color: var(--color-brand);
  box-shadow: 0 5px 12px rgba(17, 17, 17, .045);
  transform: translateY(-1px);
}

.recruitment-button svg,
.recruitment-icon-link svg {
  transition: transform var(--transition-recruitment);
}

.recruitment-button:hover:not(:disabled) svg {
  transform: translateX(2px);
}

.recruitment-button--primary.is-complete,
.recruitment-button--secondary.is-complete,
.recruitment-button--quiet.is-complete {
  border-color: #b9e5d0;
  background: var(--color-success-soft);
  color: var(--color-success);
}

.recruitment-button--primary.is-complete:hover:not(:disabled),
.recruitment-button--secondary.is-complete:hover:not(:disabled),
.recruitment-button--quiet.is-complete:hover:not(:disabled) {
  border-color: var(--color-success);
  background: var(--color-success-soft);
  color: var(--color-success);
}

@media (max-width: 767px) {
  .recruitment-filterbar__summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .recruitment-filterbar__chips {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recruitment-module { animation: none; }
  .recruitment-search__clear,
  .recruitment-search__submit,
  .recruitment-criterion,
  .recruitment-filterbar__clear-all,
  .influencer-featured-card,
  .publisher-featured-card,
  .publisher-card,
  .partner-card,
  .application-row,
  .recruitment-table tbody tr,
  .recruitment-media-tile,
  .recruitment-button svg,
  .recruitment-icon-link svg { transition-duration: .01ms !important; }
}

/* Finance / Transaction history */
body.is-transaction-history-page {
  --transaction-history-red: #e60000;
  --transaction-history-red-dark: #c90000;
  --transaction-history-soft-red: #fde8e8;
  --transaction-history-selected-red: #ff312e;
  --transaction-history-border: #e3e7ed;
  --transaction-history-line: #edf0f3;
  --transaction-history-text: #111111;
  --transaction-history-text-strong: #1f2937;
  --transaction-history-text-secondary: #374151;
  --transaction-history-text-muted: #4b5563;
  --transaction-history-green: #13864e;
  --transaction-history-orange: #b96b00;
  background: #ffffff;
}

.is-transaction-history-page .page-header { min-height: 104px; margin-bottom: 18px; }
.is-transaction-history-page .scope-line,
.is-transaction-history-page .page-header__filters { display: none; }
.is-transaction-history-page .page-header__actions { width: auto; flex: 0 0 auto; gap: 20px; padding-top: 0; }
.is-transaction-history-page .page-header__utility { padding-top: 0; }
.is-transaction-history-page .breadcrumb [data-breadcrumb-parent] { color: var(--transaction-history-red); font-weight: 600; }
.is-transaction-history-page .breadcrumb strong,
.is-transaction-history-page .page-header h1 { color: var(--transaction-history-text); }
.is-transaction-history-page .page-header h1 { font-size: 30px; letter-spacing: -.9px; }
.is-transaction-history-page .page-header p { max-width: 720px; color: var(--transaction-history-text-secondary); font-size: 13px; }
.is-transaction-history-page .nav-item[data-nav-item="finance"] { background: var(--transaction-history-red); color: #fff; }
.is-transaction-history-page .nav-item[data-nav-item="finance"]:hover { background: var(--transaction-history-red-dark); color: #fff; }
.is-transaction-history-page .nav-item[data-nav-item="finance"] .nav-item__icon,
.is-transaction-history-page .nav-item[data-nav-item="finance"] .nav-item__chevron { color: #fff; }
.is-transaction-history-page .nav-child[data-nav-child="transaction-history"] { background: var(--transaction-history-soft-red); box-shadow: inset 3px 0 0 var(--transaction-history-selected-red); color: var(--transaction-history-selected-red); font-weight: 600; }

.transaction-history-page[hidden] { display: none; }
.transaction-history-page { display: block; color: var(--transaction-history-text-secondary); font-size: 11px; }
.transaction-history-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.transaction-history-summary-card { display: flex; min-width: 0; min-height: 108px; align-items: center; gap: 16px; padding: 18px 17px; border: 1px solid var(--transaction-history-border); border-radius: 7px; background: #fff; }
.transaction-history-summary-card__icon { display: grid; width: 51px; height: 51px; flex: 0 0 51px; place-items: center; border-radius: 8px; }
.transaction-history-summary-card__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.transaction-history-summary-card--coral .transaction-history-summary-card__icon { background: #ffe6e6; color: var(--transaction-history-red); }
.transaction-history-summary-card--green .transaction-history-summary-card__icon { background: #eaf7df; color: var(--transaction-history-green); }
.transaction-history-summary-card--orange .transaction-history-summary-card__icon { background: #fff0dc; color: #e87500; }
.transaction-history-summary-card__copy { display: grid; min-width: 0; gap: 5px; }
.transaction-history-summary-card__copy > span { display: inline-flex; align-items: center; gap: 4px; color: var(--transaction-history-text-muted); font-size: 11px; line-height: 1.35; }
.transaction-history-summary-card__copy > strong { color: var(--transaction-history-text-strong); font-size: 18px; font-weight: 700; letter-spacing: -.35px; line-height: 1.1; }
.transaction-history-summary-card__note { overflow: hidden; color: var(--transaction-history-text-muted); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.transaction-history-summary-card__note--positive { color: var(--transaction-history-green); }
.transaction-history-info { width: 14px; height: 14px; padding: 0; border: 0; background: transparent; color: var(--transaction-history-text-muted); cursor: pointer; }
.transaction-history-info svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.transaction-history-card { min-width: 0; border: 1px solid var(--transaction-history-border); border-radius: 7px; background: #fff; }
.transaction-history-card__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 18px 16px 14px; }
.transaction-history-card__header h2 { margin: 0 0 5px; color: var(--transaction-history-text-strong); font-size: 15px; letter-spacing: -.15px; }
.transaction-history-card__header p { margin: 0; color: var(--transaction-history-text-muted); font-size: 11px; line-height: 1.4; }
.transaction-history-card__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.transaction-history-card__actions .button { min-height: 31px; padding: 0 12px; border-radius: 5px; font-size: 11px; white-space: nowrap; }
.transaction-history-card__actions .button--secondary { border-color: #cfd5dd; color: var(--transaction-history-text-secondary); }
.transaction-history-card__actions .button--secondary:hover { border-color: var(--transaction-history-red); color: var(--transaction-history-red); }
.transaction-history-card__actions .button--primary { border-color: #161616; background: #161616; color: #fff; }
.transaction-history-card__actions .button--primary:hover { border-color: #343434; background: #343434; }
.transaction-history-card__actions svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.transaction-history-toolbar { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.transaction-history-filter { position: relative; display: inline-flex; min-width: 104px; height: 36px; align-items: center; }
.transaction-history-filter select { width: 100%; height: 36px; appearance: none; padding: 0 25px 0 10px; border: 1px solid #dce1e7; border-radius: 5px; outline: 0; background: #fff; color: var(--transaction-history-text-secondary); cursor: pointer; font: inherit; font-size: 11px; font-weight: 500; }
.transaction-history-filter select:hover,
.transaction-history-filter select:focus { border-color: var(--focus-accent); box-shadow: none; }
.transaction-history-filter::after { position: absolute; top: 14px; right: 10px; width: 5px; height: 5px; border-right: 1px solid var(--transaction-history-text-muted); border-bottom: 1px solid var(--transaction-history-text-muted); content: ''; pointer-events: none; transform: rotate(45deg); }
.transaction-history-filter--time { min-width: 106px; }
.transaction-history-filter--time svg { position: absolute; right: 26px; width: 13px; height: 13px; fill: none; stroke: var(--transaction-history-text-muted); stroke-width: 1.7; pointer-events: none; }
.transaction-history-filter--time select { padding-right: 42px; }
.transaction-history-search { display: inline-flex; min-width: 210px; height: 36px; align-items: center; margin-left: auto; border: 1px solid #dce1e7; border-radius: 5px; background: #fff; }
.transaction-history-search:focus-within { border-color: var(--focus-accent); box-shadow: none; }
.transaction-history-search > svg { width: 14px; height: 14px; margin-left: 10px; flex: 0 0 auto; fill: none; stroke: var(--transaction-history-text-muted); stroke-width: 1.8; }
.transaction-history-search input { min-width: 0; flex: 1; height: 34px; padding: 0 8px; border: 0; outline: 0; background: transparent; color: var(--transaction-history-text-secondary); font: inherit; font-size: 11px; }
.transaction-history-search input::placeholder { color: var(--transaction-history-text-muted); }
.transaction-history-search button,
.transaction-history-columns { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 0; background: transparent; color: var(--transaction-history-text-secondary); cursor: pointer; }
.transaction-history-search button svg,
.transaction-history-columns svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.transaction-history-search button:hover,
.transaction-history-columns:hover { color: var(--transaction-history-red); }
.transaction-history-columns { width: 36px; height: 36px; flex-basis: 36px; border: 1px solid #dce1e7; border-radius: 5px; }

.transaction-history-table-scroll { overflow-x: auto; border-top: 1px solid var(--transaction-history-line); border-bottom: 1px solid var(--transaction-history-line); }
.transaction-history-table { width: 100%; min-width: 1290px; border-collapse: collapse; table-layout: fixed; }
.transaction-history-table th,
.transaction-history-table td { height: 41px; padding: 0 9px; border-bottom: 1px solid #f0f2f5; color: var(--transaction-history-text-secondary); font-size: 11px; line-height: 1.35; text-align: left; vertical-align: middle; white-space: nowrap; }
.transaction-history-table th { height: 38px; background: #fafbfc; color: var(--transaction-history-text-muted); font-size: 11px; font-weight: 700; }
.transaction-history-table tbody tr:last-child td { border-bottom: 0; }
.transaction-history-table th:first-child,
.transaction-history-table td:first-child { padding-left: 14px; }
.transaction-history-col--check { width: 39px; }
.transaction-history-col--order { width: 126px; }
.transaction-history-col--date { width: 157px; }
.transaction-history-col--items { width: 122px; }
.transaction-history-col--quantity { width: 65px; }
.transaction-history-col--country { width: 111px; }
.transaction-history-col--sales { width: 103px; }
.transaction-history-col--commission-id { width: 129px; }
.transaction-history-col--commission { width: 111px; }
.transaction-history-col--coupon { width: 105px; }
.transaction-history-col--group { width: 72px; }
.transaction-history-col--status { width: 81px; }
.transaction-history-col--action { width: 48px; }
.transaction-history-row:hover td,
.transaction-history-row.is-expanded td { background: #fffafa; }
.transaction-history-row.is-expanded td { border-bottom-color: transparent; }
.transaction-history-cell--order strong,
.transaction-history-cell--amount strong,
.transaction-history-cell--commission strong { color: var(--transaction-history-text-strong); font-weight: 700; }
.transaction-history-cell--items { overflow: hidden; text-overflow: ellipsis; }
.transaction-history-cell--items > span { display: inline-block; max-width: 78px; overflow: hidden; color: var(--transaction-history-text-secondary); text-overflow: ellipsis; vertical-align: middle; }
.transaction-history-items-toggle { display: inline-flex; align-items: center; gap: 2px; margin-right: 3px; padding: 0; border: 0; background: transparent; color: var(--transaction-history-text-strong); cursor: pointer; vertical-align: middle; }
.transaction-history-items-toggle strong { font-size: 11px; }
.transaction-history-items-toggle svg,
.transaction-history-sort svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.transaction-history-items-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.transaction-history-sort { width: 13px; height: 13px; padding: 0; border: 0; background: transparent; color: var(--transaction-history-text-muted); cursor: pointer; vertical-align: middle; }
.transaction-history-cell--commission small { margin-left: 3px; color: var(--transaction-history-text-muted); font-size: 11px; }
.transaction-history-status { display: inline-flex; min-height: 22px; align-items: center; gap: 5px; padding: 0 9px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.transaction-history-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.transaction-history-status--paid { background: #e8f7ee; color: var(--transaction-history-green); }
.transaction-history-status--pending { background: #fff0da; color: var(--transaction-history-orange); }
.transaction-history-status--void { background: #fde7e7; color: #c43a35; }
.transaction-history-row-action { display: grid; width: 25px; height: 25px; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--transaction-history-text-secondary); cursor: pointer; }
.transaction-history-row-action:hover,
.transaction-history-row-action:focus-visible { background: var(--transaction-history-soft-red); color: var(--transaction-history-red); }
.transaction-history-row-action svg { width: 15px; height: 15px; fill: currentColor; }
.transaction-history-checkbox { display: inline-grid; width: 16px; height: 16px; place-items: center; cursor: pointer; }
.transaction-history-checkbox input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.transaction-history-checkbox span { display: block; width: 15px; height: 15px; border: 1px solid #cbd2db; border-radius: 3px; background: #fff; }
.transaction-history-checkbox input:checked + span,
.transaction-history-checkbox input:indeterminate + span { border-color: var(--transaction-history-red); background: var(--transaction-history-red); box-shadow: inset 0 0 0 3px #fff; }
.transaction-history-checkbox input:focus-visible + span { outline: 2px solid var(--transaction-history-selected-red); outline-offset: 2px; }
.transaction-history-items-row td { height: auto; padding: 0 14px 11px 55px; background: #fffafa; }
.transaction-history-items-panel { display: grid; gap: 7px; padding: 10px 12px; border: 1px solid #f3dede; border-radius: 5px; background: #fff; }
.transaction-history-items-panel > strong { color: var(--transaction-history-text-strong); font-size: 11px; }
.transaction-history-items-panel > div { display: flex; flex-wrap: wrap; gap: 8px; }
.transaction-history-items-panel > div > span { display: grid; gap: 2px; min-width: 145px; padding: 7px 9px; border-radius: 4px; background: #fafbfc; }
.transaction-history-items-panel b { color: var(--transaction-history-text-secondary); font-size: 11px; }
.transaction-history-items-panel small { color: var(--transaction-history-text-muted); font-size: 11px; }
.transaction-history-empty { height: 105px !important; text-align: center !important; }
.transaction-history-empty strong,
.transaction-history-empty span { display: block; }
.transaction-history-empty strong { color: var(--transaction-history-text-strong); font-size: 12px; }
.transaction-history-empty span { margin-top: 5px; color: var(--transaction-history-text-muted); font-size: 11px; }

.transaction-history-table-footer { display: flex; min-height: 57px; align-items: center; justify-content: space-between; gap: 14px; padding: 0 14px; color: var(--transaction-history-text-muted); font-size: 11px; }
.transaction-history-footer-controls { display: flex; align-items: center; gap: 20px; }
.transaction-history-pagination { display: flex; align-items: center; gap: 4px; }
.transaction-history-pagination button { display: grid; min-width: 25px; height: 25px; place-items: center; padding: 0 5px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--transaction-history-text-secondary); cursor: pointer; font: inherit; font-size: 11px; }
.transaction-history-pagination button:hover:not(:disabled) { border-color: var(--transaction-history-soft-red); background: #fffafa; color: var(--transaction-history-red); }
.transaction-history-pagination button.is-current { border-color: var(--transaction-history-selected-red); color: var(--transaction-history-red); font-weight: 700; }
.transaction-history-pagination button:disabled { color: #c4c9d0; cursor: not-allowed; }
.transaction-history-pagination__ellipsis { padding: 0 3px; color: var(--transaction-history-text-muted); }
.transaction-history-page-size { position: relative; display: inline-flex; height: 32px; align-items: center; }
.transaction-history-page-size select { height: 32px; appearance: none; padding: 0 29px 0 10px; border: 1px solid #dce1e7; border-radius: 5px; outline: 0; background: #fff; color: var(--transaction-history-text-secondary); font: inherit; font-size: 11px; }
.transaction-history-page-size > svg { position: absolute; right: 9px; width: 12px; height: 12px; fill: none; stroke: var(--transaction-history-text-muted); stroke-width: 1.8; pointer-events: none; }
.transaction-history-card button:focus-visible,
.transaction-history-card select:focus-visible,
.transaction-history-card input:focus-visible { outline: 2px solid var(--transaction-history-selected-red); outline-offset: 2px; }

@media (max-width: 1220px) {
  .transaction-history-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transaction-history-search { margin-left: 0; }
}

@media (max-width: 767px) {
  .is-transaction-history-page .page-header { min-height: 0; }
  .is-transaction-history-page .page-header__actions { display: grid; gap: 14px; padding-top: 16px; }
  .transaction-history-summary-grid { grid-template-columns: 1fr; }
  .transaction-history-card__header { align-items: flex-start; flex-direction: column; }
  .transaction-history-card__actions { width: 100%; flex-wrap: wrap; }
  .transaction-history-card__actions .button { flex: 1 1 145px; }
  .transaction-history-toolbar { align-items: stretch; }
  .transaction-history-filter { flex: 1 1 145px; }
  .transaction-history-search { width: 100%; flex-basis: 100%; }
  .transaction-history-columns { display: none; }
  .transaction-history-table-footer { align-items: flex-start; flex-direction: column; padding-block: 12px; }
  .transaction-history-footer-controls { width: 100%; justify-content: space-between; }
}


/* Interaction and readability refinement: practical controls, clearer hierarchy. */
:root {
  --color-text-soft: #374151;
  --color-text-muted: #4b5563;
  --color-border: #d1d5db;
  --color-border-strong: #9ca3af;
  --radius-sidebar: 0;
  --sidebar-collapsed-width: 84px;
  --shadow-card-hover: 0 0 0 1px rgb(17 24 39 / 14%);
  --focus-accent: #b8525e;
  --focus-accent-soft: rgb(184 82 94 / 14%);
  --focus-press: cubic-bezier(0.32, 0.72, 0, 1);
}

.sidebar,
.main-content {
  transition: width var(--transition-base), margin-left var(--transition-base), padding var(--transition-base);
}

.sidebar {
  border-color: #d1d5db;
  border-radius: 0;
}

.sidebar__top-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sidebar__collapse {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.sidebar__collapse:hover {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.sidebar__collapse svg {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
  transition: transform var(--transition-base);
}

body.is-sidebar-collapsed {
  --sidebar-width: var(--sidebar-collapsed-width);
}

body.is-sidebar-collapsed .sidebar__top {
  justify-content: center;
  padding-inline: 12px;
}

body.is-sidebar-collapsed .sidebar__top-actions {
  position: absolute;
  top: 20px;
  right: 8px;
}

body.is-sidebar-collapsed .sidebar__collapse svg {
  transform: rotate(-90deg);
}

body.is-sidebar-collapsed .brand__wordmark strong,
body.is-sidebar-collapsed .sidebar__label,
body.is-sidebar-collapsed .nav-item__label,
body.is-sidebar-collapsed .nav-item__chevron,
body.is-sidebar-collapsed .sidebar__utility > span,
body.is-sidebar-collapsed .account-card__copy,
body.is-sidebar-collapsed .account-card > svg {
  display: none;
}

body.is-sidebar-collapsed .brand__wordmark b {
  color: var(--color-brand);
  font-size: 22px;
}

body.is-sidebar-collapsed .sidebar__navigation {
  padding-inline: 14px;
}

body.is-sidebar-collapsed .nav-item,
body.is-sidebar-collapsed .sidebar__utility {
  justify-content: center;
  padding-inline: 0;
}

body.is-sidebar-collapsed .nav-item__icon {
  width: 24px;
  flex-basis: 24px;
}

body.is-sidebar-collapsed .nav-children {
  grid-template-rows: 0fr !important;
  opacity: 0;
}

body.is-sidebar-collapsed .sidebar__footer {
  padding-inline: 14px;
}

body.is-sidebar-collapsed .account-card {
  justify-content: center;
  padding: 10px;
}

.brand__wordmark b {
  color: var(--color-brand);
}

.nav-item.is-active {
  box-shadow: inset 3px 0 0 #fff;
}

:where(button, a, input, select, textarea):focus-visible {
  box-shadow: none;
}

:where(.metric-card, .quick-action, .action-card, .sidebar__utility, .account-card, .products-asset-card, .recruitment-button, .workspace-button, .campaign-row-action, .messages-list__item):hover {
  border-color: var(--color-border-strong);
}

.has-interaction-pulse {
  outline: none !important;
  box-shadow: none !important;
  animation: interaction-pulse 420ms var(--focus-press);
}

@keyframes interaction-pulse {
  0%, 100% { opacity: 1; transform: translateZ(0); }
  35% { opacity: .9; transform: translateY(1px) scale(.985); }
}

.content-frame table th {
  font-size: 11px !important;
  line-height: 1.4;
}

.content-frame table td {
  font-size: 12px !important;
  line-height: 1.45;
}

.content-frame :is(input, select, textarea, .button) {
  font-size: 12px !important;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .sidebar__collapse { display: none; }
  body.is-sidebar-collapsed { --sidebar-width: 272px; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .main-content,
  .sidebar__collapse,
  .sidebar__collapse svg,
  .has-interaction-pulse { transition: none !important; animation: none !important; }
}

/* Coupon attribution: high-contrast rules workspace. */
body.is-coupon-attribution-page { --coupon-attribution-red:#e60000; --coupon-attribution-red-dark:#cd0200; --coupon-attribution-soft-red:#fde8e8; --coupon-attribution-selected-red:#ff312e; --coupon-attribution-border:#d1d5db; --coupon-attribution-text-strong:#1f2937; --coupon-attribution-text:#374151; --coupon-attribution-text-muted:#4b5563; }
body.is-coupon-attribution-page .nav-item[data-nav-item="commission-rules"] { background:var(--coupon-attribution-red); color:#fff; }
body.is-coupon-attribution-page .nav-child[data-nav-child="coupon-attribution"] { background:var(--coupon-attribution-soft-red); box-shadow:inset 3px 0 0 var(--coupon-attribution-selected-red); color:var(--coupon-attribution-selected-red); font-weight:600; }
.coupon-attribution-page { display:grid; gap:14px; color:var(--coupon-attribution-text); }
.coupon-attribution-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.coupon-attribution-summary-card,.coupon-attribution-card,.coupon-attribution-detail-card { min-width:0; border:1px solid var(--coupon-attribution-border); border-radius:6px; background:#fff; }
.coupon-attribution-summary-card { display:flex; min-height:98px; align-items:center; justify-content:space-between; gap:16px; padding:15px 17px; }
.coupon-attribution-summary-card__copy,.coupon-attribution-card__header,.coupon-attribution-filter,.coupon-attribution-search { display:grid; gap:5px; }
.coupon-attribution-summary-card__copy > span,.coupon-attribution-summary-card__copy small,.coupon-attribution-card__header p,.coupon-attribution-filter > span { color:var(--coupon-attribution-text-muted); font-size:11px; line-height:1.45; }
.coupon-attribution-summary-card__copy strong,.coupon-attribution-card__header h2 { color:var(--coupon-attribution-text-strong); font-weight:700; }
.coupon-attribution-summary-card__copy strong { font-size:20px; }
.coupon-attribution-card__header h2 { margin:0; font-size:15px; }
.coupon-attribution-card__header { padding:17px 18px 14px; }
.coupon-attribution-toolbar { display:grid; grid-template-columns:repeat(4,minmax(130px,1fr)) minmax(190px,1.1fr); gap:8px; align-items:end; padding:0 18px 14px; }
.coupon-attribution-filter select,.coupon-attribution-search input { width:100%; height:34px; min-width:0; padding:0 9px; border:1px solid var(--coupon-attribution-border); border-radius:5px; background:#fff; color:var(--coupon-attribution-text); font:inherit; font-size:12px; }
.coupon-attribution-table-scroll { overflow-x:auto; border-top:1px solid #e5e7eb; }
.coupon-attribution-table { width:100%; min-width:980px; border-collapse:collapse; }
.coupon-attribution-table th,.coupon-attribution-table td { padding:10px; border-bottom:1px solid #e5e7eb; text-align:left; vertical-align:middle; }
.coupon-attribution-table th { background:#fbfcfd; color:var(--coupon-attribution-text-muted); font-size:11px; font-weight:700; }
.coupon-attribution-table td { color:var(--coupon-attribution-text); font-size:12px; line-height:1.45; }
.coupon-attribution-table tbody tr { cursor:pointer; }
.coupon-attribution-table tbody tr:hover,.coupon-attribution-table tbody tr.is-selected { background:#fff8f8; }
.coupon-attribution-table tbody tr.is-selected { box-shadow:inset 3px 0 0 var(--coupon-attribution-selected-red); }
.coupon-attribution-layout { display:grid; grid-template-columns:minmax(0,1.85fr) minmax(340px,.9fr); gap:14px; align-items:start; }
.coupon-attribution-detail-card { position:sticky; top:14px; padding:18px; }
@media (max-width:980px) { .coupon-attribution-layout { grid-template-columns:1fr; } .coupon-attribution-detail-card { position:static; } }
@media (max-width:767px) { .coupon-attribution-summary-grid { grid-template-columns:1fr; } .coupon-attribution-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); padding-inline:14px; } }

/* PPC reuses the readable Restriction Rules palette and navigation treatment. */
body.is-ppc-page {
  --restriction-rules-red: #e60000;
  --restriction-rules-red-dark: #cd0200;
  --restriction-rules-soft-red: #fde8e8;
  --restriction-rules-selected-red: #ff312e;
  --restriction-rules-text-strong: #1f2937;
  --restriction-rules-text: #374151;
  --restriction-rules-text-muted: #4b5563;
}
body.is-ppc-page .nav-item[data-nav-item="commission-rules"] {
  background: var(--restriction-rules-red);
  color: #fff;
}
body.is-ppc-page .nav-child[data-nav-child="ppc"] {
  background: var(--restriction-rules-soft-red);
  box-shadow: inset 3px 0 0 var(--restriction-rules-selected-red);
  color: var(--restriction-rules-selected-red);
  font-weight: 600;
}

/* Campaigns 子页面的交互层：保持商务基调，强化状态反馈与层次 */
.campaigns-support-module--programs,
.campaigns-support-module--influencer {
  --campaign-support-spring: 520ms cubic-bezier(.32, .72, 0, 1);
}

.campaigns-support-module--programs .program-card,
.campaigns-support-module--influencer .influencer-card {
  position: relative;
  animation: campaign-support-card-reveal 560ms cubic-bezier(.32, .72, 0, 1) both;
  animation-delay: calc(var(--card-index, 0) * 45ms);
}

.campaigns-support-module--programs .program-card {
  overflow: hidden;
  transition: border-color var(--campaign-support-spring), background var(--campaign-support-spring), box-shadow var(--campaign-support-spring), transform var(--campaign-support-spring);
}

.campaigns-support-module--programs .program-card::after {
  position: absolute;
  top: 0;
  right: 17px;
  left: 17px;
  height: 2px;
  border-radius: 0 0 var(--radius-chip) var(--radius-chip);
  background: var(--color-brand);
  content: '';
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--campaign-support-spring);
}

.campaigns-support-module--programs .program-card:hover,
.campaigns-support-module--programs .program-card.is-selected {
  border-color: rgba(230, 0, 0, .24);
  background: linear-gradient(145deg, var(--color-surface), #fff9f9);
  box-shadow: 0 16px 30px rgba(17, 17, 17, .07);
  transform: translateY(-3px);
}

.campaigns-support-module--programs .program-card:hover::after,
.campaigns-support-module--programs .program-card.is-selected::after {
  transform: scaleX(1);
}

.campaigns-support-module--influencer .influencer-card {
  transition: background var(--campaign-support-spring), box-shadow var(--campaign-support-spring), transform var(--campaign-support-spring);
}

.campaigns-support-module--influencer .influencer-card.is-selected {
  background: linear-gradient(90deg, #fff7f7 0%, transparent 42%);
  box-shadow: inset 3px 0 0 var(--color-brand), 0 10px 22px rgba(17, 17, 17, .045);
}

.campaigns-support-module--influencer .influencer-card:hover .influencer-card__video-cover,
.campaigns-support-module--programs .program-card:hover .campaign-support-mark {
  transform: translateY(-2px) scale(1.015);
}

.campaigns-support-module--influencer .influencer-card__video-cover,
.campaigns-support-module--programs .campaign-support-mark {
  transition: transform var(--campaign-support-spring), box-shadow var(--campaign-support-spring);
}

.campaigns-support-module--programs .program-card__footer button,
.campaigns-support-module--influencer .influencer-card__action,
.campaigns-support-module--programs .campaign-support-button,
.campaigns-support-module--influencer .campaign-support-button {
  transition: color var(--campaign-support-spring), background var(--campaign-support-spring), border-color var(--campaign-support-spring), transform var(--campaign-support-spring), box-shadow var(--campaign-support-spring);
}

.campaigns-support-module--programs .program-card__footer button:hover,
.campaigns-support-module--influencer .influencer-card__action:hover,
.campaigns-support-module--programs .campaign-support-button:hover,
.campaigns-support-module--influencer .campaign-support-button:hover {
  transform: translateY(-2px);
}

.campaigns-support-module--programs .program-card__footer button:active,
.campaigns-support-module--influencer .influencer-card__action:active,
.campaigns-support-module--programs .campaign-support-button:active,
.campaigns-support-module--influencer .campaign-support-button:active {
  transform: translateY(0) scale(.98);
}

.campaign-support-filter-panel {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.8fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(230, 0, 0, .13);
  border-radius: 14px;
  background: linear-gradient(120deg, #fff7f7, #fff 64%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 9px 20px rgba(17, 17, 17, .035);
  animation: campaign-support-panel-reveal 420ms cubic-bezier(.32, .72, 0, 1) both;
}

.campaign-support-filter-panel__intro,
.campaign-support-filter-panel__controls > div {
  display: grid;
  gap: 5px;
}

.campaign-support-filter-panel__intro strong {
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 600;
}

.campaign-support-filter-panel__intro > span:last-child {
  color: var(--color-text-muted);
  font-size: 11px;
}

.campaign-support-filter-panel__controls {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.campaign-support-filter-panel__label {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.campaign-support-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.campaign-support-filter-chip {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-chip);
  background: rgba(255, 255, 255, .78);
  color: var(--color-text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  transition: background var(--campaign-support-spring), border-color var(--campaign-support-spring), color var(--campaign-support-spring), transform var(--campaign-support-spring);
}

.campaign-support-filter-chip:hover,
.campaign-support-filter-chip:focus-visible {
  border-color: rgba(230, 0, 0, .25);
  color: var(--color-brand);
  transform: translateY(-1px);
}

.campaign-support-filter-chip.is-selected {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: var(--color-canvas);
}

.campaign-support-filter-panel__reset {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-chip);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  transition: border-color var(--campaign-support-spring), color var(--campaign-support-spring), transform var(--campaign-support-spring);
}

.campaign-support-filter-panel__reset:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  transform: translateY(-1px);
}

.merchant-drawer[data-drawer-type="campaign-support"] .drawer-header {
  padding-bottom: 22px;
}

.merchant-drawer[data-drawer-type="campaign-support"] .drawer-section {
  animation: campaign-support-drawer-rise 560ms cubic-bezier(.32, .72, 0, 1) both;
}

.merchant-drawer[data-drawer-type="campaign-support"] .drawer-section:nth-of-type(2) { animation-delay: 55ms; }
.merchant-drawer[data-drawer-type="campaign-support"] .drawer-section:nth-of-type(3) { animation-delay: 100ms; }

.campaign-drawer-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.campaign-drawer-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 3px solid var(--color-surface);
  border-radius: 18px;
  background: var(--color-brand-soft);
  box-shadow: 0 10px 22px rgba(17, 17, 17, .1);
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 700;
}

.campaign-drawer-avatar--purple { background: var(--color-purple-soft); color: var(--color-purple); }
.campaign-drawer-avatar--green { background: var(--color-success-soft); color: var(--color-success); }
.campaign-drawer-avatar--blue { background: #e4f2f8; color: #4b819a; }
.campaign-drawer-avatar--orange { background: var(--color-warning-soft); color: var(--color-warning); }

.campaign-drawer-signal {
  display: grid;
  gap: 8px;
  padding: 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff5f5, #fff);
}

.campaign-drawer-signal span,
.campaign-drawer-signal strong {
  color: var(--color-text-soft);
  font-size: 11px;
}

.campaign-drawer-signal strong {
  font-size: 13px;
  font-weight: 600;
}

.campaign-drawer-signal i {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: var(--radius-chip);
  background: var(--color-border);
}

.campaign-drawer-signal b {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--color-brand);
}

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

.campaign-drawer-video {
  position: relative;
  display: grid;
  min-height: 92px;
  align-content: end;
  gap: 3px;
  overflow: hidden;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(145deg, #f2d6ba, #b9705d);
  isolation: isolate;
}

.campaign-drawer-video::before {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 78%;
  height: 120%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  content: '';
  transform: rotate(24deg);
}

.campaign-drawer-video--slate { background: linear-gradient(145deg, #d6dfe5, #5c7180); }
.campaign-drawer-video--linen { background: linear-gradient(145deg, #f5e9dc, #c49b7d); }
.campaign-drawer-video--blue { background: linear-gradient(145deg, #d3edf4, #4c819a); }
.campaign-drawer-video--green { background: linear-gradient(145deg, #d9ead7, #719c74); }
.campaign-drawer-video > * { position: relative; z-index: 1; }
.campaign-drawer-video span { color: rgba(17, 17, 17, .62); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.campaign-drawer-video strong { color: var(--color-text); font-size: 11px; font-weight: 600; }
.campaign-drawer-video small { color: rgba(17, 17, 17, .7); font-size: 11px; }

.drawer-actions--campaign .button {
  transition: background var(--campaign-support-spring), border-color var(--campaign-support-spring), color var(--campaign-support-spring), transform var(--campaign-support-spring), box-shadow var(--campaign-support-spring);
}

.drawer-actions--campaign .button:hover {
  transform: translateY(-2px);
}

@keyframes campaign-support-card-reveal {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes campaign-support-panel-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes campaign-support-drawer-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .campaign-support-filter-panel {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .campaign-support-filter-panel__controls {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .campaign-support-filter-panel__reset {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .campaigns-support-module--programs .program-card,
  .campaigns-support-module--influencer .influencer-card,
  .campaign-support-filter-panel,
  .merchant-drawer[data-drawer-type="campaign-support"] .drawer-section {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

/* Sidebar selected states: clear hierarchy in both expanded and collapsed layouts. */
.sidebar .nav-item.is-active {
  background: var(--color-brand-soft);
  box-shadow: none;
  color: var(--color-text);
}

.sidebar .nav-item.is-active:hover {
  background: var(--color-brand-soft);
  color: var(--color-text);
}

.sidebar .nav-item:not(.is-active):hover {
  background: var(--color-brand-soft);
  color: var(--color-text);
}

.sidebar .nav-item.is-active::before {
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--color-brand);
}

.sidebar .nav-item:not(.is-active):hover::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -12px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--color-brand);
  content: "";
}

body:not(.is-sidebar-collapsed) .sidebar .nav-item:is(.is-active, :hover) .nav-item__label {
  color: var(--color-text);
}

body:not(.is-sidebar-collapsed) .sidebar .nav-item:is(.is-active, :hover) :is(.nav-item__icon, .nav-item__chevron) {
  color: var(--color-nav-selected);
}

.sidebar .nav-child.is-active {
  background: transparent;
  box-shadow: none;
  color: var(--color-nav-selected);
  font-weight: 700;
}

.sidebar .nav-child.is-active:hover {
  background: transparent;
  color: var(--color-nav-selected);
}

.sidebar .nav-child:not(.is-active):hover {
  background: transparent;
  color: var(--color-nav-selected);
  font-weight: 700;
}

.sidebar .nav-child.is-active::before {
  border-color: var(--color-nav-selected);
  background: var(--color-nav-selected);
}

.sidebar .nav-child:not(.is-active):hover::before {
  border-color: var(--color-nav-selected);
  background: var(--color-nav-selected);
}

body.is-sidebar-collapsed .sidebar__top {
  justify-content: flex-end;
  padding: 18px 10px 12px;
}

body.is-sidebar-collapsed .sidebar__top-actions {
  position: static;
}

body.is-sidebar-collapsed .brand {
  display: none;
}

body.is-sidebar-collapsed .sidebar .nav-item.is-active {
  background: var(--color-brand);
  color: #ffffff;
}

body.is-sidebar-collapsed .sidebar .nav-item.is-active::before {
  display: none;
}

body.is-sidebar-collapsed .sidebar .nav-item:not(.is-active):hover {
  background: var(--color-brand);
  color: #ffffff;
}

body.is-sidebar-collapsed .sidebar .nav-item:not(.is-active):hover::before {
  display: none;
}

/* Target-only workspaces: settings, influencer campaigns, and header action feedback. */
.page-header__utility {
  position: relative;
}

.target-workspace {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding-bottom: 8px;
}

.target-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 0 0;
}

.target-toolbar h2 {
  margin: 4px 0 0;
  color: var(--color-text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.045em;
}

.target-toolbar p {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

.target-eyebrow {
  display: block;
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.target-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.target-button:hover,
.target-button:focus-visible {
  border-color: var(--color-brand);
  color: var(--color-brand);
  outline: none;
  transform: translateY(-1px);
}

.target-button--primary {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(230, 0, 0, .15);
}

.target-button--primary:hover,
.target-button--primary:focus-visible {
  border-color: var(--color-brand-hover);
  background: var(--color-brand-hover);
  color: #fff;
  box-shadow: 0 10px 22px rgba(230, 0, 0, .2);
}

.target-button__icon,
.target-button__icon svg {
  width: 14px;
  height: 14px;
}

.target-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  width: max-content;
  max-width: 100%;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: #f7f8fa;
}

.target-tab {
  min-height: 30px;
  padding: 0 13px;
  border-radius: 6px;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.target-tab:hover,
.target-tab:focus-visible {
  color: var(--color-text);
  outline: none;
}

.target-tab.is-active {
  background: #fff;
  color: var(--color-brand);
  box-shadow: 0 2px 6px rgba(17, 17, 17, .08);
}

.target-filterbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(138px, 1fr)) minmax(220px, 1.45fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: #fbfcfd;
}

.target-select,
.target-search {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.target-select > span {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.target-select select,
.target-search input {
  width: 100%;
  height: 36px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--color-text-soft);
  font-size: 11px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.target-select select:focus,
.target-search input:focus {
  border-color: var(--focus-accent);
  box-shadow: none;
}

.target-search {
  position: relative;
}

.target-search label {
  display: block;
}

.target-search input {
  padding-right: 38px;
}

.target-search button {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 5px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  cursor: pointer;
}

.target-search button:hover,
.target-search button:focus-visible {
  background: var(--color-brand);
  color: #fff;
  outline: none;
}

.target-search button svg {
  width: 14px;
  height: 14px;
}

.target-filterbar > .target-button {
  align-self: end;
}

.target-filter-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #f6caca;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff8f8, #fff);
  color: var(--color-text-muted);
  font-size: 11px;
}

.target-filter-panel::before {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-brand);
  box-shadow: 0 0 0 5px var(--color-brand-soft);
  content: '';
}

.target-filter-panel strong {
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 700;
}

.target-result-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 2px;
}

.target-result-heading h3 {
  margin: 4px 0 0;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.target-result-heading > span {
  color: var(--color-text-muted);
  font-size: 11px;
}

.target-influencer-grid {
  display: grid;
  gap: 11px;
}

.target-influencer-card {
  display: grid;
  grid-template-columns: 116px minmax(280px, 1.22fr) minmax(270px, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  box-shadow: 0 2px 0 rgba(17, 17, 17, .015);
  animation: target-card-enter 360ms var(--transition-base) both;
  animation-delay: calc(var(--target-card-index, 0) * 45ms);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.target-influencer-card:hover,
.target-influencer-card.is-selected {
  border-color: #f2a1a1;
  box-shadow: 0 10px 24px rgba(17, 17, 17, .07);
  transform: translateY(-2px);
}

.target-influencer-card.is-selected {
  box-shadow: 0 0 0 2px var(--color-brand-soft), 0 10px 24px rgba(17, 17, 17, .07);
}

.target-influencer-card__profile {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  border-right: 1px solid var(--color-border);
  background: linear-gradient(145deg, #fff, #f7f8fa);
}

.target-influencer-avatar,
.target-drawer-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-weight: 800;
  letter-spacing: -.04em;
}

.target-influencer-avatar {
  width: 74px;
  height: 74px;
  border: 5px solid #fff;
  box-shadow: 0 7px 16px rgba(17, 17, 17, .12);
  font-size: 19px;
}

.target-influencer-avatar--sand,
.target-drawer-avatar--sand { background: #f7eadb; color: #a96826; }
.target-influencer-avatar--slate,
.target-drawer-avatar--slate { background: #e8edf2; color: #53687b; }
.target-influencer-avatar--linen,
.target-drawer-avatar--linen { background: #f8f0e8; color: #9b6d43; }
.target-influencer-avatar--blue,
.target-drawer-avatar--blue { background: #e6f0fa; color: #3972a7; }
.target-influencer-avatar--green,
.target-drawer-avatar--green { background: #e6f4eb; color: #38835c; }

.target-influencer-favorite {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
  color: var(--color-brand);
  font-size: 18px;
  line-height: 1;
}

.target-influencer-card__body {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px 18px;
}

.target-influencer-card__heading,
.target-influencer-card__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.target-influencer-card__heading > div {
  min-width: 0;
}

.target-influencer-card h3 {
  overflow: hidden;
  margin: 0;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-influencer-card__heading > div > span {
  display: block;
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.target-status {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: var(--radius-chip);
  background: var(--color-success-soft);
  color: var(--color-success);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.target-status--warning { background: var(--color-warning-soft); color: var(--color-warning); }
.target-status--neutral { background: var(--color-border); color: var(--color-text-muted); }

.target-influencer-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.target-influencer-card__tags span {
  padding: 4px 7px;
  border: 1px solid #f3d2d2;
  border-radius: var(--radius-chip);
  background: #fff7f7;
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 600;
}

.target-influencer-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.target-influencer-card__meta > span {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 5px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.target-influencer-card__meta svg {
  grid-row: span 2;
  width: 13px;
  height: 13px;
  color: var(--color-brand);
}

.target-influencer-card__meta strong {
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 700;
}

.target-influencer-card__meta small {
  font-size: 11px;
}

.target-progress {
  display: grid;
  flex: 1 1 auto;
  min-width: 100px;
  gap: 6px;
}

.target-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.target-progress strong {
  color: var(--color-text-soft);
  font-weight: 700;
}

.target-progress > span {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: var(--radius-chip);
  background: #f0f1f3;
}

.target-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-brand), #ff7373);
}

.target-influencer-card__footer .target-button {
  min-height: 30px;
  padding-inline: 9px;
  font-size: 11px;
}

.target-influencer-card__videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border-left: 1px solid var(--color-border);
  background: #fcfcfd;
}

.target-influencer-video {
  min-width: 0;
  margin: 0;
}

.target-influencer-video__cover {
  position: relative;
  display: flex;
  min-height: 108px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px;
  border-radius: 7px;
  background: #e8edf2;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32);
  isolation: isolate;
}

.target-influencer-video__cover::before,
.target-influencer-video__cover::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: '';
}

.target-influencer-video__cover::before {
  width: 120px;
  height: 120px;
  right: -35px;
  bottom: -55px;
  background: rgba(255, 255, 255, .26);
}

.target-influencer-video__cover::after {
  width: 90px;
  height: 90px;
  top: -40px;
  left: -28px;
  border: 1px solid rgba(255, 255, 255, .42);
}

.target-influencer-video__cover--sand { background: linear-gradient(135deg, #b98155, #e7c3a0); }
.target-influencer-video__cover--linen { background: linear-gradient(135deg, #8d7070, #d7bbb1); }
.target-influencer-video__cover--slate { background: linear-gradient(135deg, #344856, #86a1b1); }
.target-influencer-video__cover--blue { background: linear-gradient(135deg, #3d6a93, #9ac5e6); }
.target-influencer-video__cover--green { background: linear-gradient(135deg, #44785d, #a7cfad); }

.target-influencer-video__cover > span {
  align-self: flex-start;
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 4px;
  background: rgba(17, 17, 17, .2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.target-influencer-video__cover > i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(17, 17, 17, .22);
  transform: translate(-50%, -50%);
}

.target-influencer-video__cover > i::after {
  position: absolute;
  top: 8px;
  left: 10px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #fff;
  content: '';
}

.target-influencer-video__cover strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(17, 17, 17, .3);
  white-space: nowrap;
}

.target-influencer-video figcaption {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding-top: 5px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.target-influencer-video figcaption span {
  color: var(--color-text-soft);
  font-weight: 600;
}

.target-empty {
  display: grid;
  min-height: 180px;
  place-content: center;
  gap: 5px;
  padding: 24px;
  border: 1px dashed var(--color-border-strong);
  border-radius: 10px;
  color: var(--color-text-muted);
  text-align: center;
}

.target-empty strong { color: var(--color-text-soft); font-size: 13px; }
.target-empty span { font-size: 11px; }

.target-settings-layout {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.target-settings-rail {
  display: grid;
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: #fbfcfd;
}

.target-settings-rail__item {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border-left: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.target-settings-rail__item svg { width: 15px; height: 15px; }
.target-settings-rail__item:hover { background: var(--color-brand-soft); color: var(--color-brand); }
.target-settings-rail__item.is-active { border-left-color: var(--color-brand); background: var(--color-brand-soft); color: var(--color-brand); }

.target-settings-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.target-settings-panel {
  padding: 17px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: var(--color-surface);
}

.target-panel-heading { margin-bottom: 14px; }
.target-panel-heading h3 { margin: 4px 0 0; font-size: 14px; font-weight: 700; letter-spacing: -.025em; }

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

.target-settings-form-grid__wide { grid-column: 1 / -1; }
.target-settings-form-grid label { display: grid; gap: 5px; }
.target-settings-form-grid label > span { color: var(--color-text-muted); font-size: 11px; font-weight: 600; }
.target-settings-form-grid input,
.target-settings-form-grid textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--color-text-soft);
  font-size: 11px;
  outline: none;
  resize: vertical;
}
.target-settings-form-grid input:focus,
.target-settings-form-grid textarea:focus { border-color: var(--focus-accent); box-shadow: none; }
.target-settings-form-grid--regional .target-select { width: 100%; }

.target-settings-preferences { display: grid; }

.target-settings-preference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-border);
}
.target-settings-preference:first-child { padding-top: 0; }
.target-settings-preference:last-child { padding-bottom: 0; border-bottom: 0; }
.target-settings-preference > div { display: grid; gap: 4px; min-width: 0; }
.target-settings-preference strong { color: var(--color-text-soft); font-size: 11px; font-weight: 700; }
.target-settings-preference span { color: var(--color-text-muted); font-size: 11px; }

.target-settings-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 37px;
  height: 21px;
  padding: 2px;
  border-radius: 999px;
  background: #d9dde2;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.target-settings-toggle i { display: block; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(17,17,17,.16); transition: transform var(--transition-fast); }
.target-settings-toggle.is-on { background: var(--color-brand); }
.target-settings-toggle.is-on i { transform: translateX(16px); }

.target-settings-actions { display: flex; justify-content: flex-end; gap: 8px; }

.target-drawer-avatar { width: 52px; height: 52px; font-size: 14px; }
.target-drawer-videos ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.target-drawer-videos li { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 9px; }
.target-drawer-video { display: grid; min-height: 36px; place-items: center; border-radius: 6px; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.target-drawer-video--sand { background: #b98155; }
.target-drawer-video--linen { background: #9d7c78; }
.target-drawer-video--slate { background: #536b79; }
.target-drawer-video--blue { background: #4b7fa9; }
.target-drawer-video--green { background: #4f8964; }
.target-drawer-videos li strong { display: block; color: var(--color-text-soft); font-size: 11px; }
.target-drawer-videos li small { display: block; margin-top: 3px; color: var(--color-text-muted); font-size: 11px; }

@keyframes target-card-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .target-filterbar { grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(190px, 1.2fr); }
  .target-filterbar > .target-button { width: 100%; }
  .target-influencer-card { grid-template-columns: 98px minmax(240px, 1fr) minmax(230px, .9fr); }
  .target-influencer-card__profile { min-height: 178px; }
  .target-influencer-avatar { width: 64px; height: 64px; }
}

@media (max-width: 900px) {
  .target-filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .target-search { grid-column: span 2; }
  .target-influencer-card { grid-template-columns: 94px minmax(0, 1fr); }
  .target-influencer-card__videos { grid-column: 1 / -1; border-top: 1px solid var(--color-border); border-left: 0; }
  .target-influencer-video__cover { min-height: 88px; }
}

@media (max-width: 767px) {
  .target-toolbar { flex-direction: column; }
  .target-toolbar .target-button { width: 100%; }
  .target-filterbar { grid-template-columns: 1fr; }
  .target-search { grid-column: auto; }
  .target-filterbar > .target-button { width: 100%; }
  .target-filter-panel { grid-template-columns: auto 1fr; }
  .target-filter-panel small { grid-column: 2; }
  .target-settings-layout { grid-template-columns: 1fr; }
  .target-settings-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .target-settings-form-grid { grid-template-columns: 1fr; }
  .target-settings-form-grid__wide { grid-column: auto; }
  .target-settings-actions { justify-content: stretch; }
  .target-settings-actions .target-button { flex: 1; }
}

@media (max-width: 479px) {
  .target-tabs { width: 100%; overflow-x: auto; }
  .target-tab { flex: 1 0 auto; }
  .target-influencer-card { grid-template-columns: 78px minmax(0, 1fr); }
  .target-influencer-card__profile { min-height: 160px; }
  .target-influencer-avatar { width: 52px; height: 52px; border-width: 3px; font-size: 14px; }
  .target-influencer-card__body { padding: 13px; }
  .target-influencer-card__heading { display: grid; }
  .target-influencer-card__meta { grid-template-columns: 1fr 1fr; }
  .target-influencer-card__footer { display: grid; }
  .target-influencer-card__footer .target-button { justify-self: start; }
  .target-settings-rail { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .target-influencer-card { animation: none; transition: none; }
  .target-button,
  .target-tab,
  .target-settings-toggle i { transition: none; }
}

/* Keep PPC and Messages on the current sidebar treatment even when their
   page-specific skins are present earlier in this stylesheet. */
body:not(.is-sidebar-collapsed).is-ppc-page .sidebar .nav-item[data-nav-item="commission-rules"],
body:not(.is-sidebar-collapsed).is-messages-page .sidebar .nav-item[data-nav-item="messages"] {
  background: var(--color-brand-soft);
  box-shadow: none;
  color: var(--color-text);
}

body:not(.is-sidebar-collapsed).is-ppc-page .sidebar .nav-item[data-nav-item="commission-rules"]:hover,
body:not(.is-sidebar-collapsed).is-messages-page .sidebar .nav-item[data-nav-item="messages"]:hover {
  background: var(--color-brand-soft);
  color: var(--color-text);
}

body:not(.is-sidebar-collapsed).is-ppc-page .sidebar .nav-item[data-nav-item="commission-rules"] .nav-item__label,
body:not(.is-sidebar-collapsed).is-messages-page .sidebar .nav-item[data-nav-item="messages"] .nav-item__label {
  color: var(--color-text);
}

body:not(.is-sidebar-collapsed).is-ppc-page .sidebar .nav-item[data-nav-item="commission-rules"] :is(.nav-item__icon, .nav-item__chevron),
body:not(.is-sidebar-collapsed).is-messages-page .sidebar .nav-item[data-nav-item="messages"] :is(.nav-item__icon, .nav-item__chevron) {
  color: var(--color-nav-selected);
}

body:not(.is-sidebar-collapsed).is-ppc-page .sidebar .nav-child[data-nav-child="ppc"].is-active,
body:not(.is-sidebar-collapsed).is-messages-page .sidebar .nav-child[data-nav-child="all-messages"].is-active {
  background: transparent;
  box-shadow: none;
  color: var(--color-nav-selected);
  font-weight: 700;
}

body:not(.is-sidebar-collapsed).is-ppc-page .sidebar .nav-child[data-nav-child="ppc"].is-active::before,
body:not(.is-sidebar-collapsed).is-messages-page .sidebar .nav-child[data-nav-child="all-messages"].is-active::before {
  border-color: var(--color-nav-selected);
  background: var(--color-nav-selected);
}

/* Single-layer interaction feedback: one active edge per control surface. */
:is(
  .recruitment-search__control,
  .help-center-search,
  .api-credentials-search,
  .products-assets-search,
  .campaign-support-search,
  .transaction-history-search
):focus-within {
  border-color: var(--focus-accent);
  background-color: var(--focus-accent-soft);
  outline: none;
  box-shadow: none;
}

:is(
  .recruitment-search__control,
  .help-center-search,
  .api-credentials-search,
  .products-assets-search,
  .campaign-support-search,
  .transaction-history-search
):focus-within input:focus {
  border-color: transparent;
  outline: none !important;
  box-shadow: none !important;
}

.recruitment-search__control input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.recruitment-settings-field-row:focus-within {
  outline: none;
}

.partner-group-select:focus-within {
  outline: 1px solid var(--focus-accent);
  outline-offset: 3px;
  box-shadow: none;
}

.partner-group-select select:focus {
  outline: none !important;
  box-shadow: none !important;
}

:is(
  .campaign-search input,
  .recruitment-settings-field input,
  .recruitment-settings-field select,
  .recruitment-settings-field textarea,
  .team-accounts-invite-form input,
  .team-accounts-search input,
  .team-accounts-brand-filter select,
  .team-accounts-page-size select,
  .team-accounts-filter-menu select,
  .workspace-select select,
  .workspace-invite-form input,
  .workspace-form-grid input,
  .workspace-form-grid select,
  .workspace-reply textarea,
  .workspace-search input,
  .products-assets-select select,
  .products-assets-field input,
  .products-assets-pagination select,
  .products-assets-sort select,
  .recruitment-drawer-form input,
  .recruitment-drawer-form textarea,
  .transaction-history-filter select,
  .transaction-history-page-size select,
  .target-select select,
  .target-search input,
  .target-settings-form-grid input,
  .target-settings-form-grid textarea
):focus {
  border-color: var(--focus-accent);
  outline: none !important;
  box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .has-interaction-pulse {
    animation: none;
  }
}
