:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  color: #263449;
  background: #f3f5f8;
  --ink: #263449;
  --muted: #68778b;
  --line: #dce2eb;
  --accent: #c73343;
  --blue: #365f91;
  --display: 'Avenir Next', 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, monospace;
}
.parser-heading-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.parser-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.parser-state::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.parser-state.running {
  color: #3d806c;
}
.parser-state.waiting {
  color: #9b6d32;
}
.parser-state.error {
  color: var(--accent);
}
.parser-queue,
.parser-panel {
  padding: 24px;
}
.parser-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.parser-section-heading h2,
.parser-panel h2,
.parser-import h2 {
  font-size: 14px;
  margin: 0;
}
.parser-section-heading > span {
  font-size: 10px;
  color: var(--muted);
}
.parser-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 26px 0 24px;
}
.parser-metrics > div {
  padding: 0 24px;
  border-left: 1px solid var(--line);
}
.parser-metrics > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.parser-metrics dt {
  font-size: 11px;
  color: var(--muted);
}
.parser-metrics dd {
  margin: 10px 0 0;
  font: 500 25px/1.2 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
#parser-progress {
  width: 100%;
  height: 5px;
  appearance: none;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #edf1f6;
}
#parser-progress::-webkit-progress-bar {
  background: #edf1f6;
}
#parser-progress::-webkit-progress-value {
  background: var(--blue);
}
#parser-progress::-moz-progress-bar {
  background: var(--blue);
}
.parser-progress-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
}
.parser-caption {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin: 12px 0 0;
}
.parser-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
.parser-rate {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 20px 0;
}
.parser-rate strong {
  font: 500 27px/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.parser-rate span,
.parser-rate small {
  color: var(--muted);
  font-size: 11px;
}
.parser-rate small {
  margin-left: auto;
  font-size: 10px;
}
.parser-rows {
  margin: 14px 0 0;
}
.parser-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f6;
  font-size: 12px;
}
.parser-rows > div:last-child {
  border-bottom: 0;
}
.parser-rows dt {
  color: var(--muted);
}
.parser-rows dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.parser-import {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
}
.parser-import p {
  margin: 7px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.parser-import-state {
  font-size: 11px;
  color: var(--blue);
}
.parser-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.parser-notice {
  background: #fff8ed;
  border: 1px solid #e8dcc7;
  color: #806239;
  padding: 12px 16px;
  font-size: 12px;
  border-radius: 7px;
}
.parser-errors {
  margin-top: 18px;
  padding: 16px 24px;
}
.parser-errors summary {
  font-size: 12px;
  cursor: pointer;
}
.parser-errors ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.parser-errors li {
  display: flex;
  gap: 16px;
  padding: 6px 0;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.parser-errors time {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .parser-columns {
    grid-template-columns: 1fr;
  }
  .parser-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 22px 0;
  }
  .parser-metrics > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}
@media (max-width: 600px) {
  .parser-heading-actions {
    flex-wrap: wrap;
    gap: 12px;
  }
  .parser-section-heading,
  .parser-import {
    align-items: start;
    flex-direction: column;
  }
  .parser-queue,
  .parser-panel {
    padding: 18px;
  }
  .parser-metrics > div {
    padding-inline: 16px;
  }
  .parser-metrics dd {
    font-size: 21px;
  }
  .parser-progress-caption {
    flex-direction: column;
    gap: 5px;
  }
}
.video-library-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 24px;
}
#video-filter {
  width: min(100%, 640px);
}
#video-library-status {
  color: var(--muted);
  font-size: 12px;
}
.video-library-list {
  display: grid;
  gap: 8px;
}
.video-library-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px;
  min-width: 0;
}
.video-library-item img {
  width: 112px;
  aspect-ratio: 16/9;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 4px;
}
.video-library-item strong {
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-library-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.video-detail {
  padding: 24px;
  min-width: 0;
}
.video-detail h2 {
  font-size: 18px;
  line-height: 1.5;
}
.video-detail video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #171c24;
  border-radius: 6px;
}
.video-detail p {
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.video-player-controls,
.video-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.video-action {
  font-size: 12px;
}
.video-original a {
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  .video-library-layout {
    grid-template-columns: 1fr;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid var(--blue);
}
button {
  cursor: pointer;
  border: 1px solid #cdd5e0;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 10px 15px;
  font-weight: 550;
  transition:
    background 0.12s,
    border-color 0.12s;
}
button:hover:enabled {
  background: #eef2f7;
  border-color: #acbacd;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button.primary {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}
button.primary:hover:enabled {
  background: #ad2837;
  border-color: #ad2837;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.8px;
  margin-bottom: 11px;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
p {
  line-height: 1.6;
}
.admin-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #e9edf3;
  border-right: 1px solid #d6dde8;
  padding: 31px 18px 24px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.logo {
  display: block;
  padding-left: 13px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -1.2px;
  font-weight: 800;
}
.logo span {
  color: var(--accent);
}
.logo:hover {
  text-decoration: none;
}
.rail-caption {
  display: block;
  padding-left: 14px;
  margin-top: 8px;
  font: 10px/1.4 var(--mono);
  letter-spacing: 1.6px;
  color: var(--muted);
}
.admin-nav {
  display: flex;
  flex-direction: column;
  margin-top: 37px;
  gap: 5px;
}
.nav-label {
  color: #7b899b;
  font-size: 10px;
  letter-spacing: 1.2px;
  padding: 0 13px;
  margin: 24px 0 9px;
}
.nav-label:first-child {
  margin-top: 0;
}
.admin-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 12px 11px;
  color: #53637a;
  font-weight: 500;
}
.admin-nav button:hover {
  background: #dfe6ef;
  border-color: transparent;
}
.admin-nav button[aria-current='page'] {
  background: white;
  border-color: #d6dfe9;
  color: #273f60;
  box-shadow: 0 2px 4px #26344905;
}
.nav-symbol {
  display: inline-grid;
  place-items: center;
  width: 20px;
  font-size: 20px;
  line-height: 1;
  color: #7a8da7;
}
.admin-nav [aria-current='page'] .nav-symbol {
  color: var(--accent);
}
.nav-count {
  background: #e9eef5;
  color: #536881;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
  font-size: 11px;
}
.rail-bottom {
  margin-top: auto;
  display: grid;
  gap: 15px;
  padding: 24px 13px 0;
}
.rail-bottom .build-status {
  font-size: 11px;
  color: var(--muted);
}
.rail-bottom a {
  display: flex;
  justify-content: space-between;
  color: #445c7b;
  font-size: 13px;
}
.admin-main {
  margin-left: 224px;
}
.topbar {
  min-height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 38px;
}
.breadcrumb {
  font-size: 12px;
  color: #8a97a8;
}
.breadcrumb span {
  padding: 0 13px;
  color: #b6c0ce;
}
.breadcrumb strong {
  color: #52647d;
  font-weight: 500;
}
.topbar form {
  margin: 0;
}
.topbar button {
  font-size: 12px;
}
.admin-content {
  max-width: 1610px;
  margin: auto;
  padding: 38px 42px 115px;
}
.view-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 30px;
}
.view-heading p {
  max-width: 710px;
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}
.eyebrow {
  display: block;
  font: 10px/1.5 var(--mono);
  letter-spacing: 1.1px;
  color: #7a8ba0;
  margin-bottom: 10px;
}
.text-link {
  flex-shrink: 0;
  font-size: 12px;
}
.surface {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ad-master {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.ad-master strong {
  font-size: 14px;
}
.ad-master p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.master-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.master-toggle input,
.placement-card-top input,
.campaign-active input {
  appearance: none;
  width: 35px;
  height: 20px;
  margin: 0;
  border-radius: 20px;
  background: #c5ceda;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.master-toggle input::after,
.placement-card-top input::after,
.campaign-active input::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #253b5233;
  transition: transform 0.14s;
}
.master-toggle input:checked,
.placement-card-top input:checked,
.campaign-active input:checked {
  background: #3d806b;
}
.master-toggle input:checked::after,
.placement-card-top input:checked::after,
.campaign-active input:checked::after {
  transform: translateX(15px);
}
.settings-block {
  margin-bottom: 34px;
}
.block-heading {
  margin-bottom: 18px;
}
.block-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.placement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.placement-card {
  min-width: 0;
  display: block;
  border: 1px solid #d7dfe9;
  border-radius: 9px;
  background: white;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.12s;
}
.placement-card:hover {
  border-color: #9aafc7;
}
.placement-card.is-on {
  border-color: #aac1d8;
}
.placement-card:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.placement-card-top {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.device-tag {
  font: 10px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6c7e96;
  margin-right: auto;
}
.switch-caption {
  font-size: 11px;
  color: var(--muted);
  min-width: 16px;
}
.placement-card-top input {
  width: 30px;
  height: 18px;
}
.placement-card-top input::after {
  width: 12px;
  height: 12px;
}
.placement-card-top input:checked::after {
  transform: translateX(12px);
}
.placement-card-body {
  padding: 17px 15px 16px;
}
.placement-card-body strong {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  display: block;
}
.placement-card-body p {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 15px;
  min-height: 36px;
}
.placement-card-body code {
  display: block;
  color: #7f8da0;
  font: 9px/1.5 var(--mono);
  overflow-wrap: anywhere;
}
.placement-mini {
  min-height: 246px;
  padding: 16px 17px;
  background: #edf1f6;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.mock-window {
  width: 100%;
  max-width: 270px;
  min-height: 169px;
  flex-shrink: 0;
  border: 1px solid #b8c4d4;
  border-radius: 6px;
  background: #24282f;
  padding: 0 11px 10px;
  box-shadow: 0 5px 12px #1936510e;
  overflow: hidden;
}
.mock-browser {
  height: 14px;
  display: flex;
  gap: 3px;
  align-items: center;
  margin: 0 -11px 9px;
  padding-left: 8px;
  background: #d4dce7;
}
.mock-browser i {
  width: 3px;
  height: 3px;
  border-radius: 100%;
  background: #9aaabd;
}
.mock-brand {
  color: #e5eaf2;
  font-size: 8px;
  font-weight: 700;
  height: 14px;
}
.mock-nav {
  width: 73%;
  height: 3px;
  background: #4b5360;
  margin: 3px 0 10px;
}
.mock-layout {
  display: grid;
  grid-template-columns: 1fr 30%;
  gap: 9px;
}
.mock-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 5px;
  align-content: start;
}
.mock-video {
  height: 22px;
  background: #424956;
  border-radius: 2px;
  position: relative;
}
.mock-video::after {
  content: '';
  display: block;
  position: absolute;
  height: 2px;
  bottom: 4px;
  left: 4px;
  width: 55%;
  background: #687486;
}
.mock-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-ad {
  display: grid;
  place-items: center;
  background: #c84252;
  border: 1px solid #f6a0aa;
  border-radius: 2px;
  font: 7px/1.2 var(--mono);
  color: #fff;
  white-space: nowrap;
  padding: 3px;
}
.desktop-large .mock-ad {
  height: 53px;
}
.desktop-small .mock-ad {
  height: 24px;
}
.mock-other-small {
  height: 18px;
  border: 1px dashed #626e7c;
  background: #343b47;
}
.mock-other-large {
  height: 48px;
  border: 1px dashed #626e7c;
  background: #343b47;
}
.mock-phone {
  max-width: 112px;
  min-height: 214px;
  padding: 0 7px 7px;
  border-width: 3px;
  border-radius: 13px;
  border-color: #536277;
}
.mock-phone .mock-browser {
  margin: 0 -7px 7px;
  height: 10px;
  justify-content: center;
  padding: 0;
}
.mock-phone .mock-browser i {
  display: none;
}
.mock-phone .mock-browser::after {
  content: '';
  width: 24px;
  height: 3px;
  border-radius: 4px;
  background: #8190a4;
}
.mock-phone .mock-nav {
  margin-bottom: 6px;
}
.mock-phone .mock-layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-phone .mock-feed {
  gap: 5px;
}
.mock-phone .mock-video {
  height: 26px;
}
.mock-phone .mock-ad {
  height: 27px;
  font-size: 7px;
}
.mobile-feed .mock-phone .mock-ad {
  height: 55px;
}
.mock-feed-tail {
  height: 25px;
  background: #424956;
}
.is-on .mock-ad {
  background: #c84252;
}
.placement-card:not(.is-on) .mock-ad {
  background: #7d8c9f;
  border-color: #a2afc0;
}
.pop-intro {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  overflow: hidden;
  margin-bottom: 18px;
}
.pop-intro .placement-mini {
  height: 170px;
  padding-top: 25px;
}
.pop-intro > div:last-child {
  padding: 20px 27px;
}
.pop-intro p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.pop-intro small {
  font-size: 11px;
  color: #7c8ba0;
}
.pop-preview .mock-window {
  opacity: 0.65;
}
.mock-popup {
  position: absolute;
  width: 117px;
  height: 89px;
  right: 24px;
  top: 56px;
  background: white;
  border: 1px solid #ee9ca6;
  border-radius: 5px;
  box-shadow: 0 7px 15px #172d4d2b;
}
.mock-popup-bar {
  padding: 7px 9px;
  color: #a92a3a;
  background: #fbe8ec;
  font-size: 9px;
  border-radius: 4px 4px 0 0;
}
.mock-popup-body {
  display: grid;
  place-items: center;
  height: 54px;
  font-size: 10px;
  color: #546780;
}
.pop-sequence {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}
.pop-step {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  cursor: pointer;
}
.pop-step.is-on {
  border-color: #b9cce0;
}
.pop-number {
  grid-column: 1/-1;
  font-family: var(--display);
  font-size: 24px;
  color: #a7b3c4;
}
.pop-step.is-on .pop-number {
  color: var(--blue);
}
.pop-step strong {
  font-size: 10px;
  font-weight: 500;
}
.pop-step input {
  margin: 0;
  accent-color: var(--blue);
  width: 12px;
  height: 12px;
}
.pop-step code {
  grid-column: 1/-1;
  font: 8px/1.5 var(--mono);
  color: #8e9caf;
}
.ads-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}
.ads-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 12px 0;
  font-size: 12px;
}
.ads-field > span {
  font-weight: 600;
}
.ads-field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.ads-field input:not([type='checkbox']),
.ads-field select,
.ads-field textarea,
.stats-filters input,
.stats-filters select {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #cdd6e2;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}
.ads-field input:hover,
.ads-field textarea:hover,
.ads-field select:hover {
  border-color: #9db0c9;
}
.ads-field textarea {
  resize: vertical;
  font: 12px/1.7 var(--mono);
}
.pop-limits {
  max-width: 730px;
  margin-top: 18px;
}
.advanced-settings {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 19px 0;
  margin: 24px 0;
}
.advanced-settings summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.advanced-settings > p {
  margin: 15px 0;
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
}
.text-button,
.quiet-button {
  background: transparent;
  border: 0;
  padding: 5px 0;
  color: var(--blue);
  font-size: 12px;
}
.text-button:hover:enabled,
.quiet-button:hover:enabled {
  background: transparent;
  text-decoration: underline;
}
.ad-savebar {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 224px;
  padding: 16px 42px;
  border-top: 1px solid var(--line);
  background: #fffffffa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 4;
}
.ad-savebar > div {
  display: grid;
  gap: 4px;
}
.ad-savebar strong {
  font-size: 12px;
}
.ad-savebar span {
  color: var(--muted);
  font-size: 11px;
}
.ad-savebar.has-changes {
  background: #fff9f1;
  border-top-color: #e6d5bf;
}
.campaign-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.campaign-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.campaign-list-heading h2 {
  font-size: 13px;
  margin: 0;
}
.campaign-list-item {
  display: flex;
  gap: 12px;
  text-align: left;
  width: 100%;
  margin-bottom: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  background: white;
  align-items: start;
}
.campaign-list-item.selected {
  border-color: #7e9fbe;
  box-shadow: inset 3px 0 0 #517a9f;
  background: #f7fbff;
}
.campaign-item-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.campaign-item-copy strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.campaign-item-copy > span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.campaign-item-copy small {
  color: #8b98aa;
  font-size: 10px;
  line-height: 1.6;
  font-weight: 400;
}
.campaign-format-icon {
  font-size: 23px;
  color: #8297b0;
  padding-top: 1px;
}
.state-pill {
  white-space: nowrap;
  font-size: 9px;
  border-radius: 4px;
  padding: 4px 6px;
  font-weight: 600;
}
.state-pill.active {
  background: #e7f3ed;
  color: #3a745e;
}
.state-pill.paused {
  background: #edf0f5;
  color: #7d8899;
}
.campaign-editor {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  min-width: 0;
}
.campaign-editor-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.campaign-editor-heading h2 {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.campaign-active {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.campaign-editor .settings-block {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  margin-bottom: 22px;
}
.campaign-editor .block-heading h2 {
  font-size: 15px;
}
.upload-area {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  text-align: center;
  border: 1px dashed #b2c1d3;
  border-radius: 7px;
  padding: 22px 16px;
  background: #f8fafc;
  cursor: pointer;
}
.upload-area strong {
  font-size: 13px;
  color: #42668e;
}
.upload-area > span {
  font-size: 10px;
  color: var(--muted);
}
.upload-area input {
  font-size: 11px;
  max-width: 100%;
  margin-top: 5px;
}
.upload-status {
  display: block;
  margin-top: 7px;
  color: var(--blue);
  font-size: 11px;
}
.creative-preview {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-top: 22px;
  overflow: hidden;
}
.preview-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 12px 15px;
  background: #f4f6f9;
}
.preview-title strong {
  font-size: 11px;
}
.preview-title span {
  font-size: 10px;
  color: var(--muted);
}
.creative-preview-image {
  min-height: 215px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background: repeating-conic-gradient(#f6f8fb 0% 25%, #fff 0% 50%) 50% / 20px 20px;
}
.creative-preview-image img {
  display: block;
  max-width: 100%;
  width: 300px;
  height: 250px;
  object-fit: contain;
}
.creative-preview-image.short-banner img {
  height: 100px;
}
.creative-preview-image.short-banner {
  min-height: 150px;
}
.creative-preview-image strong {
  font-size: 12px;
}
.creative-preview-image small {
  font-size: 11px;
  color: var(--muted);
  max-width: 340px;
  overflow-wrap: anywhere;
}
.preview-symbol {
  font-size: 30px;
  color: #8fa2bc;
}
.campaign-placement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.compact-card .placement-mini {
  min-height: 246px;
  padding: 16px 14px;
}
.compact-card .mock-window {
  max-width: 260px;
}
.compact-card .mock-phone {
  max-width: 112px;
}
.compact-card .placement-card-top {
  padding: 10px 12px;
}
.compact-card .placement-card-body {
  padding: 12px;
}
.compact-card .placement-card-body strong {
  font-size: 11px;
}
.compact-card .placement-card-body p {
  font-size: 10px;
  min-height: 0;
  margin-bottom: 7px;
}
.compact-card .placement-card-body code {
  font-size: 8px;
}
.pop-choice-tools,
.pop-campaign-choices {
  grid-column: 1/-1;
}
.pop-campaign-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pop-choice {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px;
  font-size: 12px;
  cursor: pointer;
}
.pop-choice input {
  accent-color: var(--blue);
}
.device-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px;
  margin: 12px 0;
  font-size: 12px;
}
.device-choices label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.device-choices input {
  accent-color: var(--blue);
}
.campaign-id {
  font: 10px/1.5 var(--mono);
  color: #8896a9;
  overflow-wrap: anywhere;
}
.danger-button {
  color: #b13442;
  border-color: #e8cdd3;
  font-size: 11px;
  margin-top: 3px;
}
.empty-panel {
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #cbd5e2;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.stats-filters {
  display: flex;
  gap: 14px;
  padding: 20px;
  flex-wrap: wrap;
  align-items: end;
}
.stats-filters label {
  display: grid;
  gap: 8px;
  font-size: 11px;
}
.stats-filters label:nth-child(3) {
  flex: 1;
  min-width: 160px;
}
.stats-filters input,
.stats-filters select {
  padding: 9px 10px;
}
.stats-filters > span {
  font-size: 10px;
  color: var(--muted);
  align-self: center;
}
.stats-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 22px 0;
}
.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 21px;
  display: grid;
  gap: 13px;
}
.stat-card > span {
  font-size: 12px;
  color: #5b708c;
}
.stat-card strong {
  font: 500 30px/1.1 var(--display);
  letter-spacing: -1px;
}
.stat-card small {
  color: #8b99ac;
  font-size: 10px;
}
.table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 23px;
  gap: 16px;
}
.table-heading h2 {
  font-size: 14px;
  margin: 0;
}
.table-heading span {
  font-size: 10px;
  color: var(--muted);
}
.ads-table-wrap {
  overflow: auto;
}
#ads-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
#ads-report-table th {
  background: #f7f9fc;
  color: #78879b;
  font-size: 10px;
  font-weight: 500;
}
#ads-report-table th,
#ads-report-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #e8edf3;
  white-space: nowrap;
}
#ads-report-table tr:last-child td {
  border-bottom: 0;
}
#ads-report-table td.table-empty {
  white-space: normal;
  text-align: center;
  padding: 50px 20px;
}
.table-empty p {
  color: var(--muted);
  font-size: 11px;
  margin: 10px 0 0;
}
.stats-explainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}
.stats-explainer p {
  font-size: 11px;
  color: var(--muted);
}
.stats-explainer strong {
  display: block;
  color: #4a5c74;
  margin-bottom: 7px;
  font-weight: 600;
}
.notice {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  background: #e8eef6;
  color: #4e6686;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 12px;
  line-height: 1.6;
}
.notice strong {
  min-width: 190px;
}
.scripts-surface {
  padding: 26px;
}
.scripts-surface > p {
  font-size: 12px;
}
.slot-field {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.slot-field:last-child {
  border: 0;
}
.slot-field > span {
  font-size: 13px;
  font-weight: 600;
}
.slot-field > small {
  font-size: 11px;
  color: var(--muted);
}
.slot-field textarea,
#head-editor {
  width: 100%;
  padding: 17px;
  border: 1px solid #29374b;
  background: #223046;
  color: #dfebfa;
  border-radius: 6px;
  resize: vertical;
  font: 12px/1.8 var(--mono);
}
.slot-field textarea {
  min-height: 120px;
}
.editor-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.editor-actions > span {
  font-size: 11px;
  color: var(--muted);
}
.page-editor-workspace {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  min-height: 660px;
}
.page-list-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 22px 15px;
}
.list-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.list-top h2 {
  font-size: 14px;
  margin: 0;
}
.list-top span {
  color: var(--muted);
  font-size: 11px;
}
.page-list-panel > input {
  border: 1px solid #cdd6e2;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 14px;
  min-width: 0;
  width: 100%;
  font-size: 12px;
}
.page-list {
  flex: 1;
  overflow: auto;
  max-height: 590px;
}
.page-item {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 4px;
  text-align: left;
  background: transparent;
  padding: 11px 8px;
}
.page-item span,
.page-item code {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.page-item span {
  font-size: 12px;
  font-weight: 400;
}
.page-item code {
  font: 9px/1.5 var(--mono);
  color: #8c9aad;
  margin-top: 5px;
}
.page-item.selected,
.page-item.selected:hover {
  background: #eaf1f8;
}
.list-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 13px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.list-pagination span {
  font-size: 10px;
  color: var(--muted);
}
.list-pagination button {
  padding: 5px 10px;
}
.editor-panel {
  padding: 26px;
  min-width: 0;
}
.editor-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 25px;
}
.editor-heading h2 {
  font-size: 19px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.editor-heading code {
  font: 10px/1.5 var(--mono);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.editor-heading > a {
  font-size: 10px;
  white-space: nowrap;
}
.editor-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.custom-badge {
  border: 1px solid var(--line);
  background: #f3f6fa;
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 10px;
}
.custom-badge.custom {
  color: #ab3141;
  background: #fff0f2;
  border-color: #e9cbd2;
}
#save-status {
  font-size: 10px;
  color: var(--muted);
}
.editor-toolbar button {
  margin-left: auto;
  font-size: 10px;
  padding: 5px 8px;
}
.code-label {
  display: block;
  font-size: 12px;
  margin-bottom: 10px;
}
#head-editor {
  min-height: 360px;
  white-space: pre;
}
.editor-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  margin: 10px 0 22px;
}
.editor-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin-top: 20px;
}
.editor-empty {
  text-align: center;
  padding: 100px 20px;
  color: var(--muted);
}
.error-message {
  position: sticky;
  top: 10px;
  z-index: 6;
  background: #fff0f2;
  color: #a32c3a;
  border: 1px solid #ebbbc4;
  border-radius: 7px;
  padding: 14px 18px;
  font-size: 13px;
  margin-bottom: 20px;
}
.loading-state {
  padding: 35px 0;
  color: var(--muted);
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1600px) {
  .placement-mini {
    min-height: 257px;
  }
  .mock-window {
    min-height: 200px;
  }
  .mock-phone {
    min-height: 225px;
    max-width: 112px;
  }
  .mock-video {
    height: 29px;
  }
  .desktop-large .mock-ad {
    height: 64px;
  }
  .desktop-small .mock-ad {
    height: 27px;
  }
}
@media (max-width: 1250px) {
  .admin-content {
    padding: 30px 28px 110px;
  }
  .placement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pop-sequence {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .campaign-workspace {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 17px;
  }
  .campaign-editor {
    padding: 20px;
  }
  .campaign-list-item {
    flex-wrap: wrap;
  }
  .campaign-item-copy {
    flex-basis: calc(100% - 50px);
  }
  .campaign-list-item > .state-pill {
    margin-left: 34px;
  }
  .campaign-editor .ads-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 1000px) {
  .admin-rail {
    width: 194px;
    padding-inline: 13px;
  }
  .admin-main {
    margin-left: 194px;
  }
  .ad-savebar {
    left: 194px;
    padding-inline: 28px;
  }
  .view-heading {
    align-items: start;
  }
  .view-heading h1 {
    font-size: 26px;
  }
  .campaign-workspace {
    grid-template-columns: 1fr;
  }
  #ads-campaign-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .campaign-editor .ads-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .campaign-list-item {
    margin: 0;
  }
  .stats-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-explainer {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .page-editor-workspace {
    grid-template-columns: 1fr;
  }
  .page-list-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .page-list {
    max-height: 180px;
  }
  .pop-intro {
    grid-template-columns: 190px 1fr;
  }
  .notice {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 700px) {
  .admin-rail {
    position: static;
    width: 100%;
    border-right: 0;
    padding: 16px;
  }
  .logo {
    padding-left: 0;
    font-size: 23px;
  }
  .rail-caption,
  .nav-label,
  .rail-bottom,
  .nav-symbol {
    display: none;
  }
  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 15px;
  }
  .admin-nav button {
    font-size: 11px;
    gap: 7px;
    padding: 9px 10px;
  }
  .admin-main {
    margin: 0;
  }
  .topbar {
    padding: 13px 17px;
    min-height: 60px;
  }
  .topbar button {
    font-size: 10px;
    padding: 8px 9px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb span {
    padding: 0 5px;
  }
  .admin-content {
    padding: 25px 17px 110px;
  }
  h1,
  .view-heading h1 {
    font-size: 25px;
  }
  .view-heading {
    flex-wrap: wrap;
    margin-bottom: 23px;
    gap: 14px;
  }
  .view-heading p {
    font-size: 12px;
  }
  .ad-master {
    flex-direction: column;
    align-items: start;
    padding: 18px;
  }
  .placement-grid {
    gap: 10px;
  }
  .placement-card-top {
    padding: 10px;
  }
  .placement-mini {
    padding: 16px 10px;
  }
  .mock-ad {
    font-size: 7px;
  }
  .placement-card-body {
    padding: 13px 10px;
  }
  .placement-card-body strong {
    font-size: 12px;
  }
  .placement-card-body p {
    min-height: 54px;
    font-size: 10px;
  }
  .placement-card-body code {
    font-size: 8px;
  }
  .pop-intro {
    grid-template-columns: 1fr;
  }
  .pop-intro .placement-mini {
    display: none;
  }
  .pop-intro > div:last-child {
    padding: 20px;
  }
  .pop-step {
    padding: 9px 7px;
  }
  .pop-step strong {
    font-size: 8px;
  }
  .pop-step input {
    width: 10px;
    height: 10px;
  }
  .pop-step code {
    font-size: 7px;
  }
  .pop-sequence {
    gap: 6px;
  }
  .ads-form-grid,
  .campaign-editor .ads-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ad-savebar {
    left: 0;
    padding: 14px 17px;
    gap: 10px;
  }
  .ad-savebar strong {
    font-size: 11px;
  }
  .ad-savebar span {
    font-size: 10px;
  }
  .ad-savebar button {
    font-size: 12px;
    padding: 10px 12px;
    white-space: nowrap;
  }
  .next-step {
    align-items: start;
    flex-direction: column;
  }
  .campaign-editor {
    padding: 18px;
  }
  .campaign-editor-heading {
    flex-wrap: wrap;
  }
  .campaign-list-item {
    padding: 12px;
  }
  .campaign-placement-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .compact-card .placement-card-body p {
    display: block;
  }
  .compact-card .placement-mini {
    padding-inline: 8px;
  }
  .compact-card .device-tag {
    font-size: 8px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-card strong {
    font-size: 27px;
  }
  .stats-filters {
    padding: 17px;
    gap: 12px;
  }
  .stats-filters > span {
    display: block;
    width: 100%;
  }
  .stats-filters label {
    max-width: 100%;
  }
  .stats-filters label:first-child,
  .stats-filters label:nth-child(2) {
    width: calc(50% - 6px);
  }
  .stats-filters label:nth-child(3) {
    flex-basis: 100%;
  }
  .scripts-surface {
    padding: 18px;
  }
  .editor-panel {
    padding: 18px;
  }
  .editor-heading {
    flex-direction: column;
  }
  .preview-title {
    flex-direction: column;
    align-items: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::after {
    transition: none !important;
  }
}

.ad-savebar > div {
  margin-right: auto;
}
#ads-discard {
  font-size: 12px;
}
@media (max-width: 700px) {
  .ad-savebar {
    flex-wrap: wrap;
  }
  .ad-savebar > div {
    flex-basis: 100%;
  }
  #ads-discard {
    margin-left: auto;
  }
  .admin-content {
    padding-bottom: 150px;
  }
}

@media (min-width: 1350px) {
  .creative-body.image-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 12px 24px;
    align-items: start;
  }
  .creative-body.image-layout > .upload-area,
  .creative-body.image-layout > .ads-field,
  .creative-body.image-layout > .upload-status {
    grid-column: 1;
    margin-block: 0;
  }
  .creative-body.image-layout > .creative-preview {
    grid-column: 2;
    grid-row: 1 / span 5;
    margin-top: 0;
  }
  .creative-body.image-layout .preview-title {
    flex-direction: column;
    align-items: start;
  }
}

.script-explainer {
  font-size: 12px;
  line-height: 1.6;
  padding: 12px 0;
}
.creative-preview-image > .placement-mini {
  width: 260px;
  height: 150px;
  padding: 18px 20px 0;
  border-radius: 6px;
}
.creative-preview-image .mock-popup {
  right: 30px;
}

.topbar .url-export-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.url-export-form select {
  width: auto;
  min-width: 145px;
  font-size: 12px;
  padding: 9px 30px 9px 10px;
}
