/* 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: #2f6bff;
  --cb-blue-soft: rgba(47, 107, 255, 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; }
.cbld-dur-hint { font-size: 12.5px; line-height: 1.4; color: var(--cb-ink2); margin: -4px 0 14px; }
.cbld-dur-hint b { color: var(--cb-ink); font-weight: 600; }

/* ══ 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(47,107,255,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(47,107,255,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(47,107,255,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, #2f6bff, #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: #1e56e6; }
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); }
/* rate-card price struck through while a volume discount applies */
.cbld-row-price s { margin-right: 5px; font-size: 11px; opacity: .6; }
.cbld-row-price s[hidden] { display: none; }
.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; }
/* isolation: the mock is a picture of a page, and its inner z-indexes (the
   strip at 30, the popup at 60, the search panel at 200) are meant to stack
   against each other, NOT against the real page. Without a stacking context of
   its own they leaked into the document's, so the mock's refbar and popup
   painted over the SITE's own open search dropdown. `isolate` pins the whole
   subtree to this element's level; the builder's checkout modal is a sibling
   outside the stage and is unaffected. */
.cbld .sya-stage { position: relative; isolation: isolate; 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-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 — live parity with .ts-refbar (static/css/ads/header.css, FINAL)
   [logo 26] Name  description…(16px fade)  [white CTA pill]   ✕
   The bar's background IS the advertiser accent (inline style from pvStrip), so
   the slot is theme-invariant: no [data-theme="dark"] overrides, exactly like
   live. No "Place ad" edge pill (live gates it behind window.TS_ADS_PYA,
   default off) and no "Ad" badge — the PYA-off live bar carries none.
   height: header.css min-height:46px is a FLOOR on the border box; the pinned
   strip also takes padding-top/bottom:10px !important from sidebar-layout.css,
   and the tallest flex item is the 28px CTA — so a served bar WITH a button is
   28+20 = 48px (measured), one without falls back to the 46px floor. The mock
   always draws a CTA, so 48px is the right constant here — do not "correct" it
   to 46.
   padding: live desktop is `0 160px` with padding-left mirroring the sidebar
   offset — calc(--ts-sb-content-offset 288px + 160px) = 448px at 1280 — so the
   group centres over the CONTENT column, not the viewport. The mock's content
   column starts after its 220px sidebar (+1px border), so the same mirror here
   is 221 + 160 = 381px: group centre 680.5 = dead centre of the mock's banner
   (241…1120). Live animates that padding when the sidebar collapses
   (header.css:39-41); the mock has no collapse state, so this is the
   expanded-sidebar case only. ---- */
.cbld .syr-strip { display: flex; align-items: center; justify-content: center; gap: 12px; height: 48px; flex: none; color: #fff; position: relative; z-index: 30; padding: 0 160px 0 381px; }
/* the ad's link group (live .ts-refbar__link): baseline-aligned, gap 10, and
   flex 0 1 auto so the NAME never truncates — the description gives way */
/* NOT baseline: the 26px logo makes the line 26px and baseline alignment then
   anchors the text to its TOP, ~2.5px above the bar's centre (same bug, and the
   same fix, as live header.css). Centring plus one shared line-height keeps the
   two fonts within 0.3px of a common baseline. */
.cbld .syr-strip-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: 0 1 auto; min-width: 0; }
.cbld .syr-strip-logo { display: block; flex: none; align-self: center; width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.cbld .syr-strip-title { flex: none; min-width: 0; overflow: visible; white-space: nowrap; font-family: var(--font-display); font-size: 14px; line-height: 20px; font-weight: 700; color: #fff; }
.cbld .syr-strip-sub { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-display); font-size: 13px; line-height: 20px; font-weight: 500; color: #fff; opacity: .85; }
/* live pattern 2 (.ts-fade-r, search.css): the tail dissolves over 16px instead
   of an ellipsis — toggled by pvFitStripFade() only WHILE it overflows */
.cbld .syr-strip-sub.syr-fade-r { text-overflow: clip; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent); }
/* CTA = the shared white .ts-ad-cta pill (search.css) at refbar size; the
   --on-accent variant keeps the border transparent in BOTH themes because the
   pill sits on the ad's accent colour */
.cbld .syr-strip-cta:hover { background: #eef1f6; color: #14161c; }
/* cursor: pointer on the CTA pills: live renders them as <a> (link cursor), the mock as <span>, which otherwise shows a text I-beam on hover */
.cbld .syr-strip-cta { transition: background .14s ease; flex: none; display: inline-flex; align-items: center; justify-content: center; line-height: 1; height: 28px; margin-left: 10px; padding: 0 14px; border: 1px solid transparent; border-radius: 999px; background: #fff; color: #14161c; font-family: "Roboto", "Helvetica Neue", Arial, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; cursor: pointer; }
/* ✕ — live is a bare 14px white cross (base.css .new-project-info .close-btn),
   not a chip; right:17px on desktop */
.cbld .syr-strip-r { position: absolute; right: 17px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 7px; }
.cbld .syr-strip-x { display: block; position: relative; width: 14px; height: 14px; cursor: pointer; font-size: 0; }
.cbld .syr-strip-x::before, .cbld .syr-strip-x::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; background: #fff; }
.cbld .syr-strip-x::before { transform: translateY(-50%) rotate(45deg); }
.cbld .syr-strip-x::after { transform: translateY(-50%) rotate(-45deg); }
/* phones — live: bar 42, text LEFT-aligned, padding `0 30px 0 12px` with a CTA.
   The mock's phone frame clips its own top corners (38px radius on a 320px
   screen = 52px in the 440-wide design space) and the whole 42px bar sits
   inside that curve: at the logo's top row the curve eats the first ~24.5
   design px. So the phone mock insets the row — 26px left instead of live's 12,
   56px right instead of 30 — and keeps the ✕ at right:36px instead of live's
   13px. Everything else is the live phone rule verbatim. */
.cbld .syr[data-mobile="1"] .syr-strip { height: 42px; justify-content: flex-start; gap: 0; padding: 0 56px 0 26px; }
.cbld .syr[data-mobile="1"] .syr-strip-link { flex: 1 1 auto; align-items: center; justify-content: flex-start; gap: 8px; overflow: hidden; }
.cbld .syr[data-mobile="1"] .syr-strip-title { font-size: 13px; }
.cbld .syr[data-mobile="1"] .syr-strip-sub { font-size: 13px; }
.cbld .syr[data-mobile="1"] .syr-strip-cta { height: 26px; margin-left: 6px; padding: 0 12px; font-size: 11px; }
.cbld .syr[data-mobile="1"] .syr-strip-r { right: 36px; }

/* ---- 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; }
/* Mobile banner = the served 956x192 creative. Same composition, but that asset
   is 2.37x narrower than the desktop one, so everything is LARGER relative to
   the box (and the banner is taller than the desktop one on this canvas — live
   does the same: 430px phone → 398x79.9).
   412 wide on the 440 canvas, aspect-ratio 956/192 → 82.75 tall, k = 0.431:
     pad 40→17.2 · tile 150→64.7 (r 18.1) · tile↔copy 28→12.1 ·
     copy↔button gutter 8→3.4 (the phone asset lets the fade die right at the
     button) · fade 40→17.2 · name 54→23.3 · tagline 33→14.2 · accent bar 7→3.
   CTA/✕: banner_zone.css .mobile rules verbatim. live's
   clamp(11px, 3.2vw, 14px) reaches its 14px cap at a 438px-wide viewport and
   this board is a 440px design width, so 14px IS live's value at the equivalent
   phone. Written flat on purpose: fitStageEl shrinks the board with CSS `zoom`
   and `vw` is viewport-relative — a literal 3.2vw here would measure the real
   browser window, not the 440px board. Never use viewport units inside
   .sya-zoom. */
/* 16px side inset, not 14: live .tscore-banner-zone carries padding 0 16px and
   nothing else adds an inset (measured on the phone board at vw 375-440, the
   banner is always x=16 w=vw-32). At 14 the mock banner came out 412 design px
   against live's 408. */
.cbld .syr[data-mobile] .syr-banner { margin: 14px 16px 0; padding: 0; aspect-ratio: 956 / 192; }
/* the (0,4,0) rule above would otherwise squash an uploaded creative to 956:192 */
.cbld .syr[data-mobile] .syr-banner.syr-banner-img { aspect-ratio: auto; padding: 0; }
.cbld .syr[data-mobile] .syr-banner::before { width: 3px; }
.cbld .syr[data-mobile] .syr-banner-logo { width: 64.7px; height: 64.7px; border-radius: 18.1px; margin-left: 17.2px; }
.cbld .syr[data-mobile] .syr-banner-mid { margin: 0 3.4px 0 12.1px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 17.2px), transparent 100%); mask-image: linear-gradient(to right, #000 calc(100% - 17.2px), transparent 100%); }
.cbld .syr[data-mobile] .syr-banner-name { font-size: 23.3px; }
.cbld .syr[data-mobile] .syr-banner-sub { font-size: 14.2px; }
.cbld .syr[data-mobile] .syr-banner-cta { min-width: 0; height: 38%; min-height: 22px; max-height: 2.2em; margin-right: 38px; padding: 0 12px; font-size: 14px; }
.cbld .syr[data-mobile] .syr-banner-cta--over { right: 38px; margin: 0; }
.cbld .syr[data-mobile] .syr-banner-x { width: 30px; height: 30px; top: 4px; right: 4px; font-size: 22px; }
.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; }
/* ── left-rail card — live parity with sidebar.css .sb-community-feature
   (live card 239x58 in a 264px rail; the mock rail is 221 wide, so nothing is
   scaled — only the text column ends up narrower, exactly as a 0.84 rail
   would). position:relative is what makes the absolute "Ad" chip land at
   top 6 / right 8.
   DARK VALUES COME FROM static/css/components/sidebar-layout.css:83-88, not
   from sidebar.css: #tsSidebar is hard-coded class="sidebar theme-light"
   (templates/basic/sidebar.html) and no JS ever swaps it, so every
   `.sidebar.theme-dark ...` rule in sidebar.css is dead. Consequences that look
   like bugs but are what live actually renders: the dark AD description is BLUE
   (the bridge rule beats .sb-cf-sub--ad) and the "Ad" chip's text is WHITE
   (base.css `.dark span { color: var(--white) }` beats .sb-cf-adchip).
   Raised separately as a live-CSS ticket; the mock matches what serves. ── */
.cbld .syr-community { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid rgba(5,68,253,0.22); border-radius: 12px; background: linear-gradient(135deg, rgba(5,68,253,0.08), rgba(97,80,241,0.10)); cursor: pointer; transition: background 220ms cubic-bezier(0.22,0.61,0.36,1), transform 220ms cubic-bezier(0.22,0.61,0.36,1); }
/* live .sb-community-feature:hover — the card is an <a> on live (link cursor),
   a <div> in the mock, so the cursor has to be declared here */
.cbld .syr-community:hover { background: linear-gradient(135deg, rgba(5,68,253,0.12), rgba(97,80,241,0.16)); transform: translateY(-1px); }
/* dark: only the lift. The bridge `body.dark #tsSidebar .sb-community-feature`
   (1,2,1) out-specifies `.sb-community-feature:hover` (0,2,0) and the
   `.sidebar.theme-dark ...:hover` rule is dead, so live keeps the static dark
   gradient under the pointer — the (0,4,0) rule below outranks :hover the same way. */
.cbld .sya-stage[data-theme="dark"] .syr-community { background: linear-gradient(135deg, rgba(5,68,253,0.18), rgba(97,80,241,0.20)); border-color: rgba(81,136,255,0.30); }
.cbld .syr-comm-icon { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #0544FD, #6150F1); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.cbld .syr-comm-icon svg { width: 18px; height: 18px; }
/* the live chip is pure #fff in BOTH themes (sidebar.css's dark override is dead) */
.cbld .syr-comm-logo { width: 32px; height: 32px; border-radius: 9px; object-fit: contain; flex-shrink: 0; background: #fff; }
/* kept at flex:1 where live .sb-cf-text shrinks to fit — with the description
   always overflowing the mock's narrower column the rendered result is identical */
.cbld .syr-comm-txt { flex: 1; min-width: 0; }
.cbld .syr-comm-name { font-family: var(--font-display); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: -.1px; color: var(--syr-txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbld .syr-comm-sub { font-size: 11px; line-height: 14px; font-weight: 500; margin-top: 2px; color: #0544fd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cbld .sya-stage[data-theme="dark"] .syr-comm-sub { color: #5188ff; }
.cbld .syr-community.is-ad .syr-comm-sub { color: #656565; }
/* dark: (0,4,0) ties with the .is-ad rule above and would lose on order, so the
   ad state needs its own dark rule. Live really does render the dark ad
   description BLUE — the bridge in sidebar-layout.css beats .sb-cf-sub--ad. */
.cbld .sya-stage[data-theme="dark"] .syr-community.is-ad .syr-comm-sub { color: #5188ff; }
.cbld .syr-community:not(.is-ad) .syr-comm-sub { display: inline-flex; align-items: center; gap: 4px; }
.cbld .syr-comm-sub svg { flex: none; }
/* 16px fade instead of an ellipsis (live .ts-fade-r; the shared .cbld .syr-fade-r
   carries the 18px `--18` variant the promoted rows use). pvRailFade() adds the
   class only while the copy overflows. */
.cbld .syr-comm-sub.syr-fade-r { text-overflow: clip !important; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent); }

.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 — ported 1:1 from the live Top banner ──────────────────────
   Live = a 2268x192 PNG (advt/selfserve_services.py::_gen_banner) with a live
   <a class="tscore-banner__cta"> and a ✕ overlaid (static/css/ads/banner_zone.css).
   The mock repaints that PNG in CSS at the same proportions.
   Scale: the banner is 878.8 wide on the 1140 canvas, aspect-ratio 2268/192
   makes it 74.4 tall, so k = 74.4/192 = 0.3875 image px → mock px:
     pad 40→15.5 · tile 150→58.1 (radius 28% → 16.3) · tile↔copy 28→10.85 ·
     copy↔button gutter 24→9.3 · fade 40→15.5 · name 54→20.9 ·
     tagline 33→12.8 · left accent bar 7→2.7.
   The CTA's numbers are CSS px/% on live and transplant unchanged. The
   container is border-box with NO padding on purpose: aspect-ratio and every
   % base must resolve against the full banner box (this stylesheet has no
   border-box reset), so the left inset lives on the logo's margin instead.
   Dark in BOTH stage themes — the live creative is a dark PNG either way, and
   banner_zone.css has no [data-theme] rule. No "Place your ad" pill and no
   "Ad" badge: live gates the pill behind window.TS_ADS_PYA and the banner has
   no disclosure-badge fallback when it is off. */
.cbld .syr-banner { position: relative; box-sizing: border-box; display: flex; align-items: center; gap: 0; aspect-ratio: 2268 / 192; padding: 0; border-radius: 8px; overflow: hidden; margin: 16px 20px 0; background: #121216; }
/* slim left accent bar (PIL: solid accent rect, x 0..6, full height) */
.cbld .syr-banner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2.7px; background: var(--pv-accent, #0544fd); z-index: 1; }
/* the logo cover-fills the rounded tile; a 10% accent wash (set inline) shows
   through transparent logo pixels — _logo_tile(outline=False). margin-left is
   PIL's 40px pad, kept off the container so the % bases stay intact. */
.cbld .syr-banner-logo { width: 58.1px; height: 58.1px; border-radius: 16.3px; object-fit: cover; flex: none; margin-left: 15.5px; background: none; }
/* copy column: fixed by flex, so its right edge lands exactly where PIL's
   copy_w does; the last 15.5px dissolve (design pattern 2 — never an ellipsis) */
.cbld .syr-banner-mid { flex: 1; min-width: 0; align-self: stretch; position: relative; overflow: hidden; margin: 0 9.3px 0 10.85px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 15.5px), transparent 100%); mask-image: linear-gradient(to right, #000 calc(100% - 15.5px), transparent 100%); }
/* PIL anchors the two lines' middles at 34% and 70% of the creative height.
   seguisb.ttf is Segoe UI SEMIBOLD — 600, not 700, or the face gets
   synthetically bolded on top of its own weight. */
.cbld .syr-banner-name { position: absolute; left: 0; top: 34%; transform: translateY(-50%); font-family: "Segoe UI", Arial, "DejaVu Sans", sans-serif; font-weight: 600; font-size: 20.9px; line-height: 1; color: #fff; white-space: nowrap; }
.cbld .syr-banner-sub { position: absolute; left: 0; top: 70%; transform: translateY(-50%); margin: 0; font-family: "Segoe UI", Arial, "DejaVu Sans", sans-serif; font-weight: 400; font-size: 12.8px; line-height: 1; color: rgba(255,255,255,0.675); white-space: nowrap; }
/* live .tscore-banner__cta, verbatim: as a flex item the %s resolve against the
   banner box exactly as the absolute ones do on live */
.cbld .syr-banner-cta { flex: none; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: 12.5%; height: 43%; margin-right: 4.885%; padding: 0 18px; border: none; border-radius: 999px; background: var(--pv-accent, #0544fd); font-family: "Roboto", "Helvetica Neue", Arial, sans-serif; font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: 0; color: #fff; white-space: nowrap; cursor: pointer; z-index: 2; transition: background .15s cubic-bezier(.22,.61,.36,1), filter .15s cubic-bezier(.22,.61,.36,1); }
/* live hover/active (banner_zone.css): the accent is LIGHTENED on hover and
   DARKENED on press, derived from the ad's own colour so any brand works. */
.cbld .syr-banner-cta:hover { background: color-mix(in srgb, var(--pv-accent, #0544fd) 72%, #fff); }
.cbld .syr-banner-cta:active { background: color-mix(in srgb, var(--pv-accent, #0544fd) 82%, #000); }
@supports not (background: color-mix(in srgb, #000 50%, #fff)) {
    .cbld .syr-banner-cta:hover { filter: brightness(1.15); }
    .cbld .syr-banner-cta:active { filter: brightness(.85); }
}
/* no button label: live still reserves the box in the PNG, so keep the space */
.cbld .syr-banner-cta.is-empty { visibility: hidden; }
/* uploaded/generated creative: image as-is, CTA + ✕ overlaid (live behaviour) */
.cbld .syr-banner.syr-banner-img { display: block; padding: 0; aspect-ratio: auto; background: #121216; overflow: hidden; }
.cbld .syr-banner.syr-banner-img::before { display: none; }
.cbld .syr-banner-img img { display: block; width: 100%; height: auto; border-radius: 8px; }
.cbld .syr-banner-cta--over { position: absolute; right: 4.885%; top: 50%; transform: translateY(-50%); margin: 0; }
.cbld .syr-banner-x { position: absolute; top: 6px; right: 8px; z-index: 3; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,0.35); border: none; color: #fff; cursor: pointer; font-size: 18px; line-height: 1; opacity: .7; display: grid; place-items: center; padding: 0; }
.cbld .syr-banner-x:hover { opacity: 1; background: rgba(0,0,0,0.6); }

/* ---- 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; }
/* ── above-table promoted row — live parity with search.css .ts-promo-ad /
   .ts-promo-ad--row (values copied 1:1; the mock canvas is the site at ~1140).
   PYA-off state: plain "Ad" badge, never a "Place ad" pill.
   The live numbers are border-box numbers (the site ships Bootstrap's reboot);
   this stylesheet has no reset, so declare it here or the card renders 52px on
   a bare host page and 50px on /advertising. ── */
.cbld .syr-adcard, .cbld .syr-adcard * { box-sizing: border-box; }
.cbld .syr-adcard { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(5,68,253,0.08), rgba(97,80,241,0.10)); border: 1px solid rgba(5,68,253,0.22); transition: background 220ms cubic-bezier(0.22,0.61,0.36,1), transform 220ms cubic-bezier(0.22,0.61,0.36,1); }
.cbld .syr-adcard:hover { background: linear-gradient(135deg, rgba(5,68,253,0.12), rgba(97,80,241,0.16)); transform: translateY(-1px); }
.cbld .sya-stage[data-theme="dark"] .syr-adcard { background: linear-gradient(135deg, rgba(5,68,253,0.18), rgba(97,80,241,0.20)); border-color: rgba(81,136,255,0.30); }
.cbld .sya-stage[data-theme="dark"] .syr-adcard:hover { background: linear-gradient(135deg, rgba(5,68,253,0.28), rgba(97,80,241,0.30)); }
.cbld .syr-adcard-logobox { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; overflow: hidden; background: #fff; }
.cbld .sya-stage[data-theme="dark"] .syr-adcard-logobox { background: rgba(255,255,255,0.92); }
.cbld .syr-adcard-logobox img { width: 100%; height: 100%; border-radius: 7px; object-fit: contain; }
.cbld .syr-adcard-txt { display: flex; flex-direction: row; align-items: baseline; gap: 8px; min-width: 0; flex: 1; }
.cbld .syr-adcard-name { flex: none; max-width: 60%; font-size: 14.5px; font-weight: 600; line-height: 1.2; color: #14161c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbld .sya-stage[data-theme="dark"] .syr-adcard-name { color: #f3f4f8; }
.cbld .syr-adcard-sub { flex: 1; min-width: 0; font-size: 11.5px; line-height: 1.2; color: rgba(20,22,28,0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbld .sya-stage[data-theme="dark"] .syr-adcard-sub { color: rgba(243,244,248,0.55); }
.cbld .syr-adcard-cta { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 26px; margin-left: 10px; padding: 0 12px; border-radius: 999px; font-family: "Roboto", "Helvetica Neue", Arial, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1; white-space: nowrap; background: #fff; color: #14161c; border: 1px solid #dddce5; cursor: pointer; }
.cbld .sya-stage[data-theme="dark"] .syr-adcard-cta { border-color: transparent; }
/* live .ts-ad-cta:hover */
.cbld .syr-adcard-cta { transition: background .14s ease, border-color .14s ease; }
.cbld .syr-adcard-cta:hover, .cbld .sya-stage[data-theme="dark"] .syr-adcard-cta:hover { background: #eef1f6; color: #14161c; }
.cbld .syr-adcard-x { flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 14px; line-height: 1; color: rgba(20,22,28,0.4); cursor: pointer; }
.cbld .sya-stage[data-theme="dark"] .syr-adcard-x { color: rgba(243,244,248,0.45); }
/* 18px tail fade instead of an ellipsis (live .ts-fade-r + .ts-fade-r--18,
   search.css) — the class is added from JS (pvFitAdRow) ONLY while the line
   overflows. */
.cbld .syr-fade-r { text-overflow: clip !important; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent); }
/* phones — live .mobile .ts-promo-ad--row (search.css): gap 8, no CTA, name
   over description, headline uncapped. position:sticky reproduces content.js
   fitRowToScroller for the 660px-wide mobile table inside the 440px canvas;
   pvFitAdRow sets the exact visible width on every fit pass.
   align-items MUST be stretch (live omits the property, so it is the default):
   both lines are nowrap, and under flex-start they would size to max-content —
   the fade would never fire and long copy would paint outside the card. */
.cbld .syr[data-mobile] .syr-adcard { gap: 8px; position: sticky; left: 0; }
.cbld .syr[data-mobile] .syr-adcard-txt { flex-direction: column; align-items: stretch; gap: 1px; }
.cbld .syr[data-mobile] .syr-adcard-name { max-width: none; text-overflow: clip; }
.cbld .syr[data-mobile] .syr-adcard-cta { display: none; }

/* ---- 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; }
/* ── Search promoted row — live parity with search.css .ts-promo-li/.ts-promo-ad
   (FINAL design). Every value is copied 1:1 from the live rules cited in the
   comments. The "Place ad ↗" edge pill is NOT rendered in the mock, so the row
   reproduces the live PYA-off state: advertiser CTA (desktop) + plain "Ad"
   badge. Panel chrome (.syr-sp / .syr-sp-bar / .syr-sp-body) is untouched.
   The live site is border-box via Bootstrap's reboot; this stylesheet has no
   reset, so declare it on the card or every height lands 2px over.
   FONT: .sya-search-wrap is a SIBLING of .syr, so --font-body/-display/-mono
   (declared on .cbld .syr) do NOT resolve in here — the literal Roboto stacks
   below are load-bearing, never replace them with var(). Side effect worth
   knowing: the ad card renders in Roboto while the trending/recent rows beside
   it stay system-ui. That is pre-existing mock chrome, not a regression. ── */
.cbld .syr-sp-ad, .cbld .syr-sp-ad *, .cbld .syr-sp-ad *::before, .cbld .syr-sp-ad *::after { box-sizing: border-box; }
/* live: .ts-promo-li padding 10px 8px 6px, card flush with the account rows'
   own left inset (here .syr-sp-row padding 8px 18px => margin-left/right 18px) */
.cbld .syr-sp-ad { position: relative; display: flex; align-items: center; gap: 12px; margin: 10px 18px 6px; min-height: 56px; padding: 0 14px; border-radius: 12px; font-family: Roboto, Arial, sans-serif; cursor: pointer; background: linear-gradient(135deg, rgba(5,68,253,0.08), rgba(97,80,241,0.10)); border: 1px solid rgba(5,68,253,0.22); transition: background 220ms cubic-bezier(0.22,0.61,0.36,1), transform 220ms cubic-bezier(0.22,0.61,0.36,1); }
.cbld .syr-sp-ad:hover { background: linear-gradient(135deg, rgba(5,68,253,0.12), rgba(97,80,241,0.16)); transform: translateY(-1px); }
.cbld .sya-stage[data-theme="dark"] .syr-sp-ad { background: linear-gradient(135deg, rgba(5,68,253,0.18), rgba(97,80,241,0.20)); border-color: rgba(81,136,255,0.30); }
.cbld .sya-stage[data-theme="dark"] .syr-sp-ad:hover { background: linear-gradient(135deg, rgba(5,68,253,0.28), rgba(97,80,241,0.30)); }
/* logo chip — live .ts-promo-ad__chip.--img: 34x34 r9 white tile, image r7 contain */
.cbld .syr-sp-ad-chip { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: #fff; }
.cbld .sya-stage[data-theme="dark"] .syr-sp-ad-chip { background: rgba(255,255,255,0.92); }
.cbld .syr-sp-ad-logo { width: 100%; height: 100%; border-radius: 7px; object-fit: contain; }
/* text column — live .ts-promo-ad__text: name over description, gap 1px */
.cbld .syr-sp-ad-txt { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.cbld .syr-sp-ad-name { font-size: 14.5px; font-weight: 600; line-height: 1.2; color: #14161c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbld .sya-stage[data-theme="dark"] .syr-sp-ad-name { color: #f3f4f8; }
/* description: live fades the tail over 18px (.ts-fade-r--18) instead of an
   ellipsis, and it toggles that mask from JS only while the text overflows
   (footer.html tsPromoApplyFade). This used to carry the mask unconditionally
   on the claim that "the box is the full text column, so for short copy the
   fade falls on empty space" — which is false: the default tagline fits with
   2.9px to spare on the phone board, so 15.1px of its ink sat inside the 18px
   gradient and the last letter came out at 16% alpha. Measured: the tail loses
   77% of its contrast over the last ~11px. The fade now rides the shared
   .syr-fade-r class like the other three slots, toggled by pvFitSearchFade. */
.cbld .syr-sp-ad-sub { font-size: 11.5px; line-height: 1.2; color: rgba(20,22,28,0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbld .sya-stage[data-theme="dark"] .syr-sp-ad-sub { color: rgba(243,244,248,0.55); }
/* right slot — live .ts-promo-ad__right: CTA → badge → arrow, gap 9px */
.cbld .syr-sp-ad-right { display: inline-flex; align-items: center; gap: 9px; flex: none; }
/* advertiser CTA — live .ts-ad-cta + .ts-search-cta: white pill in BOTH themes,
   h24 / 0 11px / 11px 700 .02em, flex:none, #eef1f6 on hover */
/* line-height:1 — the pill centres its line box, and only at 1 does the label's
   ink land on the centre too (same rule as live .ts-ad-cta). */
.cbld .syr-sp-cta { display: inline-flex; align-items: center; justify-content: center; line-height: 1; flex: none; height: 24px; padding: 0 11px; border-radius: 999px; font-family: "Roboto", "Helvetica Neue", Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; background: #fff; color: #14161c; border: 1px solid #dddce5; cursor: pointer; transition: background .14s ease, border-color .14s ease; }
.cbld .sya-stage[data-theme="dark"] .syr-sp-cta { color: #14161c; border-color: transparent; }
.cbld .syr-sp-cta:hover, .cbld .sya-stage[data-theme="dark"] .syr-sp-cta:hover { background: #eef1f6; color: #14161c; }
/* arrow — live TS_PROMO_ARROW: 17x17, stroke-width 2, muted, hover slides */
.cbld .syr-sp-ad-arrow { display: inline-flex; flex: none; color: rgba(20,22,28,0.4); transition: transform .14s ease, color .14s ease; }
.cbld .syr-sp-ad-arrow svg { width: 17px; height: 17px; stroke-width: 2; }
.cbld .sya-stage[data-theme="dark"] .syr-sp-ad-arrow { color: rgba(243,244,248,0.45); }
.cbld .syr-sp-ad:hover .syr-sp-ad-arrow { color: #4f7bff; transform: translateX(2px); }
.cbld .sya-stage[data-theme="dark"] .syr-sp-ad:hover .syr-sp-ad-arrow { color: #93acff; }
/* phones — live hides the advertiser button under body.mobile
   (.mobile .ts-promo-li .ts-search-cta): badge + arrow stay */
.cbld .sya-stage-mobile .syr-sp-cta { display: none; }
.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) ---- */
/* live card: banners.css .ts-popup-ad — 324 wide, r16, hairline + soft shadow.
   Position/transform/z-index are mock chrome and stay as they were. The font
   tokens are redeclared here because the popup renders OUTSIDE .syr, where the
   mock defines them, so var(--font-display) was resolving to nothing. */
.cbld .syr-popup { box-sizing: border-box; width: 324px; border-radius: 16px; position: absolute; bottom: 24px; right: 24px; border: 1px solid rgba(0,0,0,0.10); box-shadow: 0 18px 48px rgba(0,0,0,0.18); overflow: hidden; background: #ffffff; transform: scale(var(--site-zoom, 1)); transform-origin: bottom right; z-index: 300; --font-display: Poppins, Roboto, Arial, sans-serif; --font-body: Roboto, Arial, sans-serif; font-family: var(--font-body); }
.cbld .syr-popup-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 24px; height: 24px; padding: 0; border-radius: 50%; background: rgba(16,16,20,0.5); border: none; color: rgba(255,255,255,0.85); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background 130ms; }
.cbld .syr-popup-x:hover { background: rgba(16,16,20,0.7); color: #fff; }
.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; }
/* live body pad is 14px 16px 16px; for image/generated creatives the title row
   is hidden but still contributes its 6px bottom margin -> 20px above the text */
.cbld .syr-popup-light { background: #ffffff; padding: 20px 16px 16px; text-align: center; }
.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: 14px; color: #6d6f74; line-height: 1.5; margin: 0 0 12px; }
.cbld .sya-stage[data-theme="dark"] .syr-popup { background: #17181c; border-color: rgba(255,255,255,0.09); box-shadow: 0 18px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.2); }
.cbld .sya-stage[data-theme="dark"] .syr-popup-light { background: #17181c; }
.cbld .sya-stage[data-theme="dark"] .syr-popup-ltxt { color: #9b9ca0; }
.cbld .syr-popup-contact { width: 100%; border: none; border-radius: 10px; height: 42px; background: var(--pv-accent, #0544fd); color: #fff; font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; transition: background .15s ease; }
/* live banners.css: hover lightens the accent, active darkens it */
.cbld .syr-popup-contact:hover { background: color-mix(in srgb, var(--pv-accent, #0544fd) 72%, #fff); }
.cbld .syr-popup-contact:active { background: color-mix(in srgb, var(--pv-accent, #0544fd) 82%, #000); }
.cbld .syr-popup.syr-popup-img { background: #fff; }
.cbld .sya-stage[data-theme="dark"] .syr-popup.syr-popup-img { background: #17181c; }
/* 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. */
/* live .ts-popup-ad__image is 152px tall on its own dark canvas, so a
   transparent or broken creative never flashes the card surface */
.cbld .syr-popup-imghead { position: relative; line-height: 0; height: 152px; overflow: hidden; background: radial-gradient(560px 220px at 80% -60%, rgba(5,68,253,0.28), transparent 70%), radial-gradient(420px 200px at 8% 160%, rgba(64,229,48,0.10), transparent 70%), #151515; }
.cbld .syr-popup-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Logo-only generated popup header (mirrors the PIL _gen_popup style) */
/* The served asset is _gen_popup(957x300) cover-cropped into the 324x152
   header: scale 152/300 = .5067, x-offset -80.45. Every number below is a PIL
   value pushed through that mapping (canvas RGB(18,18,22); glow alphas 64/255
   and 34/255; tile .48h r.3t; name .145h; underline max(48,.06w)x6). PIL fills
   the ellipses hard-edged — a small blur is the closest honest CSS. */
.cbld .syr-popup-genhead { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #121216; }
.cbld .syr-popup-genhead::before { content: ""; position: absolute; width: 325px; height: 251px; border-radius: 50%; left: 201px; top: -137px; background: var(--pv-accent); opacity: .251; filter: blur(10px); }
.cbld .syr-popup-genhead::after { content: ""; position: absolute; width: 243px; height: 160px; border-radius: 50%; left: -158px; top: 84px; background: var(--pv-accent); opacity: .133; filter: blur(10px); }
/* NO rim, a soft shadow instead - matching _tile_shadow in the PIL generator.
   A rim cannot be even here: the tile paints at 73px, so any stroke thin enough
   to read as a rim lands on ~1.3px, while the error from fitting a rounded
   contour to the pixel grid is ~0.4px whatever you draw. A blur has no hard
   sub-pixel edge, so it survives at any size. PIL sigma 9 / 10.8 at the asset's
   scale (.507, and a CSS blur is ~2x a sigma) = 9px and 11px here. */
.cbld .syr-popup-gentile { position: relative; z-index: 1; box-sizing: border-box; width: 73px; height: 73px; border-radius: 22px; display: grid; place-items: center; background: rgba(255,255,255,.03); box-shadow: 0 4px 11px rgba(0,0,0,.43), 0 0 9px 3px color-mix(in srgb, var(--pv-accent) 35%, transparent); line-height: 0; overflow: hidden; }
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
    .cbld .syr-popup-gentile { box-shadow: 0 4px 11px rgba(0,0,0,.43); }
}
/* the logo fills the tile, like the PIL _gen_popup / _gen_banner creatives */
.cbld .syr-popup-img .syr-popup-gentile img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
/* PIL draws the name with seguisb/arialbd/DejaVuSans-Bold — a neutral
   grotesque, never a geometric display face, so pin it to the body font. */
.cbld .syr-popup-genname { position: relative; z-index: 1; font-family: var(--font-body); font-weight: 700; font-size: 22px; color: #fff; line-height: 1.1; text-align: center; max-width: 86%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbld .syr-popup-genbar { position: relative; z-index: 1; width: 29px; height: 3px; border-radius: 3px; background: var(--pv-accent); }
.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; }

/* 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: #ffffff; border-width: 1px 0 0; border-color: rgba(0,0,0,0.10); 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: #17181c; border-top-color: rgba(255,255,255,0.09); box-shadow: 0 -8px 34px rgba(0,0,0,0.5); }
.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 { box-sizing: border-box; width: 58px; height: 58px; border-radius: 13px; object-fit: cover; background: #fff; border: 1px solid rgba(0,0,0,0.08); flex: none; }
.cbld .sya-stage[data-theme="dark"] .syr-popup-sheet-logo { background: transparent; border-color: transparent; }
.cbld .syr-popup-sheet-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cbld .syr-popup-sheet-hrow { display: flex; align-items: center; gap: 8px; }
.cbld .syr-popup-sheet-h { font-weight: 700; font-size: 17px; color: #14161c; line-height: 1.2; text-align: left; min-width: 0; }
.cbld .sya-stage[data-theme="dark"] .syr-popup-sheet-h { color: #f3f4f8; }
.cbld .syr-popup-sheet-p { font-size: 13.5px; color: #6d6f74; line-height: 1.4; margin: 0; text-align: left; }
.cbld .sya-stage[data-theme="dark"] .syr-popup-sheet-p { color: #9b9ca0; }
.cbld .syr-popup-sheet-btn { width: 100%; height: 48px; border: none; border-radius: 12px; background: var(--pv-accent, #0544fd); color: #fff; font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; transition: background .15s ease; }
.cbld .syr-popup-sheet-btn:hover { background: color-mix(in srgb, var(--pv-accent, #0544fd) 72%, #fff); }
.cbld .syr-popup-sheet-btn:active { background: color-mix(in srgb, var(--pv-accent, #0544fd) 82%, #000); }
.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; }
  /* Stacked, the two panes are ~950px tall — taller than any phone. The card
     base rule scrolls (overflow:auto) but .cbld-checkout re-set overflow:hidden
     at equal specificity, so the pay buttons and the close ✕ were clipped off
     and a purchase could not be completed on a phone. Scroll the card, cap it
     to the *visible* viewport (dvh — iOS toolbars), start it at the top, and
     pin the ✕ (it lives inside the second pane, i.e. mid-card) to the corner. */
  .cbld-modal { align-items: flex-start; }
  .cbld-checkout {
    overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  }
  .cbld-checkout .cbld-modal-x { position: fixed; top: 24px; right: 24px; width: 36px; height: 36px; }
  /* iOS Safari zooms the page on focus when an input is under 16px, and stays
     zoomed after blur — the builder then hangs off the right edge. */
  .cbld-f input, .cbld-date { font-size: 16px; }
}
/* the server-side UA class covers phones wider than 680px in landscape */
.mobile .cbld-f input, .mobile .cbld-date { font-size: 16px; }
/* thumbs: the segmented controls (Desktop/Mobile, Start now/Pick a date) and
   the duration presets were ~30px tall */
@media (pointer: coarse) {
  .cbld-seg, .cbld-view, .cbld-mark { min-height: 40px; }
}

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