/*
 * /start self-serve onboarding. Mobile first (375px). Matches the marketing site the visitor just came from:
 * the app's V4 design system (packages/ui tokens): Geist + Geist Mono, #F5F5F7 window, white surfaces,
 * hairline separators, near-black primary, colour only for status. Tap targets stay 52px: this is used standing up at events.
 * --st-accent / --st-accent-rgb are set per brand in the page head (white-label safe).
 */
:root {
  --st-accent: #18181b;
  --st-accent-rgb: 24, 24, 27;
  --st-canvas: #f5f5f7;
  --st-card: #ffffff;
  --st-card-edge: rgba(60, 60, 67, 0.14);
  --st-pop: #ffffff;
  --st-ink: #18181b;
  --st-text: #18181b;
  --st-text-2: #515154;
  --st-muted: #6e6e73;
  --st-border: rgba(60, 60, 67, 0.14);
  --st-tint: #f2f2f4;
  --st-good: #1a7f37;
  --st-good-bg: #e8f6ec;
  --st-bad: #d70015;
  --st-warn: #c93400;
  --st-warn-bg: #fff1e6;
  --st-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --st-font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --st-display: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --st-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --st-canvas: #000000;
    --st-card: #1c1c1e;
    --st-card-edge: rgba(84, 84, 88, 0.6);
    --st-pop: #2c2c2e;
    --st-ink: #ffffff;
    --st-text: #f4f4f5;
    --st-text-2: #aeaeb2;
    --st-muted: #98989d;
    --st-border: rgba(84, 84, 88, 0.6);
    --st-tint: #2c2c2e;
    --st-good: #32d74b;
    --st-good-bg: rgba(50, 215, 75, 0.16);
    --st-bad: #ff6961;
    --st-warn: #ff9f0a;
    --st-warn-bg: rgba(255, 159, 10, 0.16);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--st-canvas); }
body { margin: 0; min-height: 100dvh; font-family: var(--st-font); color: var(--st-text); font-size: 16px; line-height: 1.5; background: var(--st-canvas); -webkit-font-smoothing: antialiased; }
a { color: var(--st-accent); }
button, input { font: inherit; }

/* The bottom bar is fixed, so the page always ends with room for it: its measured height (start.js sets
   --st-bar-h, which already includes the safe-area inset) plus a gap. The fallback covers the bar with the skip link. */
.st-shell { max-width: 560px; margin: 0 auto; padding: 0 16px calc(var(--st-bar-h, calc(128px + env(safe-area-inset-bottom))) + 24px); }
.st-top { position: sticky; top: 0; z-index: 5; margin: 0 -16px; padding: 12px 16px 10px; background: transparent; transition: background-color 160ms; }
.st-top.is-scrolled { background: var(--st-canvas); border-bottom: 1px solid var(--st-border); }
.st-top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-wordmark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--st-display); font-weight: 600; font-size: 19px; letter-spacing: -0.03em; color: var(--st-text); text-decoration: none; }
.st-wordmark img { height: 30px; width: auto; display: block; }
.st-wordmark--plain { font-weight: 600; }
.st-step-label { font-size: 13px; font-weight: 550; color: var(--st-muted); font-variant-numeric: tabular-nums; }
.st-progress { margin-top: 10px; height: 3px; border-radius: 999px; background: var(--st-tint); overflow: hidden; }
.st-progress span { display: block; height: 100%; width: 0; background: var(--st-accent); border-radius: 999px; transition: width 420ms var(--st-ease); }

.st-screen { display: none; padding-top: 18px; animation: st-in 220ms var(--st-ease); }
.st-screen.is-on { display: block; }
@keyframes st-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.st-kicker { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; color: var(--st-accent); letter-spacing: 0.16em; text-transform: uppercase; margin: 6px 0 10px; }
.st-kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.st-h1 { font-family: var(--st-display); font-size: 32px; line-height: 1.08; font-weight: 600; letter-spacing: -0.035em; margin: 0 0 10px; text-wrap: balance; }
.st-h2 { font-family: var(--st-display); font-size: 26px; line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 8px; text-wrap: balance; }
.st-lede { color: var(--st-text-2); margin: 0 0 18px; font-size: 16px; }
.st-small { font-size: 13px; color: var(--st-muted); }

.st-card { background: var(--st-card); border: 1px solid var(--st-card-edge); border-radius: 15px; padding: 18px; margin: 0 0 12px; }
.st-card h3 { margin: 0 0 6px; font-family: var(--st-display); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.st-card p { margin: 0 0 6px; color: var(--st-text-2); }

.st-field { width: 100%; height: 56px; border-radius: 12px; border: 1px solid #d6d3d1; background: var(--st-pop); color: var(--st-text); padding: 0 16px; font-size: 17px; outline: none; transition: border-color 160ms, box-shadow 160ms; }
.st-field:focus { border-color: rgba(var(--st-accent-rgb), 0.55); box-shadow: 0 0 0 4px rgba(var(--st-accent-rgb), 0.14); }
.st-field + .st-field { margin-top: 10px; }
.st-btn { display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; font-weight: 600; font-size: 16.5px; cursor: pointer; text-decoration: none; transition: transform 160ms var(--st-ease), opacity 160ms; }
.st-btn:active { transform: scale(0.97); }
.st-btn[disabled] { opacity: 0.5; cursor: default; }
.st-btn-primary { background: var(--st-accent); color: var(--st-on-accent, #fff); }
.st-btn-neutral { background: var(--st-card); color: var(--st-text); border: 1px solid #d6d3d1; }
.st-link { display: block; width: 100%; background: none; border: 0; color: var(--st-text-2); text-decoration: underline; text-underline-offset: 3px; padding: 12px; min-height: 44px; cursor: pointer; font-size: 15px; }
.st-error { color: #b4262b; font-size: 14px; margin: 8px 0 0; min-height: 1.2em; }
@media (prefers-color-scheme: dark) { .st-error { color: #ff8f93; } }

/* Sticky action bar: the one next step is always under the thumb. */
.st-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--st-canvas) 92%, transparent); border-top: 1px solid var(--st-border); }
.st-bar-inner { max-width: 560px; margin: 0 auto; }
.st-bar .st-link { padding: 6px; min-height: 36px; }

/* Waiting: a checklist that ticks itself off, plus a rotating line. */
.st-steps { list-style: none; margin: 0; padding: 0; }
.st-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--st-muted); font-weight: 550; }
.st-steps li .st-dot { flex: 0 0 22px; height: 22px; border-radius: 999px; border: 2px solid var(--st-tint); display: grid; place-items: center; font-size: 13px; }
.st-steps li.is-doing { color: var(--st-text); }
.st-steps li.is-doing .st-dot { border-color: var(--st-accent); border-top-color: transparent; animation: st-spin 900ms linear infinite; }
.st-steps li.is-done { color: var(--st-text); }
.st-steps li.is-done .st-dot { background: var(--st-good-bg); border-color: transparent; color: var(--st-good); }
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-proof { margin: 14px 0 0; text-align: center; color: var(--st-text-2); font-size: 14px; min-height: 1.4em; transition: opacity 300ms; }

.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--st-border); background: var(--st-card); color: var(--st-text); font-size: 14px; font-weight: 550; }
.st-chip small { color: var(--st-muted); margin-left: 6px; font-weight: 500; }
.st-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--st-good-bg); color: var(--st-good); }
.st-pill.is-warn { background: var(--st-warn-bg); color: var(--st-warn); }
.st-pick { min-height: 48px; padding: 10px 16px; border-radius: 999px; border: 1px solid #d6d3d1; background: var(--st-pop); color: var(--st-text); font-weight: 600; font-size: 15px; cursor: pointer; }
.st-pick[aria-pressed="true"] { border-color: var(--st-accent); background: rgba(var(--st-accent-rgb), 0.12); color: var(--st-accent); }

.st-facts dt { font-size: 12.5px; font-weight: 600; color: var(--st-muted); margin-top: 10px; }
.st-facts dd { margin: 2px 0 0; }
.st-skel { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--st-tint), rgba(127,127,150,0.05), var(--st-tint)); background-size: 200% 100%; animation: st-shimmer 1.2s linear infinite; margin: 8px 0; }
@keyframes st-shimmer { to { background-position: -200% 0; } }

.st-edge { margin-top: 12px; padding: 2px 0 2px 12px; border-left: 2px solid var(--st-accent); color: var(--st-text); font-size: 15px; }
.st-edge b { color: var(--st-accent); }

/* Facebook ad mock: a phone feed post, swiped sideways. */
.st-ads { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.st-ads::-webkit-scrollbar { display: none; }
.st-ad { flex: 0 0 88%; scroll-snap-align: center; background: #fff; color: #050505; border-radius: 16px; overflow: hidden; border: 1px solid #e4e6eb; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.st-ad-head { display: flex; gap: 10px; align-items: center; padding: 12px 12px 8px; }
.st-ad-avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--st-accent); color: var(--st-on-accent, #fff); display: grid; place-items: center; font-weight: 700; }
.st-ad-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.st-ad-sponsored { font-size: 13px; color: #65676b; }
.st-ad-text { padding: 0 12px 10px; font-size: 15px; line-height: 1.35; white-space: pre-line; }
.st-ad-image { aspect-ratio: 1 / 1; display: grid; place-items: center; text-align: center; padding: 24px; color: #fff;
  background: var(--st-accent); }
.st-ad-image strong { display: block; font-size: 30px; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
.st-ad-image span { display: block; margin-top: 12px; font-size: 14px; opacity: 0.85; font-weight: 600; }
.st-ad-foot { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; background: #f0f2f5; }
.st-ad-foot div { flex: 1; min-width: 0; }
.st-ad-domain { font-size: 12px; color: #65676b; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-ad-headline { font-weight: 600; font-size: 15px; line-height: 1.25; }
.st-ad-desc { font-size: 13px; color: #65676b; }
.st-ad-cta { flex: 0 0 auto; background: #e4e6eb; color: #050505; border-radius: 6px; padding: 9px 12px; font-weight: 600; font-size: 14px; }
.st-ad-why { padding: 10px 12px 14px; font-size: 13.5px; color: #3b3f4a; border-top: 1px solid #eceef1; }
.st-dots { display: flex; justify-content: center; gap: 6px; margin: 4px 0 12px; }
.st-dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--st-tint); }
.st-dots i.is-on { background: var(--st-accent); }

/* Simulation */
.st-sim-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--st-warn-bg); color: var(--st-warn); font-size: 12.5px; font-weight: 650; margin-bottom: 10px; }
.st-time { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--st-accent); font-size: 13px; }
.st-bubbles { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.st-bubble { max-width: 85%; padding: 8px 12px; border-radius: 18px; font-size: 15px; line-height: 1.35; opacity: 0; transform: translateY(4px); transition: opacity 260ms var(--st-ease), transform 260ms var(--st-ease); }
.st-bubble.is-in { opacity: 1; transform: none; }
.st-bubble.them { align-self: flex-start; background: var(--st-tint); color: var(--st-text); border-bottom-left-radius: 6px; }
.st-bubble.us { align-self: flex-end; background: #0a84ff; color: #fff; border-bottom-right-radius: 6px; }
.st-bubble.agent { align-self: flex-start; background: rgba(var(--st-accent-rgb), 0.14); color: var(--st-text); border-bottom-left-radius: 6px; }
.st-booked { margin-top: 10px; }
.st-email { background: var(--st-pop); border: 1px solid var(--st-border); border-radius: 14px; padding: 12px; font-size: 14.5px; white-space: pre-line; }

/* Talk */
.st-talk { text-align: center; }
.st-talk-stage { width: min(240px, 64vw); aspect-ratio: 1; margin: 0 auto; }
.st-talk-stage canvas { width: 100%; height: 100%; display: block; }
.st-talk-status { min-height: 1.4em; color: var(--st-text-2); margin: 6px 0 12px; }
.st-talk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-talk-actions [data-talk-start] { grid-column: 1 / -1; }
.st-talk-actions [hidden] { display: none; }
.st-talk-transcript { text-align: left; max-height: 220px; overflow: auto; margin-top: 10px; }
.talk-line { margin: 0 0 8px; font-size: 14.5px; }
.talk-line--you { color: var(--st-text-2); }
.talk-line--you::before { content: "You: "; font-weight: 600; }
.st-timer { font-variant-numeric: tabular-nums; font-weight: 650; }
.st-script li { margin: 0 0 6px; color: var(--st-text-2); }

/* Plans */
.st-plan { position: relative; }
.st-plan.is-main { border: 1.5px solid var(--st-accent); }
.st-plan-badge { position: absolute; top: -11px; left: 18px; background: var(--st-accent); color: var(--st-on-accent, #fff); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.st-price { font-family: var(--st-display); font-size: 36px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.st-price small { font-size: 15px; color: var(--st-muted); font-weight: 550; letter-spacing: 0; }
.st-list { list-style: none; padding: 0; margin: 10px 0 14px; }
.st-list li { padding: 5px 0 5px 26px; position: relative; color: var(--st-text-2); }
.st-list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 7px; border-left: 2.5px solid var(--st-good); border-bottom: 2.5px solid var(--st-good); transform: rotate(-45deg); }

/* Get live */
.st-check { display: flex; gap: 14px; align-items: flex-start; }
.st-check-mark { flex: 0 0 28px; height: 28px; border-radius: 999px; border: 2px solid var(--st-tint); display: grid; place-items: center; }
.st-check.is-done .st-check-mark { background: var(--st-good-bg); border-color: transparent; }
.st-check.is-done .st-check-mark::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid var(--st-good); border-bottom: 2.5px solid var(--st-good); transform: rotate(-45deg) translate(1px, -1px); }
.st-check-body { flex: 1; min-width: 0; }
.st-check-body .st-btn { margin-top: 10px; min-height: 48px; font-size: 16px; }
.st-copy { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--st-tint); font-size: 14px; }
.st-copy span { flex: 1; }
.st-copy button { border: 0; background: var(--st-pop); border-radius: 8px; padding: 6px 10px; font-weight: 600; cursor: pointer; min-height: 36px; color: var(--st-text); }
details.st-card summary { cursor: pointer; font-weight: 620; min-height: 28px; }

@media (min-width: 720px) {
  .st-h1 { font-size: 38px; }
  .st-ad { flex-basis: 70%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .st-bubble { opacity: 1; transform: none; }
}

/* Competitors: real logos, then a you-vs-them grid. */
.st-comp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.st-logo { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--st-border); background: #fff; display: grid; place-items: center; overflow: hidden; font-family: var(--st-display); font-weight: 600; color: var(--st-text); }
.st-logo img { width: 26px; height: 26px; object-fit: contain; }
.st-logo.is-you { background: var(--st-accent); border-color: var(--st-accent); color: var(--st-on-accent, #fff); }
.st-comp-head h3 { margin: 0; }
.st-comp-head a { font-size: 13px; color: var(--st-muted); text-decoration: none; }
.st-rank { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--st-muted); }
.st-vs { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-vs th { padding: 0 0 10px; font-weight: 600; text-align: center; vertical-align: bottom; }
.st-vs th:first-child { text-align: left; }
.st-vs th .st-logo { margin: 0 auto; width: 32px; height: 32px; flex-basis: 32px; border-radius: 8px; font-size: 13px; }
.st-vs th .st-logo img { width: 20px; height: 20px; }
.st-vs td { padding: 11px 0; border-top: 1px solid var(--st-border); text-align: center; }
.st-vs td:first-child { text-align: left; color: var(--st-text-2); padding-right: 8px; }
.st-vs td.is-you { background: rgba(var(--st-accent-rgb), 0.06); }
.st-yes, .st-no, .st-unk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.st-yes { background: var(--st-good-bg); color: var(--st-good); }
.st-no { background: #fdecea; color: var(--st-bad); }
.st-unk { color: var(--st-muted); }
@media (prefers-color-scheme: dark) { .st-no { background: rgba(255,143,134,0.12); } .st-logo { background: #fff; } }

/* ==========================================================================================================
 * /start as a conversation ("gx"): the assistant works out loud, then the plan assembles as compact live widgets.
 * Clean surfaces, small sharp type, hairline rules, colour only for status. No shadows, no gradients, no glow.
 * ======================================================================================================== */
:root {
  --gx-line: #e7e5e4;
  --gx-line-2: #efedea;
  --gx-ink: #0f1729;
  --gx-2: #44403c;
  --gx-3: #78716c;
  --gx-4: #a8a29e;
  --gx-surface: #ffffff;
  --gx-sunk: #f6f5f2;
  --gx-good: #16a34a;
  --gx-warn: #d97706;
  --gx-bad: #dc2626;
  --gx-idle: #a8a29e;
  --gx-r: 10px;
  --gx-max: 640px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --gx-line: #26272d;
    --gx-line-2: #1f2025;
    --gx-ink: #f4f4f5;
    --gx-2: #c4c4ca;
    --gx-3: #9a9aa3;
    --gx-4: #6b6b73;
    --gx-surface: #15161a;
    --gx-sunk: #0b0c0f;
    --gx-good: #4ade80;
    --gx-warn: #fbbf24;
    --gx-bad: #f87171;
    --gx-idle: #6b6b73;
  }
}

body.gx { font-size: 15px; line-height: 1.5; color: var(--gx-ink); background: var(--st-canvas); overflow-x: hidden; }
.gx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gx-num { font-variant-numeric: tabular-nums; }
.gx-app { min-height: 100dvh; }

/* Header */
.gx-top { position: sticky; top: 0; z-index: 10; background: var(--st-canvas); border-bottom: 1px solid transparent; transition: border-color 160ms; padding-top: env(safe-area-inset-top); }
.gx-top.is-scrolled { border-bottom-color: var(--gx-line); }
.gx-top-in { max-width: var(--gx-max); margin: 0 auto; height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gx-top .st-wordmark { font-size: 17px; }
.gx-top .st-wordmark img { height: 24px; }
.gx-top-r { display: flex; align-items: center; gap: 8px; }

/* Thread */
.gx-thread { max-width: var(--gx-max); margin: 0 auto; padding: 8px 16px calc(var(--gx-composer-h, 120px) + 28px); }

.gx-intro { padding: 28px 0 8px; }
.gx-eyebrow { margin: 0 0 12px; font-size: 12.5px; font-weight: 600; color: var(--gx-3); }
.gx-h1 { font-family: var(--st-display); font-size: 28px; line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 12px; text-wrap: balance; }
.gx-lede { margin: 0 0 22px; color: var(--gx-2); font-size: 15px; }
.gx-plan-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--gx-line); border-radius: var(--gx-r); background: var(--gx-surface); counter-reset: gx; }
.gx-plan-list li { display: flex; align-items: baseline; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--gx-line); counter-increment: gx; font-size: 14px; }
.gx-plan-list li:first-child { border-top: 0; }
.gx-plan-list li::before { content: counter(gx); font-size: 12px; color: var(--gx-4); width: 12px; font-variant-numeric: tabular-nums; }
.gx-plan-list span { font-weight: 600; }
.gx-plan-list small { color: var(--gx-3); font-size: 13px; margin-left: auto; text-align: right; }

/* Messages */
.gx-user { display: flex; justify-content: flex-end; margin: 18px 0 14px; }
.gx-user-b { max-width: 82%; padding: 8px 13px; border-radius: 14px 14px 4px 14px; background: var(--gx-ink); color: var(--st-canvas); font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.gx-asst { position: relative; margin: 0 0 8px; }
.gx-asst-mark { position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 7px; background: var(--st-accent); color: var(--st-on-accent, #fff); display: grid; place-items: center; font-family: var(--st-display); font-size: 12px; font-weight: 600; }
.gx-asst-body { min-width: 0; }
.gx-say { margin: 4px 0 12px; font-size: 15px; color: var(--gx-ink); }
.gx-say-err { color: var(--gx-bad); }
.gx-say-err p { margin: 0 0 10px; }
.gx-say-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.gx-say-row .gx-say { margin-bottom: 0; }
.gx-say-row + .gx-fine { margin-top: 0; }

/* Working: a live step list like a git graph */
.gx-work { margin: 0 0 12px; padding-left: 34px; }
.gx-work-h { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 2px 0; border: 0; background: none; color: var(--gx-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.gx-work-time { color: var(--gx-3); font-weight: 500; font-size: 13px; }
.gx-caret { width: 7px; height: 7px; border-right: 1.5px solid var(--gx-3); border-bottom: 1.5px solid var(--gx-3); transform: rotate(45deg) translate(-2px, -2px); margin-left: 2px; transition: transform 160ms; }
.gx-work-h[aria-expanded="false"] .gx-caret { transform: rotate(-45deg); }
.gx-spin { width: 12px; height: 12px; border-radius: 999px; border: 1.5px solid rgba(var(--st-accent-rgb), 0.25); border-top-color: var(--st-accent); animation: st-spin 800ms linear infinite; flex: 0 0 12px; }
.gx-work-h.is-done .gx-spin { animation: none; border: 0; background: var(--gx-good); position: relative; }
.gx-work-h.is-done .gx-spin::after { content: ""; position: absolute; left: 3.5px; top: 2.5px; width: 3px; height: 5.5px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.gx-work-h.is-fail .gx-spin { animation: none; border: 0; background: var(--gx-bad); }
.gx-steps { list-style: none; margin: 4px 0 0; padding: 0; }
.gx-step { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 38px; align-items: center; gap: 10px; min-height: 30px; font-size: 13.5px; color: var(--gx-4); }
.gx-step::before { content: ""; position: absolute; left: 5.5px; top: -9px; height: 18px; width: 1px; background: var(--gx-line); }
.gx-step:first-child::before { display: none; }
.gx-step.is-done::before, .gx-step.is-doing::before { background: var(--gx-3); opacity: 0.45; }
.gx-node { position: relative; z-index: 1; width: 9px; height: 9px; margin-left: 1.5px; border-radius: 999px; border: 1.5px solid var(--gx-line); background: var(--st-canvas); }
.gx-step.is-doing { color: var(--gx-ink); }
.gx-step.is-doing .gx-node { border-color: var(--st-accent); background: var(--st-canvas); box-shadow: 0 0 0 3px rgba(var(--st-accent-rgb), 0.14); animation: gx-pulse 1.4s ease-in-out infinite; }
.gx-step.is-done { color: var(--gx-2); }
.gx-step.is-done .gx-node { border-color: var(--gx-good); background: var(--gx-good); }
.gx-step.is-fail { color: var(--gx-bad); }
.gx-step.is-fail .gx-node { border-color: var(--gx-bad); background: var(--gx-bad); }
.gx-step-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-step-m { font-size: 12px; color: var(--gx-3); white-space: nowrap; }
.gx-step-time { font-size: 12px; color: var(--gx-3); text-align: right; font-variant-numeric: tabular-nums; }
@keyframes gx-pulse { 50% { box-shadow: 0 0 0 5px rgba(var(--st-accent-rgb), 0.06); } }

/* Widgets */
.gx-widgets { display: flex; flex-direction: column; }
.gx-slot:empty { display: none; }
.gx-w { background: var(--gx-surface); border: 1px solid var(--gx-line); border-radius: var(--gx-r); margin: 0 0 10px; overflow: hidden; }
.gx-w-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--gx-line); }
.gx-w-t { font-size: 12.5px; font-weight: 600; color: var(--gx-3); letter-spacing: 0.005em; }
.gx-w-b { padding: 12px 14px 14px; }
.gx-w.is-waiting { border-style: dashed; background: transparent; }
.gx-w.is-waiting .gx-w-h { border-bottom-style: dashed; }
.gx-w.is-stale .gx-w-b { opacity: 0.4; pointer-events: none; transition: opacity 200ms; }
.gx-w.is-stopped { opacity: 0.6; }
.gx-skel { display: grid; gap: 9px; padding: 2px 0; }
.gx-skel span { display: block; height: 9px; border-radius: 3px; background: var(--gx-line-2); position: relative; overflow: hidden; }
.gx-skel span::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(127, 127, 140, 0.10), transparent); animation: gx-sweep 1.4s ease-in-out infinite; }
.gx-skel-offers span { height: 120px; border-radius: 8px; }
@keyframes gx-sweep { to { transform: translateX(100%); } }

/* Status chips: the only colour is the dot */
.gx-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--gx-line); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--gx-2); white-space: nowrap; background: var(--gx-surface); }
.gx-chip i { width: 6px; height: 6px; border-radius: 999px; background: var(--gx-idle); flex: 0 0 6px; }
.gx-chip.is-good i { background: var(--gx-good); }
.gx-chip.is-warn i { background: var(--gx-warn); }
.gx-chip.is-work i { background: var(--gx-warn); animation: gx-blink 1.1s ease-in-out infinite; }
.gx-chip.is-accent i { background: var(--st-accent); }
.gx-chip.is-accent { color: var(--st-accent); border-color: rgba(var(--st-accent-rgb), 0.3); }
@keyframes gx-blink { 50% { opacity: 0.25; } }
.gx-dot { display: inline-block; width: 6px; height: 6px; border-radius: 999px; margin-right: 7px; vertical-align: 1px; background: var(--gx-idle); }
.gx-dot.is-good { background: var(--gx-good); }
.gx-dot.is-warn { background: var(--gx-warn); }

/* Type inside widgets */
.gx-h3 { margin: 0; font-family: var(--st-display); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.gx-p { margin: 0; color: var(--gx-2); font-size: 14px; }
.gx-sub { font-size: 12.5px; color: var(--gx-3); text-decoration: none; font-weight: 500; }
.gx-fine { margin: 10px 0 0; font-size: 12.5px; color: var(--gx-3); line-height: 1.45; }
.gx-note { margin-bottom: 12px; }
.gx-sec { margin-top: 12px; }
.gx-sec-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--gx-3); }
.gx-textbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--st-accent); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }

/* Business */
.gx-biz { padding-bottom: 12px; }
.gx-biz-t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-bottom: 4px; }
.gx-kvs { border-top: 1px solid var(--gx-line); }
.gx-biz + .gx-kvs { margin: 0 -14px; padding: 0 14px; }
.gx-kv { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--gx-line); font-size: 14px; align-items: baseline; }
.gx-kv:last-child { border-bottom: 0; padding-bottom: 0; }
.gx-kv-k { font-size: 12.5px; color: var(--gx-3); font-weight: 600; }
.gx-kv-v { color: var(--gx-ink); overflow-wrap: anywhere; }
.gx-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.gx-tag { display: inline-flex; align-items: baseline; gap: 5px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--gx-line); background: var(--gx-sunk); font-size: 12.5px; font-weight: 500; color: var(--gx-ink); line-height: 1.5; }
.gx-tag small { color: var(--gx-3); font-size: 12px; }
.gx-tag.is-off { color: var(--gx-3); }
.gx-tag.is-more { color: var(--gx-3); background: transparent; }
.gx-lines { display: grid; gap: 4px; font-size: 13.5px; color: var(--gx-2); }
.gx-lines span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Competitors */
.gx-comps { margin: 0 -14px; border-top: 1px solid var(--gx-line); }
.gx-comp { padding: 11px 14px; border-bottom: 1px solid var(--gx-line); }
.gx-comp-h { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.gx-comp-n { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.gx-comp-name { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-comp-n .gx-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-rank { font-size: 12px; color: var(--gx-4); }
.gx-comp-well { margin: 7px 0 0 38px; font-size: 13.5px; color: var(--gx-3); }
.gx-edge { margin: 5px 0 0 38px; padding-left: 9px; border-left: 2px solid var(--st-accent); font-size: 13.5px; color: var(--gx-ink); }
.gx-edge b { font-weight: 650; color: var(--st-accent); }
.gx-w-b > .gx-edge { margin-left: 0; }
.gx-logo { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--gx-line); background: #fff; color: #0f1729; display: inline-grid; place-items: center; overflow: hidden; font-family: var(--st-display); font-size: 12.5px; font-weight: 600; }
.gx-logo img { width: 18px; height: 18px; object-fit: contain; }
.gx-logo.is-you { background: var(--st-accent); border-color: var(--st-accent); color: var(--st-on-accent, #fff); }
.gx-vs-wrap { margin-top: 14px; }
.gx-vs { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.gx-vs th, .gx-vs td { padding: 7px 0; text-align: center; border-bottom: 1px solid var(--gx-line); }
.gx-vs thead th { padding-top: 0; vertical-align: bottom; }
.gx-vs thead th:first-child { width: 38%; }
.gx-vs tbody th { text-align: left; font-weight: 500; color: var(--gx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-vs tr:last-child th, .gx-vs tr:last-child td { border-bottom: 0; }
.gx-vs .is-you { background: rgba(var(--st-accent-rgb), 0.06); }
.gx-vs thead .gx-logo { width: 24px; height: 24px; border-radius: 6px; font-size: 11px; }
.gx-vs thead .gx-logo img { width: 15px; height: 15px; }
.gx-vs-you { display: inline-grid; place-items: center; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--st-accent); color: var(--st-on-accent, #fff); font-size: 11.5px; font-weight: 700; }
.gx-mk { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1; }
.gx-mk.is-yes { color: var(--gx-good); background: rgba(22, 163, 74, 0.10); }
.gx-mk.is-no { color: var(--gx-bad); background: rgba(220, 38, 38, 0.08); }
.gx-mk.is-unk { color: var(--gx-4); }

/* Offers: real-looking Facebook ad previews, swiped sideways */
.gx-ads { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: -2px -14px 0; padding: 2px 14px 4px; scroll-padding: 0 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
.gx-ads::-webkit-scrollbar { display: none; }
.gx-ad-wrap { flex: 0 0 86%; max-width: 300px; scroll-snap-align: start; display: flex; flex-direction: column; }
.gx-ad { border: 1px solid var(--gx-line); border-radius: 9px; overflow: hidden; background: #fff; color: #050505; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.gx-ad-head { display: flex; gap: 8px; align-items: center; padding: 9px 10px 6px; }
.gx-ad-avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--st-accent); color: var(--st-on-accent, #fff); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: 0 0 30px; }
.gx-ad-name { font-weight: 600; font-size: 13px; line-height: 1.2; }
.gx-ad-sp { font-size: 11.5px; color: #65676b; }
.gx-ad-text { margin: 0 10px 8px; padding: 0; font-size: 13px; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gx-ad-img { aspect-ratio: 1.2 / 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 18px; background: var(--st-accent); color: var(--st-on-accent, #fff); }
.gx-ad-img strong { font-family: var(--st-display); font-size: 23px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.gx-ad-img span { margin-top: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.gx-ad-foot { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #f0f2f5; }
.gx-ad-foot > div { flex: 1; min-width: 0; }
.gx-ad-dom { font-size: 10.5px; color: #65676b; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-ad-hl { font-weight: 600; font-size: 13px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-ad-desc { font-size: 11.5px; color: #65676b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-ad-cta { flex: 0 0 auto; background: #e4e6eb; color: #050505; border-radius: 5px; padding: 6px 9px; font-weight: 600; font-size: 12.5px; }
.gx-ad-why { margin: 8px 2px 8px; font-size: 12.5px; color: var(--gx-3); line-height: 1.45; flex: 1; }
.gx-ad-why b { color: var(--gx-2); font-weight: 600; }
.gx-pager { display: flex; justify-content: center; gap: 5px; margin: 10px 0 0; }
.gx-pager i { width: 5px; height: 5px; border-radius: 999px; background: var(--gx-line); transition: background 160ms, width 160ms; }
.gx-pager i.is-on { width: 14px; background: var(--gx-ink); }

/* Buttons */
.gx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--gx-line); background: var(--gx-surface); color: var(--gx-ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform 120ms var(--st-ease), background-color 120ms, border-color 120ms; -webkit-tap-highlight-color: transparent; }
.gx-btn:active { transform: scale(0.98); }
.gx-btn:focus-visible, .gx-pick:focus-visible, .gx-sug:focus-visible, .gx-send:focus-visible, .gx-textbtn:focus-visible { outline: 2px solid var(--st-accent); outline-offset: 2px; }
.gx-btn-primary { background: var(--st-accent); border-color: var(--st-accent); color: var(--st-on-accent, #fff); }
.gx-btn-block { width: 100%; }
.gx-btn-sm { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: 7px; }
.gx-btn[aria-pressed="true"] { background: var(--gx-ink); border-color: var(--gx-ink); color: var(--gx-surface); }
.gx-btn[aria-pressed="true"]::before { content: ""; width: 4px; height: 8px; border: solid currentColor; border-width: 0 1.75px 1.75px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* Lead timeline */
.gx-tl { list-style: none; margin: 0; padding: 0; }
.gx-tl-row { display: grid; grid-template-columns: 52px 14px minmax(0, 1fr); gap: 8px; position: relative; }
.gx-tl-time { padding-top: 1px; font-size: 12px; color: var(--gx-3); text-align: right; white-space: nowrap; }
.gx-tl-rail { position: relative; }
.gx-tl-rail::before { content: ""; position: absolute; left: 3px; top: 5px; width: 7px; height: 7px; border-radius: 999px; background: var(--gx-surface); border: 1.5px solid var(--gx-3); box-sizing: border-box; z-index: 1; }
.gx-tl-rail::after { content: ""; position: absolute; left: 6px; top: 14px; bottom: -4px; width: 1px; background: var(--gx-line); transform-origin: top; animation: gx-draw 420ms var(--st-ease) both; animation-delay: calc(var(--d, 0ms) + 200ms); }
.gx-tl-row:last-child .gx-tl-rail::after { display: none; }
.gx-tl-row:nth-child(3) .gx-tl-rail::before { background: var(--gx-good); border-color: var(--gx-good); }
.gx-tl-c { padding-bottom: 12px; min-width: 0; }
.gx-tl-t { margin: 0; font-size: 14px; font-weight: 600; }
.gx-tl-s { margin: 1px 0 0; font-size: 13px; color: var(--gx-3); }
.gx-qs { display: grid; gap: 3px; margin-top: 4px; }
.gx-q { margin: 0; font-size: 13px; color: var(--gx-2); line-height: 1.42; }
.gx-q b { font-weight: 600; color: var(--gx-ink); }
.gx-tl-c .gx-textbtn { min-height: 32px; font-size: 13px; }
.gx-tl-c > .gx-chip { margin-top: -1px; }
@keyframes gx-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Agent */
.gx-quote { margin: 0 0 10px; padding: 1px 0 1px 10px; border-left: 2px solid var(--st-accent); font-size: 14.5px; color: var(--gx-ink); }
.gx-w-b .gx-kvs { margin: 0 -14px; padding: 0 14px; border-bottom: 1px solid var(--gx-line); }
.gx-flow { margin: 0; padding: 0 0 0 20px; font-size: 13.5px; color: var(--gx-2); }
.gx-flow li { padding: 2px 0; }
.gx-flow li::marker { color: var(--gx-4); font-variant-numeric: tabular-nums; font-size: 12px; }
.gx-ul { margin: 0; padding: 0 0 0 18px; font-size: 13.5px; color: var(--gx-2); }
.gx-ul li { padding: 2px 0; }
.gx-script .gx-flow { margin-top: 0; }
.gx-talk { margin: 4px -14px -14px; padding: 12px 14px 12px; border-top: 1px solid var(--gx-line); background: var(--gx-sunk); text-align: center; }
.gx-talk-stage { width: 96px; height: 96px; margin: 0 auto; }
.gx-talk-stage canvas { width: 100%; height: 100%; display: block; }
.gx-talk-status { margin: 4px 0 10px; font-size: 13px; color: var(--gx-2); min-height: 1.4em; }
.gx-talk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gx-talk-actions [data-talk-start] { grid-column: 1 / -1; }
.gx-talk-actions [hidden] { display: none; }
.gx-talk-transcript { text-align: left; max-height: 200px; overflow: auto; margin-top: 6px; font-size: 13.5px; }
.gx-talk .gx-fine { margin-top: 4px; }
.gx-talk-off { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gx-line); }

/* Tools */
.gx-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gx-pick { min-height: 36px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--gx-line); background: var(--gx-surface); color: var(--gx-ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; position: relative; }
.gx-pick::after { content: ""; position: absolute; inset: -4px 0; } /* 44px tap target, same visual size */
.gx-pick[aria-pressed="true"] { border-color: var(--gx-ink); background: var(--gx-ink); color: var(--gx-surface); }

/* Plans */
.gx-plan { padding: 2px 0 14px; }
.gx-plan + .gx-plan { padding-top: 14px; border-top: 1px solid var(--gx-line); }
.gx-plan-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.gx-plan-n { font-family: var(--st-display); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.gx-price { margin-left: auto; font-family: var(--st-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.gx-price small { font-family: var(--st-font); font-size: 13px; color: var(--gx-3); font-weight: 500; letter-spacing: 0; }
.gx-checks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--gx-2); }
.gx-checks li { position: relative; padding-left: 20px; }
.gx-checks li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 4px; height: 8px; border: solid var(--gx-good); border-width: 0 1.75px 1.75px 0; transform: rotate(45deg); }
.gx-plan .gx-p { margin-bottom: 12px; }
.gx-plan .gx-fine { margin-top: 8px; }
.gx-w-b > .gx-fine:last-child { margin-top: 0; }

/* Composer, pinned to the bottom */
.gx-composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--st-canvas) 94%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-top: 1px solid var(--gx-line); }
.gx-composer-in { max-width: calc(var(--gx-max) - 8px); margin: 0 auto; }
.gx-suggest { display: flex; gap: 6px; overflow-x: auto; margin: 0 -12px 8px; padding: 0 12px; scrollbar-width: none; }
.gx-suggest::-webkit-scrollbar { display: none; }
.gx-sug { flex: 0 0 auto; min-height: 34px; max-width: 260px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--gx-line); background: var(--gx-surface); color: var(--gx-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-box { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 4px 4px 4px 4px; border: 1px solid var(--gx-line); border-radius: 12px; background: var(--gx-surface); transition: border-color 140ms; }
.gx-box:focus-within { border-color: rgba(var(--st-accent-rgb), 0.55); }
.gx-box-fields { flex: 1; min-width: 0; display: flex; }
.gx-box-two { gap: 0; }
.gx-box-two .gx-input + label + .gx-input { border-left: 1px solid var(--gx-line); }
.gx-input { flex: 1; min-width: 0; width: 100%; height: 40px; padding: 0 10px; border: 0; background: transparent; color: var(--gx-ink); font: inherit; font-size: 16px; outline: none; }
.gx-input::placeholder { color: var(--gx-4); }
.gx-input:disabled { cursor: default; }
.gx-send { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 9px; border: 0; background: var(--st-accent); color: var(--st-on-accent, #fff); display: grid; place-items: center; cursor: pointer; }
.gx-send:disabled { background: var(--gx-line); color: var(--gx-4); cursor: default; }
.gx-under { display: flex; align-items: center; gap: 10px; min-height: 0; }
.gx-under .gx-textbtn { min-height: 36px; font-size: 13px; color: var(--gx-3); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.gx-under-note { font-size: 12px; color: var(--gx-3); }
.gx-err { margin: 2px 2px 0; font-size: 13px; color: var(--gx-bad); }
.gx-err:empty { display: none; }

/* Reveal: real data popping in, one piece after another */
.gx-pop { animation: gx-pop 340ms var(--st-ease) both; animation-delay: var(--d, 0ms); }
@keyframes gx-pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.gx-mk.gx-pop, .gx-tag.gx-pop, .gx-pick.gx-pop { animation-name: gx-pop-sm; animation-duration: 260ms; }
@keyframes gx-pop-sm { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }

@media (min-width: 720px) {
  .gx-h1 { font-size: 34px; }
  .gx-intro { padding-top: 56px; }
  .gx-ad-wrap { flex-basis: 270px; }
}
@media (max-width: 359px) {
  .gx-kv { grid-template-columns: 64px minmax(0, 1fr); }
  .gx-plan-list small { display: none; }
  .gx-tl-row { grid-template-columns: 44px 14px minmax(0, 1fr); }
}
@media (prefers-color-scheme: dark) {
  .gx-user-b { background: #e7e7ea; color: #0b0c0f; }
  .gx-mk.is-yes { background: rgba(74, 222, 128, 0.12); }
  .gx-mk.is-no { background: rgba(248, 113, 113, 0.12); }
  .gx-ad { border-color: #2a2b31; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-pop, .gx-tl-rail::after { animation: none !important; }
}

/* Build panel: a git-graph of what was really found, lane by lane, as it lands. */
:root { --gx-l1: #0a66ff; --gx-l2: #0f9fb8; --gx-l3: #8944ab; --gx-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; }
@media (prefers-color-scheme: dark) { :root { --gx-l1: #3d8bff; --gx-l2: #40c8e0; --gx-l3: #bf5af2; } }
.gx-mono { font-family: var(--gx-mono); letter-spacing: -0.01em; }
.gx-asst-main .gx-asst-mark { top: 5px; }
.gx-wf { display: flex; align-items: center; gap: 8px; min-height: 34px; margin: 0 0 6px; padding: 0 0 0 34px; border: 0; background: none; color: var(--gx-3); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.gx-wf-caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 160ms; }
.gx-wf[aria-expanded="true"] .gx-wf-caret { transform: rotate(45deg) translate(-1px, -1px); }
.gx-wf-time { color: var(--gx-4); }
.gx-g { background: var(--gx-surface); border: 1px solid var(--gx-line); border-radius: var(--gx-r); margin: 0 0 12px; }
.gx-g-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px 9px 14px; }
.gx-g-hl { min-width: 0; }
.gx-g-hl .gx-g-id { margin-left: 6px; white-space: nowrap; }
.gx-g-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; min-width: 0; text-wrap: balance; }
.gx-g-id { font-size: 12px; color: var(--gx-3); flex: 0 0 auto; }
.gx-chip.is-bad i { background: var(--gx-bad); }
.gx-g-rows { list-style: none; margin: 0; padding: 0 12px 8px 8px; }
.gx-g-row { --lc: var(--gx-l1); display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; column-gap: 6px; min-height: 30px; font-size: 13.5px; }
.gx-g-row.lane-2 { --lc: var(--gx-l2); }
.gx-g-row.lane-3 { --lc: var(--gx-l3); }
.gx-g-row.lane-4 { --lc: #db2777; } /* reserved: winning ads in your market */
.lane-4 .gx-g-branch { left: 31px; }
.lane-4 .gx-g-dot { left: 28px; }
.gx-g-row.lane-4.is-first .gx-g-lanes::after { width: 24px; }
.gx-g-lanes { position: relative; align-self: stretch; }
.gx-g-trunk { position: absolute; left: 7px; top: 0; bottom: 0; width: 1.5px; background: var(--gx-l1); opacity: 0.5; transform-origin: top; animation: gx-draw 300ms var(--st-ease) both; animation-delay: var(--d, 0ms); }
.gx-g-rows > li:first-child .gx-g-trunk { top: 50%; }
.gx-g-rows > li:last-child .gx-g-trunk { bottom: 50%; }
.gx-g-rows > li:only-child .gx-g-trunk { display: none; }
.gx-g-branch { position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--lc); opacity: 0.6; }
.lane-2 .gx-g-branch { left: 20px; }
.lane-3 .gx-g-branch { left: 31px; }
.gx-g-row.is-first .gx-g-branch { top: 50%; }
.gx-g-row.is-last .gx-g-branch { bottom: 50%; }
.gx-g-row.is-first .gx-g-lanes::after { content: ""; position: absolute; left: 7px; top: 0; height: calc(50% + 0.75px); border: 1.5px solid var(--lc); border-left: 0; border-bottom: 0; border-top-right-radius: 9px; opacity: 0.6; }
.gx-g-row.lane-2.is-first .gx-g-lanes::after { width: 13px; }
.gx-g-row.lane-3.is-first .gx-g-lanes::after { width: 24px; }
.gx-g-row.lane-1.is-first .gx-g-lanes::after { display: none; }
.gx-g-dot { position: absolute; top: 50%; left: 4px; width: 8px; height: 8px; margin-top: -4px; border-radius: 999px; background: var(--lc); box-shadow: 0 0 0 2.5px var(--gx-surface); }
.lane-2 .gx-g-dot { left: 17px; }
.lane-3 .gx-g-dot { left: 28px; }
.gx-g-row.is-warn .gx-g-dot { background: var(--gx-warn); }
.gx-g-row.is-end .gx-g-dot { background: var(--gx-good); }
.gx-g-row.is-pending .gx-g-dot { background: var(--gx-surface); border: 1.5px solid var(--gx-l1); border-top-color: transparent; width: 10px; height: 10px; left: 3px; margin-top: -5px; animation: st-spin 800ms linear infinite; }
.gx-g-row.gx-pop .gx-g-dot { animation: gx-dot 360ms var(--st-ease) both; animation-delay: calc(var(--d, 0ms) + 80ms); }
.gx-g-row.is-pending.gx-pop .gx-g-dot { animation: st-spin 800ms linear infinite; }
@keyframes gx-dot { from { transform: scale(0); } 70% { transform: scale(1.35); } to { transform: none; } }
.gx-g-main { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.gx-g-label { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gx-2); font-weight: 500; }
.gx-g-label .gx-logo { width: 16px; height: 16px; border-radius: 4px; font-size: 9px; flex: 0 0 16px; }
.gx-g-label .gx-logo img { width: 12px; height: 12px; }
.gx-g-row.is-strong .gx-g-label { color: var(--gx-ink); font-weight: 650; }
.gx-g-row.is-warn .gx-g-label { color: var(--gx-warn); }
.gx-g-row.is-pending .gx-g-label { color: var(--gx-ink); }
.gx-g-row.is-pending .gx-g-label::after { content: ""; display: inline-block; width: 14px; height: 2px; margin-left: 4px; vertical-align: middle; background: linear-gradient(90deg, var(--gx-4) 30%, transparent 30% 50%, var(--gx-4) 50% 80%, transparent 80%); background-size: 200% 100%; animation: gx-sweep-dots 900ms linear infinite; }
@keyframes gx-sweep-dots { to { background-position: -200% 0; } }
.gx-g-tags { flex: 0 0 auto; display: flex; gap: 4px; }
.gx-g-lt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-gt { flex: 0 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 5px; border-radius: 4px; font-size: 11px; line-height: 1.5; color: var(--lc); background: color-mix(in srgb, var(--lc) 9%, transparent); }
.gx-gt.is-fit { max-width: 7.5em; }
.gx-gt.is-more { color: var(--gx-3); background: var(--gx-sunk); flex-shrink: 0; }
.gx-gt.is-good { color: var(--gx-good); background: color-mix(in srgb, var(--gx-good) 10%, transparent); }
.gx-g-meta { display: flex; gap: 6px; font-size: 11px; color: var(--gx-4); white-space: nowrap; justify-content: flex-end; }
.gx-g-when:empty { display: none; }
.gx-g-m + .gx-g-when::before { content: "\00b7"; margin-right: 6px; }
.gx-g-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 8px 14px; border-top: 1px solid var(--gx-line); font-size: 13px; color: var(--gx-2); }
.gx-g-warn { min-width: 0; line-height: 1.35; }
.gx-g-warn .gx-tri { display: inline-block; vertical-align: -1px; margin-right: 6px; }
.gx-g-warn b { white-space: nowrap; font-weight: 650; color: var(--gx-ink); text-decoration: underline; text-decoration-color: var(--gx-warn); text-underline-offset: 3px; }
.gx-tri { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--gx-warn); flex: 0 0 auto; position: relative; }
.gx-pill { position: relative; flex: 0 0 auto; min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(var(--st-accent-rgb), 0.09); color: var(--st-accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gx-pill::after { content: ""; position: absolute; inset: -7px 0; }
.gx-g-sum { margin: 2px 0 8px; font-size: 15px; color: var(--gx-ink); }
.gx-g-strip { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 12px; color: var(--gx-3); flex-wrap: wrap; }
.gx-g-strip b { color: var(--gx-2); font-weight: 600; }
.gx-g-sdot { width: 7px; height: 7px; border-radius: 999px; background: var(--gx-idle); }
.gx-g-sdot.is-good { background: var(--gx-good); }
.gx-g-sdot.is-work { background: var(--gx-warn); animation: gx-blink 1.1s ease-in-out infinite; }
.gx-g-sdot.is-bad { background: var(--gx-bad); }
.gx-g-boxes { display: inline-flex; gap: 2px; }
.gx-g-boxes i { width: 7px; height: 7px; border-radius: 1.5px; background: var(--gx-line); transition: background 300ms; }
.gx-g-boxes i.is-on { background: var(--gx-good); }
@media (max-width: 400px) {
  .gx-g-row { font-size: 13px; }
  .gx-g-meta .gx-g-m { display: none; }
  .gx-g-m + .gx-g-when::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-g-trunk, .gx-g-row .gx-g-dot { animation: none !important; }
}

/* What's working in your market */
.gx-mads { margin: -12px -14px 0; }
.gx-mad { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--gx-line); }
.gx-mad.is-own { background: rgba(var(--st-accent-rgb), 0.04); }
.gx-av { border-radius: 999px; }
.gx-av img { width: 100%; height: 100%; object-fit: cover; }
.gx-mad-c { min-width: 0; }
.gx-mad-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gx-mad-n { font-size: 13px; font-weight: 600; color: var(--gx-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-mad-d { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.gx-mad-t { margin: 3px 0 0; font-size: 14px; font-weight: 600; color: var(--gx-ink); line-height: 1.35; }
.gx-mad-b { margin: 2px 0 0; font-size: 13px; color: var(--gx-3); line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Tap targets: small-looking controls still get a 44px hit area. */
.gx-sug, .gx-btn-sm, .gx-tl-c .gx-textbtn, .gx-pick { position: relative; }
.gx-sug::after { content: ""; position: absolute; inset: -5px 0; }
.gx-btn-sm::after { content: ""; position: absolute; inset: -6px 0; }
.gx-tl-c .gx-textbtn::after { content: ""; position: absolute; inset: -6px 0; }
.gx-top .st-wordmark { min-height: 44px; }
.gx-send { flex-basis: 44px; width: 44px; height: 44px; }
.gx-box { min-height: 54px; }
.gx-under .gx-textbtn { min-height: 44px; }
.gx-wf { min-height: 44px; margin-bottom: 2px; }
.gx-work-h { min-height: 44px; }
a.gx-sub { position: relative; }
a.gx-sub::after { content: ""; position: absolute; inset: -14px 0; }
/* Safe areas: nothing under the Dynamic Island, the home indicator or the landscape notch. */
.gx-top-in, .gx-thread { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.gx-composer { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }

/* Paced reveal: the active row "thinks" (a short line under it) before its result shows. */
.gx-g-hr { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.gx-skip { position: relative; min-height: 28px; padding: 0 4px; border: 0; background: none; color: var(--gx-3); font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gx-skip::after { content: ""; position: absolute; inset: -8px -6px; }
.gx-g-think { grid-column: 2 / -1; margin: -4px 0 6px; font-size: 12px; color: var(--gx-3); font-style: italic; }
.gx-g-think::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: gx-ellipsis 1.2s steps(4, end) infinite; }
@keyframes gx-ellipsis { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.gx-g-row .gx-g-tags, .gx-g-row .gx-g-meta { transition: opacity 260ms; }
.gx-g-row.is-thinking .gx-g-tags, .gx-g-row.is-thinking .gx-g-meta { opacity: 0; }
.gx-g-row.is-thinking .gx-g-dot { background: var(--gx-surface); border: 1.5px solid var(--lc); border-top-color: transparent; width: 10px; height: 10px; margin-top: -5px; animation: st-spin 800ms linear infinite !important; }
.gx-g-row.is-thinking .gx-g-label { color: var(--gx-ink); }
.gx-gt.is-bad { color: var(--gx-bad); background: color-mix(in srgb, var(--gx-bad) 9%, transparent); }
@media (prefers-reduced-motion: reduce) { .gx-g-think::after { animation: none; content: "..."; } }
/* Lanes span the thinking line too, so the graph never breaks; dots sit on the first line. */
.gx-g-lanes { grid-row: 1 / span 2; }
.gx-g-dot { top: 15px; }
.gx-g-rows > li:first-child .gx-g-trunk { top: 15px; }
.gx-g-rows > li:last-child .gx-g-trunk { bottom: auto; height: 15px; }
.gx-g-rows > li:only-child .gx-g-trunk { display: none; }
.gx-g-row.is-first .gx-g-branch { top: 15px; }
.gx-g-row.is-last .gx-g-branch { bottom: auto; height: 15px; }
.gx-g-row.is-first.is-last .gx-g-branch { display: none; }
.gx-g-row.is-first .gx-g-lanes::after { height: 15.75px; }
.gx-g-row.is-end .gx-g-trunk { bottom: auto; height: 15px; }

.gx-g-row.is-wrap { align-items: start; }
.gx-g-row.is-wrap .gx-g-main { padding: 6px 0; align-items: flex-start; }
.gx-g-row.is-wrap .gx-g-label { white-space: normal; }
.gx-g-row.is-wrap .gx-g-lt { white-space: normal; overflow: visible; line-height: 1.38; }
.gx-g-row.is-wrap .gx-g-meta { padding-top: 7px; }

/* A change's result, inline in the reply. */
.gx-ads-inline { margin: 6px -16px 8px -16px; padding: 2px 16px 4px; scroll-padding: 0 16px; }
.gx-change { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--gx-line); font-size: 13.5px; color: var(--gx-2); }
.gx-change-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-change .gx-textbtn { flex: 0 0 auto; }
.gx-step.is-thinking .gx-step-m::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: gx-ellipsis 1.2s steps(4, end) infinite; }

/* ===== The deliverable: "Your <Business> Growth System" ===== */
.gx-w[data-w="doc"] > .gx-w-h { display: none; } /* the document has its own header */
.gx-w[data-w="doc"] > .gx-w-b { padding: 0; }
.gx-w[data-w="doc"].is-waiting > .gx-w-h { display: flex; }
.gx-w[data-w="doc"].is-waiting > .gx-w-b { padding: 12px 14px 14px; }
.gx-doc-h { padding: 18px 16px 14px; border-bottom: 1px solid var(--gx-line); }
.gx-doc-h .gx-eyebrow { margin: 0 0 6px; }
.gx-doc-t { margin: 0 0 6px; font-family: var(--st-display); font-size: 22px; line-height: 1.18; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.gx-doc-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--gx-line); scrollbar-width: none; }
.gx-doc-nav::-webkit-scrollbar { display: none; }
.gx-doc-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--gx-line); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--gx-2); text-decoration: none; position: relative; }
.gx-doc-nav a::after { content: ""; position: absolute; inset: -6px 0; }
.gx-doc-nav a span { color: var(--gx-4); font-size: 11.5px; }
.gx-ds { padding: 16px 16px 14px; border-bottom: 1px solid var(--gx-line); scroll-margin-top: 70px; }
.gx-ds-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--st-display); font-size: 16.5px; font-weight: 600; letter-spacing: -0.02em; }
.gx-ds-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--gx-ink); color: var(--gx-surface); font-family: var(--st-font); font-size: 12px; font-weight: 700; flex: 0 0 24px; }
.gx-ds-b > * + * { margin-top: 10px; }
.gx-ds-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gx-ds .gx-ads { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
.gx-ds .gx-kvs { margin: 0; padding: 0; border-bottom: 0; }
.gx-cite { font-size: 13px; color: var(--gx-3); }
.gx-ad-tools { display: flex; gap: 6px; margin: 8px 0 8px; }
.gx-ad-tools .gx-copy { flex: 1; }
.gx-script-b { border: 1px solid var(--gx-line); border-radius: 9px; padding: 10px 12px; background: var(--gx-sunk); }
.gx-script-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.gx-script-l { font-size: 12.5px; font-weight: 650; color: var(--gx-3); min-width: 0; }
.gx-script-s { margin: 0 0 2px; font-size: 13.5px; font-weight: 600; color: var(--gx-ink); }
.gx-script-t { margin: 0; font-size: 14px; color: var(--gx-ink); line-height: 1.5; white-space: pre-line; }
.gx-script-b .gx-flow { margin-top: 4px; }
.gx-copy { position: relative; flex: 0 0 auto; min-height: 30px; padding: 0 10px; border: 1px solid var(--gx-line); border-radius: 7px; background: var(--gx-surface); color: var(--gx-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.gx-copy::after { content: ""; position: absolute; inset: -7px 0; }
.gx-copy.is-done { color: var(--gx-good); border-color: color-mix(in srgb, var(--gx-good) 40%, var(--gx-line)); }
.gx-flowstrip { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; font-size: 12.5px; font-weight: 600; }
.gx-flowstrip span { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid var(--gx-line); border-radius: 6px; background: var(--gx-sunk); color: var(--gx-ink); }
.gx-note-ok { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; color: var(--gx-2); }
.gx-note-ok i { width: 6px; height: 6px; border-radius: 999px; background: var(--gx-warn); flex: 0 0 6px; }
.gx-ds .gx-talk { margin: 10px -16px -14px; border-radius: 0; }
.gx-ds .gx-talk-off { margin-top: 10px; }

/* Email me my plan */
.gx-email { padding: 16px; background: var(--gx-sunk); }
.gx-email-t { margin: 0 0 8px; font-family: var(--st-display); font-size: 15px; font-weight: 600; }
.gx-email-row { display: flex; gap: 8px; }
.gx-email-in { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--gx-line); border-radius: 8px; background: var(--gx-surface); padding: 0 12px; }
.gx-email-row .gx-btn { flex: 0 0 auto; }
.gx-email-ok { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--gx-2); cursor: pointer; min-height: 44px; }
.gx-email-ok input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--st-accent); flex: 0 0 18px; }
.gx-email .gx-fine:empty { display: none; }
@media (max-width: 400px) { .gx-email-row { flex-direction: column; } .gx-email-row .gx-btn { width: 100%; } }

/* The card ask */
.gx-ask { margin: 0 0 14px; font-family: var(--st-display); font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: -0.015em; color: var(--gx-ink); text-wrap: pretty; }

/* Desktop: the plan becomes a real document, wider than the chat column, with a sticky section nav. */
@media (min-width: 1024px) {
  .gx-w[data-w="doc"] { width: min(1040px, calc(100vw - 64px)); margin-left: calc((100% - min(1040px, calc(100vw - 64px))) / 2); }
  .gx-doc-h { padding: 28px 32px 22px; }
  .gx-doc-t { font-size: 30px; }
  .gx-doc-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
  .gx-doc-nav { flex-direction: column; gap: 2px; overflow: visible; padding: 20px 12px; border-bottom: 0; border-right: 1px solid var(--gx-line); position: sticky; top: 64px; align-self: start; }
  .gx-doc-nav a { border: 0; border-radius: 7px; min-height: 36px; padding: 0 10px; font-size: 13.5px; }
  .gx-doc-nav a:hover { background: var(--gx-sunk); color: var(--gx-ink); }
  .gx-doc-main { max-width: 760px; }
  .gx-ds { padding: 24px 32px 22px; }
  .gx-ds .gx-ads { margin-left: -32px; margin-right: -32px; padding-left: 32px; padding-right: 32px; scroll-padding: 0 32px; }
  .gx-ds .gx-talk { margin: 12px -32px -22px; }
  .gx-email { padding: 22px 32px; }
}
.gx-arrow { font-style: normal; color: var(--gx-4); font-size: 13px; }

/* Chat gate: out of changes here, keep building in a free account. */
.gx-gate { margin: 4px 0 8px; padding: 14px; border: 1px solid var(--gx-line); border-radius: var(--gx-r); background: var(--gx-surface); }
.gx-gate-t { margin: 0 0 10px; font-family: var(--st-display); font-size: 15.5px; line-height: 1.4; font-weight: 600; letter-spacing: -0.015em; }
.gx-gate-b { display: flex; gap: 8px; flex-wrap: wrap; }
.gx-gate-b .gx-btn { flex: 1 1 140px; white-space: nowrap; text-align: center; padding: 0 12px; }
/* Benchmarks (only rendered with real data) */
.gx-bench { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.gx-bench-i { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--gx-line); border-radius: 9px; background: var(--gx-sunk); }
.gx-bench-v { font-family: var(--st-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.gx-bench-l { font-size: 13px; color: var(--gx-2); }
.gx-bench-i .gx-fine { margin: 2px 0 0; }

/* Sales scripts mini-playbook */
.gx-quickref span { background: var(--gx-surface); }
.gx-disc { margin: 4px 0 0; padding: 0 0 0 20px; }
.gx-disc li { padding: 4px 0; }
.gx-disc li::marker { color: var(--gx-4); font-size: 12px; }
.gx-disc-q { margin: 0; font-size: 14px; color: var(--gx-ink); }
.gx-disc-n { margin: 1px 0 0; font-size: 12.5px; color: var(--gx-3); line-height: 1.45; }
.gx-playbook-more > * + * { margin-top: 12px; }
.gx-ds .gx-sec > .gx-script-b + .gx-script-b { margin-top: 8px; }

/* A section the second call is still writing. */
.gx-pending { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 8px 10px; align-items: center; padding: 10px 12px; border: 1px dashed var(--gx-line); border-radius: 9px; }
.gx-pending-t { font-size: 13.5px; font-weight: 600; color: var(--gx-2); }
.gx-pending-t::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: gx-ellipsis 1.2s steps(4, end) infinite; }
.gx-pending .gx-skel { grid-column: 1 / -1; }

/* The ad preview shows the real creative (the same image the visitor downloads). */
.gx-ad-img.is-creative { aspect-ratio: 1 / 1; padding: 0; display: block; background: #111; }
.gx-ad-img.is-creative img { display: block; width: 100%; height: 100%; }

/* The ad photo is being made (honest frame; the download waits for it). */
.gx-ad-img.is-making { aspect-ratio: 1 / 1; padding: 0; display: grid; place-items: center; background: #f0f2f5; }
.gx-making { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #3b3f4a; }
.gx-making span:last-child::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: gx-ellipsis 1.2s steps(4, end) infinite; }
.gx-copy:disabled { opacity: 0.45; cursor: default; }
.gx-ad-img .gx-making span { margin: 0; font-size: 13px; letter-spacing: 0; text-transform: none; opacity: 1; }

/* A brand logo with no dark version: keep it visible on the dark canvas. */
@media (prefers-color-scheme: dark) { .st-logo-auto { filter: invert(1) hue-rotate(180deg); } }
/* A note for the owner (approve a price, confirm terms): beside the ad or the agent, never inside customer copy. */
.gx-owner-note { margin: 6px 2px 8px; padding: 7px 10px; border-left: 2px solid var(--gx-warn); background: color-mix(in srgb, var(--gx-warn) 8%, transparent); border-radius: 0 6px 6px 0; font-size: 12.5px; color: var(--gx-2); line-height: 1.45; }
.gx-owner-note b { color: var(--gx-ink); font-weight: 650; }

/* ===== QA pass ===== */
/* Sticky section nav needs the document card not to clip. */
.gx-w[data-w="doc"] { overflow: visible; }
.gx-w[data-w="doc"] .gx-doc-h { border-radius: var(--gx-r) var(--gx-r) 0 0; }
/* Carousel arrows (desktop) */
.gx-rail { position: relative; }
.gx-arrow-btn { display: none; }
.gx-vs-name { display: none; }
@media (min-width: 720px) {
  .gx-arrow-btn { display: grid; place-items: center; position: absolute; top: 38%; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--gx-line); background: var(--gx-surface); color: var(--gx-ink); font: inherit; font-size: 18px; cursor: pointer; z-index: 2; }
  .gx-arrow-btn.is-prev { left: -12px; }
  .gx-arrow-btn.is-next { right: -12px; }
  .gx-vs-name { display: block; margin-top: 4px; font-size: 11px; font-weight: 500; color: var(--gx-3); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* CRM section */
.gx-crm-q { font-size: 14px; color: var(--gx-ink); margin-bottom: 8px; }
.gx-crm-list { margin-top: 10px; }
/* Merge fields as chips */
.gx-merge { display: inline-block; padding: 0 6px; margin: 0 1px; border-radius: 5px; background: rgba(var(--st-accent-rgb), 0.1); color: var(--gx-ink); font-family: var(--gx-mono, ui-monospace, monospace); font-size: 0.86em; line-height: 1.5; white-space: nowrap; }
/* Card ask recap */
.gx-recap { margin-bottom: 14px; }
.gx-recap-list { margin: 10px 0 10px; }
.gx-recap-list li { color: var(--gx-ink); }
.gx-roi { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--gx-sunk); font-size: 13px; color: var(--gx-2); line-height: 1.45; }
.gx-roi-t { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--gx-line); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--gx-3); }
/* Mobile: composer stays small (no suggestions while reading the plan); build rows wrap instead of truncating. */
.gx-composer.is-compact .gx-suggest { display: none; }
@media (max-width: 480px) {
  .gx-composer { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .gx-box { min-height: 50px; padding: 3px; }
  .gx-suggest { margin-bottom: 6px; }
  .gx-sug { min-height: 32px; }
  .gx-g-lt { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
  .gx-g-row .gx-g-label { white-space: normal; }
  .gx-g-row { align-items: start; }
  .gx-g-row .gx-g-main { padding: 6px 0; align-items: flex-start; flex-wrap: wrap; }
  .gx-g-row .gx-g-meta { padding-top: 7px; }
  .gx-w[data-w="doc"] { max-width: 100%; }
  .gx-doc, .gx-doc-grid, .gx-doc-main { min-width: 0; max-width: 100%; }
}

/* ===== Less "AI", more editorial: no letter avatar, no monospace stats strip, hairlines instead of grey boxes ===== */
.gx-asst-mark, .gx-g-strip { display: none; }
.gx-wf, .gx-work { padding-left: 0; }
.gx-script-b { border: 0; border-top: 1px solid var(--gx-line); border-radius: 0; background: none; padding: 12px 0 2px; }
.gx-ds-b > .gx-script-b:first-child, .gx-sec-t + .gx-script-b { border-top: 0; padding-top: 2px; }
.gx-ds .gx-sec > .gx-script-b + .gx-script-b { margin-top: 0; }
.gx-script-l { font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--gx-3); font-weight: 600; }
.gx-script-t { font-size: 15px; line-height: 1.6; }
.gx-ds-n { width: auto; height: auto; flex: 0 0 auto; border-radius: 0; background: none; color: var(--gx-4); font-family: var(--st-display); font-size: 15px; font-weight: 500; }
.gx-ds-h { font-size: 19px; letter-spacing: -0.025em; margin-bottom: 14px; }
.gx-sec-t { font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--gx-3); font-weight: 600; margin: 0 0 6px; }
.gx-pending { border-style: solid; border-color: var(--gx-line-2); }
.gx-ad-angle { margin: 8px 2px 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gx-3); }

/* Build tags read as words, not code. */
.gx-g .gx-mono, .gx-gt { font-family: var(--st-font); letter-spacing: 0; }

/* The voice agent brief */
.gx-agent-id { margin: 0; font-family: var(--st-display); font-size: 17px; line-height: 1.45; letter-spacing: -0.015em; color: var(--gx-ink); text-wrap: pretty; }
.gx-agent-greet { margin: 0; font-size: 15px; color: var(--gx-2); }
.gx-agent-greet .gx-sec-t { display: inline; margin-right: 6px; }
.gx-agent-greet q { color: var(--gx-ink); font-style: italic; }
.gx-call { padding: 14px 0 4px; border-top: 1px solid var(--gx-line); }
.gx-call-lines { display: flex; flex-direction: column; gap: 8px; }
.gx-call-l { margin: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.55; color: var(--gx-ink); }
.gx-call-l b { font-size: 12.5px; font-weight: 600; color: var(--gx-3); padding-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-call-l.is-agent b { color: var(--st-accent); }
@media (prefers-color-scheme: dark) { .gx-call-l.is-agent b { color: color-mix(in srgb, var(--st-accent) 55%, #fff); } }
.gx-branch { margin: 0; padding: 0 0 0 20px; }
.gx-branch li { padding: 6px 0; border-bottom: 1px solid var(--gx-line-2); }
.gx-branch li:last-child { border-bottom: 0; }
.gx-branch li::marker { color: var(--gx-4); font-size: 12px; }
.gx-branch-q { margin: 0; font-size: 15px; color: var(--gx-ink); }
.gx-branch-a { margin: 2px 0 0; font-size: 13.5px; color: var(--gx-2); }
.gx-branch-a span { color: var(--gx-3); }
.gx-obj { padding: 8px 0; border-top: 1px solid var(--gx-line-2); }
.gx-sec-t + .gx-obj { border-top: 0; padding-top: 2px; }
.gx-obj-q { margin: 0 0 2px; font-size: 14.5px; font-weight: 600; color: var(--gx-ink); }
.gx-obj-a { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--gx-2); }
.gx-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 28px; padding-top: 14px; border-top: 1px solid var(--gx-line); }
.gx-rule .gx-checks { margin: 0; }

/* The outline the desktop pane shows while the Growth System is written */
.gx-outline { list-style: none; margin: 0; padding: 4px 0 8px; }
.gx-outline li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--gx-line-2); }
.gx-outline-t { font-family: var(--st-display); font-size: 17px; font-weight: 500; letter-spacing: -0.02em; color: var(--gx-2); }
.gx-outline-s { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--gx-3); }

/* ===== Desktop workspace: conversation on the left, the Growth System filling in on the right ===== */
.gx-pane[hidden] { display: none; }
@media (min-width: 1100px) {
  body.gx-ws { overflow: hidden; }
  body.gx-ws .gx-app { height: 100dvh; display: grid; grid-template-columns: 420px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  body.gx-ws .gx-top { grid-column: 1 / -1; grid-row: 1; position: relative; border-bottom-color: var(--gx-line); }
  body.gx-ws .gx-top-in { max-width: none; padding-left: 20px; padding-right: 20px; }
  body.gx-ws .gx-thread { grid-column: 1; grid-row: 2; max-width: none; width: auto; margin: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px calc(var(--gx-composer-h, 120px) + 24px); border-right: 1px solid var(--gx-line); }
  body.gx-ws .gx-intro { padding-top: 16px; }
  body.gx-ws .gx-h1 { font-size: 24px; }
  body.gx-ws .gx-composer { left: 0; right: auto; width: 420px; padding-left: 16px; padding-right: 16px; border-right: 1px solid var(--gx-line); }
  body.gx-ws .gx-composer-in { max-width: none; }
  body.gx-ws .gx-suggest { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  body.gx-ws .gx-pane { grid-column: 2; grid-row: 2; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--gx-surface); }
  body.gx-ws .gx-pane > .gx-widgets { max-width: 920px; margin: 0 auto; padding: 0 48px 64px; }
  /* The document fills the pane: no card, its section tabs stick to the top of the pane. */
  body.gx-ws .gx-w[data-w="doc"] { width: auto; margin: 0 -48px 28px; border: 0; border-radius: 0; background: transparent; }
  body.gx-ws .gx-w[data-w="doc"] > .gx-w-h { display: none; }
  body.gx-ws .gx-w[data-w="doc"] > .gx-w-b { padding: 0; }
  body.gx-ws .gx-doc-h { padding: 40px 48px 20px; border-bottom: 0; }
  body.gx-ws .gx-doc-t { font-size: 34px; letter-spacing: -0.035em; }
  body.gx-ws .gx-doc-grid { display: block; }
  body.gx-ws .gx-doc-nav { position: sticky; top: 0; z-index: 4; flex-direction: row; gap: 2px; overflow-x: auto; padding: 0 44px; border-right: 0; border-bottom: 1px solid var(--gx-line); background: var(--gx-surface); }
  body.gx-ws .gx-doc-nav a span { display: none; }
  body.gx-ws .gx-doc-nav a { border: 0; border-bottom: 2px solid transparent; border-radius: 0; min-height: 46px; padding: 0 10px; font-size: 13.5px; color: var(--gx-3); }
  body.gx-ws .gx-doc-nav a:hover, body.gx-ws .gx-doc-nav a.is-on { color: var(--gx-ink); background: none; border-bottom-color: var(--gx-ink); }
  body.gx-ws .gx-doc-main { max-width: none; }
  body.gx-ws .gx-ds { padding: 36px 48px 30px; scroll-margin-top: 58px; }
  body.gx-ws .gx-ds .gx-ads { margin-left: -48px; margin-right: -48px; padding-left: 48px; padding-right: 48px; scroll-padding: 0 48px; }
  body.gx-ws .gx-ds .gx-talk { margin: 14px -48px -30px; }
  body.gx-ws .gx-email { padding: 28px 48px; }
  body.gx-ws .gx-outline { padding: 0 48px 24px; }
  /* The research below the document: hairlines, not cards. */
  body.gx-ws .gx-pane .gx-w:not([data-w="doc"]) { background: transparent; border: 0; border-top: 1px solid var(--gx-line); border-radius: 0; margin: 0; }
  body.gx-ws .gx-pane .gx-w:not([data-w="doc"]) > .gx-w-h { padding: 18px 0 6px; border-bottom: 0; min-height: 0; }
  body.gx-ws .gx-pane .gx-w:not([data-w="doc"]) > .gx-w-b { padding: 6px 0 28px; }
  body.gx-ws .gx-pane .gx-w-t { font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; }
  body.gx-ws .gx-pane .gx-say { margin: 8px 0 12px; color: var(--gx-3); }
}
@media (min-width: 1700px) { body.gx-ws .gx-pane > .gx-widgets { max-width: 1040px; } }
@media (max-width: 480px) { .gx-call-l { grid-template-columns: 50px minmax(0, 1fr); gap: 8px; } .gx-rules { grid-template-columns: 1fr; } }
