/* VSnap advertiser center, Ads Manager editor and rate card. Scoped to .vsp-* classes. */
.vsp-app, .vsp-rates, .vsp-admin, .vsp-toasts {
  --vt-accent: #6d28d9;
  --vt-accent-2: #db2777;
  --vt-accent-soft: #f3efff;
  --vt-ink: #0f172a;
  --vt-text: #334155;
  --vt-muted: #64748b;
  --vt-line: #e2e8f0;
  --vt-soft: #f8fafc;
  --vt-card: #ffffff;
  --vt-good: #047857;
  --vt-good-bg: #ecfdf5;
  --vt-bad: #b91c1c;
  --vt-bad-bg: #fef2f2;
  --vt-warn: #92400e;
  --vt-warn-bg: #fffbeb;
  --vt-info: #1d4ed8;
  --vt-info-bg: #eff6ff;
  --vt-radius: 14px;
  --vt-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -14px rgba(15, 23, 42, .22);
}
.vsp-app [hidden], .vsp-admin [hidden], .vsp-rates [hidden], .vsp-toasts [hidden] { display: none !important; }
.vsp-app { max-width: 1200px; margin: 0 auto; color: var(--vt-text); font-size: 15px; line-height: 1.5; }
.vsp-app *, .vsp-app *::before, .vsp-app *::after { box-sizing: border-box; }
.vsp-app label { line-height: inherit; vertical-align: baseline; }
.vsp-app a { color: var(--vt-accent); }
.vsp-app h2, .vsp-app h3 { color: var(--vt-ink); }
.vsp-boot, .vsp-loading { display: flex; align-items: center; gap: 10px; padding: 28px; color: var(--vt-muted); justify-content: center; }
.vsp-spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--vt-accent-soft); border-top-color: var(--vt-accent); animation: vsp-spin .8s linear infinite; }
@keyframes vsp-spin { to { transform: rotate(360deg); } }
.vsp-i { display: inline-flex; flex: none; }
.vsp-muted { color: var(--vt-muted); }
.vsp-small { font-size: 13px; }
.vsp-strong { font-weight: 700; color: var(--vt-ink) !important; text-decoration: none; }
.vsp-strong:hover { text-decoration: underline; }
.vsp-lead { font-size: 16px; max-width: 760px; }
.vsp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons (reset theme button styles inside the app) */
.vsp-app .vsp-btn, .vsp-admin .vsp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--vt-line); background: var(--vt-card); color: var(--vt-ink); font: inherit; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color .15s ease, background .15s ease, filter .15s ease; box-shadow: none; text-transform: none; letter-spacing: 0; }
.vsp-app .vsp-btn:hover, .vsp-app .vsp-btn:focus { border-color: var(--vt-accent); color: var(--vt-accent); background: var(--vt-card); }
.vsp-app .vsp-btn--primary, .vsp-admin .vsp-btn--primary { background: linear-gradient(135deg, var(--vt-accent), var(--vt-accent-2)); border-color: transparent; color: #fff; }
.vsp-app .vsp-btn--primary:hover, .vsp-app .vsp-btn--primary:focus { color: #fff; filter: brightness(1.07); background: linear-gradient(135deg, var(--vt-accent), var(--vt-accent-2)); }
.vsp-app .vsp-btn--ghost { background: transparent; border-color: transparent; color: var(--vt-accent); }
.vsp-app .vsp-btn--ghost:hover, .vsp-app .vsp-btn--ghost:focus { background: var(--vt-accent-soft); border-color: transparent; }
.vsp-app .vsp-btn--danger { color: var(--vt-bad); }
.vsp-app .vsp-btn--danger:hover, .vsp-app .vsp-btn--danger:focus { border-color: var(--vt-bad); color: var(--vt-bad); }
.vsp-app .vsp-btn--sm { min-height: 32px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.vsp-app .vsp-btn[disabled] { opacity: .6; cursor: progress; }
.vsp-app button:focus-visible, .vsp-app a:focus-visible, .vsp-app input:focus-visible, .vsp-app select:focus-visible, .vsp-app textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--vt-accent) 40%, transparent); outline-offset: 2px; }

/* Top bar */
.vsp-top { display: flex; align-items: center; gap: 16px; padding: 10px 14px; margin-bottom: 16px; background: var(--vt-card); border: 1px solid var(--vt-line); border-radius: var(--vt-radius); box-shadow: var(--vt-shadow); }
.vsp-top__brand { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.vsp-top__brand strong { color: var(--vt-ink); font-size: 16px; }
.vsp-top__brand span { color: var(--vt-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.vsp-nav { display: flex; gap: 4px; flex: 1; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.vsp-nav::-webkit-scrollbar { display: none; }
.vsp-app .vsp-nav__item { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 10px; color: var(--vt-text); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.vsp-app .vsp-nav__item:hover { background: var(--vt-soft); color: var(--vt-ink); }
.vsp-app .vsp-nav__item.is-active { background: var(--vt-accent-soft); color: var(--vt-accent); }
.vsp-app .vsp-top__out { display: inline-flex; align-items: center; gap: 6px; color: var(--vt-muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.vsp-app .vsp-top__out:hover { color: var(--vt-bad); }

/* Layout */
.vsp-main { display: flex; flex-direction: column; gap: 16px; }
.vsp-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vsp-stack > p, .vsp-stack > .vsp-chips, .vsp-stack > .vsp-note { margin: 0; }
.vsp-stack > .vsp-back { margin-bottom: -6px; }
.vsp-card { background: var(--vt-card); border: 1px solid var(--vt-line); border-radius: var(--vt-radius); padding: 18px; box-shadow: var(--vt-shadow); min-width: 0; }
.vsp-narrow { max-width: 520px; margin: 24px auto; }
.vsp-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vsp-titlebar > .vsp-pill { margin-right: auto; }
.vsp-app .vsp-h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; outline: none; }
.vsp-app .vsp-h3 { margin: 0 0 12px; font-size: 17px; font-weight: 800; line-height: 1.3; }
.vsp-titlebar__actions, .vsp-actionsrow { display: flex; flex-wrap: wrap; gap: 8px; }
.vsp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vsp-grid2--tight { gap: 20px; align-items: start; }
.vsp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vsp-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.vsp-row > .vsp-field { flex: 1 1 180px; }
.vsp-row--grow > input { flex: 1 1 260px; }
.vsp-scroll { overflow-x: auto; }

/* Notes */
.vsp-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid; margin: 0 0 4px; }
.vsp-note p { margin: 0 0 6px; }
.vsp-note p:last-child { margin: 0; }
.vsp-note--info { background: var(--vt-info-bg); border-color: #bfdbfe; color: #1e3a8a; }
.vsp-note--warn { background: var(--vt-warn-bg); border-color: #fde68a; color: var(--vt-warn); }
.vsp-note--bad { background: var(--vt-bad-bg); border-color: #fecaca; color: var(--vt-bad); }
.vsp-note .vsp-i { margin-top: 2px; }
.vsp-note .vsp-btn { margin-top: 6px; }

/* KPI tiles */
.vsp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vsp-kpi { background: var(--vt-card); border: 1px solid var(--vt-line); border-radius: var(--vt-radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vsp-kpi__label { font-size: 13px; color: var(--vt-muted); }
.vsp-kpi__value { font-size: 26px; font-weight: 800; color: var(--vt-ink); line-height: 1.2; }
.vsp-kpi__sub { font-size: 12.5px; color: var(--vt-muted); }

/* Status pills (always icon + label) */
.vsp-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; vertical-align: middle; }
.vsp-pill--active { background: var(--vt-good-bg); color: var(--vt-good); border-color: #a7f3d0; }
.vsp-pill--scheduled { background: var(--vt-info-bg); color: var(--vt-info); border-color: #bfdbfe; }
.vsp-pill--pending { background: var(--vt-warn-bg); color: var(--vt-warn); border-color: #fde68a; }
.vsp-pill--rejected { background: var(--vt-bad-bg); color: var(--vt-bad); border-color: #fecaca; }
.vsp-pill--paused { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.vsp-pill--completed { background: #f1f5f9; color: #334155; border-color: #e2e8f0; }
.vsp-pill--draft { background: #fff; color: #475569; border-color: #cbd5e1; border-style: dashed; }
.vsp-pill--archived { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }

/* Tables */
.vsp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vsp-table th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--vt-muted); padding: 8px 10px; border-bottom: 1px solid var(--vt-line); white-space: nowrap; }
.vsp-table td { padding: 10px; border-bottom: 1px solid var(--vt-line); vertical-align: middle; }
.vsp-table tr:last-child td { border-bottom: 0; }
.vsp-table .num, .vsp-admin .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vsp-table--tight td { padding: 7px 8px; }
.vsp-actions { text-align: right; white-space: nowrap; }
.vsp-meter { display: block; height: 4px; border-radius: 2px; background: var(--vt-accent-soft); margin-top: 4px; overflow: hidden; }
.vsp-meter > span { display: block; height: 100%; border-radius: 2px; background: var(--vt-accent); }
.vsp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.vsp-app .vsp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--vt-line); background: var(--vt-card); color: var(--vt-text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.vsp-app .vsp-chip:hover { border-color: var(--vt-accent); color: var(--vt-accent); background: var(--vt-card); }
.vsp-app .vsp-chip.is-on { background: var(--vt-ink); color: #fff; border-color: var(--vt-ink); }
.vsp-chip__n { font-size: 12px; opacity: .75; }
.vsp-history { list-style: none; margin: 0; padding: 0; }
.vsp-history li { padding: 8px 0; border-bottom: 1px solid var(--vt-line); }
.vsp-history li:last-child { border-bottom: 0; }
.vsp-dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
.vsp-dl dt { color: var(--vt-muted); }
.vsp-dl dd { margin: 0; color: var(--vt-ink); word-break: break-word; }
.vsp-dl--stack { grid-template-columns: 1fr; gap: 2px; }
.vsp-dl--stack dd { margin-bottom: 8px; }

/* Charts: one measure per chart, hairline grid, thin bars with a rounded data-end */
.vsp-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vsp-charts > .vsp-tableview { grid-column: 1 / -1; }
.vsp-chart { margin: 0; min-width: 0; }
.vsp-chart__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 14px; color: var(--vt-muted); }
.vsp-chart__cap strong { color: var(--vt-ink); font-size: 14px; }
.vsp-chart__plot { position: relative; }
.vsp-chart__plot svg { display: block; overflow: visible; }
.vsp-bar { fill: var(--vt-accent); }
.vsp-grid { stroke: #eef2f7; stroke-width: 1; }
.vsp-base { stroke: #cbd5e1; stroke-width: 1; }
.vsp-ax { fill: var(--vt-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.vsp-hit { fill: transparent; cursor: default; outline: none; }
.vsp-hit.is-on, .vsp-hit:focus { fill: rgba(109, 40, 217, .07); }
.vsp-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--vt-ink); color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; display: flex; flex-direction: column; min-width: 112px; box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .5); }
.vsp-tip strong { font-size: 14px; }
.vsp-tip span { opacity: .8; }
.vsp-tableview summary { cursor: pointer; color: var(--vt-accent); font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.vsp-tableview .vsp-scroll { max-height: 320px; overflow: auto; margin-top: 8px; }

/* Forms */
.vsp-form { display: flex; flex-direction: column; gap: 12px; }
.vsp-field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 12px; }
.vsp-form .vsp-field { margin: 0; }
.vsp-label { font-weight: 700; color: var(--vt-ink); font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.vsp-app .vsp-input { width: 100%; min-height: 42px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 15px; color: var(--vt-ink); background: #fff; box-shadow: none; }
.vsp-app textarea.vsp-input { min-height: 0; resize: vertical; }
.vsp-app select.vsp-input, .vsp-app select.vsp-input:disabled { -webkit-appearance: none; appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px; cursor: pointer; line-height: 1.3; }
.vsp-app select.vsp-input:disabled { background-color: var(--vt-soft); color: var(--vt-muted); cursor: not-allowed; opacity: .75; }
.vsp-app .vsp-input:focus { border-color: var(--vt-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vt-accent) 18%, transparent); outline: 0; }
.vsp-app .vsp-input--sm { max-width: 110px; }
.vsp-app .vsp-input--money { max-width: 220px; }
.vsp-app .vsp-input--auto { width: auto; }
.vsp-app .vsp-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.vsp-hint { margin: 0; font-size: 13px; color: var(--vt-muted); }
.vsp-err { margin: 0; font-size: 13px; color: var(--vt-bad); font-weight: 600; }
.vsp-err:empty { display: none; }
.vsp-field.is-bad .vsp-input { border-color: var(--vt-bad); }
.vsp-field.is-bad .vsp-places, .vsp-field.is-bad .vsp-sizes { outline: 2px solid #fecaca; outline-offset: 4px; border-radius: 10px; }
.vsp-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.vsp-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--vt-accent); }
.vsp-count { font-weight: 400; color: var(--vt-muted); font-size: 12px; }
.vsp-file { display: none !important; }
.vsp-up { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vsp-up__bar { display: none; width: 160px; height: 6px; border-radius: 3px; background: var(--vt-accent-soft); overflow: hidden; }
.vsp-up__bar.is-on { display: block; }
.vsp-up__bar > span { display: block; height: 100%; width: 0; background: var(--vt-accent); transition: width .2s ease; }
.vsp-turnstile { min-height: 0; }

/* Choice cards, segments, toggles */
.vsp-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.vsp-choice { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 40px; border: 1px solid var(--vt-line); border-radius: 12px; cursor: pointer; background: var(--vt-card); transition: border-color .15s ease, background .15s ease; }
.vsp-choice input { position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; accent-color: var(--vt-accent); margin: 0; }
.vsp-choice:hover { border-color: #c4b5fd; }
.vsp-choice:has(input:checked) { border-color: var(--vt-accent); background: var(--vt-accent-soft); }
.vsp-choice__t { font-weight: 800; color: var(--vt-ink); }
.vsp-choice__d { font-size: 13px; color: var(--vt-muted); }
.vsp-segment { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.vsp-segment__item { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--vt-line); border-radius: 10px; cursor: pointer; font-size: 14px; background: var(--vt-card); }
.vsp-segment__item input { accent-color: var(--vt-accent); margin: 0; }
.vsp-segment__item:has(input:checked) { border-color: var(--vt-accent); background: var(--vt-accent-soft); color: var(--vt-ink); font-weight: 600; }
.vsp-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.vsp-toggles--wrap { margin-top: 10px; }
.vsp-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--vt-line); border-radius: 10px; cursor: pointer; background: var(--vt-card); font-size: 14px; }
.vsp-toggle input { accent-color: var(--vt-accent); margin: 0; width: 16px; height: 16px; }
.vsp-toggle:has(input:checked) { border-color: var(--vt-accent); background: var(--vt-accent-soft); }

/* Placements */
.vsp-places { display: flex; flex-direction: column; gap: 8px; }
.vsp-place { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--vt-line); border-radius: 12px; cursor: pointer; background: var(--vt-card); }
.vsp-place input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--vt-accent); }
.vsp-place:has(input:checked) { border-color: var(--vt-accent); background: var(--vt-accent-soft); }
.vsp-place__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vsp-place__main strong { color: var(--vt-ink); }
.vsp-place__price { font-weight: 800; color: var(--vt-ink); white-space: nowrap; font-size: 14px; }

/* Creatives */
.vsp-sizes { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.vsp-size { display: flex; align-items: center; gap: 6px; font-size: 13.5px; padding: 6px 10px; border-radius: 8px; background: var(--vt-warn-bg); color: var(--vt-warn); flex-wrap: wrap; }
.vsp-size.is-ok { background: var(--vt-good-bg); color: var(--vt-good); }
.vsp-thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.vsp-thumb { margin: 0; border: 1px solid var(--vt-line); border-radius: 10px; padding: 8px; background: var(--vt-soft); max-width: 100%; }
.vsp-thumb img { display: block; max-width: 100%; max-height: 160px; height: auto; margin: 0 auto; }
.vsp-thumb figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--vt-muted); margin-top: 6px; }
.vsp-iconpick { width: 64px; height: 64px; border-radius: 14px; border: 1px dashed #cbd5e1; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--vt-soft); flex: none; }
.vsp-iconpick img { width: 100%; height: 100%; object-fit: cover; }
.vsp-iconpick__empty { font-size: 12px; color: var(--vt-muted); }
.vsp-poster { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--vt-line); }
.vsp-video-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: 12px; background: #0f172a; color: #94a3b8; font-size: 14px; }
.vsp-prev__video { display: block; width: 100%; max-width: 520px; border-radius: 12px; background: #000; aspect-ratio: 16 / 9; }
.vsp-livepreview { margin-top: 5px; }
.vsp-previews { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.vsp-prev { margin: 0; max-width: 100%; }
.vsp-prev img { display: block; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--vt-line); }
.vsp-prev figcaption { font-size: 12.5px; color: var(--vt-muted); margin-top: 4px; }

/* Native preview (mirrors the live ad) */
.vsp-native { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--vt-line); border-radius: 14px; background: #fff; box-shadow: var(--vt-shadow); width: 100%; max-width: 640px; }
.vsp-native__icon { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--vt-soft); display: block; }
.vsp-native__icon--empty { border: 1px dashed #cbd5e1; }
.vsp-native__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vsp-native__meta { font-size: 12.5px; color: var(--vt-muted); }
.vsp-native__meta strong { color: var(--vt-muted); }
.vsp-native__title { font-weight: 800; color: var(--vt-ink); font-size: 15.5px; overflow-wrap: anywhere; }
.vsp-native__body { font-size: 13.5px; color: var(--vt-text); overflow-wrap: anywhere; }
.vsp-native__cta { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--vt-accent); color: #fff; font-weight: 700; font-size: 13.5px; white-space: nowrap; }

/* Audience */
.vsp-geo { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.vsp-chosen { display: flex; flex-wrap: wrap; gap: 6px; }
.vsp-chosen:empty { display: none; }
.vsp-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--vt-accent-soft); color: var(--vt-ink); font-size: 13px; font-weight: 600; }
.vsp-app .vsp-tag__x { border: 0; background: transparent; color: var(--vt-muted); font-size: 16px; line-height: 1; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; padding: 0; }
.vsp-app .vsp-tag__x:hover { background: #fff; color: var(--vt-bad); }
.vsp-cc { max-height: 220px; overflow: auto; border: 1px solid var(--vt-line); border-radius: 10px; padding: 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px; }
.vsp-app .vsp-cc__item { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--vt-text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.vsp-app .vsp-cc__item:hover { background: var(--vt-soft); color: var(--vt-ink); }
.vsp-app .vsp-cc__item.is-on { background: var(--vt-accent-soft); color: var(--vt-ink); font-weight: 700; }

/* Flat-rate calendar */
.vsp-cal__cap { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--vt-ink); }
.vsp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 520px; }
.vsp-cal__dow { font-size: 11.5px; color: var(--vt-muted); text-align: center; padding-bottom: 2px; }
.vsp-app .vsp-cal__d { height: 36px; border-radius: 8px; border: 1px solid var(--vt-line); background: #fff; color: var(--vt-ink); font: inherit; font-size: 12.5px; cursor: pointer; padding: 0; white-space: nowrap; overflow: hidden; }
.vsp-app .vsp-cal__d:hover { border-color: var(--vt-accent); }
.vsp-app .vsp-cal__d--some { background: var(--vt-warn-bg); border-color: #fde68a; }
.vsp-app .vsp-cal__d--full { background: #f1f5f9; color: #94a3b8; text-decoration: line-through; cursor: not-allowed; }
.vsp-app .vsp-cal__d--past { background: transparent; color: #cbd5e1; border-color: transparent; cursor: default; }
.vsp-app .vsp-cal__d.is-sel { background: var(--vt-accent-soft); border-color: var(--vt-accent); }
.vsp-app .vsp-cal__d.is-edge { background: var(--vt-accent); color: #fff; border-color: var(--vt-accent); font-weight: 700; }
.vsp-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: var(--vt-muted); margin: 8px 0 0; }
.vsp-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--vt-line); vertical-align: middle; }
.vsp-key--some { background: var(--vt-warn-bg); border-color: #fde68a; }
.vsp-key--full { background: #f1f5f9; }
.vsp-key--sel { background: var(--vt-accent); border-color: var(--vt-accent); }

/* Editor */
.vsp-editor__wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; margin-top: 16px; }
.vsp-editor { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vsp-editor__side { position: sticky; top: 90px; }
.admin-bar .vsp-editor__side { top: 120px; }
.vsp-app .vsp-sec__title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--vt-ink); }
.vsp-sec__n { width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--vt-accent), var(--vt-accent-2)); flex: none; }
.vsp-sec__body { margin-top: 12px; }
.vsp-summary .vsp-total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--vt-line); margin-top: 4px; }
.vsp-summary .vsp-total strong { font-size: 22px; color: var(--vt-ink); }
.vsp-est { margin: 0 0 12px; padding: 0 0 0 18px; color: var(--vt-text); font-size: 14px; }
.vsp-side-actions { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 8px; }
.vsp-side-actions .vsp-btn { width: 100%; }
.vsp-empty { text-align: center; padding: 34px 18px; }
.vsp-empty p { max-width: 520px; margin: 0 auto 14px; }

/* Auth */
.vsp-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 28px; align-items: start; padding: 10px 0 20px; }
.vsp-auth__pitch h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 10px; line-height: 1.15; }
.vsp-auth__pitch > p { font-size: 17px; }
.vsp-ticks { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.vsp-ticks li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--vt-ink); }
.vsp-ticks .vsp-i { width: 26px; height: 26px; border-radius: 8px; background: var(--vt-good-bg); color: var(--vt-good); align-items: center; justify-content: center; }
.vsp-auth__card .vsp-btn--primary { width: 100%; min-height: 46px; font-size: 15px; }

/* Toasts */
.vsp-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100000; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.vsp-toast { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #0f172a; color: #fff; font-size: 14px; box-shadow: 0 10px 30px -10px rgba(15, 23, 42, .5); transition: opacity .3s ease, transform .3s ease; }
.vsp-toast--error { background: #991b1b; }
.vsp-toast.is-out { opacity: 0; transform: translateY(8px); }

/* Public rate card (on /advertise/) */
.vsp-rates { max-width: 1100px; margin: 0 auto; overflow-x: auto; }
.vsp-rates__table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--vt-line); border-radius: 14px; overflow: hidden; font-size: 15px; }
.vsp-rates__table th { background: var(--vt-soft); color: var(--vt-ink); text-align: left; padding: 12px 14px; font-size: 13.5px; }
.vsp-rates__table td { padding: 12px 14px; border-top: 1px solid var(--vt-line); vertical-align: top; color: var(--vt-text); }
.vsp-rates__table td:nth-child(n+3), .vsp-rates__table th:nth-child(n+3) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vsp-rates__table small { color: var(--vt-muted); }
.vsp-rates__note { color: var(--vt-muted); font-size: 14px; text-align: center; margin: 12px 0 0; }
/* Theme table resets (Hello Elementor & co. add cell borders, zebra stripes and hover tints to every table). */
.vsp-app table, .vsp-rates table { margin: 0; }
.vsp-app .vsp-table th, .vsp-app .vsp-table td, .vsp-rates__table th, .vsp-rates__table td { border-left: 0; border-right: 0; line-height: 1.45; }
.vsp-app .vsp-table th, .vsp-app .vsp-table td { border-top: 0; }
.vsp-rates__table thead th { border-top: 0; border-bottom: 0; }
.vsp-app .vsp-table tbody > tr:nth-child(odd) > td, .vsp-app .vsp-table tbody > tr:nth-child(odd) > th, .vsp-app .vsp-table tbody tr:hover > td, .vsp-app .vsp-table tbody tr:hover > th,
.vsp-rates__table tbody > tr:nth-child(odd) > td, .vsp-rates__table tbody > tr:nth-child(odd) > th, .vsp-rates__table tbody tr:hover > td, .vsp-rates__table tbody tr:hover > th { background-color: transparent; }
.vsp-rates__table td { border-bottom: 0; }
.vsp-cta .elementor-button { border-radius: 12px; font-weight: 800; }
.vsp-cta--ghost .elementor-button { background: rgba(255, 255, 255, .12) !important; border: 1px solid rgba(255, 255, 255, .55) !important; color: #fff !important; }
.vsp-cta--primary .elementor-button { background: #fff !important; color: #5b21b6 !important; }
.vsnap-section .vsp-cta--primary .elementor-button { background: linear-gradient(135deg, #6d28d9, #db2777) !important; color: #fff !important; }

/* WP admin (Ads Manager screens) */
.vsp-admin .vsp-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0; }
.vsp-admin .vsp-table { background: #fff; }
.vsp-admin .vsp-head h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.vsp-admin .vsp-buttons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 12px 0; }
.vsp-admin .vsp-buttons form { margin: 0; }
.vsp-admin .vsp-review { border-left: 4px solid #dba617; }
.vsp-admin .vsp-inline { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.vsp-admin .vsp-bad { color: #b32d2e; }
.vsp-admin .vsp-notes .notice { margin: 10px 0; }
.vsp-admin .vsp-prev { background: #f6f7f7; padding: 10px; border-radius: 8px; }
.vsp-admin .vsp-native-prev { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid #dcdcde; border-radius: 12px; padding: 10px 12px; max-width: 560px; }
.vsp-admin .vsp-native-prev img { border-radius: 10px; }
.vsp-admin .vsp-native-prev div { display: flex; flex-direction: column; }
.vsp-admin .vsp-native-prev em { font-style: normal; background: #6d28d9; color: #fff; padding: 6px 12px; border-radius: 8px; font-weight: 700; }
.vsp-admin .vsp-placements td { vertical-align: top; }
.vsp-admin .vsp-placements td:first-child { min-width: 190px; max-width: 260px; }
.vsp-admin .vsp-placements td small { display: block; margin-top: 4px; line-height: 1.45; color: #646970; }
.vsp-admin .vsp-placements input.regular-text { width: 100%; max-width: 300px; min-width: 180px; }
.vsp-admin .vsp-placements label { white-space: nowrap; }
.vsp-app--admin { max-width: 1280px; margin: 10px 0 0; }

/* Responsive — the app adapts to its own width (Elementor box, block theme, WP admin), not just the screen */
.vsp-app { container: vsp / inline-size; }
@container vsp (max-width: 1080px) {
  .vsp-editor__wrap { grid-template-columns: 1fr; }
  .vsp-editor__side { position: static; }
}
@container vsp (max-width: 880px) {
  .vsp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vsp-grid3, .vsp-grid2, .vsp-charts, .vsp-auth { grid-template-columns: 1fr; }
  .vsp-top { flex-wrap: wrap; }
  .vsp-nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .vsp-top__out { margin-left: auto; }
}
@container vsp (max-width: 620px) {
  .vsp-card { padding: 14px; }
  .vsp-kpi__value { font-size: 22px; }
  .vsp-nav__item span { display: none; }
  .vsp-nav__item.is-active span { display: inline; }
  .vsp-choices { grid-template-columns: 1fr; }
  .vsp-place { grid-template-columns: auto minmax(0, 1fr); }
  .vsp-place__price { grid-column: 2; }
  .vsp-dl { grid-template-columns: 1fr; gap: 0; }
  .vsp-dl dd { margin-bottom: 8px; }
  .vsp-native { grid-template-columns: auto minmax(0, 1fr); }
  .vsp-native__cta { grid-column: 1 / -1; justify-content: center; }
  /* Campaign list becomes one card per campaign. */
  .vsp-table--campaigns thead { display: none; }
  .vsp-table--campaigns, .vsp-table--campaigns tbody { display: block; }
  .vsp-table--campaigns tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; padding: 14px 0; border-bottom: 1px solid var(--vt-line); }
  .vsp-table--campaigns tr:last-child { border-bottom: 0; }
  .vsp-table--campaigns td { display: block; padding: 0; border: 0; min-width: 0; }
  .vsp-table--campaigns td:nth-child(1), .vsp-table--campaigns td[colspan] { grid-column: 1 / -1; }
  .vsp-table--campaigns td:nth-child(2) { grid-column: 1 / 3; }
  .vsp-table--campaigns td:nth-child(3) { grid-column: 3 / -1; align-self: center; text-align: right; color: var(--vt-muted); }
  .vsp-table--campaigns td.num { text-align: left; font-size: 15px; font-weight: 700; color: var(--vt-ink); }
  .vsp-table--campaigns td.num::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 600; color: var(--vt-muted); }
  .vsp-table--campaigns td.vsp-actions { grid-column: 1 / -1; text-align: left; display: flex; gap: 6px; }
  .vsp-cal__d { font-size: 11px; }
  .vsp-cal__m { display: none; }
}
@container vsp (max-width: 420px) {
  .vsp-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .vsp-kpi { padding: 10px 12px; }
}
@media (max-width: 560px) {
  .vsp-app { font-size: 14.5px; }
  .vsp-admin .vsp-native-prev { grid-template-columns: auto minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .vsp-app *, .vsp-toast { transition: none !important; animation: none !important; }
}
