.marketing-shell {
  --marketing-paper: #fffdf8;
  --marketing-soft: #eee8de;
  --marketing-quiet: #f7f2e9;
  --marketing-amber: #b87925;
  display: grid;
  gap: 16px;
  padding-bottom: 24px;
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, Arial, sans-serif;
  font-weight: 400;
}

.marketing-shell svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marketing-data-strip {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.74);
}

.marketing-data-source,
.marketing-data-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.marketing-data-source > i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(37, 119, 90, 0.1);
}

.marketing-data-strip.warning .marketing-data-source > i {
  background: var(--marketing-amber);
  box-shadow: 0 0 0 5px rgba(184, 121, 37, 0.12);
}

.marketing-data-source strong,
.marketing-data-source small {
  display: block;
}

.marketing-data-source strong {
  font-size: 12px;
  font-weight: 500;
}

.marketing-data-source small,
.marketing-data-actions > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.marketing-data-actions > span {
  margin: 0;
  white-space: nowrap;
}

.marketing-data-actions button,
.marketing-icon-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 11px;
  background: var(--marketing-paper);
  color: var(--ink);
  cursor: pointer;
}

.marketing-data-actions button:hover,
.marketing-icon-button:hover {
  border-color: #bcb3a5;
  background: #fff;
}

.marketing-data-actions button b {
  font-size: 11px;
  font-weight: 600;
}

.marketing-data-actions button svg,
.marketing-icon-button svg {
  width: 15px;
  height: 15px;
}

.marketing-notices {
  display: grid;
  gap: 8px;
}

.marketing-notice {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid #e8cda4;
  border-radius: 13px;
  background: #fff9ef;
}

.marketing-notice > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f5dfbd;
  color: #8d5a15;
}

.marketing-notice > span svg {
  width: 15px;
  height: 15px;
}

.marketing-notice strong,
.marketing-notice p {
  display: block;
  margin: 0;
}

.marketing-notice strong {
  font-size: 11px;
  font-weight: 600;
}

.marketing-notice p {
  margin-top: 3px;
  color: #7c6746;
  font-size: 10px;
  line-height: 1.45;
}

.marketing-notice.danger {
  border-color: #e4b5aa;
  background: #fff3ef;
}

.marketing-notice.danger > span {
  background: #f5d7d0;
  color: var(--red);
}

.marketing-notice.danger p {
  color: #854c40;
}

.marketing-tabs {
  position: sticky;
  top: 10px;
  z-index: 8;
  width: max-content;
  max-width: 100%;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(244, 239, 229, 0.92);
  box-shadow: 0 8px 24px rgba(25, 21, 15, 0.06);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.marketing-tabs::-webkit-scrollbar {
  display: none;
}

.marketing-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  padding: 0 15px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.marketing-tabs button:hover {
  color: var(--ink);
}

.marketing-tabs button.active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 16px rgba(17, 17, 15, 0.16);
}

.marketing-tab-panel {
  display: grid;
  gap: 16px;
}

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

.marketing-score {
  position: relative;
  min-width: 0;
  min-height: 146px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--marketing-paper);
  box-shadow: 0 8px 28px rgba(26, 22, 16, 0.035);
}

.marketing-score.primary {
  grid-column: span 2;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.marketing-score.primary::after {
  content: "";
  position: absolute;
  right: -37px;
  bottom: -61px;
  width: 146px;
  height: 146px;
  border: 28px solid rgba(239, 107, 77, 0.2);
  border-radius: 50%;
}

.marketing-score-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.marketing-score.primary .marketing-score-head {
  color: #c7c3bb;
}

.marketing-score-icon {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--marketing-quiet);
  color: var(--ink);
}

.marketing-score-icon svg {
  width: 15px;
  height: 15px;
}

.marketing-score.primary .marketing-score-icon {
  background: var(--coral);
  color: #fff;
}

.marketing-score > strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 14px 0 7px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}

.marketing-score.primary > strong {
  font-size: 38px;
}

.marketing-score > small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: auto;
  padding-top: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.marketing-score.primary > small {
  color: #aaa79f;
}

.marketing-delta {
  position: relative;
  z-index: 1;
  width: fit-content;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 8px;
  font-weight: 600;
}

.marketing-delta svg {
  width: 11px;
  height: 11px;
}

.marketing-delta.positive {
  background: #dcefe7;
  color: #216b51;
}

.marketing-delta.negative {
  background: #f7ded8;
  color: #9f4336;
}

.marketing-delta.neutral {
  background: #eee9df;
  color: var(--muted);
}

.marketing-score.primary .marketing-delta.positive {
  background: rgba(68, 164, 119, 0.2);
  color: #9bd6b9;
}

.marketing-score.primary .marketing-delta.negative {
  background: rgba(239, 107, 77, 0.18);
  color: #ffb19d;
}

.marketing-score.primary .marketing-delta.neutral {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa79f;
}

.marketing-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.75fr);
  align-items: start;
  gap: 14px;
}

.marketing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
}

.marketing-grid.equal {
  grid-template-columns: 1fr 1fr;
}

.marketing-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--marketing-paper);
  box-shadow: 0 8px 28px rgba(26, 22, 16, 0.035);
}

.marketing-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.marketing-card-head p {
  margin: 0 0 5px;
  color: var(--coral);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.marketing-card-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.marketing-card-head span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.marketing-text-link {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--coral);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.marketing-text-link:hover {
  color: #ca4e34;
}

.marketing-icon-button {
  width: 36px;
  padding: 0;
}

.marketing-chart {
  min-width: 0;
}

.marketing-chart-stage {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: 270px 24px;
  column-gap: 10px;
}

.marketing-chart-y-axis {
  position: relative;
  grid-row: 1;
  color: #8b877e;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.marketing-chart-y-axis span {
  position: absolute;
  top: var(--tick);
  right: 0;
  transform: translateY(-50%);
}

.marketing-chart-plot {
  position: relative;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}

.marketing-chart-plot svg {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.marketing-chart-grid {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  border-bottom: 1px solid #e8e1d6;
  pointer-events: none;
}

.marketing-chart-grid i {
  border-top: 1px solid #e8e1d6;
}

.marketing-chart-area {
  fill: url("#marketingAreaV3");
  stroke: none;
}

.marketing-chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.marketing-chart-line.visitors {
  stroke: var(--coral);
}

.marketing-chart-line.registrations {
  stroke: #4e4c46;
  stroke-dasharray: 5 4;
}

.marketing-chart-hit-layer {
  position: absolute;
  z-index: 3;
  inset: 0;
}

.marketing-chart-day {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: max(12px, calc(100% / var(--chart-count)));
  transform: translateX(-50%);
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.marketing-chart-day.edge-start {
  transform: none;
}

.marketing-chart-day.edge-end {
  transform: translateX(-100%);
}

.marketing-chart-crosshair {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  border-left: 1px dashed #aaa298;
  opacity: 0;
}

.marketing-chart-dot {
  position: absolute;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--marketing-paper);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 0 1px currentColor;
}

.marketing-chart-dot.visitors {
  top: var(--visitors-y);
  background: var(--coral);
  color: var(--coral);
}

.marketing-chart-dot.registrations {
  top: var(--registrations-y);
  background: #4e4c46;
  color: #4e4c46;
}

.marketing-chart-day:hover .marketing-chart-crosshair,
.marketing-chart-day:focus-visible .marketing-chart-crosshair,
.marketing-chart-day:hover .marketing-chart-dot,
.marketing-chart-day:focus-visible .marketing-chart-dot {
  opacity: 1;
}

.marketing-chart-day:focus-visible {
  outline: 0;
}

.marketing-chart-tooltip {
  position: absolute;
  z-index: 5;
  top: 14px;
  left: 50%;
  width: 184px;
  display: none;
  gap: 8px;
  transform: translateX(-50%);
  padding: 12px;
  border: 1px solid #d8d0c3;
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 14px 36px rgba(24, 21, 16, 0.14);
  color: var(--ink);
  font-size: 10px;
  text-align: left;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.marketing-chart-day.edge-start .marketing-chart-tooltip {
  left: 0;
  transform: none;
}

.marketing-chart-day.edge-end .marketing-chart-tooltip {
  right: 0;
  left: auto;
  transform: none;
}

.marketing-chart-day:hover .marketing-chart-tooltip,
.marketing-chart-day:focus-visible .marketing-chart-tooltip {
  display: grid;
}

.marketing-chart-tooltip time {
  color: var(--muted);
  font-size: 10px;
}

.marketing-chart-tooltip > span {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 7px;
}

.marketing-chart-tooltip > span > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.marketing-chart-tooltip > span > i.visitors {
  background: var(--coral);
}

.marketing-chart-tooltip > span > i.registrations {
  background: #4e4c46;
}

.marketing-chart-tooltip b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.marketing-chart-tooltip em {
  padding-top: 7px;
  border-top: 1px solid var(--line);
  color: var(--coral);
  font-size: 9px;
  font-style: normal;
}

.marketing-chart-x-axis {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  color: #8b877e;
  font-size: 10px;
}

.marketing-chart-x-axis span {
  position: absolute;
  top: 9px;
  left: var(--x);
  transform: translateX(-50%);
  white-space: nowrap;
}

.marketing-chart-x-axis span.start {
  transform: none;
}

.marketing-chart-x-axis span.end {
  transform: translateX(-100%);
}

.marketing-chart-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.marketing-chart-range {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--marketing-quiet);
}

.marketing-chart-range button {
  min-width: 34px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
}

.marketing-chart-range button:hover {
  color: var(--ink);
}

.marketing-chart-range button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(26, 22, 16, 0.08);
}

.marketing-chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  padding-left: 3px;
  color: var(--muted);
  font-size: 10px;
}

.marketing-chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.marketing-chart-legend i {
  width: 17px;
  height: 3px;
  border-radius: 99px;
  background: var(--coral);
}

.marketing-chart-legend span + span i {
  height: 2px;
  background: #4e4c46;
}

.marketing-chart-legend b {
  margin-left: 2px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
}

.marketing-focus-card {
  background: #f8f3ea;
}

.marketing-focus-list {
  display: grid;
  gap: 8px;
}

.marketing-focus {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--marketing-paper);
}

.marketing-focus > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #dcefe7;
  color: var(--green);
  font-size: 9px;
  font-weight: 600;
}

.marketing-focus.warning > span {
  background: #f5dfbd;
  color: #8d5a15;
}

.marketing-focus.danger > span {
  background: #f5d7d0;
  color: var(--red);
}

.marketing-focus.neutral > span {
  background: #ebe5da;
  color: var(--muted);
}

.marketing-focus strong,
.marketing-focus p {
  display: block;
  margin: 0;
}

.marketing-focus strong {
  font-size: 11px;
  font-weight: 500;
}

.marketing-focus p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.42;
}

.marketing-funnel-journey {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.marketing-funnel-step {
  min-width: 0;
  flex: 1 1 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.marketing-funnel-step.result {
  border-color: #24231f;
  background: var(--ink);
  color: #fff;
}

.marketing-funnel-step > div:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.marketing-funnel-step > div:first-child > span {
  color: var(--coral);
  font-size: 9px;
  font-weight: 600;
}

.marketing-funnel-step > div:first-child > small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketing-funnel-step.result > div:first-child > small {
  color: #c2beb6;
}

.marketing-funnel-step > strong {
  display: block;
  margin: 16px 0 7px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.marketing-funnel-step > p {
  min-height: 28px;
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.marketing-funnel-step.result > p {
  color: #a8a59f;
}

.marketing-funnel-meter,
.marketing-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #eee8de;
}

.marketing-funnel-meter {
  margin-top: 12px;
}

.marketing-funnel-meter i,
.marketing-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
}

.marketing-funnel-step.result .marketing-funnel-meter {
  background: #383731;
}

.marketing-funnel-link {
  width: 54px;
  flex: 0 0 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.marketing-funnel-link span {
  font-size: 7px;
  line-height: 1.25;
}

.marketing-funnel-link i {
  position: relative;
  width: 100%;
  height: 1px;
  background: #cfc6b8;
}

.marketing-funnel-link i::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid #9e968a;
  border-right: 1px solid #9e968a;
  transform: rotate(45deg);
}

.marketing-funnel-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f7f2e9;
}

.marketing-funnel-summary > span {
  padding: 11px 13px;
}

.marketing-funnel-summary > span + span {
  border-left: 1px solid var(--line);
}

.marketing-funnel-summary small,
.marketing-funnel-summary strong {
  display: block;
}

.marketing-funnel-summary small {
  color: var(--muted);
  font-size: 8px;
}

.marketing-funnel-summary strong {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 600;
}

.marketing-table-wrap {
  overflow: auto;
  margin: 0 -4px;
}

.marketing-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.marketing-channel-table {
  min-width: 860px;
}

.marketing-table th,
.marketing-table td {
  padding: 12px 9px;
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: 10px;
  white-space: nowrap;
}

.marketing-table th {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.marketing-table tbody tr {
  transition: background 0.16s ease;
}

.marketing-table tbody tr:hover {
  background: #f8f3ea;
}

.marketing-table td strong,
.marketing-table td small {
  display: block;
}

.marketing-table td strong {
  font-weight: 500;
}

.marketing-table td small {
  max-width: 250px;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
}

.marketing-table td:not(:first-child),
.marketing-table th:not(:first-child) {
  text-align: right;
}

.marketing-channel-name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.marketing-channel-name > i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(239, 107, 77, 0.1);
}

.marketing-share {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.marketing-share i {
  height: 5px;
  border-radius: 99px;
  background: var(--coral);
}

.marketing-inline-warning {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #e7c9a0;
  border-radius: 11px;
  background: #fff9ef;
  color: #7c6746;
  font-size: 9px;
  line-height: 1.4;
}

.marketing-section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 5px 2px 2px;
}

.marketing-section-intro > div:first-child > span {
  color: var(--coral);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.marketing-section-intro h2,
.marketing-section-intro p {
  margin: 0;
}

.marketing-section-intro h2 {
  margin-top: 6px;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.marketing-section-intro p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.marketing-attribution-stat {
  min-width: 190px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--marketing-paper);
}

.marketing-attribution-stat small,
.marketing-attribution-stat strong,
.marketing-attribution-stat span {
  display: block;
}

.marketing-attribution-stat small,
.marketing-attribution-stat span {
  color: var(--muted);
  font-size: 9px;
}

.marketing-attribution-stat strong {
  margin: 5px 0 3px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.marketing-cost-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #f2ede4;
}

.marketing-cost-note span {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 600;
}

.marketing-cost-note p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.marketing-footnote {
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.marketing-user-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.marketing-user-toolbar > label {
  min-height: 42px;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
}

.marketing-user-toolbar > label:focus-within {
  border-color: #aaa195;
  box-shadow: 0 0 0 3px rgba(239, 107, 77, 0.09);
}

.marketing-user-toolbar > label > span {
  color: var(--muted);
}

.marketing-user-toolbar > label svg {
  width: 16px;
  height: 16px;
}

.marketing-user-toolbar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

.marketing-user-toolbar input::placeholder {
  color: #aaa398;
}

.marketing-user-date-filter {
  width: fit-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: -2px 0 12px;
  border-radius: 999px;
  padding: 0 5px 0 11px;
  background: var(--coral-soft);
  color: #9f4336;
  font-size: 10px;
}

.marketing-user-date-filter button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(159, 67, 54, 0.1);
  color: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.marketing-user-date-filter button:hover {
  background: rgba(159, 67, 54, 0.18);
}

.marketing-user-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 0 -2px 15px;
  padding: 2px;
  scrollbar-width: none;
}

.marketing-user-filters::-webkit-scrollbar {
  display: none;
}

.marketing-user-filters button {
  min-height: 35px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px 0 12px;
  background: #fff;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  cursor: pointer;
}

.marketing-user-filters button:hover {
  border-color: #bcb3a5;
  color: var(--ink);
}

.marketing-user-filters button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.marketing-user-filters b {
  min-width: 20px;
  min-height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 5px;
  background: #eee9df;
  color: var(--ink);
  font-size: 8px;
}

.marketing-user-filters button.active b {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.marketing-user-table-wrap {
  margin: 0 -20px;
}

.marketing-user-table {
  min-width: 1120px;
}

.marketing-user-table th:first-child,
.marketing-user-table td:first-child {
  padding-left: 20px;
}

.marketing-user-table th:last-child,
.marketing-user-table td:last-child {
  padding-right: 20px;
}

.marketing-user-identity {
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.marketing-user-identity > span {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--coral-soft);
  color: #b94832;
  font-size: 10px;
  font-weight: 600;
}

.marketing-user-identity strong,
.marketing-user-identity small {
  display: block;
}

.marketing-user-identity strong {
  max-width: 240px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketing-user-identity small {
  max-width: 240px;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketing-user-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  background: #eee9df;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.marketing-user-status.progress {
  background: #e8edf4;
  color: #52657a;
}

.marketing-user-status.warning {
  background: #f7ead6;
  color: #8d5a15;
}

.marketing-user-status.success {
  background: #dcefe7;
  color: var(--green);
}

.marketing-user-open {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.marketing-user-open:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.marketing-user-count,
.marketing-user-pagination {
  margin-top: 14px;
  color: var(--muted);
  font-size: 9px;
}

.marketing-user-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.marketing-user-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.marketing-user-pagination button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.marketing-user-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}

.marketing-user-pagination b {
  min-width: 54px;
  color: var(--ink);
  text-align: center;
}

.marketing-user-loading,
.marketing-user-error {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.marketing-user-loading span,
.marketing-user-error span {
  color: var(--muted);
  font-size: 10px;
}

.marketing-user-drawer-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  justify-content: flex-end;
}

.marketing-user-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 17, 15, 0.42);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.marketing-user-drawer {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100vw - 24px));
  height: 100%;
  overflow-y: auto;
  padding: 22px;
  background: var(--marketing-paper);
  box-shadow: -22px 0 70px rgba(16, 14, 11, 0.2);
  animation: marketing-drawer-in 0.18s ease-out;
}

@keyframes marketing-drawer-in {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
}

.marketing-user-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.marketing-user-drawer-head .marketing-user-identity {
  min-width: 0;
}

.marketing-user-drawer-head > button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.marketing-user-drawer-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0 4px;
}

.marketing-user-drawer-status > span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 9px;
  background: #eee9df;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.marketing-user-drawer-status > span.progress {
  background: #e8edf4;
  color: #52657a;
}

.marketing-user-drawer-status > span.warning {
  background: #f7ead6;
  color: #8d5a15;
}

.marketing-user-drawer-status > span.success {
  background: #dcefe7;
  color: var(--green);
}

.marketing-user-drawer-status small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.marketing-user-drawer section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.marketing-user-drawer section > p {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marketing-user-timeline {
  display: grid;
  gap: 0;
}

.marketing-user-timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  min-height: 54px;
}

.marketing-user-timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 0;
  left: 11px;
  width: 1px;
  background: var(--line);
}

.marketing-user-timeline-step > i {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--marketing-paper);
  color: #aaa398;
}

.marketing-user-timeline-step.done > i {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.marketing-user-timeline-step.unknown > i {
  border-style: dashed;
}

.marketing-user-timeline-step svg {
  width: 13px;
  height: 13px;
}

.marketing-user-timeline-step strong,
.marketing-user-timeline-step small {
  display: block;
}

.marketing-user-timeline-step strong {
  font-size: 10px;
  font-weight: 600;
}

.marketing-user-timeline-step small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.marketing-user-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.marketing-user-facts > div {
  min-width: 0;
  padding: 11px;
  border-radius: 11px;
  background: var(--marketing-quiet);
}

.marketing-user-facts span,
.marketing-user-facts strong {
  display: block;
}

.marketing-user-facts span {
  color: var(--muted);
  font-size: 8px;
}

.marketing-user-facts strong {
  overflow: hidden;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
}

.marketing-user-drawer > .team-button {
  width: 100%;
  margin-top: 18px;
}

.marketing-user-privacy {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.marketing-ranked-list {
  display: grid;
}

.marketing-ranked-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.marketing-ranked-item > span {
  color: #aaa398;
  font-size: 8px;
  font-weight: 600;
}

.marketing-ranked-item strong,
.marketing-ranked-item small {
  display: block;
}

.marketing-ranked-item strong {
  font-size: 10px;
  font-weight: 500;
}

.marketing-ranked-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.marketing-ranked-item .marketing-progress {
  margin-top: 7px;
}

.marketing-ranked-item > b {
  font-size: 14px;
}

.marketing-device-grid {
  display: grid;
  gap: 9px;
}

.marketing-device {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.marketing-device span,
.marketing-device strong,
.marketing-device small {
  display: block;
}

.marketing-device span,
.marketing-device small {
  color: var(--muted);
  font-size: 9px;
}

.marketing-device strong {
  margin: 8px 0 4px;
  font-size: 22px;
  font-weight: 600;
}

.marketing-device .marketing-progress {
  margin-top: 9px;
}

.marketing-marketplaces {
  display: grid;
}

.marketing-marketplaces > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.marketing-marketplaces strong,
.marketing-marketplaces small {
  display: block;
}

.marketing-marketplaces strong {
  font-size: 11px;
  font-weight: 500;
}

.marketing-marketplaces small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.marketing-marketplaces b {
  font-size: 15px;
}

.marketing-stage-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.marketing-stage-stats > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.marketing-stage-stats span,
.marketing-stage-stats strong,
.marketing-stage-stats small {
  display: block;
}

.marketing-stage-stats span,
.marketing-stage-stats small {
  color: var(--muted);
  font-size: 8px;
}

.marketing-stage-stats strong {
  margin: 10px 0 4px;
  font-size: 22px;
  font-weight: 600;
}

.marketing-web-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.marketing-vitals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.marketing-vital {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.marketing-vital > span,
.marketing-vital > strong,
.marketing-vital > em {
  display: block;
}

.marketing-vital > span {
  color: var(--muted);
  font-size: 9px;
}

.marketing-vital > span small {
  display: block;
  margin-top: 3px;
  font-size: 8px;
}

.marketing-vital > strong {
  margin: 14px 0 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.marketing-vital > em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.marketing-vital.good {
  border-color: #b9dacc;
  background: #f4fbf7;
}

.marketing-vital.warning {
  border-color: #ead1a8;
  background: #fffaf0;
}

.marketing-vital.danger {
  border-color: #e5b5ab;
  background: #fff4f1;
}

.marketing-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.marketing-meta span {
  padding: 6px 8px;
  border-radius: 8px;
  background: #f0ebe1;
  color: var(--muted);
  font-size: 8px;
}

.marketing-pages-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.45fr);
}

.marketing-clean-state {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px dashed #b9dacc;
  border-radius: 14px;
  background: #f4fbf7;
}

.marketing-clean-state > svg {
  width: 30px;
  height: 30px;
  color: var(--green);
}

.marketing-clean-state strong,
.marketing-clean-state span {
  display: block;
}

.marketing-clean-state strong {
  font-size: 11px;
  font-weight: 600;
}

.marketing-clean-state span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.marketing-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 24px 14px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.marketing-loading {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--marketing-paper);
}

.marketing-loading strong {
  margin-top: 4px;
}

.marketing-loading span {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 1280px) {
  .marketing-score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .marketing-overview-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  }

  .marketing-funnel-journey {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .marketing-funnel-link {
    display: none;
  }
}

@media (max-width: 1080px) {
  .marketing-overview-grid,
  .marketing-grid,
  .marketing-grid.equal,
  .marketing-pages-grid {
    grid-template-columns: 1fr;
  }

  .marketing-vitals,
  .marketing-web-score-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 760px) {
  .marketing-data-strip,
  .marketing-section-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .marketing-data-actions {
    justify-content: space-between;
  }

  .marketing-tabs {
    position: static;
    width: 100%;
  }

  .marketing-score-grid,
  .marketing-web-score-grid {
    grid-template-columns: 1fr 1fr;
  }

  .marketing-score.primary {
    grid-column: 1 / -1;
  }

  .marketing-card {
    padding: 16px;
  }

  .marketing-card-head {
    display: grid;
  }

  .marketing-overview-grid {
    grid-template-columns: 1fr;
  }

  .marketing-chart-actions {
    width: 100%;
    justify-content: space-between;
  }

  .marketing-chart-stage {
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: 230px 24px;
    column-gap: 8px;
  }

  .marketing-chart-tooltip {
    width: 164px;
  }

  .marketing-funnel-journey {
    grid-template-columns: 1fr 1fr;
  }

  .marketing-funnel-summary {
    grid-template-columns: 1fr 1fr;
  }

  .marketing-funnel-summary > span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .marketing-funnel-summary > span:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .marketing-attribution-stat {
    min-width: 0;
  }

  .marketing-stage-stats {
    grid-template-columns: 1fr;
  }

  .marketing-cost-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .marketing-user-toolbar {
    align-items: stretch;
  }

  .marketing-user-table-wrap {
    margin-right: -16px;
    margin-left: -16px;
  }

  .marketing-user-table th:first-child,
  .marketing-user-table td:first-child {
    padding-left: 16px;
  }

  .marketing-user-table th:last-child,
  .marketing-user-table td:last-child {
    padding-right: 16px;
  }
}

@media (max-width: 470px) {
  .marketing-data-actions button b {
    display: none;
  }

  .marketing-tabs button {
    flex: 1 0 auto;
    padding: 0 12px;
  }

  .marketing-score-grid {
    grid-template-columns: 1fr 1fr;
  }

  .marketing-web-score-grid,
  .marketing-vitals,
  .marketing-funnel-journey {
    grid-template-columns: 1fr;
  }

  .marketing-score.primary {
    grid-column: 1 / -1;
  }

  .marketing-score {
    min-height: 138px;
    padding: 14px;
  }

  .marketing-score > strong {
    font-size: 25px;
  }

  .marketing-score.primary > strong {
    font-size: 34px;
  }

  .marketing-funnel-summary {
    grid-template-columns: 1fr;
  }

  .marketing-funnel-summary > span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .marketing-meta {
    justify-content: flex-start;
  }

  .marketing-user-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
  }

  .marketing-user-facts {
    grid-template-columns: 1fr;
  }

  .marketing-user-drawer {
    width: calc(100vw - 12px);
    padding: 18px;
  }
}
