* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: linear-gradient(165deg, var(--rc-void) 0%, var(--rc-midnight) 45%, #0d1219 100%);
}

button,
input,
select,
textarea {
  font: inherit;
  min-width: 0;
}

button { cursor: pointer; }

button,
input,
select,
textarea {
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease), transform var(--ease);
}

button:hover:not(:disabled) {
  border-color: var(--rc-brand-border);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--rc-brand);
  outline-offset: 2px;
  border-color: var(--rc-brand-border);
  box-shadow: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
}

.side-nav {
  grid-row: 1 / -1;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: rgba(8, 10, 12, 0.92);
}

.platform-copyright {
  grid-column: 2;
  z-index: 2;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .platform-copyright {
  border-top-color: var(--rc-line);
  background: rgba(6, 10, 16, 0.92);
  color: var(--rc-text-muted);
}

.side-nav-eyebrow {
  margin: 2px 6px 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.side-nav-mode-switcher {
  display: grid;
  gap: 10px;
}

.side-nav-mode-switcher .mode-button {
  width: 100%;
  min-width: 0;
}

.side-nav-demo-menu {
  position: relative;
  margin-top: auto;
  width: 100%;
  padding-top: 8px;
}

.side-nav-demo-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--rc-line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--rc-text-secondary);
  font-weight: 800;
  font-size: 13px;
  text-align: left;
  transition:
    border-color var(--rc-motion-base) var(--rc-ease),
    color var(--rc-motion-base) var(--rc-ease);
}

.side-nav-demo-chevron {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--rc-brand-soft);
  position: relative;
  transition: transform 220ms ease, background-color 220ms ease;
}

.side-nav-demo-chevron::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--rc-brand);
  border-bottom: 2px solid var(--rc-brand);
  transform: translate(-50%, -50%) rotate(135deg);
  transition: transform 220ms ease;
}

.side-nav-demo-menu.open .side-nav-demo-chevron::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.side-nav-demo-drawer {
  position: absolute;
  left: calc(100% + 14px);
  right: auto;
  bottom: 0;
  z-index: 50;
  transform: translateX(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    visibility 0s linear 320ms;
}

.side-nav-demo-menu.open .side-nav-demo-drawer {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    visibility 0s linear 0s;
}

.side-nav-demo-menu:focus-within .side-nav-demo-drawer {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.side-nav-demo-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  width: max-content;
  max-width: min(920px, calc(100vw - var(--side-nav-width, 230px) - 48px));
  padding: 8px;
  border: 1px solid var(--rc-brand-border);
  border-radius: 18px;
  background: linear-gradient(165deg, var(--rc-surface-2) 0%, var(--rc-surface-1) 100%);
  box-shadow: var(--rc-shadow-2);
  overflow-x: auto;
  scrollbar-width: thin;
}

.side-nav-demo-links .demo-link-button {
  width: auto;
  min-width: 168px;
  max-width: 220px;
  min-height: 64px;
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 14px;
}

.side-nav-demo-links .demo-link-copy small {
  display: block;
  line-height: 1.25;
}

.side-nav-demo-links .demo-link-button.active,
.side-nav-demo-links .demo-link-button--internal.active {
  border-color: var(--rc-brand);
  background: transparent;
  box-shadow: none;
}

.side-nav-demo-links .demo-link-button.active .demo-link-copy strong {
  color: var(--rc-brand);
}

.side-nav-demo-menu.open .side-nav-demo-toggle {
  border-color: var(--rc-brand);
  background: transparent;
  color: var(--rc-brand);
  box-shadow: none;
}

.side-nav-demo-menu.open .side-nav-demo-chevron {
  background: transparent;
  border: 1px solid var(--rc-brand-border);
}

.side-nav-system-card {
  margin-top: auto;
}

.side-nav-reset {
  width: 100%;
}

.brand-lockup,
.session-chip,
.mini-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.mini-brand span,
.play-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--rc-brand-gradient);
  color: var(--rc-void);
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-brand);
}

.brand-mark--logo {
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.brand-mark--logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.brand-lockup span,
.system-card small,
.session-chip small,
.action-card small,
.endpoint-card small,
.phone-screen small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.mode-switcher {
  display: grid;
  gap: 10px;
}

.mode-button,
.ghost-button,
.primary-action,
.secondary-action,
.radius-button,
.subtab,
.media-button,
.action-card button {
  min-height: var(--touch);
  border: 1px solid var(--rc-line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--rc-text-secondary);
  transition:
    border-color var(--rc-motion-base) var(--rc-ease),
    color var(--rc-motion-base) var(--rc-ease),
    background-color var(--rc-motion-base) var(--rc-ease);
}

.mode-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  text-align: left;
  font-weight: 800;
}

a.mode-button {
  text-decoration: none;
  cursor: pointer;
}

.mode-button--external .mode-button-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mode-button span {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--rc-surface-3);
  color: var(--rc-brand);
}

.mode-button.active,
.radius-button.active,
.subtab.active,
.media-button.active {
  border-color: var(--rc-brand);
  background: transparent;
  color: var(--rc-brand);
  box-shadow: none;
}

.system-card {
  margin-top: auto;
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px var(--green);
}

.workspace {
  padding: 34px 38px 56px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 2px 0 6px;
}

.topbar > div:first-child {
  min-width: 0;
}

.product-heading {
  max-width: 940px;
}

.product-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 14px;
  border: 1px solid rgba(11, 149, 194, 0.24);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(11, 149, 194, 0.08);
  color: var(--rc-ink-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.page-subtitle {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.45;
}

#viewTitle {
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.session-chip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  min-width: 190px;
}

.ghost-button {
  padding: 0 16px;
  white-space: nowrap;
}

.primary-action {
  border-color: var(--rc-line-strong);
  background: transparent;
  color: var(--rc-text-secondary);
  font-weight: 800;
  box-shadow: none;
}

.ghost-button {
  background: transparent;
  box-shadow: none;
}

.demo-menu-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--rc-line-strong);
  border-radius: 12px;
  padding: 0 16px;
  background: transparent;
  color: var(--rc-text-secondary);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none;
}

.burger-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--touch);
  border: 1px solid var(--rc-brand-border);
  border-radius: 12px;
  padding: 0 16px;
  background: var(--rc-surface-glass);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-weight: 700;
}

.burger-lines,
.burger-lines::before,
.burger-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.burger-lines {
  position: relative;
  color: var(--rc-ink-soft);
}

.burger-lines::before,
.burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger-lines::before {
  top: -6px;
}

.burger-lines::after {
  top: 6px;
}

.icon-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.demo-controls-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(4px);
}

.demo-controls-dock {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 35;
  width: min(360px, calc(100vw - 36px));
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(11, 149, 194, 0.3);
  border-radius: 22px;
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.96), rgba(247, 255, 252, 0.94)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 46px rgba(12, 20, 34, 0.25);
  backdrop-filter: blur(12px);
}

.demo-controls-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 36;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: linear-gradient(140deg, #0b0f17, #15202c);
  color: #f8fafc;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(2, 6, 12, 0.55);
  transition: transform 180ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.demo-controls-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(2, 6, 12, 0.6);
  background: linear-gradient(140deg, #111827, #1f2a3a);
}

.demo-controls-toggle:focus-visible {
  outline: 2px solid rgba(11, 149, 194, 0.6);
  outline-offset: 3px;
}

.demo-controls-toggle[aria-expanded="true"] {
  background: linear-gradient(140deg, #0d3324, #0f766e);
  border-color: rgba(11, 149, 194, 0.55);
}

.demo-controls-toggle-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(11, 149, 194, 0.18);
  position: relative;
}

.demo-controls-toggle-icon::before,
.demo-controls-toggle-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #5eead4;
  transform: translate(-50%, -50%);
}

.demo-controls-toggle-icon::after {
  width: 2px;
  height: 14px;
}

.demo-controls-toggle[aria-expanded="true"] .demo-controls-toggle-icon::after {
  opacity: 0;
}

.demo-controls-toggle-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.demo-controls-toggle-text strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.demo-controls-toggle-text small {
  font-size: 11px;
  color: rgba(226, 232, 240, 0.7);
  margin-top: 2px;
}

.demo-controls-label {
  margin: 0 6px 2px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.demo-controls-dock .demo-menu-button {
  width: 100%;
  min-width: 0;
  min-height: 82px;
  justify-content: flex-start;
  padding: 12px 14px;
  border-radius: 20px;
  white-space: normal;
  box-shadow: none;
}

.demo-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  border-color: var(--rc-line-strong);
  background: transparent;
  color: var(--rc-text-secondary);
}

.demo-link-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rc-line-strong);
  border-radius: 50%;
  color: var(--rc-brand);
  font-size: 15px;
  font-weight: 900;
  background: transparent;
}

.demo-link-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 1px;
}

.demo-link-copy strong {
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--rc-text);
}

.demo-link-copy small {
  color: var(--rc-text-secondary);
  font-size: 12px;
  line-height: 1.25;
}

.demo-link-arrow {
  align-self: center;
  color: var(--rc-text-muted);
  font-size: 17px;
  font-weight: 700;
}

.demo-link-button:hover,
.demo-link-button:focus-visible {
  border-color: var(--rc-brand);
  background: transparent;
  color: var(--rc-brand);
  box-shadow: none;
  transform: none;
}

.demo-link-button:hover .demo-link-copy strong,
.demo-link-button:focus-visible .demo-link-copy strong {
  color: var(--rc-brand);
}

.demo-link-button:hover .demo-link-icon,
.demo-link-button:focus-visible .demo-link-icon {
  border-color: var(--rc-brand);
  color: var(--rc-brand);
}

.demo-link-button:hover .demo-link-arrow,
.demo-link-button:focus-visible .demo-link-arrow {
  color: var(--rc-brand);
}

.demo-link-button:active {
  transform: none;
  box-shadow: none;
}

.demo-fire-button:not(:disabled):hover {
  border-color: var(--rc-ink-soft);
  background: rgba(11, 149, 194, 0.2);
}

.demo-fire-panel-button {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 12px;
}

.demo-controls-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(380px, calc(100vw - 24px));
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 10% 0%, rgba(11, 149, 194, 0.16), transparent 34%),
    rgba(10, 13, 16, 0.98);
  box-shadow: -30px 0 90px rgba(0, 0, 0, 0.45);
  transform: translateX(calc(100% + 24px));
  visibility: hidden;
  pointer-events: none;
  transition: transform 220ms ease;
}

.demo-controls-panel.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.demo-controls-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.demo-controls-header h2 {
  margin-bottom: 0;
}

.demo-controls-panel .system-card {
  margin-top: auto;
}

.demo-controls-panel .danger-button {
  width: 100%;
}

.session-chip > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2d333c;
  border: 1px solid var(--line);
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--rc-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 58px;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 25px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 { letter-spacing: 0; }

p {
  color: var(--muted);
  line-height: 1.5;
}

.view { display: none; }
.view.active { display: block; }

.notice-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.notice-bar::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(11, 149, 194, 0.72);
}

.notice-bar strong {
  color: var(--rc-ink-soft);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.notice-bar span {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.35;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(19, 23, 27, 0.9);
}

.panel > *,
.work-grid > *,
.backend-grid > *,
.driver-layout > *,
.headrest-layout > *,
.api-group,
.endpoint-card,
.ledger-entry {
  min-width: 0;
}

.panel.large { grid-column: 1 / -1; }

.hero-grid,
.backend-grid,
.admin-grid,
.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 20px;
  align-items: start;
}

.metric-row,
.ledger-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

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

.metric-row div,
.ledger-metrics div,
.map-meta div,
.money-flow div,
.driver-checks span,
.ledger-entry,
.action-card,
.endpoint-card,
.flow-line div,
.api-group,
.poster-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.metric-row span,
.ledger-metrics span,
.map-meta span,
.ledger-entry span,
.money-flow span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-row strong,
.ledger-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  white-space: nowrap;
}

.section-heading,
.api-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.green {
  color: var(--rc-ink-soft);
  border-color: rgba(11, 149, 194, 0.28);
  background: rgba(11, 149, 194, 0.12);
}

.radius-control,
.section-tabs,
.control-row {
  display: grid;
  gap: 10px;
}

.radius-control {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
}

.section-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 20px 0;
}

.control-row {
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0;
}

.map-search-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid rgba(86, 199, 255, 0.22);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(86, 199, 255, 0.08), transparent 56%),
    rgba(255, 255, 255, 0.035);
}

.map-search-results {
  display: grid;
  gap: 8px;
}

.branch-address-finder {
  display: grid;
  gap: 8px;
  margin-top: -4px;
}

.branch-address-results {
  max-height: 220px;
  overflow: auto;
}

.map-result-button {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(5, 6, 7, 0.68);
  color: var(--text);
  text-align: left;
}

.map-result-button.active {
  border-color: rgba(11, 149, 194, 0.62);
  background: rgba(11, 149, 194, 0.13);
}

.map-result-button span,
.map-result-button small,
.map-search-meta,
.map-empty-result {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.map-search-meta,
.map-empty-result {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 10px;
}

.map-stage {
  position: relative;
  --map-x: 50%;
  --map-y: 50%;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(145deg, #12232a, #0a1215);
  box-shadow: inset 0 0 0 1px rgba(5, 6, 7, 0.38);
}

.live-map-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.82) contrast(1.05) brightness(0.82);
  opacity: 0.86;
  pointer-events: none;
}

.map-tile-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(145deg, #12232a, #0a1215);
}

.map-tile-layer img {
  position: absolute;
  display: block;
  max-width: none;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05) brightness(0.82);
  opacity: 0.86;
  user-select: none;
  pointer-events: none;
}

.campaign-map-stage .map-tile-layer {
  z-index: 1;
  background:
    linear-gradient(34deg, transparent 0 44%, rgba(255, 255, 255, 0.78) 45% 51%, transparent 52% 100%) 0 0 / 260px 210px,
    linear-gradient(138deg, transparent 0 46%, rgba(255, 255, 255, 0.7) 47% 52%, transparent 53% 100%) 24px 18px / 220px 190px,
    linear-gradient(86deg, transparent 0 48%, rgba(245, 219, 142, 0.62) 49% 52%, transparent 53% 100%) 0 0 / 310px 240px,
    radial-gradient(circle at 18% 24%, rgba(99, 184, 139, 0.22), transparent 28%),
    radial-gradient(circle at 78% 74%, rgba(95, 172, 215, 0.18), transparent 30%),
    linear-gradient(145deg, #dbe8e4, #f4f7f1 45%, #d7e4dd);
}

.campaign-map-stage.has-deterministic-map .live-map-frame {
  display: none;
}

.campaign-map-stage .map-tile-layer img,
.campaign-map-stage .live-map-frame {
  filter: saturate(1.08) contrast(1.02) brightness(1);
  opacity: 1;
}

.map-zoom-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: grid;
  grid-template-columns: 36px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.68);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.map-zoom-controls button {
  min-height: 36px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 21px;
  font-weight: 900;
}

.map-zoom-controls button:hover {
  background: rgba(11, 149, 194, 0.2);
}

.map-zoom-controls span {
  display: none;
}

.ring {
  position: absolute;
  z-index: 2;
  left: var(--map-x);
  top: var(--map-y);
  display: grid;
  place-items: start center;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(11, 149, 194, 0.34);
  border-radius: 50%;
  pointer-events: none;
}

.ring span {
  display: none;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(11, 149, 194, 0.25);
  background: rgba(5, 6, 7, 0.7);
  color: var(--rc-ink-soft);
  font-size: 12px;
  font-weight: 900;
}

.ring.active {
  border-color: var(--rc-ink-soft);
  background: rgba(11, 149, 194, 0.08);
  box-shadow: 0 0 40px rgba(11, 149, 194, 0.12);
}

.ring.active span {
  display: block;
}

.business-pin {
  position: absolute;
  z-index: 4;
  left: var(--map-x);
  top: var(--map-y);
  width: 22px;
  height: 22px;
  border: 4px solid rgba(5, 6, 7, 0.82);
  border-radius: 50%;
  padding: 0;
  overflow: visible;
  background: var(--green);
  box-shadow:
    0 0 0 7px rgba(11, 149, 194, 0.16),
    0 14px 34px rgba(0, 0, 0, 0.38);
  color: transparent;
  font-size: 0;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.business-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(11, 149, 194, 0.34);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.map-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  padding: 12px 14px;
  background: rgba(8, 12, 14, 0.72);
}

.map-footer div {
  min-width: 0;
}

.map-footer strong,
.map-footer span {
  display: block;
}

.map-footer strong {
  color: var(--text);
  font-size: 13px;
}

.map-footer span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

#mapScaleNote {
  flex: 0 0 auto;
  color: var(--muted);
  text-align: right;
}

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

.action-grid.compact {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

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

.action-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.action-card code,
.endpoint-card code,
.api-method {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.action-card code {
  color: var(--cyan);
  word-break: break-word;
}

.action-card button {
  width: 100%;
  font-weight: 900;
  background: rgba(11, 149, 194, 0.12);
  border-color: rgba(11, 149, 194, 0.28);
}

.action-badge {
  color: var(--rc-brand);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.driver-layout,
.headrest-layout {
  display: grid;
  grid-template-columns: minmax(330px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.phone-frame {
  max-width: 400px;
  margin: 0 auto;
  padding: 10px;
  border: 14px solid #151a22;
  border-radius: 54px;
  background: var(--rc-void);
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-screen {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding: 22px 20px;
  border-radius: 38px;
  background: linear-gradient(180deg, var(--rc-surface-1) 0%, var(--rc-void) 42%, #080c12 100%);
}

.phone-status,
.driver-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.money {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  --advertiser-gold-gradient: var(--rc-compensation-gradient);
}

.money span,
.money strong,
.money em {
  background: var(--rc-compensation-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--rc-brand);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .money span,
  .money strong,
  .money em {
    color: transparent;
  }
}

.money span {
  font-size: 28px;
  font-weight: 800;
}

.money strong {
  font-size: 68px;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.money em {
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
}

.phone-status {
  color: var(--rc-text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.driver-header strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.round-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rc-line);
  background: var(--rc-surface-3);
  color: var(--rc-text-secondary);
  font-weight: 700;
  font-size: 0.72rem;
}

.driver-login-card {
  border: 1px solid var(--rc-brand-border);
  border-radius: 14px;
  padding: 14px;
  background: var(--rc-brand-soft);
  backdrop-filter: blur(8px);
}

.driver-login-card .eyebrow {
  color: var(--rc-ink-soft);
}

.driver-login-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 700;
}

.driver-login-card small {
  color: var(--rc-text-secondary);
  line-height: 1.45;
}

.earnings {
  text-align: center;
  padding: 16px 0 8px;
}

.earnings .eyebrow {
  color: var(--rc-brand);
}

.earnings h3 {
  margin: 8px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rc-text-secondary);
}

.earnings > p {
  margin: 6px 0 0;
  color: var(--rc-text-muted);
  font-size: 0.88rem;
}

.shift-card {
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--rc-line);
  border-radius: 20px;
  background: var(--rc-surface-2);
  color: var(--rc-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.shift-card span:first-child {
  font-size: 1.25rem;
  opacity: 0.85;
}

.shift-card.active {
  border-color: var(--rc-brand);
  background: transparent;
  color: var(--rc-brand);
  box-shadow: none;
}

.shift-card strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.shift-card small {
  color: inherit;
  opacity: 0.75;
  font-size: 0.78rem;
}

.driver-checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.driver-checks span {
  text-align: center;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--rc-line);
  background: var(--rc-surface-2);
  color: var(--rc-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.driver-checks span.ready {
  border-color: var(--rc-brand-border);
  background: var(--rc-brand-soft);
  color: var(--rc-ink-soft);
}

.now-playing {
  opacity: 0;
  transform: translateY(16px);
  transition: 240ms ease;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--rc-brand-border);
  border-radius: 16px;
  background: var(--rc-surface-glass);
  backdrop-filter: blur(10px);
}

.now-playing.show {
  opacity: 1;
  transform: translateY(0);
}

.now-playing b {
  align-self: center;
  color: var(--rc-ink-soft);
  white-space: nowrap;
}

.headrest-layout {
  grid-template-columns: minmax(520px, 1fr) 360px;
}

.headrest-device {
  min-height: 560px;
  overflow: hidden;
  border: 12px solid #202227;
  border-radius: 30px;
  background: #030405;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.headrest-bar,
.headrest-footer {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.headrest-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.media-stage {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: #060708;
}

.pairing-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 40px;
  text-align: center;
  background:
    linear-gradient(rgba(6, 8, 10, 0.78), rgba(6, 8, 10, 0.92)),
    radial-gradient(circle, rgba(11, 149, 194, 0.22), transparent 44%);
}

.media-view {
  position: absolute;
  inset: 0;
  display: none;
}

.active-media { display: block; }

.video-media {
  background:
    linear-gradient(120deg, rgba(5, 6, 7, 0.12), rgba(5, 6, 7, 0.72)),
    linear-gradient(160deg, #ffcf70 0%, #ff766b 42%, #214360 43%, #0d161d 100%);
}

.video-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: repeating-linear-gradient(90deg, #13181a 0 70px, #1b2426 70px 140px);
}

.image-media {
  background:
    linear-gradient(90deg, rgba(4, 10, 12, 0.14), rgba(4, 10, 12, 0.86)),
    repeating-linear-gradient(135deg, #196a68 0 40px, #1bb08d 40px 80px, #f6c766 80px 120px);
}

.audio-media {
  align-content: center;
  gap: 12px;
  padding: 26px;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle, rgba(86, 199, 255, 0.16), transparent 42%), #07090c;
}

.audio-media.active-media {
  display: grid;
}

.media-copy,
.poster-card {
  position: absolute;
  left: 42px;
  top: 54px;
  z-index: 2;
  max-width: 58%;
}

.media-copy h2,
.poster-card h2,
.audio-media h2 {
  margin: 10px 0;
  font-size: 52px;
  line-height: 0.95;
}

.audio-media h2 {
  max-width: 560px;
  font-size: 42px;
  line-height: 1;
}

.audio-media p,
.audio-media small {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.audio-media p {
  font-size: 16px;
  font-weight: 900;
}

.audio-media small {
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.sound-ring {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 12px solid rgba(86, 199, 255, 0.16);
  box-shadow: inset 0 0 0 15px rgba(11, 149, 194, 0.16), 0 0 70px rgba(86, 199, 255, 0.24);
}

.qr-card {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 3;
  width: 190px;
  padding: 14px;
  border-radius: 8px;
  background: white;
  color: #050607;
  text-align: center;
  font-weight: 900;
}

.qr-code {
  aspect-ratio: 1;
  border: 10px solid white;
  background: white;
  image-rendering: pixelated;
  display: grid;
  grid-template-columns: repeat(var(--qr-size, 33), 1fr);
  gap: 0;
  overflow: hidden;
}

.qr-code i {
  display: block;
  background: #fff;
}

.qr-code i.on {
  background: #050607;
}

.qr-card small {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 9px;
  line-height: 1.15;
  color: #4b5563;
}

.voice-sample-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  margin-top: 14px;
  border: 1px solid rgba(11, 149, 194, 0.34);
  border-radius: 8px;
  background: rgba(11, 149, 194, 0.08);
}

.voice-sample-card div {
  display: grid;
  gap: 4px;
}

.voice-sample-card span,
#managerVoiceSampleStatus {
  color: var(--muted);
}

.split-device-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.split-device-links a {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.035);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.safety-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.safety-grid strong {
  color: var(--text);
}

.safety-grid span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.money-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.ledger-list,
.event-log {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
}

.ledger-entry {
  display: grid;
  gap: 4px;
}

.ledger-entry strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.api-header {
  margin-bottom: 18px;
}

#apiSearch {
  max-width: 360px;
}

.api-map {
  display: grid;
  gap: 18px;
}

.api-group h3 {
  margin-bottom: 12px;
}

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

.endpoint-card {
  display: grid;
  gap: 8px;
}

.endpoint-card header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-method {
  min-width: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  padding: 5px 8px;
  background: rgba(86, 199, 255, 0.12);
  color: var(--cyan);
  font-weight: 900;
}

.endpoint-card code {
  color: var(--soft);
  word-break: break-word;
}

.endpoint-card b {
  color: var(--rc-ink-soft);
}

.admin-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.review-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.flow-line span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-weight: 900;
}

.review-list {
  padding-left: 18px;
  color: var(--soft);
  line-height: 1.8;
}

.hidden { display: none !important; }

.creative-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.creative-radio-card {
  position: relative;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 14px 14px 44px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.creative-radio-card input {
  position: absolute;
  left: 14px;
  top: 17px;
  width: 18px;
  height: 18px;
  accent-color: var(--rc-ink-soft);
}

.creative-radio-card span {
  color: var(--text);
  font-weight: 950;
}

.creative-radio-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.creative-radio-card:has(input:checked) {
  border-color: rgba(11, 149, 194, 0.72);
  background:
    linear-gradient(135deg, rgba(11, 149, 194, 0.16), rgba(255, 255, 255, 0.025)),
    rgba(11, 149, 194, 0.04);
  box-shadow: inset 0 0 0 1px rgba(11, 149, 194, 0.22);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  gap: 14px;
  align-items: start;
}

.registration-panel,
.login-panel,
.dashboard-shell {
  min-width: 0;
}

.login-panel {
  background:
    linear-gradient(145deg, rgba(11, 149, 194, 0.09), transparent 42%),
    rgba(19, 23, 27, 0.9);
}

.auth-switch {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.demo-login-copy {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
}

.oauth-provider-panel {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.oauth-provider-button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #14171a;
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.oauth-provider-button:hover {
  transform: translateY(-1px);
  border-color: rgba(86, 199, 255, 0.44);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.oauth-provider-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.oauth-provider-button.microsoft {
  background: #f5f8fb;
}

.oauth-provider-button.unconfigured {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.oauth-provider-button.unconfigured:hover {
  transform: none;
  border-color: rgba(24, 209, 199, 0.46);
  box-shadow: none;
}

.oauth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.saved-login-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.saved-login-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.saved-login-card strong {
  font-size: 13px;
}

.saved-login-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.saved-login-card .auth-link {
  flex: 0 0 auto;
  text-align: right;
}

.auth-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--rc-ink-soft);
  font: inherit;
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.compliance-banner {
  display: grid;
  gap: 4px;
  margin: 16px 0;
  border: 1px solid rgba(86, 199, 255, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: rgba(86, 199, 255, 0.08);
}

.compliance-banner span {
  color: var(--muted);
}

.panel-lede {
  margin: 8px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.locked-address-field small,
.field-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(245, 247, 248, 0.58);
}

.address-change-link {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 1px dashed rgba(86, 199, 255, 0.38);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(86, 199, 255, 0.08);
  font-weight: 950;
}

.address-change-panel {
  max-width: 980px;
}

.compliance-profile-panel {
  grid-column: 1 / -1;
}

.profile-compliance-grid,
.compliance-action-row {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

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

.profile-compliance-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-compliance-grid strong,
.profile-compliance-grid span {
  display: block;
}

.profile-compliance-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

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

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

.document-grid label {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.document-grid input + input {
  margin-top: 8px;
}

.checkbox-row {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  margin-top: 14px;
  color: var(--soft);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.terms-row span {
  line-height: 1.45;
}

.inline-terms-link {
  display: inline;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}

.single-column {
  grid-template-columns: 1fr;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.dashboard-actions div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-actions strong,
.dashboard-actions span {
  display: block;
}

.dashboard-actions span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

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

.status-strip div,
.record-card,
.map-card {
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  padding: 14px;
  background: var(--rc-surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.status-strip span,
.record-card span {
  display: block;
  color: var(--rc-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

#campaignRecord {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
}

#campaignRecord strong {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

#campaignRecord .campaign-record-line {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-transform: none;
}

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

.dashboard-lede {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 660px;
}

.advertiser-menu {
  position: relative;
  flex: 0 0 auto;
}

.advertiser-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: min(270px, calc(100vw - 42px));
  border: 1px solid rgba(11, 149, 194, 0.28);
  border-radius: 8px;
  padding: 8px;
  background:
    linear-gradient(145deg, rgba(11, 149, 194, 0.12), transparent 54%),
    rgba(15, 18, 21, 0.98);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.advertiser-menu-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.advertiser-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.advertiser-tab-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--touch);
  border: 1px solid var(--rc-line-strong);
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: var(--rc-text-secondary);
  font-weight: 900;
  text-align: left;
}

.advertiser-tab-button.active {
  border-color: var(--rc-brand);
  background: transparent;
  color: var(--rc-brand);
}

.advertiser-menu-panel .ghost-button {
  width: 100%;
  margin-top: 8px;
  justify-content: flex-start;
}

.advertiser-section {
  display: none;
}

.advertiser-section.active {
  display: block;
}

.campaign-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
}

.campaign-dashboard-grid.empty-campaigns {
  grid-template-columns: 1fr;
}

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

.inline-action {
  flex: 0 0 auto;
  min-width: 140px;
}

.campaign-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.campaign-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

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

.campaign-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(110px, 0.55fr) minmax(130px, 0.65fr) minmax(150px, 0.75fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.campaign-row-head {
  min-height: 0;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.campaign-row-main {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.campaign-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.04);
}

.status-active { background: var(--green); }
.status-draft { background: #ffc857; }
.status-paused { background: #7cc7ff; }
.status-stopped { background: #7c8796; }

.campaign-list-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.campaign-list-copy strong,
.campaign-list-copy small,
.campaign-list-money,
.confidence-stack,
.spend-stack,
.delivery-stack {
  overflow-wrap: anywhere;
}

.campaign-list-copy small,
.campaign-list-money,
.confidence-stack span,
.spend-stack span,
.delivery-stack span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.confidence-stack,
.spend-stack,
.delivery-stack {
  display: grid;
  gap: 3px;
}

.confidence-stack strong,
.spend-stack strong,
.delivery-stack strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.campaign-row-actions,
.manager-header-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.manager-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 4px;
}

.manager-header-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.manager-header-title .eyebrow {
  margin: 0;
  line-height: 1.2;
}

.manager-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.manager-header-row h2 {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  line-height: 1.2;
}

.manager-header-actions .ghost-button.inline-action,
.manager-header-actions .primary-action.inline-action,
.manager-header-actions .status-pill {
  flex-shrink: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  line-height: 1;
  font-size: 13px;
  font-weight: 800;
}

.campaign-dashboard-grid.editing-campaign {
  grid-template-columns: minmax(0, 1fr);
}

.campaign-dashboard-grid.editing-campaign .campaign-list-panel {
  display: none;
}

.campaign-progress {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.campaign-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.empty-state {
  display: grid;
  gap: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
}

.empty-state strong {
  color: var(--text);
}

.media-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
  align-items: center;
  margin-top: 18px;
}

.media-preview-header h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(11, 149, 194, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--rc-ink-soft);
  background: rgba(11, 149, 194, 0.12);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.manager-stats,
.payment-grid,
.profile-grid {
  display: grid;
  gap: 14px;
}

.manager-stats {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-top: 14px;
}

.manager-stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.manager-stats span,
.manager-stats strong {
  display: block;
}

.manager-stats span {
  color: var(--muted);
  font-size: 12px;
}

.manager-stats strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.analytics-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.analytics-panel h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

.analytics-panel .section-heading {
  align-items: flex-end;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-actions.tight .ghost-button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
}

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

.analytics-summary--compact {
  margin-bottom: 8px;
}

.analytics-summary div,
.analytics-row,
.analytics-tiers span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.035);
}

.analytics-summary div {
  display: grid;
  gap: 4px;
  min-height: 0;
}

.analytics-summary span,
.analytics-row span,
.analytics-tiers span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.analytics-summary strong,
.analytics-row strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.analytics-row strong {
  font-size: 14px;
  line-height: 1.35;
}

.analytics-policy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.analytics-tiers,
.analytics-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.analytics-tiers {
  grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 1100px) {
  .analytics-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

.media-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.script-audio-tools {
  margin-top: 10px;
}

.script-audio-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.script-audio-buttons button {
  flex: 1 1 180px;
}

.advertiser-preview-stage {
  position: relative;
  min-height: 400px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07090b;
}

.advertiser-preview-stage .media-view {
  min-height: 400px;
  border-radius: 0;
}

.preview-play-button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(5, 6, 7, 0.72);
  color: var(--text);
  font-weight: 900;
}

.audio-media .preview-play-button {
  position: static;
  justify-self: center;
  margin-top: 6px;
}

.campaign-action-row {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.publish-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.publish-terms input {
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--rc-ink-soft);
}

html[data-current-view="advertiser"] .publish-terms {
  border-color: var(--rc-line);
  background: var(--rc-surface-2);
  color: var(--muted);
}

.legal-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(7, 11, 18, 0.58);
  backdrop-filter: blur(3px);
}

.legal-consent-modal {
  position: fixed;
  z-index: 81;
  left: 50%;
  top: 50%;
  width: min(560px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.legal-consent-modal h2 {
  margin: 0 0 8px;
}

.legal-consent-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.legal-consent-list div {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f5f7fb;
  color: #253044;
}

.legal-consent-list strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
}

.legal-consent-list span {
  display: block;
}

.compact-ledger {
  margin-top: 14px;
}

.payment-grid {
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
}

.profile-grid {
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
}

.profile-grid .compliance-profile-panel,
.profile-grid .profile-settings-accordion {
  grid-column: 1 / -1;
}

.profile-settings-accordion {
  display: grid;
  gap: 10px;
}

.profile-accordion-item > summary .eyebrow {
  margin: 0 0 2px;
  font-size: 10px;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.profile-accordion-body .form-grid.single-column,
.profile-accordion-body .form-grid {
  margin-top: 0;
}

.workflow-panel.locked .profile-accordion-body .form-grid,
.workflow-panel.locked .profile-accordion-body .button-row {
  opacity: 0.42;
  pointer-events: none;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.work-grid.single {
  grid-template-columns: 1fr;
}

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

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

.provider-note {
  display: block;
  margin-top: 8px;
  color: var(--rc-ink-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.elevenlabs-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin: 8px 0;
  border: 1px solid rgba(11, 149, 194, 0.3);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--rc-ink-soft);
  background: rgba(11, 149, 194, 0.1);
  font-size: 12px;
  font-weight: 950;
}

.visual-bank-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid rgba(86, 199, 255, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: rgba(86, 199, 255, 0.08);
}

.visual-bank-card strong,
.visual-bank-card span,
.visual-bank-card small {
  display: block;
}

.visual-bank-card span,
.visual-bank-card small {
  margin-top: 5px;
  color: var(--muted);
}

.campaign-builder {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.builder-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(11, 149, 194, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.035);
}

.builder-card header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.builder-card header > span {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(11, 149, 194, 0.18);
  color: var(--rc-ink-soft);
  font-weight: 950;
}

.builder-card strong,
.builder-card small {
  display: block;
}

.builder-card small {
  color: var(--muted);
  font-size: 12px;
}

.builder-fields {
  display: grid;
  gap: 10px;
}

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

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

.builder-fields label,
.script-field {
  min-width: 0;
}

.builder-fields .wide {
  grid-column: 1 / -1;
}

#campaignBusinessLocationField {
  grid-column: 1 / -1;
}

.budget-estimate-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(11, 149, 194, 0.24);
  border-radius: 12px;
  padding: 16px;
  background: rgba(11, 149, 194, 0.08);
}

.budget-estimate-card.compact {
  gap: 10px;
  padding: 12px;
}

.budget-estimate-card.compact .budget-estimate-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.budget-estimate-card.compact .budget-estimate-metric {
  padding: 10px;
}

.budget-estimate-card.compact .budget-estimate-value {
  font-size: clamp(18px, 1.45vw, 26px);
}

.budget-estimate-card.compact .budget-estimate-label {
  font-size: 11px;
  line-height: 1.2;
}

.budget-estimate-card strong,
.budget-estimate-card span {
  display: block;
}

.budget-estimate-header {
  display: grid;
  gap: 4px;
}

.budget-estimate-title {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.budget-estimate-subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.budget-estimate-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.budget-estimate-metric {
  min-width: 0;
  border: 1px solid rgba(11, 149, 194, 0.18);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 4px;
}

.budget-estimate-value {
  display: block;
  color: var(--text);
  font-size: clamp(22px, 1.7vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.budget-estimate-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.ledger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.script-field {
  margin-top: 2px;
}

.manager-edit-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  background: var(--rc-surface-1);
  box-shadow: var(--rc-shadow-1);
}

.manager-edit-panel h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.manager-edit-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.mini-editor-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 6, 7, 0.24);
  overflow: hidden;
}

.mini-editor-card[open] {
  background: rgba(8, 12, 16, 0.32);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.mini-editor-card > summary.mini-editor-head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  user-select: none;
}

.mini-editor-card > summary.mini-editor-head::-webkit-details-marker {
  display: none;
}

.mini-editor-card > summary.mini-editor-head:hover {
  background: rgba(255, 255, 255, 0.03);
}

.mini-editor-head-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mini-editor-head strong {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.mini-editor-head small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.mini-editor-head-chevron {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  transition: transform 180ms ease, background-color 180ms ease;
}

.mini-editor-head-chevron::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  opacity: 0.85;
}

.mini-editor-card[open] > summary .mini-editor-head-chevron {
  transform: rotate(180deg);
  background: rgba(11, 149, 194, 0.18);
}

.mini-editor-body {
  display: grid;
  gap: 14px;
  align-items: start;
  padding: 16px 18px 20px;
  border-top: 1px solid var(--line);
}

.mini-editor-body-area {
  grid-template-columns: minmax(260px, 340px) minmax(320px, 1fr);
  align-items: start;
  column-gap: 18px;
  row-gap: 16px;
}

.mini-editor-body .builder-fields.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mini-editor-field,
.mini-editor-body label {
  min-width: 0;
}

.mini-editor-field select,
.mini-editor-body label select {
  width: 100%;
}

@media (max-width: 720px) {
  .mini-editor-body-area {
    grid-template-columns: minmax(0, 1fr);
  }

  .mini-editor-body .builder-fields.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.radius-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 7px;
}

.manager-radius-button {
  min-height: 48px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--rc-surface-2);
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  box-shadow: none;
}

.manager-radius-button.active {
  border-color: var(--rc-brand);
  background: var(--rc-surface-3);
  color: var(--rc-brand);
  box-shadow: none;
}

.manager-upload {
  min-width: 0;
}

.campaign-map-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(8, 12, 14, 0.72);
}

.campaign-map-stage {
  position: relative;
  --map-x: 50%;
  --map-y: 50%;
  min-height: 230px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(145deg, #12232a, #0a1215);
}

.campaign-radius-ring {
  position: absolute;
  z-index: 3;
  left: var(--map-x);
  top: var(--map-y);
  display: block;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(17, 224, 210, 0.95);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(17, 224, 210, 0.16) 0, rgba(17, 224, 210, 0.08) 55%, rgba(17, 224, 210, 0.02) 100%);
  box-shadow:
    0 0 0 1px rgba(5, 6, 7, 0.56),
    0 0 28px rgba(17, 224, 210, 0.16);
  pointer-events: none;
}

.campaign-radius-ring::before {
  content: none;
}

.campaign-radius-ring.is-subpixel {
  border-width: 1px;
}

.campaign-radius-ring span {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 10px;
  border: 1px solid rgba(17, 224, 210, 0.34);
  border-radius: 999px;
  background: rgba(5, 12, 18, 0.9);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.campaign-map-pin {
  z-index: 5;
}

.campaign-map-footer {
  border: 0;
  border-radius: 0;
}

.editor-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  text-wrap: pretty;
}

.manager-creative-block {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

.manager-creative-note {
  margin: 0;
  max-width: 62ch;
}

.campaign-action-row + .editor-footnote,
#campaignActionHint {
  margin-top: 14px;
  max-width: 68ch;
}

.policy-card {
  border-color: rgba(86, 199, 255, 0.25);
  background:
    linear-gradient(135deg, rgba(86, 199, 255, 0.08), transparent 62%),
    rgba(255, 255, 255, 0.035);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.25;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: var(--touch);
  padding: 13px 12px;
  background: rgba(5, 6, 7, 0.72);
  color: var(--text);
}

.creative-radio-card input[type="radio"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border-radius: 50%;
}

textarea {
  resize: vertical;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.button-row button {
  flex: 1 1 160px;
  min-width: 160px;
}

.record-card {
  margin-top: 14px;
  display: grid;
  gap: 6px;
  color: var(--soft);
}

.record-card strong {
  color: white;
}

.value-engine-panel {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.4);
}

.value-engine-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.value-engine-panel > div:first-child span {
  color: var(--soft);
  font-size: 13px;
}

.map-card {
  margin-top: 14px;
}

.danger-button {
  min-height: 42px;
  border: 1px solid rgba(255, 107, 122, 0.35);
  border-radius: 8px;
  color: #ffd8de;
  background: rgba(255, 107, 122, 0.1);
  font-weight: 900;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stepper div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.stepper span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 900;
}

.stepper strong,
.stepper small {
  display: block;
}

.stepper small {
  color: var(--muted);
  font-size: 12px;
}

.stepper div.done {
  border-color: rgba(11, 149, 194, 0.45);
  background: rgba(11, 149, 194, 0.11);
}

.stepper div.done span {
  background: var(--green);
  color: var(--ink);
}

.workflow-panel {
  position: relative;
}

.lock-note {
  display: none;
  margin-bottom: 14px;
  border: 1px solid rgba(247, 184, 75, 0.35);
  border-radius: 8px;
  padding: 12px;
  color: #ffe0a8;
  background: rgba(247, 184, 75, 0.09);
  font-weight: 800;
}

.workflow-panel.locked .lock-note {
  display: block;
}

.workflow-panel.locked .form-grid,
.workflow-panel.locked .campaign-builder,
.workflow-panel.locked .map-card,
.workflow-panel.locked .record-card,
.workflow-panel.locked .button-row {
  opacity: 0.42;
  pointer-events: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.backend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.backend-grid .large {
  grid-column: 1 / -1;
}

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

  .side-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 10, 12, 0.96);
    backdrop-filter: blur(16px);
  }

  .workspace {
    padding: 30px 28px 52px;
  }

  .work-grid,
  .auth-shell,
  .hero-grid,
  .backend-grid,
  .admin-grid,
	  .review-grid,
	  .driver-layout,
	  .headrest-layout,
	  .campaign-dashboard-grid,
    .manager-edit-split,
	  .payment-grid,
	  .profile-grid {
	    grid-template-columns: 1fr;
	  }

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

  .campaign-row,
  .campaign-row-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .campaign-row-head {
    display: none;
  }

  .status-strip,
  .dashboard-actions,
  .profile-compliance-grid,
  .compliance-action-row,
  .manager-stats,
	  .stepper {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	  }

  .flow-line,
  .money-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .headrest-device,
  .phone-frame {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .side-nav {
    position: static;
    gap: 16px;
  }

  .brand-lockup {
    justify-content: space-between;
  }

	  .topbar,
	  .top-actions,
	  .media-preview-header,
	  .section-heading,
	  .api-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .manager-header-row {
    flex-direction: row;
    align-items: center;
  }

  html[data-current-view="advertiser"] .advertiser-dashboard-top,
  html[data-current-view="advertiser"] .phone-app-screen .advertiser-dashboard-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  #viewTitle {
    white-space: normal;
  }

  h1 {
    font-size: 46px;
  }

  .notice-bar {
    width: 100%;
    align-items: flex-start;
  }

	  .advertiser-tabs,
	  .status-strip,
	  .form-grid,
	  .builder-fields.two,
	  .builder-fields.four,
    .manager-edit-split,
	  .document-grid,
	  .dashboard-actions,
	  .manager-stats,
	  .stepper {
	    grid-template-columns: 1fr;
	    width: 100%;
  }

  .section-tabs,
  .action-grid,
  .action-grid.compact,
  .endpoint-grid,
  .metric-row,
  .ledger-metrics,
  .money-flow,
  .flow-line {
    grid-template-columns: 1fr;
  }

	  .advertiser-tab-button,
	  .button-row button {
	    width: 100%;
	  }

  .map-stage {
    min-height: 330px;
  }

  .headrest-device {
    min-height: 0;
  }

  .media-stage {
    min-height: 380px;
  }

  .media-copy,
  .poster-card {
    max-width: calc(100% - 210px);
  }
}

@media (max-width: 620px) {
  .workspace,
  .side-nav {
    padding: 16px;
  }

  .side-nav {
    gap: 12px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 22px;
  }

  .page-subtitle {
    font-size: 15px;
  }

  .panel {
    padding: 16px;
  }

  .notice-bar {
    flex-direction: column;
    gap: 8px;
  }

  .notice-bar::before {
    display: none;
  }

  .radius-control,
  .control-row,
  .driver-checks {
    grid-template-columns: 1fr;
  }

  .map-stage {
    min-height: 300px;
  }

  .phone-frame {
    max-width: 360px;
    padding: 8px;
    border-width: 8px;
    border-radius: 42px;
  }

  .phone-screen {
    min-height: 580px;
    padding: 18px 16px;
    border-radius: 32px;
  }

  .money strong {
    font-size: 58px;
  }

  .money em {
    font-size: 34px;
  }

  .headrest-device {
    border-width: 8px;
    border-radius: 22px;
  }

  .headrest-bar,
  .headrest-footer {
    min-height: 52px;
    padding: 10px 14px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .media-stage {
    min-height: 430px;
  }

  .media-copy,
  .poster-card {
    left: 20px;
    top: 28px;
    max-width: calc(100% - 40px);
  }

  .media-copy h2,
  .poster-card h2,
  .audio-media h2 {
    font-size: 38px;
  }

  .qr-card {
    right: 18px;
    bottom: 18px;
    width: 132px;
    padding: 10px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .workspace,
  .side-nav {
    padding: 14px;
  }

  h1 {
    font-size: 34px;
  }

  .product-kicker {
    font-size: 11px;
  }

  .primary-action,
  .ghost-button {
    min-height: 46px;
  }

  .button-row button {
    min-width: 0;
  }

  .map-card,
  .record-card,
  .status-strip div {
    padding: 12px;
  }

  .map-stage {
    min-height: 270px;
  }

  .phone-frame {
    max-width: 330px;
  }

  .phone-screen {
    min-height: 540px;
  }

  .media-stage {
    min-height: 390px;
  }

  .qr-card {
    width: 116px;
    right: 12px;
    bottom: 12px;
  }
}

.demo-controls-panel .mode-switcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  overflow: visible;
  padding-bottom: 0;
}

.demo-controls-panel .mode-button {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
  padding: 0 12px;
}

@media (max-width: 620px) {
  .demo-controls-panel {
    width: min(340px, calc(100vw - 18px));
    padding: 18px;
  }

  .demo-controls-header {
    align-items: stretch;
    flex-direction: column;
  }
}

.phone-showcase {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

@media (min-width: 720px) {
  .phone-showcase {
    padding-left: 220px;
  }
}

.phone-device {
  position: relative;
  width: min(438px, calc(100vw - 24px));
  height: min(900px, calc(100vh - 24px));
  overflow: hidden;
  border: 12px solid #151a22;
  border-radius: 54px;
  background: var(--rc-void);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-device::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 5;
  width: 118px;
  height: 31px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-device::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 5;
  width: 132px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

.phone-statusbar {
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 10px;
  padding: 0 22px 10px;
  background: linear-gradient(180deg, #070a0c, #080a0c);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.phone-statusbar span:nth-child(2) {
  opacity: 0;
}

.phone-statusbar span:last-child {
  text-align: right;
}

.phone-app-screen {
  height: calc(100% - 58px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 0 0 39px 39px;
  background:
    radial-gradient(circle at 24% 0%, rgba(11, 149, 194, 0.12), transparent 34%),
    linear-gradient(180deg, #07100d, #080a0c 32%, #050607);
  scrollbar-width: none;
}

.phone-app-screen::-webkit-scrollbar {
  display: none;
}

.phone-app-screen .app-shell {
  grid-template-columns: 1fr;
  min-height: 100%;
}

.phone-app-screen .side-nav {
  position: relative;
  top: 0;
  z-index: 8;
  height: auto;
  padding: 16px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 12, 0.88);
  backdrop-filter: blur(16px);
}

.phone-app-screen .brand-lockup {
  justify-content: flex-start;
}

.phone-app-screen .workspace {
  padding: 26px 16px 34px;
}

.phone-app-screen .topbar,
.phone-app-screen .top-actions,
.phone-app-screen .section-heading,
.phone-app-screen .api-header {
  align-items: flex-start;
  flex-direction: column;
}

.phone-app-screen .topbar {
  gap: 14px;
  margin-bottom: 14px;
}

.phone-app-screen .top-actions,
.phone-app-screen .demo-menu-button {
  width: 100%;
}

.phone-app-screen .demo-menu-button {
  justify-content: center;
}

.phone-app-screen h1 {
  font-size: 34px;
  line-height: 1;
}

.phone-app-screen h2 {
  font-size: 22px;
}

.phone-app-screen .page-subtitle {
  font-size: 15px;
}

.phone-app-screen .notice-bar {
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.phone-app-screen .notice-bar::before {
  display: none;
}

.phone-app-screen .auth-shell,
.phone-app-screen .work-grid,
.phone-app-screen .campaign-dashboard-grid,
.phone-app-screen .payment-grid,
.phone-app-screen .profile-grid,
.phone-app-screen .backend-grid,
.phone-app-screen .admin-grid,
.phone-app-screen .review-grid,
.phone-app-screen .driver-layout,
.phone-app-screen .headrest-layout,
.phone-app-screen .status-strip,
.phone-app-screen .form-grid,
.phone-app-screen .builder-fields.two,
.phone-app-screen .manager-edit-split,
.phone-app-screen .document-grid,
.phone-app-screen .dashboard-actions,
.phone-app-screen .manager-stats,
.phone-app-screen .stepper,
.phone-app-screen .action-grid,
.phone-app-screen .action-grid.compact,
.phone-app-screen .endpoint-grid,
.phone-app-screen .metric-row,
.phone-app-screen .ledger-metrics,
.phone-app-screen .money-flow,
.phone-app-screen .flow-line,
.phone-app-screen .control-row,
.phone-app-screen .driver-checks {
  grid-template-columns: 1fr;
  width: 100%;
}

.phone-app-screen .panel {
  padding: 16px;
}

.phone-app-screen .button-row,
.phone-app-screen .media-preview-tabs {
  flex-direction: column;
  width: 100%;
}

.phone-app-screen .voice-sample-card,
.phone-app-screen .script-audio-buttons {
  align-items: stretch;
  flex-direction: column;
}

.phone-app-screen .button-row button,
.phone-app-screen .script-audio-buttons button,
.phone-app-screen .media-preview-tabs button,
.phone-app-screen .inline-action {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
}

.phone-app-screen .builder-fields.four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phone-app-screen .campaign-list-copy small {
  white-space: normal;
}

.phone-app-screen .manager-header,
.phone-app-screen .media-preview-header {
  align-items: flex-start;
  flex-direction: column;
}

.phone-app-screen .advertiser-menu,
.phone-app-screen .advertiser-menu .burger-menu-button {
  width: 100%;
}

.phone-app-screen .advertiser-menu .burger-menu-button {
  justify-content: flex-start;
}

.phone-app-screen .advertiser-menu-panel {
  left: 0;
  right: auto;
  width: 100%;
}

.phone-app-screen .advertiser-tab-button,
.phone-app-screen .button-row button {
  width: 100%;
}

.phone-app-screen .button-row button {
  min-width: 0;
}

.phone-app-screen .map-stage {
  min-height: 280px;
}

.phone-app-screen .map-footer {
  align-items: flex-start;
  flex-direction: column;
}

.phone-app-screen #mapScaleNote {
  text-align: left;
}

.phone-app-screen .phone-frame {
  width: 100%;
  max-width: 330px;
  padding: 8px;
  border-width: 8px;
  border-radius: 42px;
}

.phone-app-screen .phone-screen {
  min-height: 540px;
  padding: 18px 16px;
  border-radius: 32px;
}

.phone-app-screen .money strong {
  font-size: 58px;
}

.phone-app-screen .money em {
  font-size: 34px;
}

.phone-app-screen .headrest-device {
  min-height: 0;
  width: 100%;
  border-width: 8px;
  border-radius: 22px;
}

.phone-app-screen .headrest-bar,
.phone-app-screen .headrest-footer {
  min-height: 52px;
  padding: 10px 14px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.phone-app-screen .media-stage {
  min-height: 390px;
}

.phone-app-screen .media-copy,
.phone-app-screen .poster-card {
  left: 20px;
  top: 28px;
  max-width: calc(100% - 40px);
}

.phone-app-screen .media-copy h2,
.phone-app-screen .poster-card h2,
.phone-app-screen .audio-media h2 {
  font-size: 36px;
}

.phone-app-screen .advertiser-preview-stage,
.phone-app-screen .advertiser-preview-stage .media-view {
  min-height: 420px;
}

.phone-app-screen .audio-media p {
  font-size: 14px;
}

.phone-app-screen .qr-card {
  right: 14px;
  bottom: 14px;
  width: 118px;
  padding: 10px;
  font-size: 12px;
}

.phone-app-screen .safety-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 520px), (max-height: 760px) {
  .phone-showcase {
    padding: 10px;
  }

  .demo-controls-dock {
    left: 12px;
    right: 12px;
    bottom: 78px;
    width: auto;
    border-radius: 18px;
    padding: 10px;
  }

  .demo-controls-toggle {
    right: 12px;
    bottom: 12px;
    padding: 10px 14px 10px 10px;
  }

  .demo-controls-toggle-text small {
    display: none;
  }

  .demo-controls-dock .demo-menu-button {
    min-width: 0;
    min-height: 68px;
    padding: 10px 12px;
  }

  .demo-controls-label {
    margin: 0 4px;
    font-size: 10px;
  }

  .demo-link-copy strong {
    font-size: 15px;
  }

  .demo-link-copy small {
    display: none;
  }

  .demo-link-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .phone-device {
    width: min(418px, calc(100vw - 12px));
    height: min(874px, calc(100vh - 12px));
    border-width: 7px;
    border-radius: 42px;
  }

  .phone-device::before {
    top: 10px;
    width: 108px;
    height: 27px;
  }

  .phone-statusbar {
    height: 52px;
    padding: 0 18px 9px;
  }

  .phone-app-screen {
    height: calc(100% - 52px);
    border-radius: 0 0 33px 33px;
  }
}

html[data-current-view="advertiser"] {
  color-scheme: dark;
  --bg: var(--rc-midnight);
  --panel: var(--rc-surface-1);
  --panel-2: var(--rc-surface-2);
  --panel-3: var(--rc-surface-3);
  --line: var(--rc-line);
  --text: var(--rc-text);
  --muted: var(--rc-text-secondary);
  --soft: var(--rc-text-muted);
  --green: var(--rc-brand);
  --cyan: var(--rc-info);
  --amber: var(--rc-gold);
  --rose: var(--rc-danger);
  --ink: var(--rc-text);
}

html[data-current-view="advertiser"] body {
  color: var(--text);
  background: var(--rc-platform-gradient);
}

html[data-current-view="advertiser"] .phone-showcase {
  display: block;
  min-height: 100vh;
  padding: 0;
}

html[data-current-view="advertiser"] .phone-device {
  width: 100%;
  height: auto;
  min-height: 100vh;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-current-view="advertiser"] .phone-device::before,
html[data-current-view="advertiser"] .phone-device::after,
html[data-current-view="advertiser"] .phone-statusbar {
  display: none;
}

html[data-current-view="advertiser"] .phone-app-screen {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

html[data-current-view="advertiser"] .phone-app-screen .app-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  background: transparent;
}

html[data-current-view="advertiser"] .phone-app-screen .side-nav {
  display: flex;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
}

html[data-current-view="advertiser"] .demo-controls-toggle,
html[data-current-view="advertiser"] .demo-controls-dock,
html[data-current-view="advertiser"] .demo-controls-backdrop,
html[data-current-view="advertiser"] .demo-controls-panel,
html[data-current-view="backend"] .demo-controls-toggle,
html[data-current-view="backend"] .demo-controls-dock,
html[data-current-view="backend"] .demo-controls-backdrop,
html[data-current-view="backend"] .demo-controls-panel {
  display: none !important;
}

@media (min-width: 720px) {
  html[data-current-view="advertiser"] .phone-showcase,
  html[data-current-view="backend"] .phone-showcase {
    padding-left: 0;
  }
}

html[data-current-view="advertiser"] .phone-app-screen .brand-lockup {
  justify-content: flex-start;
}

html[data-current-view="advertiser"] .brand-mark {
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(11, 149, 194, 0.24);
}

html[data-current-view="advertiser"] .phone-app-screen .workspace {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 24px 32px;
}

.app-shell--single {
  grid-template-columns: minmax(0, 1fr);
}

html[data-current-view="advertiser"] .phone-app-screen .topbar {
  align-items: center;
  flex-direction: row;
  gap: 24px;
  margin-bottom: 18px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) > .topbar {
  display: flex;
  margin-bottom: 14px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) > .notice-bar {
  display: none;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .page-subtitle {
  display: none;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .page-subtitle {
  display: block;
  max-width: 760px;
  margin: 8px 0 0;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.45;
  color: var(--rc-text-secondary);
}

html[data-current-view="advertiser"] .phone-app-screen .topbar h1 {
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

html[data-current-view="advertiser"] .phone-app-screen h1 {
  color: var(--text);
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.1;
}

html[data-current-view="advertiser"] .phone-app-screen h2 {
  color: var(--text);
  font-size: clamp(22px, 2vw, 30px);
}

html[data-current-view="advertiser"] .product-kicker {
  border-color: var(--rc-brand-border);
  background: var(--rc-brand-soft);
  color: var(--rc-brand);
}

html[data-current-view="advertiser"] .page-subtitle,
html[data-current-view="advertiser"] p,
html[data-current-view="advertiser"] small {
  color: var(--muted);
}

html[data-current-view="advertiser"] .notice-bar {
  width: 100%;
  max-width: 1520px;
  border-color: var(--rc-line);
  background: var(--rc-surface-1);
  box-shadow: var(--rc-shadow-1);
}

html[data-current-view="advertiser"] .notice-bar span {
  color: var(--soft);
}

html[data-current-view="advertiser"] .panel,
html[data-current-view="advertiser"] .status-strip div,
html[data-current-view="advertiser"] .record-card,
html[data-current-view="advertiser"] .map-card,
html[data-current-view="advertiser"] .builder-card,
html[data-current-view="advertiser"] .mini-editor-card,
html[data-current-view="advertiser"] .budget-estimate-card,
html[data-current-view="advertiser"] .manager-edit-panel,
html[data-current-view="advertiser"] .campaign-map-card,
html[data-current-view="advertiser"] .analytics-summary div,
html[data-current-view="advertiser"] .analytics-row,
html[data-current-view="advertiser"] .analytics-tiers span,
html[data-current-view="advertiser"] .safety-grid div,
html[data-current-view="advertiser"] .profile-compliance-grid div,
html[data-current-view="advertiser"] .ledger-entry,
html[data-current-view="advertiser"] .document-grid label {
  border-color: var(--rc-line);
  background: var(--rc-surface-1);
  box-shadow: var(--rc-shadow-1);
}

html[data-current-view="advertiser"] .auth-shell {
  grid-template-columns: minmax(340px, 440px);
  justify-content: center;
  margin-top: 42px;
}

html[data-current-view="advertiser"] .login-panel,
html[data-current-view="advertiser"] .registration-panel,
html[data-current-view="backend"] .backend-auth-shell .login-panel {
  position: relative;
  z-index: 2;
  background: var(--rc-surface-1);
  box-shadow:
    0 0 0 1px var(--rc-line),
    0 0 48px rgba(0, 201, 183, 0.08),
    0 0 96px rgba(0, 201, 183, 0.035) !important;
}

html[data-current-view="advertiser"] #advertiserView:has(#advertiserOnboarding:not(.hidden)),
html[data-current-view="backend"] #backendView:has(#backendAuthShell:not(.hidden)) {
  position: relative;
  isolation: isolate;
  overflow: visible;
  min-height: min(560px, calc(100vh - 220px));
}

html[data-current-view="advertiser"] #advertiserOnboarding,
html[data-current-view="backend"] #backendAuthShell {
  background: transparent;
}

html[data-current-view="advertiser"] #advertiserView:has(#advertiserOnboarding:not(.hidden))::before,
html[data-current-view="advertiser"] #advertiserView:has(#advertiserOnboarding:not(.hidden))::after,
html[data-current-view="backend"] #backendView:has(#backendAuthShell:not(.hidden))::before,
html[data-current-view="backend"] #backendView:has(#backendAuthShell:not(.hidden))::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}

html[data-current-view="advertiser"] #advertiserView:has(#advertiserOnboarding:not(.hidden))::before,
html[data-current-view="backend"] #backendView:has(#backendAuthShell:not(.hidden))::before {
  width: min(640px, 86vw);
  height: min(460px, 58vw);
  left: 50%;
  top: 20%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 201, 183, 0.55) 0%,
    rgba(0, 201, 183, 0.28) 36%,
    rgba(0, 201, 183, 0.1) 58%,
    transparent 76%
  );
  opacity: 0.35;
  filter: blur(30px);
  animation: auth-back-haze-a 54s ease-in-out infinite;
}

html[data-current-view="advertiser"] #advertiserView:has(#advertiserOnboarding:not(.hidden))::after,
html[data-current-view="backend"] #backendView:has(#backendAuthShell:not(.hidden))::after {
  width: min(260px, 40vw);
  height: min(260px, 40vw);
  left: 50%;
  top: 20%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 191, 0.5) 0%,
    rgba(0, 168, 201, 0.22) 48%,
    transparent 72%
  );
  opacity: 0.35;
  filter: blur(26px);
  animation: auth-back-haze-b 71s ease-in-out infinite;
}

html[data-current-view="advertiser"] #advertiserView:has(#advertiserOnboarding:not(.hidden)) > *,
html[data-current-view="backend"] #backendView:has(#backendAuthShell:not(.hidden)) > * {
  position: relative;
  z-index: 1;
}

@keyframes auth-back-haze-a {
  0% {
    transform: translate(-50%, -50%) scale(0.98);
    filter: blur(24px);
  }

  11% {
    transform: translate(calc(-50% + 96px), calc(-50% - 72px)) scale(1.02);
    filter: blur(28px);
  }

  23% {
    transform: translate(calc(-50% + 184px), calc(-50% + 48px)) scale(1.04);
    filter: blur(26px);
  }

  34% {
    transform: translate(calc(-50% + 52px), calc(-50% + 156px)) scale(1.01);
    filter: blur(30px);
  }

  46% {
    transform: translate(calc(-50% - 148px), calc(-50% + 112px)) scale(0.99);
    filter: blur(25px);
  }

  57% {
    transform: translate(calc(-50% - 236px), calc(-50% + 24px)) scale(1.03);
    filter: blur(29px);
  }

  69% {
    transform: translate(calc(-50% - 124px), calc(-50% - 96px)) scale(1);
    filter: blur(27px);
  }

  81% {
    transform: translate(calc(-50% + 36px), calc(-50% - 148px)) scale(1.02);
    filter: blur(31px);
  }

  92% {
    transform: translate(calc(-50% + 168px), calc(-50% - 36px)) scale(0.97);
    filter: blur(26px);
  }

  100% {
    transform: translate(-50%, -50%) scale(0.98);
    filter: blur(24px);
  }
}

@keyframes auth-back-haze-b {
  0% {
    transform: translate(-50%, -50%) scale(1);
    filter: blur(20px);
  }

  13% {
    transform: translate(calc(-50% - 88px), calc(-50% + 64px)) scale(1.05);
    filter: blur(24px);
  }

  27% {
    transform: translate(calc(-50% - 196px), calc(-50% - 52px)) scale(0.96);
    filter: blur(22px);
  }

  39% {
    transform: translate(calc(-50% - 72px), calc(-50% - 132px)) scale(1.03);
    filter: blur(26px);
  }

  51% {
    transform: translate(calc(-50% + 124px), calc(-50% - 88px)) scale(0.98);
    filter: blur(21px);
  }

  63% {
    transform: translate(calc(-50% + 212px), calc(-50% + 36px)) scale(1.04);
    filter: blur(25px);
  }

  74% {
    transform: translate(calc(-50% + 84px), calc(-50% + 148px)) scale(0.97);
    filter: blur(23px);
  }

  86% {
    transform: translate(calc(-50% - 108px), calc(-50% + 92px)) scale(1.02);
    filter: blur(27px);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: blur(20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-current-view="advertiser"] #advertiserView:has(#advertiserOnboarding:not(.hidden))::before,
  html[data-current-view="advertiser"] #advertiserView:has(#advertiserOnboarding:not(.hidden))::after,
  html[data-current-view="backend"] #backendView:has(#backendAuthShell:not(.hidden))::before,
  html[data-current-view="backend"] #backendView:has(#backendAuthShell:not(.hidden))::after {
    animation: none;
  }
}

html[data-current-view="advertiser"] input,
html[data-current-view="advertiser"] select,
html[data-current-view="advertiser"] textarea {
  border-color: var(--rc-line-strong);
  background: var(--rc-surface-2);
  color: var(--text);
}

html[data-current-view="advertiser"] input:disabled,
html[data-current-view="advertiser"] textarea:disabled,
html[data-current-view="advertiser"] select:disabled {
  border-color: var(--rc-line);
  background: var(--rc-surface-3);
  color: var(--muted);
}

html[data-current-view="advertiser"] .budget-estimate-card {
  border-color: rgba(11, 149, 194, 0.2);
  background: var(--rc-brand-soft);
  box-shadow: none;
}

html[data-current-view="advertiser"] .analytics-panel {
  border-color: var(--rc-line);
  background: var(--rc-surface-1);
  box-shadow: var(--rc-shadow-1);
}

html[data-current-view="advertiser"] .analytics-panel .section-heading {
  border-bottom-color: var(--rc-line);
}

html[data-current-view="advertiser"] .campaign-action-row {
  border-color: var(--rc-line);
  background: var(--rc-surface-2);
}

html[data-current-view="advertiser"] #campaignManagerPanel.is-view-mode .campaign-action-row,
html[data-current-view="advertiser"] #campaignManagerPanel.is-view-mode #publishTermsWrap,
html[data-current-view="advertiser"] #campaignManagerPanel.is-view-mode #campaignActionHint {
  display: none !important;
}

html[data-current-view="advertiser"] #campaignRecord .campaign-record-line {
  border-top-color: var(--rc-line);
  color: var(--muted);
}

html[data-current-view="advertiser"] .budget-estimate-card > span,
html[data-current-view="advertiser"] .budget-estimate-subtitle,
html[data-current-view="advertiser"] .budget-estimate-label {
  color: var(--muted);
}

html[data-current-view="advertiser"] .budget-estimate-metric {
  border-color: var(--rc-brand-border);
  background: var(--rc-surface-2);
}

html[data-current-view="advertiser"] .budget-estimate-value,
html[data-current-view="advertiser"] .budget-estimate-title {
  color: var(--text);
}

html[data-current-view="advertiser"] input::placeholder,
html[data-current-view="advertiser"] textarea::placeholder {
  color: var(--rc-text-muted);
}

html[data-current-view="advertiser"] .map-search-card {
  border-color: var(--rc-brand-border);
  background: var(--rc-surface-1);
  box-shadow: var(--rc-shadow-1);
}

html[data-current-view="advertiser"] .map-result-button {
  border-color: var(--rc-line);
  background: var(--rc-surface-2);
  color: var(--text);
  box-shadow: var(--rc-shadow-1);
}

html[data-current-view="advertiser"] .map-result-button strong {
  color: var(--text);
}

html[data-current-view="advertiser"] .map-result-button span,
html[data-current-view="advertiser"] .map-result-button small {
  color: var(--muted);
}

html[data-current-view="advertiser"] .map-result-button:hover,
html[data-current-view="advertiser"] .map-result-button.active {
  border-color: var(--rc-brand-border);
  background: var(--rc-brand-soft);
  color: var(--text);
}

html[data-current-view="advertiser"] .map-search-meta,
html[data-current-view="advertiser"] .map-empty-result {
  border-color: var(--rc-line);
  background: var(--rc-surface-2);
  color: var(--muted);
}

html[data-current-view="advertiser"] .dashboard-shell {
  display: grid;
  gap: 12px;
}

html[data-current-view="advertiser"] .advertiser-dashboard-top,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-dashboard-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

html[data-current-view="advertiser"] .advertiser-dashboard-brand .eyebrow {
  margin: 0 0 2px;
}

html[data-current-view="advertiser"] .advertiser-dashboard-brand h2 {
  margin: 0;
}

html[data-current-view="advertiser"] .advertiser-logout-button {
  align-self: flex-start;
  flex: 0 0 auto;
  margin-left: auto;
}

html[data-current-view="advertiser"] .advertiser-tabs {
  width: 100%;
}

html[data-current-view="advertiser"] .dashboard-lede {
  max-width: 760px;
}

html[data-current-view="advertiser"] .status-strip:not(.status-strip-clean) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 0;
}

html[data-current-view="advertiser"] .status-strip:not(.status-strip-clean) div {
  min-height: 104px;
  padding: 18px;
}

html[data-current-view="advertiser"] .status-strip:not(.status-strip-clean) strong {
  font-size: clamp(24px, 2.4vw, 34px);
}

html[data-current-view="advertiser"] .campaign-dashboard-grid {
  grid-template-columns: minmax(360px, 0.68fr) minmax(0, 1.32fr);
  gap: 18px;
  align-items: start;
}

html[data-current-view="advertiser"] .campaign-dashboard-grid.empty-campaigns {
  grid-template-columns: minmax(0, 1fr);
}

html[data-current-view="advertiser"] .campaign-dashboard-grid.editing-campaign {
  grid-template-columns: minmax(0, 1fr);
}

html[data-current-view="advertiser"] .campaign-row {
  border-color: var(--rc-line);
  background: var(--rc-surface-1);
}

html[data-current-view="advertiser"] .campaign-row-head {
  background: transparent;
  border-color: transparent;
}

html[data-current-view="advertiser"] .campaign-progress {
  background: var(--rc-surface-3);
}

html[data-current-view="advertiser"] .manager-stats {
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

html[data-current-view="advertiser"] .manager-stats div {
  border-color: var(--rc-line);
  background: var(--rc-surface-2);
  padding: 10px 12px;
  min-width: 0;
}

html[data-current-view="advertiser"] .manager-stats strong {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

html[data-current-view="advertiser"] .manager-edit-split {
  grid-template-columns: minmax(0, 1fr);
}

html[data-current-view="advertiser"] .campaign-map-stage {
  min-height: 310px;
}

html[data-current-view="advertiser"] .map-footer,
html[data-current-view="advertiser"] .campaign-map-footer {
  background: var(--rc-surface-1);
}

html[data-current-view="advertiser"] .advertiser-preview-stage {
  min-height: 360px;
  border-color: rgba(16, 24, 40, 0.1);
  background: #111827;
}

html[data-current-view="advertiser"] .phone-app-screen .button-row,
html[data-current-view="advertiser"] .phone-app-screen .media-preview-tabs {
  flex-direction: row;
  width: auto;
}

html[data-current-view="advertiser"] .phone-app-screen .button-row button,
html[data-current-view="advertiser"] .phone-app-screen .script-audio-buttons button,
html[data-current-view="advertiser"] .phone-app-screen .media-preview-tabs button,
html[data-current-view="advertiser"] .phone-app-screen .inline-action {
  width: auto;
}

@media (max-width: 1180px) {
  html[data-current-view="advertiser"] .phone-app-screen .app-shell,
  html[data-current-view="backend"] .phone-app-screen .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-current-view="advertiser"] .phone-app-screen .side-nav,
  html[data-current-view="backend"] .phone-app-screen .side-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    min-height: 0;
    grid-row: auto;
  }

  html[data-current-view="advertiser"] .platform-copyright,
  html[data-current-view="backend"] .platform-copyright {
    grid-column: 1 / -1;
  }

  html[data-current-view="advertiser"] .phone-app-screen .workspace {
    padding: 26px 24px 32px;
  }

  html[data-current-view="advertiser"] .campaign-dashboard-grid,
  html[data-current-view="advertiser"] .manager-edit-split {
    grid-template-columns: 1fr;
  }

  html[data-current-view="advertiser"] .campaign-row,
  html[data-current-view="advertiser"] .campaign-row-head {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-current-view="advertiser"] .campaign-row-head {
    display: none;
  }

  html[data-current-view="advertiser"] .manager-stats,
  html[data-current-view="advertiser"] .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html[data-current-view="advertiser"] .phone-app-screen .workspace {
    padding: 20px 16px 44px;
  }

  html[data-current-view="advertiser"] .phone-app-screen .topbar,
  html[data-current-view="advertiser"] .media-preview-header {
    align-items: flex-start;
    flex-direction: column;
  }

  html[data-current-view="advertiser"] .manager-header-row {
    flex-direction: row;
    align-items: center;
  }

  html[data-current-view="advertiser"] .advertiser-dashboard-top,
  html[data-current-view="advertiser"] .phone-app-screen .advertiser-dashboard-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  html[data-current-view="advertiser"] .advertiser-tabs {
    width: 100%;
  }

  html[data-current-view="advertiser"] .status-strip,
  html[data-current-view="advertiser"] .manager-stats,
  html[data-current-view="advertiser"] .form-grid,
  html[data-current-view="advertiser"] .builder-fields.two,
  html[data-current-view="advertiser"] .builder-fields.four,
  html[data-current-view="advertiser"] .budget-estimate-metrics,
  html[data-current-view="advertiser"] .document-grid {
    grid-template-columns: 1fr;
  }

  html[data-current-view="advertiser"] .campaign-row-actions {
    justify-content: stretch;
  }
}

/* —— Advertiser compact density —— */
html[data-current-view="advertiser"] .phone-app-screen .workspace {
  padding: 16px 24px 52px;
}

html[data-current-view="advertiser"] .panel {
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

html[data-current-view="advertiser"] .advertiser-dashboard-top {
  margin-bottom: 8px;
  align-items: center;
}

html[data-current-view="advertiser"] .advertiser-dashboard-top h2 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.15;
}

html[data-current-view="advertiser"] .advertiser-dashboard-top .eyebrow {
  margin-bottom: 2px;
  font-size: 10px;
}

html[data-current-view="advertiser"] .advertiser-tabs {
  width: 100%;
}

html[data-current-view="advertiser"] .dashboard-lede {
  display: none;
}

html[data-current-view="advertiser"] .status-strip:not(.status-strip-clean) {
  gap: 8px;
  margin-bottom: 10px;
}

html[data-current-view="advertiser"] .status-strip:not(.status-strip-clean) div,
html[data-current-view="advertiser"] .manager-stats div {
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: none;
}

html[data-current-view="advertiser"] .status-strip:not(.status-strip-clean) span,
html[data-current-view="advertiser"] .manager-stats span {
  font-size: 10px;
  letter-spacing: 0.05em;
}

html[data-current-view="advertiser"] .status-strip:not(.status-strip-clean) strong {
  margin-top: 2px;
  font-size: 15px;
}

html[data-current-view="advertiser"] .campaign-manager #campaignRecord {
  display: none;
}

html[data-current-view="advertiser"] .campaign-manager.panel {
  padding-top: 10px;
}

html[data-current-view="advertiser"] .manager-header {
  margin-bottom: 8px;
  gap: 0;
}

html[data-current-view="advertiser"] .manager-header-title .eyebrow {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
}

html[data-current-view="advertiser"] .manager-header-row h2 {
  font-size: 17px;
  margin-bottom: 0;
}

html[data-current-view="advertiser"] .manager-edit-panel {
  margin-top: 10px;
  padding-top: 16px;
  border: 1px solid var(--rc-line);
}

html[data-current-view="advertiser"] .manager-edit-panel h3 {
  font-size: 15px;
}

html[data-current-view="advertiser"] .section-heading.compact-heading {
  margin-bottom: 8px;
}

html[data-current-view="advertiser"] .section-heading.compact-heading h2 {
  font-size: 16px;
  margin-bottom: 0;
}

html[data-current-view="advertiser"] .creative-radio-grid {
  gap: 10px 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 960px) {
  html[data-current-view="advertiser"] .creative-radio-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

html[data-current-view="advertiser"] .creative-radio-card {
  min-height: 48px;
  padding: 10px 46px 10px 14px;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
}

html[data-current-view="advertiser"] .creative-radio-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

html[data-current-view="advertiser"] .creative-radio-card::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 5px transparent;
}

html[data-current-view="advertiser"] .creative-radio-card:has(input:checked)::after {
  border-color: var(--primary);
  background: rgba(8, 241, 229, 0.16);
  box-shadow: inset 0 0 0 5px var(--primary);
}

html[data-current-view="advertiser"] .creative-radio-card.is-locked {
  cursor: not-allowed;
  opacity: 0.54;
}

html[data-current-view="advertiser"] .creative-radio-card.is-locked input {
  cursor: not-allowed;
}

html[data-current-view="advertiser"] .creative-radio-card.is-current-locked {
  opacity: 1;
  padding-right: 88px;
}

html[data-current-view="advertiser"] .creative-radio-card.is-current-locked::before {
  content: attr(data-lock-label);
  position: absolute;
  right: 38px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

html[data-current-view="advertiser"] .creative-radio-card span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

html[data-current-view="advertiser"] .creative-radio-card small {
  display: none;
}

html[data-current-view="advertiser"] .builder-fields.two,
html[data-current-view="advertiser"] .builder-fields.four {
  gap: 8px;
}

html[data-current-view="advertiser"] label {
  gap: 4px;
  font-size: 12px;
}

html[data-current-view="advertiser"] input,
html[data-current-view="advertiser"] select,
html[data-current-view="advertiser"] textarea {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
}

html[data-current-view="advertiser"] .mini-editor-card > summary.mini-editor-head {
  padding: 16px 18px;
}

html[data-current-view="advertiser"] .mini-editor-body {
  padding: 16px 18px 20px;
  gap: 14px;
}

html[data-current-view="advertiser"] .mini-editor-body-area {
  column-gap: 18px;
  row-gap: 14px;
}

html[data-current-view="advertiser"] .profile-settings-accordion .mini-editor-card {
  border-color: var(--rc-line);
  background: var(--rc-surface-1);
  box-shadow: none;
}

html[data-current-view="advertiser"] .profile-settings-accordion .mini-editor-card[open] {
  border-color: var(--rc-brand-border);
  background: var(--rc-surface-1);
  box-shadow: none;
}

html[data-current-view="advertiser"] .profile-settings-accordion .mini-editor-card[open] > summary .mini-editor-head-chevron {
  background: var(--rc-brand-soft);
  color: var(--rc-brand);
}

html[data-current-view="advertiser"] .profile-accordion-item > summary .eyebrow {
  color: var(--rc-brand);
}

html[data-current-view="advertiser"] .auth-shell {
  margin-top: 8px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .topbar {
  margin-bottom: 8px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .notice-bar {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px 12px;
}

html[data-current-view="advertiser"] .login-panel h2,
html[data-current-view="advertiser"] .registration-panel h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

html[data-current-view="advertiser"] .demo-controls-dock {
  left: 50%;
  right: auto;
  bottom: 10px;
  transform: translateX(-50%);
  width: auto;
  max-width: min(680px, calc(100vw - 120px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
}

html[data-current-view="advertiser"] .demo-controls-label {
  display: none;
}

html[data-current-view="advertiser"] .demo-controls-dock .demo-menu-button {
  width: auto;
  min-width: 0;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 999px;
}

html[data-current-view="advertiser"] .demo-link-icon {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

html[data-current-view="advertiser"] .demo-link-copy strong {
  font-size: 12px;
}

html[data-current-view="advertiser"] .demo-link-copy small,
html[data-current-view="advertiser"] .demo-link-arrow {
  display: none;
}

html[data-current-view="advertiser"] .demo-controls-toggle {
  right: 12px;
  bottom: 10px;
  padding: 8px 12px 8px 10px;
}

html[data-current-view="advertiser"] .demo-controls-toggle-text small {
  display: none;
}

html[data-current-view="advertiser"] .campaign-dashboard-grid {
  gap: 12px;
}

html[data-current-view="advertiser"] .campaign-row {
  padding: 10px 12px;
  gap: 8px;
}

@media (max-width: 860px) {
  html[data-current-view="advertiser"] .demo-controls-dock {
    max-width: calc(100vw - 24px);
    border-radius: 14px;
  }

  html[data-current-view="advertiser"] .phone-app-screen .workspace {
    padding-bottom: 88px;
  }
}

/* Business Backend — full desktop workspace (same breakout as advertiser hub) */
html[data-current-view="backend"] {
  color-scheme: dark;
  --bg: var(--rc-midnight);
  --panel: var(--rc-surface-1);
  --panel-2: var(--rc-surface-2);
  --panel-3: var(--rc-surface-3);
  --line: var(--rc-line);
  --text: var(--rc-text);
  --muted: var(--rc-text-secondary);
  --soft: var(--rc-text-muted);
  --green: var(--rc-brand);
  --cyan: var(--rc-info);
  --amber: var(--rc-gold);
  --rose: var(--rc-danger);
  --ink: var(--rc-text);
}

html[data-current-view="backend"] body {
  color: var(--text);
  background: var(--rc-platform-gradient);
}

html[data-current-view="backend"] .phone-showcase {
  display: block;
  min-height: 100vh;
  padding: 0;
}

html[data-current-view="backend"] .phone-device {
  width: 100%;
  height: auto;
  min-height: 100vh;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-current-view="backend"] .phone-device::before,
html[data-current-view="backend"] .phone-device::after,
html[data-current-view="backend"] .phone-statusbar {
  display: none;
}

html[data-current-view="backend"] .phone-app-screen {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

html[data-current-view="backend"] .phone-app-screen .app-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  background: transparent;
}

html[data-current-view="backend"] .phone-app-screen .side-nav {
  display: flex;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
}

html[data-current-view="backend"] .phone-app-screen .workspace {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 24px 32px;
}

@media (max-width: 860px) {
  html[data-current-view="backend"] .phone-app-screen .workspace {
    padding-bottom: 24px;
  }
}

/* —— Dark platform workspace (advertiser + backend) —— */
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .phone-app-screen .side-nav {
  background: rgba(8, 10, 12, 0.94);
  border-right: 1px solid var(--rc-line);
  box-shadow: 12px 0 32px rgba(0, 0, 0, 0.35);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .side-nav-eyebrow {
  color: var(--rc-text-muted);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .brand-lockup strong {
  color: var(--rc-text);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .brand-lockup span,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .side-nav .system-card small {
  color: var(--rc-text-secondary);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .side-nav .mode-button {
  border-color: var(--rc-line-strong);
  background: transparent;
  color: var(--rc-text-secondary);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .side-nav-demo-toggle {
  border-color: var(--rc-line);
  background: var(--rc-surface-2);
  color: var(--rc-text);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .side-nav-demo-menu.open .side-nav-demo-toggle {
  border-color: var(--rc-brand);
  background: transparent;
  color: var(--rc-brand);
  box-shadow: none;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .side-nav-demo-links {
  background: var(--rc-surface-1);
  border-color: var(--rc-brand-border);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .side-nav .mode-button span {
  background: var(--rc-brand-soft);
  color: var(--rc-brand);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .side-nav .mode-button.active {
  border-color: var(--rc-brand);
  background: transparent;
  color: var(--rc-brand);
  box-shadow: none;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .side-nav .system-card {
  border-color: var(--rc-line);
  background: var(--rc-surface-2);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .side-nav .danger-button {
  border-color: rgba(248, 113, 113, 0.45);
  background: transparent;
  color: #fca5a5;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .panel,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .status-strip div,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .record-card,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .ledger-entry {
  border-color: var(--rc-line);
  background: var(--rc-surface-1);
  box-shadow: var(--rc-shadow-1);
  color: var(--rc-text);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .phone-app-screen h1,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .phone-app-screen h2,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .phone-app-screen strong {
  color: var(--rc-text);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .eyebrow,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .product-kicker {
  color: var(--rc-brand);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .page-subtitle,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .panel p,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .panel small,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) label {
  color: var(--rc-text-secondary);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) input,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) select,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) textarea {
  border-color: var(--rc-line-strong);
  background: var(--rc-surface-2);
  color: var(--rc-text);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .ghost-button,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .secondary-action,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .primary-action {
  background: transparent;
  box-shadow: none;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .ledger-list,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .event-log {
  border-color: var(--rc-line);
  background: var(--rc-surface-2);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .auth-shell {
  grid-template-columns: minmax(340px, 440px);
  justify-content: center;
  margin-top: 42px;
}

html[data-current-view="backend"] .backend-auth-shell {
  margin-top: 24px;
}

html[data-current-view="backend"] .backend-auth-shell .login-panel {
  background: var(--rc-surface-1);
}

html[data-current-view="backend"] .phone-app-screen .topbar h1 {
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.backend-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.backend-workspace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.backend-operator-chip {
  margin: 0;
  color: var(--rc-text-secondary);
  font-size: 13px;
}

.backend-operator-chip strong {
  color: var(--rc-text);
}

.advertiser-logout-button,
.backend-logout-button {
  min-height: 36px;
  padding: 0 12px;
  flex: 0 0 auto;
}

.backend-tabs,
html[data-current-view="advertiser"] .advertiser-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--rc-line);
  border-radius: 14px;
  background: var(--rc-surface-2);
}

html[data-current-view="advertiser"] .advertiser-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.backend-tab-button,
html[data-current-view="advertiser"] .advertiser-tab-button {
  min-height: 44px;
  border: 1px solid var(--rc-line-strong);
  border-radius: 10px;
  padding: 0 16px;
  background: transparent;
  color: var(--rc-text-secondary);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  width: auto;
  flex: 0 0 auto;
}

html[data-current-view="advertiser"] .advertiser-tab-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.backend-tab-button.active,
html[data-current-view="advertiser"] .advertiser-tab-button.active {
  border-color: var(--rc-brand);
  background: transparent;
  color: var(--rc-brand);
  box-shadow: none;
}

.backend-section {
  display: none;
  min-width: 0;
}

.backend-section.active {
  display: block;
}

html[data-current-view="backend"] .backend-section .panel {
  margin: 0;
}

.profile-directory-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-list-panel,
.profile-dossier-panel {
  min-width: 0;
}

.profile-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-panel-heading h2 {
  margin: 0;
}

.profile-search-input {
  max-width: 360px;
  min-height: 44px;
  border-radius: 8px;
}

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

.profile-list-card {
  border-color: var(--rc-line);
  cursor: default;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.profile-list-card:hover,
.profile-list-card.active {
  border-color: var(--rc-brand);
  background: rgba(14, 206, 199, 0.08);
}

.profile-list-card.active {
  box-shadow: inset 3px 0 0 var(--rc-brand);
}

.profile-dossier {
  display: grid;
  gap: 14px;
}

.profile-empty-state {
  border: 1px dashed var(--rc-line-strong);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-empty-state--subtle {
  margin-top: 10px;
  border-style: solid;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.profile-empty-state strong,
.profile-empty-state span {
  display: block;
}

.profile-empty-state strong {
  font-size: 20px;
}

.profile-empty-state span {
  margin-top: 8px;
  color: var(--rc-text-secondary);
  line-height: 1.45;
}

.profile-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--rc-line-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 206, 199, 0.12), rgba(255, 255, 255, 0.035));
}

.profile-hero h3 {
  margin: 4px 0 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
}

.profile-pill-row,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-pill-row {
  margin-top: 12px;
}

.profile-pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--rc-line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--rc-text-secondary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-actions {
  justify-content: flex-end;
}

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

.profile-metric-grid div {
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  min-width: 0;
}

.profile-metric-grid span {
  display: block;
  color: var(--rc-text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-metric-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--rc-text);
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.dossier-section {
  display: grid;
  gap: 10px;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.dossier-section h3 {
  margin: 0;
  font-size: 18px;
}

html[data-current-view="backend"] .profile-directory-shell {
  display: block;
}

html[data-current-view="backend"] .profile-manager-panel {
  display: grid;
  gap: 16px;
}

html[data-current-view="backend"] .profile-panel-heading {
  align-items: center;
}

html[data-current-view="backend"] .profile-panel-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}

html[data-current-view="backend"] .profile-search-input {
  width: min(100%, 420px);
  max-width: 420px;
}

.profile-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  background: var(--rc-surface-1);
}

.profile-table:empty {
  display: none;
}

.profile-table-head,
.profile-table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) 112px 108px 108px 108px minmax(330px, 1fr);
  gap: 12px;
  align-items: center;
}

.profile-table-head {
  padding: 12px 14px;
  color: var(--rc-text-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rc-line);
  background: rgba(255, 255, 255, 0.025);
}

.profile-table-row {
  min-height: 70px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rc-line);
}

.profile-table-row:last-child {
  border-bottom: 0;
}

.profile-table-row:hover,
.profile-table-row.active {
  background: rgba(14, 206, 199, 0.07);
}

.moderation-table .profile-table-head,
.moderation-table .profile-table-row {
  grid-template-columns: minmax(300px, 1.45fr) 120px minmax(170px, 0.85fr) minmax(160px, 0.85fr) minmax(260px, 1.05fr) minmax(130px, 0.45fr);
}

.moderation-table .profile-table-row {
  min-height: 86px;
}

.moderation-table .profile-row-actions {
  justify-content: flex-start;
}

.moderation-table .profile-row-actions .inline-action {
  width: auto;
  min-width: 92px;
}

.moderation-finding {
  max-width: 42ch;
}

.profile-main-cell strong,
.profile-main-cell span {
  display: block;
}

.profile-main-cell strong {
  font-size: 17px;
  line-height: 1.15;
}

.profile-main-cell span,
.profile-table-row > span {
  color: var(--rc-text-secondary);
  font-size: 13px;
  line-height: 1.25;
}

.profile-status-cell {
  color: var(--rc-brand);
  font-size: 13px;
}

.profile-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.profile-row-actions .inline-action,
.profile-detail-header .inline-action {
  min-width: auto;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 12px;
}

.backend-export-bar {
  display: grid;
  grid-template-columns: minmax(190px, 240px) auto auto;
  align-items: end;
  gap: 10px;
  margin: 16px 0;
}

.backend-export-bar label {
  margin: 0;
}

.backend-export-bar button {
  min-height: 46px;
}

.payment-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.payment-settings-grid .wide {
  grid-column: 1 / -1;
}

.toggle-field {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  background: var(--rc-surface-2);
  color: var(--rc-text);
}

.toggle-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--rc-brand);
}

.gateway-secret-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.gateway-secret-status .status-card {
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--rc-surface-2);
}

.gateway-secret-status .status-card strong,
.gateway-secret-status .status-card span {
  display: block;
}

.gateway-secret-status .status-card strong {
  color: var(--rc-text);
  font-size: 0.88rem;
}

.gateway-secret-status .status-card span {
  color: var(--rc-text-muted);
  font-size: 0.78rem;
  margin-top: 3px;
}

.profile-dossier {
  margin-top: 8px;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.profile-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.profile-detail-header h3 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
  overflow-wrap: normal;
}

.profile-title-block {
  min-width: 0;
}

.profile-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-status-badges span {
  display: block;
  min-height: 30px;
  border: 1px solid var(--rc-line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--rc-text-secondary);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

html[data-current-view="backend"] .phone-app-screen .profile-row-actions .inline-action,
html[data-current-view="backend"] .phone-app-screen .profile-detail-header .inline-action {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
}

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

.profile-detail-summary div {
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  padding: 10px 12px;
}

.profile-detail-summary span {
  display: block;
  color: var(--rc-text-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-detail-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

html[data-current-view="backend"] .dossier-section {
  padding: 10px;
}

html[data-current-view="backend"] .dossier-section h3 {
  font-size: 15px;
}

html[data-current-view="backend"] .moderation-policy-panel {
  display: grid;
  gap: 10px;
}

html[data-current-view="backend"] .moderation-policy-panel h2 {
  margin: 0;
}

html[data-current-view="backend"] .moderation-policy-panel .panel-lede {
  max-width: 980px;
  margin: 0;
}

.policy-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.policy-chip-list span {
  min-height: 30px;
  border: 1px solid var(--rc-line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--rc-text-secondary);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .profile-directory-shell {
    grid-template-columns: 1fr;
  }

  .profile-panel-heading,
  .profile-hero {
    flex-direction: column;
  }

  .profile-search-input {
    max-width: none;
    width: 100%;
  }

  .profile-actions {
    justify-content: flex-start;
  }

  .profile-metric-grid {
    grid-template-columns: 1fr;
  }

  .profile-table {
    border: 0;
    background: transparent;
    gap: 10px;
  }

  .profile-table-head {
    display: none;
  }

  .profile-table-row {
    grid-template-columns: 1fr;
    gap: 7px;
    border: 1px solid var(--rc-line);
    border-radius: 8px;
    background: var(--rc-surface-1);
  }

  .profile-row-actions {
    justify-content: flex-start;
  }

  .profile-detail-summary {
    grid-template-columns: 1fr;
  }
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .notice-bar {
  display: none !important;
}

html[data-current-view="backend"] .phone-app-screen .side-nav,
html[data-current-view="advertiser"] .phone-app-screen .side-nav {
  --side-nav-width: 230px;
  overflow: visible;
}

@media (max-width: 1180px) {
  html[data-current-view="backend"] .phone-app-screen .side-nav,
  html[data-current-view="advertiser"] .phone-app-screen .side-nav {
    --side-nav-width: 100%;
  }

  .side-nav-demo-drawer {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: translateY(calc(100% + 16px));
  }

  .side-nav-demo-menu.open .side-nav-demo-drawer {
    transform: translateY(0);
  }

  .side-nav-demo-menu:focus-within .side-nav-demo-drawer {
    transform: translateY(0);
  }

  .side-nav-demo-links {
    max-width: min(920px, calc(100vw - 24px));
    flex-wrap: wrap;
  }

  .side-nav-demo-links .demo-link-button {
    min-width: min(100%, 220px);
    flex: 1 1 180px;
  }
}

/* Remove all floating demo chrome — navigation lives in the sidebar */
.demo-controls-dock,
.demo-controls-toggle,
.demo-controls-panel,
.demo-controls-backdrop {
  display: initial;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .side-nav-demo-menu {
  display: none;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-toggle {
  display: inline-flex !important;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-backdrop {
  display: block !important;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-backdrop.hidden {
  display: none !important;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-panel {
  display: flex !important;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-toggle[aria-expanded="true"] {
  background: linear-gradient(140deg, #0b2034, #0b95c2);
  border-color: var(--rc-brand-border);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-toggle-icon::before,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-toggle-icon::after,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-label,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-link-arrow,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-link-icon {
  color: var(--rc-brand) !important;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-toggle {
  border-color: var(--rc-line);
  background: var(--rc-surface-1);
  color: var(--rc-text);
  box-shadow: var(--rc-shadow-2);
  left: 24px;
  right: auto;
  bottom: 24px;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-toggle:hover {
  background: var(--rc-surface-2);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-toggle[aria-expanded="true"] {
  background: var(--rc-brand-soft);
  border-color: var(--rc-brand-border);
  color: var(--rc-brand);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-toggle-text small {
  color: var(--rc-text-secondary);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-panel {
  border-left-color: var(--rc-line);
  background: linear-gradient(180deg, var(--rc-surface-1) 0%, var(--rc-midnight) 100%);
  box-shadow: -24px 0 56px rgba(0, 0, 0, 0.45);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-panel h2 {
  color: var(--rc-text);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-panel .mode-button {
  border-color: var(--rc-line-strong);
  background: transparent;
  color: var(--rc-text-secondary);
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-panel .mode-button.active {
  border-color: var(--rc-brand);
  background: transparent;
  color: var(--rc-brand);
}

html[data-current-view="advertiser"] .side-nav-demo-menu,
html[data-current-view="advertiser"] .demo-controls-toggle,
html[data-current-view="advertiser"] .demo-controls-dock,
html[data-current-view="advertiser"] .demo-controls-backdrop,
html[data-current-view="advertiser"] .demo-controls-panel {
  display: none !important;
}

html[data-current-view="advertiser"] #loginPanel > .button-row {
  display: block;
  margin-top: 22px;
}

html[data-current-view="advertiser"] #loginAdvertiser {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(24, 209, 199, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(24, 209, 199, 0.98), rgba(86, 199, 255, 0.94)),
    var(--rc-brand);
  color: #061116;
  font-size: 17px;
  font-weight: 950;
  box-shadow:
    0 16px 34px rgba(0, 201, 183, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

html[data-current-view="advertiser"] #loginAdvertiser:hover {
  border-color: rgba(86, 199, 255, 0.92);
  background:
    linear-gradient(135deg, rgba(46, 232, 222, 1), rgba(116, 214, 255, 1)),
    var(--rc-brand);
  color: #061116;
  transform: translateY(-1px);
  box-shadow:
    0 20px 42px rgba(0, 201, 183, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

html[data-current-view="advertiser"] #loginAdvertiser:focus-visible {
  outline: 3px solid rgba(86, 199, 255, 0.34);
  outline-offset: 3px;
}

html[data-current-view="advertiser"] #loginAdvertiser:disabled {
  border-color: var(--rc-line-strong);
  background: var(--rc-surface-3);
  color: var(--rc-text-muted);
  box-shadow: none;
  transform: none;
}

html[data-current-view="advertiser"] .phone-app-screen .app-shell {
  grid-template-columns: minmax(0, 1fr) !important;
}

html[data-current-view="advertiser"] .phone-app-screen .side-nav {
  display: none !important;
}

html[data-current-view="advertiser"] .platform-copyright {
  grid-column: 1 !important;
}

.page-brand-lockup {
  display: none;
}

html[data-current-view="advertiser"] .page-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}

html[data-current-view="advertiser"] .page-brand-lockup .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 201, 183, 0.24);
}

html[data-current-view="advertiser"] .page-brand-copy {
  display: grid;
  gap: 2px;
}

html[data-current-view="advertiser"] .page-brand-copy strong {
  color: var(--rc-text);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

html[data-current-view="advertiser"] .page-brand-copy span {
  color: var(--rc-text-secondary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

/* Final advertiser dashboard metric sizing */
html[data-current-view="advertiser"] .status-strip:not(.status-strip-clean) {
  gap: 12px !important;
  margin: 0 0 18px !important;
}

html[data-current-view="advertiser"] .status-strip:not(.status-strip-clean) div {
  min-height: 0 !important;
  height: auto !important;
  padding: 14px 16px !important;
  border-radius: 8px !important;
}

html[data-current-view="advertiser"] .status-strip:not(.status-strip-clean) span {
  font-size: 12px !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

html[data-current-view="advertiser"] .status-strip:not(.status-strip-clean) strong {
  margin-top: 4px !important;
  font-size: clamp(24px, 1.8vw, 30px) !important;
  line-height: 1 !important;
}

@media (max-width: 900px) {
  html[data-current-view="advertiser"] .status-strip:not(.status-strip-clean) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Global platform canvas — driver reference palette */
html:is([data-current-view="advertiser"], [data-current-view="backend"]) body,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .phone-app-screen,
body,
.phone-app-screen {
  background: var(--rc-platform-gradient) !important;
  color: var(--rc-text) !important;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .side-nav,
.side-nav {
  background: rgba(8, 10, 12, 0.94) !important;
  border-right-color: var(--rc-line) !important;
  box-shadow: 12px 0 30px rgba(0, 0, 0, 0.38) !important;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .brand-lockup strong,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .phone-app-screen h1,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .phone-app-screen h2,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .phone-app-screen strong,
h1, h2, h3, strong, .brand-lockup strong, .phone-app-screen strong {
  color: var(--rc-text) !important;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .brand-lockup span,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .page-subtitle,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .panel p,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .panel small,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) label,
p, small, label, .brand-lockup span, .page-subtitle, .panel p, .panel small,
.mode-button--external .mode-button-arrow, .demo-link-copy small {
  color: var(--rc-text-secondary) !important;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .panel,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .status-strip div,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .record-card,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .ledger-entry,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .backend-tabs,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .ledger-list,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .event-log,
.panel, .status-strip div, .record-card, .ledger-entry, .backend-tabs,
.ledger-list, .event-log, .campaign-row, .system-card, .session-chip {
  background: var(--rc-surface-1) !important;
  border-color: var(--rc-line) !important;
  box-shadow: var(--rc-shadow-1) !important;
  color: var(--rc-text) !important;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) input,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) select,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) textarea,
input, select, textarea {
  background: var(--rc-surface-2) !important;
  border-color: var(--rc-line-strong) !important;
  color: var(--rc-text) !important;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .eyebrow,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .product-kicker,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-controls-label,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .mode-button span,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .demo-link-icon,
.eyebrow, .product-kicker, .demo-controls-label, .mode-button span,
.demo-link-icon, .demo-link-arrow, .status-dot {
  color: var(--rc-brand) !important;
}

.status-dot {
  background: var(--rc-brand-soft) !important;
  box-shadow: none !important;
}

.money span,
.money strong,
.money em,
#advWalletMetric,
#spendMetric,
#backendAdvWallet,
#participantWallet,
#platformFees,
.money-flow strong {
  background: var(--rc-compensation-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: var(--rc-brand) !important;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .money span,
  .money strong,
  .money em,
  #advWalletMetric,
  #spendMetric,
  #backendAdvWallet,
  #participantWallet,
  #platformFees,
  .money-flow strong {
    color: transparent !important;
  }
}

.money strong,
#advWalletMetric,
#spendMetric,
#backendAdvWallet,
#participantWallet,
#platformFees {
  filter: none;
}

html:is([data-current-view="advertiser"], [data-current-view="backend"]) .platform-copyright,
html:is([data-current-view="advertiser"], [data-current-view="backend"]) .platform-copyright small {
  background: rgba(6, 10, 16, 0.92) !important;
  border-top-color: var(--rc-line) !important;
  color: var(--rc-text-muted) !important;
}

/* —— Advertiser dashboard: clean layout —— */
html[data-current-view="advertiser"] #advertiserDashboard {
  --adv-gutter: 24px;
}

html[data-current-view="advertiser"] .advertiser-dashboard-brand {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

html[data-current-view="advertiser"] .advertiser-dashboard-brand h2 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

html[data-current-view="advertiser"] .status-strip-clean {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  background: var(--rc-surface-1);
  overflow: hidden;
}

html[data-current-view="advertiser"] .status-strip-clean div {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  min-height: 92px;
  margin: 0;
  padding: 18px var(--adv-gutter, 24px) !important;
  border: 0;
  border-right: 1px solid var(--rc-line);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-current-view="advertiser"] .status-strip-clean span {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--rc-text-muted);
}

html[data-current-view="advertiser"] .status-strip-clean strong {
  margin-top: 0;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.15;
}

html[data-current-view="advertiser"] .campaign-list-panel-clean {
  padding: var(--adv-gutter, 24px) var(--adv-gutter, 24px) 0;
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  background: var(--rc-surface-1);
  box-shadow: none;
  overflow: visible;
}

html[data-current-view="advertiser"] .section-heading-clean {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 0;
  border: 0;
}

html[data-current-view="advertiser"] .campaign-list-panel-clean .campaign-list-actions {
  justify-content: flex-end;
  width: auto;
  flex: 0 0 auto;
}

html[data-current-view="advertiser"] .campaign-list-panel-clean .inline-action {
  width: auto;
  min-width: 140px;
}

html[data-current-view="advertiser"] .section-heading-clean h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

html[data-current-view="advertiser"] .campaign-list-panel-clean .empty-state {
  margin: 0 calc(var(--adv-gutter, 24px) * -1);
  padding: 24px var(--adv-gutter, 24px) 28px;
  border-top: 1px solid var(--rc-line);
  border-radius: 0 0 12px 12px;
  background: var(--rc-surface-2);
}

html[data-current-view="advertiser"] .campaign-list {
  margin-top: 0;
}

html[data-current-view="advertiser"] .campaign-list-table-clean {
  display: grid;
  gap: 0;
  margin: 0 calc(var(--adv-gutter, 24px) * -1);
  border: 0;
  border-top: 1px solid var(--rc-line);
  border-radius: 0 0 12px 12px;
  overflow: visible;
  background: var(--rc-surface-2);
}

html[data-current-view="advertiser"] .campaign-row-clean {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) minmax(148px, auto);
  align-items: center;
  gap: 14px 20px;
  width: 100%;
  min-height: 68px;
  padding: 16px var(--adv-gutter, 24px);
  border: 0;
  border-bottom: 1px solid var(--rc-line);
  border-radius: 0;
  background: transparent;
  color: var(--rc-text);
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: background 140ms ease;
}

html[data-current-view="advertiser"] .campaign-row-clean:last-child {
  border-bottom: 0;
}

html[data-current-view="advertiser"] .campaign-row-clean:hover,
html[data-current-view="advertiser"] .campaign-row-clean:focus-visible {
  background: var(--rc-surface-3);
  outline: none;
}

html[data-current-view="advertiser"] .campaign-row-clean .campaign-list-copy {
  gap: 6px;
}

html[data-current-view="advertiser"] .campaign-row-clean .campaign-list-copy strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

html[data-current-view="advertiser"] .campaign-row-clean .campaign-list-copy small {
  font-size: 12px;
  font-weight: 500;
  color: var(--rc-text-muted);
  line-height: 1.4;
}

html[data-current-view="advertiser"] .campaign-row-trailing {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
  text-align: right;
}

html[data-current-view="advertiser"] .campaign-row-meta {
  color: var(--rc-text-secondary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

html[data-current-view="advertiser"] .campaign-row-chevron {
  flex: 0 0 auto;
  width: 18px;
  color: var(--rc-text-muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

html[data-current-view="advertiser"] .campaign-list-table-clean.is-select-mode .campaign-row-clean {
  grid-template-columns: auto minmax(0, 1fr) minmax(148px, auto) auto;
}

html[data-current-view="advertiser"] .campaign-row-clean.is-selected {
  background: rgba(0, 201, 183, 0.08);
}

html[data-current-view="advertiser"] .campaign-row-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

html[data-current-view="advertiser"] .campaign-row-select input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--rc-teal, #00c9b7);
  cursor: pointer;
}

html[data-current-view="advertiser"] .campaign-row-clean.is-menu-open {
  position: relative;
  z-index: 40;
}

html[data-current-view="advertiser"] .campaign-row-menu-wrap {
  position: relative;
  flex: 0 0 auto;
  z-index: 41;
}

html[data-current-view="advertiser"] .campaign-row-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rc-text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

html[data-current-view="advertiser"] .campaign-row-menu-btn:hover,
html[data-current-view="advertiser"] .campaign-row-menu-btn:focus-visible {
  background: var(--rc-surface-3);
  color: var(--rc-text);
  outline: none;
}

html[data-current-view="advertiser"] .campaign-row-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 50;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  background: var(--rc-surface-1, #111);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

html[data-current-view="advertiser"] .campaign-row-menu.is-fixed {
  position: fixed;
  top: auto;
  right: auto;
  z-index: 5000;
}

html[data-current-view="advertiser"] .campaign-row-menu.is-drop-up {
  top: auto;
  bottom: calc(100% + 4px);
}

html[data-current-view="advertiser"] .campaign-row-menu-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rc-text);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

html[data-current-view="advertiser"] .campaign-row-menu-item:hover,
html[data-current-view="advertiser"] .campaign-row-menu-item:focus-visible {
  background: var(--rc-surface-3);
  outline: none;
}

html[data-current-view="advertiser"] .campaign-row-menu-item.danger {
  color: #ff8f9b;
}

html[data-current-view="advertiser"] .campaign-list-panel-clean .danger-button:not(:disabled) {
  border-color: rgba(255, 107, 122, 0.35);
  color: #ffd8de;
  background: rgba(255, 107, 122, 0.1);
}

html[data-current-view="advertiser"] .manager-header-actions {
  align-items: center;
  gap: 10px;
}

html[data-current-view="advertiser"] .manager-header-actions .ghost-button.inline-action,
html[data-current-view="advertiser"] .manager-header-actions .primary-action.inline-action,
html[data-current-view="advertiser"] .manager-header-actions .status-pill {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0 14px;
  line-height: 1;
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
}

html[data-current-view="advertiser"] .manager-header-actions .primary-action.inline-action {
  min-width: 0;
  box-shadow: none;
}

html[data-current-view="advertiser"] .manager-header-actions .status-pill {
  border-radius: 8px;
}

html[data-current-view="advertiser"] .manager-header-actions .danger-button {
  min-height: 40px;
  height: 40px;
}

html[data-current-view="advertiser"] .campaign-status-dot {
  width: 8px;
  height: 8px;
  box-shadow: none;
}

html[data-current-view="advertiser"] .phone-app-screen .advertiser-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

html[data-current-view="advertiser"] .phone-app-screen .advertiser-tab-button {
  width: 100%;
}

html[data-current-view="advertiser"] .panel {
  box-shadow: none;
}

html[data-current-view="advertiser"] .login-panel,
html[data-current-view="advertiser"] .registration-panel,
html[data-current-view="backend"] .backend-auth-shell .login-panel {
  box-shadow:
    0 0 0 1px var(--rc-line),
    0 0 48px rgba(0, 201, 183, 0.08),
    0 0 96px rgba(0, 201, 183, 0.035) !important;
}

html[data-current-view="advertiser"] .advertiser-section.active {
  display: block;
  margin: 0;
}

html[data-current-view="advertiser"] .campaign-dashboard-grid,
html[data-current-view="advertiser"] .campaign-dashboard-grid.empty-campaigns {
  gap: 0;
  margin: 0;
}

html[data-current-view="advertiser"] .dashboard-shell {
  gap: 18px;
}

html[data-current-view="advertiser"] .status-strip-clean div:last-child {
  border-right: 0;
}

html[data-current-view="advertiser"] .status-strip-clean span,
html[data-current-view="advertiser"] .status-strip-clean strong {
  display: block;
  text-align: left;
}

html[data-current-view="advertiser"] .advertiser-logout-button {
  align-self: center;
  flex: 0 0 auto;
  margin-left: auto;
}

@media (max-width: 1180px) {
  html[data-current-view="advertiser"] .phone-app-screen .side-nav {
    align-items: flex-start;
  }

  html[data-current-view="advertiser"] .phone-app-screen .brand-lockup {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 900px) {
  html[data-current-view="advertiser"] #advertiserDashboard {
    --adv-gutter: 18px;
  }

  html[data-current-view="advertiser"] .advertiser-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  html[data-current-view="advertiser"] .status-strip-clean {
    flex-wrap: wrap;
  }

  html[data-current-view="advertiser"] .status-strip-clean div {
    flex: 1 1 calc(50% - 1px);
    min-height: 76px;
    padding: 16px var(--adv-gutter, 18px);
  }

  html[data-current-view="advertiser"] .status-strip-clean div:nth-child(2n) {
    border-right: 0;
  }

  html[data-current-view="advertiser"] .status-strip-clean div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rc-line);
  }

  html[data-current-view="advertiser"] .section-heading-clean {
    flex-direction: column;
    align-items: stretch;
  }

  html[data-current-view="advertiser"] .campaign-list-panel-clean .campaign-list-actions {
    justify-content: flex-start;
    width: 100%;
  }

  html[data-current-view="advertiser"] .campaign-row-clean {
    grid-template-columns: 8px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 10px 14px;
    min-height: 0;
    padding: 14px var(--adv-gutter, 18px);
  }

  html[data-current-view="advertiser"] .campaign-list-table-clean.is-select-mode .campaign-row-clean {
    grid-template-columns: auto minmax(0, 1fr);
  }

  html[data-current-view="advertiser"] .campaign-row-trailing {
    grid-column: 2;
    justify-content: space-between;
  }

  html[data-current-view="advertiser"] .campaign-row-meta {
    white-space: normal;
  }
}

.safety-bot-panel {
  display: grid;
  gap: 10px;
  margin: 18px 0 12px;
  padding: 18px 24px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.72));
}

.safety-bot-panel.hidden { display: none; }

.safety-bot-panel--blocked {
  border-color: rgba(248, 113, 113, 0.65);
  background: linear-gradient(160deg, rgba(127, 29, 29, 0.55), rgba(60, 11, 11, 0.78));
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.18), 0 18px 38px rgba(220, 38, 38, 0.18);
}

.safety-bot-panel--clean {
  border-color: rgba(0, 201, 183, 0.48);
  background: linear-gradient(160deg, rgba(0, 201, 183, 0.18), rgba(6, 10, 16, 0.72));
}

.safety-bot-panel .safety-bot-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin: 0;
}

.safety-bot-panel .safety-bot-header strong {
  font-size: clamp(1rem, 1vw, 1.22rem);
  line-height: 1.25;
  color: var(--rc-text, #f8fafc);
}

.safety-bot-panel .safety-bot-pill {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.safety-bot-panel .safety-bot-pill.blocked {
  background: rgba(248, 113, 113, 0.22);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.55);
}

.safety-bot-panel .safety-bot-pill.clean {
  background: rgba(0, 201, 183, 0.18);
  color: #22fff0;
  border: 1px solid rgba(0, 201, 183, 0.55);
}

.safety-bot-panel .safety-bot-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid rgba(22, 224, 214, 0.3);
  border-radius: 999px;
  background: rgba(7, 18, 30, 0.36);
  color: var(--rc-text, #f8fafc);
  font-size: clamp(0.9rem, 0.95vw, 1.08rem);
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(22, 224, 214, 0.1), 0 0 22px rgba(22, 224, 214, 0.08);
}

.safety-bot-panel .safety-bot-source-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--rc-brand, #16e0d6);
}

.safety-bot-panel .safety-bot-source-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.safety-bot-panel .safety-bot-detail {
  margin: 0;
  font-size: clamp(0.92rem, 0.95vw, 1.02rem);
  line-height: 1.5;
  color: var(--rc-text, #f8fafc);
}

@media (max-width: 780px) {
  .safety-bot-panel {
    padding: 16px;
  }

  .safety-bot-panel .safety-bot-source {
    order: 3;
    margin-left: 0;
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.9rem;
  }

  .safety-bot-panel .safety-bot-source-icon,
  .safety-bot-panel .safety-bot-source-icon svg {
    width: 24px;
    height: 24px;
  }
}

.safety-bot-panel .safety-bot-detail code {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fee2e2;
  font-size: 0.82rem;
}

.safety-bot-panel--clean .safety-bot-detail code {
  border-color: rgba(0, 201, 183, 0.45);
  color: #bffefa;
}

.safety-bot-panel .safety-bot-action {
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  line-height: 1.45;
  color: #fecaca;
}

.upload-moderation-banner {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.upload-moderation-banner.hidden {
  display: none;
}

.upload-moderation-banner--blocked {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
}

.upload-moderation-banner--blocked strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 0.95rem;
}

.upload-moderation-banner--blocked p {
  margin: 0 0 6px;
}

.upload-moderation-banner--blocked p:last-child {
  margin-bottom: 0;
}

.safety-bot-panel--scanning {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(30, 58, 138, 0.18);
}

.safety-bot-panel .safety-bot-pill.scanning {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.35);
}

.safety-bot-check-grid {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.safety-bot-footnotes {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.safety-bot-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.safety-bot-summary--qr {
  color: #cbd5e1;
}

.safety-bot-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.safety-bot-panel-head strong {
  display: block;
  font-size: 1.05rem;
}

.safety-bot-panel-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.safety-bot-badge {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.35);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.safety-bot-lede,
.panel-lede {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 14px;
}

.safety-bot-checklist div {
  border-color: rgba(248, 113, 113, 0.18);
}

.safety-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.safety-check-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.55);
}

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

.safety-check-copy strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.3;
}

.safety-check-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.safety-check b,
.safety-check span {
  display: none;
}

.safety-check--checking {
  border-color: rgba(248, 113, 113, 0.55);
}

.safety-check--checking .safety-check-mark {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.45);
  animation: safetyCheckFade 1.1s ease-in-out infinite;
}

.safety-check--pass .safety-check-mark {
  color: #22fff0;
  border-color: rgba(0, 201, 183, 0.45);
  background: rgba(0, 201, 183, 0.16);
}

.safety-check--fail .safety-check-mark {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(127, 29, 29, 0.35);
}

@keyframes safetyCheckPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0); }
}

@keyframes safetyCheckFade {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.safety-bot-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: min(92vw, 420px);
  padding: 11px 14px;
  border-radius: 18px;
  border: 1px solid rgba(0, 201, 183, 0.22);
  background: linear-gradient(145deg, rgba(18, 28, 48, 0.97), rgba(12, 20, 36, 0.94));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  animation: safetyBotToastIn 0.28s ease-out;
}

.safety-bot-toast-body {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.safety-bot-toast.hidden {
  display: none;
}

.safety-bot-toast--scanning {
  border-color: rgba(0, 201, 183, 0.32);
}

.safety-bot-toast--scanning .safety-bot-toast-copy span {
  color: var(--muted);
}

.safety-bot-toast-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 1.28rem;
  line-height: 1;
  border-radius: 999px;
  background: rgba(0, 201, 183, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 201, 183, 0.14);
}

.safety-bot-toast--fade-out {
  animation: safetyBotToastOut 0.32s ease-in forwards;
}

.safety-bot-toast--sticky {
  animation: none;
  max-width: min(96vw, 440px);
  padding: 11px 76px 11px 14px;
  border-width: 1px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.safety-bot-toast--sticky .safety-bot-toast-copy span {
  font-size: 0.84rem;
  line-height: 1.42;
  white-space: normal;
}

.safety-bot-toast-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
}

.safety-bot-toast-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.safety-bot-toast-close.hidden {
  display: none;
}

.safety-bot-toast--complete {
  border-color: rgba(0, 201, 183, 0.34);
}

.safety-bot-toast--complete .safety-bot-toast-icon {
  background: rgba(0, 201, 183, 0.14);
  box-shadow: inset 0 0 0 1px rgba(0, 201, 183, 0.18);
}

.safety-bot-toast--blocked.safety-bot-toast--complete {
  border-color: rgba(248, 113, 113, 0.38);
}

.safety-bot-toast--blocked .safety-bot-toast-icon {
  background: rgba(248, 113, 113, 0.14);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.2);
}

.safety-bot-toast--blocked {
  border-color: rgba(248, 113, 113, 0.38);
}

.safety-bot-toast-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  padding: 0;
}

.safety-bot-toast-copy strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.25;
  color: var(--text);
}

.safety-bot-toast-copy span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.38;
  color: var(--muted);
}

.safety-bot-toast--complete .safety-bot-toast-copy span {
  color: #bffefa;
}

.safety-bot-toast--blocked.safety-bot-toast--complete .safety-bot-toast-copy span {
  color: #fecaca;
}

@keyframes safetyBotToastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes safetyBotToastOut {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

.campaign-record-line--warning {
  color: #fca5a5;
}

.safety-bot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.84);
  backdrop-filter: blur(8px);
}

.safety-bot-overlay.hidden {
  display: none;
}

.safety-bot-scan-card {
  width: min(92vw, 440px);
  padding: 28px 24px 22px;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.safety-bot-beacon {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 14px;
}

.safety-bot-beacon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(248, 113, 113, 0.15) 70deg, rgba(248, 113, 113, 0.95) 130deg, transparent 220deg);
  animation: safetyBeaconSpin 1.15s linear infinite;
}

.safety-bot-beacon-glow {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 113, 113, 0.35) 0%, rgba(248, 113, 113, 0) 72%);
  animation: safetyCheckFade 1.1s ease-in-out infinite;
}

@keyframes safetyBeaconSpin {
  to { transform: rotate(360deg); }
}

.safety-bot-siren {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  line-height: 1;
  animation: safetyBotSirenFlash 0.85s ease-in-out infinite;
}

@keyframes safetyBotSirenFlash {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(248, 113, 113, 0.95));
  }
  50% {
    opacity: 0.35;
    transform: scale(0.92);
    filter: drop-shadow(0 0 2px rgba(248, 113, 113, 0.2));
  }
}

.safety-bot-overlay-step {
  color: #fca5a5;
  font-weight: 700;
  margin: 8px 0 16px;
}

.safety-bot-progress {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
}

.safety-bot-progress li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.88rem;
}

.safety-bot-progress-mark {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.safety-bot-progress li.is-pending {
  opacity: 0.55;
}

.safety-bot-progress li.is-active {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.22);
  animation: safetyCheckFade 1.1s ease-in-out infinite;
}

.safety-bot-progress li.is-active .safety-bot-progress-mark {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.45);
}

.safety-bot-progress li.is-done {
  color: #bffefa;
  border-color: rgba(0, 201, 183, 0.28);
}

.safety-bot-progress li.is-done .safety-bot-progress-mark {
  color: #22fff0;
  border-color: rgba(0, 201, 183, 0.45);
  background: rgba(0, 201, 183, 0.16);
}

/* Audit log — per-proof transparency table + drill-in */
.audit-log-shell { display: grid; gap: 16px; }

/* Per-campaign audit log embedded inside the campaign manager */
.campaign-audit-log {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  background: var(--rc-surface-1);
}

.campaign-audit-log .audit-log-summary { margin: 8px 0 4px; }
.campaign-audit-log .audit-log-detail-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.campaign-audit-log .audit-log-detail-panel.hidden { display: none; }

/* Dashboard-first campaign manager: hide editor until "Edit Campaign". */
.campaign-manager.is-view-mode #campaignEditorPanel {
  display: none !important;
}

.campaign-manager.is-view-mode #campaignActionHint.hidden {
  display: none;
}
.campaign-manager.is-edit-mode #toggleCampaignEditMode {
  background: var(--rc-brand-soft, rgba(0, 201, 183, 0.14));
  border-color: var(--rc-brand-border, rgba(0, 201, 183, 0.38));
  color: var(--rc-brand, #00c9b7);
}

.audit-log-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}
.audit-log-summary > div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.audit-log-summary strong {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rc-text-secondary);
}
.audit-log-summary span {
  font-weight: 700;
  font-size: 1.05rem;
}
.audit-log-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.audit-log-controls label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
}
.audit-log-table-wrap { overflow-x: auto; }
.audit-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.audit-log-table th, .audit-log-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.audit-log-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rc-text-secondary);
}
.audit-log-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.audit-log-table tbody tr {
  cursor: pointer;
  transition: background 120ms ease;
}
.audit-log-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}
.audit-log-table tbody tr.is-selected {
  background: rgba(95, 196, 130, 0.10);
}
.audit-tier {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.audit-tier--green { background: rgba(34, 197, 94, 0.12); color: #86efac; border-color: rgba(34, 197, 94, 0.35); }
.audit-tier--amber { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border-color: rgba(245, 158, 11, 0.35); }
.audit-tier--red { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); }
.audit-status {
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.audit-status.is-verified { color: #86efac; border-color: rgba(34, 197, 94, 0.35); }
.audit-status.is-unverified { color: #fbbf24; border-color: rgba(245, 158, 11, 0.35); }
.audit-status.is-disputed { color: #fca5a5; border-color: rgba(239, 68, 68, 0.45); background: rgba(127, 29, 29, 0.18); }

.audit-log-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.audit-log-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.audit-detail-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.85rem;
}
.audit-detail-card h4 {
  margin: 0 0 8px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rc-text-secondary);
}
.audit-detail-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(80px, max-content) 1fr;
  column-gap: 10px;
  row-gap: 4px;
}
.audit-detail-card dt {
  color: var(--rc-text-secondary);
  font-size: 0.74rem;
}
.audit-detail-card dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.audit-detail-card-wide {
  grid-column: 1 / -1;
}
.audit-billing-list, .audit-dispute-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.audit-billing-list li, .audit-dispute-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 6px 12px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}
.audit-billing-list small, .audit-dispute-list small {
  grid-column: 1 / -1;
  font-size: 0.72rem;
}
.audit-log-dispute-card {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px dashed rgba(255, 195, 80, 0.4);
  background: rgba(255, 195, 80, 0.06);
  border-radius: 12px;
}
.audit-log-dispute-card.is-locked { opacity: 0.55; }
.audit-log-dispute-status { color: var(--rc-text-secondary); font-size: 0.85rem; }

/* Final advertiser login composition */
html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) {
  display: grid;
  grid-template-columns: minmax(260px, 470px) minmax(360px, 560px);
  align-items: center;
  justify-content: center;
  column-gap: clamp(48px, 8vw, 124px);
  min-height: calc(100vh - 56px);
  padding: clamp(24px, 4vw, 42px) clamp(24px, 5vw, 64px) 54px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) > .topbar {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  display: block;
  margin: 0;
  padding: 0;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) > #advertiserView {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-height: auto !important;
}

html[data-current-view="advertiser"] #advertiserView:has(#advertiserOnboarding:not(.hidden))::before,
html[data-current-view="advertiser"] #advertiserView:has(#advertiserOnboarding:not(.hidden))::after {
  content: none !important;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .product-heading {
  max-width: 470px;
}

html[data-current-view="advertiser"] .advertiser-login-brand-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(34px, 7vw, 74px);
}

html[data-current-view="advertiser"] .page-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

html[data-current-view="advertiser"] .page-brand-lockup .brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  font-size: 17px;
  box-shadow: 0 18px 36px rgba(0, 201, 183, 0.26);
}

html[data-current-view="advertiser"] .page-brand-copy strong {
  font-size: 20px;
  letter-spacing: 0;
}

html[data-current-view="advertiser"] .page-brand-copy span {
  font-size: 14px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .product-kicker {
  margin: 0;
  min-height: 40px;
  padding: 0 18px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) #pageTitle {
  max-width: 460px;
  margin: 0;
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.02;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) #pageSubtitle {
  max-width: 430px;
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.5;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) #advertiserOnboarding {
  width: 100%;
  margin: 0;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .auth-shell {
  display: block;
}

html[data-current-view="advertiser"] #loginPanel {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(34px, 4vw, 48px) clamp(28px, 4vw, 54px);
  border: 1px solid rgba(151, 164, 184, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(0, 201, 183, 0.08), transparent 42%),
    rgba(15, 21, 29, 0.84) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 24px 70px rgba(0, 0, 0, 0.28) !important;
}

html[data-current-view="advertiser"] .login-card-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
  border: 1px solid rgba(24, 209, 199, 0.62);
  border-radius: 50%;
  background: rgba(24, 209, 199, 0.08);
}

html[data-current-view="advertiser"] .login-card-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--rc-brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-current-view="advertiser"] #loginPanel h2 {
  margin: 0;
  text-align: center;
  font-size: 25px;
  line-height: 1.2;
}

html[data-current-view="advertiser"] .login-panel-copy {
  margin: 12px auto 34px;
  text-align: center;
  color: var(--rc-text-secondary);
  font-size: 15px;
  font-weight: 700;
}

html[data-current-view="advertiser"] .login-form-stack {
  display: grid;
  gap: 20px;
}

html[data-current-view="advertiser"] .login-field label {
  display: block;
  margin: 0 0 8px;
  color: rgba(209, 216, 226, 0.78);
  font-size: 13px;
  font-weight: 800;
}

html[data-current-view="advertiser"] .login-input-shell {
  min-height: 54px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(151, 164, 184, 0.3);
  border-radius: 8px;
  padding: 0 14px;
  background: #0d141f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

html[data-current-view="advertiser"] .login-input-shell:focus-within {
  border-color: rgba(0, 201, 183, 0.58);
  background: #0d141f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 3px rgba(0, 201, 183, 0.14);
}

html[data-current-view="advertiser"] .login-input-icon {
  display: grid;
  place-items: center;
  color: rgba(209, 216, 226, 0.72);
}

html[data-current-view="advertiser"] .login-input-shell:focus-within .login-input-icon {
  color: var(--rc-brand);
}

html[data-current-view="advertiser"] .login-input-icon svg,
html[data-current-view="advertiser"] .login-password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-current-view="advertiser"] .login-input-shell input {
  appearance: none;
  -webkit-appearance: none;
  min-height: 52px;
  width: 100%;
  border-radius: 0;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--rc-text) !important;
  box-shadow: none !important;
  caret-color: var(--rc-text);
}

html[data-current-view="advertiser"] .login-input-shell input:focus {
  outline: 0;
  box-shadow: none !important;
}

html[data-current-view="advertiser"] .login-input-shell input:-webkit-autofill,
html[data-current-view="advertiser"] .login-input-shell input:-webkit-autofill:hover,
html[data-current-view="advertiser"] .login-input-shell input:-webkit-autofill:focus,
html[data-current-view="advertiser"] .login-input-shell input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--rc-text) !important;
  caret-color: var(--rc-text);
  border: 0 !important;
  -webkit-box-shadow: 0 0 0 1000px #0d141f inset !important;
  box-shadow: 0 0 0 1000px #0d141f inset !important;
  transition: background-color 600000s 0s, color 600000s 0s;
}

html[data-current-view="advertiser"] .login-password-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: var(--rc-text-secondary);
  cursor: pointer;
}

html[data-current-view="advertiser"] .login-password-toggle:hover,
html[data-current-view="advertiser"] .login-password-toggle.active {
  color: var(--rc-text);
  background: rgba(255, 255, 255, 0.06);
}

html[data-current-view="advertiser"] #loginPanel > .button-row {
  display: block;
  margin-top: 28px;
}

html[data-current-view="advertiser"] #loginAdvertiser {
  min-height: 58px;
}

html[data-current-view="advertiser"] .demo-login-copy {
  margin: 18px 0 0;
  text-align: center;
}

html[data-current-view="advertiser"] .saved-roadshow-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rc-text-secondary) !important;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none !important;
}

html[data-current-view="advertiser"] .saved-roadshow-login:hover {
  color: var(--rc-text) !important;
}

html[data-current-view="advertiser"] .saved-roadshow-check {
  width: 20px;
  height: 20px;
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--rc-brand);
  box-shadow: 0 8px 18px rgba(0, 201, 183, 0.2);
}

html[data-current-view="advertiser"] .saved-roadshow-check::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #052326;
  border-bottom: 2px solid #052326;
  transform: rotate(-45deg) translate(1px, -1px);
}

html[data-current-view="advertiser"] .login-card-footer {
  margin: 28px 0 0;
  gap: 12px;
}

html[data-current-view="advertiser"] .oauth-divider {
  margin-bottom: 6px;
  color: var(--rc-text-secondary);
}

html[data-current-view="advertiser"] .oauth-divider::before,
html[data-current-view="advertiser"] .oauth-divider::after {
  background: rgba(151, 164, 184, 0.22);
}

html[data-current-view="advertiser"] .oauth-provider-button,
html[data-current-view="advertiser"] .oauth-provider-button.unconfigured,
html[data-current-view="advertiser"] .oauth-provider-button.microsoft {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(151, 164, 184, 0.38);
  border-style: solid;
  border-radius: 8px;
  background: rgba(8, 14, 22, 0.38);
  color: var(--rc-text);
  font-size: 16px;
  font-weight: 850;
  box-shadow: none;
}

html[data-current-view="advertiser"] .oauth-provider-button:hover,
html[data-current-view="advertiser"] .oauth-provider-button.unconfigured:hover {
  border-color: rgba(86, 199, 255, 0.62);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

html[data-current-view="advertiser"] .oauth-provider-logo {
  flex: 0 0 auto;
}

html[data-current-view="advertiser"] .oauth-provider-logo-google {
  color: #4285f4;
  font-size: 21px;
  font-weight: 950;
}

html[data-current-view="advertiser"] .oauth-provider-logo-microsoft {
  width: 20px;
  height: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

html[data-current-view="advertiser"] .oauth-provider-logo-microsoft i {
  display: block;
}

html[data-current-view="advertiser"] .oauth-provider-logo-microsoft i:nth-child(1) { background: #f25022; }
html[data-current-view="advertiser"] .oauth-provider-logo-microsoft i:nth-child(2) { background: #7fba00; }
html[data-current-view="advertiser"] .oauth-provider-logo-microsoft i:nth-child(3) { background: #00a4ef; }
html[data-current-view="advertiser"] .oauth-provider-logo-microsoft i:nth-child(4) { background: #ffb900; }

html[data-current-view="advertiser"] #loginPanel .auth-switch {
  margin-top: 28px;
  font-size: 15px;
}

html[data-current-view="advertiser"] #loginPanel .auth-switch .auth-link {
  color: var(--rc-brand) !important;
}

@media (max-width: 980px) {
  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
    align-items: start;
  }

  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) > .topbar,
  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) > #advertiserView {
    grid-column: 1;
    grid-row: auto;
  }

  html[data-current-view="advertiser"] .advertiser-login-brand-row {
    margin-bottom: 28px;
  }

  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) #pageSubtitle {
    font-size: 17px;
  }
}

/* Final advertiser dashboard composition */
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) {
  min-height: 100vh;
  padding: 0 40px 28px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) > .topbar {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -40px 34px;
  padding: 0 38px;
  border-bottom: 1px solid rgba(151, 164, 184, 0.18);
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .advertiser-login-brand-row {
  margin: 0;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) #pageTitle,
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) #pageSubtitle {
  display: none;
}

html[data-current-view="advertiser"] .advertiser-logout-button {
  display: none;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .advertiser-logout-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  border-color: rgba(151, 164, 184, 0.26);
  border-radius: 8px;
  padding: 0 22px;
  color: var(--rc-text);
  font-size: 16px;
  font-weight: 850;
}

html[data-current-view="advertiser"] .logout-icon svg,
html[data-current-view="advertiser"] .tab-icon svg,
html[data-current-view="advertiser"] .dashboard-metric-icon svg,
html[data-current-view="advertiser"] .button-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-current-view="advertiser"] .dashboard-shell {
  display: grid;
  gap: 26px;
}

html[data-current-view="advertiser"] .advertiser-dashboard-top,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-dashboard-top {
  display: block;
  margin: 0;
}

html[data-current-view="advertiser"] .advertiser-dashboard-brand .eyebrow {
  margin: 0 0 10px;
  color: var(--rc-brand);
  font-size: 14px;
  letter-spacing: 0.09em;
}

html[data-current-view="advertiser"] .advertiser-dashboard-brand h2 {
  margin: 0;
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1.08;
  font-weight: 950;
}

html[data-current-view="advertiser"] .advertiser-dashboard-subtitle {
  margin: 12px 0 0;
  color: var(--rc-text-secondary);
  font-size: 18px;
  font-weight: 700;
}

html[data-current-view="advertiser"] .advertiser-tabs,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  min-height: 72px;
  border: 1px solid rgba(151, 164, 184, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 201, 183, 0.045), transparent 42%),
    rgba(11, 18, 29, 0.78);
}

html[data-current-view="advertiser"] .advertiser-tab-button {
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-right: 1px solid rgba(151, 164, 184, 0.12);
  border-radius: 0;
  background: transparent;
  color: var(--rc-text-secondary);
  font-size: 16px;
  font-weight: 850;
}

html[data-current-view="advertiser"] .advertiser-tab-button:last-child {
  border-right: 0;
}

html[data-current-view="advertiser"] .advertiser-tab-button.active {
  border-right-color: rgba(151, 164, 184, 0.12);
  background:
    linear-gradient(0deg, rgba(0, 201, 183, 0.12), rgba(0, 201, 183, 0.12)) bottom / 100% 2px no-repeat,
    rgba(0, 201, 183, 0.06);
  color: var(--rc-brand);
}

html[data-current-view="advertiser"] .tab-icon {
  display: grid;
  place-items: center;
  color: inherit;
}

html[data-current-view="advertiser"] .status-strip-clean {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

html[data-current-view="advertiser"] .status-strip-clean div {
  min-height: 140px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 26px;
  border: 1px solid rgba(0, 201, 183, 0.24);
  border-radius: 14px;
  padding: 28px 30px !important;
  background:
    linear-gradient(135deg, rgba(0, 201, 183, 0.055), transparent 50%),
    rgba(14, 23, 35, 0.72) !important;
}

html[data-current-view="advertiser"] .dashboard-metric-icon {
  grid-row: 1 / span 2;
  width: 74px;
  height: 74px;
  display: grid !important;
  place-items: center;
  border: 1px solid rgba(86, 199, 255, 0.18);
  border-radius: 24px;
  background: rgba(151, 164, 184, 0.08);
  color: var(--rc-brand);
}

html[data-current-view="advertiser"] .status-strip-clean div > span:not(.dashboard-metric-icon) {
  color: var(--rc-text-secondary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html[data-current-view="advertiser"] .status-strip-clean strong {
  color: var(--rc-text) !important;
  font-size: clamp(28px, 2.7vw, 38px);
  font-weight: 950;
  line-height: 1;
}

html[data-current-view="advertiser"] #advWalletMetric,
html[data-current-view="advertiser"] #spendMetric {
  background: linear-gradient(180deg, #061817 0%, #00675f 22%, #00c9b7 68%, #22fff0 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  filter: none !important;
  text-shadow: none !important;
  mix-blend-mode: normal !important;
}

html[data-current-view="advertiser"] .campaign-list-panel-clean {
  padding: 28px 30px 24px;
  border: 1px solid rgba(151, 164, 184, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(0, 201, 183, 0.035), transparent 45%),
    rgba(14, 23, 35, 0.74);
}

html[data-current-view="advertiser"] .section-heading-clean {
  margin-bottom: 22px;
}

html[data-current-view="advertiser"] .section-heading-clean h2 {
  font-size: 25px;
  font-weight: 950;
}

html[data-current-view="advertiser"] .campaign-list-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

html[data-current-view="advertiser"] .campaign-list-panel-clean .inline-action {
  min-width: 132px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 850;
}

html[data-current-view="advertiser"] #campaignStatusFilter {
  border-color: rgba(151, 164, 184, 0.28);
}

html[data-current-view="advertiser"] .campaign-list-panel-clean #toggleCampaignSelectMode {
  display: none !important;
}

html[data-current-view="advertiser"] #goCreateCampaign {
  min-width: 190px;
  border-color: rgba(24, 209, 199, 0.72);
  background:
    linear-gradient(135deg, rgba(24, 209, 199, 0.98), rgba(86, 199, 255, 0.94)),
    var(--rc-brand);
  color: #061116;
  box-shadow: 0 14px 28px rgba(0, 201, 183, 0.18);
}

html[data-current-view="advertiser"] .campaign-list-table-clean {
  border: 0;
  border-radius: 0;
  overflow: visible;
}

html[data-current-view="advertiser"] .campaign-table-header,
html[data-current-view="advertiser"] .campaign-row-clean {
  display: grid;
  grid-template-columns: 36px minmax(220px, 1.35fr) minmax(110px, 0.55fr) minmax(140px, 0.65fr) minmax(210px, 0.9fr) 92px;
  align-items: center;
  column-gap: 18px;
}

html[data-current-view="advertiser"] .campaign-table-header {
  min-height: 48px;
  padding: 0;
  border-bottom: 1px solid rgba(151, 164, 184, 0.16);
  color: var(--rc-text-secondary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

html[data-current-view="advertiser"] .campaign-row-clean {
  min-height: 82px;
  padding: 0;
  border-bottom: 1px solid rgba(151, 164, 184, 0.12);
  background: transparent;
}

html[data-current-view="advertiser"] .campaign-row-clean:last-child {
  border-bottom: 0;
}

html[data-current-view="advertiser"] .campaign-list-copy strong {
  font-size: 16px;
}

html[data-current-view="advertiser"] .campaign-list-copy small,
html[data-current-view="advertiser"] .campaign-table-summary small,
html[data-current-view="advertiser"] .campaign-row-meta {
  color: var(--rc-text-secondary);
  font-size: 14px;
  font-weight: 700;
}

html[data-current-view="advertiser"] .campaign-table-summary {
  display: grid;
  gap: 4px;
}

html[data-current-view="advertiser"] .campaign-table-summary strong {
  font-size: 15px;
  font-weight: 850;
}

html[data-current-view="advertiser"] .campaign-table-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(151, 164, 184, 0.24);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--rc-text-secondary);
  font-size: 13px;
  font-weight: 900;
}

html[data-current-view="advertiser"] .campaign-table-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

html[data-current-view="advertiser"] .campaign-table-status.status-active {
  border-color: rgba(0, 201, 183, 0.34);
  color: var(--rc-brand);
  background: rgba(0, 201, 183, 0.06);
}

html[data-current-view="advertiser"] .campaign-table-status.status-draft {
  border-color: rgba(255, 185, 0, 0.32);
  color: #ffbf37;
  background: rgba(255, 185, 0, 0.07);
}

html[data-current-view="advertiser"] .campaign-row-trailing {
  justify-content: flex-end;
}

html[data-current-view="advertiser"] .campaign-row-menu-btn {
  width: 60px;
  height: 40px;
  border-color: rgba(151, 164, 184, 0.22);
  border-radius: 8px;
  color: var(--rc-text-secondary);
}

html[data-current-view="advertiser"] .campaign-row-chevron {
  display: none;
}

@media (max-width: 1180px) {
  html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) {
    padding: 0 24px 24px;
  }

  html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) > .topbar {
    margin-left: -24px;
    margin-right: -24px;
    padding: 0 24px;
  }

  html[data-current-view="advertiser"] .status-strip-clean {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-current-view="advertiser"] .campaign-list-table-clean {
    overflow-x: auto;
  }

  html[data-current-view="advertiser"] .campaign-table-header,
  html[data-current-view="advertiser"] .campaign-row-clean {
    min-width: 940px;
  }
}

@media (max-width: 760px) {
  html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) > .topbar {
    min-height: 128px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .advertiser-logout-button {
    margin-left: 0;
  }

  html[data-current-view="advertiser"] .advertiser-tabs,
  html[data-current-view="advertiser"] .phone-app-screen .advertiser-tabs,
  html[data-current-view="advertiser"] .status-strip-clean {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Login scale tune and moving teal wash */
html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(240px, 400px) minmax(320px, 500px);
  column-gap: clamp(36px, 6vw, 88px);
  padding: clamp(20px, 3vw, 34px) clamp(22px, 4vw, 52px) 46px;
  overflow: hidden;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden))::before {
  content: "";
  position: fixed;
  inset: -18vh -14vw;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 4%, rgba(0, 201, 183, 0.05) 28%, rgba(0, 201, 183, 0.18) 43%, rgba(0, 118, 143, 0.09) 58%, transparent 78%),
    linear-gradient(292deg, transparent 12%, rgba(0, 201, 183, 0.11) 38%, rgba(86, 199, 255, 0.055) 50%, transparent 72%);
  background-size: 150% 150%, 180% 180%;
  filter: blur(34px);
  opacity: 0.72;
  animation: advertiser-login-teal-wash 24s ease-in-out infinite alternate;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) > * {
  position: relative;
  z-index: 1;
}

html[data-current-view="advertiser"] .advertiser-login-brand-row {
  margin-bottom: clamp(28px, 5.4vw, 58px);
}

html[data-current-view="advertiser"] .page-brand-lockup .brand-mark {
  width: 50px;
  height: 50px;
  font-size: 15px;
}

html[data-current-view="advertiser"] .page-brand-copy strong {
  font-size: 18px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .product-kicker {
  min-height: 34px;
  padding: 0 15px;
  font-size: 11px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) #pageTitle {
  font-size: clamp(34px, 4vw, 48px);
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) #pageSubtitle {
  max-width: 390px;
  font-size: 18px;
}

html[data-current-view="advertiser"] #loginPanel {
  max-width: 500px;
  padding: clamp(28px, 3.2vw, 40px) clamp(24px, 3.4vw, 44px);
}

html[data-current-view="advertiser"] .login-card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
}

html[data-current-view="advertiser"] .login-card-icon svg {
  width: 31px;
  height: 31px;
}

html[data-current-view="advertiser"] #loginPanel h2 {
  font-size: 23px;
}

html[data-current-view="advertiser"] .login-panel-copy {
  margin-bottom: 28px;
  font-size: 14px;
}

html[data-current-view="advertiser"] .login-form-stack {
  gap: 17px;
}

html[data-current-view="advertiser"] .login-input-shell {
  min-height: 50px;
}

html[data-current-view="advertiser"] .login-input-shell input {
  min-height: 48px;
}

html[data-current-view="advertiser"] #loginPanel > .button-row {
  margin-top: 24px;
}

html[data-current-view="advertiser"] #loginAdvertiser {
  min-height: 52px;
}

html[data-current-view="advertiser"] .login-card-footer {
  margin-top: 24px;
}

html[data-current-view="advertiser"] .oauth-provider-button,
html[data-current-view="advertiser"] .oauth-provider-button.unconfigured,
html[data-current-view="advertiser"] .oauth-provider-button.microsoft {
  min-height: 50px;
  font-size: 15px;
}

html[data-current-view="advertiser"] #loginPanel .auth-switch {
  margin-top: 24px;
}

@keyframes advertiser-login-teal-wash {
  0% {
    background-position: 0% 42%, 100% 50%;
    transform: translate3d(-2vw, -1vh, 0) scale(1);
  }
  50% {
    background-position: 68% 58%, 30% 44%;
    transform: translate3d(2vw, 1.5vh, 0) scale(1.03);
  }
  100% {
    background-position: 100% 46%, 0% 58%;
    transform: translate3d(1vw, -1vh, 0) scale(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden))::before {
    animation: none;
  }
}

/* Login viewport fit and responsive scale */
html[data-current-view="advertiser"] .phone-app-screen .app-shell:has(#advertiserOnboarding:not(.hidden)) {
  min-height: 100svh;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) {
  min-height: calc(100svh - 38px) !important;
  box-sizing: border-box;
  grid-template-columns: minmax(240px, 360px) minmax(300px, 440px);
  column-gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding: clamp(14px, 2.4vh, 26px) clamp(20px, 4vw, 48px) clamp(14px, 2.4vh, 24px);
}

html[data-current-view="advertiser"] .platform-copyright {
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 8px 16px;
}

html[data-current-view="advertiser"] .platform-copyright small {
  font-size: 11px;
  line-height: 1.35;
  max-width: min(980px, 100%);
  white-space: normal;
}

html[data-current-view="advertiser"] .advertiser-login-brand-row {
  margin-bottom: clamp(18px, 4vh, 38px);
}

html[data-current-view="advertiser"] .page-brand-lockup .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 14px;
}

html[data-current-view="advertiser"] .page-brand-copy strong {
  font-size: 16px;
}

html[data-current-view="advertiser"] .page-brand-copy span {
  font-size: 12px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .product-kicker {
  min-height: 30px;
  padding: 0 13px;
  font-size: 10px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) #pageTitle {
  font-size: clamp(30px, 3.3vw, 42px);
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) #pageSubtitle {
  max-width: 340px;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.42;
}

html[data-current-view="advertiser"] #loginPanel {
  max-width: 440px;
  padding: clamp(20px, 2.6vh, 30px) clamp(22px, 3vw, 34px);
}

html[data-current-view="advertiser"] .login-card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
}

html[data-current-view="advertiser"] .login-card-icon svg {
  width: 26px;
  height: 26px;
}

html[data-current-view="advertiser"] #loginPanel h2 {
  font-size: 20px;
}

html[data-current-view="advertiser"] .login-panel-copy {
  margin: 8px auto 20px;
  font-size: 12px;
}

html[data-current-view="advertiser"] .login-form-stack {
  gap: 12px;
}

html[data-current-view="advertiser"] .login-field label {
  margin-bottom: 6px;
  font-size: 12px;
}

html[data-current-view="advertiser"] .login-input-shell {
  min-height: 44px;
  gap: 9px;
  padding: 0 12px;
}

html[data-current-view="advertiser"] .login-input-shell input {
  min-height: 42px;
  font-size: 13px;
}

html[data-current-view="advertiser"] .login-input-icon svg,
html[data-current-view="advertiser"] .login-password-toggle svg {
  width: 18px;
  height: 18px;
}

html[data-current-view="advertiser"] #loginPanel > .button-row {
  margin-top: 16px;
}

html[data-current-view="advertiser"] #loginAdvertiser {
  min-height: 44px;
  font-size: 14px;
}

html[data-current-view="advertiser"] .demo-login-copy {
  margin-top: 12px;
}

html[data-current-view="advertiser"] .saved-roadshow-login {
  font-size: 12px;
}

html[data-current-view="advertiser"] .saved-roadshow-check {
  width: 17px;
  height: 17px;
  border-radius: 5px;
}

html[data-current-view="advertiser"] .login-card-footer {
  margin-top: 16px;
  gap: 9px;
}

html[data-current-view="advertiser"] .oauth-divider {
  margin-bottom: 2px;
  font-size: 10px;
}

html[data-current-view="advertiser"] .oauth-provider-button,
html[data-current-view="advertiser"] .oauth-provider-button.unconfigured,
html[data-current-view="advertiser"] .oauth-provider-button.microsoft {
  min-height: 42px;
  font-size: 13px;
  gap: 9px;
}

html[data-current-view="advertiser"] .oauth-provider-logo-google {
  font-size: 18px;
}

html[data-current-view="advertiser"] .oauth-provider-logo-microsoft {
  width: 17px;
  height: 17px;
}

html[data-current-view="advertiser"] #loginPanel .auth-switch {
  margin-top: 16px;
  font-size: 12px;
}

@media (min-width: 1500px) {
  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) {
    grid-template-columns: minmax(260px, 390px) minmax(320px, 460px);
    column-gap: 80px;
  }
}

@media (min-width: 901px) {
  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) > .topbar {
    align-self: start;
    margin-top: clamp(18px, 2vh, 28px);
  }
}

@media (max-width: 1180px) {
  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) {
    grid-template-columns: minmax(220px, 330px) minmax(300px, 420px);
    column-gap: 34px;
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 900px) {
  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
    align-items: start;
    justify-items: center;
    min-height: auto !important;
    padding: 18px 18px 20px;
    overflow: visible;
  }

  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) > .topbar,
  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) > #advertiserView {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .product-heading,
  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) #pageSubtitle {
    max-width: 520px;
  }

  html[data-current-view="advertiser"] .advertiser-login-brand-row {
    justify-content: center;
    margin-bottom: 18px;
  }

  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) #pageTitle,
  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) #pageSubtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  html[data-current-view="advertiser"] #loginPanel {
    max-width: 430px;
  }
}

@media (max-width: 560px) {
  html[data-current-view="advertiser"] .phone-app-screen {
    min-height: 100svh;
  }

  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) {
    padding: 14px 12px 16px;
    row-gap: 14px;
  }

  html[data-current-view="advertiser"] .advertiser-login-brand-row {
    gap: 10px;
    margin-bottom: 12px;
  }

  html[data-current-view="advertiser"] .page-brand-lockup {
    gap: 9px;
  }

  html[data-current-view="advertiser"] .page-brand-lockup .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  html[data-current-view="advertiser"] .page-brand-copy strong {
    font-size: 14px;
  }

  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .product-kicker {
    min-height: 28px;
    padding: 0 10px;
    font-size: 9px;
  }

  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) #pageTitle {
    font-size: 28px;
  }

  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) #pageSubtitle {
    font-size: 13px;
  }

  html[data-current-view="advertiser"] #loginPanel {
    max-width: none;
    padding: 18px 16px;
  }

  html[data-current-view="advertiser"] .login-card-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
  }

  html[data-current-view="advertiser"] #loginPanel h2 {
    font-size: 18px;
  }

  html[data-current-view="advertiser"] .login-panel-copy {
    margin-bottom: 14px;
  }

  html[data-current-view="advertiser"] .login-input-shell,
  html[data-current-view="advertiser"] #loginAdvertiser,
  html[data-current-view="advertiser"] .oauth-provider-button,
  html[data-current-view="advertiser"] .oauth-provider-button.unconfigured,
  html[data-current-view="advertiser"] .oauth-provider-button.microsoft {
    min-height: 40px;
  }

  html[data-current-view="advertiser"] .platform-copyright {
    min-height: 34px;
  }
}

/* Login brand application */
.rydcast-login-logo,
.rydcast-dashboard-logo {
  display: none;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .advertiser-login-brand-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .page-brand-lockup {
  display: inline-flex;
  margin: 0;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .page-brand-lockup .brand-mark,
html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .page-brand-copy {
  display: none;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .rydcast-login-logo {
  --rydcast-login-logo-width: clamp(250px, 26vw, 360px);
  display: grid;
  gap: 8px;
  justify-items: start;
  max-width: 100%;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .rydcast-login-logo-image {
  display: block;
  width: var(--rydcast-login-logo-width);
  height: auto;
  object-fit: contain;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .login-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-current-view="advertiser"] .login-card-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .page-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .page-brand-lockup .brand-mark,
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .page-brand-copy,
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .rydcast-login-logo {
  display: none !important;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .rydcast-dashboard-logo {
  --rydcast-dashboard-logo-width: clamp(170px, 13vw, 230px);
  display: grid;
  gap: 5px;
  justify-items: start;
  min-width: 0;
}

html[data-current-view="advertiser"] .rydcast-dashboard-logo-image {
  display: block;
  width: var(--rydcast-dashboard-logo-width);
  height: auto;
  object-fit: contain;
}

html[data-current-view="advertiser"] .rydcast-dashboard-product {
  margin-left: calc(var(--rydcast-dashboard-logo-width) * 0.285);
  color: rgba(168, 179, 194, 0.92);
  font-family: var(--rc-font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Dashboard compact tune */
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) {
  padding: 0 28px 24px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) > .topbar {
  min-height: 96px;
  margin: 0 -28px 26px;
  padding: 0 28px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .page-brand-lockup .brand-mark {
  width: 54px;
  height: 54px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .product-kicker {
  min-height: 34px;
  padding: 0 16px;
  font-size: 11px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .advertiser-logout-button {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

html[data-current-view="advertiser"] .dashboard-shell {
  gap: 22px;
}

html[data-current-view="advertiser"] .advertiser-dashboard-brand .eyebrow {
  margin-bottom: 8px;
  font-size: 13px;
}

html[data-current-view="advertiser"] .advertiser-dashboard-brand h2 {
  font-size: clamp(30px, 3vw, 40px);
}

html[data-current-view="advertiser"] .advertiser-dashboard-subtitle {
  margin-top: 10px;
  font-size: 16px;
}

html[data-current-view="advertiser"] .advertiser-tabs,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tabs {
  min-height: 58px;
}

html[data-current-view="advertiser"] .advertiser-tab-button {
  min-height: 58px;
  gap: 10px;
  font-size: 14px;
}

html[data-current-view="advertiser"] .tab-icon svg {
  width: 19px;
  height: 19px;
}

html[data-current-view="advertiser"] .advertiser-tabs,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tabs {
  border: 1px solid rgba(151, 164, 184, 0.2) !important;
  box-shadow: none;
}

html[data-current-view="advertiser"] .advertiser-tab-button {
  border: 0 !important;
  border-right: 1px solid rgba(151, 164, 184, 0.14) !important;
  box-shadow: none !important;
  outline: 0;
}

html[data-current-view="advertiser"] .advertiser-tab-button:last-child {
  border-right: 0 !important;
}

html[data-current-view="advertiser"] .advertiser-tab-button.active {
  background:
    linear-gradient(0deg, var(--rc-brand), var(--rc-brand)) bottom / 100% 2px no-repeat,
    rgba(0, 201, 183, 0.06) !important;
}

html[data-current-view="advertiser"] .status-strip-clean {
  gap: 14px;
}

html[data-current-view="advertiser"] .status-strip-clean div {
  min-height: 112px;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 3px 18px;
  padding: 20px 22px !important;
}

html[data-current-view="advertiser"] .dashboard-metric-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border-color: rgba(86, 199, 255, 0.2);
  background:
    linear-gradient(145deg, rgba(151, 164, 184, 0.12), rgba(151, 164, 184, 0.045)),
    rgba(13, 25, 36, 0.68);
  color: rgba(151, 164, 184, 0.72);
}

html[data-current-view="advertiser"] .status-strip-clean div:nth-child(2) .dashboard-metric-icon {
  border-color: rgba(0, 201, 183, 0.28);
  color: var(--rc-brand);
  box-shadow:
    inset 0 0 0 1px rgba(0, 201, 183, 0.04),
    0 0 24px rgba(0, 201, 183, 0.08);
}

html[data-current-view="advertiser"] .dashboard-metric-icon svg {
  width: 20px;
  height: 20px;
}

html[data-current-view="advertiser"] .status-strip-clean div > span:not(.dashboard-metric-icon) {
  font-size: 11px;
}

html[data-current-view="advertiser"] .status-strip-clean strong {
  min-width: 0;
  font-size: clamp(24px, 2vw, 30px);
  letter-spacing: 0;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

html[data-current-view="advertiser"] #advWalletMetric,
html[data-current-view="advertiser"] #spendMetric {
  font-size: clamp(25px, 2.05vw, 32px);
}

html[data-current-view="advertiser"] .campaign-list-panel-clean {
  padding: 22px 24px 20px;
}

html[data-current-view="advertiser"] .section-heading-clean {
  margin-bottom: 18px;
}

html[data-current-view="advertiser"] .section-heading-clean h2 {
  font-size: 22px;
}

html[data-current-view="advertiser"] .campaign-list-actions {
  gap: 12px;
}

html[data-current-view="advertiser"] .campaign-list-panel-clean .inline-action {
  min-width: 118px;
  min-height: 42px;
  font-size: 14px;
}

html[data-current-view="advertiser"] #goCreateCampaign {
  min-width: 168px;
}

html[data-current-view="advertiser"] .campaign-table-header,
html[data-current-view="advertiser"] .campaign-row-clean {
  grid-template-columns: 28px minmax(210px, 1.35fr) minmax(96px, 0.5fr) minmax(138px, 0.62fr) minmax(190px, 0.88fr) 76px;
  column-gap: 16px;
}

html[data-current-view="advertiser"] .campaign-table-header {
  min-height: 44px;
  padding: 0;
  font-size: 12px;
}

html[data-current-view="advertiser"] .campaign-row-clean {
  min-height: 74px;
  padding: 0;
}

html[data-current-view="advertiser"] .campaign-row-menu-btn {
  width: 48px;
  height: 34px;
}

html[data-current-view="advertiser"] .campaign-list-panel-clean .campaign-list-table-clean {
  margin: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
}

/* Dashboard tab polish */
html[data-current-view="advertiser"] .advertiser-tab-button,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tab-button {
  position: relative;
  border: 0 !important;
  border-right: 1px solid rgba(151, 164, 184, 0.14) !important;
  border-radius: 0;
  box-shadow: none !important;
  outline: 0 !important;
}

html[data-current-view="advertiser"] .advertiser-tab-button:last-child,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tab-button:last-child {
  border-right: 0 !important;
}

html[data-current-view="advertiser"] .advertiser-tab-button::after,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tab-button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 52px;
  height: 2px;
  border-radius: 999px;
  background: var(--rc-brand);
  opacity: 0;
  transform: translateX(-50%);
}

html[data-current-view="advertiser"] .advertiser-tab-button.active,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tab-button.active {
  border-color: rgba(151, 164, 184, 0.14) !important;
  background:
    radial-gradient(circle at 50% 100%, rgba(0, 201, 183, 0.13), transparent 62%),
    rgba(0, 201, 183, 0.035) !important;
  color: var(--rc-brand);
}

html[data-current-view="advertiser"] .advertiser-tab-button.active::after,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tab-button.active::after {
  opacity: 1;
}

html[data-current-view="advertiser"] .advertiser-tab-button:focus-visible::before,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tab-button:focus-visible::before {
  content: "";
  position: absolute;
  inset: 9px 14px;
  border: 1px solid rgba(0, 201, 183, 0.28);
  border-radius: 9px;
  pointer-events: none;
}

/* Dashboard density and icon pass */
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) {
  padding: 0 22px 18px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) > .topbar {
  min-height: 78px;
  margin: 0 -22px 18px;
  padding: 0 22px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .page-brand-lockup .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 14px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .product-kicker {
  min-height: 30px;
  padding: 0 13px;
  font-size: 10px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .advertiser-logout-button {
  min-height: 38px;
  padding: 0 15px;
  font-size: 13px;
}

html[data-current-view="advertiser"] .dashboard-shell {
  gap: 16px;
}

html[data-current-view="advertiser"] .advertiser-dashboard-brand .eyebrow {
  margin-bottom: 7px;
  font-size: 12px;
}

html[data-current-view="advertiser"] .advertiser-dashboard-brand h2 {
  font-size: clamp(26px, 2.35vw, 34px);
}

html[data-current-view="advertiser"] .advertiser-dashboard-subtitle {
  margin-top: 8px;
  font-size: 14px;
}

html[data-current-view="advertiser"] .advertiser-tabs,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tabs {
  min-height: 50px;
  border-radius: 10px;
}

html[data-current-view="advertiser"] .advertiser-tab-button,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tab-button {
  min-height: 50px;
  gap: 9px;
  font-size: 13px;
}

html[data-current-view="advertiser"] .advertiser-tab-button::after,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tab-button::after {
  bottom: 7px;
  width: 42px;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .tab-icon,
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .dashboard-metric-icon,
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .button-icon,
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .logout-icon {
  color: var(--rc-brand) !important;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .tab-icon svg,
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .button-icon svg,
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .logout-icon svg {
  width: 20px;
  height: 20px;
}

html[data-current-view="advertiser"] .status-strip-clean {
  gap: 10px;
}

html[data-current-view="advertiser"] .status-strip-clean div {
  min-height: 88px;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 2px 14px;
  border-radius: 11px;
  padding: 14px 16px !important;
}

html[data-current-view="advertiser"] .dashboard-metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  border-color: rgba(0, 201, 183, 0.24);
  background:
    linear-gradient(145deg, rgba(0, 201, 183, 0.08), rgba(151, 164, 184, 0.035)),
    rgba(13, 25, 36, 0.58);
  box-shadow: 0 0 18px rgba(0, 201, 183, 0.045);
}

html[data-current-view="advertiser"] .status-strip-clean div:nth-child(2) .dashboard-metric-icon {
  border-color: rgba(0, 201, 183, 0.24);
  box-shadow: 0 0 18px rgba(0, 201, 183, 0.045);
}

html[data-current-view="advertiser"] .dashboard-metric-icon svg {
  width: 23px;
  height: 23px;
}

html[data-current-view="advertiser"] .status-strip-clean div > span:not(.dashboard-metric-icon) {
  font-size: 10px;
}

html[data-current-view="advertiser"] .status-strip-clean strong {
  font-size: clamp(20px, 1.55vw, 26px);
}

html[data-current-view="advertiser"] #advWalletMetric,
html[data-current-view="advertiser"] #spendMetric {
  font-size: clamp(21px, 1.65vw, 27px);
}

html[data-current-view="advertiser"] .campaign-list-panel-clean {
  padding: 18px 20px 18px;
  border-radius: 11px;
}

html[data-current-view="advertiser"] .section-heading-clean {
  margin-bottom: 14px;
}

html[data-current-view="advertiser"] .section-heading-clean h2 {
  font-size: 20px;
}

html[data-current-view="advertiser"] .campaign-list-panel-clean .inline-action {
  min-height: 38px;
  font-size: 13px;
}

html[data-current-view="advertiser"] .campaign-table-header {
  min-height: 40px;
  font-size: 11px;
}

html[data-current-view="advertiser"] .campaign-row-clean {
  min-height: 64px;
}

html[data-current-view="advertiser"] .metric-label-with-help,
html[data-current-view="advertiser"] .campaign-table-header > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

html[data-current-view="advertiser"] .inline-help-button {
  position: relative;
  width: 16px;
  height: 16px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--rc-brand);
  cursor: help;
  opacity: 0.88;
}

html[data-current-view="advertiser"] .inline-help-button svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-current-view="advertiser"] .inline-help-button:hover,
html[data-current-view="advertiser"] .inline-help-button:focus-visible {
  background: rgba(0, 201, 183, 0.1);
  opacity: 1;
  outline: none;
}

html[data-current-view="advertiser"] .inline-help-button--static {
  width: 16px;
  height: 16px;
}

html[data-current-view="advertiser"] .inline-help-button:hover::after,
html[data-current-view="advertiser"] .inline-help-button:focus-visible::after,
html[data-current-view="advertiser"] .campaign-performance-meta:hover::after,
html[data-current-view="advertiser"] .campaign-performance-meta:focus-visible::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: min(280px, 70vw);
  padding: 10px 12px;
  border: 1px solid rgba(151, 164, 184, 0.28);
  border-radius: 8px;
  background: rgba(7, 14, 24, 0.98);
  color: var(--rc-text-secondary);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: normal;
  transform: translateX(-50%);
}

html[data-current-view="advertiser"] .campaign-performance-meta {
  position: relative;
  width: fit-content;
  outline: 0;
}

html[data-current-view="advertiser"] .campaign-table-summary.needs-funding strong {
  color: #ffbf37 !important;
}

html[data-current-view="advertiser"] .campaign-row-cta {
  width: fit-content;
  min-height: 28px;
  margin-top: 4px;
  padding: 0 10px;
  border: 1px solid rgba(255, 185, 0, 0.48);
  border-radius: 7px;
  background: rgba(255, 185, 0, 0.1);
  color: #ffd36a;
  font-size: 12px;
  font-weight: 900;
}

html[data-current-view="advertiser"] .campaign-row-cta:hover,
html[data-current-view="advertiser"] .campaign-row-cta:focus-visible,
html[data-current-view="advertiser"] .analytics-next-action:hover,
html[data-current-view="advertiser"] .analytics-next-action:focus-visible {
  border-color: rgba(255, 207, 100, 0.72);
  background: rgba(255, 185, 0, 0.16);
  outline: none;
}

html[data-current-view="advertiser"] .advertiser-analytics-panel {
  padding: 18px 20px;
  border-radius: 11px;
}

html[data-current-view="advertiser"] .advertiser-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

html[data-current-view="advertiser"] .advertiser-analytics-grid > div,
html[data-current-view="advertiser"] .analytics-info-card {
  border: 1px solid rgba(151, 164, 184, 0.18);
  border-radius: 10px;
  background: rgba(10, 20, 34, 0.72);
}

html[data-current-view="advertiser"] .advertiser-analytics-grid > div {
  display: grid;
  gap: 7px;
  padding: 16px;
}

html[data-current-view="advertiser"] .advertiser-analytics-grid span,
html[data-current-view="advertiser"] .analytics-info-card p,
html[data-current-view="advertiser"] .advertiser-analytics-grid small {
  color: var(--rc-text-secondary);
}

html[data-current-view="advertiser"] .advertiser-analytics-grid span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html[data-current-view="advertiser"] .advertiser-analytics-grid strong {
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 950;
}

html[data-current-view="advertiser"] .advertiser-analytics-grid small,
html[data-current-view="advertiser"] .analytics-info-card p {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

html[data-current-view="advertiser"] .advertiser-analytics-split {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr;
  gap: 12px;
  margin-top: 12px;
}

html[data-current-view="advertiser"] .analytics-info-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

html[data-current-view="advertiser"] .analytics-info-card h3 {
  margin: 0;
  font-size: 15px;
}

html[data-current-view="advertiser"] .confidence-legend,
html[data-current-view="advertiser"] .analytics-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-current-view="advertiser"] .confidence-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--rc-text-secondary);
  font-size: 12px;
  font-weight: 850;
}

html[data-current-view="advertiser"] .confidence-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

html[data-current-view="advertiser"] .confidence-legend .green { background: #20d69f; }
html[data-current-view="advertiser"] .confidence-legend .amber { background: #ffbf37; }
html[data-current-view="advertiser"] .confidence-legend .red { background: #ff6b6b; }

html[data-current-view="advertiser"] .analytics-next-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(151, 164, 184, 0.2);
  border-radius: 8px;
  background: rgba(151, 164, 184, 0.06);
  color: var(--rc-text-secondary);
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

html[data-current-view="advertiser"] .analytics-next-action strong {
  color: #ffd36a !important;
  white-space: nowrap;
}

html[data-current-view="advertiser"] .analytics-next-action.is-muted {
  pointer-events: none;
  opacity: 0.75;
}

html[data-current-view="advertiser"] .analytics-list--account {
  margin-top: 12px;
  border: 1px solid rgba(151, 164, 184, 0.16);
  border-radius: 10px;
  overflow: hidden;
}

html[data-current-view="advertiser"] .analytics-list--account .analytics-row {
  grid-template-columns: minmax(180px, 1.15fr) minmax(90px, 0.45fr) minmax(260px, 1.3fr) minmax(100px, 0.45fr);
}

html[data-current-view="advertiser"] .analytics-row--head {
  background: rgba(151, 164, 184, 0.045);
  color: var(--rc-text-secondary);
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  html[data-current-view="advertiser"] .advertiser-analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-current-view="advertiser"] .advertiser-analytics-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  html[data-current-view="advertiser"] .advertiser-analytics-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-current-view="advertiser"] .inline-help-button:hover::after,
  html[data-current-view="advertiser"] .inline-help-button:focus-visible::after,
  html[data-current-view="advertiser"] .campaign-performance-meta:hover::after,
  html[data-current-view="advertiser"] .campaign-performance-meta:focus-visible::after {
    left: 0;
    transform: none;
  }
}

/* New campaign studio */
html[data-current-view="advertiser"] .campaign-studio-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-current-view="advertiser"] .campaign-studio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

html[data-current-view="advertiser"] .campaign-studio-head h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.05;
}

html[data-current-view="advertiser"] .campaign-studio-head .panel-lede {
  max-width: 640px;
  margin: 8px 0 0;
  font-size: 13px;
}

html[data-current-view="advertiser"] .compact-help-button {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

html[data-current-view="advertiser"] .campaign-setup-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

html[data-current-view="advertiser"] .campaign-setup-strip > div {
  min-height: 70px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 0 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(151, 164, 184, 0.18);
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(0, 201, 183, 0.04), transparent 58%),
    rgba(13, 22, 33, 0.72);
}

html[data-current-view="advertiser"] .campaign-setup-strip small,
html[data-current-view="advertiser"] .campaign-summary-list small,
html[data-current-view="advertiser"] .campaign-proof-pricing small {
  color: var(--rc-text-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-current-view="advertiser"] .campaign-setup-strip strong,
html[data-current-view="advertiser"] .campaign-summary-list strong {
  min-width: 0;
  color: var(--rc-text);
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-current-view="advertiser"] .campaign-setup-strip > div > span:not(.campaign-builder-icon) {
  color: var(--rc-text-secondary);
  font-size: 11px;
  font-weight: 700;
}

html[data-current-view="advertiser"] .campaign-builder-icon,
html[data-current-view="advertiser"] .campaign-format-icon {
  display: grid;
  place-items: center;
  color: var(--rc-brand);
}

html[data-current-view="advertiser"] .campaign-builder-icon {
  grid-row: 1 / span 3;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 201, 183, 0.18);
  border-radius: 10px;
  background: rgba(0, 201, 183, 0.06);
}

html[data-current-view="advertiser"] .campaign-builder-icon svg,
html[data-current-view="advertiser"] .campaign-format-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-current-view="advertiser"] .campaign-studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 18px;
  align-items: start;
}

html[data-current-view="advertiser"] .campaign-studio-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

html[data-current-view="advertiser"] .campaign-builder-step {
  padding: 0;
  border: 1px solid rgba(151, 164, 184, 0.18);
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(0, 201, 183, 0.025), transparent 58%),
    rgba(13, 22, 33, 0.7);
  overflow: hidden;
}

html[data-current-view="advertiser"] .campaign-builder-step > header {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(151, 164, 184, 0.14);
}

html[data-current-view="advertiser"] .campaign-builder-step > header > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 201, 183, 0.7);
  border-radius: 999px;
  color: var(--rc-brand);
  font-size: 11px;
  font-weight: 900;
}

html[data-current-view="advertiser"] .campaign-builder-step > header strong {
  font-size: 15px;
}

html[data-current-view="advertiser"] .campaign-builder-step > header small {
  display: block;
  color: var(--rc-text-muted);
  font-size: 11px;
  font-weight: 700;
}

html[data-current-view="advertiser"] .campaign-builder-step > .builder-fields,
html[data-current-view="advertiser"] .campaign-builder-step > .script-field,
html[data-current-view="advertiser"] .campaign-builder-step > .campaign-creative-builder-grid,
html[data-current-view="advertiser"] .campaign-builder-step > .campaign-format-grid,
html[data-current-view="advertiser"] .campaign-builder-step > .campaign-proof-pricing,
html[data-current-view="advertiser"] .campaign-builder-step > .campaign-budget-estimate,
html[data-current-view="advertiser"] .campaign-builder-step > .campaign-proof-note {
  margin: 12px 14px;
}

html[data-current-view="advertiser"] .builder-fields.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 12px;
}

html[data-current-view="advertiser"] .builder-fields.three .wide,
html[data-current-view="advertiser"] .campaign-area-fields .wide {
  grid-column: span 2;
}

html[data-current-view="advertiser"] .campaign-format-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

html[data-current-view="advertiser"] .campaign-format-card {
  min-height: 90px;
  align-items: center;
  justify-content: center;
  padding: 12px 10px 10px;
  text-align: center;
}

html[data-current-view="advertiser"] .campaign-format-card input {
  position: absolute;
  top: 9px;
  right: 9px;
  left: auto;
  transform: none;
}

html[data-current-view="advertiser"] .campaign-format-card .campaign-format-icon {
  width: 30px;
  height: 30px;
}

html[data-current-view="advertiser"] .campaign-format-card span:not(.campaign-format-icon) {
  font-size: 12px;
  font-weight: 900;
}

html[data-current-view="advertiser"] .campaign-format-card small {
  display: block;
  max-width: 112px;
  color: var(--rc-text-muted);
  font-size: 10px;
  line-height: 1.25;
}

html[data-current-view="advertiser"] .campaign-format-card:has(input:checked) {
  border-color: rgba(0, 201, 183, 0.82);
  background:
    radial-gradient(circle at 85% 15%, rgba(0, 201, 183, 0.18), transparent 32%),
    rgba(0, 201, 183, 0.05);
}

html[data-current-view="advertiser"] .campaign-creative-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 1.05fr);
  gap: 16px;
  align-items: stretch;
}

html[data-current-view="advertiser"] .campaign-audio-preview {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 12px;
  margin: 0;
}

html[data-current-view="advertiser"] .audio-wave-preview {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
}

html[data-current-view="advertiser"] .audio-wave-preview span {
  width: 2px;
  height: 14px;
  border-radius: 999px;
  background: rgba(151, 164, 184, 0.72);
}

html[data-current-view="advertiser"] .audio-wave-preview span:nth-child(2n) { height: 22px; }
html[data-current-view="advertiser"] .audio-wave-preview span:nth-child(3n) { height: 28px; }
html[data-current-view="advertiser"] .audio-wave-preview span:nth-child(5n) { height: 18px; }

html[data-current-view="advertiser"] .campaign-area-fields {
  align-items: end;
}

html[data-current-view="advertiser"] .campaign-area-fields .radius-pills {
  margin: 0;
}

html[data-current-view="advertiser"] .campaign-proof-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

html[data-current-view="advertiser"] .campaign-proof-pricing > div,
html[data-current-view="advertiser"] .campaign-proof-note {
  padding: 12px;
  border: 1px solid rgba(0, 201, 183, 0.18);
  border-radius: 9px;
  background: rgba(0, 201, 183, 0.045);
}

html[data-current-view="advertiser"] .campaign-proof-pricing strong {
  display: block;
  margin-top: 5px;
  color: var(--rc-brand);
  font-size: 18px;
}

html[data-current-view="advertiser"] .campaign-proof-pricing span,
html[data-current-view="advertiser"] .campaign-proof-note span {
  display: block;
  margin-top: 3px;
  color: var(--rc-text-secondary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

html[data-current-view="advertiser"] .campaign-proof-note strong {
  color: var(--rc-text);
  font-size: 13px;
}

html[data-current-view="advertiser"] .campaign-summary-rail {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

html[data-current-view="advertiser"] .campaign-summary-card {
  padding: 16px;
  border: 1px solid rgba(151, 164, 184, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(0, 201, 183, 0.035), transparent 55%),
    rgba(13, 22, 33, 0.78);
}

html[data-current-view="advertiser"] .campaign-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

html[data-current-view="advertiser"] .campaign-summary-card h3 {
  margin: 0;
  font-size: 15px;
}

html[data-current-view="advertiser"] .campaign-status-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 200, 87, 0.3);
  border-radius: 8px;
  color: #ffd26a;
  background: rgba(255, 200, 87, 0.08);
  font-size: 11px;
  font-weight: 900;
}

html[data-current-view="advertiser"] .campaign-summary-list {
  display: grid;
}

html[data-current-view="advertiser"] .campaign-summary-list > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(151, 164, 184, 0.13);
}

html[data-current-view="advertiser"] .campaign-summary-list > div:first-child {
  border-top: 0;
}

html[data-current-view="advertiser"] .campaign-summary-list .campaign-builder-icon {
  width: 30px;
  height: 30px;
  grid-row: 1 / span 2;
}

html[data-current-view="advertiser"] .campaign-checklist {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

html[data-current-view="advertiser"] .campaign-checklist-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--rc-text-secondary);
  font-size: 12px;
  font-weight: 800;
}

html[data-current-view="advertiser"] .campaign-checklist-row::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
  border: 1px solid rgba(151, 164, 184, 0.35);
  border-radius: 999px;
  background: rgba(151, 164, 184, 0.08);
}

html[data-current-view="advertiser"] .campaign-checklist-row.done::before {
  border-color: rgba(0, 201, 183, 0.8);
  background:
    linear-gradient(135deg, transparent 46%, rgba(0, 0, 0, 0.35) 47% 53%, transparent 54%),
    var(--rc-brand);
}

html[data-current-view="advertiser"] .campaign-checklist-row.warn::before {
  border-color: rgba(255, 200, 87, 0.8);
  background: rgba(255, 200, 87, 0.18);
}

html[data-current-view="advertiser"] .campaign-create-terms {
  margin: 0;
  font-size: 11px;
}

html[data-current-view="advertiser"] .campaign-summary-actions {
  display: grid;
  gap: 9px;
}

html[data-current-view="advertiser"] .campaign-summary-actions button {
  width: 100%;
  min-height: 42px;
}

@media (max-width: 1280px) {
  html[data-current-view="advertiser"] .campaign-setup-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html[data-current-view="advertiser"] .campaign-format-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html[data-current-view="advertiser"] .campaign-studio-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  }
}

@media (max-width: 980px) {
  html[data-current-view="advertiser"] .campaign-studio-layout,
  html[data-current-view="advertiser"] .campaign-creative-builder-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-current-view="advertiser"] .campaign-summary-rail {
    position: static;
  }
}

@media (max-width: 760px) {
  html[data-current-view="advertiser"] .campaign-studio-head {
    display: grid;
  }

  html[data-current-view="advertiser"] .campaign-setup-strip,
  html[data-current-view="advertiser"] .builder-fields.three,
  html[data-current-view="advertiser"] .campaign-proof-pricing {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-current-view="advertiser"] .campaign-format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-current-view="advertiser"] .builder-fields.three .wide,
  html[data-current-view="advertiser"] .campaign-area-fields .wide {
    grid-column: auto;
  }
}

/* New campaign cleanup */
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .status-strip-clean {
  display: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) {
  gap: 14px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-head {
  margin-bottom: 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-head h2 {
  font-size: clamp(22px, 1.9vw, 28px);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-head .panel-lede {
  max-width: 720px;
  margin-top: 6px;
  font-size: 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip {
  gap: 8px;
  margin-bottom: 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip > div {
  min-height: 58px;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 9px 11px;
  border-radius: 8px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-icon svg,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-icon svg {
  width: 17px;
  height: 17px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip strong {
  font-size: 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip small,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip > div > span:not(.campaign-builder-icon) {
  font-size: 9px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 292px);
  gap: 14px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-main {
  gap: 8px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step {
  border-radius: 8px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > header {
  min-height: 40px;
  padding: 8px 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > header > span {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > header strong {
  font-size: 13px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > header small {
  font-size: 10px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .builder-fields,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-creative-builder-grid,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-format-grid,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-proof-pricing,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-budget-estimate,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-proof-note {
  margin: 9px 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-grid {
  gap: 8px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card {
  min-height: 72px;
  padding: 10px 8px 8px;
  gap: 3px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card input {
  top: 7px;
  right: 7px;
  width: 14px;
  height: 14px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card .campaign-format-icon {
  width: 24px;
  height: 24px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card span:not(.campaign-format-icon) {
  font-size: 11px;
  line-height: 1.15;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card small {
  max-width: 100px;
  font-size: 9px;
  line-height: 1.15;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-builder-grid {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.82fr);
  gap: 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview {
  min-height: 112px;
  padding: 12px;
  gap: 8px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-pricing {
  gap: 8px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-pricing > div,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-note {
  padding: 9px 10px;
  border-radius: 8px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-pricing strong {
  margin-top: 2px;
  font-size: 15px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-budget-estimate {
  padding: 14px 16px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-budget-estimate .budget-estimate-title {
  font-size: 17px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-rail {
  top: 12px;
  gap: 10px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-card {
  padding: 13px;
  border-radius: 9px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-list > div {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0 9px;
  padding: 8px 0;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-list strong {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 12px;
  line-height: 1.2;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-list small {
  font-size: 9px;
}

html[data-current-view="advertiser"] .campaign-summary-rail .campaign-create-terms {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  overflow: hidden;
}

html[data-current-view="advertiser"] .campaign-summary-rail .campaign-create-terms input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
}

html[data-current-view="advertiser"] .campaign-summary-rail .campaign-create-terms span {
  min-width: 0;
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--rc-text-secondary);
  font-size: 10px;
  line-height: 1.35;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-actions button {
  min-height: 38px;
  font-size: 13px;
}

@media (max-width: 1280px) {
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-layout,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-builder-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* New campaign guided flow */
html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: var(--rc-platform-gradient);
}

html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active)::before {
  content: none;
}

html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) > * {
  position: relative;
  z-index: 1;
}

html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) .status-strip-clean,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .status-strip-clean {
  display: none !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) {
  gap: 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-head {
  align-items: end;
  margin-bottom: 14px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-head h2 {
  font-size: clamp(23px, 2.2vw, 34px);
  letter-spacing: 0;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-head .panel-lede {
  max-width: 760px;
  color: #a8b3c2;
  font-size: 13px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .compact-help-button {
  min-height: 32px;
  padding: 0 12px;
  border-color: rgba(42, 60, 79, 0.86);
  border-radius: 8px;
  background: rgba(7, 18, 30, 0.42);
  box-shadow: none;
  color: #a8b3c2;
  font-size: 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(42, 60, 79, 0.82);
  border-radius: 12px;
  background: rgba(14, 24, 42, 0.58);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip > div {
  min-height: 58px;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid rgba(42, 60, 79, 0.64);
  border-radius: 0;
  background: transparent;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip > div:last-child {
  border-right: 0;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-icon {
  width: 30px;
  height: 30px;
  border-color: rgba(22, 224, 214, 0.3);
  border-radius: 9px;
  background: rgba(22, 224, 214, 0.055);
  color: #16e0d6;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-icon svg,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 16px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-main {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(42, 60, 79, 0.82);
  border-radius: 16px;
  background: var(--rc-surface-1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step {
  position: relative;
  overflow: visible;
  border: 0 !important;
  border-bottom: 1px solid rgba(42, 60, 79, 0.72) !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step:last-child {
  border-bottom: 0 !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 44px;
  bottom: -1px;
  width: 1px;
  background: rgba(22, 224, 214, 0.16);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > header {
  min-height: 52px;
  padding: 12px 16px;
  border-bottom: 0;
  background: transparent;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > header > span {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-color: rgba(22, 224, 214, 0.74);
  background: #0e182a;
  color: #16e0d6;
  font-size: 11px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > header strong {
  color: #f5f7fa;
  font-size: 15px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > header small {
  color: #a8b3c2;
  font-size: 11px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .builder-fields,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-creative-builder-grid,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-format-grid,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-proof-pricing,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-budget-estimate,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-proof-note {
  margin: 0 16px 16px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields {
  gap: 9px 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields label,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .script-field {
  color: #a8b3c2;
  font-size: 12px;
  font-weight: 850;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) input,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) select,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) textarea {
  min-height: 36px;
  border-color: rgba(42, 60, 79, 0.9);
  border-radius: 12px;
  background: rgba(7, 18, 30, 0.58);
  color: #f5f7fa;
  font-size: 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) textarea {
  min-height: 82px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) input::placeholder,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) textarea::placeholder {
  color: rgba(168, 179, 194, 0.62);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-grid {
  gap: 8px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card {
  min-height: 78px;
  padding: 12px 10px 10px;
  border-color: rgba(42, 60, 79, 0.86);
  border-radius: 12px;
  background: rgba(7, 18, 30, 0.42);
  box-shadow: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card input {
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(168, 179, 194, 0.72);
  border-radius: 999px;
  background: transparent;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card:has(input:checked) {
  border-color: rgba(22, 224, 214, 0.82);
  background:
    linear-gradient(145deg, rgba(22, 224, 214, 0.07), transparent 60%),
    rgba(7, 18, 30, 0.56);
  box-shadow: inset 0 0 0 1px rgba(22, 224, 214, 0.1);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card:has(input:checked)::after {
  border-color: #16e0d6;
  background: #16e0d6;
  box-shadow: inset 0 0 0 3px #0e182a;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card .campaign-format-icon {
  width: 26px;
  height: 26px;
  color: #16e0d6;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card span:not(.campaign-format-icon) {
  color: #f5f7fa;
  font-size: 11px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card small {
  color: #a8b3c2;
  font-size: 9px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-builder-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 14px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview {
  min-height: 148px;
  align-content: start;
  padding: 16px;
  border-color: rgba(42, 60, 79, 0.88);
  border-radius: 12px;
  background: rgba(7, 18, 30, 0.42);
  box-shadow: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview strong {
  color: #f5f7fa;
  font-size: 15px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview span {
  color: #a8b3c2;
  font-size: 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .script-audio-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .script-audio-buttons button {
  min-height: 34px;
  border-radius: 10px;
  font-size: 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .solid-button:disabled {
  border: 1px solid rgba(42, 60, 79, 0.65);
  background: rgba(18, 37, 56, 0.28);
  color: rgba(168, 179, 194, 0.52);
  opacity: 1;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .audio-wave-preview span {
  background: rgba(168, 179, 194, 0.76);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-pricing {
  gap: 8px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-pricing > div,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-note,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-budget-estimate {
  border-color: rgba(42, 60, 79, 0.84);
  border-radius: 12px;
  background: rgba(7, 18, 30, 0.38);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-pricing > div {
  padding: 10px 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-pricing strong {
  color: #f5f7fa;
  font-size: 15px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-budget-estimate {
  padding: 14px 16px;
  border-color: rgba(22, 224, 214, 0.18);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-note {
  padding: 10px 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-rail {
  top: 14px;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(42, 60, 79, 0.82);
  border-radius: 16px;
  background: var(--rc-surface-1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-card {
  padding: 14px;
  border: 0;
  border-bottom: 1px solid rgba(42, 60, 79, 0.72);
  border-radius: 0;
  background: transparent;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-card h3 {
  font-size: 15px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-list > div {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0 10px;
  padding: 9px 0;
  border-top-color: rgba(42, 60, 79, 0.72);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-list .campaign-builder-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-list strong {
  color: #f5f7fa;
  font-size: 12px;
  line-height: 1.2;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-list small {
  color: #a8b3c2;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-checklist-row {
  color: #a8b3c2;
  font-size: 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-checklist-row.done::before {
  border-color: #16e0d6;
  background: #16e0d6;
  box-shadow: inset 0 0 0 4px #0e182a;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-checklist-row.warn::before {
  border-color: rgba(245, 185, 66, 0.78);
  background: rgba(245, 185, 66, 0.14);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-rail .campaign-create-terms {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(42, 60, 79, 0.72);
  border-radius: 0;
  background: transparent;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-rail .campaign-create-terms input {
  min-height: 0;
  border-radius: 6px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-rail .campaign-create-terms span {
  color: #a8b3c2;
  font-size: 10px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-actions {
  padding: 12px 14px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-actions button {
  min-height: 38px;
  border-radius: 10px;
  font-size: 12px;
}

@media (max-width: 1180px) {
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-rail {
    position: static;
  }
}

@media (max-width: 900px) {
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip > div {
    border-right: 1px solid rgba(42, 60, 79, 0.64);
    border-bottom: 1px solid rgba(42, 60, 79, 0.64);
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip > div:nth-child(2n),
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip > div:last-child {
    border-right: 0;
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip > div:nth-last-child(-n + 1) {
    border-bottom: 0;
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-builder-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-head {
    align-items: start;
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields.three,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields.two,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields.four,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-pricing {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip > div,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip > div:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid rgba(42, 60, 79, 0.64);
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-setup-strip > div:last-child {
    border-bottom: 0;
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* New campaign spacing repair */
html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) {
  background: transparent;
}

html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active)::before {
  content: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-head {
  margin-bottom: 12px;
  padding: 0;
  background: transparent;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-panel {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step:not(:last-child)::before {
  content: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > header {
  padding: 13px 18px 11px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .builder-fields,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-creative-builder-grid,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-format-grid,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-proof-pricing,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-budget-estimate,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-proof-note {
  margin: 0 18px 18px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-format-grid {
  margin-left: 18px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-main,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-rail {
  background: var(--rc-surface-1);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card {
  min-height: 68px;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 10px 28px 10px 12px;
  text-align: left;
  background: rgba(10, 20, 34, 0.58);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card .campaign-format-icon {
  width: 22px;
  height: 22px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card .campaign-format-icon svg {
  width: 17px;
  height: 17px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card small {
  max-width: none;
  line-height: 1.16;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card:has(input:checked) {
  background:
    linear-gradient(145deg, rgba(22, 224, 214, 0.055), transparent 66%),
    rgba(10, 20, 34, 0.64);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-builder-grid {
  align-items: stretch;
  gap: 18px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview {
  min-height: 0;
  align-content: start;
  align-items: start;
  gap: 12px;
  padding: 16px 18px;
  border-color: rgba(42, 60, 79, 0.78);
  background:
    linear-gradient(145deg, rgba(22, 224, 214, 0.035), transparent 60%),
    rgba(10, 20, 34, 0.58);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview strong {
  font-size: 16px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview span {
  max-width: 520px;
  font-size: 13px;
  line-height: 1.35;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .script-audio-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 600px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .script-audio-buttons button {
  min-height: 36px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .audio-wave-preview {
  height: 24px;
  padding: 0;
  opacity: 0.72;
}

@media (max-width: 900px) {
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .builder-fields,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-creative-builder-grid,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-format-grid,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-proof-pricing,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-budget-estimate,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > .campaign-proof-note {
    margin-left: 18px;
  }
}

@media (max-width: 700px) {
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .script-audio-buttons {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Focused wizard final overrides */
html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active),
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) {
  background: transparent;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) {
  gap: 18px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-head {
  margin-bottom: 0;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-layout {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px;
  margin-top: 0;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-studio-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) !important;
  align-items: start;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-rail {
  display: none !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-summary-rail {
  display: block !important;
}

html[data-current-view="advertiser"] .campaign-summary-mobile-details {
  display: contents;
}

html[data-current-view="advertiser"] .campaign-summary-mobile-summary {
  display: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-main {
  min-height: min(760px, calc(100vh - 230px));
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(42, 60, 79, 0.82);
  border-radius: 16px;
  background: var(--rc-surface-1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step {
  min-height: min(760px, calc(100vh - 230px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: visible;
  border: 0 !important;
  border-radius: 16px;
  background: var(--rc-surface-1) !important;
  box-shadow: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step[hidden] {
  display: none !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step::before,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step:not(:last-child)::before {
  content: none !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > header {
  min-height: auto;
  padding: 24px 28px 0 !important;
  border: 0;
  background: transparent;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle {
  min-height: auto;
  padding: 0;
  pointer-events: none;
  cursor: default;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle:hover {
  background: transparent;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-number {
  width: 42px;
  height: 42px;
  border-color: rgba(0, 201, 183, 0.72);
  background: rgba(0, 201, 183, 0.08);
  color: var(--rc-brand);
  font-size: 18px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle strong {
  color: #f5f7fa;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.08;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle small {
  color: #a8b3c2;
  font-size: 15px;
  line-height: 1.4;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-chevron {
  display: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 28px !important;
}

html[data-current-view="advertiser"] .campaign-step-body[hidden] {
  display: none !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .builder-fields,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .campaign-creative-builder-grid,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .campaign-format-grid,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .campaign-proof-pricing,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .campaign-budget-estimate,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .campaign-proof-note {
  margin: 0;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields {
  gap: 24px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields.three,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields.four {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields label,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-field-group,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-panel,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-pricing > div,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-note,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-budget-estimate,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-review-callout {
  padding: 24px;
  border: 1px solid rgba(151, 164, 184, 0.2);
  border-radius: 10px;
  background: rgba(10, 20, 34, 0.52);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields label {
  margin: 0;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields .wide,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-field-group.wide {
  grid-column: span 2;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .campaign-format-grid,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-grid {
  width: min(960px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin: 0 auto !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card {
  min-height: 220px !important;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
  padding: 32px !important;
  border-radius: 12px;
  background: rgba(10, 20, 34, 0.58);
  text-align: left;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card .campaign-format-icon {
  width: 44px;
  height: 44px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card span:not(.campaign-format-icon) {
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.05;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card small {
  max-width: 320px;
  font-size: 15px;
  line-height: 1.4;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-builder-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr) !important;
  gap: 24px;
  align-items: start;
}

html[data-current-view="advertiser"] .campaign-ai-fields {
  gap: 20px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .script-audio-buttons {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .script-audio-buttons button {
  min-height: 52px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}

html[data-current-view="advertiser"] .campaign-review-callout {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

html[data-current-view="advertiser"] .campaign-review-callout strong {
  font-size: 20px;
}

html[data-current-view="advertiser"] .campaign-review-callout span {
  color: var(--rc-text-secondary);
  font-size: 15px;
}

html[data-current-view="advertiser"] .campaign-summary-rail .campaign-create-terms span {
  font-size: 13px;
  line-height: 1.4;
}

html[data-current-view="advertiser"] .campaign-summary-rail .campaign-create-terms input {
  width: 18px;
  height: 18px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-footer .campaign-create-terms span {
  font-size: 13px;
  line-height: 1.4;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-footer .campaign-create-terms input {
  width: 18px;
  height: 18px;
}

@media (max-width: 980px) {
  html[data-current-view="advertiser"] .campaign-wizard-chrome,
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-studio-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields.three,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields.four,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-builder-grid,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .campaign-format-grid,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields .wide,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-field-group.wide {
    grid-column: auto;
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin: 8px -28px -28px;
    padding: 14px 28px;
    border-top: 1px solid rgba(151, 164, 184, 0.16);
    background: rgba(17, 24, 32, 0.96);
  }

  html[data-current-view="advertiser"] .campaign-summary-mobile-details {
    display: block;
  }

  html[data-current-view="advertiser"] .campaign-summary-mobile-summary {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: var(--rc-text);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
  }
}

/* Focused campaign wizard */
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) {
  gap: 18px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-head {
  margin-bottom: 0;
}

html[data-current-view="advertiser"] .campaign-wizard-chrome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

html[data-current-view="advertiser"] .campaign-wizard-back {
  min-width: 104px;
  min-height: 40px;
  gap: 8px;
  border-color: rgba(151, 164, 184, 0.24);
  border-radius: 8px;
  color: var(--rc-text-secondary);
}

html[data-current-view="advertiser"] .campaign-wizard-back:disabled,
html[data-current-view="advertiser"] .campaign-wizard-back.is-disabled {
  opacity: 0.42;
  cursor: default;
}

html[data-current-view="advertiser"] .campaign-wizard-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

html[data-current-view="advertiser"] .campaign-wizard-step {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 8px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid rgba(151, 164, 184, 0.16);
  border-radius: 8px;
  background: rgba(17, 24, 32, 0.84);
  color: var(--rc-text-secondary);
}

html[data-current-view="advertiser"] .campaign-wizard-step::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: transparent;
}

html[data-current-view="advertiser"] .campaign-wizard-step span {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(151, 164, 184, 0.28);
  border-radius: 999px;
  color: inherit;
  font-size: 12px;
  font-weight: 950;
}

html[data-current-view="advertiser"] .campaign-wizard-step strong {
  min-width: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

html[data-current-view="advertiser"] .campaign-wizard-step small {
  min-width: 0;
  color: var(--rc-text-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

html[data-current-view="advertiser"] .campaign-wizard-step.is-active {
  border-color: rgba(0, 201, 183, 0.42);
  color: var(--rc-brand);
  background: rgba(0, 201, 183, 0.07);
}

html[data-current-view="advertiser"] .campaign-wizard-step.is-active::before,
html[data-current-view="advertiser"] .campaign-wizard-step.is-complete::before {
  background: var(--rc-brand);
}

html[data-current-view="advertiser"] .campaign-wizard-step.is-complete span {
  border-color: rgba(0, 201, 183, 0.48);
  background: rgba(0, 201, 183, 0.12);
  color: var(--rc-brand);
}

html[data-current-view="advertiser"] .campaign-wizard-step.is-locked {
  opacity: 0.62;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-studio-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  align-items: start;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-summary-rail {
  display: block;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-rail {
  display: none;
}

html[data-current-view="advertiser"] .campaign-summary-mobile-details {
  display: contents;
}

html[data-current-view="advertiser"] .campaign-summary-mobile-summary {
  display: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-main {
  min-height: min(760px, calc(100vh - 230px));
  display: grid;
  border-radius: 14px;
  background: var(--rc-surface-1);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step {
  min-height: min(760px, calc(100vh - 230px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 0 !important;
  border-radius: 14px;
  background: var(--rc-surface-1) !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step[hidden] {
  display: none !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > header {
  padding: 24px 28px 0;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle {
  min-height: auto;
  padding: 0;
  pointer-events: none;
  cursor: default;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle:hover {
  background: transparent;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-number {
  width: 42px;
  height: 42px;
  border-color: rgba(0, 201, 183, 0.72);
  background: rgba(0, 201, 183, 0.08);
  color: var(--rc-brand);
  font-size: 18px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle strong {
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.08;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle small {
  font-size: 15px;
  line-height: 1.4;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-chevron {
  display: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body {
  align-content: start;
  gap: 24px;
  padding: 28px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields {
  gap: 24px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields.three,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields.four {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields label,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-field-group,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-panel,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-pricing > div,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-note,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-budget-estimate,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-review-callout {
  padding: 24px;
  border: 1px solid rgba(151, 164, 184, 0.2);
  border-radius: 10px;
  background: rgba(10, 20, 34, 0.52);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields label {
  margin: 0;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields .wide,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-field-group.wide {
  grid-column: span 2;
}

html[data-current-view="advertiser"] .campaign-field-group {
  display: grid;
  gap: 12px;
}

html[data-current-view="advertiser"] .campaign-field-group > span {
  color: var(--rc-text-secondary);
  font-size: 13px;
  font-weight: 900;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-grid {
  max-width: 1120px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 auto;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card {
  min-height: 220px;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
  padding: 32px;
  border-radius: 12px;
  background: rgba(10, 20, 34, 0.58);
  text-align: left;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card .campaign-format-icon {
  width: 44px;
  height: 44px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card span:not(.campaign-format-icon) {
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.05;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card small {
  max-width: 320px;
  font-size: 15px;
  line-height: 1.4;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-builder-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 24px;
}

html[data-current-view="advertiser"] .campaign-ai-fields {
  display: grid;
  gap: 20px;
}

html[data-current-view="advertiser"] #createAiVoiceField { order: 1; }
html[data-current-view="advertiser"] #createVoiceDeliveryField { order: 2; }
html[data-current-view="advertiser"] #createUploadField { order: 3; }
html[data-current-view="advertiser"] #createScriptField { order: 4; }
html[data-current-view="advertiser"] #createWebsiteField { order: 5; }

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview {
  padding: 24px;
}

html[data-current-view="advertiser"] .campaign-review-callout {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

html[data-current-view="advertiser"] .campaign-review-callout strong {
  font-size: 20px;
}

html[data-current-view="advertiser"] .campaign-review-callout span {
  color: var(--rc-text-secondary);
  font-size: 15px;
}

@media (max-width: 980px) {
  html[data-current-view="advertiser"] .campaign-wizard-chrome,
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-studio-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-current-view="advertiser"] .campaign-wizard-progress {
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    overflow-x: auto;
  }

  html[data-current-view="advertiser"] .campaign-wizard-step {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    min-width: 92px;
    text-align: center;
  }

  html[data-current-view="advertiser"] .campaign-wizard-step span {
    grid-row: auto;
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields.three,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields.four,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-builder-grid,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields .wide,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-field-group.wide {
    grid-column: auto;
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin: 8px -28px -28px;
    padding: 14px 28px;
    border-top: 1px solid rgba(151, 164, 184, 0.16);
    background: rgba(17, 24, 32, 0.96);
  }

  html[data-current-view="advertiser"] .campaign-summary-mobile-details {
    display: block;
  }

  html[data-current-view="advertiser"] .campaign-summary-mobile-summary {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: var(--rc-text);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
  }
}

/* Section 3 creative builder production surface */
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .campaign-creative-workspace {
  margin: 0;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-workspace {
  display: grid;
  gap: 14px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-toolbar {
  display: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step[data-create-step="creative"] > header {
  position: relative;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-help {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step[data-create-step="creative"]:not(.is-active) .campaign-creative-help {
  display: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-help summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  color: #a8b3c2;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-help summary::-webkit-details-marker {
  display: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-help summary span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #16e0d6;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-help summary span svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-help div {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 48px));
  padding: 12px 14px;
  border: 1px solid rgba(42, 60, 79, 0.9);
  border-radius: 8px;
  background: #0a1422;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-help p {
  margin: 0;
  color: #c1cad7;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  gap: 16px;
  align-items: stretch;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-panel {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(42, 60, 79, 0.9);
  border-radius: 12px;
  background:
    linear-gradient(140deg, rgba(13, 31, 49, 0.78), rgba(8, 18, 31, 0.94)),
    #091522;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-panel-head,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-panel-head strong,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-head strong {
  color: #f7f9fc;
  font-size: 17px;
  line-height: 1.2;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-panel-head small {
  justify-self: end;
  color: #16e0d6;
  font-size: 12px;
  font-weight: 850;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-ai-fields {
  display: grid;
  gap: 18px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-field {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #c9d3df;
  font-size: 13px;
  font-weight: 760;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-field.hidden {
  display: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-field small {
  color: #8f9cac;
  font-size: 11px;
  font-weight: 700;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-field select,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-field input,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-field textarea {
  width: 100%;
  border-color: rgba(55, 75, 98, 0.92);
  border-radius: 10px;
  background: rgba(6, 16, 28, 0.72);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-field select,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-field input {
  min-height: 52px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-input-shell {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(55, 75, 98, 0.92);
  border-radius: 10px;
  background: rgba(6, 16, 28, 0.72);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-input-shell svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #9aa6b5;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-input-shell input {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-script-field textarea {
  min-height: 132px;
  resize: vertical;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-script-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #a8b3c2;
  font-size: 11px;
  font-weight: 760;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-script-meter b {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border: 1px solid rgba(22, 224, 214, 0.72);
  border-radius: 999px;
  color: #16e0d6;
  font-size: 10px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-script-meter strong {
  flex: 0 0 auto;
  color: #c9d3df;
  font-size: 11px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 100%;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-head {
  margin-bottom: 14px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-head > div {
  display: grid;
  gap: 3px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-head span:not(.campaign-builder-icon) {
  color: #a8b3c2;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-header-wave,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-wave {
  display: flex;
  align-items: center;
  gap: 4px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-header-wave i,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-wave i {
  display: block;
  width: 2px;
  border-radius: 999px;
  background: rgba(22, 224, 214, 0.32);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-header-wave i:nth-child(3n + 1),
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-wave i:nth-child(3n + 1) {
  height: 18px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-header-wave i:nth-child(3n + 2),
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-wave i:nth-child(3n + 2) {
  height: 32px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-header-wave i:nth-child(3n),
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-wave i:nth-child(3n) {
  height: 10px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-header-wave i:nth-child(n + 9) {
  background: rgba(22, 224, 214, 0.58);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .script-audio-buttons {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 12px;
  max-width: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .script-audio-buttons button {
  min-height: 52px;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 850;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .script-audio-buttons button span {
  color: inherit;
  font-size: 18px;
  line-height: 1;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-label {
  margin-top: 6px;
  color: #8f9cac;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .voice-preview-state {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 4px 14px;
  min-height: 96px;
  padding: 18px;
  border-radius: 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .voice-preview-state::before {
  display: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .voice-preview-state-icon {
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(168, 179, 194, 0.09);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .voice-preview-state-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #d8e0ea;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .voice-preview-state small {
  color: #f5f7fa;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .voice-preview-state strong {
  color: #f7f9fc;
  font-size: 15px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .voice-preview-state span:not(.voice-preview-state-icon) {
  color: #a8b3c2;
  font-size: 13px;
  line-height: 1.45;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 14px 18px;
  border: 1px solid rgba(42, 60, 79, 0.78);
  border-radius: 12px;
  background: rgba(7, 18, 30, 0.34);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-player button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(22, 224, 214, 0.9);
  border-radius: 999px;
  background: rgba(22, 224, 214, 0.08);
  color: #16e0d6;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-player button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-player.has-audio {
  border-color: rgba(22, 224, 214, 0.42);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-player.has-audio button:not(:disabled) {
  background: rgba(22, 224, 214, 0.16);
  box-shadow: 0 0 0 4px rgba(22, 224, 214, 0.05);
  cursor: pointer;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-player.has-audio .campaign-preview-wave i {
  background: rgba(22, 224, 214, 0.48);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-player time {
  color: #a8b3c2;
  font-size: 12px;
  font-weight: 750;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-player .campaign-preview-wave i {
  background: rgba(168, 179, 194, 0.3);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-actions button {
  min-width: min(260px, 100%);
  min-height: 48px;
  border-color: rgba(22, 224, 214, 0.7);
  border-radius: 10px;
  background: linear-gradient(135deg, #18d5ce, #00b8ad);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(0, 201, 183, 0.16);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-actions button span {
  font-size: 24px;
  line-height: 0;
}

@media (max-width: 1180px) {
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-builder-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-header-wave {
    display: none;
  }
}

@media (max-width: 700px) {
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-panel {
    padding: 16px;
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-panel-head,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-panel-head small,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-header-wave {
    display: none;
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .script-audio-buttons,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-player {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-player button {
    justify-self: start;
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-actions {
    justify-content: stretch;
  }

  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-actions button {
    width: 100%;
  }
}

/* Campaign summary rail simplification */
html[data-current-view="advertiser"] .campaign-readiness-card {
  display: grid;
  gap: 10px;
}

html[data-current-view="advertiser"] .campaign-readiness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html[data-current-view="advertiser"] .campaign-readiness-head h3 {
  margin: 0;
}

html[data-current-view="advertiser"] .campaign-readiness-head strong {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(22, 224, 214, 0.26);
  border-radius: 8px;
  color: #16e0d6;
  background: rgba(22, 224, 214, 0.07);
  font-size: 11px;
  font-weight: 950;
}

html[data-current-view="advertiser"] .campaign-readiness-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(42, 60, 79, 0.72);
}

html[data-current-view="advertiser"] .campaign-readiness-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16e0d6, #63f7d4);
  transition: width 180ms ease;
}

html[data-current-view="advertiser"] .campaign-readiness-card p {
  margin: 0;
  color: #a8b3c2;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

html[data-current-view="advertiser"] .campaign-readiness-card.has-warning .campaign-readiness-head strong {
  border-color: rgba(245, 185, 66, 0.4);
  color: #ffd26a;
  background: rgba(245, 185, 66, 0.08);
}

html[data-current-view="advertiser"] .campaign-readiness-card.is-ready .campaign-readiness-head strong {
  border-color: rgba(0, 201, 183, 0.42);
  color: #22fff0;
  background: rgba(0, 201, 183, 0.09);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(42, 60, 79, 0.72);
  background:
    linear-gradient(180deg, rgba(10, 20, 34, 0.9), rgba(10, 20, 34, 0.98)),
    #0a1422;
  box-shadow: 0 -16px 24px rgba(6, 10, 16, 0.24);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-footer .campaign-create-terms {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  cursor: default;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-footer .campaign-create-terms input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 2px 0 0;
  border-radius: 6px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-footer .campaign-create-terms span {
  min-width: 0;
  color: #a8b3c2;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-footer .campaign-create-terms label {
  cursor: pointer;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-footer .campaign-create-terms a {
  color: #26f2df;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(38, 242, 223, 0.42);
  text-underline-offset: 2px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-footer .campaign-create-terms a:hover,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-footer .campaign-create-terms a:focus-visible {
  color: #7ffdf1;
  text-decoration-color: currentColor;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-footer .campaign-summary-actions {
  position: static;
  display: grid;
  gap: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-footer .campaign-summary-actions button {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-head {
  margin-bottom: 16px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-layout {
  margin-top: 0;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .campaign-format-grid {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 18px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card {
  min-height: 70px;
  padding: 10px 26px 10px 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card span:not(.campaign-format-icon) {
  font-size: 11px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card small {
  font-size: 9.5px;
}

/* New campaign accordion and floating summary */
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > header {
  padding: 0;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle:hover {
  background: rgba(22, 224, 214, 0.035);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle:focus-visible {
  outline: 2px solid rgba(22, 224, 214, 0.7);
  outline-offset: -3px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle > div {
  min-width: 0;
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-number {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(168, 179, 194, 0.48);
  border-radius: 999px;
  background: #0e182a;
  color: #a8b3c2;
  font-size: 11px;
  font-weight: 900;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step.is-active .campaign-step-number {
  border-color: rgba(22, 224, 214, 0.78);
  color: #16e0d6;
  box-shadow: 0 0 0 4px rgba(22, 224, 214, 0.06);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle strong {
  color: #f5f7fa;
  font-size: 15px;
  line-height: 1.2;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle small {
  color: #a8b3c2;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid rgba(168, 179, 194, 0.72);
  border-bottom: 2px solid rgba(168, 179, 194, 0.72);
  transform: rotate(45deg);
  transition: transform 160ms ease, border-color 160ms ease;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step.is-active .campaign-step-chevron {
  border-color: #16e0d6;
  transform: rotate(225deg);
}

html[data-current-view="advertiser"] .campaign-step-body[hidden] {
  display: none !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body {
  display: grid;
  gap: 18px;
  padding: 0 18px 18px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .builder-fields,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .campaign-creative-builder-grid,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .campaign-format-grid,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .campaign-proof-pricing,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .campaign-budget-estimate,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .campaign-proof-note {
  margin: 0;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step:not(.is-active) {
  background: rgba(7, 18, 30, 0.18) !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-rail {
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-rail .campaign-summary-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  background: rgba(10, 20, 34, 0.94);
  box-shadow: 0 -16px 24px rgba(6, 10, 16, 0.24);
}

@media (max-width: 1180px) {
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-rail {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 900px) {
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body {
    padding-left: 18px;
  }
}

/* AI voice preview production pass */
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-builder-grid {
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  align-items: start;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview {
  align-self: start;
  min-height: 0;
  height: auto;
  display: grid;
  gap: 14px;
  align-items: stretch;
  justify-content: stretch;
  padding: 20px;
  border-color: rgba(42, 60, 79, 0.78);
  border-radius: 12px;
  background: rgba(10, 20, 34, 0.62);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview > div:first-child {
  gap: 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview strong {
  font-size: 14px;
  line-height: 1.2;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview span {
  color: #a8b3c2;
  font-size: 11px;
  line-height: 1.3;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .script-audio-buttons {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 12px;
  max-width: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .script-audio-buttons button {
  min-height: 52px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .solid-button:disabled {
  border-color: rgba(42, 60, 79, 0.58);
  background: rgba(7, 18, 30, 0.3);
  color: rgba(168, 179, 194, 0.56);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .audio-wave-preview {
  width: 100%;
  height: 38px;
  gap: 3px;
  padding: 0 10px;
  border: 1px solid rgba(42, 60, 79, 0.58);
  border-radius: 10px;
  background: rgba(7, 18, 30, 0.34);
  opacity: 1;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .audio-wave-preview span {
  width: 2px;
  background: rgba(168, 179, 194, 0.66);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .audio-wave-preview {
  display: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .voice-preview-state {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px 10px 32px;
  border: 1px solid rgba(42, 60, 79, 0.7);
  border-radius: 10px;
  background: rgba(7, 18, 30, 0.34);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .voice-preview-state::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 15px;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(168, 179, 194, 0.68);
  border-radius: 999px;
  background: rgba(168, 179, 194, 0.08);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .voice-preview-state small {
  color: #a8b3c2;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .voice-preview-state strong {
  color: #f5f7fa;
  font-size: 12px;
  line-height: 1.2;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .voice-preview-state span {
  color: #a8b3c2;
  font-size: 10px;
  line-height: 1.3;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .voice-preview-state.is-ready {
  border-color: rgba(22, 224, 214, 0.34);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .voice-preview-state.is-ready::before {
  border-color: rgba(22, 224, 214, 0.7);
  background: rgba(22, 224, 214, 0.16);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .voice-preview-state.is-sampled {
  border-color: rgba(0, 201, 183, 0.38);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .voice-preview-state.is-sampled::before {
  border-color: rgba(34, 255, 240, 0.82);
  background: #00c9b7;
  box-shadow: inset 0 0 0 2px #07121e;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-head {
  grid-template-columns: auto minmax(0, 1fr) minmax(96px, 0.5fr);
  gap: 12px;
  align-items: center;
  height: auto;
  margin-bottom: 12px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-head > div:not(.campaign-header-wave) {
  display: grid;
  gap: 3px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-preview-head > .campaign-header-wave {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  min-width: 96px;
  height: 44px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .voice-preview-state {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 4px 14px;
  min-height: 96px;
  padding: 18px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .voice-preview-state::before {
  display: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .voice-preview-state small {
  color: #f5f7fa;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .voice-preview-state strong {
  color: #f7f9fc;
  font-size: 15px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .voice-preview-state span:not(.voice-preview-state-icon) {
  color: #a8b3c2;
  font-size: 13px;
  line-height: 1.45;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-actions button {
  border-color: rgba(22, 224, 214, 0.7);
  background: linear-gradient(135deg, #18d5ce, #00b8ad);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 201, 183, 0.16);
}

@media (max-width: 900px) {
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-builder-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-audio-preview .script-audio-buttons {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Focused wizard end guard */
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) {
  gap: 18px;
  background: transparent;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-layout {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-studio-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-rail {
  display: none !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-summary-rail {
  display: block !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-main,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step {
  min-height: min(760px, calc(100vh - 230px));
  background: var(--rc-surface-1) !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 0 !important;
  border-radius: 16px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step[hidden] {
  display: none !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step::before,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step:not(:last-child)::before {
  content: none !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step > header {
  min-height: auto;
  padding: 24px 28px 0 !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle {
  min-height: auto;
  padding: 0 !important;
  pointer-events: none;
  cursor: default;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-number {
  width: 42px;
  height: 42px;
  border-color: rgba(0, 201, 183, 0.72);
  background: rgba(0, 201, 183, 0.08);
  color: var(--rc-brand);
  font-size: 18px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle strong {
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.08;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle small {
  font-size: 15px;
  line-height: 1.4;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-chevron {
  display: none;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body {
  gap: 24px;
  padding: 28px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields {
  gap: 24px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields.three,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields.four {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields label,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-field-group,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-panel,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-pricing > div,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-proof-note,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-budget-estimate,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-review-callout {
  padding: 24px;
  border: 1px solid rgba(151, 164, 184, 0.2);
  border-radius: 10px;
  background: rgba(10, 20, 34, 0.52);
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .campaign-format-grid,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-grid {
  width: min(960px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin: 0 auto !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card {
  min-height: 220px !important;
  gap: 14px;
  padding: 32px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card .campaign-format-icon {
  width: 44px;
  height: 44px;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card span:not(.campaign-format-icon) {
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.05;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-card small {
  font-size: 15px;
  line-height: 1.4;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-builder-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr) !important;
  gap: 24px;
}

html[data-current-view="advertiser"] .campaign-summary-rail .campaign-create-terms span {
  font-size: 13px;
  line-height: 1.4;
}

html[data-current-view="advertiser"] .campaign-summary-rail .campaign-create-terms input {
  width: 18px;
  height: 18px;
}

@media (max-width: 980px) {
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-studio-layout,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields.three,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .builder-fields.four,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-creative-builder-grid,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-body > .campaign-format-grid,
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-footer .campaign-create-terms span {
  font-size: 13px !important;
  line-height: 1.4;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-summary-footer .campaign-create-terms input {
  width: 18px !important;
  height: 18px !important;
}

/* Advertiser dashboard logic and footer finish */
html[data-current-view="advertiser"] .advertiser-tab-button span:last-child {
  white-space: nowrap;
}

html[data-current-view="advertiser"] .campaign-performance-meta {
  width: auto;
  min-width: 0;
  display: grid;
  gap: 4px;
}

html[data-current-view="advertiser"] .campaign-performance-meta::after {
  pointer-events: none;
}

html[data-current-view="advertiser"] .campaign-performance-value {
  color: var(--rc-text) !important;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
}

html[data-current-view="advertiser"] .campaign-performance-detail {
  color: var(--rc-text-secondary) !important;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

html[data-current-view="advertiser"] .advertiser-analytics-panel .panel-lede {
  margin: 6px 0 0;
  max-width: 720px;
  color: var(--rc-text-secondary);
  font-size: 13px;
}

html[data-current-view="advertiser"] .phone-app-screen .app-shell {
  min-height: auto;
  grid-template-rows: auto auto;
}

html[data-current-view="advertiser"] .phone-app-screen .app-shell:has(#advertiserDashboard:not(.hidden)) {
  min-height: 0 !important;
  grid-template-rows: max-content max-content !important;
  align-content: start !important;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) {
  min-height: auto !important;
  padding-bottom: 14px !important;
}

html[data-current-view="advertiser"] #platformCopyright {
  position: static;
  grid-column: 1 / -1 !important;
  min-height: 42px;
  z-index: 30;
  margin-top: 0;
  border-top: 1px solid var(--rc-line);
  background: rgba(6, 10, 16, 0.96) !important;
}

/* Advertiser UX consolidation pass */
html[data-current-view="advertiser"] .phone-app-screen .app-shell:has(#advertiserDashboard:not(.hidden)) {
  min-height: 100vh !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  align-content: stretch !important;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) {
  min-height: 0 !important;
  padding: 18px 24px 18px !important;
}

html[data-current-view="advertiser"] .dashboard-shell {
  gap: 18px !important;
}

html[data-current-view="advertiser"] .advertiser-dashboard-top,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-dashboard-top {
  padding: 0 !important;
}

html[data-current-view="advertiser"] .advertiser-dashboard-brand .eyebrow {
  margin-bottom: 6px !important;
  font-size: 12px !important;
}

html[data-current-view="advertiser"] .advertiser-dashboard-brand h2 {
  max-width: 900px;
  font-size: clamp(28px, 2.5vw, 38px) !important;
  line-height: 1.08 !important;
}

html[data-current-view="advertiser"] .advertiser-dashboard-subtitle {
  margin-top: 8px !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
}

html[data-current-view="advertiser"] .advertiser-tabs,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tabs {
  min-height: 58px !important;
  border-radius: 10px !important;
}

html[data-current-view="advertiser"] .advertiser-tab-button {
  min-height: 58px !important;
  gap: 10px !important;
  font-size: 14px !important;
}

html[data-current-view="advertiser"] .status-strip-clean {
  gap: 14px !important;
}

html[data-current-view="advertiser"] .status-strip-clean div {
  min-height: 94px !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  gap: 4px 16px !important;
  padding: 18px 20px !important;
}

html[data-current-view="advertiser"] .dashboard-metric-icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 16px !important;
}

html[data-current-view="advertiser"] .status-strip-clean strong {
  font-size: clamp(23px, 2vw, 31px) !important;
}

html[data-current-view="advertiser"] .campaign-list-panel-clean {
  padding: 24px 28px 22px !important;
}

html[data-current-view="advertiser"] .campaign-list-actions {
  gap: 12px !important;
}

html[data-current-view="advertiser"] .campaign-list-panel-clean .inline-action {
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
}

html[data-current-view="advertiser"] #goCreateCampaign {
  min-width: 160px !important;
}

html[data-current-view="advertiser"] .campaign-table-header,
html[data-current-view="advertiser"] .campaign-row-clean {
  grid-template-columns: 24px minmax(280px, 1.45fr) minmax(102px, 0.45fr) minmax(180px, 0.72fr) minmax(210px, 0.85fr) 54px !important;
  column-gap: 18px !important;
}

html[data-current-view="advertiser"] .campaign-table-header {
  min-height: 44px !important;
  padding: 0 2px !important;
}

html[data-current-view="advertiser"] .campaign-row-clean {
  min-height: 90px !important;
  align-items: start !important;
  padding: 16px 2px !important;
}

html[data-current-view="advertiser"] .campaign-row-clean > *,
html[data-current-view="advertiser"] .campaign-table-header > * {
  min-width: 0;
}

html[data-current-view="advertiser"] .campaign-list-copy strong,
html[data-current-view="advertiser"] .campaign-list-copy small,
html[data-current-view="advertiser"] .campaign-table-summary strong,
html[data-current-view="advertiser"] .campaign-table-summary small,
html[data-current-view="advertiser"] .campaign-performance-value,
html[data-current-view="advertiser"] .campaign-performance-detail {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

html[data-current-view="advertiser"] .campaign-table-summary,
html[data-current-view="advertiser"] .campaign-performance-meta {
  align-self: center;
}

html[data-current-view="advertiser"] #platformCopyright {
  align-self: end;
  min-height: 48px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-family-grid {
  width: min(1180px, 100%) !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin: 0 auto !important;
}

html[data-current-view="advertiser"] .campaign-format-family {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

html[data-current-view="advertiser"] .campaign-format-family-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

html[data-current-view="advertiser"] .campaign-format-family-head strong {
  display: block;
  color: var(--rc-text);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
}

html[data-current-view="advertiser"] .campaign-format-family-head small {
  display: block;
  margin-top: 2px;
  color: var(--rc-text-secondary);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
}

html[data-current-view="advertiser"] .campaign-format-family-head .campaign-format-icon {
  width: 36px !important;
  height: 36px !important;
}

html[data-current-view="advertiser"] .campaign-format-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

html[data-current-view="advertiser"] .campaign-format-family .campaign-format-card {
  min-height: 132px !important;
  justify-content: end !important;
  gap: 8px !important;
  padding: 20px !important;
}

html[data-current-view="advertiser"] .campaign-format-family .campaign-format-card span:not(.campaign-format-icon) {
  font-size: 20px !important;
  line-height: 1.08 !important;
}

html[data-current-view="advertiser"] .campaign-format-family .campaign-format-card small {
  max-width: none !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}

html[data-current-view="advertiser"] .voice-preview-state.is-generated {
  border-color: rgba(22, 224, 214, 0.48) !important;
  background: rgba(0, 201, 183, 0.08) !important;
}

html[data-current-view="advertiser"] .voice-preview-state.is-generated .voice-preview-state-icon {
  background: rgba(22, 224, 214, 0.14) !important;
}

html[data-current-view="advertiser"] .campaign-preview-player.has-generated-audio button:not(:disabled) {
  background: var(--rc-brand) !important;
  color: #061116 !important;
}

@media (max-width: 1180px) {
  html[data-current-view="advertiser"] .campaign-table-header,
  html[data-current-view="advertiser"] .campaign-row-clean {
    grid-template-columns: 20px minmax(220px, 1.2fr) minmax(92px, 0.45fr) minmax(160px, 0.7fr) minmax(190px, 0.85fr) 44px !important;
    column-gap: 12px !important;
  }
}

@media (max-width: 980px) {
  html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-format-family-grid,
  html[data-current-view="advertiser"] .campaign-format-options,
  html[data-current-view="advertiser"] .status-strip-clean {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-current-view="advertiser"] .campaign-table-header {
    display: none !important;
  }

  html[data-current-view="advertiser"] .campaign-row-clean {
    grid-template-columns: 18px minmax(0, 1fr) auto !important;
    row-gap: 10px !important;
  }

  html[data-current-view="advertiser"] .campaign-table-status,
  html[data-current-view="advertiser"] .campaign-table-summary,
  html[data-current-view="advertiser"] .campaign-performance-meta {
    grid-column: 2 / 3;
  }

  html[data-current-view="advertiser"] .campaign-row-trailing {
    grid-column: 3 / 4;
    grid-row: 1 / span 4;
  }
}

/* Compact format chooser pass */
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-studio-main,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-builder-step[data-create-step="format"] {
  min-height: auto !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-builder-step[data-create-step="format"] {
  grid-template-rows: auto auto !important;
  align-content: start !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-builder-step[data-create-step="format"] > header {
  padding: 18px 24px 0 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-step-body {
  gap: 18px !important;
  padding: 22px 24px 24px !important;
  align-content: start !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-step-number {
  width: 36px !important;
  height: 36px !important;
  font-size: 15px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-step-toggle {
  gap: 10px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-step-toggle strong {
  font-size: 22px !important;
  line-height: 1.08 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-step-toggle small {
  font-size: 13px !important;
  line-height: 1.25 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-family-grid {
  width: min(1320px, 100%) !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: start !important;
  margin: 0 auto !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-family {
  gap: 10px !important;
  align-self: start !important;
  align-content: start !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-family-head {
  min-height: 34px !important;
  gap: 8px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-family-head .campaign-format-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-family-head .campaign-format-icon svg {
  width: 15px !important;
  height: 15px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-family-head strong {
  font-size: 16px !important;
  line-height: 1.08 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-family-head small {
  font-size: 11px !important;
  line-height: 1.15 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-options {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(98px, auto) !important;
  gap: 10px !important;
  align-items: start !important;
  align-content: start !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-family .campaign-format-card {
  min-height: 98px !important;
  height: auto !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 16px 18px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-family .campaign-format-card .campaign-format-icon {
  width: 28px !important;
  height: 28px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-family .campaign-format-card .campaign-format-icon svg {
  width: 15px !important;
  height: 15px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-family .campaign-format-card span:not(.campaign-format-icon) {
  font-size: 16px !important;
  line-height: 1.08 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-family .campaign-format-card small {
  font-size: 12px !important;
  line-height: 1.22 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-card::after {
  top: 14px !important;
  right: 14px !important;
  width: 16px !important;
  height: 16px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-step-actions {
  padding-top: 4px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-step-actions button {
  min-width: 260px !important;
  min-height: 44px !important;
  padding: 0 20px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

@media (max-width: 1120px) {
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-family-grid,
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-options {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-builder-step[data-create-step="format"] > header {
    padding: 16px 18px 0 !important;
  }

  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-step-body {
    padding: 18px !important;
  }

  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-step-actions button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Compact campaign basics form */
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-studio-main,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-builder-step[data-create-step="basics"] {
  min-height: auto !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-builder-step[data-create-step="basics"] {
  grid-template-rows: auto auto !important;
  align-content: start !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-builder-step[data-create-step="basics"] > header {
  padding: 18px 24px 0 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-body {
  gap: 16px !important;
  padding: 22px 24px 24px !important;
  align-content: start !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-number {
  width: 36px !important;
  height: 36px !important;
  font-size: 15px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-toggle {
  gap: 10px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-toggle strong {
  font-size: 22px !important;
  line-height: 1.08 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-toggle small {
  font-size: 13px !important;
  line-height: 1.25 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields.three {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: start !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:not(.hidden),
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-field-group {
  min-height: auto !important;
  display: grid !important;
  align-content: start !important;
  gap: 8px !important;
  padding: 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label.hidden {
  display: none !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] #campaignBusinessLocationField {
  grid-column: span 2 !important;
  order: 1;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] label:has(#campaignRadiusInput) {
  grid-column: span 1 !important;
  order: 2;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] label:has(#campaignTargetPlace) {
  grid-column: span 2 !important;
  order: 3;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-field-group.wide {
  grid-column: span 1 !important;
  order: 4;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields input,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields select {
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields textarea {
  min-height: 78px !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-field-group > span {
  color: var(--rc-text-secondary);
  font-size: 13px !important;
  font-weight: 850;
  line-height: 1.2 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .radius-pills {
  gap: 8px !important;
  margin-top: 0 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .radius-button {
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-actions {
  padding-top: 2px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-actions button {
  min-width: 260px !important;
  min-height: 44px !important;
  padding: 0 20px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

@media (max-width: 980px) {
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields.three {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] #campaignBusinessLocationField,
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] label:has(#campaignRadiusInput),
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] label:has(#campaignTargetPlace),
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-field-group.wide {
    grid-column: auto !important;
  }
}

/* Advertiser platform density standard */
html[data-current-view="advertiser"] {
  --adv-control-h: 38px;
  --adv-primary-h: 40px;
  --adv-panel-pad-x: 20px;
  --adv-panel-pad-y: 18px;
  --adv-radius: 10px;
  --adv-row-h: 68px;
}

html[data-current-view="advertiser"] .dashboard-shell {
  gap: 14px !important;
}

html[data-current-view="advertiser"] .advertiser-dashboard-brand h2 {
  font-size: clamp(26px, 2vw, 34px) !important;
}

html[data-current-view="advertiser"] .advertiser-dashboard-subtitle,
html[data-current-view="advertiser"] .panel-lede {
  font-size: 13px !important;
  line-height: 1.35 !important;
}

html[data-current-view="advertiser"] .advertiser-tabs,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tabs {
  min-height: 50px !important;
  border-radius: var(--adv-radius) !important;
}

html[data-current-view="advertiser"] .advertiser-tab-button,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tab-button {
  min-height: 50px !important;
  gap: 8px !important;
  font-size: 13px !important;
}

html[data-current-view="advertiser"] .advertiser-tab-button svg {
  width: 18px !important;
  height: 18px !important;
}

html[data-current-view="advertiser"] .status-strip-clean {
  gap: 10px !important;
}

html[data-current-view="advertiser"] .status-strip-clean div {
  min-height: 74px !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 2px 12px !important;
  padding: 14px 16px !important;
  border-radius: var(--adv-radius) !important;
}

html[data-current-view="advertiser"] .dashboard-metric-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
}

html[data-current-view="advertiser"] .dashboard-metric-icon svg {
  width: 20px !important;
  height: 20px !important;
}

html[data-current-view="advertiser"] .status-strip-clean div > span:not(.dashboard-metric-icon) {
  font-size: 11px !important;
  line-height: 1.15 !important;
}

html[data-current-view="advertiser"] .status-strip-clean strong {
  font-size: clamp(20px, 1.65vw, 27px) !important;
  line-height: 1 !important;
}

html[data-current-view="advertiser"] .campaign-list-panel-clean,
html[data-current-view="advertiser"] .advertiser-analytics-panel,
html[data-current-view="advertiser"] .campaign-studio-panel {
  border-radius: var(--adv-radius) !important;
}

html[data-current-view="advertiser"] .campaign-list-panel-clean {
  padding: var(--adv-panel-pad-y) var(--adv-panel-pad-x) 16px !important;
}

html[data-current-view="advertiser"] .section-heading-clean {
  margin-bottom: 14px !important;
  gap: 12px !important;
}

html[data-current-view="advertiser"] .section-heading-clean h2,
html[data-current-view="advertiser"] .campaign-list-panel-clean h2 {
  font-size: 21px !important;
  line-height: 1.15 !important;
}

html[data-current-view="advertiser"] .campaign-list-actions {
  gap: 8px !important;
}

html[data-current-view="advertiser"] .inline-action,
html[data-current-view="advertiser"] .ghost-button.inline-action,
html[data-current-view="advertiser"] .primary-action.inline-action,
html[data-current-view="advertiser"] .campaign-list-panel-clean .inline-action,
html[data-current-view="advertiser"] .manager-header-actions .inline-action {
  min-width: 0 !important;
  min-height: var(--adv-control-h) !important;
  padding: 0 12px !important;
  gap: 8px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

html[data-current-view="advertiser"] #goCreateCampaign {
  min-width: 144px !important;
}

html[data-current-view="advertiser"] .button-icon svg,
html[data-current-view="advertiser"] .inline-action svg {
  width: 17px !important;
  height: 17px !important;
}

html[data-current-view="advertiser"] .campaign-table-header,
html[data-current-view="advertiser"] .campaign-row-clean {
  grid-template-columns: 18px minmax(240px, 1.45fr) minmax(92px, 0.42fr) minmax(170px, 0.72fr) minmax(210px, 0.88fr) 40px !important;
  column-gap: 14px !important;
}

html[data-current-view="advertiser"] .campaign-table-header {
  min-height: 34px !important;
  padding: 0 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

html[data-current-view="advertiser"] .campaign-row-clean {
  min-height: var(--adv-row-h) !important;
  align-items: center !important;
  padding: 10px 0 !important;
}

html[data-current-view="advertiser"] .campaign-status-dot {
  width: 7px !important;
  height: 7px !important;
}

html[data-current-view="advertiser"] .campaign-list-copy {
  gap: 3px !important;
}

html[data-current-view="advertiser"] .campaign-list-copy strong {
  font-size: 14px !important;
  line-height: 1.15 !important;
}

html[data-current-view="advertiser"] .campaign-list-copy small,
html[data-current-view="advertiser"] .campaign-table-summary small,
html[data-current-view="advertiser"] .campaign-row-meta {
  font-size: 12px !important;
  line-height: 1.2 !important;
}

html[data-current-view="advertiser"] .campaign-table-status {
  gap: 5px !important;
  padding: 4px 9px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

html[data-current-view="advertiser"] .campaign-table-status::before {
  width: 6px !important;
  height: 6px !important;
}

html[data-current-view="advertiser"] .campaign-table-summary {
  gap: 3px !important;
}

html[data-current-view="advertiser"] .campaign-table-summary strong,
html[data-current-view="advertiser"] .campaign-performance-value {
  font-size: 14px !important;
  line-height: 1.15 !important;
}

html[data-current-view="advertiser"] .campaign-performance-detail {
  font-size: 11.5px !important;
  line-height: 1.2 !important;
}

html[data-current-view="advertiser"] .campaign-row-cta {
  min-height: 24px !important;
  margin-top: 3px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 11px !important;
}

html[data-current-view="advertiser"] .campaign-row-menu-btn {
  width: 34px !important;
  height: 30px !important;
  min-height: 30px !important;
  border-radius: 7px !important;
  font-size: 16px !important;
}

html[data-current-view="advertiser"] .campaign-wizard-chrome {
  gap: 10px !important;
  margin-bottom: 12px !important;
}

html[data-current-view="advertiser"] .campaign-wizard-back {
  min-height: var(--adv-primary-h) !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
}

html[data-current-view="advertiser"] .campaign-wizard-progress {
  gap: 8px !important;
}

html[data-current-view="advertiser"] .campaign-wizard-step {
  min-height: 52px !important;
  padding: 9px 12px !important;
  gap: 8px !important;
  border-radius: 8px !important;
}

html[data-current-view="advertiser"] .campaign-wizard-step span {
  width: 24px !important;
  height: 24px !important;
  font-size: 11px !important;
}

html[data-current-view="advertiser"] .campaign-wizard-step strong {
  font-size: 13px !important;
  line-height: 1.1 !important;
}

html[data-current-view="advertiser"] .campaign-wizard-step small {
  font-size: 10.5px !important;
  line-height: 1.1 !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-actions button {
  min-height: var(--adv-primary-h) !important;
  font-size: 13px !important;
}

@media (max-width: 980px) {
  html[data-current-view="advertiser"] .campaign-row-clean {
    min-height: 0 !important;
    padding: 12px 0 !important;
  }
}

/* Advertiser chrome standard */
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) {
  padding: 0 24px 18px !important;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) > .topbar {
  min-height: 84px !important;
  margin: 0 -24px 22px !important;
  padding: 0 24px !important;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .brand-mark,
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .mini-brand span {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .brand-lockup strong,
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .mini-brand strong {
  font-size: 18px !important;
  line-height: 1.05 !important;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .brand-lockup small,
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .mini-brand small {
  font-size: 12px !important;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .advertiser-logout-button {
  min-height: 40px !important;
  padding: 0 14px !important;
  gap: 8px !important;
  font-size: 13px !important;
}

html[data-current-view="advertiser"] .advertiser-dashboard-brand .eyebrow {
  margin-bottom: 4px !important;
  font-size: 11px !important;
}

html[data-current-view="advertiser"] .advertiser-dashboard-subtitle {
  margin-top: 6px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .advertiser-dashboard-top,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .status-strip-clean {
  display: none !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) {
  gap: 12px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-head {
  display: none !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-chrome {
  margin-top: 0 !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step[data-create-step="format"] > header,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step[data-create-step="basics"] > header {
  padding-top: 14px !important;
}

/* Compact budget and schedule step */
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-studio-main,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-builder-step[data-create-step="budget"] {
  min-height: auto !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-builder-step[data-create-step="budget"] {
  grid-template-rows: auto auto !important;
  align-content: start !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-builder-step[data-create-step="budget"] > header {
  padding: 14px 24px 0 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-step-body {
  gap: 8px !important;
  padding: 14px 24px 18px !important;
  align-content: start !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-step-number {
  width: 36px !important;
  height: 36px !important;
  font-size: 15px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-step-toggle {
  gap: 10px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-step-toggle strong {
  font-size: 22px !important;
  line-height: 1.08 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-step-toggle small {
  font-size: 13px !important;
  line-height: 1.25 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .builder-fields.four {
  gap: 8px !important;
  align-items: start !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .builder-fields.four:has(#budgetMode) {
  grid-template-columns: minmax(180px, 1.1fr) minmax(110px, 0.7fr) minmax(140px, 0.85fr) minmax(120px, 0.75fr) minmax(150px, 0.85fr) !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .builder-fields.four:has(#scheduleMode) {
  grid-template-columns: minmax(180px, 1.25fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(170px, 1.1fr) !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .builder-fields label,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-proof-pricing > div,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-road-risk-card,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-proof-note,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-budget-estimate {
  min-height: auto !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  gap: 5px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .builder-fields label {
  display: grid !important;
  align-content: start !important;
  font-size: 12px !important;
  line-height: 1.12 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .builder-fields .wide,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] label:has(#scheduleContext) {
  grid-column: auto !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .builder-fields input,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .builder-fields select {
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-proof-pricing {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-proof-pricing > div {
  min-height: 58px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-proof-pricing small {
  font-size: 10.5px !important;
  line-height: 1.1 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-proof-pricing strong {
  font-size: 15px !important;
  line-height: 1.05 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-proof-pricing span {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-road-risk-card {
  display: grid !important;
  grid-template-columns: minmax(170px, 0.22fr) minmax(0, 1fr) !important;
  align-items: center !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(8, 15, 24, 0.36)) !important;
  color: rgba(248, 250, 252, 0.92) !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-road-risk-card strong {
  font-size: 13px !important;
  line-height: 1.15 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-road-risk-card span {
  font-size: 11.5px !important;
  line-height: 1.3 !important;
  color: rgba(203, 213, 225, 0.9) !important;
}

html[data-current-view="advertiser"] #campaignPanel .campaign-radius-guidance {
  display: grid !important;
  gap: 5px !important;
  min-height: auto !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(245, 158, 11, 0.32) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(8, 15, 24, 0.38)) !important;
}

html[data-current-view="advertiser"] #campaignPanel .campaign-radius-guidance strong {
  font-size: 12.5px !important;
  line-height: 1.15 !important;
}

html[data-current-view="advertiser"] #campaignPanel .campaign-radius-guidance span {
  font-size: 11.5px !important;
  line-height: 1.3 !important;
  color: rgba(203, 213, 225, 0.9) !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-budget-estimate {
  min-height: 0 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .budget-estimate-header {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .budget-estimate-title {
  font-size: 16px !important;
  line-height: 1.15 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .budget-estimate-subtitle {
  max-width: 620px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  text-align: right;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .budget-estimate-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .budget-estimate-metric {
  min-height: 48px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .budget-estimate-value {
  font-size: 18px !important;
  line-height: 1.05 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .budget-estimate-label {
  font-size: 10.5px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-proof-note {
  min-height: 44px !important;
  display: grid !important;
  grid-template-columns: minmax(170px, 0.22fr) minmax(0, 1fr) !important;
  align-items: center !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-proof-note strong {
  font-size: 13px !important;
  line-height: 1.15 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-proof-note span {
  font-size: 11.5px !important;
  line-height: 1.3 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-step-actions {
  padding-top: 0 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-step-actions button {
  min-width: 220px !important;
  min-height: 38px !important;
  padding: 0 18px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

@media (max-width: 1180px) {
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .builder-fields.four:has(#budgetMode),
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .builder-fields.four:has(#scheduleMode) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .builder-fields.four:has(#budgetMode),
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .builder-fields.four:has(#scheduleMode),
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-proof-pricing,
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .budget-estimate-metrics,
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-road-risk-card,
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-proof-note {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .budget-estimate-header {
    display: grid !important;
  }

  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .budget-estimate-subtitle {
    text-align: left;
  }
}

/* Viewport-fit advertiser create flow */
html[data-current-view="advertiser"] .phone-app-screen .app-shell:has([data-advertiser-section="create"].active) {
  min-height: 100vh !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  align-content: stretch !important;
}

html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) {
  min-height: 0 !important;
  padding: 0 24px !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: clip !important;
}

html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) > .topbar {
  min-height: 68px !important;
  margin: 0 -24px 10px !important;
  padding: 0 24px !important;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)):has([data-advertiser-section="create"].active) > .topbar {
  min-height: 68px !important;
  margin: 0 -24px 10px !important;
  padding: 0 24px !important;
}

html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) .brand-mark,
html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) .mini-brand span {
  width: 40px !important;
  height: 40px !important;
  border-radius: 11px !important;
}

html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) .brand-lockup strong,
html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) .mini-brand strong {
  font-size: 16px !important;
}

html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) .brand-lockup small,
html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) .mini-brand small {
  font-size: 11px !important;
}

html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) .advertiser-logout-button {
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) {
  min-height: 0 !important;
  height: calc(100vh - 130px) !important;
  align-self: stretch !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 8px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .advertiser-tabs,
html[data-current-view="advertiser"] .phone-app-screen .dashboard-shell:has([data-advertiser-section="create"].active) .advertiser-tabs {
  min-height: 42px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-radius: 9px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .advertiser-tab-button {
  min-height: 42px !important;
  gap: 8px !important;
  font-size: 12px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .advertiser-tab-button svg {
  width: 16px !important;
  height: 16px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) [data-advertiser-section="create"] {
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  align-items: stretch !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-panel {
  min-height: 0 !important;
  height: 100% !important;
  align-self: stretch !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-chrome {
  gap: 8px !important;
  margin: 0 0 8px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-back {
  min-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-progress {
  gap: 8px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-step {
  min-height: 36px !important;
  padding: 7px 10px !important;
  gap: 8px !important;
  border-radius: 8px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-step span {
  width: 20px !important;
  height: 20px !important;
  font-size: 10px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-step strong {
  font-size: 12px !important;
  line-height: 1 !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-step small {
  display: none !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-layout,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-main {
  min-height: 0 !important;
  height: 100% !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step {
  min-height: 0 !important;
  height: 100% !important;
  align-self: stretch !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] {
  height: auto !important;
  align-self: start !important;
  grid-template-rows: auto auto !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-studio-layout,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-studio-main,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-builder-step[data-create-step="format"] {
  height: auto !important;
  align-self: start !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-builder-step[data-create-step="format"] {
  grid-template-rows: auto auto !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] {
  height: auto !important;
  align-self: start !important;
  grid-template-rows: auto auto !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-studio-layout,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-studio-main,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-builder-step[data-create-step="basics"] {
  height: auto !important;
  align-self: start !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-builder-step[data-create-step="basics"] {
  grid-template-rows: auto auto !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="format"]),
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="basics"]) {
  height: auto !important;
  align-self: start !important;
  grid-template-rows: auto auto !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="format"]) [data-advertiser-section="create"],
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="basics"]) [data-advertiser-section="create"] {
  height: auto !important;
  align-items: start !important;
}

html[data-current-view="advertiser"] .phone-app-screen .app-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="format"]),
html[data-current-view="advertiser"] .phone-app-screen .app-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="basics"]) {
  min-height: 0 !important;
  grid-template-rows: max-content max-content !important;
  align-content: start !important;
}

html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="format"]),
html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="basics"]) {
  min-height: auto !important;
  display: block !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
}

html[data-current-view="advertiser"] .phone-app-screen .app-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="format"]) #platformCopyright,
html[data-current-view="advertiser"] .phone-app-screen .app-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="basics"]) #platformCopyright {
  align-self: start !important;
  margin-top: 0 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] {
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-builder-step[data-create-step="creative"] {
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: hidden !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-step-body {
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
  padding-bottom: 14px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-creative-workspace {
  min-height: 0 !important;
  padding-bottom: 4px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-creative-builder-grid {
  min-height: 0 !important;
  align-items: start !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-creative-panel {
  min-height: 0 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-script-field textarea {
  min-height: 112px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-creative-flow-actions {
  padding-bottom: 0 !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle {
  gap: 10px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-number {
  width: 34px !important;
  height: 34px !important;
  font-size: 14px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle strong {
  font-size: 20px !important;
  line-height: 1.05 !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-toggle small {
  font-size: 12px !important;
  line-height: 1.15 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-builder-step[data-create-step="basics"] > header {
  padding: 12px 24px 0 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-body {
  gap: 10px !important;
  padding: 14px 24px 16px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields.three {
  gap: 10px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:not(.hidden),
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-field-group {
  gap: 6px !important;
  padding: 10px 12px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields input,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields select {
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  font-size: 13px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields textarea {
  min-height: 64px !important;
  padding: 10px 12px !important;
  border-radius: 7px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-field-group > span {
  font-size: 12px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .radius-pills {
  gap: 6px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .radius-button {
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  font-size: 13px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-actions {
  padding-top: 0 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-actions button {
  min-width: 240px !important;
  min-height: 38px !important;
  padding: 0 18px !important;
  border-radius: 9px !important;
  font-size: 12.5px !important;
}

html[data-current-view="advertiser"] .phone-app-screen .app-shell:has([data-advertiser-section="create"].active) #platformCopyright {
  grid-column: 1 / -1 !important;
  min-height: 34px !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
}

@media (max-height: 680px) {
  html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) {
    overflow: auto !important;
  }
}

/* Campaign wizard progress rail stays visible during campaign creation. */
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-chrome {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 10px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) {
  height: calc(100vh - 86px) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 8px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-panel {
  grid-template-rows: auto minmax(0, 1fr) !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step.is-active {
  grid-template-rows: auto minmax(0, 1fr) !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step.is-active > header {
  padding-top: 14px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-step-body,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-body {
  align-content: stretch !important;
}

/* Balanced campaign wizard layout */
html[data-current-view="advertiser"] .phone-app-screen .app-shell:has([data-advertiser-section="create"].active) {
  min-height: 100vh !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  align-content: stretch !important;
}

html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) {
  min-height: 0 !important;
  padding: 0 24px !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: clip !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) {
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 8px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) [data-advertiser-section="create"] {
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  align-items: stretch !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-panel,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-layout,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-main {
  min-height: 0 !important;
  height: 100% !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-panel {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step.is-active {
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: hidden !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step.is-active > header {
  flex: 0 0 auto !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step.is-active .campaign-step-body {
  min-height: 0 !important;
  padding: 14px 24px 18px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"],
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] {
  height: 100% !important;
  align-self: stretch !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-studio-layout,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-studio-main,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-builder-step[data-create-step="format"],
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-studio-layout,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-studio-main,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-builder-step[data-create-step="basics"] {
  height: 100% !important;
  align-self: stretch !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-step-body {
  grid-template-rows: minmax(0, 1fr) auto !important;
  align-content: stretch !important;
  overflow: hidden !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-family-grid {
  align-self: center !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-step-actions,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-actions {
  align-self: end !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-body {
  grid-template-rows: minmax(0, 1fr) auto !important;
  align-content: stretch !important;
  overflow: hidden !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields.three {
  align-self: center !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-step-body,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-step-body,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-step-body {
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-creative-builder-grid,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-step-body > .builder-fields,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-step-body > * {
  align-self: start !important;
}

html[data-current-view="advertiser"] .phone-app-screen .app-shell:has([data-advertiser-section="create"].active) #platformCopyright {
  align-self: end !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="format"]),
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="basics"]) {
  height: calc(100vh - 130px) !important;
  align-self: start !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="format"]) [data-advertiser-section="create"],
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="basics"]) [data-advertiser-section="create"] {
  height: 100% !important;
  align-items: stretch !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="format"]) #campaignPanel,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="basics"]) #campaignPanel {
  height: 100% !important;
  align-self: stretch !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-builder-step[data-create-step="format"],
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-builder-step[data-create-step="basics"] {
  height: 100% !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  align-self: stretch !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-step-body,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-body {
  height: 100% !important;
  align-self: stretch !important;
}

/* Keep compact early wizard cards while pinning the footer to the viewport bottom. */
html[data-current-view="advertiser"] .phone-app-screen .app-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="format"]),
html[data-current-view="advertiser"] .phone-app-screen .app-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="basics"]) {
  min-height: 100vh !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  align-content: stretch !important;
}

html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="format"]),
html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="basics"]) {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  align-content: start !important;
  overflow: clip !important;
}

html[data-current-view="advertiser"] .phone-app-screen .app-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="format"]) #platformCopyright,
html[data-current-view="advertiser"] .phone-app-screen .app-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="basics"]) #platformCopyright {
  align-self: end !important;
  margin-top: 0 !important;
}

/* Final create chrome reset: keep the old advertiser shell and show the step rail. */
html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) .campaign-wizard-chrome,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-chrome,
html[data-current-view="advertiser"] [data-advertiser-section="create"].active #campaignPanel.campaign-studio-panel > .campaign-wizard-chrome {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) {
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 8px !important;
}

html[data-current-view="advertiser"] [data-advertiser-section="create"].active #campaignPanel.campaign-studio-panel {
  grid-template-rows: auto minmax(0, 1fr) !important;
}

html[data-current-view="advertiser"] [data-advertiser-section="create"].active #campaignPanel.campaign-studio-panel > .campaign-studio-layout {
  height: 100% !important;
  align-self: stretch !important;
}

/* Advertiser rail reset: dashboard tabs must never stretch with spare page height. */
html[data-current-view="advertiser"] .dashboard-shell {
  align-content: start !important;
  grid-auto-rows: max-content !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has(.advertiser-section.active:not([data-advertiser-section="create"])) {
  height: auto !important;
  min-height: 0 !important;
  align-self: start !important;
  grid-template-rows: auto 58px auto auto !important;
}

html[data-current-view="advertiser"] .advertiser-tabs,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tabs {
  height: 58px !important;
  min-height: 58px !important;
  align-self: start !important;
  grid-auto-rows: 1fr !important;
}

html[data-current-view="advertiser"] .advertiser-tab-button,
html[data-current-view="advertiser"] .phone-app-screen .advertiser-tab-button {
  height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has(#campaignManagerPanel:not(.hidden)) {
  grid-template-rows: auto !important;
  gap: 12px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has(#campaignManagerPanel:not(.hidden)) > .advertiser-dashboard-top,
html[data-current-view="advertiser"] .dashboard-shell:has(#campaignManagerPanel:not(.hidden)) > .advertiser-tabs,
html[data-current-view="advertiser"] .dashboard-shell:has(#campaignManagerPanel:not(.hidden)) > .status-strip-clean {
  display: none !important;
}

/* Campaign detail cockpit */
html[data-current-view="advertiser"] .campaign-manager.panel {
  padding: 24px !important;
}

html[data-current-view="advertiser"] .manager-header {
  margin-bottom: 16px !important;
}

html[data-current-view="advertiser"] .manager-header-actions .ghost-button,
html[data-current-view="advertiser"] .manager-header-actions .status-pill {
  min-width: 0;
  gap: 8px;
  border-radius: 8px;
}

html[data-current-view="advertiser"] #managerCampaignStatus::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--rc-brand);
  box-shadow: 0 0 18px rgba(22, 224, 214, 0.45);
}

html[data-current-view="advertiser"] .manager-stats {
  grid-template-columns:
    minmax(170px, 0.92fr)
    minmax(160px, 0.82fr)
    minmax(250px, 1.22fr)
    minmax(180px, 0.94fr)
    minmax(190px, 1fr) !important;
  gap: 14px !important;
  margin: 16px 0 14px !important;
}

html[data-current-view="advertiser"] .manager-stats div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-content: center;
  align-items: center;
  min-height: 92px;
  padding: 16px 18px !important;
  border-color: rgba(151, 164, 184, 0.18) !important;
  background:
    linear-gradient(180deg, rgba(23, 44, 64, 0.86), rgba(10, 19, 30, 0.98)),
    radial-gradient(circle at 10% 0%, rgba(0, 201, 183, 0.08), transparent 42%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

html[data-current-view="advertiser"] .campaign-detail-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  grid-row: 1 / 3;
  border: 1px solid rgba(22, 224, 214, 0.28);
  border-radius: 8px;
  background: rgba(22, 224, 214, 0.08);
  color: var(--rc-brand);
}

html[data-current-view="advertiser"] .campaign-detail-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-current-view="advertiser"] .manager-stats div > span:not(.campaign-detail-icon) {
  grid-column: 2;
  color: var(--rc-text-secondary);
  font-size: 12px !important;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: none;
}

html[data-current-view="advertiser"] .manager-stats strong {
  grid-column: 2;
  margin-top: 8px !important;
  color: var(--rc-text) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  overflow-wrap: anywhere;
}

html[data-current-view="advertiser"] .manager-stats #managerTarget {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin-top: 5px !important;
  overflow-wrap: normal;
}

html[data-current-view="advertiser"] .manager-stats #managerTarget .campaign-detail-primary {
  display: block;
  min-width: 0;
  color: var(--rc-text) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.06 !important;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-current-view="advertiser"] .manager-stats #managerTarget .campaign-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  min-width: 0;
  color: var(--rc-text-secondary) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.12 !important;
  letter-spacing: 0;
}

html[data-current-view="advertiser"] .manager-stats #managerTarget .campaign-detail-meta span {
  display: inline-flex;
  align-items: center;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: 0;
  text-transform: none;
}

html[data-current-view="advertiser"] .manager-stats #managerTarget .campaign-detail-meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 9px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.72;
}

html[data-current-view="advertiser"] .campaign-cockpit-panel.analytics-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

html[data-current-view="advertiser"] .campaign-cockpit-panel.hidden {
  display: none;
}

html[data-current-view="advertiser"] .campaign-cockpit-grid {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

html[data-current-view="advertiser"] .campaign-cockpit-grid--top {
  grid-template-columns: minmax(0, 1fr);
}

html[data-current-view="advertiser"] .campaign-cockpit-grid--evidence {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  align-items: start;
}

html[data-current-view="advertiser"] .campaign-cockpit-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  padding: 18px;
  border: 1px solid rgba(151, 164, 184, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 39, 58, 0.86), rgba(9, 18, 29, 0.98)),
    radial-gradient(circle at 0% 0%, rgba(0, 201, 183, 0.06), transparent 38%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

html[data-current-view="advertiser"] .campaign-cockpit-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

html[data-current-view="advertiser"] .campaign-cockpit-card-head h3 {
  margin: 0;
  color: var(--rc-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

html[data-current-view="advertiser"] .campaign-cockpit-card-head p {
  margin: 3px 0 0;
  color: var(--rc-text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

html[data-current-view="advertiser"] .campaign-cockpit-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

html[data-current-view="advertiser"] .campaign-cockpit-metrics--billing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-current-view="advertiser"] .campaign-cockpit-metrics div {
  display: grid;
  gap: 7px;
  min-width: 0;
  align-content: start;
  min-height: 86px;
  padding: 12px 14px;
  border: 1px solid rgba(151, 164, 184, 0.14);
  border-radius: 8px;
  background: rgba(5, 12, 20, 0.32);
}

html[data-current-view="advertiser"] .campaign-cockpit-metrics span,
html[data-current-view="advertiser"] .campaign-cockpit-metrics small {
  color: var(--rc-text-secondary);
  font-size: 11px;
  font-weight: 600;
}

html[data-current-view="advertiser"] .campaign-cockpit-metrics strong {
  color: var(--rc-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

html[data-current-view="advertiser"] .campaign-cockpit-metric--confidence {
  grid-column: span 2;
}

html[data-current-view="advertiser"] .campaign-cockpit-metrics:not(.campaign-cockpit-metrics--billing) div:nth-child(5) strong,
html[data-current-view="advertiser"] .campaign-cockpit-metrics:not(.campaign-cockpit-metrics--billing) div:nth-child(6) strong {
  font-size: 18px;
  line-height: 1.18;
}

html[data-current-view="advertiser"] .campaign-cockpit-metrics:not(.campaign-cockpit-metrics--billing) .campaign-cockpit-metric--confidence strong {
  font-size: 18px;
  line-height: 1.22;
}

html[data-current-view="advertiser"] .campaign-confidence-counts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  min-width: 0;
}

html[data-current-view="advertiser"] .campaign-confidence-counts span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  color: var(--rc-text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}

html[data-current-view="advertiser"] .campaign-confidence-counts b {
  color: var(--rc-text);
  font-size: 16px;
  font-weight: 850;
}

html[data-current-view="advertiser"] .campaign-confidence-summary {
  margin: 14px 2px 0;
}

html[data-current-view="advertiser"] .campaign-confidence-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--rc-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

html[data-current-view="advertiser"] .campaign-confidence-label small {
  color: var(--rc-muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: none;
  white-space: nowrap;
}

html[data-current-view="advertiser"] .campaign-confidence-bar {
  display: flex;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(168, 179, 194, 0.14);
}

html[data-current-view="advertiser"] .campaign-confidence-bar span {
  display: block;
  min-width: 0;
}

html[data-current-view="advertiser"] .campaign-confidence-green {
  background: #22c55e;
}

html[data-current-view="advertiser"] .campaign-confidence-amber {
  background: #f5b942;
}

html[data-current-view="advertiser"] .campaign-confidence-red {
  background: #ff5c70;
}

html[data-current-view="advertiser"] .campaign-tier-charge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

html[data-current-view="advertiser"] .tier-dot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(168, 179, 194, 0.16);
  border-radius: 8px;
  color: var(--rc-text-secondary);
  font-size: 12px;
  font-weight: 600;
}

html[data-current-view="advertiser"] .tier-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
}

html[data-current-view="advertiser"] .tier-dot b {
  margin-left: auto;
  color: var(--rc-text);
  font-weight: 700;
}

html[data-current-view="advertiser"] .tier-dot--green::before { background: #22c55e; }
html[data-current-view="advertiser"] .tier-dot--amber::before { background: #f5b942; }
html[data-current-view="advertiser"] .tier-dot--red::before { background: #ff5c70; }

html[data-current-view="advertiser"] .campaign-report-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: start;
  gap: 10px;
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
}

html[data-current-view="advertiser"] .campaign-report-actions .ghost-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  min-width: 0;
  padding: 8px 12px;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

html[data-current-view="advertiser"] .campaign-report-actions .ghost-button > span:last-child {
  min-width: 0;
}

html[data-current-view="advertiser"] .campaign-export-panel {
  min-width: 0;
  max-width: 100%;
  margin: 0 0 16px;
}

html[data-current-view="advertiser"] .campaign-export-builder {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(151, 164, 184, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 30, 45, 0.94), rgba(6, 14, 24, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(66, 133, 244, 0.1), transparent 42%);
}

html[data-current-view="advertiser"] .campaign-export-head,
html[data-current-view="advertiser"] .campaign-export-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

html[data-current-view="advertiser"] .campaign-export-head h4 {
  margin: 0;
  color: var(--rc-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.18;
}

html[data-current-view="advertiser"] .campaign-export-head span,
html[data-current-view="advertiser"] .campaign-export-footer span {
  display: block;
  color: var(--rc-text-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

html[data-current-view="advertiser"] .campaign-export-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-color: rgba(151, 164, 184, 0.24);
  color: var(--rc-text-secondary);
  font-size: 20px;
}

html[data-current-view="advertiser"] .campaign-export-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(130px, 0.7fr) repeat(2, minmax(92px, 0.45fr));
  align-items: end;
  gap: 10px;
  min-width: 0;
}

html[data-current-view="advertiser"] .campaign-export-controls label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--rc-text-secondary);
  font-size: 11px;
  font-weight: 750;
}

html[data-current-view="advertiser"] .campaign-export-controls select {
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(151, 164, 184, 0.28);
  border-radius: 8px;
  background: rgba(5, 12, 20, 0.66);
  color: var(--rc-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

html[data-current-view="advertiser"] .campaign-export-count {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 38px;
  padding: 5px 10px;
  border: 1px solid rgba(151, 164, 184, 0.18);
  border-radius: 8px;
  background: rgba(5, 12, 20, 0.38);
}

html[data-current-view="advertiser"] .campaign-export-count strong {
  color: var(--rc-text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
}

html[data-current-view="advertiser"] .campaign-export-count span {
  color: var(--rc-text-secondary);
  font-size: 10px;
  font-weight: 700;
}

html[data-current-view="advertiser"] .campaign-export-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

html[data-current-view="advertiser"] .campaign-export-toolbar .ghost-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

html[data-current-view="advertiser"] .campaign-export-column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  min-width: 0;
}

html[data-current-view="advertiser"] .campaign-export-column-group {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(151, 164, 184, 0.16);
  border-radius: 8px;
  background: rgba(5, 12, 20, 0.26);
}

html[data-current-view="advertiser"] .campaign-export-column-group h5 {
  margin: 0 0 8px;
  color: var(--rc-text);
  font-size: 12px;
  font-weight: 850;
}

html[data-current-view="advertiser"] .campaign-export-column-list {
  display: grid;
  gap: 7px;
  min-width: 0;
}

html[data-current-view="advertiser"] .campaign-export-column {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--rc-text-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

html[data-current-view="advertiser"] .campaign-export-column input {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  accent-color: var(--rc-brand);
}

html[data-current-view="advertiser"] .campaign-export-column span {
  min-width: 0;
  overflow-wrap: anywhere;
}

html[data-current-view="advertiser"] .campaign-export-footer {
  align-items: center;
  padding-top: 2px;
}

html[data-current-view="advertiser"] .campaign-export-footer .primary-action {
  min-height: 38px;
  min-width: 130px;
  padding: 0 16px;
  border-radius: 8px;
}

html[data-current-view="advertiser"] .campaign-report-actions .button-icon,
html[data-current-view="advertiser"] .campaign-action-row .button-icon,
html[data-current-view="advertiser"] .campaign-audit-log .section-heading .button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

html[data-current-view="advertiser"] .campaign-report-actions .button-icon svg,
html[data-current-view="advertiser"] .campaign-action-row .button-icon svg,
html[data-current-view="advertiser"] .campaign-audit-log .section-heading .button-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

html[data-current-view="advertiser"] .campaign-cockpit-card--reports,
html[data-current-view="advertiser"] .campaign-cockpit-card--plays,
html[data-current-view="advertiser"] .campaign-cockpit-card--qr {
  min-height: 250px;
}

html[data-current-view="advertiser"] .campaign-cockpit-card--reports {
  grid-column: 1 / -1;
}

html[data-current-view="advertiser"] .campaign-cockpit-card--plays,
html[data-current-view="advertiser"] #campaignRecentPlaysPanel {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

html[data-current-view="advertiser"] .campaign-cockpit-card--plays {
  grid-column: 1;
}

html[data-current-view="advertiser"] .campaign-cockpit-card--qr {
  grid-column: 2;
  align-self: start;
  min-height: 0;
}

html[data-current-view="advertiser"] .campaign-cockpit-card--reports {
  grid-template-rows: auto auto minmax(0, 1fr);
}

html[data-current-view="advertiser"] .campaign-cockpit-card--reports,
html[data-current-view="advertiser"] #campaignReportsPanel {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

html[data-current-view="advertiser"] .campaign-reference-file {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
  min-width: 0;
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(168, 179, 194, 0.16);
  border-radius: 8px;
  background: rgba(5, 12, 20, 0.35);
}

html[data-current-view="advertiser"] .campaign-reference-file .campaign-detail-icon {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
}

html[data-current-view="advertiser"] .campaign-reference-file strong,
html[data-current-view="advertiser"] .campaign-reference-file span {
  display: block;
  overflow-wrap: anywhere;
}

html[data-current-view="advertiser"] .campaign-reference-file > div {
  min-width: 0;
}

html[data-current-view="advertiser"] .campaign-reference-file strong {
  color: var(--rc-text);
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 700;
}

html[data-current-view="advertiser"] .campaign-reference-file span {
  color: var(--rc-text-secondary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

html[data-current-view="advertiser"] .campaign-reference-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 2;
  min-width: 0;
}

html[data-current-view="advertiser"] .campaign-reference-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(168, 179, 194, 0.14);
  border-radius: 999px;
  background: rgba(18, 37, 56, 0.42);
  color: var(--rc-text-secondary);
  font-size: 11px;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[data-current-view="advertiser"] .campaign-mini-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 0;
  scrollbar-gutter: stable;
}

html[data-current-view="advertiser"] .campaign-mini-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

html[data-current-view="advertiser"] .campaign-mini-table th,
html[data-current-view="advertiser"] .campaign-mini-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(168, 179, 194, 0.12);
  color: var(--rc-text);
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

html[data-current-view="advertiser"] .campaign-mini-table th {
  color: var(--rc-text-secondary);
  font-size: 10px;
  font-weight: 750;
  text-transform: none;
}

html[data-current-view="advertiser"] .campaign-mini-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

html[data-current-view="advertiser"] .campaign-mini-table code {
  color: var(--rc-text);
  font-family: inherit;
  font-weight: 650;
}

html[data-current-view="advertiser"] #campaignQrPanel {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: center;
  gap: 12px;
}

html[data-current-view="advertiser"] .campaign-qr-empty {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  justify-items: start;
  align-content: start;
  align-items: center;
  gap: 6px 12px;
  min-height: 0;
  padding: 10px 8px;
  color: var(--rc-text-secondary);
  text-align: left;
}

html[data-current-view="advertiser"] .campaign-qr-empty.is-empty {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  min-height: 172px;
  padding: 8px 14px 12px;
  text-align: center;
}

html[data-current-view="advertiser"] .campaign-qr-empty strong {
  color: var(--rc-text);
  font-size: 13px;
  font-weight: 700;
}

html[data-current-view="advertiser"] .campaign-qr-empty p {
  grid-column: 2;
  max-width: none;
  margin: 0;
  color: var(--rc-text-secondary);
  font-size: 11px;
  line-height: 1.35;
}

html[data-current-view="advertiser"] .campaign-qr-empty.is-empty p {
  grid-column: auto;
  max-width: 320px;
}

html[data-current-view="advertiser"] .qr-reticle {
  position: relative;
  grid-row: 1 / span 3;
  width: 52px;
  height: 52px;
  margin: 0;
  border: 1px dashed rgba(168, 179, 194, 0.42);
  border-radius: 8px;
}

html[data-current-view="advertiser"] .campaign-qr-empty.is-empty .qr-reticle {
  grid-row: auto;
  width: 62px;
  height: 62px;
  margin-bottom: 4px;
}

html[data-current-view="advertiser"] .qr-reticle::before,
html[data-current-view="advertiser"] .qr-reticle::after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 2px solid rgba(168, 179, 194, 0.28);
  border-radius: 3px;
}

html[data-current-view="advertiser"] .qr-reticle::after {
  inset: 22px;
  background: rgba(168, 179, 194, 0.32);
}

html[data-current-view="advertiser"] .campaign-qr-session-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html[data-current-view="advertiser"] .campaign-qr-session-list li {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(168, 179, 194, 0.14);
  border-radius: 8px;
  background: rgba(5, 12, 20, 0.28);
}

html[data-current-view="advertiser"] .campaign-qr-session-list strong {
  color: var(--rc-text);
  font-size: 12px;
}

html[data-current-view="advertiser"] .campaign-qr-session-list span {
  color: var(--rc-text-secondary);
  font-size: 11px;
}

html[data-current-view="advertiser"] .campaign-audit-log {
  margin-top: 12px !important;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(18, 37, 56, 0.9), rgba(10, 19, 30, 0.96));
}

html[data-current-view="advertiser"] .campaign-audit-log .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

html[data-current-view="advertiser"] .campaign-audit-log .section-heading .inline-actions {
  justify-content: flex-end;
  align-self: start;
}

html[data-current-view="advertiser"] .campaign-audit-log .section-heading .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

html[data-current-view="advertiser"] .audit-log-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 8px 0 6px !important;
}

html[data-current-view="advertiser"] .campaign-action-row {
  position: static;
  bottom: auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  border-color: var(--rc-line) !important;
  background: rgba(7, 18, 30, 0.92) !important;
  backdrop-filter: blur(14px);
}

html[data-current-view="advertiser"] .campaign-action-row .ghost-button,
html[data-current-view="advertiser"] .campaign-action-row .primary-action {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  min-width: 170px;
  padding: 0 14px;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

html[data-current-view="advertiser"] .campaign-action-row #activateCampaign {
  margin-left: auto;
  min-width: 200px;
}

@media (max-width: 1240px) {
  html[data-current-view="advertiser"] .campaign-cockpit-grid--top,
  html[data-current-view="advertiser"] .campaign-cockpit-grid--evidence {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-current-view="advertiser"] .campaign-cockpit-card--reports,
  html[data-current-view="advertiser"] .campaign-cockpit-card--plays,
  html[data-current-view="advertiser"] .campaign-cockpit-card--qr {
    grid-column: auto;
  }

  html[data-current-view="advertiser"] .manager-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  html[data-current-view="advertiser"] .campaign-report-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-current-view="advertiser"] .campaign-report-actions .ghost-button {
    min-height: 46px;
    justify-content: flex-start;
    text-align: left;
  }

  html[data-current-view="advertiser"] .campaign-export-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html[data-current-view="advertiser"] .campaign-manager.panel {
    padding: 16px !important;
  }

  html[data-current-view="advertiser"] .manager-header-row,
  html[data-current-view="advertiser"] .manager-header-actions,
  html[data-current-view="advertiser"] .campaign-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  html[data-current-view="advertiser"] .manager-header-actions .ghost-button,
  html[data-current-view="advertiser"] .manager-header-actions .status-pill,
  html[data-current-view="advertiser"] .campaign-action-row .ghost-button,
  html[data-current-view="advertiser"] .campaign-action-row .primary-action,
  html[data-current-view="advertiser"] .campaign-action-row #activateCampaign {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  html[data-current-view="advertiser"] .manager-stats,
  html[data-current-view="advertiser"] .campaign-cockpit-metrics,
  html[data-current-view="advertiser"] .campaign-cockpit-metrics--billing,
  html[data-current-view="advertiser"] .campaign-tier-charge-grid,
  html[data-current-view="advertiser"] .audit-log-summary,
  html[data-current-view="advertiser"] .campaign-report-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-current-view="advertiser"] .campaign-cockpit-metrics div,
  html[data-current-view="advertiser"] .campaign-cockpit-metrics div:first-child {
    border-left: 0;
    border-top: 1px solid rgba(168, 179, 194, 0.16);
  }

  html[data-current-view="advertiser"] .campaign-cockpit-metrics div:first-child {
    border-top: 0;
  }

  html[data-current-view="advertiser"] .campaign-export-head,
  html[data-current-view="advertiser"] .campaign-export-footer {
    align-items: stretch;
    flex-direction: column;
  }

  html[data-current-view="advertiser"] .campaign-export-controls,
  html[data-current-view="advertiser"] .campaign-export-column-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-current-view="advertiser"] .campaign-export-footer .primary-action {
    width: 100%;
  }

  html[data-current-view="advertiser"] .campaign-reference-file {
    grid-template-columns: 42px minmax(0, 1fr);
  }
}

/* RYDCAST campaign creation final polish: keep the process rail visible. */
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-chrome {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
  min-height: 48px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-progress {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
  min-width: 0 !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-step {
  min-width: 0 !important;
  min-height: 46px !important;
  padding: 7px 9px !important;
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  gap: 1px 8px !important;
  border: 1px solid rgba(151, 164, 184, 0.22) !important;
  border-radius: 8px !important;
  background: rgba(7, 18, 30, 0.74) !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-step span {
  grid-row: 1 / 3 !important;
  width: 24px !important;
  height: 24px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(151, 164, 184, 0.42) !important;
  border-radius: 999px !important;
  color: rgba(232, 236, 243, 0.86) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-step strong {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #f5f7fa !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-step small {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: rgba(168, 179, 194, 0.76) !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-step.is-active {
  border-color: rgba(0, 201, 183, 0.78) !important;
  background: rgba(0, 201, 183, 0.08) !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-step.is-active span,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-step.is-complete span {
  border-color: rgba(0, 201, 183, 0.9) !important;
  color: #00dacd !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-wizard-step.is-locked {
  opacity: 0.62 !important;
}

/* RYDCAST dashboard header logo: single clean lockup, no oversized mark. */
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) > .topbar {
  min-height: 90px !important;
  padding-top: 16px !important;
  padding-bottom: 6px !important;
  margin-bottom: 18px !important;
  align-items: center !important;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .advertiser-login-brand-row {
  gap: 16px !important;
  margin-bottom: 0 !important;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .rydcast-dashboard-logo {
  --rydcast-dashboard-logo-width: clamp(170px, 13vw, 230px);
  display: grid !important;
  gap: 5px !important;
  justify-items: start !important;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .rydcast-dashboard-logo-image {
  display: block !important;
  width: var(--rydcast-dashboard-logo-width) !important;
  height: auto !important;
  object-fit: contain !important;
  line-height: 1.15 !important;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)) .rydcast-dashboard-product {
  margin-left: calc(var(--rydcast-dashboard-logo-width) * 0.285) !important;
  color: rgba(168, 179, 194, 0.92) !important;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

/* RYDCAST campaign creation: make step continue buttons match Logout. */
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-actions .solid-button {
  min-width: min(360px, 100%) !important;
  min-height: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border: 1px solid rgba(151, 164, 184, 0.26) !important;
  border-radius: 8px !important;
  padding: 0 22px !important;
  background: transparent !important;
  color: var(--rc-text-secondary) !important;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-actions .solid-button span {
  color: var(--rc-brand) !important;
  font-size: 26px !important;
  line-height: 0 !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-actions .solid-button:hover:not(:disabled),
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-step-actions .solid-button:focus-visible {
  border-color: rgba(151, 164, 184, 0.38) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: var(--rc-text) !important;
  transform: none !important;
}

/* RYDCAST campaign creation: fix the format step vertical balance. */
html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)):has([data-advertiser-section="create"].active) > .topbar {
  min-height: 90px !important;
  margin: 0 -24px 12px !important;
  padding: 16px 24px 6px !important;
  align-items: center !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="format"]) {
  height: calc(100vh - 130px) !important;
  min-height: 0 !important;
  align-self: start !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step="format"]) [data-advertiser-section="create"] {
  height: 100% !important;
  min-height: 0 !important;
  align-items: stretch !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] {
  height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

html[data-current-view="advertiser"] [data-advertiser-section="create"].active #campaignPanel[data-create-active-step="format"].campaign-studio-panel > .campaign-studio-layout,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-studio-main,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-builder-step[data-create-step="format"] {
  height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-builder-step[data-create-step="format"] {
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: hidden !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-builder-step[data-create-step="format"] > header {
  padding: 24px 32px 0 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-step-body {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto !important;
  align-content: space-evenly !important;
  gap: 34px !important;
  padding: 24px 48px 36px !important;
  overflow: hidden !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-format-family-grid {
  align-self: start !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="format"] .campaign-step-actions {
  align-self: start !important;
  justify-content: flex-end !important;
  padding-top: 0 !important;
}

/* RYDCAST campaign basics: complete card outlines and cleaner stacking. */
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields.three {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  grid-auto-flow: row dense !important;
  grid-auto-rows: minmax(96px, auto) !important;
  align-items: stretch !important;
  gap: 12px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:not(.hidden),
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-field-group {
  grid-column: span 4 !important;
  order: 0 !important;
  min-height: 96px !important;
  display: grid !important;
  align-content: start !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(151, 164, 184, 0.28) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(16, 30, 45, 0.72), rgba(9, 18, 30, 0.82)),
    rgba(10, 20, 34, 0.64) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
  overflow: hidden !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignName),
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#objectiveType),
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignTargetContext),
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignAgeRange),
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignGenderTarget),
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-field-group.wide,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignRadiusInput) {
  grid-column: span 4 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] #campaignBusinessLocationField {
  grid-column: span 8 !important;
}

html[data-current-view="advertiser"] .placement-scope-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(20, 184, 166, 0.36);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(18, 34, 49, 0.78), rgba(8, 18, 30, 0.88)),
    rgba(8, 18, 30, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

html[data-current-view="advertiser"] .placement-scope-card.hidden {
  display: none !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] #campaignPlacementScopeCard {
  grid-column: 1 / -1 !important;
  order: 5 !important;
}

html[data-current-view="advertiser"] .placement-scope-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

html[data-current-view="advertiser"] .placement-scope-head strong {
  display: block;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
}

html[data-current-view="advertiser"] .placement-scope-head span {
  display: block;
  color: #a8b3c4;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.25;
}

html[data-current-view="advertiser"] .placement-scope-head > span {
  flex: 0 0 auto;
  border: 1px solid rgba(20, 184, 166, 0.46);
  border-radius: 999px;
  padding: 5px 9px;
  color: #21d4c7;
  background: rgba(20, 184, 166, 0.09);
}

html[data-current-view="advertiser"] .placement-scope-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}

html[data-current-view="advertiser"] .placement-scope-grid label,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields .placement-scope-grid label:not(.hidden) {
  grid-column: span 3 !important;
  display: grid !important;
  gap: 6px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html[data-current-view="advertiser"] .placement-scope-grid label.hidden,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields .placement-scope-grid label.hidden {
  display: none !important;
}

html[data-current-view="advertiser"] .placement-scope-grid .placement-venues,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields .placement-scope-grid .placement-venues:not(.hidden) {
  grid-column: span 8 !important;
}

html[data-current-view="advertiser"] .placement-scope-grid .placement-location-search,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields .placement-scope-grid .placement-location-search:not(.hidden) {
  grid-column: span 4 !important;
}

html[data-current-view="advertiser"] .placement-scope-summary {
  grid-column: 1 / -1;
  min-height: 96px;
  max-height: 156px;
  display: grid;
  align-content: start;
  gap: 4px;
  border: 1px solid rgba(151, 164, 184, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  color: #cbd5e1;
  background: rgba(2, 10, 20, 0.32);
  overflow: auto;
}

html[data-current-view="advertiser"] .placement-scope-summary strong {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 850;
}

html[data-current-view="advertiser"] .placement-scope-summary span {
  color: #a8b3c4;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

html[data-current-view="advertiser"] .placement-scope-summary .placement-town-list {
  color: #d5dde9;
  font-weight: 720;
}

html[data-current-view="advertiser"] .placement-scope-summary .placement-town-list b {
  color: #f8fafc;
  font-weight: 850;
}

html[data-current-view="advertiser"] .placement-scope-summary em {
  color: #fbbf24;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

html[data-current-view="advertiser"] .placement-scope-grid select[multiple],
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields .placement-scope-grid select[multiple] {
  min-height: 154px !important;
  height: 154px !important;
  padding: 8px 10px !important;
}

html[data-current-view="advertiser"] .mini-editor-placement {
  grid-column: 1 / -1;
  width: 100%;
}

@media (max-width: 980px) {
  html[data-current-view="advertiser"] .placement-scope-grid {
    grid-template-columns: 1fr;
  }

  html[data-current-view="advertiser"] .placement-scope-grid label,
  html[data-current-view="advertiser"] .placement-scope-grid .placement-venues,
  html[data-current-view="advertiser"] .placement-scope-grid .placement-location-search,
  html[data-current-view="advertiser"] .placement-scope-summary {
    grid-column: 1 / -1 !important;
  }
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignTargetPlace) {
  grid-column: 1 / -1 !important;
  min-height: 142px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignAgeRange),
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignGenderTarget),
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-field-group.wide {
  min-height: 116px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-field-group.wide {
  grid-template-rows: auto minmax(0, 1fr) !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .radius-pills {
  align-self: center !important;
}

/* RYDCAST creative builder: wheel scroll should follow the page, not get trapped inside cards. */
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-step-body {
  overscroll-behavior-y: auto !important;
  scroll-behavior: auto !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-creative-workspace,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-creative-builder-grid,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-creative-panel,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-ai-fields,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-audio-preview {
  overflow: visible !important;
  overscroll-behavior-y: auto !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-creative-field textarea,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-creative-field select,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-creative-field input {
  overscroll-behavior-y: auto !important;
}

/* RYDCAST campaign creation: visible validation feedback for blocked steps. */
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step.is-active {
  position: relative !important;
}

html[data-current-view="advertiser"] .campaign-step-validation-alert {
  position: absolute;
  top: 10px;
  left: calc(100% + 12px);
  right: auto;
  z-index: 80;
  width: min(420px, 28vw);
  min-width: 300px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 91, 121, 0.55);
  border-radius: 8px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(255, 91, 121, 0.16), rgba(10, 20, 34, 0.96)),
    #0a1422;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 91, 121, 0.08);
  color: #f8fafc;
  cursor: pointer;
  pointer-events: auto;
}

html[data-current-view="advertiser"] .campaign-step-validation-alert::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -7px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(255, 91, 121, 0.55);
  border-bottom: 1px solid rgba(255, 91, 121, 0.55);
  background: #101222;
  transform: rotate(45deg);
}

html[data-current-view="advertiser"] .campaign-step-validation-alert.is-left {
  right: calc(100% + 12px);
  left: auto;
}

html[data-current-view="advertiser"] .campaign-step-validation-alert.is-left::before {
  right: -7px;
  left: auto;
  border: 0;
  border-top: 1px solid rgba(255, 91, 121, 0.55);
  border-right: 1px solid rgba(255, 91, 121, 0.55);
}

html[data-current-view="advertiser"] .campaign-step-validation-alert.is-below {
  top: calc(100% + 10px);
  right: 12px;
  left: 12px;
  width: auto;
  min-width: 0;
}

html[data-current-view="advertiser"] .campaign-step-validation-alert.is-below::before {
  top: -7px;
  left: 26px;
  border: 0;
  border-top: 1px solid rgba(255, 91, 121, 0.55);
  border-left: 1px solid rgba(255, 91, 121, 0.55);
}

html[data-current-view="advertiser"] .campaign-step-validation-alert strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
}

html[data-current-view="advertiser"] .campaign-step-validation-alert span {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

html[data-current-view="advertiser"] .campaign-validation-anchor {
  position: relative !important;
}

html[data-current-view="advertiser"] .campaign-validation-error {
  border-color: rgba(255, 91, 121, 0.72) !important;
  background:
    linear-gradient(145deg, rgba(255, 91, 121, 0.075), rgba(8, 18, 31, 0.94)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 0 0 1px rgba(255, 91, 121, 0.26),
    0 0 24px rgba(255, 91, 121, 0.12) !important;
}

html[data-current-view="advertiser"] .campaign-validation-error input,
html[data-current-view="advertiser"] .campaign-validation-error select,
html[data-current-view="advertiser"] .campaign-validation-error textarea {
  border-color: rgba(148, 163, 184, 0.26) !important;
}

html[data-current-view="advertiser"] #campaignPanel .campaign-validation-error {
  border-color: rgba(255, 91, 121, 0.72) !important;
}

html[data-current-view="advertiser"] #campaignPanel .campaign-validation-error input,
html[data-current-view="advertiser"] #campaignPanel .campaign-validation-error select,
html[data-current-view="advertiser"] #campaignPanel .campaign-validation-error textarea {
  border-color: rgba(148, 163, 184, 0.26) !important;
}

html[data-current-view="advertiser"] .campaign-validation-error input:focus,
html[data-current-view="advertiser"] .campaign-validation-error select:focus,
html[data-current-view="advertiser"] .campaign-validation-error textarea:focus,
html[data-current-view="advertiser"] #campaignPanel .campaign-validation-error input:focus,
html[data-current-view="advertiser"] #campaignPanel .campaign-validation-error select:focus,
html[data-current-view="advertiser"] #campaignPanel .campaign-validation-error textarea:focus {
  outline: none !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
  box-shadow: none !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step] .builder-fields label.campaign-validation-error:not(.hidden),
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step] .campaign-field-group.campaign-validation-error,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step] .campaign-creative-field.campaign-validation-error,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step] .campaign-format-card.campaign-validation-error {
  border-color: rgba(255, 91, 121, 0.72) !important;
}

@media (max-width: 980px) {
  html[data-current-view="advertiser"] .campaign-step-validation-alert {
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    width: auto;
    min-width: 0;
  }

  html[data-current-view="advertiser"] .campaign-step-validation-alert::before,
  html[data-current-view="advertiser"] .campaign-step-validation-alert.is-left::before {
    top: -7px;
    right: auto;
    left: 24px;
    border: 0;
    border-top: 1px solid rgba(255, 91, 121, 0.55);
    border-left: 1px solid rgba(255, 91, 121, 0.55);
  }

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields.three {
  grid-template-columns: 1fr !important;
  }

  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:not(.hidden),
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-field-group,
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignName),
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#objectiveType),
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignTargetContext),
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignAgeRange),
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignGenderTarget),
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] #campaignBusinessLocationField,
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignTargetPlace),
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignRadiusInput),
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-field-group.wide {
    grid-column: 1 / -1 !important;
  }
}

/* RYDCAST campaign basics: natural flow prevents clipped card borders under the heading. */
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-builder-step[data-create-step="basics"] {
  overflow: visible !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-body {
  min-height: 0 !important;
  height: auto !important;
  display: grid !important;
  grid-template-rows: auto auto !important;
  gap: 12px !important;
  align-content: start !important;
  padding: 18px 24px 16px !important;
  overflow: visible !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields.three {
  align-self: start !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  overscroll-behavior-y: auto !important;
  scrollbar-gutter: auto !important;
  padding: 0 2px 6px 0 !important;
  grid-auto-rows: minmax(84px, auto) !important;
  gap: 10px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:not(.hidden),
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-field-group {
  min-height: 84px !important;
  padding: 11px 12px !important;
  overflow: visible !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignAgeRange),
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignGenderTarget),
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-field-group.wide {
  min-height: 104px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields label:has(#campaignTargetPlace) {
  min-height: 122px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields input,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields select {
  min-height: 36px !important;
  height: 36px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields select[multiple],
html[data-current-view="advertiser"] #managerBusinessLocation[multiple] {
  min-height: 112px !important;
  height: 112px !important;
  padding: 8px 10px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields textarea {
  min-height: 68px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .radius-button {
  min-height: 36px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-actions {
  position: relative !important;
  z-index: 5 !important;
  align-self: start !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  margin: 0 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-actions button {
  min-height: 40px !important;
}

@media (max-width: 980px) {
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-body {
    padding: 16px 18px 16px !important;
  }
}

/* RYDCAST campaign creation: one consistent size for every step continue action. */
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step] .campaign-step-actions {
  justify-content: flex-end !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step] .campaign-step-actions .solid-button {
  width: auto !important;
  min-width: 260px !important;
  max-width: calc(100vw - 64px) !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 20px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step] .campaign-step-actions .solid-button span {
  font-size: 24px !important;
  line-height: 0 !important;
}

/* RYDCAST campaign review: compact final checks, no empty left panel. */
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-studio-main,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-builder-step[data-create-step="review"] {
  min-height: auto !important;
  align-self: start !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-builder-step[data-create-step="review"] {
  grid-template-rows: auto auto !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-step-body {
  gap: 14px !important;
  padding: 24px 28px 28px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-review-callout {
  max-width: none !important;
  padding: 20px 22px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-review-readiness {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-review-readiness article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 3px;
  min-height: 82px;
  padding: 15px;
  border: 1px solid rgba(151, 164, 184, 0.18);
  border-radius: 10px;
  background: rgba(10, 20, 34, 0.52);
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-review-readiness article > span {
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 201, 183, 0.38);
  border-radius: 999px;
  background: rgba(0, 201, 183, 0.08);
  color: var(--rc-brand);
  font-size: 12px;
  font-weight: 950;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-review-readiness strong {
  color: var(--rc-text);
  font-size: 15px;
  line-height: 1.1;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-review-readiness small {
  color: var(--rc-text-secondary);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.28;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-summary-card {
  padding: 18px 20px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-summary-list {
  gap: 0 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-summary-list > div {
  min-height: 58px !important;
  padding: 11px 0 !important;
}

/* RYDCAST campaign basics: restore internal scrolling for taller form states. */
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-builder-step[data-create-step="basics"] {
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: hidden !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-body {
  min-height: 0 !important;
  height: 100% !important;
  display: block !important;
  gap: 12px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
  padding: 18px 24px 96px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields.three {
  align-self: start !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 0 12px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-actions {
  align-self: start !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* RYDCAST campaign setup: content-sized cards with page-level scrolling. */
html[data-current-view="advertiser"] .phone-app-screen .app-shell:has([data-advertiser-section="create"].active) {
  min-height: auto !important;
  grid-template-rows: auto auto !important;
  align-content: start !important;
}

html[data-current-view="advertiser"] .phone-app-screen .app-shell:has(#advertiserDashboard:not(.hidden)):has([data-advertiser-section="create"].active) {
  min-height: auto !important;
  grid-template-rows: auto auto !important;
  align-content: start !important;
}

html[data-current-view="advertiser"] .workspace:has([data-advertiser-section="create"].active) {
  min-height: auto !important;
  display: block !important;
  overflow: visible !important;
  padding: 0 24px 22px !important;
}

html[data-current-view="advertiser"] .workspace:has(#advertiserDashboard:not(.hidden)):has([data-advertiser-section="create"].active) {
  min-height: auto !important;
  display: block !important;
  overflow: visible !important;
  padding: 0 24px 22px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) {
  min-height: 0 !important;
  height: auto !important;
  align-self: start !important;
  display: grid !important;
  grid-template-rows: auto auto !important;
  gap: 8px !important;
  margin-bottom: 18px !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active):has(#campaignPanel[data-create-active-step]) {
  min-height: 0 !important;
  height: auto !important;
  grid-template-rows: auto auto !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) [data-advertiser-section="create"],
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-panel,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-layout,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-main,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step.is-active {
  min-height: 0 !important;
  height: auto !important;
  align-self: start !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) [data-advertiser-section="create"] {
  display: block !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) [data-advertiser-section="create"],
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-studio-panel,
html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step.is-active {
  grid-template-rows: auto auto !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step.is-active {
  overflow: visible !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step],
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step] .campaign-studio-layout,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step] .campaign-studio-main,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step] .campaign-builder-step.is-active {
  min-height: 0 !important;
  height: auto !important;
  align-self: start !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step],
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step] .campaign-builder-step.is-active {
  grid-template-rows: auto auto !important;
}

html[data-current-view="advertiser"] [data-advertiser-section="create"].active #campaignPanel[data-create-active-step].campaign-studio-panel,
html[data-current-view="advertiser"] [data-advertiser-section="create"].active #campaignPanel[data-create-active-step].campaign-studio-panel > .campaign-studio-layout {
  min-height: 0 !important;
  height: auto !important;
  align-self: start !important;
}

html[data-current-view="advertiser"] [data-advertiser-section="create"].active #campaignPanel[data-create-active-step].campaign-studio-panel {
  grid-template-rows: auto auto !important;
}

html[data-current-view="advertiser"] .dashboard-shell:has([data-advertiser-section="create"].active) .campaign-builder-step.is-active .campaign-step-body {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  align-content: start !important;
  overflow: visible !important;
  padding-bottom: 18px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-builder-step[data-create-step="basics"],
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-builder-step[data-create-step="creative"] {
  min-height: 0 !important;
  height: auto !important;
  grid-template-rows: auto auto !important;
  overflow: visible !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-body,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-step-body,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="budget"] .campaign-step-body,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-step-body {
  height: auto !important;
  overflow: visible !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .campaign-step-body {
  padding: 18px 24px 18px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] .builder-fields.three {
  margin-bottom: 12px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] #campaignRadiusGuidance {
  grid-column: 1 / -1 !important;
  order: 12 !important;
  align-self: stretch !important;
  align-content: center !important;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: auto !important;
  padding: 10px 14px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] #campaignBasicsMapCard {
  grid-column: 1 / -1 !important;
  order: 11 !important;
  align-self: stretch !important;
  min-height: 0 !important;
  border-color: rgba(151, 164, 184, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(16, 30, 45, 0.74), rgba(9, 18, 30, 0.84)),
    rgba(10, 20, 34, 0.64) !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] #campaignBasicsMapCard .campaign-map-stage {
  min-height: 180px !important;
  height: 180px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] #campaignBasicsMapCard .campaign-map-footer {
  min-height: 58px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] #campaignRadiusGuidanceTitle {
  display: block !important;
  font-size: 12.5px !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] #campaignRadiusGuidanceText {
  display: block !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
}

@media (max-width: 980px) {
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] #campaignRadiusGuidance,
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] #campaignBasicsMapCard {
    grid-column: 1 / -1 !important;
  }

  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] #campaignBasicsMapCard .campaign-map-stage {
    min-height: 240px !important;
    height: 240px !important;
  }

  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="basics"] #campaignRadiusGuidance {
    grid-template-columns: 1fr !important;
  }
}

html[data-current-view="advertiser"] .phone-app-screen .app-shell:has([data-advertiser-section="create"].active) #platformCopyright {
  align-self: start !important;
  margin-top: 18px !important;
}

html[data-current-view="advertiser"] .phone-app-screen .app-shell:has(#advertiserDashboard:not(.hidden)):has([data-advertiser-section="create"].active) #platformCopyright {
  align-self: start !important;
  margin-top: 18px !important;
}

/* RYDCAST creative setup: separate voice audition from generated advert preview. */
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] #createAiVoiceField {
  order: 1 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] #createVoiceAuditionPanel {
  order: 2 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] #createVoiceDeliveryField {
  order: 3 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] #createUploadField {
  order: 4 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] #createScriptField {
  order: 5 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] #createWebsiteField {
  order: 6 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-voice-audition {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px !important;
  border: 1px solid rgba(0, 201, 183, 0.24) !important;
  border-radius: 9px !important;
  background:
    linear-gradient(135deg, rgba(0, 201, 183, 0.08), rgba(7, 18, 30, 0.42)),
    rgba(7, 18, 30, 0.36) !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-voice-audition strong,
html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-voice-audition span {
  display: block !important;
  min-width: 0 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-voice-audition strong {
  color: var(--rc-text) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-voice-audition #voiceSampleStatus {
  margin-top: 3px !important;
  color: var(--rc-text-secondary) !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] #sampleVoiceBeforeCampaign {
  min-width: 172px !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 14px !important;
  border-radius: 9px !important;
  white-space: nowrap !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-audio-preview .script-audio-buttons {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.8fr) !important;
  gap: 12px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-audio-preview .script-audio-buttons button {
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] #previewAdvertAudioBeforeCampaign:not(:disabled) {
  border-color: rgba(0, 201, 183, 0.58) !important;
  color: var(--rc-brand) !important;
  background: rgba(0, 201, 183, 0.08) !important;
}

@media (max-width: 760px) {
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-voice-audition,
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] .campaign-audio-preview .script-audio-buttons {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="creative"] #sampleVoiceBeforeCampaign {
    width: 100% !important;
    min-width: 0 !important;
  }
}

.ridecast-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10050;
  max-width: min(420px, calc(100vw - 48px));
  padding: 14px 16px;
  border: 1px solid rgba(0, 201, 183, 0.4);
  border-radius: 10px;
  background: rgba(8, 16, 27, 0.96);
  color: var(--rc-text, #f5f7fa);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

@media (max-width: 700px) {
  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step] .campaign-step-actions .solid-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  html[data-current-view="advertiser"] #campaignPanel[data-create-active-step="review"] .campaign-review-readiness {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .product-heading {
    text-align: center;
  }

  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .advertiser-login-brand-row {
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .page-brand-lockup {
    justify-content: center;
    width: 100%;
  }

  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .rydcast-login-logo {
    justify-items: center;
    margin-right: auto;
    margin-left: auto;
  }

  html[data-current-view="advertiser"] .workspace:has(#advertiserOnboarding:not(.hidden)) .product-kicker {
    align-self: center;
    margin-right: auto;
    margin-left: auto;
  }
}
