/* Campaign Builder (.cbld scope) — self-serve ads, SS-3 / FE-5.
 * Layout matches the Claude Design "See it on the real site" template:
 *   full-width config card (creative → brand kit → duration → total bar)
 *   then a split row (start + placements card | live-preview column).
 * Light values first; dark overrides under body.dark (theme lands via JS).
 * Tokens per handoff: primary #0544FD, radii 8/12/16, Poppins display. */

.cbld {
  --cb-card: #fff;
  --cb-sunken: #f4f5f8;
  --cb-border: #e7e8ee;
  --cb-ink: #101014;
  --cb-ink2: #656565;
  --cb-blue: #0544fd;
  --cb-blue-soft: rgba(5, 68, 253, 0.08);
  --cb-green: #1aa04b;
  --cb-amber: #b45309;
  --cb-amber-bg: #fef3c7;
  display: block;
  text-align: left;
}
body.dark .cbld {
  --cb-card: #27272a;
  --cb-sunken: #1f2023;
  --cb-border: #3a3a3f;
  --cb-ink: #f3f4f8;
  --cb-ink2: rgba(243, 244, 248, 0.62);
  --cb-blue: #5b86ff;
  --cb-blue-soft: rgba(91, 134, 255, 0.14);
  --cb-amber: #fbbf24;
  --cb-amber-bg: rgba(180, 83, 9, 0.22);
}

.cbld-error { padding: 40px; text-align: center; color: var(--cb-ink2); }

/* ── dark span-leak reset ──────────────────────────────────────────────
   base.css ships `span { color:#666 }` and `.dark span { color:var(--white) }`
   (the latter at specificity 0,1,1). The config-card spans set their colour with
   bare single-class rules (0,1,0), so in dark mode the global leak wins and turns
   them white (field labels, tile labels, struck subtotal, duration, confirm-strip
   green, etc.). Re-assert each coloured span at .cbld-scoped (0,2,0)+ specificity —
   the same convention the .syr-* preview rules already rely on. Var-based, so light
   mode is unchanged. */
.cbld .cbld-dur,
.cbld .cbld-autonote-ic { color: var(--cb-blue); }
.cbld .cbld-upconfirm-ic,
.cbld .cbld-upconfirm-ok,
.cbld .cbld-co-check,
.cbld .cbld-co-ok { color: var(--cb-green); }
.cbld .cbld-upconfirm-tx,
.cbld .cbld-tb-was,
.cbld .cbld-selcount,
.cbld .cbld-f span,
.cbld .cbld-logodrop-t span,
.cbld .cbld-upslot-s,
.cbld .cbld-row-flight,
.cbld .cbld-row-price,
.cbld .cbld-row-price i,
.cbld .cbld-tick-lab { color: var(--cb-ink2); }
.cbld .cbld-tb-total,
.cbld .cbld-row-name { color: var(--cb-ink); }
.cbld .cbld-pill { color: var(--cb-amber); }
.cbld .cbld-tick.is-on .cbld-tick-lab { color: var(--cb-green); }

/* shared section header */
.cbld-sec-h {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: Poppins, Helvetica, Roboto, sans-serif;
  font-weight: 700; font-size: 12px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--cb-ink2); margin-bottom: 12px;
}
.cbld-dur { color: var(--cb-blue); font-size: 15px; text-transform: none; letter-spacing: 0; font-weight: 700; }

/* ══ full-width config card ══════════════════════════════════ */
.cbld-config {
  border: 1px solid var(--cb-border); border-radius: 16px; background: var(--cb-card);
  padding: 16px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(16,16,20,.08);
}

/* creative mode tabs */
.cbld-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.cbld-mode {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--cb-border); background: var(--cb-card); border-radius: 14px;
  padding: 16px 18px; text-align: left; cursor: pointer; color: var(--cb-ink);
  transition: border-color .13s ease, background .13s ease;
}
.cbld-mode:hover { border-color: #c4c8d1; }
body.dark .cbld-mode:hover { border-color: #52525b; }
.cbld-mode.is-active { border-color: var(--cb-blue); background: var(--cb-blue-soft); }
.cbld-mode-ic {
  flex: none; width: auto; height: auto; border-radius: 0;
  display: grid; place-items: center; color: var(--cb-ink2);
  background: none;
}
.cbld-mode-ic--pair { display: flex; gap: 9px; align-items: center; }
.cbld-mode-ic svg { width: 22px; height: 22px; }
.cbld-mode.is-active .cbld-mode-ic { color: var(--cb-blue); background: none; }
.cbld-mode-tx { display: flex; flex-direction: column; }
.cbld-mode-tx b { font-size: 14px; font-weight: 600; }
.cbld-mode-tx small { font-size: 11.5px; color: var(--cb-ink2); }

/* auto-generate note (blue info strip) */
.cbld-autonote {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--cb-ink2);
  background: var(--cb-blue-soft); border: 1px solid rgba(5,68,253,0.14);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 18px;
}
body.dark .cbld-autonote { border-color: rgba(91,134,255,0.26); }
.cbld-autonote b { color: var(--cb-ink); }
.cbld-autonote-ic { flex: none; color: var(--cb-blue); display: inline-grid; place-items: center; }
.cbld-autonote-ic svg { width: 18px; height: 18px; }

/* upload slots (banners mode) — Top banner + Popup groups side by side,
   confirm strip + note span the full width beneath them */
.cbld-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin: 2px 0 6px; align-items: start; }
.cbld-uploads .cbld-upgroup { min-width: 0; }
.cbld-upconfirm, .cbld-upnote { grid-column: 1 / -1; }
.cbld-upgroup-h {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--cb-ink2);
}
.cbld-upgroup-h svg { color: var(--cb-blue); flex: none; }
.cbld-upgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cbld-upslot {
  border: 1px solid var(--cb-border); border-radius: 14px; background: var(--cb-sunken);
  min-height: 116px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; cursor: pointer; position: relative; overflow: hidden; text-align: center;
  transition: border-color .13s ease;
}
.cbld-upslot:hover { border-color: var(--cb-blue); }
.cbld-upslot-art {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .15s ease;
}
.cbld-upslot.has-file .cbld-upslot-art { opacity: .5; }
.cbld-upslot-ic { color: var(--cb-ink2); position: relative; display: inline-grid; place-items: center; }
.cbld-upslot.has-file .cbld-upslot-ic { display: none; }
.cbld-upslot-s { font-size: 12.5px; font-weight: 600; color: var(--cb-ink2); position: relative; }
.cbld-upconfirm {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--cb-ink2);
  background: rgba(26,160,75,0.07); border: 1px solid rgba(26,160,75,0.2);
  border-radius: 12px; padding: 12px 16px;
}
body.dark .cbld-upconfirm { background: rgba(26,160,75,0.12); border-color: rgba(26,160,75,0.28); }
.cbld-upconfirm-ic { flex: none; color: var(--cb-green); display: inline-grid; place-items: center; }
.cbld-upconfirm-tx b { color: var(--cb-ink); font-weight: 600; }
.cbld-upconfirm-ok { color: var(--cb-green); font-weight: 600; }
.cbld-upnote { font-size: 12px; color: var(--cb-ink2); }

/* brand kit: logo drop + fields */
.cbld-brand { display: grid; grid-template-columns: 232px 1fr; gap: 18px; margin-bottom: 22px; align-items: stretch; }
.cbld-logodrop {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 13px;
  text-align: left;
  border: 1.5px dashed var(--cb-border); border-radius: 14px; padding: 14px;
  cursor: pointer; transition: border-color .13s ease;
}
.cbld-logodrop:hover, .cbld-logodrop.is-over { border-color: var(--cb-blue); }
.cbld-logoimg {
  width: 52px; height: 52px; border-radius: 13px; object-fit: cover; flex: none;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.cbld-logodrop-t b { display: block; font-size: 14px; font-weight: 600; color: var(--cb-ink); }
.cbld-logodrop-t span { font-size: 11px; color: var(--cb-ink2); line-height: 1.45; display: block; margin-top: 2px; }

.cbld-fields { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.cbld-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cbld-frow--trio { grid-template-columns: 110px 1fr auto; align-items: end; }
.cbld-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cbld-f span {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--cb-ink2);
}
.cbld-f input {
  border: 1px solid #dddce5; background: var(--cb-card); color: var(--cb-ink);
  border-radius: 9px; padding: 10px 12px; font-size: 13.5px; width: 100%;
}
body.dark .cbld-f input { background: #1a1b1e; border-color: #3a3a3f; }
.cbld-f input:focus { outline: none; border-color: var(--cb-blue); }
.cbld-f.is-error input { border-color: #dc2626; }
.cbld-swatches { display: flex; gap: 8px; padding-bottom: 3px; }
.cbld-swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer;
  outline: 2px solid transparent; outline-offset: 2px;
}
.cbld-swatch.is-active { outline-color: var(--cb-blue); }

/* duration — custom filled track + white thumb w/ blue ring (handoff sya-range) */
.cbld-dursec { margin-bottom: 22px; }
.cbld-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 8px 0 0;
  border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(90deg,
    var(--cb-blue) 0%, var(--cb-blue) var(--fill, 30%),
    #e6e8ec var(--fill, 30%), #e6e8ec 100%);
}
body.dark .cbld-range {
  background: linear-gradient(90deg,
    var(--cb-blue) 0%, var(--cb-blue) var(--fill, 30%),
    #2f3236 var(--fill, 30%), #2f3236 100%);
}
.cbld-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid var(--cb-blue);
  box-shadow: 0 2px 8px rgba(5,68,253,0.4); cursor: grab; transition: transform .1s ease;
}
.cbld-range::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
.cbld-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--cb-blue);
  box-shadow: 0 2px 8px rgba(5,68,253,0.4); cursor: grab;
}
.cbld-range::-moz-range-track { background: transparent; }
.cbld-marks { display: flex; justify-content: space-between; gap: 6px; margin-top: 13px; }
.cbld-mark {
  flex: 1; border: 1px solid var(--cb-border); background: var(--cb-card); color: var(--cb-ink2);
  font-size: 12px; font-weight: 600; border-radius: 9px; padding: 8px 4px; cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.cbld-mark:hover { border-color: #c4c8d1; }
.cbld-mark.is-active { background: var(--cb-blue); border-color: var(--cb-blue); color: #fff; }

/* total bar */
.cbld-totalbar {
  display: grid; grid-template-columns: minmax(220px, 248px) 1fr auto; gap: 18px; align-items: center;
  border-top: 1px solid var(--cb-border); padding-top: 22px;
}
.cbld-tb-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--cb-ink2); }
.cbld-tb-row { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 3px; flex-wrap: wrap; }
.cbld-tb-total {
  font-family: Poppins, Helvetica, Roboto, sans-serif; font-size: 34px; font-weight: 700;
  color: var(--cb-ink); line-height: 1.05; letter-spacing: -0.02em;
}
.cbld-tb-disc { display: inline-flex; align-items: center; gap: 8px; }
.cbld-tb-was { font-size: 15px; color: var(--cb-ink2); text-decoration: line-through; }
.cbld-tb-badge {
  font-size: 12px; font-weight: 700; color: #fff; background: var(--cb-green);
  border-radius: 999px; padding: 3px 9px;
}
.cbld-tb-sub { font-size: 12.5px; color: var(--cb-ink2); }

/* discount ladder */
.cbld-ladder { padding: 0 4px; }
.cbld-ladder-bar {
  position: relative; height: 7px; border-radius: 999px; background: var(--cb-sunken);
  margin: 20px 0 8px;
}
.cbld-ladder-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px;
  background: linear-gradient(90deg, #0544fd, #4ac07a); width: 0; transition: width .25s ease;
}
.cbld-tick { position: absolute; top: 50%; transform: translate(-50%, -50%); z-index: 1; }
.cbld-tick-dot {
  display: block; width: 11px; height: 11px; border-radius: 50%;
  background: var(--cb-card); border: 2px solid var(--cb-border); transition: border-color .2s ease, background .2s ease;
}
.cbld-tick.is-on .cbld-tick-dot { background: var(--cb-green); border-color: var(--cb-green); }
.cbld-tick-lab {
  position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; color: var(--cb-ink2); white-space: nowrap;
}
.cbld-tick.is-on .cbld-tick-lab { color: var(--cb-green); }
.cbld-ladder-t { font-size: 12.5px; color: var(--cb-ink2); display: flex; align-items: center; gap: 5px; }
.cbld-ladder-t b { color: var(--cb-ink); }
.cbld-ladder-t.is-done { color: var(--cb-green); }
.cbld-ladder-t.is-done b { color: var(--cb-green); }
.cbld-ladder-t svg { color: var(--cb-green); }

/* launch */
.cbld-launch {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  height: 52px; padding: 0 26px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--cb-blue); color: #fff; font-size: 15.5px; font-weight: 700;
  font-family: Poppins, Helvetica, Roboto, sans-serif; transition: background .13s ease; white-space: nowrap;
}
.cbld-launch:hover { background: #0033ad; }
body.dark .cbld-launch:hover { background: #3a6bfd; }
.cbld-launch:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 820px) {
  .cbld-totalbar { grid-template-columns: 1fr; gap: 18px; }
  .cbld-launch { width: 100%; }
  /* keep the Button/Link/Accent trio from cramping — accent wraps full-width */
  .cbld-frow--trio { grid-template-columns: 120px 1fr; }
  .cbld-frow--trio .cbld-f:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .cbld-modes, .cbld-brand, .cbld-uploads { grid-template-columns: 1fr; }
  .cbld-frow, .cbld-frow--trio { grid-template-columns: 1fr; }
  .cbld-frow--trio .cbld-f:last-child { grid-column: auto; }
}

/* ══ split row: start + placements | preview ═════════════════ */
.cbld-split { display: grid; grid-template-columns: minmax(272px, 312px) 1fr; gap: 16px; align-items: stretch; }
.cbld-note { text-align: center; font-size: 13px; color: var(--cb-ink2); margin: 14px 0 0; }
.cbld-note b { color: var(--cb-ink); font-weight: 600; }
@media (max-width: 900px) { .cbld-split { grid-template-columns: 1fr; } }

.cbld-split-left {
  display: flex; flex-direction: column; gap: 0; min-width: 0;
  border: 1px solid var(--cb-border); border-radius: 16px; background: var(--cb-card); padding: 16px;
}
.cbld-divider { height: 1px; background: var(--cb-border); margin: 14px -16px; }
.cbld-card {
  border: 1px solid var(--cb-border); border-radius: 16px; background: var(--cb-card); padding: 18px;
}

/* start segment */
.cbld-start { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cbld-seg-wrap {
  display: inline-flex; background: var(--cb-sunken); border: 1px solid var(--cb-border);
  border-radius: 10px; padding: 3px;
}
.cbld-seg {
  border: none; background: transparent; color: var(--cb-ink2);
  font-size: 12.5px; font-weight: 600; border-radius: 8px; padding: 7px 15px; cursor: pointer;
}
.cbld-seg.is-active { background: var(--cb-card); color: var(--cb-ink); box-shadow: 0 1px 3px rgba(16,16,20,.08); }
body.dark .cbld-seg.is-active { background: #3a3a3f; box-shadow: none; }
.cbld-date {
  border: 1px solid var(--cb-border); background: var(--cb-sunken); color: var(--cb-ink);
  border-radius: 9px; padding: 8px 11px; font-size: 12.5px;
}

/* placement rows */
.cbld-selcount { font-size: 11.5px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--cb-ink2); }
.cbld-rows { display: flex; flex-direction: column; gap: 5px; }
.cbld-row {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--cb-border); border-radius: 10px;
  background: var(--cb-card); padding: 7px 9px; min-height: 46px; cursor: pointer;
  transition: border-color .13s ease, background .13s ease;
}
.cbld-row:hover { border-color: #c4c8d1; }
body.dark .cbld-row:hover { border-color: #52525b; }
.cbld-row.is-on { border-color: var(--cb-blue); background: var(--cb-blue-soft); }
.cbld-row--soon { opacity: .55; cursor: default; }
.cbld-row-check {
  flex: none; width: 18px; height: 18px; margin-top: 1px;
  border: 1.5px solid var(--cb-border); border-radius: 6px;
  display: grid; place-items: center; color: transparent; background: var(--cb-card);
}
.cbld-row.is-on .cbld-row-check { background: var(--cb-blue); border-color: var(--cb-blue); color: #fff; }
/* Hide the check glyph when off. `color:transparent` alone is overridden by the
   global `.dark span{color:#fff}` (base.css) which repaints the SVG stroke, so
   gate on visibility (immune to the color leak) instead. */
.cbld-row-check svg { visibility: hidden; }
.cbld-row.is-on .cbld-row-check svg { visibility: visible; }
.cbld-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cbld-row-name { font-size: 12.5px; line-height: 1.15; font-weight: 600; color: var(--cb-ink); }
.cbld-soon {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--cb-sunken); color: var(--cb-ink2);
  border-radius: 999px; padding: 2px 7px; margin-left: 6px;
}
.cbld-row-flight { font-size: 11px; color: var(--cb-ink2); display: flex; align-items: center; gap: 5px; }
.cbld-row-flight:empty { display: none; }
.cbld-row-hint { font-size: 11px; color: var(--cb-amber); }
.cbld-row-hint:empty { display: none; }
.cbld-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.cbld-row-price { font-size: 12.5px; font-weight: 500; color: var(--cb-ink2); white-space: nowrap; font-family: 'Roboto Mono', Menlo, Consolas, monospace; }
.cbld-row-price i { font-style: normal; font-size: 11px; font-weight: 500; color: var(--cb-ink2); }
.cbld-pill {
  font-size: 10px; font-weight: 700; white-space: nowrap;
  background: var(--cb-amber-bg); color: var(--cb-amber);
  border-radius: 999px; padding: 3px 8px; cursor: help;
}

/* auto-renew toggle */
.cbld-renew {
  display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--cb-ink2);
  background: var(--cb-sunken); border-radius: 11px; padding: 11px 13px; margin-top: 12px; cursor: pointer;
}
.cbld-renew input { accent-color: var(--cb-blue); margin-top: 1px; }
.cbld-renew b { color: var(--cb-ink); }

/* ══ preview column ══════════════════════════════════════════ */
.cbld-preview-col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cbld-viewbar { display: flex; justify-content: space-between; align-items: center; }
.cbld-viewseg {
  display: inline-flex; background: var(--cb-sunken); border: 1px solid var(--cb-border);
  border-radius: 10px; padding: 3px;
}
.cbld-view {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: transparent; color: var(--cb-ink2);
  font-size: 12.5px; font-weight: 600; border-radius: 8px; padding: 7px 14px; cursor: pointer;
}
.cbld-view.is-active { background: var(--cb-card); color: var(--cb-ink); box-shadow: 0 1px 3px rgba(16,16,20,.08); }
body.dark .cbld-view.is-active { background: #3a3a3f; box-shadow: none; }
.cbld-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--cb-ink2); }
.cbld-live i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cb-green); animation: cbldPulse 1.6s infinite;
}
@keyframes cbldPulse { 50% { opacity: .35; } }

/* ══════════════════════════════════════════════════════════════════════
   LIVE PREVIEW — a faithful, scaled 1:1 recreation of the handoff
   SiteRender (Ethereum profile page) with the advertiser slotted into all
   six ad placements. Ported from _ads_selfserve_handoff siterender.css +
   ad-preview-stage/seeyourad frame CSS, scoped under .cbld. The site uses
   inline SVG for every icon (the "material-icons" ligature font isn't loaded
   on this page) and colored-initial avatars (no avatar image assets).
   ══════════════════════════════════════════════════════════════════════ */

/* the stage host: updatePreview() builds the whole .sya-stage frame here */
.cbld-stage { position: relative; min-width: 0; }

/* ---- browser / phone frame (sya-) ---- */
/* Desktop/Mobile + theme toggle bar for the interactive operator preview. */
.cbld .sya-viewbar { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.cbld .sya-vbtn { font: 600 12.5px/1 inherit; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--cb-border); background: var(--cb-card); color: var(--cb-ink2); cursor: pointer; }
.cbld .sya-vbtn:hover { border-color: var(--cb-blue); }
.cbld .sya-vbtn.on { border-color: var(--cb-blue); color: var(--cb-blue); background: var(--cb-blue-soft); }
.cbld .sya-vbtn--theme { margin-left: auto; }
.cbld .sya-stage { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--cb-border); box-shadow: 0 8px 30px rgba(16,16,20,.06); background: #f1f2f4; }
body.dark .cbld .sya-stage { box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.cbld .sya-stage[data-theme="dark"] { border-color: #2a2c30; }
.cbld .sya-bar { display: flex; align-items: center; gap: 12px; padding: 0 14px; height: 44px; background: #f1f2f4; border-bottom: 1px solid #e6e7ea; }
.cbld .sya-stage[data-theme="dark"] .sya-bar { background: #202225; border-color: #2f3236; }
.cbld .sya-dots { display: flex; gap: 6px; }
.cbld .sya-dots i { width: 10px; height: 10px; border-radius: 999px; background: #cdcfd4; }
.cbld .sya-stage[data-theme="dark"] .sya-dots i { background: #3f4247; }
.cbld .sya-url { flex: 1; display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid #e6e7ea; font-size: 12px; color: #656565; max-width: 520px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cbld .sya-stage[data-theme="dark"] .sya-url { background: #151618; border-color: #2f3236; color: #aeb1b6; }
.cbld .sya-url svg { width: 13px; height: 13px; color: #1aa04b; flex: none; }
.cbld .sya-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #656565; margin-left: auto; flex: none; }
.cbld .sya-stage[data-theme="dark"] .sya-live { color: #8f939b; }
.cbld .sya-live-dot { width: 8px; height: 8px; border-radius: 999px; background: #1aa04b; animation: sya-pulse 2s infinite; }
@keyframes sya-pulse { 0% { box-shadow: 0 0 0 0 rgba(26,160,75,.5); } 70% { box-shadow: 0 0 0 6px rgba(26,160,75,0); } 100% { box-shadow: 0 0 0 0 rgba(26,160,75,0); } }
/* fixed-height window: the canvas itself does NOT scroll — the fixed-height
   .syr shell fills it exactly and ONLY .syr-main scrolls (like the template),
   so the sidebar + left-rail ad stay pinned and don't jitter on scroll. */
.cbld .sya-canvas { height: 660px; overflow: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.cbld .sya-canvas::-webkit-scrollbar { width: 0; height: 0; display: none; }
.cbld .sya-zoom { position: relative; height: 100%; }
.cbld .sya-search-wrap { position: absolute; top: 100px; right: 20px; z-index: 200; }

/* ---- mobile phone frame ---- */
.cbld .sya-stage-mobile .sya-mobile-wrap { display: flex; justify-content: center; padding: 24px 16px; background: #eef0f4; }
.cbld .sya-stage-mobile[data-theme="dark"] .sya-mobile-wrap { background: #0f1012; }
.cbld .sya-phone { width: 320px; max-width: 100%; background: #0b0b0d; border-radius: 46px; padding: 10px; box-shadow: 0 20px 50px rgba(16,16,20,0.3), inset 0 0 0 1.5px rgba(255,255,255,0.10); position: relative; }
.cbld .sya-phone-notch { display: none; }
.cbld .sya-phone-screen { background: #fff; border-radius: 38px; overflow: hidden; position: relative; height: 640px; }
.cbld .sya-stage-mobile[data-theme="dark"] .sya-phone-screen { background: #1b1c1e; }
.cbld .sya-stage-mobile .sya-canvas { height: 640px; border-radius: 38px; }
.cbld .sya-stage-mobile .sya-zoom { transform-origin: top left; }
.cbld .sya-stage-mobile .syr-popup { right: 0; bottom: 0; }

/* ════════════════ SiteRender (syr-) — ported verbatim, re-scoped ═════════ */
.cbld .syr {
  --syr-track: #eef0f4; --syr-txt: #111; --syr-sub: #8a8c91; --syr-bg: #f7f8fa;
  --syr-card: #fff; --syr-border: #ebebeb; --syr-muted: #8a8c91;
  --ink-900: #101014; --gauge-track: #ebebeb; --text-strong: #101014;
  --text-secondary: #656565; --text-muted: #8a8c91; --surface-card: #fff;
  --surface-subtle: #eef0f4; --border-default: #ebebeb;
  --font-display: Poppins, Roboto, Arial, sans-serif;
  --font-body: Roboto, Arial, sans-serif;
  --font-mono: "Roboto Mono", Menlo, Consolas, monospace;
  font-family: var(--font-body); background: var(--syr-bg);
  height: 100%; display: flex; flex-direction: column; overflow: hidden;
}
.cbld .sya-stage[data-theme="dark"] .syr {
  --syr-track: #2e3038; --syr-txt: #fff; --syr-sub: #6b6e76; --syr-bg: #27272a;
  --syr-card: #232426; --syr-border: #2e3038; --syr-muted: #6b6e76;
  --ink-900: #fff; --gauge-track: #3f3f46; --text-secondary: #a9a7b2;
  --text-muted: #878593; --text-strong: #fff; --surface-card: #232426;
  --surface-subtle: #303030; --border-default: #2e3038;
}

/* base.css ships a global `span { color: #666 }` that overrides the INHERITED
   colour on mock spans that don't set their own — restore the intended colour
   for the ones that rely on inheritance (strip text, nav labels, "Try it"
   hint, search placeholder, in-table Smart-Followers count). Anything that
   already declares its own `.syr-*` colour (scores, names, badges) keeps it. */
.cbld .syr-strip-msg,
.cbld .syr-strip-x { color: #fff; }
.cbld .syr-search-hint > span,
.cbld .syr-search-ph { color: inherit; }
.cbld .syr-nav-item > span:not(.syr-new) { color: inherit; }
.cbld .syr-sfcount > span:last-child { color: var(--syr-txt); }

/* ---- strip ---- */
.cbld .syr-strip { display: flex; align-items: center; justify-content: center; height: 34px; flex: none; color: #fff; position: relative; z-index: 30; padding: 0 14px; }
.cbld .syr-strip-msg { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbld .syr-strip-msg b { font-weight: 700; }
.cbld .syr-strip-r { position: absolute; right: 14px; display: flex; align-items: center; gap: 7px; }
.cbld .syr[data-mobile="1"] .syr-strip-r { right: 36px; }
.cbld .syr-strip-x { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.22); display: grid; place-items: center; cursor: pointer; font-size: 11px; }

/* ---- header (WHITE in light, dark in dark — matches live site) ---- */
.cbld .syr-hdr { position: relative; flex: none; z-index: 29; background: #fff; height: 60px; display: flex; align-items: center; padding: 0 20px; gap: 12px; border-bottom: 1px solid #e8e9ec; }
.cbld .sya-stage[data-theme="dark"] .syr-hdr { background: #1f1f22; border-bottom-color: #2e2e32; }
.cbld .syr-logo { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.cbld .syr-logo-mark { width: 26px; height: 26px; border-radius: 50%; background: #0544fd; color: #fff; display: grid; place-items: center; flex: none; }
.cbld .syr-logo-mark svg { width: 15px; height: 15px; }
.cbld .syr-side-soc svg { width: 15px; height: 15px; }
.cbld .syr-logo-txt { font-family: Lato, Poppins, sans-serif; font-size: 16px; color: #111; line-height: 1; }
.cbld .sya-stage[data-theme="dark"] .syr-logo-txt { color: #fff; }
.cbld .syr-logo-txt b { font-weight: 800; }
.cbld .syr-logo-txt em { font-style: normal; opacity: .65; }
.cbld .syr-hdr-gap { flex: 1; }
.cbld .syr-search-hint { display: flex; align-items: center; gap: 7px; flex-shrink: 0; margin-right: 10px; cursor: pointer; color: #0544fd; font-size: 13px; font-weight: 600; }
.cbld .sya-stage[data-theme="dark"] .syr-search-hint { color: #5b8cff; }
.cbld .syr-search-hint svg { width: 17px; height: 17px; }
.cbld .syr-hdr-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cbld .syr-search-bar { flex-shrink: 0; width: 280px; height: 36px; border-radius: 10px; background: #f1f2f4; display: flex; align-items: center; gap: 8px; padding: 0 16px; cursor: pointer; color: #6b6d76; font-size: 14px; transition: background .15s; }
.cbld .sya-stage[data-theme="dark"] .syr-search-bar { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); }
.cbld .syr-search-bar:hover, .cbld .syr-search-bar.active { background: #e6e8ec; }
.cbld .sya-stage[data-theme="dark"] .syr-search-bar:hover, .cbld .sya-stage[data-theme="dark"] .syr-search-bar.active { background: rgba(255,255,255,0.16); }
.cbld .syr-search-bar svg { width: 16px; height: 16px; flex: none; }
.cbld .syr-hdr-login { background: none; border: none; color: #333; font-size: 14px; font-weight: 500; cursor: pointer; }
.cbld .sya-stage[data-theme="dark"] .syr-hdr-login { color: rgba(255,255,255,0.8); }
.cbld .syr-hdr-signup { background: #111; color: #fff; border: none; border-radius: 999px; padding: 7px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.cbld .sya-stage[data-theme="dark"] .syr-hdr-signup { background: #fff; color: #111; }
.cbld .syr-hdr-theme { background: none; border: none; cursor: pointer; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; transition: background .15s; color: var(--syr-txt); }
.cbld .syr-hdr-theme:hover { background: rgba(0,0,0,0.05); }
.cbld .sya-stage[data-theme="dark"] .syr-hdr-theme:hover { background: rgba(255,255,255,0.1); }
.cbld .syr-hdr-theme svg { width: 19px; height: 19px; }
.cbld .sya-stage[data-theme="dark"] .syr-hdr-theme { color: #f5c518; }

/* ---- mobile (responsive collapse) ---- */
.cbld .syr[data-mobile] .syr-sidebar { display: none; }
.cbld .syr[data-mobile] .syr-search-hint, .cbld .syr[data-mobile] .syr-hdr-login { display: none; }
/* Mobile: keep a tappable search trigger (icon-only) in the header so search
   can be invoked, like the live site. */
.cbld .syr[data-mobile] .syr-search-bar { width: 36px; flex: none; padding: 0; justify-content: center; margin-right: 4px; }
.cbld .syr[data-mobile] .syr-search-bar .syr-search-ph { display: none; }
/* Mobile: the search panel drops as a near-full-width sheet under the header. */
.cbld .sya-stage-mobile .sya-search-wrap { top: 52px; left: 10px; right: 10px; }
.cbld .sya-stage-mobile .syr-sp { width: auto; }
.cbld .syr[data-mobile] .syr-hdr { padding: 0 14px; gap: 8px; }
.cbld .syr[data-mobile] .syr-profile { flex-direction: column; gap: 18px; padding: 18px 16px; }
.cbld .syr[data-mobile] .syr-pc-l, .cbld .syr[data-mobile] .syr-pc-m, .cbld .syr[data-mobile] .syr-pc-r { width: 100%; flex: none; }
.cbld .syr[data-mobile] .syr-banner { margin: 14px 14px 0; gap: 10px; padding: 10px 12px; }
/* Mobile banner is compact (like the served 956×192 creative) — the logo and
   text must scale down, otherwise the 52px logo dominates the narrow banner. */
.cbld .syr[data-mobile] .syr-banner-logo { width: 34px; height: 34px; border-radius: 9px; }
.cbld .syr[data-mobile] .syr-banner-name { font-size: 16px; }
.cbld .syr[data-mobile] .syr-banner-sub { font-size: 11px; }
.cbld .syr[data-mobile] .syr-banner-cta { height: 30px; font-size: 12px; padding: 0 14px; margin-right: 6px; }
.cbld .syr[data-mobile] .syr-sft-search { display: none; }
/* Mobile: the table scrolls horizontally showing ALL columns, like the live
   site — not column-hiding. The wrapper is the horizontal scroller. */
.cbld .syr[data-mobile] .syr-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cbld .syr[data-mobile] .syr-table { min-width: 660px; }

/* ---- layout ---- */
.cbld .syr-layout { display: flex; align-items: stretch; flex: 1; min-height: 0; overflow: hidden; }

/* ---- sidebar ---- */
.cbld .syr-sidebar { flex-shrink: 0; width: 220px; background: var(--syr-card); border-right: 1px solid var(--syr-border); padding: 12px 0; display: flex; flex-direction: column; align-self: stretch; min-height: 0; overflow: hidden; }
.cbld .syr[data-mobile] .syr-sidebar { position: static; height: auto; }
.cbld .syr-nav { flex: 1; overflow: hidden; }
.cbld .syr-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: 14px; color: var(--syr-txt); cursor: default; }
.cbld .syr-nav-ic { width: 18px; height: 18px; color: var(--syr-muted); flex: none; }
.cbld .syr-new { position: relative; font-size: 10px; font-weight: 700; background: #151515; color: #fff; border-radius: 999px; padding: 3px 9px; margin-left: auto; line-height: 1; }
.cbld .syr-new::after { content: ""; position: absolute; top: -2px; right: -2px; width: 6px; height: 6px; border-radius: 999px; background: #0544fd; border: 1.5px solid var(--syr-card); }
.cbld .syr-side-bottom { padding: 10px 12px 14px; margin-top: auto; background: var(--syr-card); z-index: 2; }
.cbld .syr-community { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(5,68,253,0.14); border-radius: 12px; background: rgba(5,68,253,0.05); }
.cbld .sya-stage[data-theme="dark"] .syr-community { background: rgba(5,68,253,0.14); border-color: rgba(5,68,253,0.3); }
.cbld .syr-comm-icon { width: 34px; height: 34px; border-radius: 9px; background: #0544fd; color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.cbld .syr-comm-icon svg { width: 16px; height: 16px; }
.cbld .syr-comm-logo { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: #fff; }
.cbld .syr-comm-txt { flex: 1; min-width: 0; }
.cbld .syr-comm-name { font-size: 12.5px; font-weight: 600; color: var(--syr-txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbld .syr-comm-sub { font-size: 11px; color: var(--syr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cbld .syr-community:not(.is-ad) .syr-comm-sub { display: inline-flex; align-items: center; gap: 4px; }
.cbld .syr-comm-sub svg { flex: none; }
.cbld .syr-side-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 0; }
.cbld .syr-side-foot-lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--syr-muted); }
.cbld .syr-side-foot-soc { display: flex; gap: 8px; }
.cbld .syr-side-soc { width: 28px; height: 28px; border-radius: 50%; background: var(--syr-bg); display: grid; place-items: center; color: var(--syr-muted); }
.cbld .sya-stage[data-theme="dark"] .syr-side-soc { background: rgba(255,255,255,0.06); }

/* ---- main ---- */
.cbld .syr-main { flex: 1; padding: 0; min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.cbld .syr-main::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* ---- banner ---- */
.cbld .syr-banner { display: flex; align-items: center; gap: 16px; background: #151515; padding: 14px 22px; border-radius: 8px; margin: 16px 20px 0; position: relative; }
.cbld .syr-banner-logo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: #fff; }
.cbld .syr-banner-mid { flex: 1; min-width: 0; }
.cbld .syr-banner-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbld .syr-banner-sub { font-size: 13.5px; color: rgba(255,255,255,0.65); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbld .syr-banner-cta { flex-shrink: 0; color: #fff; font-weight: 600; font-size: 14px; border: none; border-radius: 999px; padding: 0 22px; height: 38px; cursor: pointer; margin-right: 30px; }
.cbld .syr-banner.syr-banner-img { display: block; padding: 0; background: #151515; overflow: hidden; }
.cbld .syr-banner-img img { display: block; width: 100%; height: auto; }
.cbld .syr-banner-adtag { position: absolute; top: 8px; right: 10px; background: rgba(0,0,0,0.55); color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; letter-spacing: .04em; }
.cbld .syr-banner-x { position: absolute; top: 10px; right: 12px; z-index: 3; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,0.35); border: none; color: rgba(255,255,255,0.85); cursor: pointer; font-size: 12px; line-height: 1; display: grid; place-items: center; padding: 0; }
.cbld .syr-banner-x:hover { background: rgba(0,0,0,0.5); }

/* ---- profile ---- */
.cbld .syr-profile { display: flex; gap: 20px; padding: 22px 20px; background: var(--syr-card); }
.cbld .syr-profile-col { min-width: 0; }
.cbld .syr-pc-l { flex: none; width: 220px; }
.cbld .syr-pc-m { flex: 1; min-width: 180px; }
.cbld .syr-pc-r { flex: none; width: 320px; }
.cbld .syr-profile-idrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cbld .syr-pav-wrap { position: relative; flex-shrink: 0; }
.cbld .syr-smart-tag { position: absolute; top: -8px; left: -4px; background: #0544fd; color: #fff; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 999px; z-index: 1; }
.cbld .syr-profile-idtext { min-width: 0; }
.cbld .syr-profile-nrow { display: flex; align-items: center; gap: 8px; }
.cbld .syr-profile-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--syr-txt); }
.cbld .syr-profile-ic { color: var(--syr-muted); cursor: pointer; display: inline-flex; align-items: center; }
.cbld .syr-profile-ic svg { width: 17px; height: 17px; }
.cbld .syr-profile-handle { font-size: 14px; color: #0544fd; margin-top: 2px; }
.cbld .syr-profile-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.cbld .syr-meta-row { display: flex; gap: 6px; font-size: 12.5px; }
.cbld .syr-meta-row span { color: var(--syr-muted); min-width: 62px; }
.cbld .syr-meta-row b { color: var(--syr-txt); font-weight: 500; }
.cbld .syr-bio { font-size: 12px; color: var(--syr-muted); line-height: 1.45; margin: 0; }
.cbld .syr-score-lbl { font-size: 12px; color: var(--syr-muted); margin-bottom: 4px; text-align: left; }
.cbld .syr-gauge { display: flex; flex-direction: column; align-items: center; }
.cbld .syr-gauge-wrap { position: relative; width: 244px; }
.cbld .syr-gauge-svg { display: block; width: 244px; height: auto; }
.cbld .syr-gauge-center { position: absolute; left: 0; right: 0; top: 54%; transform: translateY(-34%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cbld .syr-gauge-verdict { font-size: 14px; color: var(--syr-muted); line-height: 1; }
.cbld .syr-gauge-num { font-family: var(--font-body); font-weight: 700; font-size: 38px; color: var(--syr-txt); line-height: 1.05; letter-spacing: -0.01em; }
.cbld .syr-gauge-ends { position: relative; width: 244px; height: 16px; margin-top: 1px; }
.cbld .syr-gauge-ends span { position: absolute; top: 0; font-size: 13px; color: var(--syr-muted); transform: translateX(-50%); line-height: 1; }
.cbld .syr-share { display: inline-flex; align-items: center; gap: 7px; background: var(--syr-track); border: none; border-radius: 999px; padding: 7px 18px; font-size: 13px; font-weight: 600; color: var(--syr-txt); cursor: pointer; margin-top: 3px; }
.cbld .syr-share svg { width: 15px; height: 15px; }
.cbld .syr-score-note { font-size: 11px; color: var(--syr-muted); text-align: left; line-height: 1.4; margin-top: 6px; }
.cbld .syr-score-note b { color: var(--syr-txt); }
.cbld .syr-sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.cbld .syr-sf-chip { display: flex; align-items: center; gap: 9px; border: 1px solid var(--syr-border); border-radius: 999px; padding: 4px 12px 4px 4px; min-width: 0; }
.cbld .syr-sf-name { flex: 1; font-size: 13px; color: var(--syr-txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbld .syr-sf-sc { font-size: 13.5px; font-weight: 700; color: #0544fd; flex-shrink: 0; }

/* ---- tabs ---- */
.cbld .syr-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--syr-border); background: var(--syr-card); padding: 0 20px; overflow-x: auto; }
.cbld .syr-tab { background: none; border: none; border-bottom: 2.5px solid transparent; padding: 12px 14px; font-size: 13.5px; font-weight: 500; color: var(--syr-muted); cursor: pointer; white-space: nowrap; transition: color .15s; }
.cbld .syr-tab.on { color: #0544fd; border-bottom-color: #0544fd; font-weight: 600; }

/* ---- tab content wrapper ---- */
.cbld .syr-tab-content { padding: 18px 20px 24px; background: var(--syr-bg); }

/* ---- smart followers tab ---- */
.cbld .syr-sf-tab { background: var(--syr-card); border: 1px solid var(--syr-border); border-radius: 16px; padding: 6px 4px 4px; box-shadow: 0 1px 2px rgba(16,16,20,0.05); }
.cbld .syr-sft-head { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px; }
.cbld .syr-sft-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #14151a; }
.cbld .sya-stage[data-theme="dark"] .syr-sft-title { color: #fff; }
.cbld .syr-sft-title span { color: #9aa0aa; font-weight: 700; }
.cbld .syr-sft-search { margin-left: auto; display: flex; align-items: center; gap: 9px; width: 300px; max-width: 40%; height: 40px; border-radius: 999px; background: var(--syr-card); border: 1px solid var(--syr-border); padding: 0 16px; }
.cbld .syr-sft-search svg { width: 18px; height: 18px; color: var(--syr-muted); flex: none; }
.cbld .syr-sft-ph { flex: 1; font-size: 13.5px; color: var(--syr-muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbld .syr-sft-tagrow { display: flex; align-items: center; gap: 8px; padding: 0 16px 10px; overflow: hidden; }
.cbld .syr-filter { display: inline-flex; align-items: center; gap: 8px; background: #f3f4f7; border: 1px solid transparent; border-radius: 12px; padding: 9px 14px; font-size: 13.5px; font-weight: 500; color: var(--syr-txt); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.cbld .sya-stage[data-theme="dark"] .syr-filter { background: rgba(255,255,255,0.06); }
.cbld .syr-filter.on { background: #0544fd; border-color: #0544fd; color: #fff; font-weight: 600; }
.cbld .syr-filter.green { background: rgba(26,160,75,0.1); border-color: transparent; color: var(--syr-txt); }
.cbld .syr-filter-n { font-weight: 600; color: var(--syr-txt); font-size: 12px; background: #fff; border-radius: 7px; padding: 2px 8px; }
.cbld .syr-filter.on .syr-filter-n { color: #0544fd; background: #fff; }
.cbld .syr-filter.green .syr-filter-n { color: var(--syr-txt); background: #fff; }
.cbld .sya-stage[data-theme="dark"] .syr-filter-n { background: rgba(255,255,255,0.1); color: #e6e7eb; }
.cbld .sya-stage[data-theme="dark"] .syr-filter.on .syr-filter-n { background: #fff; color: #0544fd; }
.cbld .sya-stage[data-theme="dark"] .syr-filter.green .syr-filter-n { background: rgba(255,255,255,0.1); color: #fff; }
.cbld .syr-filter-arrows { display: inline-flex; gap: 4px; flex-shrink: 0; }
.cbld .syr-filter-arrows svg { width: 18px; height: 18px; color: var(--syr-muted); cursor: pointer; }

.cbld .syr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cbld .syr-table th { text-align: left; padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--syr-muted); }
.cbld .syr-tr { border-top: 1px solid var(--syr-border); }
.cbld .syr-tr:hover { background: rgba(5,68,253,0.03); }
.cbld .syr-tr td { padding: 14px 14px; color: var(--syr-txt); vertical-align: middle; }
.cbld .syr-table-acct { display: flex; align-items: center; gap: 11px; }
.cbld .syr-table-id { min-width: 0; }
.cbld .syr-table-name { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--syr-txt); }
.cbld .syr-table-handle { font-size: 13px; color: var(--syr-muted); margin-top: 1px; }
.cbld .syr-vcheck { display: inline-flex; align-items: center; color: #1d9bf0; }
.cbld .syr-vcheck svg { width: 14px; height: 14px; }
.cbld .syr-flag { font-size: 12px; }
.cbld .syr-shield { font-size: 11px; }
.cbld .syr-td-c { font-size: 14px; color: var(--syr-txt); white-space: nowrap; }
.cbld .syr-td-sc { font-size: 14px; font-weight: 700; color: #0544fd; }
.cbld .syr-red { color: #e11d48; font-weight: 500; }
.cbld .syr-grn { color: #1aa04b; font-weight: 500; }
.cbld .syr-sfcount { display: flex; align-items: center; gap: 8px; }
.cbld .syr-minis { display: inline-flex; }
.cbld .syr-minis .syr-av { border: 2px solid var(--syr-card); margin-left: -8px; }
.cbld .syr-minis .syr-av:first-child { margin-left: 0; }
.cbld .syr-td-desc { max-width: 280px; }
.cbld .syr-desc-txt { font-size: 12.5px; color: var(--syr-muted); line-height: 1.4; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cbld .syr-desc-tag { display: inline-block; font-size: 12px; font-weight: 500; color: #1aa04b; background: rgba(26,160,75,0.1); border-radius: 6px; padding: 3px 9px; }
.cbld .syr-desc-tag.blue { color: #0544fd; background: rgba(5,68,253,0.1); }

/* pagination */
.cbld .syr-sft-pager { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 24px; }
.cbld .syr-pages { display: flex; align-items: center; gap: 6px; }
.cbld .syr-page, .cbld .syr-page-arrow { min-width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--syr-bg); color: var(--syr-txt); font-size: 13px; font-weight: 600; cursor: pointer; display: grid; place-items: center; }
.cbld .syr-page.on { background: #0544fd; color: #fff; }
.cbld .syr-page-arrow svg { width: 18px; height: 18px; color: var(--syr-muted); }
.cbld .syr-page-dots { color: var(--syr-muted); padding: 0 4px; }
.cbld .syr-results { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--syr-muted); }
.cbld .syr-results-sel { border: 1px solid var(--syr-border); border-radius: 8px; padding: 7px 12px; color: var(--syr-txt); font-weight: 600; }

/* ---- native ad row (inset card like the live site) ---- */
.cbld .syr-tr-ad { background: transparent; }
.cbld .syr-tr-ad:hover { background: transparent; }
.cbld .syr-tr-ad td { padding: 6px 14px; }
.cbld .syr-adcard { display: flex; align-items: center; gap: 12px; border-radius: 12px; border: 1px solid rgba(5,68,253,0.18); background: linear-gradient(90deg, rgba(5,68,253,0.06), rgba(5,68,253,0.02) 65%, rgba(5,68,253,0.05)); padding: 9px 16px; }
.cbld .sya-stage[data-theme="dark"] .syr-adcard { border-color: rgba(5,68,253,0.3); background: linear-gradient(90deg, rgba(5,68,253,0.16), rgba(5,68,253,0.08)); }
.cbld .syr-adcard-logobox { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 1px 5px rgba(0,0,0,0.12); overflow: hidden; }
.cbld .syr-adcard-logobox img { width: 100%; height: 100%; object-fit: cover; }
.cbld .syr-adcard-name { font-size: 14px; font-weight: 700; color: var(--syr-txt); white-space: nowrap; flex-shrink: 0; }
.cbld .syr-adcard-sub { font-size: 13px; color: var(--syr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbld .syr-adcard-spacer { flex: 1; min-width: 8px; }
.cbld .syr-adcard-ad { background: #0544fd; color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 9px; letter-spacing: 0; flex-shrink: 0; }
.cbld .syr-adcard-x { color: var(--syr-muted); font-size: 14px; cursor: pointer; flex-shrink: 0; margin-left: 4px; }

/* ---- search panel ---- */
.cbld .syr-sp { --syr-txt: #111; --syr-muted: #8a8c91; --syr-border: #eceef1; --syr-bg: #f5f6f8; background: #fff; border: 1px solid #e6e7ea; box-shadow: 0 16px 48px rgba(0,0,0,0.22); border-radius: 16px; width: 460px; overflow: hidden; }
.cbld .sya-stage[data-theme="dark"] .syr-sp { --syr-txt: #fff; --syr-muted: #6b6e76; --syr-border: #2e3038; --syr-bg: #1b1c1e; background: #232426; border-color: #2e3038; }
.cbld .syr-sp-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--syr-border); }
.cbld .syr-sp-bar svg { width: 18px; height: 18px; color: var(--syr-muted); flex: none; }
.cbld .syr-sp-ph { flex: 1; font-size: 15px; color: var(--syr-muted); }
.cbld .syr-sp-x { background: none; border: none; color: var(--syr-muted); font-size: 16px; cursor: pointer; }
.cbld .syr-sp-body { padding: 10px 0; max-height: 420px; overflow-y: auto; }
.cbld .syr-sp-ad { display: flex; align-items: center; gap: 12px; margin: 4px 14px 8px; padding: 11px 14px; border-radius: 12px; background: rgba(5,68,253,0.06); border: 1px solid rgba(5,68,253,0.14); cursor: pointer; transition: background .15s; }
.cbld .syr-sp-ad:hover { background: rgba(5,68,253,0.1); }
.cbld .sya-stage[data-theme="dark"] .syr-sp-ad { background: rgba(5,68,253,0.16); border-color: rgba(5,68,253,0.3); }
.cbld .syr-sp-ad-logo { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; flex-shrink: 0; background: #fff; }
.cbld .syr-sp-ad-txt { flex: 1; min-width: 0; }
.cbld .syr-sp-ad-name { font-size: 14px; font-weight: 700; color: var(--syr-txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbld .syr-sp-ad-sub { font-size: 12.5px; color: var(--syr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbld .syr-sp-ad-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #0544fd; flex-shrink: 0; white-space: nowrap; }
.cbld .syr-sp-ad-badge { background: #0544fd; color: #fff; font-size: 9px; font-weight: 800; border-radius: 999px; padding: 2px 6px; font-family: var(--font-mono); }
.cbld .syr-sp-ad-arrow { flex: none; color: var(--syr-muted); }
.cbld .syr-sp-ad-arrow svg { width: 18px; height: 18px; }
.cbld .syr-sp-hdr { display: flex; justify-content: space-between; padding: 10px 18px 6px; font-size: 12px; color: var(--syr-muted); }
.cbld .syr-sp-row { display: flex; align-items: center; gap: 11px; padding: 8px 18px; cursor: pointer; transition: background .12s; }
.cbld .syr-sp-row:hover { background: var(--syr-bg); }
.cbld .syr-sp-info { flex: 1; min-width: 0; }
.cbld .syr-sp-name { font-size: 14px; font-weight: 600; color: var(--syr-txt); }
.cbld .syr-sp-handle { font-size: 12.5px; color: var(--syr-muted); }
.cbld .syr-sp-score { font-size: 14px; font-weight: 700; color: #0544fd; }

/* ---- popup (two-zone: dark promo + white ad card) ---- */
.cbld .syr-popup { width: 256px; border-radius: 18px; position: absolute; bottom: 24px; right: 24px; box-shadow: 0 18px 44px rgba(0,0,0,0.4); overflow: hidden; background: #fff; transform: scale(var(--site-zoom, 1)); transform-origin: bottom right; z-index: 60; }
.cbld .syr-popup-x { position: absolute; top: 9px; right: 10px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.14); border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 12px; display: grid; place-items: center; }
.cbld .syr-popup-dark { background: #15161a; padding: 18px 16px 14px; text-align: center; position: relative; }
.cbld .syr-popup-eyrow { display: flex; align-items: center; justify-content: center; gap: 7px; margin-bottom: 9px; }
.cbld .syr-popup-logo { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; background: #fff; flex-shrink: 0; }
.cbld .syr-popup-ey { font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,0.55); }
.cbld .syr-popup-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: #fff; line-height: 1.1; margin-bottom: 8px; }
.cbld .syr-popup-pitch { font-size: 12.5px; color: rgba(255,255,255,0.66); line-height: 1.4; margin-bottom: 6px; padding: 0 4px; }
.cbld .syr-popup-light { background: #fff; padding: 18px 16px 16px; text-align: center; }
.cbld .syr-popup-lh { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #111; display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 7px; }
.cbld .syr-popup-adbadge { background: rgba(5,68,253,0.12); color: #0544fd; font-size: 9px; font-weight: 800; border-radius: 999px; padding: 2px 7px; font-family: var(--font-mono); }
.cbld .syr-popup-ltxt { font-size: 12.5px; color: #6b6d76; line-height: 1.45; margin: 0 0 14px; }
.cbld .sya-stage[data-theme="dark"] .syr-popup { background: #232426; }
.cbld .sya-stage[data-theme="dark"] .syr-popup-light { background: #232426; }
.cbld .sya-stage[data-theme="dark"] .syr-popup-lh { color: #fff; }
.cbld .sya-stage[data-theme="dark"] .syr-popup-ltxt { color: #a9a7b2; }
.cbld .syr-popup-contact { width: 100%; border: none; border-radius: 10px; height: 42px; color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.cbld .syr-popup.syr-popup-img { background: #fff; }
.cbld .sya-stage[data-theme="dark"] .syr-popup.syr-popup-img { background: #232426; }
/* Popup creative = a fixed short header cropped to fit (like the live site's
   .ts-popup-ad__image: 152px + object-fit cover), NOT the raw image at natural
   height — otherwise a near-square mobile creative (544×532) fills the screen. */
.cbld .syr-popup-imghead { position: relative; line-height: 0; height: 116px; overflow: hidden; }
.cbld .syr-popup-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cbld .sya-stage-mobile .syr-popup.syr-popup-img .syr-popup-imghead { height: 168px; }
.cbld .sya-stage-mobile .syr-popup.syr-popup-img.syr-popup-sheet { gap: 0; }
.cbld .syr-popup-adtag { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,0.55); color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; letter-spacing: .04em; z-index: 2; }

/* mobile popup — full-width bottom sheet */
.cbld .sya-stage-mobile .syr-popup.syr-popup-sheet { left: 0; right: 0; bottom: 0; width: auto; transform: none; border-radius: 16px 16px 0 0; background: #fff; border-top: 1px solid #ececef; box-shadow: 0 -8px 34px rgba(0,0,0,0.16); padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 13px; }
.cbld .sya-stage[data-theme="dark"] .syr-popup-sheet { background: #1b1c1e; border-top-color: #2a2c30; }
.cbld .syr-popup-sheet:not(.syr-popup-img) .syr-popup-x { top: 11px; right: 12px; width: 24px; height: 24px; background: #eef0f4; color: #6b6d76; }
.cbld .sya-stage[data-theme="dark"] .syr-popup-sheet:not(.syr-popup-img) .syr-popup-x { background: rgba(255,255,255,0.1); color: #cdd0d6; }
.cbld .syr-popup-sheet-row { display: flex; align-items: flex-start; gap: 13px; padding-right: 26px; }
.cbld .syr-popup-sheet-logo { width: 58px; height: 58px; border-radius: 13px; object-fit: cover; background: #fff; flex: none; }
.cbld .syr-popup-sheet-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cbld .syr-popup-sheet-h { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #14151a; line-height: 1.2; }
.cbld .sya-stage[data-theme="dark"] .syr-popup-sheet-h { color: #fff; }
.cbld .syr-popup-sheet-p { font-size: 13.5px; color: #6b6d76; line-height: 1.4; margin: 0; }
.cbld .syr-popup-sheet-btn { width: 100%; height: 48px; border: none; border-radius: 12px; color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
.cbld .sya-stage-mobile .syr-popup.syr-popup-img.syr-popup-sheet { padding: 0; overflow: hidden; }

/* ---- colored-initial avatars (no avatar image assets in this build) ---- */
.cbld .syr-av { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex-shrink: 0; font-family: var(--font-display); line-height: 1; overflow: hidden; }
.cbld .syr-av img { width: 100%; height: 100%; object-fit: cover; }

/* ══ checkout modal — two-pane "How would you like to pay?" ═════ */
.cbld-modal {
  position: fixed; inset: 0; z-index: 4000; background: rgba(12, 14, 20, .55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
body.dark .cbld-modal { background: rgba(0, 0, 0, .66); }
.cbld-modal-card {
  width: 420px; max-width: 100%; max-height: 92vh; overflow: auto; position: relative;
  background: var(--cb-card); border: 1px solid var(--cb-border); border-radius: 16px; padding: 20px;
}
.cbld-modal-x {
  position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border: none; z-index: 3;
  border-radius: 50%; background: var(--cb-sunken); color: var(--cb-ink2); cursor: pointer; font-size: 13px;
  display: grid; place-items: center; line-height: 1;
}
body.dark .cbld-modal-x { background: rgba(255,255,255,0.1); }
.cbld-modal-x:hover { color: var(--cb-ink); }

/* two-pane card */
.cbld-checkout {
  width: 800px; max-width: 100%; padding: 0; overflow: hidden;
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  box-shadow: 0 24px 70px rgba(8,10,20,.4);
}
.cbld-co-left { background: var(--cb-sunken); padding: 24px 24px 22px; display: flex; flex-direction: column; }
.cbld-co-right { background: var(--cb-card); padding: 24px 26px 22px; position: relative; }

.cbld-co-adv { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cbld-co-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); flex: none; }
.cbld-co-name { font-family: Poppins, Helvetica, Roboto, sans-serif; font-size: 17px; font-weight: 700; color: var(--cb-ink); line-height: 1.2; }
.cbld-co-camp { font-size: 12.5px; color: var(--cb-ink2); margin-top: 2px; }

.cbld-co-lines { display: flex; flex-direction: column; gap: 10px; }
.cbld-co-line { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.cbld-co-li-l { display: flex; align-items: center; gap: 9px; color: var(--cb-ink2); }
.cbld-co-check { color: var(--cb-green); display: inline-grid; place-items: center; flex: none; }
.cbld-co-check svg { width: 13px; height: 13px; }
.cbld-co-line b { font-weight: 600; color: var(--cb-ink); }

.cbld-co-sep { height: 1px; background: var(--cb-border); margin: 15px 0; }
.cbld-co-meta { display: flex; flex-direction: column; gap: 9px; }
.cbld-co-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--cb-ink2); }
.cbld-co-row > span:last-child { color: var(--cb-ink); }
.cbld-co-row s { color: var(--cb-ink2); text-decoration: line-through; margin-left: 3px; }
.cbld-co-green > span, .cbld-co-green .cbld-co-bonus { color: var(--cb-green); font-weight: 500; }
.cbld-co-bonus { display: inline-flex; align-items: center; gap: 5px; }
.cbld-co-bonus svg { flex: none; }

.cbld-co-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; }
.cbld-co-total span { font-family: Poppins, Helvetica, Roboto, sans-serif; font-size: 20px; font-weight: 700; color: var(--cb-ink); }
.cbld-co-total b { font-family: Poppins, Helvetica, Roboto, sans-serif; font-size: 26px; font-weight: 700; color: var(--cb-ink); letter-spacing: -0.01em; }

.cbld-co-renew {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px; border-radius: 12px;
  border: 1px solid rgba(26,160,75,0.35); background: rgba(26,160,75,0.07); cursor: pointer;
}
body.dark .cbld-co-renew { background: rgba(26,160,75,0.12); border-color: rgba(26,160,75,0.4); }
.cbld-co-renew-box {
  flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--cb-border);
  background: var(--cb-card); display: grid; place-items: center; color: transparent; margin-top: 1px;
}
.cbld-co-renew.is-on .cbld-co-renew-box { background: var(--cb-green); border-color: var(--cb-green); color: #fff; }
.cbld-co-renew-box svg { width: 13px; height: 13px; }
.cbld-co-renew-tx b { display: block; font-size: 12.5px; font-weight: 600; color: var(--cb-ink); line-height: 1.4; }
.cbld-co-ok { color: var(--cb-green); }
.cbld-co-renew-tx small { display: block; font-size: 11.5px; color: var(--cb-ink2); margin-top: 3px; line-height: 1.45; }

.cbld-co-mod { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; color: var(--cb-ink2); line-height: 1.45; margin-top: auto; padding-top: 16px; }
.cbld-co-mod svg { flex: none; color: var(--cb-blue); margin-top: 1px; }

.cbld-co-h { font-family: Poppins, Helvetica, Roboto, sans-serif; font-size: 22px; font-weight: 700; color: var(--cb-ink); margin-bottom: 8px; padding-right: 34px; line-height: 1.2; }
.cbld-co-due { font-size: 13px; color: var(--cb-ink2); margin-bottom: 20px; }

.cbld-pay {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--cb-border); background: var(--cb-card); border-radius: 14px;
  padding: 15px 16px; margin-bottom: 12px; color: var(--cb-ink);
  transition: border-color .13s ease, background .13s ease; position: relative;
}
.cbld-pay:hover { border-color: var(--cb-blue); background: var(--cb-blue-soft); }
.cbld-pay-ic { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--cb-blue-soft); color: var(--cb-blue); display: grid; place-items: center; }
.cbld-pay-tx { flex: 1; min-width: 0; }
.cbld-pay-tx b { display: block; font-size: 15px; font-weight: 600; }
.cbld-pay-tx small { display: block; font-size: 12px; color: var(--cb-ink2); margin-top: 2px; }
.cbld-pay-arrow { flex: none; color: var(--cb-ink2); display: grid; place-items: center; }
.cbld-pay:hover .cbld-pay-arrow { color: var(--cb-blue); }
.cbld-pay.is-busy { opacity: .6; pointer-events: none; }
.cbld-pay.is-busy::after { content: '…'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--cb-blue); font-weight: 700; }

.cbld-co-lock { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--cb-ink2); margin-top: 4px; }
.cbld-co-lock svg { width: 13px; height: 13px; flex: none; }

.cbld-modal-err {
  background: rgba(220, 38, 38, .08); color: #dc2626; border-radius: 8px;
  font-size: 12px; padding: 8px 10px; margin-bottom: 10px;
}

@media (max-width: 680px) {
  .cbld-checkout { grid-template-columns: 1fr; width: 440px; }
  .cbld-co-mod { margin-top: 14px; }
}

/* mobile page */
.mobile .cbld-config { padding: 16px; }
