/* ============================================================
   ZAILY — campaigns (design preview, 2026-11-23).
   Built on the real tokens (style.css) and the real results-card classes (campaigns-res.css, lifted from dashboard.html).
   Three layouts share the same pieces: A = the case file (.cmp-case), B = the plan receipt (.pp), C = the wall (.wall / .tile).
   ============================================================ */

/* ---- shared bits ---- */
.cmp-eb { font: 500 .66rem 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.cmp-plan-chip { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 7px; border: 1px solid var(--rule); border-radius: 999px; background: var(--white); font: 600 .82rem 'Archivo', sans-serif; color: var(--ink); white-space: nowrap; }
.cmp-plan-chip img { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; display: block; }
.cmp-plan-chip span { font-weight: 400; color: var(--steel); }
.cmp-ip { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font: 400 .78rem 'IBM Plex Mono', monospace; color: var(--steel); }
.cmp-ip code { padding: 2px 8px; border: 1px solid var(--rule-soft); border-radius: 4px; background: var(--panel-2); color: var(--ink); font: 500 .8rem 'IBM Plex Mono', monospace; }
.cmp-link { font: 600 .9rem 'Archivo', sans-serif; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; white-space: nowrap; }
.cmp-link:hover { color: var(--signal-ink); border-color: var(--signal); }
.cmp-cta { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: var(--signal); color: #fff; font: 600 .92rem 'Archivo', sans-serif; text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s; border: 0; cursor: pointer; }
.cmp-cta:hover { background: var(--signal-ink); transform: translateY(-1px); }
.cmp-cta svg { width: 16px; height: 16px; flex: none; }
.cmp-cta.is-ink { background: var(--ink); }
.cmp-cta.is-ink:hover { background: var(--signal-ink); }
.cmp-src { font: 400 .72rem/1.5 'IBM Plex Mono', monospace; color: var(--steel); }
.cmp-src::before { content: "↳ "; }

/* the three posters: real frames of the three most viewed videos */
.cmp-vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cmp-poster { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: #1B2128; color: #fff; text-decoration: none; isolation: isolate; }
.cmp-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cmp-poster::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,17,22,.45) 0%, rgba(14,17,22,0) 30%, rgba(14,17,22,0) 52%, rgba(14,17,22,.88) 100%); }
.cmp-poster .rk { position: absolute; top: 7px; left: 8px; font: 600 .6rem 'IBM Plex Mono', monospace; letter-spacing: .1em; }
.cmp-poster .n { position: absolute; left: 8px; right: 6px; bottom: 8px; font: 800 1.2rem/1 'Archivo', sans-serif; font-variation-settings: 'wdth' 108; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cmp-poster .n small { display: block; margin-top: 3px; font: 500 .52rem 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }

/* ================= A — the case file ================= */
.cmp-list { display: grid; gap: clamp(28px, 4vw, 44px); }
.cmp-case { background: var(--white); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.cmp-head { display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; padding: 20px 26px; border-bottom: 1px solid var(--rule-soft); background: linear-gradient(100deg, #EBF6E4 0%, #FFFFFF 55%); }
.cmp-id { display: grid; gap: 6px; min-width: 0; flex: 1 1 260px; }
.cmp-id h3 { font: 700 1.5rem/1.05 'Archivo', sans-serif; font-variation-settings: 'wdth' 108; letter-spacing: -.02em; color: var(--ink); }
.cmp-head .cmp-plan-chip { margin-left: auto; }
.cmp-body { display: grid; grid-template-columns: minmax(0, 1fr) 292px; }
.cmp-main { min-width: 0; }
.cmp-case .res-hero { border: 0; border-radius: 0; }
.cmp-case .res-chart { margin-top: 0; border: 0; border-top: 1px solid var(--rule-soft); border-radius: 0; padding: 18px 26px 18px; }
.cmp-side { border-left: 1px solid var(--rule-soft); padding: 22px 22px 22px; display: flex; flex-direction: column; gap: 14px; background: var(--panel-2); }
.cmp-side-note { font: 400 .78rem/1.5 'Archivo', sans-serif; color: var(--steel); }
.cmp-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 16px 26px; border-top: 1px solid var(--rule-soft); background: var(--white); }
.cmp-foot-act { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
.cmp-filter { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 30px); }
.cmp-filter .seg { height: 42px; }
.cmp-filter .seg-btn b { margin-left: 7px; font: 500 .72rem 'IBM Plex Mono', monospace; opacity: .6; }
.cmp-cta-band { display: flex; gap: 32px; align-items: center; justify-content: space-between; padding: 34px 38px; border: 1px solid var(--rule); border-radius: 14px; background: linear-gradient(100deg, #D9EDCC 0%, #EBF6E4 45%, #FFFFFF 100%); }
.cmp-cta-band h3 { font: 800 clamp(1.8rem, 3vw, 2.5rem)/1.05 'Archivo', sans-serif; font-variation-settings: 'wdth' 112; letter-spacing: -.035em; color: var(--ink); }
.cmp-cta-band p { margin-top: 10px; max-width: 52ch; font: 400 1rem/1.5 'Archivo', sans-serif; color: var(--ink-2); }

/* line chart (running total) for the campaigns of more than 14 videos */
.cmp-line .res-area { overflow: visible; }
.cmp-line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cmp-line .ln { fill: none; stroke: var(--chart-line); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.cmp-line .ar { fill: var(--chart-line); opacity: .08; }
.cmp-line .dt { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--white); border: 2px solid var(--chart-line); transform: translate(-50%, -50%); }
.cmp-xl { display: flex; justify-content: space-between; margin: 8px 0 0 38px; font: 400 .66rem 'IBM Plex Mono', monospace; color: var(--steel); }

/* ================= B — the plan receipt ================= */
.pp { position: relative; display: grid; grid-template-columns: 330px minmax(0, 1fr); background: var(--white); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-md); overflow: hidden; }
.pp-plan { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 26px 26px; background: linear-gradient(180deg, #D9EDCC 0%, #EBF6E4 55%, #FFFFFF 100%); }
.pp-plan .ico { width: 72px; height: 72px; margin: 2px 0 10px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(14,17,22,.12)); }
.pp-plan .nm { font: 700 1.25rem 'Archivo', sans-serif; font-variation-settings: 'wdth' 105; letter-spacing: -.01em; color: var(--ink); }
.pp-plan .cad { margin-top: 12px; font: 500 .72rem 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--signal-ink); }
.pp-plan .pr { margin-top: 4px; font: 800 3.7rem/1 'Archivo', sans-serif; font-variation-settings: 'wdth' 112; letter-spacing: -.04em; color: var(--ink); }
.pp-plan .pe { margin-top: 8px; font: 600 .9rem 'Archivo', sans-serif; color: var(--ink); }
.pp-plan .pe span { font-weight: 400; color: var(--steel); }
.pp-plan .cmp-cta { margin-top: 20px; width: 100%; justify-content: center; background: var(--ink); }
.pp-plan .cmp-cta:hover { background: var(--signal-ink); }
.pp-plan ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; font: 400 .82rem 'Archivo', sans-serif; color: var(--ink-2); }
.pp-plan ul li::before { content: "✓"; margin-right: 8px; color: var(--signal-ink); font-weight: 700; }
.pp-seam { position: absolute; z-index: 2; top: 104px; right: -21px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 0 0 5px var(--white); }
.pp-seam svg { width: 18px; height: 18px; }
.pp-res { min-width: 0; display: flex; flex-direction: column; border-left: 1px solid var(--rule-soft); }
.pp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding: 14px 24px 14px 36px; border-bottom: 1px solid var(--rule-soft); }
.pp-bar-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pp-bar-l .nm { font: 700 1.05rem 'Archivo', sans-serif; letter-spacing: -.01em; }
.pp-pick { display: flex; gap: 6px; }
.pp-pick button { appearance: none; cursor: pointer; padding: 0; border: 1px solid var(--rule-soft); border-radius: 6px; background: var(--white); opacity: .55; transition: opacity .12s, border-color .12s; }
.pp-pick button:hover { opacity: 1; }
.pp-pick button[aria-pressed="true"] { opacity: 1; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pp-pick .sv-logo { width: 62px; height: 30px; --px: 4px; --py: 3px; border: 0; background: transparent; }
.pp-res .res-hero { border: 0; border-radius: 0; padding-left: 10px; }
.pp-res .res-main { padding-left: 26px; }
.pp-lower { display: grid; grid-template-columns: minmax(0, 1fr) 250px; border-top: 1px solid var(--rule-soft); }
.pp-res .res-chart { margin: 0; border: 0; border-radius: 0; padding: 16px 22px 14px 26px; }
.pp-res .res-plot { margin-top: 20px; }
.pp-res .res-y, .pp-res .res-area { height: 168px; }
.pp-vids-col { padding: 16px 22px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.pp-foot-cta { display: none; }
.pp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px 22px; flex-wrap: wrap; padding: 14px 24px 14px 36px; border-top: 1px solid var(--rule-soft); background: var(--panel-2); }
.pp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 auto clamp(18px, 2.5vw, 26px); max-width: 640px; background: var(--white); border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
.pp-tab { appearance: none; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 12px; background: transparent; color: var(--ink); font: 600 .95rem 'Archivo', sans-serif; text-align: left; }
.pp-tab + .pp-tab { border-left: 1px solid var(--rule-soft); }
.pp-tab:hover { background: var(--panel-2); }
.pp-tab img { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; display: block; flex: none; }
.pp-tab span { display: block; font: 400 .72rem 'IBM Plex Mono', monospace; color: var(--steel); }
.pp-tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.pp-tab[aria-selected="true"] span { color: #AEB6C0; }

/* ================= C — the wall ================= */
.wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 20px 20px 16px; text-align: left; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow-sm); cursor: pointer; font: inherit; color: inherit; transition: box-shadow .15s, transform .15s, border-color .15s; }
.tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--ink); }
.tile:focus-visible { outline: 2px solid var(--chart-line); outline-offset: 2px; }
.tile-top { display: flex; align-items: center; gap: 12px; }
.tile-top .sv-logo { width: 64px; height: 36px; --px: 4px; --py: 3px; }
.tile-top .nm { font: 700 1.05rem/1.15 'Archivo', sans-serif; letter-spacing: -.01em; color: var(--ink); }
.tile-top .nm small { display: block; margin-top: 3px; font: 400 .68rem 'IBM Plex Mono', monospace; color: var(--steel); letter-spacing: 0; }
.tile-foot .cmp-plan-chip { padding: 3px 11px 3px 5px; font-size: .74rem; }
.tile-foot .cmp-plan-chip img { width: 20px; height: 20px; }
.tile-big { font: 800 clamp(2.5rem, 4vw, 3.2rem)/1 'Archivo', sans-serif; font-variation-settings: 'wdth' 108; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--ink); }
.tile-big small { display: block; margin-top: 8px; font: 500 .66rem 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.tile-split { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; }
.tile-split i { display: block; height: 100%; min-width: 3px; }
.tile-lg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: -6px; font: 500 .68rem 'IBM Plex Mono', monospace; color: var(--steel); }
.tile-lg span { display: inline-flex; align-items: center; gap: 5px; }
.tile-lg i { width: 8px; height: 8px; border-radius: 2px; display: block; }
.tile-spark { display: flex; align-items: flex-end; gap: 3px; height: 46px; }
.tile-spark i { flex: 1 1 0; min-width: 2px; border-radius: 2px 2px 0 0; background: var(--rule); }
.tile-spark.is-line { display: block; }
.tile-spark.is-line svg { display: block; width: 100%; height: 100%; }
.tile-spark.is-line .ln { fill: none; stroke: var(--chart-line); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tile-spark.is-line .ar { fill: var(--chart-line); opacity: .1; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--rule-soft); font: 400 .72rem 'IBM Plex Mono', monospace; color: var(--steel); }
.tile-foot b { font: 600 .82rem 'Archivo', sans-serif; color: var(--ink); }
.cmp-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; padding: clamp(14px, 4vw, 48px) 14px; background: rgba(14, 17, 22, .62); overflow-y: auto; }
.cmp-modal.on { display: flex; }
.cmp-modal-box { position: relative; width: min(1040px, 100%); }
.cmp-modal-x { position: absolute; z-index: 3; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule); background: var(--white); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.cmp-modal-x:hover { background: var(--ink); color: #fff; }
body.cmp-lock { overflow: hidden; }
.cmp-modal .cmp-head { padding-right: 64px; }
/* the campaign dialog stays dark, like the stage it opens from (2026-11-25): the same dark variables as the stage cards */
.cmp-modal { background: rgba(6, 9, 12, .78); }
.cmp-modal-box {
  --white: #161C22; --panel: #0F1418; --panel-2: #11171C; --ink: #EEF2F0; --ink-2: #C5CEC9; --steel: #8E9AA5;
  --rule: #2A323A; --rule-soft: #232B33; --signal-ink: #7EE2A3; --signal-wash: rgba(61, 214, 140, .14); --chart-line: #3DD68C; --pf-tt: #E4E8EC;
  color: var(--ink);
}
.cmp-modal-box .cmp-case { border-color: #2A323A; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.cmp-modal-box .cmp-head { background: linear-gradient(100deg, rgba(61, 214, 140, .13) 0%, rgba(22, 28, 34, 0) 58%), var(--white); }
.cmp-modal-box .cmp-modal-x:hover { background: #fff; color: #0E1116; }
.cmp-modal-box .sv-logo { background: transparent; border-color: transparent; }      /* the logos are transparent: straight on the dark header, no white tile */
.cmp-modal-box .cmp-cta:hover { background: #38962A; }               /* --signal-ink turns light in the dark theme: keep white text readable */

/* A: the side column is as tall as the card, so the most viewed video gets the big poster */
@media (min-width: 1081px) {
  .cmp-side .cmp-vids { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cmp-side .cmp-poster:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .cmp-side .cmp-poster:first-child .n { font-size: 2.1rem; }
}
/* C: the last cell of the wall is the way in */
.tile.is-cta { justify-content: center; align-items: flex-start; gap: 14px; background: linear-gradient(160deg, #D9EDCC 0%, #EBF6E4 55%, #FFFFFF 100%); border-style: dashed; border-color: var(--signal); cursor: default; }
.tile.is-cta:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--signal); }
.tile.is-cta h4 { font: 800 clamp(1.7rem, 2.6vw, 2.2rem)/1.05 'Archivo', sans-serif; font-variation-settings: 'wdth' 112; letter-spacing: -.035em; color: var(--ink); }
.tile.is-cta p { font: 400 .95rem/1.45 'Archivo', sans-serif; color: var(--ink-2); max-width: 30ch; }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-body { grid-template-columns: minmax(0, 1fr); }
  .cmp-side { border-left: 0; border-top: 1px solid var(--rule-soft); }
  .cmp-side .cmp-vids { max-width: 360px; }
  .pp-lower { grid-template-columns: minmax(0, 1fr); }
  .pp-vids-col { padding: 0 22px 18px 36px; }
  .pp-vids-col .cmp-vids { max-width: 330px; }
}
@media (max-width: 900px) {
  .pp { grid-template-columns: minmax(0, 1fr); }
  .pp-seam { top: auto; right: auto; bottom: -21px; left: 50%; margin-left: -21px; transform: rotate(90deg); }
  .pp-plan { padding: 22px 22px 40px; }
  .pp-plan .ico { width: 52px; height: 52px; margin-bottom: 6px; }
  .pp-plan .pr { font-size: 3.2rem; }
  .pp-bar { padding-top: 38px; }
  .pp-foot-cta { display: inline-flex !important; }
  .pp-res { border-left: 0; }
  .pp-bar, .pp-foot { padding-left: 24px; }
  .pp-res .res-main { padding-left: 18px; }
  .pp-vids-col { padding-left: 24px; }
  .pp-tab { flex-direction: column; gap: 4px; text-align: center; padding: 8px 6px; font-size: .86rem; }
  .cmp-cta-band { flex-direction: column; align-items: stretch; padding: 28px 24px; gap: 18px; }
}
@media (max-width: 640px) {
  .wall { grid-template-columns: minmax(0, 1fr); }
  .cmp-head { padding: 16px 18px; }
  .cmp-head .cmp-plan-chip { margin-left: 0; }
  .cmp-case .res-chart { padding: 16px 12px 12px; }
  .cmp-foot { padding: 14px 18px; }
  .cmp-foot-act { width: 100%; }
  .cmp-foot-act .cmp-cta { width: 100%; justify-content: center; }
  .pp-res .res-chart { padding: 16px 12px 12px 14px; }
  .pp-foot .cmp-cta { width: 100%; justify-content: center; }
  .cmp-xl { margin-left: 30px; }
}

/* ================= D — the campaigns stage (v4, 2026-11-25, review) =================
   The tabs pick the server, so a slide never repeats it. A slide = the plan (centred), then the results straight on the stage in this
   order: the chart, the split by platform, the top videos; the button to the full campaign sits at the bottom.
   No fake browser, no logo, no "Paid" / "Got", no total counter. The cards wear dark variables (same classes as the dashboard cards). */
.cr-block { margin: 0 0 clamp(36px, 5vw, 60px); }
/* the stage is its own band above "Every video we've published" (2026-11-24) */
.cr-band { padding-block: clamp(36px, 5vw, 64px) clamp(40px, 5.5vw, 72px); }
.dx-stage { position: relative; padding: clamp(24px, 3.2vw, 40px); border-radius: 20px; background: var(--ink); color: #fff; border: 1px solid #1F262E; box-shadow: var(--shadow-lg); overflow: hidden; }
.dx-head { display: block; }
.dx-tt .cmp-eb { color: #7FD3AC; }
.dx-tt h3 { margin-top: 10px; font: 800 clamp(1.9rem, 3.4vw, 2.9rem)/1.02 'Archivo', sans-serif; font-variation-settings: 'wdth' 112; letter-spacing: -.04em; color: #fff; max-width: 20ch; }
.dx-tt p { margin-top: 12px; max-width: 52ch; font: 400 1.02rem/1.5 'Source Serif 4', serif; color: #B4BDC7; }
.dx-tab:focus-visible, .dx-open:focus-visible { outline: 2px solid #17C775; outline-offset: 2px; }

/* the tabs are the only navigation: they pick the server */
.dx-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; margin: clamp(22px, 3vw, 32px) 0 clamp(22px, 3vw, 30px); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dx-tabs::-webkit-scrollbar { display: none; }
.dx-tabs.is-more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
/* a server card (2026-11-25: bigger). The green bar at its foot is the progress of the slideshow: it fills while the campaign is on screen, then the next one comes. */
.dx-tab { position: relative; appearance: none; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 18px 26px; text-align: center; font: inherit; color: #B4BDC7; background: transparent; border: 1px solid #2C343D; border-radius: 12px; cursor: pointer; overflow: hidden; transition: background .2s, border-color .2s, color .2s; }
.dx-tab:hover { border-color: #4A5561; }
/* the logo sits straight on the dark card (2026-11-25, no white tile), in ONE rectangle that is the same on every card (full card width x 56px):
   centred, fitted whole (`contain`: never stretched, never cropped, never enlarged to measure), the name and the plan centred under it */
.dx-tab .sv-logo { flex: none; width: 100%; height: 56px; --px: 0px; --py: 0px; background: transparent; border: 0; border-radius: 0; overflow: hidden; }
.dx-tab .sv-logo img { object-fit: contain; object-position: center; }
.dx-tab .t { display: block; min-width: 0; max-width: 100%; }
.dx-tab .t b { display: block; font: 600 1.12rem/1.15 'Archivo', sans-serif; letter-spacing: -.015em; color: inherit; }   /* the full name always: it wraps rather than being cut */
.dx-tab .t small { display: block; margin-top: 6px; font: 400 .76rem 'IBM Plex Mono', monospace; color: #8B95A1; white-space: nowrap; }
.dx-tab[aria-selected="true"] { background: #161B21; border-color: #4A5561; color: #fff; }
.dx-tab[aria-selected="true"] .t small { color: #B4BDC7; }
.dx-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; }
.dx-tab[aria-selected="true"] .dx-prog { background: rgba(23, 199, 117, .18); }
.dx-prog i { display: block; width: 100%; height: 100%; background: #17C775; transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

.dx-viewport { overflow: hidden; }
.dx-track { display: flex; transition: transform .85s cubic-bezier(.2, .8, .2, 1); }
.dx-slide { flex: 0 0 100%; min-width: 0; padding-inline: 1px; /* a card border flush on the clip edge would be shaved at some zoom levels */ }
@media (prefers-reduced-motion: reduce) { .dx-track { transition: none; } }

/* the plan, centred */
/* the plan, centred: icon, name over how many videos, the price, and the green arrow (the whole block is the way to choose this plan) */
.dx-plan { display: flex; flex-direction: column; align-items: center; gap: 9px; width: fit-content; max-width: 100%; margin: 0 auto clamp(20px, 2.4vw, 28px); padding: 4px 10px; border-radius: 16px; color: #fff; text-decoration: none; }
.dx-plan .row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.dx-plan img { flex: none; width: 46px; height: 46px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0,0,0,.4)); }
.dx-plan b { font: 700 1.12rem/1.1 'Archivo', sans-serif; color: #fff; }
.dx-plan small { font: 400 .8rem 'IBM Plex Mono', monospace; letter-spacing: .01em; color: #B4BDC7; text-align: center; }
.dx-plan i { font: 800 2.15rem/1 'Archivo', sans-serif; font-style: normal; font-variation-settings: 'wdth' 112; letter-spacing: -.04em; color: #fff; }
.dx-plan .go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #17C775; color: #06130C; transition: transform .18s, background .18s; }
.dx-plan .go svg { width: 18px; height: 18px; }
.dx-plan:hover .go { transform: translateX(3px); background: #3DD68C; }
.dx-plan:focus-visible { outline: 2px solid #17C775; outline-offset: 3px; }

/* the results: the chart across, then the platforms (left half) beside the top videos (right half); one column on a phone */
.dx-board {
  --white: #161C22; --panel: #0F1418; --panel-2: #11171C; --ink: #EEF2F0; --ink-2: #C5CEC9; --steel: #8E9AA5;
  --rule: #2A323A; --rule-soft: #232B33; --signal-ink: #7EE2A3; --signal-wash: rgba(61, 214, 140, .14); --chart-line: #3DD68C; --pf-tt: #E4E8EC;
  color: var(--ink);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "chart chart" "plats side"; gap: 16px; align-items: stretch;
}
.dx-chart { grid-area: chart; min-width: 0; }
.dx-plats { grid-area: plats; }
.dx-side { grid-area: side; min-width: 0; }
.dx-board .res-chart { margin-top: 0; border-radius: 8px; }
.dx-board .res-y, .dx-board .res-area { height: 220px; }
.dx-board .res-plot { margin-top: 18px; }
.dx-board .res-xs.is-ends div { font-size: .66rem; letter-spacing: 0; color: var(--steel); white-space: nowrap; }

/* 4 platforms: 2 x 2; 3: the last one across; 1 or 2: one per row. The rows share the height of the top-videos card beside them. */
.dx-plats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.dx-plats.n-1, .dx-plats.n-2 { grid-template-columns: minmax(0, 1fr); }
.dx-plats.n-3 .dx-pcell:last-child { grid-column: 1 / -1; }
.dx-pcell { display: flex; flex-direction: column; min-width: 0; padding: 16px 16px 15px; background: var(--white); border: 1px solid var(--rule-soft); border-radius: 8px; }
.dx-pt { display: flex; align-items: center; gap: 8px; font: 500 .72rem 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.dx-pt img { width: 18px; height: 18px; border-radius: 4px; display: block; }
.dx-pnum { display: block; margin-top: auto; padding-top: 10px; font: 800 1.9rem/1 'Archivo', sans-serif; font-variation-settings: 'wdth' 108; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--ink); }
.dx-pcell .bar { margin-top: 12px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.dx-pcell .bar i { display: block; height: 100%; border-radius: 3px; }
.dx-handle { display: block; margin-top: 12px; font: 500 .78rem 'IBM Plex Mono', monospace; color: var(--ink-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.dx-handle::after { content: " ↗"; font-family: 'Archivo', sans-serif; opacity: .5; }
a.dx-handle:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
a.dx-handle:hover::after { opacity: 1; color: #3DD68C; }

.dx-card { display: flex; flex-direction: column; height: 100%; padding: 18px; background: var(--white); border: 1px solid var(--rule-soft); border-radius: 8px; min-width: 0; }
.dx-ct { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
/* the top videos: 3 at a time, the next 3 slide in; the dots show the page */
.dx-dots { display: inline-flex; align-items: center; gap: 7px; }
.dx-dot { position: relative; appearance: none; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: #3A444E; cursor: pointer; transition: width .25s, background .25s; }
.dx-dot::before { content: ""; position: absolute; inset: -9px -4px; }                  /* a bigger target for a finger */
.dx-dot[aria-current="true"] { width: 20px; background: #17C775; }
.dx-dot:focus-visible { outline: 2px solid #17C775; outline-offset: 3px; }
.dx-top { flex: 1 1 auto; display: flex; align-items: center; min-width: 0; overflow: hidden; }
.dx-ttrack { display: flex; width: 100%; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.dx-page { flex: 0 0 100%; min-width: 0; display: flex; align-items: center; }
.dx-card .cmp-vids { gap: 8px; width: 100%; max-width: 560px; margin: auto; }              /* the posters sit in the middle of the card, not stuck under its title */
.dx-card .cmp-poster { border-radius: 6px; }
.dx-card .cmp-poster .n { font-size: 1.2rem; }
.cmp-poster:focus-visible { outline: 2px solid #17C775; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dx-ttrack, .dx-dot { transition: none; } }

/* the button to the full campaign: at the bottom, centred */
.dx-foot { display: flex; justify-content: center; margin-top: clamp(22px, 2.8vw, 30px); }
.dx-open { appearance: none; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border: 1px solid #4A5561; border-radius: 999px; background: transparent; color: #fff; font: 600 .9rem 'Archivo', sans-serif; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.dx-open:hover { background: #fff; color: #0E1116; border-color: #fff; }
.dx-open svg { width: 15px; height: 15px; }

@media (max-width: 960px) {
  .dx-board { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chart" "plats" "side"; }
  .dx-plats { grid-auto-rows: auto; }
  .dx-plats.n-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dx-pnum { margin-top: 0; }
  .dx-card { height: auto; }
}
@media (max-width: 720px) {
  .dx-board { gap: 12px; }
  .dx-plats { gap: 8px; }
  .dx-pcell { padding: 12px 12px 11px; }
  .dx-pnum { font-size: 1.45rem; }
  .dx-handle { font-size: .68rem; margin-top: 10px; }                 /* a handle like @vaultsmp_extra fits the half-width cell */
  .dx-board .res-y, .dx-board .res-area { height: 150px; }
  .dx-board .res-bar .val { font-size: .58rem; }
  .dx-card { padding: 14px; }
  .dx-tt p { display: none; }
  .dx-tabs { grid-auto-columns: 168px; gap: 10px; }
  .dx-tab { padding: 16px 14px 24px; gap: 12px; }
  .dx-tab .sv-logo { height: 46px; }
  .dx-tab .t b { font-size: 1.05rem; }
  .dx-tab .t small { font-size: .72rem; }
  .dx-plan .row { gap: 11px; }
  .dx-plan img { width: 40px; height: 40px; }
  .dx-plan i { font-size: 1.9rem; }
  .dx-plan .go { width: 36px; height: 36px; }
}

/* a poster that plays in place (the detail card) */
.cmp-poster .pl { position: absolute; z-index: 1; left: 50%; top: 42%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(14,17,22,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 18px no-repeat; transition: background-color .15s, transform .15s; }
.cmp-poster:hover .pl { background-color: var(--signal); transform: scale(1.08); }
