/* KeywordIntent redesign (Stephanie's handover, 2026-10-27).
   Loaded after styles.css. The Aha Studio visual system: Plus Jakarta Sans,
   accent #DE5F14, dark #101A2E bands. Light only. */

/* ---------- tokens (re-mapped onto the names styles.css already uses) ---------- */
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --surface-2: #F8F9FC;
  --hover: #FAFBFD;
  --border: #E4E8F0;
  --divider: #EEF1F6;
  --text: #101A2E;
  --text-2: #33405A;
  --text-dim: #54607A;
  --muted: #8A93A8;
  --pale: #AEB8CB;
  --pale-2: #C9D1E0;
  --accent: #DE5F14;
  --accent-dk: #B84C0D;
  --accent-soft: #FFF1E6;
  --accent-soft-2: #FDEEE5;
  --accent-line: #FBE3D3;
  --accent-wash: #FFF4EA;
  --accent-focus: #F2B48C;
  --accent-text: #DE5F14;
  --accent-fg: #FFFFFF;
  --hl: #FF8540;
  --jump-bg: #E6F6F4;
  --warm: #9A6412;
  --good: #16A34A;
  --good-soft: #E8F6EE;
  --good-line: #BFE3CC;
  --bad: #DC2626;
  --bad-soft: #FEF2F2;
  --bad-line: #F7C9C9;
  --ink: #101A2E;
  --raised-dark: #1E2A44;
  --shadow: 0 1px 2px rgba(16, 26, 46, .05), 0 8px 24px -16px rgba(16, 26, 46, .18);
  --radius: 12px;
  --radius-card: 18px;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 13.5px/1.55 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.mono, code { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
a { color: var(--accent); }
a:hover { color: var(--accent-dk); }
input:focus, select:focus, textarea:focus { outline: none; }
.wrap { max-width: 1160px; margin: 0 auto; }
.eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.eyebrow.is-dark { color: #94A0B8; }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* The theme toggle is gone; hide any leftover. */
#themeToggle, .theme-icon, .theme-label, .nav-divider { display: none !important; }

/* ---------- announcement bar ---------- */
.announce {
  display: block; margin: 0; border-radius: 0; border: 0;
  background: var(--accent-wash); border-bottom: 1px solid var(--accent-line);
  padding: 10px clamp(20px, 3vw, 40px);
}
.announce-in { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; line-height: 1.45; }
.announce-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; padding: 3px 8px; border-radius: 99px; background: var(--accent); color: #fff; }
.announce-text { flex: 1 1 320px; color: var(--text-2); }
.announce-text strong { color: var(--text); }
.announce-link { font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }
.announce-link:hover { color: var(--accent-dk); text-decoration: underline; }
.announce-x { width: 28px; height: 28px; border: 0; background: transparent; color: var(--text-dim); font-size: 18px; cursor: pointer; border-radius: 7px; }
.announce-x:hover { background: var(--accent-line); }

/* ---------- dark band + header ---------- */
.darkband { position: relative; overflow: hidden; background: var(--ink); padding: 0 clamp(20px, 3vw, 40px); }
.topbar {
  min-height: 68px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 0; box-sizing: content-box;
  background: transparent; border: 0; justify-content: flex-start;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-tile { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.brand-name { font-size: 16px; letter-spacing: -.3px; color: #fff; font-weight: 500; }
.brand-name b { font-weight: 800; }
.free-pill {
  font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 2px 7px; border-radius: 99px;
  background: rgba(255,255,255,.09); color: var(--pale-2); border: 1px solid rgba(255,255,255,.18); text-transform: none;
}
.topnav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-guide, .nav-link, .nav-btn-outline, .nav-btn-primary, .nav-pill-user {
  height: 36px; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; border-radius: 9px;
  cursor: pointer; text-decoration: none; font-family: inherit; white-space: nowrap;
}
.nav-guide { padding: 0 14px; font-weight: 700; color: #fff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); }
.nav-guide span { color: var(--hl); }
.nav-guide:hover, .nav-guide.is-open { background: rgba(255,255,255,.14); }
.nav-link { padding: 0 12px; font-weight: 600; color: var(--pale-2); background: transparent; border: 0; }
.nav-link:hover { background: rgba(255,255,255,.09); color: #fff; text-decoration: none; }
.nav-btn-outline { padding: 0 14px; font-weight: 700; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.18); }
.nav-btn-outline:hover { background: rgba(255,255,255,.09); }
.nav-btn-primary { padding: 0 14px; font-weight: 700; color: #fff; background: var(--accent); border: 0; }
.nav-btn-primary:hover { background: var(--accent-dk); }
.nav-pill-user { padding: 0 14px 0 4px; gap: 8px; font-weight: 700; color: #fff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); border-radius: 99px; }
.nav-pill-user:hover { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.nav-avatar { width: 28px; height: 28px; border-radius: 99px; background: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.account-area:not([hidden]) { display: flex; align-items: center; gap: 6px; }

/* Results view: the seed search sits in the header as a compact dark pill. */
.header-search { display: none; }
body.is-results .header-search { display: block; flex: 1 1 300px; min-width: 0; max-width: 560px; }
body.is-results .header-search #searchForm { display: flex !important; }
.header-search .hs-pill {
  height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 12px;
  background: var(--raised-dark); border: 1px solid rgba(255,255,255,.14); border-radius: 11px;
}
.header-search .hs-pill > svg { flex: none; }
.header-search #searchForm { flex: 1; min-width: 0; display: flex; }
.header-search #seedInput { flex: 1; min-width: 0; height: 36px; border: 0; padding: 0; background: transparent; color: #fff; font-size: 14px; font-weight: 600; box-shadow: none; }
.header-search #seedInput::placeholder { color: #94A0B8; }
.header-search .sb-market { padding: 0; }
.header-search #locationSelect {
  height: 32px; max-width: 140px; border: 0; border-radius: 8px; background: rgba(255,255,255,.09); color: var(--pale-2);
  font-size: 12.5px; font-weight: 700; padding: 0 6px; appearance: auto; -webkit-appearance: auto;
}
.header-search #locationSelect option { color: var(--text); }
.header-search .sb-market svg { display: none; }
.header-search .sb-go { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13px; margin: 0; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 84px; display: flex; flex-direction: column; align-items: center; max-width: none; margin: 0; text-align: center; }
.hero:not(.compact) { max-width: none; padding-top: 56px; }
body.is-results .hero { display: none; }
.hero-dots {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 20%, transparent 75%);
}
.hero-glow {
  position: absolute; left: 50%; bottom: -160px; width: min(1000px, 100vw); height: 520px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(222,95,20,.30), rgba(222,95,20,.08) 55%, transparent);
}
.hero-col { position: relative; width: 100%; max-width: 880px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--pale); }
.live-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--good); animation: pulse 2s infinite; }
.hero h1 { margin: 0; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; max-width: 800px; font-weight: 800; letter-spacing: -1.2px; color: #fff; text-wrap: balance; }
.hero h1 em { color: var(--hl); font-style: normal; }
.hero .lede { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--pale); text-wrap: balance; }

/* typewriter */
.ticker-row { min-height: 42px; display: flex; align-items: center; justify-content: center; }
.ticker {
  display: inline-flex; align-items: center; gap: 10px; min-width: min(470px, 100%); max-width: 100%; box-sizing: border-box;
  padding: 7px 8px 7px 14px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); text-align: left;
}
.ticker .tk-label { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: #94A0B8; }
.ticker .tk-body { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; }
.ticker .tk-body.is-out { opacity: 0; transform: translateY(-4px); transition: opacity .35s ease, transform .35s ease; }
.ticker .tk-seed { flex: none; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; font-weight: 700; color: var(--pale-2); white-space: pre; background: none; border: 0; padding: 0; }
.ticker .tk-arrow { flex: none; opacity: 0; transition: opacity .2s; }
.ticker .tk-arrow.is-in { opacity: 1; }
.ticker .tk-result { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; }
.ticker .tk-caret { display: inline-block; width: 2px; height: 16px; margin-left: 2px; background: var(--accent-focus); border-radius: 1px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.ticker .tk-badge { flex: none; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #E6F6F4; color: #0D9488; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.ticker .tk-badge.is-in { opacity: 1; transform: scale(1); }

/* mode tabs */
.mode-tabs { margin-top: 10px; display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; justify-content: center; }
.mode-tab {
  height: 42px; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px 0 8px; border: 0; border-radius: 10px;
  background: transparent; color: var(--pale-2); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s;
}
.mode-tab:hover { background: rgba(255,255,255,.06); color: #fff; }
.mode-tab .mt-tile { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.09); color: var(--pale-2); }
.mode-tab.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,26,46,.1); }
.mode-tab.is-on .mt-tile { background: var(--accent); color: #fff; }

/* the one search bar */
.sb-edge {
  width: 100%; box-sizing: border-box; padding: 1.5px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(242,180,140,.95), rgba(222,95,20,.55) 40%, rgba(255,255,255,.28) 70%, rgba(242,180,140,.85));
  box-shadow: 0 0 56px rgba(222,95,20,.32), 0 24px 50px rgba(0,0,0,.45);
}
.sb {
  min-height: 68px; box-sizing: border-box; display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap;
  padding: 7px 7px 7px 22px; border-radius: 18.5px; background: #fff; text-align: left;
}
.sb-icon { flex: none; color: var(--accent); display: none; }
.sb[data-mode="seed"] .sb-icon[data-for="seed"], .sb[data-mode="list"] .sb-icon[data-for="list"],
.sb[data-mode="builder"] .sb-icon[data-for="builder"], .sb[data-mode="comp"] .sb-icon[data-for="comp"] { display: block; }
.sb-seg { display: none; flex: 1 1 220px; min-width: 0; align-items: center; gap: 8px; margin: 0; }
.sb[data-mode="seed"] .sb-seed, .sb[data-mode="list"] .sb-list, .sb[data-mode="builder"] .sb-builder, .sb[data-mode="comp"] .sb-comp { display: flex; }
/* The app hides #searchForm in other modes; in seed mode the tab owns it. */
.sb[data-mode="seed"] #searchForm[hidden] { display: flex !important; }
.sb input[type="text"] {
  flex: 1 1 120px; min-width: 0; height: 44px; border: 0; padding: 0; background: transparent; box-shadow: none;
  font: inherit; font-size: 17px; font-weight: 500; color: var(--text); border-radius: 0;
}
.sb input.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 15px; font-weight: 600; }
.sb input::placeholder { color: var(--muted); font-weight: 500; }
.sb-div { flex: none; width: 1px; height: 26px; background: var(--border); }
.sb-chips { flex: none; display: flex; align-items: center; gap: 6px; overflow: hidden; max-width: 70%; }
.sb-chip { flex: none; height: 30px; padding: 0 4px 0 11px; border-radius: 8px; background: var(--bg); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 2px; white-space: nowrap; color: var(--text); }
.sb-chip button { width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; padding: 0; }
.sb-chip button:hover { color: var(--bad); }
.sb-more { flex: none; font-size: 13px; font-weight: 800; color: var(--text-dim); }
.sb-lookup { flex: none; position: relative; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 12px; border-radius: 9px; background: var(--bg); }
.sb-lookup select { height: 34px; border: 0; padding: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text-2); appearance: none; -webkit-appearance: none; cursor: pointer; box-shadow: none; }
.sb-vs { flex: none; font-size: 12px; font-weight: 800; color: var(--muted); }
.sb-comp[data-lookup="find"] .sb-vs, .sb-comp[data-lookup="find"] #gapYours,
.sb-comp[data-lookup="mine"] .sb-vs, .sb-comp[data-lookup="mine"] #gapYours, .sb-comp[data-lookup="mine"] #gapTheir,
.sb-comp:not([data-lookup="mine"]) #mineChipInput { display: none; }
.sb-market { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 8px; color: var(--text-dim); }
.sb-market select {
  max-width: 140px; height: 36px; border: 0; padding: 0; background: transparent; box-shadow: none;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text-dim); appearance: none; -webkit-appearance: none; cursor: pointer;
}
.sb-go {
  flex: none; margin-left: auto; height: 54px; padding: 0 26px; border: 0; border-radius: 13px; background: var(--accent); color: #fff;
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: -.1px; cursor: pointer; white-space: nowrap; transition: background .15s;
  display: flex; align-items: center; gap: 10px;
}
.sb-go:hover:not(:disabled) { background: var(--accent-dk); }
.sb-go:disabled { opacity: .85; cursor: progress; }
.sb-go .spinner { width: 16px; height: 16px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; }

/* hint line under the bar */
.sb-hint { width: 100%; box-sizing: border-box; min-height: 20px; padding: 0 20px; font-size: 12.5px; color: #94A0B8; text-align: left; }
.hint-seg { display: none; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.sb-hint[data-mode="seed"] .hint-seg[data-for="seed"], .sb-hint[data-mode="list"] .hint-seg[data-for="list"],
.sb-hint[data-mode="builder"] .hint-seg[data-for="builder"], .sb-hint[data-mode="comp"] .hint-seg[data-for="comp"] { display: flex; }
.sb-hint .examples { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin: 0; }
.sb-hint .examples[hidden] { display: none; }
.sb-hint .example { border: 0; background: transparent; padding: 0; color: var(--pale-2); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; border-radius: 0; }
.sb-hint .example:hover { color: #fff; }
.hint-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hint-accent, .hint-link { border: 0; background: transparent; padding: 0; color: var(--accent-focus); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.hint-accent:hover, .hint-link:hover { color: #fff; }
.hint-preview { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 300px; }
.hint-cost { color: var(--accent-focus); font-weight: 700; }
.wildcard-hint { display: none !important; }
.examples-label { display: none; }

/* search progress */
.sb-progress:not([hidden]) { width: 100%; box-sizing: border-box; padding: 0 6px; display: flex; flex-direction: column; gap: 10px; text-align: left; animation: rise .2s ease-out; }
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.sp-stage { font-weight: 700; color: #fff; }
.sp-pct { font-weight: 800; color: var(--accent-focus); font-variant-numeric: tabular-nums; }
.sp-track { position: relative; height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.sp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: var(--hl); overflow: hidden; transition: width .8s cubic-bezier(.3,.7,.3,1); }
.sp-fill i { position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shimmer 1.1s ease-in-out infinite; }
.sp-steps { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.sp-step { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #94A0B8; }
.sp-step.is-now { color: #fff; }
.sp-step.is-done { color: var(--pale-2); }
.sp-dot { width: 16px; height: 16px; border-radius: 99px; display: grid; place-items: center; font-size: 10px; font-weight: 800; background: rgba(255,255,255,.1); color: transparent; }
.sp-step.is-now .sp-dot { background: var(--hl); box-shadow: 0 0 0 3px rgba(255,133,64,.3); animation: pulse 1.2s infinite; }
.sp-step.is-done .sp-dot { background: var(--good); color: #fff; animation: pop .35s; }
.top-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.top-progress i { display: block; height: 100%; width: 0; background: var(--hl); box-shadow: 0 0 12px rgba(255,133,64,.8); transition: width .8s cubic-bezier(.3,.7,.3,1); }

/* the mode extras below the bar, on the dark hero */
.hero .mode-panel { width: 100%; text-align: left; margin: 0; }
.hero .localmode:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; padding: 0 20px; }
.hero .local-switch .switch-text { color: var(--pale-2); font-size: 12.5px; }
.hero .local-actions { display: flex; gap: 12px; }
.hero .gap-competitors:not([hidden]), .hero .describemode:not([hidden]) {
  background: #fff; border-radius: 16px; padding: 16px 18px; color: var(--text); box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.hero .ki-loading { color: var(--pale-2); padding: 4px 20px; }
.hero .recent:not([hidden]) { justify-content: center; }
.hero .recent, .hero .recent * { color: var(--pale-2); }

/* ---------- landing sections ---------- */
main { max-width: 1160px; margin: 0 auto; padding: 56px clamp(20px, 3vw, 40px) 40px; box-sizing: content-box; }
body.is-results main { max-width: 1160px; padding-top: 24px; }
.marketing { display: flex; flex-direction: column; gap: 48px; margin: 0; padding: 0; border: 0; max-width: none; }
body.is-results .marketing { display: none; }
.mk-why { display: flex; flex-direction: column; gap: 20px; }
.mk-why-head { display: flex; gap: 20px 40px; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
.mk-why-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.mk-h2 { text-align: left; margin: 0; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -1px; text-wrap: balance; color: var(--text); }
.mk-h2.is-small { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.8px; }
.mk-sub { text-align: left; font-size: 15px; line-height: 1.6; color: var(--text-dim); margin: 0; max-width: none; }
.mk-proof { flex: 0 1 auto; display: flex; align-items: center; gap: 14px; }
.mk-proof-n { font-size: clamp(38px, 4.4vw, 52px); font-weight: 800; letter-spacing: -1.6px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-proof-n span { color: var(--pale-2); font-weight: 700; }
.mk-proof-cap { max-width: 170px; font-size: 12.5px; line-height: 1.45; color: var(--text-dim); }
.mk-proof-cap strong { color: var(--text); }
.mk-compare { margin: 28px 0 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; align-items: stretch; }
.cmp-card { border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.cmp-other { background: #fff; border: 1px solid var(--border); }
.cmp-ki { background: var(--ink); box-shadow: 0 20px 50px rgba(16,26,46,.18); }
.cmp-head { padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.cmp-tile { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.cmp-other .cmp-tile { background: var(--divider); color: var(--text-dim); }
.cmp-ki .cmp-tile { background: var(--accent); color: #fff; }
.cmp-title { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.cmp-title b { font-size: 15.5px; font-weight: 800; letter-spacing: -.3px; }
.cmp-title span { font-size: 12.5px; }
.cmp-other .cmp-title b { color: var(--text-dim); } .cmp-other .cmp-title span { color: var(--muted); }
.cmp-ki .cmp-title b { color: #fff; } .cmp-ki .cmp-title span { color: var(--pale); }
.cmp-pill { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #E6F6F4; color: #0D9488; }
.cmp-row { display: flex; align-items: center; gap: 10px; padding: 11px 20px; border-top: 1px solid var(--divider); }
.cmp-other .cmp-k { flex: 1; font-size: 14px; font-weight: 600; color: var(--text-dim); }
.cmp-other mark { background: var(--accent-soft-2); color: var(--accent-dk); border-radius: 5px; padding: 1px 4px; }
.cmp-v { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.cmp-foot { margin-top: auto; padding: 12px 20px; background: var(--hover); border-top: 1px solid var(--divider); font-size: 12.5px; color: var(--muted); }
.cmp-ki .cmp-row { flex-direction: column; align-items: stretch; gap: 8px; border-top-color: rgba(255,255,255,.08); padding: 12px 20px; }
.cmp-line { display: flex; align-items: center; gap: 10px; }
.cmp-ki .cmp-k { flex: 1; font-size: 14px; font-weight: 700; color: #fff; }
.cmp-ki .cmp-v { color: var(--pale-2); font-weight: 700; }
.cmp-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.cmp-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--hl); transition: width .8s cubic-bezier(.3,.7,.3,1); }
.mk-compare .cmp-ki .cmp-row { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.mk-compare.is-revealed .cmp-ki .cmp-row { opacity: 1; transform: none; }
.mk-compare.is-revealed .cmp-bar i { width: var(--w); }
.mk-compare.is-revealed .cmp-ki .cmp-row:nth-of-type(2) { transition-delay: 0s; }
.mk-compare.is-revealed .cmp-ki .cmp-row:nth-of-type(3) { transition-delay: .14s; }
.mk-compare.is-revealed .cmp-ki .cmp-row:nth-of-type(4) { transition-delay: .28s; }
.mk-compare.is-revealed .cmp-ki .cmp-row:nth-of-type(5) { transition-delay: .42s; }
@media (prefers-reduced-motion: reduce) { .mk-compare .cmp-ki .cmp-row { opacity: 1; transform: none; } .cmp-bar i { width: var(--w); transition: none; } }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 0; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: none; }
.feature-card h3 { margin: 0; font-size: 15.5px; font-weight: 800; letter-spacing: -.3px; color: var(--text); }
.feature-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-dim); }
.ft-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.t-blue { background: #EEF4FF; color: #2563EB; } .t-purple { background: #F3EDFE; color: #7C3AED; }
.t-teal { background: #E6F6F4; color: #0D9488; } .t-deepteal { background: #E6F1F4; color: #155E75; }
.t-pink { background: #FDEEF4; color: #DB2777; } .t-yellow { background: #FEF7DC; color: #CA8A04; }
.t-orange { background: #FFF1E6; color: #DE5F14; } .t-neutral { background: #EEF1F6; color: #33405A; }

.mk-faq-row { display: flex; flex-direction: column; gap: 22px; }
.mk-faq-head { display: flex; flex-direction: column; gap: 8px; }
.mk-faq-cols { display: flex; gap: 20px; flex-wrap: wrap; align-items: stretch; }
.mk-faq-cols .faq-list { flex: 999 1 520px; min-width: 0; max-width: none; background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; display: block; margin: 0; gap: 0; }
.faq { border: 0; border-top: 1px solid var(--divider); border-radius: 0; background: transparent; margin: 0; padding: 0; }
.faq:first-child { border-top: 0; }
.faq[open] { background: var(--hover); }
.faq summary {
  float: none; list-style: none; display: flex; align-items: center; gap: 14px; padding: 17px 20px; cursor: pointer;
  font-size: 14.5px; font-weight: 700; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  float: none; content: "+"; flex: none; margin-left: auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--divider); color: var(--text-dim); font-size: 16px; font-weight: 700;
}
.faq[open] summary::after { content: "−"; background: var(--accent-soft); color: var(--accent); }
.faq summary:hover { background: var(--hover); }
.faq p { margin: 0; padding: 0 60px 18px 20px; font-size: 13.5px; line-height: 1.6; color: var(--text-dim); max-width: 680px; animation: rise .2s ease-out; }
.mk-price { flex: 1 1 300px; box-sizing: border-box; background: var(--ink); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; color: #fff; }
.mk-price-title { font-size: 22px; font-weight: 800; letter-spacing: -.4px; line-height: 1.2; }
.mk-price-rows { display: flex; flex-direction: column; }
.mk-price-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.mpr-name { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mpr-name b { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #fff; }
.mpr-name > span { font-size: 12.5px; color: var(--pale); }
.mpr-val { flex: none; font-size: 15px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.mpr-val small { font-size: 12px; font-weight: 600; color: var(--pale); }
.pill-soon { font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; background: #FCEFD6; color: var(--warm); }
.mk-price-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.btn-orange { height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.btn-orange:hover { background: var(--accent-dk); color: #fff; text-decoration: none; }
.btn-ghost-dark { height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.btn-ghost-dark:hover { background: rgba(255,255,255,.09); color: #fff; text-decoration: none; }

/* ---------- footer ---------- */
.foot {
  max-width: 1160px; margin: 0 auto 32px; padding: 20px clamp(20px, 3vw, 40px) 0; box-sizing: content-box;
  border-top: 1px solid var(--border); display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); background: transparent;
}
.foot { flex-direction: row; justify-content: space-between; text-align: left; }
.foot-disclaimer { flex: 1 1 360px; line-height: 1.5; margin: 0; color: var(--muted); text-align: left; }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.foot-links a { color: var(--text-dim); font-weight: 700; text-decoration: none; border: 0; background: none; padding: 0; font-size: 12.5px; border-radius: 0; }
.foot-links a:hover { color: var(--accent); background: none; border: 0; }
.foot-cta { height: 30px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; }

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .darkband { padding: 0 16px; }
  main { padding-left: 16px; padding-right: 16px; }
  .topbar { gap: 10px; }
  .topnav { margin-left: 0; width: 100%; }
  .nav-link { padding: 0 8px; }
  .hero { padding: 32px 0 56px; }
  .sb { padding: 7px 7px 7px 14px; }
  .sb-market, .sb-go { margin-left: auto; }
  .sb-go { height: 48px; padding: 0 18px; }
  .ticker { font-size: 13px; padding: 7px 12px; }
  .mode-tab { padding: 0 10px 0 6px; font-size: 12.5px; }
  .sb-hint { padding: 0 6px; }
}

/* ================= results screen ================= */
#results { display: flex; flex-direction: column; gap: 16px; margin: 0; }
#results[hidden] { display: none !important; }
.rd-hidden { display: none !important; }
.t-green { background: #E8F6EE; color: #16A34A; }

/* title row + tabs */
.res-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.rh-left { flex: 1 1 360px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rh-back { align-self: flex-start; display: flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 0; color: var(--text-dim); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.rh-back:hover { color: var(--accent); }
.rh-title { font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: var(--text); overflow-wrap: anywhere; }
.rh-sub { font-size: 12.5px; color: var(--muted); }
#results .tabs { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: #E9EDF4; flex-wrap: wrap; border: 0; margin: 0; }
#results .tabs .tab {
  height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--text-dim);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; box-shadow: none;
}
#results .tabs .tab:hover { color: var(--text); }
#results .tabs .tab.is-active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,26,46,.1); }
#results .tabs .tab-n, #results .tabs .tab-count { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: #fff; color: var(--text-dim); font-variant-numeric: tabular-nums; }
#results .tabs .tab.is-active .tab-n, #results .tabs .tab.is-active .tab-count { background: var(--accent-line); color: var(--accent-dk); }
#results .tabs .tab-hint { display: none; }

/* stat strip (replaces the old summary line and split strip) */
.stat-strip { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--divider); }
.stat-strip:empty { display: none; }
.ss-cell { background: #fff; padding: 14px 18px; display: flex; flex-direction: column; gap: 3px; }
.ss-k { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.ss-v { font-size: 24px; font-weight: 800; letter-spacing: -.6px; font-variant-numeric: tabular-nums; color: var(--text); }
.ss-v.is-teal { color: #155E75; }
.ss-sub { font-size: 12px; color: var(--text-dim); }
#summary, #splitStrip { display: none !important; }

/* Search Console prompt */
.gsc-strip { margin: 0; }
.gsc-strip.is-dismissed .gsc-line { display: none; }
.gsc-line { background: #fff; border: 1.5px dashed var(--accent-focus); border-radius: 16px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gsc-icon { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 16px; }
.gsc-text { flex: 1 1 320px; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }
.gsc-text strong { color: var(--text); }
.gsc-line .ghost-btn { height: 38px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); font-size: 13px; font-weight: 700; }
.gsc-x { width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; border-radius: 7px; }
.gsc-x:hover { background: var(--divider); }

/* workspace: filter card + table card, equal height */
#keywordsPane.workspace { display: flex; gap: 20px; align-items: stretch; flex-wrap: wrap; margin: 0; }
#keywordsPane.workspace[hidden] { display: none; }

/* filter card */
.rail {
  flex: 1 1 240px; max-width: none; box-sizing: border-box; background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 1px 3px rgba(16,26,46,.05); padding: 18px; display: flex; flex-direction: column; gap: 18px;
  position: static; top: auto; max-height: none; overflow: visible; align-self: stretch; width: auto;
}
@media (min-width: 900px) { .rail { flex: 0 0 262px; } }
.rail-block { border: 0; padding: 0; margin: 0; background: none; }
.rail h4 { margin: 0 0 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rail-note { font-size: 12px; line-height: 1.45; color: var(--text-dim); margin: 6px 0 0; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rail-title { font-size: 15.5px; font-weight: 800; letter-spacing: -.3px; color: var(--text); }
.rail-reset { border: 0; font: inherit; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-dk); cursor: pointer; height: auto; }
.rail-reset:hover { background: var(--accent-line); }
.rail-switches { padding: 2px 12px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; }
.rail-switches .switch { display: flex; align-items: center; gap: 10px; height: 42px; margin: 0; cursor: pointer; flex-direction: row-reverse; justify-content: space-between; }
.rail-switches .switch-text { flex: 1; font-size: 13px; font-weight: 700; color: var(--text); }
.rail-switches .switch-text strong { font-weight: 700; }
.rail-sep { height: 1px; background: var(--divider); display: block; }
.rail .whatis { align-self: flex-start; margin-top: -10px; border: 0; background: none; padding: 0; color: var(--text-dim); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--border); }
/* the switch itself: 34x20 track, orange when on */
.switch-track { flex: none; width: 34px; height: 20px; border-radius: 99px; background: var(--pale-2); position: relative; transition: background .15s; border: 0; }
.switch-thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 99px; background: #fff; box-shadow: 0 1px 2px rgba(16,26,46,.2); transition: left .15s; transform: none; }
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track .switch-thumb { left: 16px; transform: none; }
.rail-group { display: flex; flex-direction: column; gap: 8px; }
.rail-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.preset-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid var(--divider); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; font: inherit; transition: border-color .15s, background .15s; }
.preset-tile:hover { border-color: var(--accent-focus); }
.preset-tile.is-on { border-color: var(--accent-focus); background: var(--accent-wash); box-shadow: 0 0 0 3px var(--accent-soft-2); }
.pt-tile { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; }
.pt-label { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.25; }
/* type and intent: the app's checkboxes as tags */
.tag-group { display: flex; flex-direction: row; flex-wrap: wrap; gap: 5px; }
.tag-group h4 { flex-basis: 100%; margin: 0 0 3px; }
.tag-group .chk, .tag { height: 28px; padding: 0 10px; border-radius: 8px; border: 0; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; background: var(--bg); color: var(--text-2); transition: background .15s, color .15s; margin: 0; }
.tag-group .chk input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tag-group .chk:has(input:checked), .tag.is-on { background: var(--ink); color: #fff; }
#typeFilterGroup .chk::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--dot, #8A93A8); }
#typeFilterGroup .chk:has(input[value="product"]) { --dot: #2563EB; }
#typeFilterGroup .chk:has(input[value="commercial"]) { --dot: #DE5F14; }
#typeFilterGroup .chk:has(input[value="comparison"]) { --dot: #7C3AED; }
#typeFilterGroup .chk:has(input[value="question"]) { --dot: #CA8A04; }
#typeFilterGroup .chk:has(input[value="general"]) { --dot: #8A93A8; }
.tag-row { display: flex; gap: 5px; flex-wrap: wrap; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg); }
.seg button { flex: 1; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--text-dim); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.seg button.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,26,46,.1); }
.rail input.mini-input, .rail select.mini-input, #includeInput, #excludeInput, #coverageUrl {
  width: 100%; box-sizing: border-box; height: 38px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--surface-2); font: inherit; font-size: 13px; color: var(--text); margin: 0 0 6px;
}
.rail input:focus, .rail select:focus { border-color: var(--accent-focus); box-shadow: 0 0 0 3px var(--accent-soft-2); }
.rail-inset { padding: 12px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 9px; }
.rail-inset h4 { margin: 0; }
.rail-inset .rail-note { margin: 0; }
.pill-call { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: #FCEFD6; color: var(--warm); letter-spacing: 0; text-transform: none; }
.rail .ghost-btn, .rail .kd-btn { height: 34px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; justify-content: center; }
.rail .ghost-btn:hover, .rail .kd-btn:hover { border-color: var(--accent-focus); color: var(--accent-dk); background: #fff; }
/* the conditional blocks (KGR, New site, strength, weak spots…) */
#lhfBlock, #coverageBlock, #winnableBlock, #samePageBlock, #icpFitBlock, #kgrBlock, #rankBlock, #strengthBlock, #weakBlock, #effVolBlock {
  padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--divider);
}
.rail .switch { gap: 10px; }
.rail .switch-text { font-size: 13px; color: var(--text); }
.rail-more { border-top: 1px solid var(--divider); padding-top: 14px; }
.rail-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--text); }
.rail-more summary::-webkit-details-marker { display: none; }
.rail-more summary::after { content: "+"; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--divider); color: var(--text-dim); font-weight: 700; }
.rail-more[open] summary::after { content: "−"; background: var(--accent-soft); color: var(--accent); }
.rail-more-body { display: flex; flex-direction: column; gap: 16px; padding-top: 14px; }

/* table card */
#keywordsPane .main-col {
  flex: 999 1 600px; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; padding: 0;
}
.tc-head { padding: 14px 20px; border-bottom: 1px solid var(--divider); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tc-title { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tc-title b { font-size: 15.5px; font-weight: 800; letter-spacing: -.3px; color: var(--text); }
.tc-title #rowCount { margin: 0; font-size: 12.5px; color: var(--muted); }
.tc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-actions .ghost-btn, .tc-actions select {
  height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.tc-actions .ghost-btn:hover { background: var(--hover); border-color: var(--border); }
.tc-actions .primary-btn, #shortlistBtn {
  height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
#shortlistBtn:hover { background: var(--accent-dk); filter: none; }
.copy-wrap, .shortlist-wrap { position: relative; display: inline-flex; }
.copy-menu, .shortlist-menu { z-index: 30; }
.copy-menu { position: absolute; right: 0; top: 44px; width: 280px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 40px rgba(16,26,46,.14); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.copy-menu[hidden] { display: none; }
.selbar { margin: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--accent-line); background: var(--accent-wash); padding: 10px 20px; gap: 8px; flex-wrap: wrap; align-items: center; }
.selbar .ghost-btn, .selbar .primary-btn { height: 32px; border-radius: 9px; font-size: 12.5px; font-weight: 700; padding: 0 12px; }
.selbar .ghost-btn { background: #fff; border: 1px solid var(--border); color: var(--text); }
.verdict { margin: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--divider); }
.explainer { margin: 12px 20px; border-radius: 14px; }
/* rows scroll inside the card, header sticks */
#keywordsPane .table-wrap { position: relative; max-height: max(480px, calc(100vh - 220px)); min-height: 480px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--pale-2) transparent; border: 0; border-radius: 0; margin: 0; }
/* the scroll area fills whatever height the card has (it matches the rail), so no blank space under the rows */
#keywordsPane .tw-fill { position: relative; flex: 1 1 auto; min-height: 480px; }
#keywordsPane .tw-fill > .table-wrap { position: absolute; inset: 0; max-height: none; min-height: 0; }
/* while a landing search's progress plays out, keep the results out of sight */
body.rd-hold #results { display: none !important; }
#resultsTable { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 13px; background: #fff; }
#resultsTable thead th {
  position: sticky; top: 0; z-index: 2; height: 38px; padding: 0 10px; background: var(--surface-2); border-bottom: 1px solid var(--divider);
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; text-align: left; white-space: nowrap;
}
#resultsTable thead th:first-child { padding-left: 20px; }
#resultsTable tbody td { padding: 11px 10px; border-bottom: 1px solid var(--divider); vertical-align: middle; }
#resultsTable tbody td:first-child { padding-left: 20px; }
#resultsTable tbody tr.kw-row:hover { background: var(--hover); }
#resultsTable .kw { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#resultsTable .kw-drill { font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
#resultsTable .kw-drill:hover { color: var(--accent); }
.jump-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: #E6F1F4; color: #155E75; border: 0; letter-spacing: 0; }
.jump-badge::before { content: "↗ Intent jump"; font-size: 10.5px; }
.src-badge, .fruit-badge, .samepage-badge { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px; letter-spacing: .02em; }
.star { width: 28px; height: 28px; border-radius: 7px; border: 0; background: transparent; }
.star:hover { background: var(--accent-soft); }
.opp { width: 38px; height: 26px; border-radius: 7px; display: inline-grid; place-items: center; background: #EEF1F6; color: #54607A; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.opp .opp-dot { display: none; }
.opp[data-tier="high"] { background: #E8F6EE; color: #16A34A; }
.opp[data-tier="mid"] { background: #FEF7DC; color: #9A6412; }
.type-pill { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; white-space: nowrap; border: 0; background: #EEF1F6; color: #33405A; }
.type-pill.product { background: #EEF4FF; color: #2563EB; }
.type-pill.commercial { background: #FFF1E6; color: #B84C0D; }
.type-pill.comparison { background: #F3EDFE; color: #6D28D9; }
.type-pill.question { background: #FEF7DC; color: #9A6412; }
.type-pill.general { background: #EEF1F6; color: #33405A; }
#resultsTable td.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.tdir.rising { color: #16A34A; } .tdir.falling { color: #DC2626; } .tdir.stable { color: var(--muted); }
.more-wrap { padding: 12px 20px; }
.rowcount { margin: 0; }

/* other panels on the results screen */
.shortlist, .expand-panel, .domain-tools, .trail { background: #fff; border: 1px solid var(--border); border-radius: 16px; margin: 0; }
#mapPane, #sprintPane { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; }
.results-toolbar[hidden] { display: none !important; }

@media (max-width: 640px) {
  .res-head { align-items: flex-start; }
  .rail { flex-basis: 100%; }
  .tc-head { padding: 12px 14px; }
}

/* results polish */
.rail-top { display: flex; flex-direction: column; gap: 18px; }
.rail-top > .whatis { margin-top: -10px; }
.preset-tile { gap: 6px; padding: 9px 10px; }
#resultsTable .kw { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 4px; }
#resultsTable .kw .star { flex: none; order: -1; }
#resultsTable .kw .kw-drill { flex: 1 1 0; min-width: 150px; }
#resultsTable .kw .kw-drill ~ span { flex: none; }
.comp-bar { width: 56px; height: 6px; border-radius: 99px; background: var(--divider); }

/* ================= sign in / create account ================= */
#authModal.modal-backdrop {
  background: rgba(16,26,46,.55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  align-items: flex-start; overflow-y: auto; overscroll-behavior: contain; padding: 24px 16px;
}
#authModal .auth-modal {
  position: relative; margin: auto; max-width: 540px; width: 100%; box-sizing: border-box; border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35); padding: 28px 28px 0; background: #fff; animation: rise .2s ease-out; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.auth-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.auth-x:hover { background: var(--divider); color: var(--text); }
.auth-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
#authTitle { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: var(--text); }
#authLede { margin: 6px 0 0; font-size: 13.5px; color: var(--text-dim); }
.auth-seg { margin: 18px 0 4px; display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg); width: 100%; max-width: 320px; }
.auth-seg button { flex: 1; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--text-dim); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.auth-seg button.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,26,46,.1); }
#authForm { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.auth-perks { display: none; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.is-signup .auth-perks { display: grid; }
.auth-perk { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--divider); }
.ap-tile { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.ap-t { font-size: 13px; font-weight: 800; color: var(--text); }
.ap-h { font-size: 11.5px; line-height: 1.4; color: var(--muted); margin-top: -6px; }
#authForm .auth-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
#authForm .auth-field > span { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
#authEmail, #authPassword {
  width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px 0 42px; border: 1.5px solid var(--border); border-radius: 11px;
  background: var(--surface-2) no-repeat 14px center; font: inherit; font-size: 14px; color: var(--text);
}
#authEmail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A93A8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v12H4z'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E"); }
#authPassword { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A93A8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); padding-right: 64px; }
#authEmail:focus, #authPassword:focus { border-color: var(--accent-focus); box-shadow: 0 0 0 3px var(--accent-soft-2); }
.auth-pw { position: relative; display: block; }
.auth-eye { position: absolute; right: 8px; top: 7px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-dim); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.auth-eye:hover { background: var(--divider); }
#authPwHint { display: none; }
.auth-meter { display: none; align-items: center; gap: 4px; }
.is-signup .auth-meter { display: flex; }
.auth-meter i { flex: 1; height: 4px; border-radius: 99px; background: var(--divider); transition: background .2s; }
.auth-meter b { flex: none; margin-left: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.auth-meter[data-s="1"] i:nth-child(1) { background: #DC2626; } .auth-meter[data-s="1"] b { color: #DC2626; }
.auth-meter[data-s="2"] i:nth-child(-n+2) { background: #CA8A04; } .auth-meter[data-s="2"] b { color: #9A6412; }
.auth-meter[data-s="3"] i { background: #16A34A; } .auth-meter[data-s="3"] b { color: #16A34A; }
.auth-newsletter { padding: 14px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; }
.auth-newsletter:has(input:checked) { background: var(--accent-wash); border-color: var(--accent-focus); }
.auth-newsletter .chk { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13px; }
.auth-newsletter input { width: 18px; height: 18px; accent-color: var(--accent); margin: 1px 0 0; flex: none; }
.auth-newsletter-copy { margin: 6px 0 0 28px; font-size: 12px; line-height: 1.5; color: var(--text-dim); }
#authError { color: var(--bad); font-size: 12.5px; font-weight: 700; margin: 0; }
#authModal .modal-actions { display: block; margin: 0; }
#authCancel { display: none; }
#authSubmit { width: 100%; height: 46px; justify-content: center; border-radius: 12px; font-size: 15px; font-weight: 700; background: var(--accent); }
#authSubmit:hover:not(:disabled) { background: var(--accent-dk); filter: none; }
.auth-switch { display: none; }
.auth-foot { align-self: stretch; margin: 22px -28px 0; padding: 14px 28px; border-top: 1px solid var(--divider); background: var(--hover); font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }

/* ================= Guide me ================= */
.wizard {
  top: 76px; bottom: auto; right: max(20px, calc((100vw - 1160px) / 2)); width: min(380px, calc(100vw - 40px)); max-height: calc(100vh - 96px);
  border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(16,26,46,.22); animation: rise .2s ease-out;
}
.wizard-head { background: var(--ink); color: #fff; padding: 14px 16px; gap: 12px; justify-content: flex-start; }
.wizard-head::before { content: "✦"; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; }
.wizard-head strong { flex: 1; font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.wizard-x { width: 30px; height: 30px; border-radius: 8px; opacity: 1; color: var(--pale-2); font-size: 16px; }
.wizard-x:hover { background: rgba(255,255,255,.09); color: #fff; }
.wizard-body { padding: 10px; }
.wiz-pick { gap: 4px; counter-reset: route; }
.wiz-route {
  position: relative; display: grid; grid-template-columns: 32px 1fr 14px; column-gap: 12px; align-items: center;
  padding: 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; counter-increment: route;
}
.wiz-route:hover { background: var(--hover); border: 0; }
.wiz-route::before { content: counter(route); grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: var(--accent-soft); color: var(--accent); }
.wiz-route:nth-child(4n+2)::before { background: #EEF4FF; color: #2563EB; }
.wiz-route:nth-child(4n+3)::before { background: #E6F6F4; color: #0D9488; }
.wiz-route:nth-child(4n+4)::before { background: #F3EDFE; color: #7C3AED; }
.wiz-route::after { content: "→"; grid-column: 3; grid-row: 1 / span 2; color: var(--pale); font-weight: 700; }
.wiz-route b { grid-column: 2; font-size: 13.5px; font-weight: 800; color: var(--text); }
.wiz-route span { grid-column: 2; font-size: 12px; color: var(--muted); margin: 0; }
.wizard-foot { padding: 12px 16px; border-top: 1px solid var(--divider); background: var(--hover); font-size: 12.5px; }
.wiz-bar > i { background: var(--hl); }
.wiz-step { font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.wiz-step b { color: var(--text); }
/* the guide's inline chips and pills, inside the walkthrough */
.wiz-step .g-ctl { display: inline-block; padding: 0 7px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; }
.wiz-step .g-pill { display: inline-block; padding: 1px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 800; }
.wiz-step .g-pro { background: #F3EDFE; color: #6D28D9; }
.wiz-step .g-paid { background: #FCEFD6; color: var(--warm); }
.nav-guide.is-open { background: rgba(255,255,255,.14); }
@media (max-width: 560px) { .wizard { right: 12px; left: 12px; width: auto; top: 70px; border-radius: 18px; max-height: calc(100vh - 86px); } }

/* ================= Guide me (second handover) ================= */
.nav-guide { border: 1px solid rgba(255,255,255,.18); }
.nav-guide span { color: #FF8540; }
.nav-guide.is-open { background: rgba(255,255,255,.14); border-color: rgba(255,133,64,.6); }
.wizard {
  /* bottom right corner of the window (Stephanie, 2026-10-27 follow-up) */
  position: fixed; z-index: 70; top: auto; bottom: 20px; left: auto; right: 20px;
  width: min(360px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 40px)); display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 60px rgba(16,26,46,.28); overflow: hidden; animation: rise .2s ease-out;
}
.wizard[hidden] { display: none; }
.wizard-head {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 20px 18px 20px 20px;
  background: var(--ink); color: #fff;
}
.wizard-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; width: auto; height: auto; border-radius: 0; background-color: transparent;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.wizard-head::after { content: ""; position: absolute; left: -60px; top: -80px; width: 220px; height: 200px; pointer-events: none; background: radial-gradient(closest-side, rgba(222,95,20,.35), transparent); }
.wz-head-tile {
  position: relative; z-index: 1; flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 18px;
  background: linear-gradient(180deg, #FF8540, #DE5F14); box-shadow: 0 6px 16px rgba(222,95,20,.45), inset 0 1px 0 rgba(255,255,255,.3);
}
.wz-head-text { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wz-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--accent-focus); }
.wz-head-text strong { font-size: 16px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wizard-x { position: relative; z-index: 1; flex: none; width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: var(--pale-2); font-size: 18px; cursor: pointer; opacity: 1; padding: 0; }
.wizard-x:hover { background: rgba(255,255,255,.12); color: #fff; }
.wizard-body { flex: 1 1 auto; overflow-y: auto; padding: 8px; scrollbar-width: thin; scrollbar-color: var(--pale-2) transparent; }
.wizard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; border-top: 1px solid var(--divider); background: var(--hover); }
.wz-foot-n { font-size: 12px; font-weight: 700; color: var(--muted); }
.wz-foot-btn { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 9px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.wz-foot-btn:hover { background: var(--accent-dk); color: #fff; text-decoration: none; }
.wz-tile {
  flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--c);
  background: linear-gradient(180deg, #fff, var(--t)); border: 1px solid color-mix(in srgb, var(--c) 18%, transparent);
  box-shadow: 0 2px 6px rgba(16,26,46,.06);
}
.wz-list { display: flex; flex-direction: column; }
.wz-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; font: inherit; }
.wz-row:hover { background: var(--bg); }
.wz-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wz-row-text b { font-size: 13.5px; font-weight: 800; color: var(--text); }
.wz-row-text span { font-size: 12px; color: var(--text-dim); }
.wz-row-text em { font-style: normal; font-size: 11px; color: var(--pale); }
.wz-arrow { flex: none; color: var(--pale-2); font-weight: 700; }
.wz-route { display: flex; flex-direction: column; gap: 16px; padding: 10px 10px 14px; animation: rise .2s ease-out; }
.wz-back { align-self: flex-start; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--bg); color: var(--text-dim); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.wz-back:hover { color: var(--text); }
.wz-problem { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--divider); }
.wz-problem .wz-tile { border-radius: 12px; }
.wz-problem-c { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wz-label { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.wz-problem p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.wz-check-head { display: flex; align-items: center; gap: 12px; }
.wz-ch-text { display: flex; flex-direction: column; gap: 1px; }
.wz-ch-hint { font-size: 11.5px; color: var(--pale); }
.wz-track { flex: 1; height: 5px; border-radius: 99px; background: var(--divider); overflow: hidden; }
.wz-track i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .3s; }
.wz-track i.is-full { background: #16A34A; }
.wz-count { font-size: 11.5px; font-weight: 800; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.wz-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wz-step { display: flex; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 12px; border: 1px solid var(--divider); background: #fff; box-shadow: 0 1px 2px rgba(16,26,46,.04); cursor: pointer; }
.wz-step.is-done { border-color: #CDEBD9; background: #F4FBF7; }
.wz-box {
  flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px; box-sizing: border-box; padding: 0; cursor: pointer;
  border: 1.5px solid var(--pale-2); background: #fff; box-shadow: inset 0 1px 2px rgba(16,26,46,.06); color: #fff; font-size: 13px; font-weight: 800; line-height: 1;
}
.wz-box:hover { border-color: #16A34A; }
.wz-step.is-done .wz-box { background: #16A34A; border-color: #16A34A; box-shadow: 0 2px 6px rgba(22,163,74,.3); }
.wz-step-c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wz-step-n { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--pale); }
.wz-step-t { font-size: 14px; font-weight: 800; letter-spacing: -.2px; color: var(--text); }
.wz-step.is-done .wz-step-t { color: var(--text-dim); text-decoration: line-through; text-decoration-color: var(--pale); }
.wz-step-b { font-size: 13px; line-height: 1.95; color: var(--text-dim); }
.wz-step-b.is-solo { color: var(--text-2); }
.wz-step-b b { color: var(--text); }
.wz-end { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #E8F6EE; border: 1px solid #CDEBD9; font-size: 13px; line-height: 1.55; color: #14532D; }
.wz-end b { font-weight: 800; }
.wz-end-ic { flex: none; width: 20px; height: 20px; border-radius: 99px; background: #16A34A; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.wizard .wiz-hint { margin: -8px 0 0; font-size: 12px; color: var(--text-dim); background: var(--accent-wash); border-radius: 8px; padding: 6px 10px; }
/* the guide's inline pills, per the second handover */
.wz-step-b .g-ctl, .wz-problem .g-ctl { display: inline; white-space: nowrap; line-height: 1; margin: 0 1px; padding: 2px 7px; border-radius: 6px; background: #FFF4EA; box-shadow: inset 0 0 0 1px #FBE3D3; border: 0; font-size: 12px; font-weight: 800; color: #B84C0D; }
.wz-step-b .g-code, .wz-step-b code { display: inline; white-space: nowrap; line-height: 1; margin: 0 1px; padding: 2px 6px; border-radius: 6px; background: #E6F1F4; color: #155E75; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; font-weight: 700; }
.wz-step-b .g-pill { display: inline; white-space: nowrap; line-height: 1; margin: 0 1px; padding: 2px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.wz-step-b .g-paid { background: #FCEFD6; color: #9A6412; }
.wz-step-b .g-pro { background: #F3EDFE; color: #6D28D9; }
@media (max-width: 560px) { .wizard { right: 16px; left: 16px; width: auto; top: auto; bottom: 16px; max-height: calc(100vh - 32px); } }
.hero .recent button, .hero .recent .recent-chip { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); color: var(--pale-2); }
.hero .recent button:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ================= result checkboxes + selection bar ================= */
#resultsTable input.row-sel, #selectAll {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; box-sizing: border-box; border-radius: 5px; cursor: pointer;
  border: 1.5px solid var(--pale-2); background: #fff center / 12px no-repeat; transition: background-color .15s; vertical-align: middle;
}
#resultsTable tr:hover input.row-sel, #selectAll:hover { border-color: var(--accent); }
#resultsTable input.row-sel:checked, #selectAll:checked {
  border: 0; background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}
#selectAll:indeterminate {
  border: 0; background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
}
#resultsTable th.selcol, #resultsTable td.selcol { width: 24px; }
#resultsTable { min-width: 890px; }
.selbar:not([hidden]) {
  position: sticky; bottom: 0; z-index: 4; margin: 0 12px 12px; padding: 10px 10px 10px 16px; border-radius: 14px;
  background: var(--ink); color: #fff; box-shadow: 0 12px 30px rgba(16,26,46,.3); border: 0;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; animation: rise .2s ease-out;
}
.sel-lead { display: inline-flex; align-items: center; gap: 8px; margin-right: 4px; }
.sel-tick { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
#selCount { font-size: 13.5px; font-weight: 800; color: #fff; }
.selbar .sel-orange, .selbar .sel-ghost, .selbar .ghost-btn, .selbar .primary-btn {
  height: 34px; padding: 0 12px; border-radius: 9px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.selbar .sel-orange { border: 0; background: var(--accent); color: #fff; }
.selbar .sel-orange:hover { background: var(--accent-dk); }
.selbar .sel-ghost, .selbar .ghost-btn { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; }
.selbar .sel-ghost:hover, .selbar .ghost-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
.selbar .primary-btn { border: 0; background: #fff; color: var(--ink); }
.selbar .primary-btn:hover { filter: none; background: #F3F5F9; }
.selbar .selnote { flex-basis: 100%; order: 10; font-size: 11.5px; color: #94A0B8; }
.selbar .sel-x { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--pale-2); font-size: 20px; cursor: pointer; }
.selbar .sel-x:hover { background: rgba(255,255,255,.09); color: #fff; }
.selbar .spinner { border-color: rgba(16,26,46,.25); border-top-color: var(--ink); }
.rd-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 12px 30px rgba(16,26,46,.3);
  transition: opacity .2s, transform .2s;
}
.rd-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
