/* ConversionBird ads report: mobile first, dark brand theme. */
:root {
  --bg: #0f0e16;
  --bg-2: #13121c;
  --panel: #181c25;
  --panel-2: #1f2430;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f9f9f9;
  --muted: #9aa0b4;
  --faint: #6b7186;
  --blue: #3c84f0;
  --blue-deep: #1b59ba;
  --yellow: #ffd600;
  --red: #ff6262;
  --green: #3ddc97;
  --amber: #ffb547;
  --radius: 18px;
  --radius-sm: 12px;
  --pad: 16px;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, .7);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.45 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.glow {
  position: fixed; inset: -20vh -20vw auto; height: 70vh; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 50% at 15% 20%, rgba(60, 132, 240, .28), transparent 70%),
    radial-gradient(30% 40% at 85% 0%, rgba(255, 214, 0, .10), transparent 70%);
  filter: blur(10px);
}
.app {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) var(--pad) calc(40px + env(safe-area-inset-bottom));
}

.num { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Boot + sign in */
.boot { min-height: 80vh; display: grid; place-items: center; align-content: center; gap: 28px; }
.boot-logo { width: 190px; opacity: .9; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.signin { min-height: 86vh; display: grid; place-items: center; }
.signin-card {
  width: 100%; max-width: 400px; padding: 32px 24px;
  background: linear-gradient(180deg, rgba(31, 36, 48, .9), rgba(24, 28, 37, .9));
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.signin-card img { width: 180px; margin: 0 auto 26px; }
.signin-card h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; text-align: center; }
.signin-card p { margin: 0 0 22px; text-align: center; color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font: 500 16px var(--font);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(60, 132, 240, .2); }
.btn {
  width: 100%; height: 50px; margin-top: 14px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, #4b8ff3, var(--blue)); color: #fff; font-weight: 600; font-size: 16px;
  box-shadow: 0 10px 30px -10px rgba(60, 132, 240, .7); transition: transform .15s, filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: wait; }
.signin-about { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.signin-card .signin-about p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--faint); }
.signin-about a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.error-text { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 10px; text-align: center; }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 18px; }
.topbar .logo { height: 30px; width: auto; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 12px; color: var(--muted); white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: pulse 2.4s infinite; }
.dot.warn { background: var(--amber); animation: none; }
.dot.bad { background: var(--red); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); } 70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.icon-btn svg { width: 16px; height: 16px; }

/* Title */
.title { margin: 6px 0 20px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.title h1 { margin: 6px 0 4px; font-size: clamp(30px, 8vw, 52px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.title h1 span { background: linear-gradient(90deg, #fff, #c9d8ff 60%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title p { margin: 0; color: var(--muted); font-size: 14px; }

.banner {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 16px; border-radius: var(--radius-sm);
  background: rgba(255, 98, 98, .08); border: 1px solid rgba(255, 98, 98, .3); font-size: 13px;
}
.banner.warn { background: rgba(255, 181, 71, .08); border-color: rgba(255, 181, 71, .3); }

/* Cards */
.card {
  position: relative; background: linear-gradient(180deg, rgba(31, 36, 48, .72), rgba(24, 28, 37, .72));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px var(--pad); box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.section { margin-top: 28px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; max-width: 60ch; }

/* Channel labels: Meta is blue, Google is Google's four colours */
.platform { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.platform i, .channel-band > i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.platform.meta { color: #6ea8ff; }
.platform.meta i, .channel-band.meta > i { background: #0866ff; }
.platform.google { color: #f2c94c; }
.platform.google i, .channel-band.google > i { background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0); }
.channel-band {
  display: flex; align-items: center; gap: 12px; margin-top: 40px; padding: 14px var(--pad);
  border-radius: var(--radius-sm); border: 1px solid var(--line); border-left-width: 4px;
}
.channel-band.meta { border-left-color: #0866ff; background: linear-gradient(90deg, rgba(8, 102, 255, .14), transparent 70%); }
.channel-band.google { border-left-color: #fbbc05; background: linear-gradient(90deg, rgba(251, 188, 5, .1), transparent 70%); }
.channel-band > i { width: 14px; height: 14px; }
.channel-band h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.channel-band p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.channel-band + .section { margin-top: 18px; }

/* Segmented control */
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .2s; }
.seg button[aria-pressed="true"] { color: #fff; }
.seg .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; border-radius: 999px; background: linear-gradient(180deg, #4b8ff3, var(--blue)); box-shadow: 0 6px 18px -6px rgba(60, 132, 240, .8); transition: left .28s cubic-bezier(.2, .8, .2, 1), width .28s cubic-bezier(.2, .8, .2, 1); }
.seg button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* Hero */
.hero { overflow: hidden; padding: 22px 18px 18px; border: 1px solid transparent; background:
  linear-gradient(160deg, rgba(27, 89, 186, .55), rgba(24, 28, 37, .9) 45%, rgba(24, 28, 37, .95)) padding-box,
  linear-gradient(140deg, rgba(60, 132, 240, .9), rgba(255, 255, 255, .06) 40%, rgba(255, 214, 0, .45)) border-box; }
.hero-spark { position: absolute; inset: auto 0 0 0; height: 55%; opacity: .55; pointer-events: none; }
.hero-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hero-label { font-size: 12px; font-weight: 600; color: #c9d4ee; letter-spacing: .02em; }
.hero-big { position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 10px 0 2px; }
.hero-big .value { font-size: clamp(44px, 13vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.hero-cap { position: relative; font-size: 13px; color: #c9d4ee; }
.hero-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.stat { padding: 12px; border-radius: 14px; background: rgba(15, 14, 22, .55); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat .v { display: block; margin-top: 4px; font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.stat .d { margin-top: 6px; }

.delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .07); color: var(--muted); white-space: nowrap; }
.delta.good { background: rgba(61, 220, 151, .14); color: var(--green); }
.delta.bad { background: rgba(255, 98, 98, .14); color: var(--red); }
.delta svg { width: 10px; height: 10px; }
.delta-note { font-size: 11px; color: var(--faint); margin-left: 4px; }

.roas-good { color: var(--green); }
.roas-warn { color: var(--amber); }
.roas-bad { color: var(--red); }

/* Today strip */
.top-right { display: grid; gap: 12px; margin-top: 12px; }
.today { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 14px 12px; }
.today-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.today-head b { color: var(--yellow); font-weight: 700; }
.today .k { font-size: 11px; color: var(--muted); }
.today .v { font-size: 17px; font-weight: 700; letter-spacing: -.03em; }

/* Chart */
.chart-box { position: relative; height: 230px; margin-top: 8px; }
.chart-box svg { display: block; width: 100%; height: 100%; overflow: visible; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tip { position: absolute; pointer-events: none; z-index: 3; min-width: 150px; padding: 10px 12px; border-radius: 12px; background: rgba(15, 14, 22, .92); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 12px; backdrop-filter: blur(10px); }
.tip .t { color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.tip .r { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }

/* Ads */
.ads { display: grid; gap: 10px; }
.ad {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(31, 36, 48, .72), rgba(24, 28, 37, .72)); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.ad:hover { border-color: var(--line-2); }
.ad-media { position: relative; display: block; width: 88px; height: 88px; border-radius: 14px; overflow: hidden; background: var(--panel-2); }
.ad-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ad-media:hover img { transform: scale(1.06); }
.ad-media .open { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 14, 22, .75); }
.ad-media .open svg { width: 11px; height: 11px; }
.rank { position: absolute; left: 6px; top: 6px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(15, 14, 22, .8); backdrop-filter: blur(4px); }
.rank.r1 { background: var(--yellow); color: #111; }
.rank.r2, .rank.r3 { background: #fff; color: #111; }
.ad-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ad-name { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-camp { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .01em; background: rgba(255, 255, 255, .06); color: var(--muted); white-space: nowrap; }
.chip.active { background: rgba(61, 220, 151, .12); color: var(--green); }
.chip.active::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.issues { background: rgba(255, 181, 71, .12); color: var(--amber); }
.chip.roas-good { background: rgba(61, 220, 151, .12); }
.chip.roas-warn { background: rgba(255, 181, 71, .12); }
.chip.roas-bad { background: rgba(255, 98, 98, .12); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 2px; }
.metrics .k { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.metrics .v { font-size: 14px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ad.paused { opacity: .55; }
.ad.paused img { filter: grayscale(1); }
.ad.paused .chip.roas-good, .ad.paused .chip.roas-warn, .ad.paused .chip.roas-bad { color: var(--muted); background: rgba(255, 255, 255, .06); }
.more { display: block; width: 100%; margin-top: 10px; padding: 12px; border-radius: 14px; border: 1px dashed var(--line-2); background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.more:hover { color: var(--text); border-color: var(--blue); }

/* Collections */
.colls { display: grid; gap: 10px; }
.coll { padding: 14px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(31, 36, 48, .72), rgba(24, 28, 37, .72)); border: 1px solid var(--line); }
.coll-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.coll-name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.coll-meta { font-size: 12px; color: var(--faint); margin-top: 2px; }
.bars { display: grid; gap: 7px; margin-top: 12px; }
.bar-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12px; }
.bar-row .lbl { color: var(--muted); }
.bar-row .val { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.fill { height: 100%; border-radius: 999px; transform-origin: left; animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.fill.spend { background: linear-gradient(90deg, #6b7186, #9aa0b4); }
.fill.rev { background: linear-gradient(90deg, var(--blue-deep), var(--blue)); }
@keyframes grow { from { transform: scaleX(0); } }
.coll-foot { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.coll-foot b { color: var(--text); font-variant-numeric: tabular-nums; }
.coll.paused { opacity: .55; }
.coll.paused .fill { filter: grayscale(1); }

/* Comments */
.comments { display: grid; gap: 10px; }
.comment { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(31, 36, 48, .72), rgba(24, 28, 37, .72)); border: 1px solid var(--line); text-decoration: none; }
.comment .ad-media { width: 56px; height: 56px; border-radius: 12px; }
.bubble { display: grid; justify-items: end; gap: 2px; }
.bubble .n { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.bubble .n svg { width: 16px; height: 16px; color: var(--blue); }
.bubble .s { font-size: 11px; color: var(--faint); }

.callout { display: flex; gap: 12px; padding: 14px; border-radius: var(--radius-sm); background: rgba(255, 214, 0, .06); border: 1px solid rgba(255, 214, 0, .22); font-size: 13px; line-height: 1.5; }
.callout svg { flex: none; width: 18px; height: 18px; color: var(--yellow); margin-top: 1px; }
.callout b { color: var(--text); }
.callout p { margin: 0; color: var(--muted); }
.callout p + p { margin-top: 6px; }
.callout.blue { background: rgba(60, 132, 240, .07); border-color: rgba(60, 132, 240, .28); }
.callout.blue svg { color: var(--blue); }

/* Partnerships */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.filters button[aria-pressed="true"] { background: #fff; color: #111; border-color: #fff; }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.post { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, rgba(31, 36, 48, .72), rgba(24, 28, 37, .72)); border: 1px solid var(--line); text-decoration: none; }
.post-media { position: relative; aspect-ratio: 4 / 5; background: radial-gradient(120% 80% at 30% 20%, rgba(60, 132, 240, .35), rgba(24, 28, 37, 1)); }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-media .ig { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .35); }
.post-media .ig svg { width: 34px; height: 34px; }
.post-media .chip { position: absolute; left: 8px; top: 8px; backdrop-filter: blur(6px); }
.chip.ready { background: rgba(61, 220, 151, .9); color: #062b1b; }
.chip.needs { background: rgba(255, 181, 71, .92); color: #2b1a00; }
.chip.ineligible { background: rgba(255, 98, 98, .9); color: #2b0606; }
.post-body { padding: 10px 12px 12px; display: grid; gap: 4px; }
.post-user { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-date { font-size: 11px; color: var(--faint); }
.post-cap { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-why { font-size: 11px; color: var(--amber); }

.empty { padding: 22px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* Team: client picker */
.clients { display: grid; gap: 10px; }
.client-link { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-radius: var(--radius); text-decoration: none; background: linear-gradient(180deg, rgba(31, 36, 48, .72), rgba(24, 28, 37, .72)); border: 1px solid var(--line); font-weight: 700; font-size: 17px; }
.client-link:hover { border-color: var(--blue); }
.client-main { display: grid; gap: 6px; min-width: 0; }
.client-views { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; font-weight: 500; color: var(--muted); }
.client-views b { color: var(--text); font-variant-numeric: tabular-nums; }
.client-views.none { color: var(--faint); }
.client-views .seen { color: var(--muted); }
.client-views .seen.recent { color: var(--green); }

.footer { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; color: var(--faint); font-size: 12px; }
.footer img { width: 140px; opacity: .7; }
.footer button { justify-self: start; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 12px; }

.reveal { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Tablet and up */
@media (min-width: 700px) {
  :root { --pad: 24px; }
  .hero { padding: 28px; }
  .hero-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .colls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-box { height: 280px; }
}

/* Desktop: ads become tall cards */
@media (min-width: 1000px) {
  .top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
  .top-right { gap: 16px; margin-top: 0; grid-template-rows: auto 1fr; }
  .ads { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .ad { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
  .ad-media { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; }
  .ad-body { padding: 4px 14px 14px; }
  .posts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .comments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Google Shopping products */
.prods { display: grid; gap: 8px; }
.prod {
  display: grid; grid-template-columns: 28px 1fr repeat(4, minmax(72px, auto)); align-items: center; gap: 4px 14px;
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(24, 28, 37, .72);
}
.prod-rank { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .06); font-size: 12px; font-weight: 700; color: var(--muted); }
.prod-name { font-size: 14px; font-weight: 600; min-width: 0; }
.prod-name > div:first-child { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prod-id { font-size: 11px; font-weight: 500; color: var(--faint); margin-top: 2px; }
.prod-cell { display: flex; flex-direction: column; align-items: flex-end; }
.prod-cell .k { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.prod-cell .v { font-size: 14px; font-weight: 700; }
.prod-cell .v.roas-good { color: var(--green); }
.prod-cell .v.roas-warn { color: var(--amber); }
.prod-cell .v.roas-bad { color: var(--red); }
@media (max-width: 640px) {
  .prod { grid-template-columns: 24px repeat(4, 1fr); }
  .prod-name { grid-column: 2 / -1; }
  .prod-cell { grid-row: 2; align-items: flex-start; }
  .prod-cell:nth-child(3) { grid-column: 2; }
  .prod-cell:nth-child(4) { grid-column: 3; }
  .prod-cell:nth-child(5) { grid-column: 4; }
  .prod-cell:nth-child(6) { grid-column: 5; }
}

/* Lead generation: click → lead → booked call funnel */
.funnel { display: grid; gap: 10px; }
.funnel-step { position: relative; overflow: hidden; padding: 14px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(31, 36, 48, .72), rgba(24, 28, 37, .72)); border: 1px solid var(--line); }
.funnel-bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(60, 132, 240, .28), rgba(60, 132, 240, .08)); border-right: 2px solid var(--blue); transform-origin: left; animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.funnel-row { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.funnel-row .k { font-weight: 700; font-size: 15px; }
.funnel-row b { font-size: 24px; letter-spacing: -.03em; }
.funnel-sub { position: relative; margin-top: 2px; font-size: 12px; color: var(--muted); }
