/* ═══════════════════════════════════════════════════════════
   SCIENTARI — BIOEVENTIQ
   conferrent.com
   Turquoise variant of the Scientari design system
   (BioEventIQ LifeSci Conference Intelligence)

   Upload to: public_html/css/bei-site.css
   Include:   <link rel="stylesheet" href="/css/bei-site.css">

   ── SYSTEM NOTE ──────────────────────────────────────────
   Shared with repothesis.com / drughelm.com / trialreadiness.com
   / clinevident.com. The purple base, gray ramp, fonts and
   transition are IDENTICAL across all Scientari sites.
   Only the accent differs:
     Repothesis  -> amber   #E89556
     DrugHelm    -> blue    #66acf3
     BioEventIQ  -> TURQUOISE #2EB8A6   (this file)
   The logo blue #6B7FD7 is a secondary accent, used for
   data/interactive components (sliders, chips, radar).
   ═════════════════════════════════════════════════════════ */

:root {
  /* ── Scientari shared purple base (do not localise) ── */
  --purple:        #4A3D6B;
  --purple-deep:   #2D2547;
  --purple-dark:   #1A1530;
  --purple-light:  #6B5A8E;

  /* Legacy aliases — kept so existing markup inherits the new palette.
     Old files referencing --bei-purple keep working. */
  --bei-purple:       #4A3D6B;
  --bei-purple-dark:  #2D2547;
  --bei-purple-light: #6B5A8E;

  /* ── BioEventIQ accent: turquoise ── */
  --turq:          #2EB8A6;
  --turq-light:    #4FD1BF;
  --turq-dark:     #1F8C7E;
  --turq-glow:     rgba(46,184,166,0.14);
  --turq-line:     rgba(46,184,166,0.38);
  --turq-tint:     rgba(46,184,166,0.12);

  /* ── Secondary accent: logo blue (data & interactive) ── */
  --iq-blue:       #6B7FD7;
  --iq-blue-light: #8E9EE4;
  --iq-blue-dark:  #4F61B0;
  --iq-blue-tint:  rgba(107,127,215,0.12);
  --iq-blue-line:  rgba(107,127,215,0.38);

  /* ── Shared Scientari support colours ── */
  --amber:         #E89556;
  --amber-light:   #F2A872;
  --amber-dark:    #C26B2B;
  --navy:          #1B2A4A;
  --navy-dark:     #0E1628;
  --green:         #27AE60;
  --red:           #C0392B;

  /* ── Shared gray ramp ── */
  --white:         #ffffff;
  --off-white:     #f8faf9;
  --gray-50:       #f5f8f8;
  --gray-100:      #e8edee;
  --gray-200:      #d0d8da;
  --gray-400:      #8a9599;
  --gray-600:      #566065;
  --gray-800:      #2d3538;
  --gray-900:      #151b1e;

  /* Legacy surface aliases */
  --bei-bg:        #ffffff;
  --bei-bg-2:      #f5f8f8;
  --bei-bg-3:      #e8edee;
  --bei-card:      #f5f8f8;
  --bei-border:    #e8edee;
  --bei-text:      #2d3538;
  --bei-text-2:    #566065;
  --bei-text-3:    #8a9599;
  --bei-footer-bg: #0E1628;

  /* ── Shared type stack ── */
  --font-display:      'Titillium Web', 'Helvetica Neue', sans-serif;
  --font-italic-serif: 'Crimson Pro', Georgia, serif;
  --font-body:         'DM Sans', -apple-system, system-ui, sans-serif;
  --font-mono:         'JetBrains Mono', ui-monospace, monospace;
  --bei-heading:       'Titillium Web', 'Helvetica Neue', sans-serif;
  --bei-body:          'DM Sans', -apple-system, system-ui, sans-serif;

  /* ── Shared metrics ── */
  --radius:     10px;
  --radius-lg:  16px;
  --max-w:      1140px;
  --max-w-app:  1400px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* One nav height for every page. Sticky offsets reference this rather than
     hardcoding a number that drifts when the nav changes. */
  --nav-h:      70px;
  --shadow:     0 1px 3px rgba(14,22,40,0.06);
  --shadow-lg:  0 12px 36px rgba(14,22,40,0.12);
}

/* ─── HEADLINE WEIGHT ───
   Titillium Web needs an explicit bold weight to read as a headline.
   Selectors below use --font-display but set no weight of their own. */
.stat-number,
.section-head h2,
.card-title,
.hero h1,
.cta-inner h2,
.page-head h1 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--turq-dark); }

h1, h2, h3, h4,
.bei-h1, .bei-h2, .bei-h3, .bei-h4 {
  font-family: var(--font-display);
  color: var(--purple-deep);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.container-app { max-width: var(--max-w-app); margin: 0 auto; padding: 0 2rem; }

/* ═══════════════════════════════════════
   NAV — shared across marketing + app
   ═══════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
  font-family: var(--font-body);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(27,42,74,0.08); }
/* One nav, every page. The 78px/62px split meant the logo and bar changed
   size as you moved from the homepage into the tools — the header appeared to
   "jump". A single height reads as one product; the vertical space saved on
   app pages wasn't worth the inconsistency. */
.nav-inner {
  max-width: var(--max-w-app); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; gap: 2rem;
  height: var(--nav-h);
  transition: box-shadow var(--transition);
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
/* 42px — was 38px marketing / 32px app. The wordmark carries a tagline
   ("LIFESCI CONFERENCE INTELLIGENCE") set very small; below ~40px it stops
   being legible and reads as a grey smudge. */
.nav-logo .nav-logo-img { height: 42px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links > a, .nav-link {
  font-size: 0.875rem; font-weight: 500; color: var(--gray-600);
  letter-spacing: 0.02em; padding: 6px 12px; border-radius: 6px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav-links > a:hover, .nav-link:hover,
.nav-links > a.active, .nav-link.active {
  background: var(--turq-tint); color: var(--purple);
}
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-cta, .btn-register {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  background: var(--turq); color: var(--white) !important;
  border: none; border-radius: 6px;
  font-family: inherit; font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.03em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: all var(--transition);
}
.nav-cta:hover, .btn-register:hover {
  background: var(--turq-dark); color: var(--white) !important;
  transform: translateY(-1px);
}
.caret { font-size: 0.65rem; margin-left: 3px; opacity: 0.7; }

/* ── Nav dropdown ── */
.bei-dropdown { position: relative; }
.bei-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  min-width: 300px; padding: 8px; z-index: 300;
}
.bei-dropdown-menu-right { left: auto; right: 0; min-width: 220px; }
.bei-dropdown.open .bei-dropdown-menu { display: block; }
.bei-dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  text-decoration: none; color: var(--gray-800);
  transition: background var(--transition);
}
.bei-dropdown-item:hover { background: var(--gray-50); }
.bei-dropdown-item.active { background: var(--turq-tint); }
.ddi-icon { font-size: 1.1rem; width: 24px; text-align: center; flex-shrink: 0; }
.bei-dropdown-item > span { display: flex; flex-direction: column; gap: 2px; }
.bei-dropdown-item strong {
  font-family: var(--font-display); font-size: 0.875rem;
  font-weight: 600; color: var(--purple-deep);
}
.bei-dropdown-item small { font-size: 0.75rem; color: var(--gray-400); }
.bei-dropdown-divider { height: 1px; background: var(--gray-100); margin: 6px 8px; }
.bei-signout strong, .bei-signout span { color: var(--red); }

/* ── Mobile toggle ── */
.mobile-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-600); border-radius: 2px;
  transition: var(--transition);
}

/* ── Profile prompt banner ── */
.bei-profile-prompt {
  background: linear-gradient(135deg, var(--turq-tint) 0%, var(--iq-blue-tint) 100%);
  border-bottom: 1px solid var(--gray-100);
  padding: 10px 2rem;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  font-family: var(--font-body);
}
.bpp-text { font-size: 0.86rem; color: var(--purple-deep); font-weight: 500; }
.bpp-text strong { font-weight: 700; }
.bpp-cta {
  background: var(--purple); color: var(--white); text-decoration: none;
  padding: 6px 18px; border-radius: 6px;
  font-size: 0.82rem; font-weight: 700; white-space: nowrap;
  transition: background var(--transition);
}
.bpp-cta:hover { background: var(--purple-deep); color: var(--white); }
.bpp-close {
  background: none; border: none; color: var(--gray-400);
  cursor: pointer; font-size: 1.1rem; padding: 0 4px; line-height: 1;
}
.bpp-close:hover { color: var(--gray-600); }

/* ═══════════════════════════════════════
   HERO — marketing pages only
   ═══════════════════════════════════════ */
.hero {
  padding: 5.5rem 0 5rem;
  position: relative; overflow: hidden;
  background: var(--purple-deep);
}
/* Layer 1 — the photograph. `center 40%` keeps faces/horizon in frame when
   the band crops; carried over from the previous build. */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('/images/conference-hero.jpg');
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}
/* Layer 2 — the brand wash. Was the whole hero background before; now it sits
   OVER the photo at partial alpha so the image reads through while the text
   keeps its contrast. The turquoise/blue radials stay on top of both. */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  /* Lightened from 0.90/0.86/0.88 to 0.74/0.68/0.72. The wash was so opaque
     the photograph was doing almost no work — you could have deleted the image
     and barely noticed. Contrast still holds: the headline sits over the
     upper-left, where the gradient is densest and the photo is darkest.
     Angled 165deg so the lightest part falls bottom-right, away from the text. */
  background:
    radial-gradient(ellipse at 70% 20%, rgba(46,184,166,0.20) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(107,127,215,0.12) 0%, transparent 50%),
    linear-gradient(165deg, rgba(14,22,40,0.74) 0%, rgba(26,21,48,0.68) 45%, rgba(45,37,71,0.72) 100%);
}
/* The sub-paragraph is the first thing to suffer when the wash lightens —
   it's the lowest-contrast text in the hero. Nudged up from 0.75. */
.hero .hero-sub { color: rgba(255,255,255,0.82); }
/* Sub-pages / coming-soon: same treatment, tighter band. */
.hero-stub::before { background-position: center 45%; }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; margin-bottom: 1.5rem;
  background: var(--turq-tint); border: 1px solid var(--turq-line);
  border-radius: 100px; color: var(--turq-light);
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--turq); border-radius: 50%;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  color: var(--white); line-height: 1.15;
  margin-bottom: 1.25rem; font-weight: 700; letter-spacing: -0.01em;
}
.hero h1 em {
  font-family: var(--font-italic-serif);
  font-style: italic; font-weight: 600; font-size: 1.1em;
  color: var(--turq);
}
.hero-sub {
  font-size: 1.125rem; color: rgba(255,255,255,0.75);
  line-height: 1.7; max-width: 600px; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ═══════════════════════════════════════
   PAGE HEAD — subpages / app pages (no hero)
   ═══════════════════════════════════════ */
.page-head {
  border-bottom: 1px solid var(--gray-100);
  background: var(--off-white);
  padding: 1.75rem 0 1.5rem;
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--purple-deep); margin-bottom: 0.35rem;
}
.page-head h1 em {
  font-family: var(--font-italic-serif);
  font-style: italic; font-weight: 600;
  color: var(--turq-dark); font-size: 1.05em;
}
.page-head p {
  font-size: 0.9375rem; color: var(--gray-600);
  line-height: 1.6; max-width: 680px;
}
.page-head-eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--turq-dark); margin-bottom: 0.5rem;
}
.page-head-eyebrow::before {
  content: ''; width: 5px; height: 5px;
  background: var(--turq); border-radius: 50%;
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--turq); color: var(--gray-900);
  font-family: inherit; font-weight: 700; font-size: 0.875rem;
  border: none; border-radius: 6px; cursor: pointer;
  letter-spacing: 0.03em; text-transform: uppercase;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--turq-light); color: var(--gray-900);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.28); border-radius: 6px;
  font-family: inherit; font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.03em; cursor: pointer;
  transition: all var(--transition);
}
.btn-secondary:hover {
  border-color: var(--turq); color: var(--turq);
  background: var(--turq-tint);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: transparent; color: var(--purple);
  border: 1px solid var(--gray-200); border-radius: 6px;
  font-family: inherit; font-weight: 600; font-size: 0.8125rem;
  cursor: pointer; transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--turq); color: var(--turq-dark); }

/* ═══════════════════════════════════════
   SECTIONS / CARDS
   ═══════════════════════════════════════ */
.section { padding: 4rem 0; }
.section-alt { background: var(--off-white); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--turq-dark); margin-bottom: 0.75rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--purple-deep); margin-bottom: 0.75rem;
}
.section-head h2 em {
  font-family: var(--font-italic-serif);
  font-style: italic; font-weight: 600;
  color: var(--turq-dark); font-size: 1.05em;
}
.section-head p { font-size: 1rem; color: var(--gray-600); line-height: 1.7; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.card:hover { border-color: var(--turq-line); box-shadow: 0 8px 24px rgba(14,22,40,0.08); }
.card-title {
  font-family: var(--font-display); font-size: 1rem;
  color: var(--purple-deep); margin-bottom: 0.5rem;
}
.card p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.25rem; color: var(--turq-dark); line-height: 1;
}
.stat-label {
  font-size: 0.75rem; font-weight: 600; color: var(--gray-400);
  letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.35rem;
}

/* Tier badges — kept semantic across app pages */
.tier-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  color: var(--white); padding: 2px 6px; border-radius: 3px;
  font-family: var(--font-body);
}
.tier-badge.t1 { background: var(--purple); }
.tier-badge.t2 { background: var(--iq-blue); }
.tier-badge.t3 { background: var(--turq-dark); }
.tier-badge.t4 { background: var(--gray-400); }

/* ═══════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(140deg, var(--purple-dark) 0%, var(--purple-deep) 60%, var(--navy-dark) 100%);
  padding: 3.5rem 0; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(46,184,166,0.22) 0%, transparent 60%);
}
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-inner h2 {
  font-family: var(--font-display); color: var(--white);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.75rem;
}
.cta-inner h2 em {
  font-family: var(--font-italic-serif); font-style: italic;
  color: var(--turq); font-weight: 600;
}
.cta-sub {
  font-size: 1rem; color: rgba(255,255,255,0.7);
  max-width: 560px; margin: 0 auto 2rem;
}

/* ═══════════════════════════════════════
   FOOTER — identical structure to all Scientari sites
   ═══════════════════════════════════════ */
footer {
  background: var(--navy-dark);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap;
}
.footer-brand img { height: 48px; width: auto; margin-bottom: 1.25rem; }
.footer-brand .footer-product-name {
  font-family: var(--font-display);
  font-size: 0.875rem; font-weight: 600;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.06em; margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.8125rem; color: rgba(255,255,255,0.42);
  max-width: 300px; line-height: 1.6;
}
.footer-links h5 {
  font-family: var(--font-display);
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.52); margin-bottom: 0.75rem;
}
.footer-links a {
  display: block; font-size: 0.8125rem;
  color: rgba(255,255,255,0.42); margin-bottom: 0.5rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--turq); }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8125rem; color: rgba(255,255,255,0.32);
  text-align: center;
}

/* ═══════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  .mobile-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-100);
    padding: 0.75rem 1rem 1.25rem; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .bei-dropdown-menu { position: static; box-shadow: none; border: none; min-width: 0; padding: 0 0 0 1rem; }
  .container, .container-app { padding: 0 1.25rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .footer-inner { flex-direction: column; gap: 1.75rem; }
}

/* ═══════════════════════════════════════
   LEGAL DOCUMENTS
   Rendered by legal-page.php via Parsedown.
   Prose scoped to .legal-doc so Parsedown output
   can't leak styling into app pages.
   ═══════════════════════════════════════ */
.legal-page-wrap {
  background: var(--off-white);
  min-height: 60vh;
  padding: 2rem 1.25rem 5rem;
  font-family: var(--font-body);
}
.legal-doc-rail { max-width: 780px; margin: 0 auto; }

.legal-back-link {
  display: inline-block; font-size: 0.8125rem;
  color: var(--gray-400); text-decoration: none;
  margin-bottom: 1.25rem; padding: 6px 0;
  transition: color var(--transition);
}
.legal-back-link::before { content: "\2190 "; opacity: 0.6; }
.legal-back-link:hover { color: var(--turq-dark); }

.legal-doc {
  max-width: 780px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  box-shadow: var(--shadow);
  color: var(--gray-800);
  line-height: 1.7; font-size: 0.9375rem;
}
.legal-doc h1 {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--purple-deep); line-height: 1.2; margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
/* "Last updated" metadata line directly under H1 */
.legal-doc h1 + p {
  color: var(--gray-400); font-size: 0.875rem;
  margin-top: 0; margin-bottom: 2rem;
}
.legal-doc h2 {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--purple-deep); margin: 2.25rem 0 0.875rem;
  padding-top: 1.25rem; border-top: 1px solid var(--gray-100);
}
.legal-doc h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1.75rem; }
.legal-doc h3 {
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700;
  color: var(--gray-900); margin: 1.5rem 0 0.625rem;
}
.legal-doc h4 {
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 700;
  color: var(--gray-900); margin: 1.25rem 0 0.5rem;
}
.legal-doc p { margin: 0 0 0.875rem; }
.legal-doc ul, .legal-doc ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.legal-doc li { margin-bottom: 0.375rem; }
.legal-doc li > p { margin-bottom: 0.5rem; }
.legal-doc strong { font-weight: 700; color: var(--gray-900); }
.legal-doc em { font-style: italic; color: var(--gray-600); }
.legal-doc a {
  color: var(--turq-dark); text-decoration: underline; text-underline-offset: 2px;
}
.legal-doc a:hover { color: var(--purple); }
.legal-doc hr { border: none; border-top: 1px solid var(--gray-100); margin: 2rem 0; }
.legal-doc blockquote {
  border-left: 3px solid var(--turq);
  background: var(--turq-tint);
  padding: 0.75rem 1.125rem; margin: 1rem 0;
  color: var(--gray-800); border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
}
.legal-doc code {
  background: var(--gray-50); padding: 2px 6px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.85em; color: var(--purple);
}
.legal-doc table {
  width: 100%; border-collapse: collapse;
  margin: 0.875rem 0; font-size: 0.875rem;
}
.legal-doc th, .legal-doc td {
  padding: 8px 12px; border: 1px solid var(--gray-100);
  text-align: left; vertical-align: top;
}
.legal-doc th {
  background: var(--off-white); font-weight: 700;
  color: var(--purple-deep); font-family: var(--font-display);
}

/* Sibling-document rail below the article */
.legal-siblings {
  margin-top: 2rem; padding: 1.25rem 1.5rem;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius);
}
.legal-siblings h5 {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: 0.625rem;
}
.legal-siblings a {
  display: inline-block; font-size: 0.8125rem;
  color: var(--gray-600); margin-right: 1.25rem; margin-bottom: 0.25rem;
  transition: color var(--transition);
}
.legal-siblings a:hover { color: var(--turq-dark); }
.legal-updated {
  font-size: 0.75rem; color: var(--gray-400);
  text-align: center; margin-top: 1rem;
}

/* Print */
@media print {
  .nav, .bei-profile-prompt, footer,
  .legal-back-link, .legal-siblings, .legal-updated { display: none !important; }
  .legal-page-wrap { background: #fff; padding: 0; }
  .legal-doc { border: none; box-shadow: none; padding: 0; max-width: none; }
}

@media (max-width: 720px) {
  .legal-doc { padding: 2rem 1.5rem; font-size: 0.9rem; }
  .legal-doc h1 { font-size: 1.55rem; }
  .legal-doc h2 { font-size: 1.18rem; }
}

/* ═══════════════════════════════════════
   COMING SOON PAGES
   ═══════════════════════════════════════ */
.hero-stub { padding: 4.5rem 0 3.5rem; }
.hero-content-center { max-width: 640px; margin: 0 auto; text-align: center; }
.hero-content-center .hero-sub { margin-left: auto; margin-right: auto; }
.coming-badge {
  display: inline-block;
  background: var(--turq-tint); border: 1px solid var(--turq-line);
  color: var(--turq-light);
  font-size: 0.78rem; font-weight: 700;
  padding: 5px 16px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.cs-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-bottom: 3rem;
}
.cs-feat { text-align: center; padding: 1.75rem 1.5rem; }
.cs-feat-icon { font-size: 2rem; margin-bottom: 0.875rem; display: block; }

.notify-box {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 2.5rem;
  text-align: center; max-width: 520px; margin: 0 auto;
  box-shadow: var(--shadow);
}
.notify-box h2 {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--purple-deep); margin-bottom: 0.5rem;
}
.notify-box > p {
  font-size: 0.9rem; color: var(--gray-600);
  margin-bottom: 1.5rem; line-height: 1.5;
}
.notify-form { display: flex; gap: 10px; max-width: 400px; margin: 0 auto; }
.notify-input {
  flex: 1; background: var(--off-white);
  border: 1px solid var(--gray-100); border-radius: 8px;
  color: var(--gray-900); padding: 11px 14px;
  font-size: 0.88rem; font-family: var(--font-body);
  outline: none; transition: border-color var(--transition);
}
.notify-input:focus { border-color: var(--turq); background: var(--white); }
.notify-btn {
  background: var(--turq); color: var(--white);
  border: none; border-radius: 8px; padding: 11px 20px;
  font-size: 0.88rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); white-space: nowrap;
  transition: background var(--transition);
}
.notify-btn:hover { background: var(--turq-dark); }
.notify-success {
  display: none; color: var(--green);
  font-size: 0.88rem; margin-top: 12px; font-weight: 600;
}

/* ═══════════════════════════════════════
   AUTH PAGES (login / register / forgot)
   Centered card, no nav.
   ═══════════════════════════════════════ */
.auth-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(170deg, var(--navy-dark) 0%, var(--purple-dark) 55%, var(--purple-deep) 100%);
  position: relative; overflow: hidden;
}
.auth-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 15%, rgba(46,184,166,0.22) 0%, transparent 60%),
              radial-gradient(ellipse at 15% 85%, rgba(107,127,215,0.14) 0%, transparent 50%);
}
.auth-topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem; gap: 1rem; flex-wrap: wrap;
}
.auth-topbar .auth-logo img { height: 32px; }
.auth-topbar-right { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.auth-topbar-right a {
  color: var(--turq); font-weight: 600; margin-left: 0.35rem;
}
.auth-topbar-right a:hover { color: var(--turq-light); }

.auth-main {
  position: relative; z-index: 2; flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.25rem 4rem;
}
.auth-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.5rem; width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(14,22,40,0.35);
}
.auth-card-wide { max-width: 620px; }
.auth-card h1 {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--purple-deep); margin-bottom: 0.35rem;
}
.auth-card h1 em {
  font-family: var(--font-italic-serif); font-style: italic;
  color: var(--turq-dark); font-weight: 600;
}
.auth-sub {
  font-size: 0.875rem; color: var(--gray-600);
  margin-bottom: 1.75rem; line-height: 1.55;
}
.auth-error, .auth-success {
  border-radius: 8px; padding: 10px 14px; margin-bottom: 1.25rem;
  font-size: 0.85rem; line-height: 1.5;
}
.auth-error {
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.25); color: var(--red);
}
.auth-success {
  background: rgba(39,174,96,0.08);
  border: 1px solid rgba(39,174,96,0.25); color: var(--green);
}
.form-group { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.form-group label {
  display: block; font-size: 0.75rem; font-weight: 600;
  color: var(--gray-600); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 0.375rem;
}
.form-group label .opt {
  font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--gray-400);
}
.form-group input, .form-group select {
  width: 100%; background: var(--off-white);
  border: 1px solid var(--gray-100); border-radius: 8px;
  color: var(--gray-900); padding: 10px 13px;
  font-size: 0.9rem; font-family: var(--font-body);
  outline: none; transition: border-color var(--transition), background var(--transition);
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--turq); background: var(--white);
}
.form-hint { font-size: 0.75rem; color: var(--gray-400); margin-top: 0.3rem; }
.btn-submit {
  width: 100%; background: var(--turq); color: var(--white);
  border: none; border-radius: 8px; padding: 12px;
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); margin-top: 0.5rem;
  transition: background var(--transition);
}
.btn-submit:hover { background: var(--turq-dark); }
.auth-forgot { text-align: right; margin: -0.35rem 0 0.5rem; }
.auth-forgot a { font-size: 0.8rem; color: var(--gray-400); }
.auth-forgot a:hover { color: var(--turq-dark); }
.auth-alt {
  text-align: center; font-size: 0.85rem;
  color: var(--gray-600); margin-top: 1.5rem;
  padding-top: 1.25rem; border-top: 1px solid var(--gray-100);
}
.auth-alt a { color: var(--turq-dark); font-weight: 600; }
.auth-legal {
  text-align: center; font-size: 0.75rem;
  color: var(--gray-400); margin-top: 1rem; line-height: 1.5;
}
.auth-legal a { color: var(--turq-dark); }

@media (max-width: 900px) {
  .cs-features { grid-template-columns: 1fr; }
  .notify-form { flex-direction: column; }
}
@media (max-width: 560px) {
  .auth-card { padding: 1.75rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   HOMEPAGE
   ═══════════════════════════════════════ */

/* Hero stats strip */
.hero-stats {
  display: flex; gap: 0; margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.75rem;
}
.hero-stat { padding-right: 2.5rem; margin-right: 2.5rem; border-right: 1px solid rgba(255,255,255,0.1); }
.hero-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stat-num {
  font-family: var(--font-display); font-size: 1.85rem; font-weight: 700;
  color: var(--turq); line-height: 1; letter-spacing: -0.01em;
}
.hero-stat-lbl {
  font-size: 0.72rem; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; margin-top: 0.4rem;
}

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: all var(--transition);
}
.feature:hover { border-color: var(--turq-line); box-shadow: 0 8px 24px rgba(14,22,40,0.07); }
.feature-icon { font-size: 1.5rem; color: var(--turq-dark); display: block; margin-bottom: 0.75rem; }
.feature h3 {
  font-family: var(--font-display); font-size: 1rem;
  color: var(--purple-deep); margin-bottom: 0.5rem;
}
.feature p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; }

/* ── Interactive guided demo ── */
.demo-section { background: var(--off-white); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); padding: 4rem 0; }
.demo-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.demo-steps-nav { display: flex; align-items: center; gap: 0; margin: 1.75rem 0 1.5rem; }
.demo-step-dot {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: 100px; padding: 7px 16px;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  color: var(--gray-400); cursor: pointer; white-space: nowrap;
  transition: all var(--transition);
}
.demo-step-dot span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--gray-100); color: var(--gray-600);
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
}
.demo-step-dot.active { border-color: var(--turq); color: var(--purple-deep); }
.demo-step-dot.active span { background: var(--turq); color: var(--white); }
.demo-step-dot.done span { background: var(--turq-dark); color: var(--white); }
.demo-step-line { flex: 1; height: 1px; background: var(--gray-100); min-width: 12px; }

.demo-panel {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow);
}
.demo-panel-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.demo-panel-layout-full { display: block; }
.demo-panel-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--purple-deep); margin-bottom: 0.4rem; }
.demo-panel-desc { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 1.25rem; }

.demo-sliders { display: flex; flex-direction: column; gap: 0; }
.demo-slider-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--gray-50);
}
.demo-slider-row:last-child { border-bottom: none; }
.demo-slider-row.disabled .demo-slider-name { opacity: 0.35; text-decoration: line-through; }
.demo-slider-icon { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.demo-slider-name { font-size: 0.78rem; font-weight: 600; color: var(--gray-800); width: 62px; flex-shrink: 0; }
.demo-slider-row input[type=range] { flex: 1; accent-color: var(--iq-blue); height: 4px; cursor: pointer; }
.demo-slider-row input[type=range].off { accent-color: var(--gray-200); opacity: 0.35; pointer-events: none; }
.demo-slider-val { font-size: 0.78rem; font-weight: 700; color: var(--iq-blue); min-width: 15px; text-align: right; }
.demo-slider-val.off { color: var(--gray-400); opacity: 0.4; }
.demo-slider-tog {
  width: 16px; height: 16px; border-radius: 3px;
  border: 2px solid var(--gray-200); background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; padding: 0; flex-shrink: 0; line-height: 1;
  transition: all var(--transition);
}
.demo-slider-tog.on { background: var(--turq); border-color: var(--turq); color: var(--white); }
.demo-slider-tog.off { background: var(--white); border-color: var(--gray-200); color: transparent; }

.demo-panel-right { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.demo-radar-big { display: flex; justify-content: center; }
.demo-radar-label { font-size: 0.75rem; color: var(--gray-400); text-align: center; }
.demo-insight {
  display: flex; gap: 9px; align-items: flex-start;
  background: var(--turq-tint); border: 1px solid var(--turq-line);
  border-radius: 8px; padding: 10px 14px; margin-top: 1rem;
  font-size: 0.8rem; color: var(--gray-800); line-height: 1.55;
}
.demo-insight-icon { flex-shrink: 0; }
.demo-insight strong { color: var(--purple-deep); }

.demo-match-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.25rem 0 0; }
.demo-match-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 1rem; text-align: center;
  transition: all var(--transition);
}
.demo-match-card.top { border-color: var(--turq); box-shadow: 0 4px 18px var(--turq-glow); }
.dmc-rank {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 9px; border-radius: 4px; margin-bottom: 8px;
}
.dmc-rank.r1 { background: var(--turq-tint); color: var(--turq-dark); }
.dmc-rank.r2 { background: var(--iq-blue-tint); color: var(--iq-blue-dark); }
.dmc-rank.r3 { background: var(--gray-50); color: var(--gray-400); }
.dmc-name { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--purple-deep); margin-bottom: 3px; }
.dmc-meta { font-size: 0.73rem; color: var(--gray-400); margin-bottom: 6px; }
.dmc-tier { display: inline-block; font-size: 0.62rem; font-weight: 700; color: var(--white); padding: 1px 5px; border-radius: 3px; }
.dmc-tier.t1 { background: var(--purple); }
.dmc-tier.t2 { background: var(--iq-blue); }
.dmc-tier.t3 { background: var(--turq-dark); }
.dmc-tier.t4 { background: var(--gray-400); }
.dmc-radar { display: flex; justify-content: center; margin: 4px 0; }
.dmc-score { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.dmc-score-lbl { font-size: 0.66rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

.demo-dept-row { margin: 1rem 0 0.25rem; }
.demo-dept-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-dept-pill {
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid var(--gray-100); background: var(--white);
  font-family: var(--font-body); font-size: 0.79rem; font-weight: 500;
  color: var(--gray-600); cursor: pointer; transition: all var(--transition);
}
.demo-dept-pill:hover { border-color: var(--turq-line); }
.demo-dept-pill.active { background: var(--turq); border-color: var(--turq); color: var(--white); font-weight: 600; }

.demo-nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--gray-100); }
.demo-nav-btn {
  padding: 9px 20px; border-radius: 7px;
  font-family: var(--font-body); font-size: 0.84rem; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; text-decoration: none;
  display: inline-block; transition: all var(--transition);
}
.demo-nav-btn.primary { background: var(--turq); color: var(--white); }
.demo-nav-btn.primary:hover { background: var(--turq-dark); color: var(--white); }
.demo-nav-btn.secondary { background: none; border-color: var(--gray-200); color: var(--gray-600); }
.demo-nav-btn.secondary:hover { border-color: var(--turq); color: var(--turq-dark); }

/* ── Tools strip (dark) ── */
.tools-strip {
  background: linear-gradient(150deg, var(--navy-dark) 0%, var(--purple-deep) 100%);
  padding: 4rem 0; position: relative; overflow: hidden;
}
.tools-strip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 25%, rgba(46,184,166,0.18) 0%, transparent 60%);
}
.tools-inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.tools-strip .section-head h2 { color: var(--white); }
.tools-strip .section-head p { color: rgba(255,255,255,0.65); }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.tool-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 1.5rem 1.25rem;
  text-decoration: none; display: block; transition: all var(--transition);
}
.tool-card:hover { background: rgba(46,184,166,0.09); border-color: var(--turq-line); transform: translateY(-2px); }
.tool-icon { font-size: 1.5rem; display: block; margin-bottom: 0.75rem; }
.tool-card h4 { font-family: var(--font-display); font-size: 0.92rem; color: var(--white); margin-bottom: 0.4rem; }
.tool-card p { font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.55; }

/* ── Upcoming preview ── */
.upcoming-wrap { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.upcoming-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-100); background: var(--off-white);
}
.upcoming-header h3 { font-family: var(--font-display); font-size: 0.95rem; color: var(--purple-deep); }
.upcoming-link { font-size: 0.83rem; color: var(--turq-dark); font-weight: 600; }
.ue {
  display: grid; grid-template-columns: 44px 130px 1fr 180px;
  gap: 12px; align-items: center;
  padding: 11px 1.5rem; border-bottom: 1px solid var(--gray-50);
  font-size: 0.85rem;
}
.ue:last-child { border-bottom: none; }
.ue:hover { background: var(--off-white); }
.ue-tier { font-size: 0.62rem; font-weight: 700; color: var(--white); padding: 2px 5px; border-radius: 3px; text-align: center; }
.ue-tier.t1 { background: var(--purple); }
.ue-tier.t2 { background: var(--iq-blue); }
.ue-tier.t3 { background: var(--turq-dark); }
.ue-tier.t4 { background: var(--gray-400); }
.ue-date { font-family: var(--font-mono); font-size: 0.76rem; color: var(--gray-400); }
.ue-name { font-weight: 600; color: var(--gray-900); }
.ue-loc { font-size: 0.8rem; color: var(--gray-400); text-align: right; }
.upcoming-footer {
  padding: 1.25rem 1.5rem; background: var(--off-white);
  border-top: 1px solid var(--gray-100); text-align: center;
}
.upcoming-footer p { font-size: 0.82rem; color: var(--gray-600); margin-bottom: 0.875rem; }

/* ── Audience section ── */
.aud-section { background: var(--off-white); padding: 4rem 0; }
.aud-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.audiences { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2rem; }
.aud-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 1.5rem; }
.aud-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--turq-dark); background: var(--turq-tint);
  padding: 3px 10px; border-radius: 4px; margin-bottom: 0.75rem;
}
.aud-card h4 {
  font-family: var(--font-italic-serif); font-style: italic;
  font-size: 1.05rem; font-weight: 600;
  color: var(--purple-deep); margin-bottom: 0.5rem; line-height: 1.35;
}
.aud-card p { font-size: 0.86rem; color: var(--gray-600); line-height: 1.6; }

/* ── CTA extras ── */
.free-badge {
  display: inline-block; background: var(--turq-tint);
  border: 1px solid var(--turq-line); color: var(--turq-light);
  font-size: 0.75rem; font-weight: 700; padding: 5px 14px;
  border-radius: 100px; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 1.5rem;
}
.cta-small { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 1rem; }

@media (max-width: 1000px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .demo-panel-layout { grid-template-columns: 1fr; }
  .demo-match-row { grid-template-columns: 1fr; }
  .features, .audiences, .tools-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.25rem 0; }
  .hero-stat { padding-right: 1.5rem; margin-right: 1.5rem; }
  .ue { grid-template-columns: 40px 1fr; gap: 6px 10px; }
  .ue-loc { text-align: left; grid-column: 2; }
  .ue-date { grid-column: 2; }
  .demo-inner, .tools-inner, .aud-inner { padding: 0 1.25rem; }
}

/* ═══════════════════════════════════════
   CALENDAR / CONFERENCE INTELLIGENCE
   Tier colours are semantic and shared with the
   radar renderer in calendar.php — see TIER_RGB there.
   ═══════════════════════════════════════ */
:root {
  --t1: #4A3D6B;   /* Flagship  — Scientari purple */
  --t2: #6B7FD7;   /* Specialty — logo blue */
  --t3: #2EB8A6;   /* Emerging  — turquoise */
  --t4: #8a9599;   /* Academic  — gray */
  --radar-grid:  rgba(14,22,40,0.10);
  --radar-spoke: rgba(14,22,40,0.07);
}

/* ── Control bars ── */
.controls-wrap {
  max-width: var(--max-w-app); margin: 0 auto;
  padding: 0.75rem 2rem 0.25rem;
  display: flex; align-items: flex-end; gap: 0; flex-wrap: wrap;
  border-bottom: 1px solid var(--gray-100);
}
.controls-wrap-r2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.ctrl-group { display: flex; flex-direction: column; gap: 5px; padding: 0 1rem 0.5rem; }
.ctrl-group:first-child { padding-left: 0; }
.ctrl-label {
  font-size: 0.68rem; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap;
}
.ctrl-label-sub {
  font-size: 0.62rem; font-weight: 500; color: var(--gray-400);
  text-transform: none; letter-spacing: 0; opacity: 0.85;
}
.ctrl-divider { width: 1px; background: var(--gray-100); align-self: stretch; margin-bottom: 8px; flex-shrink: 0; }
.ctrl-spacer { flex: 1; }
.ctrl-search { padding-right: 0; }
.ctrl-search .search-box { width: 220px; }

/* Segmented button group */
.cg {
  display: flex; gap: 2px; background: var(--gray-50);
  border-radius: 7px; padding: 2px; border: 1px solid var(--gray-100);
}
.cb {
  background: transparent; color: var(--gray-400); border: none;
  padding: 6px 13px; border-radius: 5px;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all var(--transition);
}
.cb.active { background: var(--turq); color: var(--white); }
.cb:hover:not(.active) { background: var(--gray-100); color: var(--gray-800); }

.cs {
  background: var(--off-white); color: var(--gray-800);
  border: 1px solid var(--gray-100); border-radius: 7px;
  padding: 6px 28px 6px 10px; font-size: 0.8rem;
  font-family: var(--font-body); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%238a9599' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
.cs:focus { border-color: var(--turq); outline: none; }

.search-box {
  background: var(--off-white); color: var(--gray-900);
  border: 1px solid var(--gray-100); border-radius: 7px;
  padding: 6px 12px; font-size: 0.8rem; font-family: var(--font-body);
  outline: none; transition: border-color var(--transition);
}
.search-box:focus { border-color: var(--turq); background: var(--white); box-shadow: 0 0 0 2px var(--turq-tint); }
.search-box::placeholder { color: var(--gray-400); }

/* Axis toggles */
.axis-btn {
  background: transparent; color: var(--gray-400); border: none;
  padding: 5px 10px; border-radius: 5px;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
  transition: all var(--transition);
}
.axis-btn.active { background: var(--turq); color: var(--white); }
.axis-btn.active .axis-dot { border: 1.5px solid var(--white); }
.axis-btn:not(.active) { opacity: 0.55; text-decoration: line-through; }
.axis-btn:not(.active):hover { opacity: 0.85; text-decoration: none; background: var(--gray-100); }
.axis-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.axis-count { font-size: 0.72rem; color: var(--gray-400); font-family: var(--font-mono); margin-left: 4px; white-space: nowrap; }

/* Tier tooltip */
.tier-tip { position: relative; display: inline-flex; }
.tier-tip .tier-tip-text {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); background: var(--white);
  border: 1px solid var(--gray-100); border-radius: 8px;
  padding: 8px 12px; box-shadow: var(--shadow-lg);
  white-space: nowrap; font-size: 0.73rem; color: var(--gray-600);
  z-index: 50; font-weight: 400; text-transform: none; letter-spacing: 0;
}
.tier-tip:hover .tier-tip-text { display: block; }
.tier-tip .tier-tip-text strong { color: var(--purple-deep); font-weight: 700; }

/* Status panel */
/* The toggles are flex-shrink:0, so every pixel lost at narrow widths came
   out of .r2-status. With min-width:0 it could collapse to ~90px — the text
   then wrapped one word per line while the row kept its full height, leaving
   a tall empty gap beside it. Two changes: let the whole row wrap before the
   panel gets squeezed, and give the panel a floor it can't go below. */
.r2-layout { display: flex; align-items: stretch; gap: 0; width: 100%; flex-wrap: wrap; }
.r2-toggles { display: flex; align-items: flex-end; gap: 0; flex-shrink: 0; flex-wrap: wrap; }
.r2-status {
  flex: 1 1 320px;          /* grow, shrink, but never below 320px */
  min-width: 280px;         /* hard floor — below this it wraps to its own line */
  display: flex; flex-direction: column;
  justify-content: center; padding: 6px 0 6px 1.25rem;
  margin-left: 1rem; border-left: 1px solid var(--gray-100);
}
/* Once wrapped onto its own line the left border reads as a stray vertical
   rule, so swap it for a top border and drop the indent. */
@media (max-width: 1100px) {
  .r2-status {
    border-left: none; border-top: 1px solid var(--gray-100);
    margin-left: 0; padding: 8px 0 0; margin-top: 6px;
    flex-basis: 100%;
  }
}
.status-row { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.status-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.73rem; color: var(--gray-600);
  background: var(--off-white); padding: 3px 8px;
  border-radius: 5px; border: 1px solid var(--gray-100); white-space: nowrap;
}
.status-chip strong { font-weight: 700; color: var(--gray-900); }
.status-chip .sc-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-desc { font-size: 0.72rem; color: var(--gray-400); line-height: 1.4; margin-top: 3px; max-width: 520px; }
.status-desc strong { color: var(--gray-600); }

/* ── Scoring guide ── */
.legend { max-width: var(--max-w-app); margin: 0 auto; padding: 0 2rem 0.6rem; }
.leg-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 0; user-select: none; }
.leg-toggle-text { font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; color: var(--turq-dark); }
.leg-toggle-arrow { font-size: 0.72rem; color: var(--turq-dark); transition: transform var(--transition); display: inline-block; }
.leg-toggle-arrow.open { transform: rotate(90deg); }
.leg-inline { display: flex; gap: 10px; align-items: center; margin-left: 14px; flex: 1; flex-wrap: wrap; }
.lg-i { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; font-weight: 500; color: var(--gray-600); }
.leg-body { overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
.leg-body.open { max-height: 900px; padding-bottom: 10px; }
.leg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding-top: 10px; }
.leg-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  background: var(--off-white); border-radius: 8px; border: 1px solid var(--gray-100);
}
.leg-dot { width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
.leg-item-content { flex: 1; min-width: 0; }
.leg-item-name { font-family: var(--font-display); font-size: 0.87rem; font-weight: 700; color: var(--purple-deep); margin-bottom: 3px; }
.leg-item-desc { font-size: 0.8rem; color: var(--gray-600); line-height: 1.45; margin-bottom: 5px; }
.leg-item-dept { font-size: 0.76rem; color: var(--gray-400); font-style: italic; margin-bottom: 5px; }
.leg-ramp { display: flex; gap: 2px; align-items: center; }
.leg-ramp-swatch { width: 26px; height: 10px; border-radius: 2px; }
.leg-ramp-label { font-size: 0.68rem; color: var(--gray-400); font-weight: 500; margin: 0 3px; }
.leg-note {
  font-size: 0.8rem; color: var(--gray-600); line-height: 1.55;
  padding: 12px 0 2px; border-top: 1px solid var(--gray-100); margin-top: 10px;
}
.leg-note strong { color: var(--purple-deep); }

/* ── Event grid ── */
.grid {
  max-width: var(--max-w-app); margin: 0 auto;
  padding: 0 2rem 2rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.gc {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); cursor: pointer;
  transition: all var(--transition); overflow: hidden; box-shadow: var(--shadow);
}
.gc:hover { border-color: var(--turq); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(14,22,40,0.09); }
.gc.sel { border-color: var(--turq); box-shadow: 0 0 0 2px var(--turq-glow); }
.gc.fr { animation: fp 3s ease-in-out infinite; }
.gc.fr:hover, .gc.fr.sel { animation: none; }
@keyframes fp {
  0%, 100% { box-shadow: var(--shadow); }
  50% { box-shadow: 0 0 14px 3px var(--turq-glow); }
}
.radar-wrap { display: flex; justify-content: center; padding: 10px 8px 4px; }
.scores-strip { display: flex; justify-content: center; gap: 4px; padding: 2px 8px 6px; }
.score-dot {
  width: 27px; height: 27px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--white);
  font-family: var(--font-body);
}
.ci { padding: 6px 10px 10px; }
.cm { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; }
.tb { font-size: 0.65rem; font-weight: 700; color: var(--white); padding: 2px 6px; border-radius: 3px; }
.tb1 { background: var(--t1); } .tb2 { background: var(--t2); }
.tb3 { background: var(--t3); } .tb4 { background: var(--t4); }
.sg-s { font-size: 0.7rem; color: var(--gray-400); font-family: var(--font-mono); margin-left: auto; }
.nb { font-size: 0.65rem; font-weight: 700; color: var(--green); background: rgba(39,174,96,0.1); padding: 2px 5px; border-radius: 3px; }
.vb { font-size: 0.65rem; font-weight: 700; color: var(--iq-blue-dark); background: var(--iq-blue-tint); padding: 2px 5px; border-radius: 3px; }
.hb { font-size: 0.65rem; font-weight: 700; color: var(--turq-dark); background: var(--turq-tint); padding: 2px 5px; border-radius: 3px; }
.cn {
  font-family: var(--font-display); font-size: 0.87rem; font-weight: 600;
  color: var(--purple-deep); line-height: 1.22; margin-bottom: 2px;
  min-height: 30px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.cd { font-size: 0.76rem; color: var(--gray-600); }
.ca { font-size: 0.7rem; color: var(--gray-400); font-family: var(--font-mono); margin-top: 1px; }

/* ── Detail panel ── */
.dp {
  position: fixed; top: 0; right: 0; width: 380px; height: 100vh;
  background: var(--white); border-left: 1px solid var(--gray-100);
  overflow-y: auto; transform: translateX(100%);
  transition: transform var(--transition); z-index: 250;
  padding: 1.5rem; box-shadow: -8px 0 32px rgba(14,22,40,0.12);
}
.dp.open { transform: translateX(0); }
.dx {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; color: var(--gray-400);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.dx:hover { color: var(--gray-900); }
.dn { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--purple-deep); line-height: 1.2; margin-bottom: 4px; padding-right: 28px; }
.do { font-size: 0.86rem; color: var(--gray-600); margin-bottom: 10px; }
.dm { font-size: 0.82rem; color: var(--gray-600); margin-bottom: 14px; line-height: 1.6; }
.ds { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.dr { display: flex; align-items: center; gap: 8px; }
.dl { font-size: 0.78rem; color: var(--gray-600); width: 90px; flex-shrink: 0; }
.db { flex: 1; height: 8px; background: var(--gray-50); border-radius: 4px; overflow: hidden; }
.df { height: 100%; border-radius: 4px; }
.dv { font-size: 0.86rem; font-weight: 700; font-family: var(--font-mono); min-width: 28px; text-align: right; }
.dsec { margin-bottom: 14px; }
.dst { font-family: var(--font-display); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-400); font-weight: 700; margin-bottom: 6px; }
.dtg { display: inline-block; font-size: 0.75rem; color: var(--turq-dark); background: var(--turq-tint); padding: 3px 8px; border-radius: 4px; margin: 2px 3px 2px 0; }
.dcta {
  display: block; width: 100%; background: var(--turq); color: var(--white);
  border: none; padding: 11px; border-radius: 7px;
  font-family: var(--font-body); font-size: 0.87rem; font-weight: 700;
  cursor: pointer; margin-top: 16px; transition: background var(--transition);
}
.dcta:hover { background: var(--turq-dark); }

/* ── Registration gate ── */
.reg-gate { position: relative; max-width: var(--max-w-app); margin: -80px auto 0; padding: 0 2rem 3rem; }
.reg-gate-fade {
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--white) 85%);
  pointer-events: none; position: relative; z-index: 1;
}
.reg-gate-content {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  text-align: center; box-shadow: 0 8px 32px rgba(14,22,40,0.08);
  position: relative; z-index: 2;
}
.reg-gate-icon { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }
.reg-gate-title { font-family: var(--font-display); font-size: 1.35rem; color: var(--purple-deep); margin-bottom: 0.5rem; }
.reg-gate-title em { font-family: var(--font-italic-serif); font-style: italic; color: var(--turq-dark); font-weight: 600; }
.reg-gate-sub { font-size: 0.88rem; color: var(--gray-600); max-width: 480px; margin: 0 auto 1.5rem; line-height: 1.6; }
.reg-gate-tiers { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.rgt-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--gray-600); }
.rgt-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.rgt-item strong { font-family: var(--font-display); font-size: 0.95rem; color: var(--purple-deep); }
.reg-gate-cta {
  display: inline-block; background: var(--turq); color: var(--white);
  padding: 11px 28px; border-radius: 7px;
  font-size: 0.88rem; font-weight: 700; text-decoration: none;
  transition: background var(--transition);
}
.reg-gate-cta:hover { background: var(--turq-dark); color: var(--white); }
.reg-gate-login { font-size: 0.8rem; color: var(--gray-400); margin-top: 0.875rem; }
.reg-gate-login a { color: var(--turq-dark); font-weight: 600; }

@media (max-width: 768px) {
  .grid { padding: 0 1.25rem 2rem; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
  .dp { width: 100%; }
  .r2-layout { flex-direction: column; }
  /* .r2-status is handled by the 1100px breakpoint above — it has already
     wrapped and swapped its border by the time we reach 768px. */
  .r2-toggles { flex-wrap: wrap; }
  .controls-wrap, .legend { padding-left: 1.25rem; padding-right: 1.25rem; }
  .leg-grid { grid-template-columns: 1fr; }
  .ctrl-search .search-box { width: 100%; }
}

/* ═══════════════════════════════════════
   MATCHING — scenario builder
   ═══════════════════════════════════════ */
.scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.125rem; margin-bottom: 2rem; }
.scenario-card {
  background: var(--white); border: 2px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 1.25rem;
  transition: all var(--transition); position: relative;
}
.scenario-card.active { border-color: var(--turq); }
.scenario-card.inactive .scenario-body { opacity: 0.15; pointer-events: none; user-select: none; }
.scenario-card.inactive .scenario-num { background: var(--gray-100); color: var(--gray-400); }
.scenario-card.inactive .scenario-label { color: var(--gray-400); }
.scenario-card.inactive .enable-overlay { display: flex; }
.enable-overlay {
  display: none; position: absolute; top: 66px; left: 0; right: 0; bottom: 0;
  align-items: center; justify-content: center; z-index: 5;
  cursor: pointer; border-radius: 0 0 14px 14px;
}
.enable-overlay-text {
  font-size: 0.9rem; color: var(--turq-dark); font-weight: 600;
  background: rgba(255,255,255,0.88); padding: 12px 24px;
  border-radius: 10px; border: 2px dashed var(--turq-line); pointer-events: none;
}
.scenario-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 8px; }
.scenario-num {
  width: 27px; height: 27px; background: var(--turq); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; flex-shrink: 0;
  transition: all var(--transition); font-family: var(--font-body);
}
.scenario-label {
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 600;
  color: var(--purple-deep); flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-rename {
  background: none; border: 1px solid var(--gray-100); color: var(--gray-400);
  cursor: pointer; font-size: 0.72rem; padding: 3px 8px; border-radius: 5px;
  font-family: var(--font-body); font-weight: 500; white-space: nowrap; flex-shrink: 0;
  transition: all var(--transition);
}
.btn-rename:hover { border-color: var(--turq); color: var(--turq-dark); }
.rename-inline { display: none; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.rename-inline.open { display: flex; }
.rename-inline input {
  flex: 1; min-width: 0; padding: 5px 8px;
  border: 1px solid var(--turq); border-radius: 5px;
  font-size: 0.82rem; font-family: var(--font-body);
  outline: none; color: var(--gray-900); background: var(--white);
}
.rename-inline .btn-ok {
  background: var(--turq); color: var(--white); border: none;
  padding: 5px 10px; border-radius: 5px; font-size: 0.72rem;
  font-weight: 700; cursor: pointer; font-family: var(--font-body); white-space: nowrap;
}
.rename-inline .btn-ok:hover { background: var(--turq-dark); }
.toggle-scenario {
  background: none; color: var(--gray-400); cursor: pointer;
  font-size: 0.78rem; padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--gray-100); flex-shrink: 0;
  font-family: var(--font-body); transition: all var(--transition);
}
.toggle-scenario:hover { border-color: var(--turq); color: var(--turq-dark); }
.scenario-card.inactive .toggle-scenario { border-color: var(--turq); color: var(--turq-dark); font-weight: 600; }

.field { margin-bottom: 0.75rem; }
.field-label {
  font-size: 0.72rem; color: var(--gray-400); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px; display: block;
}
.field-label .fl-note { font-weight: 400; text-transform: none; letter-spacing: 0; }

/* Pills */
.dept-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.5rem; }
.dept-pill {
  padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--gray-100); background: var(--white);
  font-size: 0.77rem; font-weight: 500; cursor: pointer;
  color: var(--gray-600); transition: all var(--transition);
  font-family: var(--font-body);
}
.dept-pill:hover { border-color: var(--turq-line); }
.dept-pill.selected { background: var(--turq); border-color: var(--turq); color: var(--white); font-weight: 600; }
.tier-pill-wrap { position: relative; display: inline-flex; }
.tier-pill-wrap .tier-tooltip {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); background: var(--white);
  border: 1px solid var(--gray-100); border-radius: 8px; padding: 8px 12px;
  box-shadow: var(--shadow-lg); white-space: nowrap;
  font-size: 0.75rem; color: var(--gray-600); z-index: 50; pointer-events: none;
}
.tier-pill-wrap .tier-tooltip strong { color: var(--purple-deep); font-weight: 700; }
.tier-pill-wrap:hover .tier-tooltip { display: block; }

/* Axis weight rows */
.axes-radar-wrap { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.axes-grid { display: flex; flex-direction: column; }
.axes-header-row { display: flex; align-items: center; padding-bottom: 4px; border-bottom: 1px solid var(--gray-100); margin-bottom: 2px; }
.axes-header-row span { font-size: 0.63rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.08em; }
.axh-axis { width: 100px; flex-shrink: 0; }
.axh-weight { flex: 1; text-align: center; }
.axh-incl { width: 28px; flex-shrink: 0; text-align: center; }
.axis-row { display: flex; align-items: center; gap: 5px; padding: 7px 0; border-bottom: 1px solid var(--gray-50); }
.axis-row:last-child { border-bottom: none; }
.axis-row.disabled .axis-icon, .axis-row.disabled .axis-name { opacity: 0.3; text-decoration: line-through; }
.axis-icon { font-size: 0.8rem; flex-shrink: 0; width: 14px; text-align: center; }
.axis-name { font-size: 0.73rem; font-weight: 600; color: var(--gray-800); width: 76px; flex-shrink: 0; white-space: nowrap; }
.axis-slider-wrap { flex: 1; display: flex; align-items: center; gap: 4px; min-width: 0; }
.axis-slider-wrap input[type=range] { width: 100%; max-width: 100px; accent-color: var(--iq-blue); height: 4px; cursor: pointer; }
.axis-slider-wrap input[type=range].off { accent-color: var(--gray-200); opacity: 0.3; pointer-events: none; }
.axis-val { font-size: 0.73rem; font-weight: 700; color: var(--iq-blue); min-width: 15px; text-align: right; flex-shrink: 0; }
.axis-val.off { color: var(--gray-400); opacity: 0.4; }
.axis-toggle {
  width: 16px; height: 16px; border-radius: 3px;
  border: 2px solid var(--gray-200); background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; padding: 0; flex-shrink: 0; line-height: 1;
  transition: all var(--transition);
}
.axis-toggle.on { background: var(--turq); border-color: var(--turq); color: var(--white); }
.axis-toggle.off { background: var(--off-white); border-color: var(--gray-200); color: transparent; }

.radar-preview { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0; }
.radar-preview svg { display: block; }
.radar-preview-label { font-size: 0.7rem; color: var(--gray-400); text-align: center; }

/* Save */
.save-row { margin-top: 0.875rem; padding-top: 0.75rem; border-top: 1px solid var(--gray-100); text-align: right; }
.btn-save {
  padding: 7px 18px; border-radius: 7px; font-size: 0.79rem; font-weight: 700;
  cursor: pointer; font-family: var(--font-body); transition: all var(--transition);
  border: 2px solid var(--turq); display: inline-flex; align-items: center; gap: 5px;
}
.btn-save.dirty { background: var(--turq); color: var(--white); box-shadow: 0 2px 8px var(--turq-glow); }
.btn-save.dirty:hover { background: var(--turq-dark); border-color: var(--turq-dark); }
.btn-save.saved { background: var(--off-white); color: var(--gray-400); border-color: var(--gray-100); cursor: default; box-shadow: none; }

/* Match run */
.match-bar { text-align: center; margin-bottom: 2.5rem; }
.btn-match {
  background: var(--turq); color: var(--white); border: none;
  padding: 14px 48px; border-radius: 10px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); transition: background var(--transition);
  box-shadow: 0 4px 14px var(--turq-glow);
}
.btn-match:hover { background: var(--turq-dark); }
.btn-match:disabled { opacity: 0.5; cursor: not-allowed; }

/* Results */
.results-section { display: none; }
.results-section.visible { display: block; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; gap: 1rem; flex-wrap: wrap; }
.results-header h2 { font-family: var(--font-display); font-size: 1.2rem; color: var(--purple-deep); }
.results-tabs { display: flex; gap: 8px; }
.results-tab {
  padding: 7px 18px; border-radius: 8px;
  border: 1px solid var(--gray-100); background: var(--white);
  font-size: 0.84rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); color: var(--gray-600);
  transition: all var(--transition);
}
.results-tab.active { background: var(--turq); border-color: var(--turq); color: var(--white); }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.match-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 1.25rem;
  transition: all var(--transition); cursor: pointer; position: relative;
}
.match-card:hover { box-shadow: 0 4px 16px rgba(14,22,40,0.08); border-color: var(--turq-line); }
.match-card.selected { outline: 2px solid var(--turq); background: var(--turq-tint); }
.match-card .select-badge {
  display: none; position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; background: var(--turq); color: var(--white);
  border-radius: 50%; font-size: 0.7rem; font-weight: 700;
  align-items: center; justify-content: center;
}
.match-card.selected .select-badge { display: flex; }
.match-score-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 0.875rem; }
.match-score-circle {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--white); flex-shrink: 0;
}
.match-score-circle.excellent { background: var(--turq); }
.match-score-circle.good { background: var(--iq-blue); }
.match-score-circle.fair { background: var(--gray-400); }
.match-name { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--purple-deep); line-height: 1.3; margin-bottom: 4px; }
.match-meta { font-size: 0.77rem; color: var(--gray-400); }
.match-tier { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 0.68rem; font-weight: 700; margin-right: 6px; color: var(--white); }
.match-tier.t1 { background: var(--t1); } .match-tier.t2 { background: var(--t2); }
.match-tier.t3 { background: var(--t3); } .match-tier.t4 { background: var(--t4); }
.match-axes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 0.75rem; align-items: center; }
.match-sector { font-size: 0.74rem; color: var(--turq-dark); font-weight: 600; }
.match-attend { font-size: 0.77rem; color: var(--gray-400); margin-bottom: 6px; }

.no-results { text-align: center; padding: 3.5rem 1.25rem; color: var(--gray-400); }
.no-results .icon { font-size: 2.25rem; margin-bottom: 12px; }

/* Send bar */
.send-bar {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.25rem; gap: 12px; flex-wrap: wrap;
}
.send-bar-info { flex: 1; min-width: 200px; }
.send-bar-info p { font-size: 0.87rem; color: var(--gray-900); font-weight: 600; margin-bottom: 2px; }
.send-bar-info .send-hint { font-size: 0.77rem; color: var(--gray-400); font-weight: 400; }
.send-bar-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.btn-compare {
  background: var(--turq); color: var(--white); border: none;
  padding: 10px 22px; border-radius: 8px;
  font-size: 0.86rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); transition: all var(--transition);
}
.btn-compare:hover { background: var(--turq-dark); }
.btn-compare.alt { background: var(--iq-blue); }
.btn-compare.alt:hover { background: var(--iq-blue-dark); }
.btn-compare:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-compare:disabled:hover { background: var(--turq); }
.btn-compare.alt:disabled:hover { background: var(--iq-blue); }

/* Guide panels */
.guide-panel {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 1.125rem 1.375rem;
  margin-bottom: 1.5rem; cursor: pointer;
}
.guide-panel summary {
  font-family: var(--font-display); font-size: 0.93rem; font-weight: 700;
  color: var(--purple-deep); list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.guide-panel summary::-webkit-details-marker { display: none; }
.guide-hint { font-weight: 400; color: var(--gray-400); font-size: 0.77rem; }
.guide-axes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.guide-axis strong { font-size: 0.86rem; }
.guide-axis span { font-size: 0.81rem; color: var(--gray-600); line-height: 1.5; }
.guide-note { font-size: 0.77rem; color: var(--gray-600); margin-top: 0.75rem; }
.guide-box {
  background: var(--off-white); border-radius: 8px;
  padding: 0.75rem 0.875rem; margin-top: 0.625rem; border: 1px solid var(--gray-100);
}
.guide-box strong { font-size: 0.81rem; color: var(--purple-deep); }
.guide-box ul { font-size: 0.77rem; color: var(--gray-600); line-height: 1.6; margin: 6px 0 0; padding-left: 18px; }
.guide-scenarios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 0.875rem; }
.guide-scenario { padding: 0.75rem 0.875rem; background: var(--off-white); border-radius: 8px; border-left: 3px solid var(--turq); }
.guide-scenario strong { font-family: var(--font-display); font-size: 0.83rem; color: var(--purple-deep); }
.guide-scenario p { font-size: 0.77rem; color: var(--gray-600); margin-top: 4px; line-height: 1.5; }
.guide-tip { font-size: 0.74rem; color: var(--gray-400); margin-top: 0.625rem; }

@media (max-width: 900px) {
  .scenarios { grid-template-columns: 1fr; }
  .guide-axes, .guide-scenarios { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   PROFILE INTAKE WIZARD
   ═══════════════════════════════════════ */
.profile-page {
  max-width: 660px; margin: 0 auto;
  padding: 1.75rem 1.25rem 4rem;
  font-family: var(--font-body); color: var(--gray-800);
}
/* .profile-header retired — the page now uses the shared .page-head, so its
   heading matches Calendar, Search, Comparison and Planner rather than being
   a one-off centred variant. */

/* Progress */
.progress-bar { display: flex; gap: 4px; margin-bottom: 1.75rem; }
.progress-seg { flex: 1; height: 4px; border-radius: 2px; background: var(--gray-100); transition: background var(--transition); }
.progress-seg.done { background: var(--turq); }

/* Step header */
.step-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1.25rem; }
.step-icon { font-size: 1.3rem; }
.step-meta {
  font-size: 0.7rem; color: var(--gray-400); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.step-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--purple-deep); }

/* Fields */
.field-group { margin-bottom: 1.125rem; }
.field-label {
  font-size: 0.75rem; font-weight: 700; color: var(--gray-600);
  text-transform: uppercase; letter-spacing: 0.06em;
  display: block; margin-bottom: 0.5rem;
}
.field-label .optional {
  font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--gray-400);
}
.field-hint { font-size: 0.75rem; color: var(--gray-400); margin-bottom: 0.5rem; line-height: 1.5; }
.field-hint a { color: var(--turq-dark); }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.text-input {
  width: 100%; background: var(--off-white);
  border: 1px solid var(--gray-100); border-radius: 8px;
  color: var(--gray-900); padding: 10px 13px;
  font-size: 0.88rem; font-family: var(--font-body);
  outline: none; transition: border-color var(--transition), background var(--transition);
}
.text-input:focus { border-color: var(--turq); background: var(--white); }
.text-input.invalid { border-color: var(--red); background: rgba(192,57,43,0.03); }

/* Pills */
.pill-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  padding: 7px 14px; border-radius: 100px;
  border: 1.5px solid var(--gray-100); background: var(--white);
  color: var(--gray-600); font-size: 0.82rem; font-weight: 400;
  cursor: pointer; transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
  text-align: left; font-family: var(--font-body);
}
.pill:hover { border-color: var(--turq-line); }
.pill.selected { background: var(--turq); border-color: var(--turq); color: var(--white); font-weight: 600; }
.pill.has-sub { padding: 10px 14px; }
.pill-icon { font-size: 1rem; }
.pill-sub { display: block; font-size: 0.7rem; opacity: 0.7; margin-top: 1px; }

/* Goal cards */
.goal-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.goal-card {
  padding: 12px 14px; border-radius: var(--radius);
  border: 2px solid var(--gray-100); background: var(--white);
  cursor: pointer; text-align: left; display: flex;
  align-items: flex-start; gap: 10px;
  transition: all var(--transition); font-family: var(--font-body); width: 100%;
}
.goal-card:hover { border-color: var(--turq-line); }
.goal-card.selected { border-color: var(--turq); background: var(--turq-tint); }
.goal-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.goal-name { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--purple-deep); margin-bottom: 2px; }
.goal-desc { font-size: 0.75rem; color: var(--gray-600); line-height: 1.4; }
/* An open ring until selected, a filled check after. The element is always
   present so the card doesn't reflow on click — only its contents change. */
.goal-check {
  margin-left: auto; flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--gray-200); background: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: transparent;
  transition: all var(--transition);
}
.goal-card.selected .goal-check {
  background: var(--turq); border-color: var(--turq); color: var(--white);
}

/* Insight box */
.insight-box {
  background: var(--turq-tint); border: 1px solid var(--turq-line);
  border-radius: 8px; padding: 10px 14px; margin-top: 1rem;
  font-size: 0.78rem; color: var(--gray-800); line-height: 1.5;
  display: flex; gap: 8px; align-items: flex-start;
}
.insight-box.blue { background: var(--iq-blue-tint); border-color: var(--iq-blue-line); }
.insight-icon { font-size: 1rem; flex-shrink: 0; }

/* Step nav */
.step-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.75rem; padding-top: 1.125rem; border-top: 1px solid var(--gray-100);
  gap: 1rem;
}
.step-nav-hint { font-size: 0.75rem; color: var(--gray-400); }
.btn-back {
  padding: 9px 20px; border-radius: 8px;
  border: 1px solid var(--gray-100); background: var(--white);
  color: var(--gray-600); font-size: 0.86rem; font-weight: 500;
  cursor: pointer; font-family: var(--font-body); transition: all var(--transition);
}
.btn-back:hover:not(:disabled) { border-color: var(--turq); color: var(--turq-dark); }
.btn-back:disabled { color: var(--gray-200); cursor: default; }
.btn-next, .btn-finish {
  padding: 9px 24px; border-radius: 8px; border: none;
  background: var(--turq); color: var(--white);
  font-size: 0.86rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); transition: background var(--transition);
}
.btn-next:hover:not(:disabled), .btn-finish:hover:not(:disabled) { background: var(--turq-dark); }
.btn-next:disabled, .btn-finish:disabled { background: var(--gray-200); cursor: default; }
.btn-finish { padding: 10px 28px; font-size: 0.9rem; box-shadow: 0 2px 10px var(--turq-glow); }

/* Unlocks panel */
.unlocks-panel {
  margin-top: 1.75rem; padding: 1rem 1.125rem;
  background: var(--off-white); border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}
.unlocks-title {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  color: var(--purple-deep); margin-bottom: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.unlocks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.unlock-item { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--gray-400); }
.unlock-item.done { color: var(--turq-dark); }
.ui-check { font-size: 0.7rem; }

/* Saving overlay */
.saving-overlay {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: rgba(14,22,40,0.55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  align-items: center; justify-content: center; flex-direction: column; gap: 1rem;
}
.saving-overlay.active { display: flex; }
.saving-spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25); border-top-color: var(--turq);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.saving-text { color: var(--white); font-size: 0.9rem; font-weight: 600; }

@media (max-width: 560px) {
  .input-row, .unlocks-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   WORKFLOW STEPPER — shared by comparison + planner
   Search → Select → Plan → Budget → Measure
   ═══════════════════════════════════════ */
.tool-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 0.875rem 0; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}
.tool-nav-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 7px 16px; border-radius: 7px;
  border: 1px solid var(--gray-100); background: var(--white);
  color: var(--gray-600); font-size: 0.82rem; font-weight: 600;
  text-decoration: none; font-family: var(--font-body);
  cursor: pointer; white-space: nowrap; transition: all var(--transition);
}
.tool-nav-btn:hover { border-color: var(--turq); color: var(--turq-dark); }
.tool-nav-btn.forward { background: var(--turq); border-color: var(--turq); color: var(--white); }
.tool-nav-btn.forward:hover { background: var(--turq-dark); border-color: var(--turq-dark); color: var(--white); }
.tool-nav-btn:disabled, .tool-nav-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.tool-nav-center { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool-nav-step {
  font-size: 0.78rem; font-weight: 600; color: var(--gray-400);
  padding: 4px 10px; border-radius: 5px;
}
.tool-nav-step.done { color: var(--turq-dark); background: var(--turq-tint); }
.tool-nav-step.current { color: var(--white); background: var(--turq); }
.tool-nav-arrow { font-size: 0.7rem; color: var(--gray-200); }

/* ═══════════════════════════════════════
   SHARED — event search typeahead
   ═══════════════════════════════════════ */
.search-wrap { position: relative; flex: 1; min-width: 200px; }
.search-input {
  width: 100%; background: var(--off-white);
  border: 1px solid var(--gray-100); border-radius: 8px;
  color: var(--gray-900); padding: 9px 13px;
  font-size: 0.86rem; font-family: var(--font-body);
  outline: none; transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--turq); background: var(--white); }
.search-input::placeholder { color: var(--gray-400); }
.search-results {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-height: 320px; overflow-y: auto; z-index: 100;
}
.search-results.open { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; cursor: pointer; font-size: 0.84rem;
  color: var(--gray-800); border-bottom: 1px solid var(--gray-50);
  transition: background var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--off-white); }
.search-empty { padding: 12px; color: var(--gray-400); font-size: 0.82rem; }

.tier-badge.t1 { background: var(--t1); } .tier-badge.t2 { background: var(--t2); }
.tier-badge.t3 { background: var(--t3); } .tier-badge.t4 { background: var(--t4); }

/* ═══════════════════════════════════════
   COMPARISON
   ═══════════════════════════════════════ */
.selector-bar {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 1rem 1.25rem;
  margin-bottom: 1.25rem; display: flex; gap: 1rem;
  align-items: center; flex-wrap: wrap;
}
.selector-slots { display: flex; gap: 6px; flex-wrap: wrap; }
.event-slot {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 100px;
  border: 1px dashed var(--gray-200); background: var(--off-white);
  font-size: 0.78rem; color: var(--gray-400); white-space: nowrap;
}
.event-slot.filled {
  border-style: solid; border-color: var(--turq-line);
  background: var(--turq-tint); color: var(--purple-deep); font-weight: 600;
}
.event-slot .slot-x {
  background: none; border: none; color: var(--gray-400);
  cursor: pointer; font-size: 0.9rem; line-height: 1; padding: 0 0 0 2px;
}
.event-slot .slot-x:hover { color: var(--red); }
.slot-scenario { font-size: 0.68rem; color: var(--turq-dark); opacity: 0.8; }

.dept-toggle { display: flex; gap: 2px; background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 7px; padding: 2px; }
.dept-btn {
  background: none; border: none; color: var(--gray-400);
  padding: 6px 12px; border-radius: 5px;
  font-size: 0.78rem; font-weight: 500; cursor: pointer;
  font-family: var(--font-body); white-space: nowrap; transition: all var(--transition);
}
.dept-btn.active { background: var(--turq); color: var(--white); }
.dept-btn:hover:not(.active) { background: var(--gray-100); color: var(--gray-800); }

.compare-wrap {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); overflow-x: auto; position: relative;
}
.compare-wrap.has-scroll::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 40px;
  background: linear-gradient(to right, rgba(255,255,255,0), var(--white));
  pointer-events: none;
}
.scroll-hint { font-size: 0.75rem; color: var(--gray-400); margin-bottom: 0.5rem; display: none; }
.compare-wrap.has-scroll ~ .scroll-hint, .scroll-hint.show { display: block; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.compare-table th, .compare-table td {
  padding: 10px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--gray-50);
}
.col-label {
  font-weight: 600; color: var(--gray-600);
  background: var(--off-white); white-space: nowrap;
  position: sticky; left: 0; z-index: 2; min-width: 150px;
}
.section-row td {
  background: var(--off-white); font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.1em; padding: 8px 14px;
}
.event-header { min-width: 180px; }
.event-header .eh-name { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--purple-deep); line-height: 1.25; }
.event-meta-small { font-size: 0.74rem; color: var(--gray-400); margin-top: 3px; }
.empty-col { color: var(--gray-200); text-align: center; }
.winner { background: var(--turq-tint); }
.score-pill {
  display: inline-block; min-width: 26px; text-align: center;
  padding: 2px 7px; border-radius: 4px;
  font-size: 0.78rem; font-weight: 700; color: var(--white);
}
.score-high { background: var(--turq); }
.score-mid  { background: var(--iq-blue); }
.score-low  { background: var(--gray-400); }
.score-none { background: none; color: var(--gray-200); font-weight: 400; }
.match-score-tag {
  display: inline-block; font-size: 0.66rem; font-weight: 700;
  padding: 1px 6px; border-radius: 3px;
  background: var(--turq-tint); color: var(--turq-dark); margin-left: 5px;
}
.scenario-tag-row { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.scenario-tag {
  font-size: 0.65rem; font-weight: 600; padding: 1px 6px;
  border-radius: 3px; background: var(--iq-blue-tint); color: var(--iq-blue-dark);
}
.btn-action {
  padding: 9px 20px; border-radius: 7px; border: none;
  background: var(--turq); color: var(--white);
  font-size: 0.84rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); text-decoration: none;
  display: inline-block; transition: background var(--transition);
}
.btn-action:hover { background: var(--turq-dark); color: var(--white); }
.btn-action:disabled { opacity: 0.4; cursor: not-allowed; }

/* ═══════════════════════════════════════
   PLANNER
   ═══════════════════════════════════════ */
.planner-layout { display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem; align-items: start; }
.config-panel {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.25rem;
}
.field { margin-bottom: 0.875rem; }
.field-label {
  font-size: 0.72rem; color: var(--gray-400); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  display: block; margin-bottom: 5px;
}
.config-panel input[type=number] {
  width: 100%; background: var(--off-white);
  border: 1px solid var(--gray-100); border-radius: 7px;
  color: var(--gray-900); padding: 8px 11px;
  font-size: 0.86rem; font-family: var(--font-body); outline: none;
}
.config-panel input[type=number]:focus { border-color: var(--turq); background: var(--white); }
.headcount-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }

.event-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.25rem; }
.event-row {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 0.875rem 1rem;
}
.event-row-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.event-row-name { font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; color: var(--purple-deep); }
.event-row-meta { font-size: 0.75rem; color: var(--gray-400); }
.event-row-remove {
  margin-left: auto; background: none; border: none;
  color: var(--gray-400); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 4px;
}
.event-row-remove:hover { color: var(--red); }

.results-panel {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 1.25rem; position: sticky; top: calc(var(--nav-h) + 10px);
}
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.summary-card {
  background: var(--off-white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 0.75rem; text-align: center;
}
.summary-card .num {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--purple-deep); line-height: 1;
}
.summary-card .num.purple { color: var(--turq-dark); }
.summary-card .lbl {
  font-size: 0.66rem; color: var(--gray-400); text-transform: uppercase;
  letter-spacing: 0.07em; font-weight: 600; margin-top: 3px;
}
/* BUGFIX: this styled .tb-num / .tb-lbl, but planner.php's JS emits
   .lbl / .per-person / .amount. The class names never matched, so the text
   inherited the dark body colour on a dark gradient and vanished — the
   "unreadable purple box". Matching the real class names now, and laying it
   out as the two-column row the markup actually describes. */
.total-bar {
  background: linear-gradient(135deg, var(--purple-deep), var(--navy-dark));
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.total-bar .lbl {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 700;
  color: var(--white); line-height: 1.2;
}
.total-bar .per-person {
  font-size: 0.72rem; color: rgba(255,255,255,0.55);
  margin-top: 3px; line-height: 1.3;
}
.total-bar .amount {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: var(--turq); line-height: 1; white-space: nowrap;
}

.event-breakdown { border: 1px solid var(--gray-100); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.breakdown-header {
  background: var(--off-white); padding: 8px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; color: var(--purple-deep);
}
.breakdown-body { padding: 8px 12px; }
.breakdown-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.79rem; }
.breakdown-row.subtotal { border-top: 1px solid var(--gray-100); margin-top: 5px; padding-top: 7px; font-weight: 700; }
.breakdown-label { color: var(--gray-600); }
.breakdown-unit { color: var(--gray-400); font-size: 0.72rem; }
.breakdown-amount { margin-left: auto; font-family: var(--font-mono); font-weight: 600; color: var(--gray-900); }
.breakdown-total { font-family: var(--font-mono); font-weight: 700; color: var(--turq-dark); }
.data-tag {
  font-size: 0.6rem; font-weight: 700; padding: 1px 5px;
  border-radius: 3px; text-transform: uppercase; letter-spacing: 0.05em;
}
.data-real { background: var(--turq-tint); color: var(--turq-dark); }
.data-est  { background: var(--gray-50); color: var(--gray-400); }
.no-pricing { font-size: 0.74rem; color: var(--gray-400); font-style: italic; }
.btn-calc {
  width: 100%; background: var(--turq); color: var(--white);
  border: none; border-radius: 8px; padding: 11px;
  font-size: 0.88rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); transition: background var(--transition);
}
.btn-calc:hover { background: var(--turq-dark); }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--gray-400); font-size: 0.86rem; }

@media (max-width: 1000px) {
  .planner-layout { grid-template-columns: 1fr; }
  .results-panel { position: static; }
  .headcount-row { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════
   UPCOMING EVENTS
   ═══════════════════════════════════════ */
.filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 0.75rem 0 1rem; border-bottom: 1px solid var(--gray-100); margin-bottom: 1rem;
}
.f-label {
  font-size: 0.68rem; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.f-btn {
  background: var(--white); border: 1px solid var(--gray-100);
  color: var(--gray-600); padding: 5px 12px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 500; cursor: pointer;
  font-family: var(--font-body); transition: all var(--transition);
}
.f-btn:hover { border-color: var(--turq-line); }
.f-btn.active { background: var(--turq); border-color: var(--turq); color: var(--white); font-weight: 600; }
.f-select {
  background: var(--off-white); border: 1px solid var(--gray-100);
  color: var(--gray-800); padding: 5px 10px; border-radius: 7px;
  font-size: 0.78rem; font-family: var(--font-body); cursor: pointer;
}
.f-select:focus { border-color: var(--turq); outline: none; }

.month-header {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  color: var(--turq-dark); text-transform: uppercase; letter-spacing: 0.12em;
  padding: 1rem 0 0.4rem; border-bottom: 1px solid var(--gray-100); margin-bottom: 0.25rem;
}
.month-header:first-child { padding-top: 0; }
.ev-row {
  display: grid; grid-template-columns: 40px 120px 1fr 200px;
  gap: 12px; align-items: center; padding: 9px 4px;
  border-bottom: 1px solid var(--gray-50); font-size: 0.85rem;
}
.ev-row:last-child { border-bottom: none; }
.ev-row:hover { background: var(--off-white); }
.ev-tier { font-size: 0.62rem; font-weight: 700; color: var(--white); padding: 2px 5px; border-radius: 3px; text-align: center; }
.ev-tier.t1 { background: var(--t1); } .ev-tier.t2 { background: var(--t2); }
.ev-tier.t3 { background: var(--t3); } .ev-tier.t4 { background: var(--t4); }
.ev-date { font-family: var(--font-mono); font-size: 0.76rem; color: var(--gray-400); }
.ev-name { font-weight: 600; color: var(--gray-900); }
.ev-loc { font-size: 0.8rem; color: var(--gray-400); text-align: right; }
.ev-count { font-size: 0.78rem; color: var(--gray-400); padding-top: 1rem; text-align: center; }
.ev-empty { text-align: center; padding: 2.5rem 1rem; color: var(--gray-400); font-size: 0.86rem; }

.gate {
  background: var(--off-white); border-top: 1px solid var(--gray-100);
  padding: 3rem 2rem; text-align: center; margin-top: 2rem;
}
.gate h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--purple-deep); margin-bottom: 0.5rem; }
.gate h3 em { font-family: var(--font-italic-serif); font-style: italic; color: var(--turq-dark); font-weight: 600; }
.gate > p { font-size: 0.88rem; color: var(--gray-600); max-width: 560px; margin: 0 auto 1.75rem; line-height: 1.6; }
.sample-cards { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.sample-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 1rem; width: 150px;
}
.sc-radar { display: flex; justify-content: center; margin-bottom: 0.5rem; }
.sc-label { font-size: 0.72rem; color: var(--gray-400); text-align: center; }

/* ═══════════════════════════════════════
   ACCOUNT
   ═══════════════════════════════════════ */
.account-grid { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start; }
.account-side {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 1.25rem; position: sticky; top: calc(var(--nav-h) + 10px);
}
.acct-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--turq); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  margin-bottom: 0.75rem;
}
.acct-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--purple-deep); }
.acct-email { font-size: 0.78rem; color: var(--gray-400); word-break: break-all; margin-bottom: 0.75rem; }
.acct-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 3px 9px; border-radius: 4px;
  background: var(--turq-tint); color: var(--turq-dark);
}
.acct-meta { font-size: 0.75rem; color: var(--gray-400); margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--gray-100); line-height: 1.7; }

.card-panel {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem;
}
.card-panel h2 {
  font-family: var(--font-display); font-size: 1.05rem;
  color: var(--purple-deep); margin-bottom: 0.25rem;
}
.card-panel .panel-sub { font-size: 0.82rem; color: var(--gray-400); margin-bottom: 1.25rem; }
.alert-ok, .alert-err {
  border-radius: 8px; padding: 10px 14px; margin-bottom: 1.25rem;
  font-size: 0.85rem; line-height: 1.5;
}
.alert-ok  { background: rgba(39,174,96,0.08);  border: 1px solid rgba(39,174,96,0.25);  color: var(--green); }
.alert-err { background: rgba(192,57,43,0.08); border: 1px solid rgba(192,57,43,0.25); color: var(--red); }
.card-panel select {
  width: 100%; background: var(--off-white);
  border: 1px solid var(--gray-100); border-radius: 8px;
  color: var(--gray-900); padding: 10px 13px;
  font-size: 0.88rem; font-family: var(--font-body); outline: none;
}
.card-panel select:focus { border-color: var(--turq); background: var(--white); }
.btn-save-acct {
  background: var(--turq); color: var(--white); border: none;
  border-radius: 8px; padding: 10px 24px;
  font-size: 0.86rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); transition: background var(--transition);
}
.btn-save-acct:hover { background: var(--turq-dark); }
.acct-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 0.5rem; }

@media (max-width: 860px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-side { position: static; }
  .ev-row { grid-template-columns: 36px 1fr; gap: 5px 10px; }
  .ev-date, .ev-loc { grid-column: 2; text-align: left; }
}


/* ═══════════════════════════════════════
   CONFERENCE SCANNER + RESULTS
   Ported from bioeventiq-conference-scanner.html and
   bioeventiq-results-page.html (design locked June 4).

   The mockups carried their own :root with placeholder tokens
   (--purple #7A6B99, --orange #E07830). Those are mapped onto the
   Scientari system here rather than reintroduced:
     --purple / --purple-dark  ->  --purple-light  (#6B5A8E)
     --orange                  ->  --turq-dark     (accent)
     --bg-* / --text-* / --border-*  ->  the shared gray ramp
   Everything else is the mockup's own CSS, deduped where the two
   pages defined the same rule.
   ═══════════════════════════════════════ */
.bei-wrap { max-width: 900px; margin: 0 auto; background: var(--white); padding: 28px 32px; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.bei-hdr { font-family: 'Inter Tight', sans-serif; font-size: 20px; font-weight: 700; margin: 0 0 4px; color: var(--purple-deep); display: flex; align-items: center; gap: 12px; }
.bei-audio-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 11px 5px 8px; background: var(--off-white); border: 1px solid var(--gray-100); border-radius: 999px; cursor: pointer; font-family: var(--font-body); font-size: 11px; font-weight: 500; color: var(--gray-800); transition: all 0.15s; }
.bei-audio-btn:hover { background: var(--purple-light); color: #fff; border-color: var(--purple-light); }
.bei-audio-btn svg { width: 12px; height: 12px; flex-shrink: 0; }
.bei-audio-btn span { letter-spacing: 0.02em; }
.bei-sub { font-size: 13px; color: var(--gray-800); margin: 0 0 16px; line-height: 1.5; }
.bei-notice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; background: var(--iq-blue-tint); border-radius: 8px; margin-bottom: 14px; font-size: 12px; color: var(--iq-blue-dark); line-height: 1.5; }
.bei-notice-x { margin-left: auto; cursor: pointer; opacity: 0.6; font-size: 14px; padding: 0 2px; flex-shrink: 0; }
.bei-notice-x:hover { opacity: 1; }
.bei-notice-icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.bei-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 10px 14px; background: var(--off-white); border-radius: 8px; font-size: 13px; color: var(--gray-400); }
.bei-step { display: inline-flex; align-items: center; gap: 6px; }
.bei-step-num { width: 19px; height: 19px; border-radius: 50%; background: var(--white); border: 1px solid var(--gray-200); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: var(--gray-800); }
.bei-step.done { color: var(--gray-900); font-weight: 500; }
.bei-step.done .bei-step-num { background: var(--gray-900); color: var(--white); border-color: var(--gray-900); }
.bei-step-arrow { opacity: 0.35; }
.bei-layout { display: grid; grid-template-columns: 1fr 200px; gap: 16px; align-items: start; }
.bei-main { min-width: 0; }
.bei-tabs-bar { display: flex; align-items: center; flex-wrap: wrap; row-gap: 6px; justify-content: space-between; background: var(--off-white); border-radius: 12px 12px 0 0; padding: 8px 12px; gap: 8px; border: 1px solid var(--gray-100); border-bottom: none; }
.bei-tab-group { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; row-gap: 2px; }
.bei-tab-label { font-size: 11px; font-weight: 600; color: var(--gray-800); text-transform: uppercase; letter-spacing: 0.05em; margin-right: 6px; }
.bei-tab { padding: 4px 9px; font-size: 12px; border-radius: 8px; background: transparent; color: var(--gray-900); cursor: pointer; font-family: var(--font-body); border: 1px solid transparent; white-space: nowrap; opacity: 0.7; }
.bei-tab:hover { opacity: 1; }
.bei-tab.on { background: var(--white); opacity: 1; font-weight: 500; border-color: var(--gray-100); }
.bei-panel-stack { background: var(--white); border: 1px solid var(--gray-100); border-radius: 0 0 12px 12px; }
.bei-filter { border-bottom: 1px solid var(--gray-100); }
.bei-filter:last-child { border-bottom: none; }
.bei-filter-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; cursor: pointer; user-select: none; }
.bei-filter-head:hover { background: var(--off-white); }
.bei-filter-head-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bei-filter-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--gray-800); }
.bei-filter-title { font-size: 13px; font-weight: 500; }
.bei-filter-state { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.bei-filter.off .bei-filter-title { color: var(--gray-400); }
.bei-filter.off .bei-filter-icon { opacity: 0.4; }
.bei-filter-right { display: flex; align-items: center; gap: 10px; }
.bei-toggle { position: relative; width: 28px; height: 16px; background: var(--gray-50); border-radius: 999px; border: 1px solid var(--gray-100); cursor: pointer; flex-shrink: 0; transition: background 0.15s; }
.bei-toggle.on { background: var(--gray-900); border-color: var(--gray-900); }
.bei-toggle::after { content: ""; position: absolute; top: 1px; left: 1px; width: 12px; height: 12px; background: var(--white); border-radius: 50%; transition: transform 0.15s; }
.bei-toggle.on::after { transform: translateX(12px); }
.bei-caret { font-size: 10px; color: var(--gray-400); transition: transform 0.15s; }
.bei-caret.open { transform: rotate(180deg); }
.bei-filter-body { padding: 0 14px 14px; display: none; }
.bei-filter.open .bei-filter-body { display: block; }
.bei-filter.off .bei-filter-body { display: none; }
.bei-input { width: 100%; height: 34px; padding: 0 12px; font-size: 13px; font-family: var(--font-body); border: 1px solid var(--gray-200); border-radius: 8px; background: var(--white); color: var(--gray-900); outline: none; }
.bei-input:focus { border-color: var(--iq-blue); box-shadow: 0 0 0 2px var(--iq-blue-tint); }
.bei-filter-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.bei-filter-pill { padding: 5px 11px; font-size: 12px; border-radius: 999px; border: 1px solid var(--gray-100); background: var(--white); color: var(--gray-800); cursor: pointer; font-family: var(--font-body); }
.bei-filter-pill:hover { border-color: var(--gray-200); color: var(--gray-900); }
.bei-filter-pill.on { background: var(--gray-900); color: var(--white); border-color: var(--gray-900); }
.bei-topic-row { display: flex; gap: 12px; align-items: flex-start; }
.bei-topic-input-col { flex: 0 0 55%; }
.bei-topic-chips-col { flex: 1; min-width: 0; min-height: 34px; display: flex; flex-wrap: wrap; gap: 5px; align-content: flex-start; padding-top: 4px; }
.bei-topic-chips-empty { font-size: 12px; color: var(--gray-400); font-style: italic; padding: 4px 0; }
.bei-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 10px; background: var(--iq-blue-tint); color: var(--iq-blue-dark); border-radius: 999px; font-size: 12px; font-weight: 500; }
.bei-chip-x { cursor: pointer; font-size: 14px; opacity: 0.65; padding: 0 2px; line-height: 1; }
.bei-chip-x:hover { opacity: 1; }
.bei-suggest-section { margin-top: 12px; }
.bei-suggest-label { font-size: 12px; color: var(--gray-400); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.bei-suggest-label-icon { width: 8px; height: 8px; color: var(--gray-400); }
.bei-chip-suggest { display: inline-flex; align-items: center; padding: 4px 11px; background: var(--off-white); color: var(--gray-800); border-radius: 999px; font-size: 12px; cursor: pointer; border: 1px solid var(--gray-100); margin-right: 4px; margin-bottom: 4px; }
.bei-chip-suggest:hover { background: var(--gray-50); color: var(--gray-900); }
.bei-radar-body { display: flex; gap: 16px; align-items: center; }
.bei-radar-left { flex: 1; min-width: 0; }
.bei-radar-right { flex: 1; min-width: 0; }
.bei-axis-row { display: flex; align-items: center; gap: 7px; padding: 4px 0; }
.bei-axis-row.off-axis { opacity: 0.4; }
.bei-axis-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.bei-axis-name { font-size: 12px; width: 72px; flex-shrink: 0; color: var(--gray-900); }
.bei-axis-row input[type="range"] { flex: 1; height: 14px; accent-color: #5c4d80; }
.bei-axis-val { font-size: 12px; width: 16px; text-align: right; color: var(--gray-900); font-variant-numeric: tabular-nums; font-weight: 500; }
.bei-axis-tog { width: 12px; height: 12px; border-radius: 2px; border: 1px solid var(--gray-200); background: var(--white); cursor: pointer; padding: 0; flex-shrink: 0; }
.bei-axis-tog.on { background: var(--gray-900); border-color: var(--gray-900); }
.bei-side { background: var(--off-white); border-radius: 12px; padding: 14px 12px; position: sticky; top: 12px; }
.bei-side-personalize { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--white); border-radius: 8px; border: 1px solid var(--gray-100); margin-bottom: 12px; cursor: pointer; font-size: 12px; color: var(--gray-900); font-weight: 500; }
.bei-side-personalize input { margin: 0; cursor: pointer; }
.bei-side-title { font-size: 11px; font-weight: 600; color: var(--gray-900); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; display: flex; align-items: center; gap: 5px; }
.bei-side-help { font-size: 11px; color: var(--gray-400); cursor: help; }
.bei-side-sub { font-size: 12px; color: var(--gray-400); margin-bottom: 10px; line-height: 1.4; }
.bei-preset { display: block; width: 100%; text-align: left; padding: 9px 10px; background: var(--white); border: 1px solid var(--gray-100); border-radius: 8px; margin-bottom: 6px; cursor: pointer; font-family: var(--font-body); }
.bei-preset:hover { border-color: var(--gray-200); }
.bei-preset.active { border-color: var(--gray-900); border-width: 1.5px; }
.bei-preset-name { font-size: 12px; font-weight: 600; color: var(--gray-900); display: flex; align-items: center; gap: 6px; }
.bei-preset-icon { width: 13px; height: 13px; color: var(--gray-800); flex-shrink: 0; }
.bei-preset-desc { font-size: 11px; color: var(--gray-400); margin-top: 3px; line-height: 1.35; }
.bei-side-divider { height: 1px; background: var(--gray-100); margin: 10px 2px; }
.bei-side-save { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray-800); padding: 6px 10px; cursor: pointer; border-radius: 8px; }
.bei-side-save:hover { color: var(--gray-900); background: var(--white); }
/* Under-radar tuning notice */
.bei-radar-notice { display: flex; align-items: flex-start; gap: 9px; padding: 10px 14px; background: var(--iq-blue-tint); border-radius: 8px; margin-top: 12px; font-size: 12px; color: var(--iq-blue-dark); line-height: 1.5; }
.bei-radar-notice svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.bei-radar-notice-x { margin-left: auto; cursor: pointer; opacity: 0.6; font-size: 14px; padding: 0 2px; flex-shrink: 0; line-height: 1; }
.bei-radar-notice-x:hover { opacity: 1; }
.bei-radar-notice.hidden { display: none; }
/* Expandable scoring explainer inside ranking panel */
.bei-axes-explainer { margin-top: 12px; border-top: 1px solid var(--gray-100); padding-top: 10px; }
.bei-axes-explainer-head { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--gray-800); cursor: pointer; user-select: none; padding: 4px 0; font-weight: 500; }
.bei-axes-explainer-head:hover { color: var(--gray-900); }
.bei-axes-explainer-head-caret { font-size: 10px; color: var(--gray-400); transition: transform 0.15s; }
.bei-axes-explainer-head-caret.open { transform: rotate(90deg); }
.bei-axes-explainer-body { display: none; padding: 8px 0 2px; }
.bei-axes-explainer-body.open { display: block; }
.bei-axes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-bottom: 12px; }
.bei-axis-def { display: flex; gap: 8px; align-items: flex-start; }
.bei-axis-def-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.bei-axis-def-content { flex: 1; min-width: 0; }
.bei-axis-def-name { font-size: 12px; font-weight: 600; color: var(--gray-900); margin-bottom: 2px; }
.bei-axis-def-desc { font-size: 12px; color: var(--gray-800); line-height: 1.45; }
.bei-weighting-box { background: var(--off-white); border-radius: 8px; padding: 12px 14px; border: 1px solid var(--gray-100); margin-top: 10px; }
.bei-weighting-box-title { font-size: 12px; font-weight: 600; color: var(--gray-900); margin-bottom: 6px; }
.bei-weighting-box ul { font-size: 12px; color: var(--gray-800); line-height: 1.55; margin: 0; padding-left: 16px; list-style: disc; }
.bei-weighting-box ul li { margin-bottom: 3px; }
.bei-weighting-box ul li strong { color: var(--gray-900); font-weight: 600; }
.bei-results-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--off-white); border-radius: 8px; margin-top: 16px; }
.bei-results-count { font-size: 13px; }
.bei-results-count strong { font-weight: 600; font-size: 15px; }
.bei-broaden { font-size: 12px; color: var(--gray-800); margin-top: 4px; }
.bei-broaden a { color: var(--iq-blue-dark); cursor: pointer; }
.bei-broaden a:hover { text-decoration: underline; }
.bei-btn { padding: 8px 16px; font-size: 13px; background: var(--purple-light); color: var(--white); border: none; border-radius: 8px; cursor: pointer; font-family: var(--font-body); font-weight: 500; }
.bei-btn:hover { background: var(--purple-light); }
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--gray-900); color: var(--white); font-size: 11px; padding: 5px 9px; border-radius: 4px; white-space: nowrap; z-index: 20; font-weight: 400; letter-spacing: 0; text-transform: none; pointer-events: none; max-width: 240px; }
/* Unified modal pattern — shared with results page */
.bei-modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); align-items: center; justify-content: center; z-index: 200; }
.bei-modal-backdrop.open { display: flex; }
.bei-modal { background: var(--white); border-radius: 12px; padding: 20px 22px; width: 400px; max-width: 92%; box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.bei-modal-title { font-size: 14px; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; }
.bei-modal-sub { font-size: 12px; color: var(--gray-800); margin-bottom: 14px; line-height: 1.5; }
.bei-modal-input { width: 100%; height: 36px; padding: 0 12px; font-size: 13px; font-family: var(--font-body); border: 1px solid var(--gray-200); border-radius: 8px; background: var(--white); color: var(--gray-900); outline: none; }
.bei-modal-input:focus { border-color: var(--purple-light); }
.bei-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.bei-btn-secondary { padding: 7px 14px; font-size: 12px; background: transparent; color: var(--gray-800); border: 1px solid var(--gray-100); border-radius: 8px; cursor: pointer; font-family: var(--font-body); }
.bei-btn-secondary:hover { color: var(--gray-900); border-color: var(--gray-200); }
.bei-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding: 0; }
.bei-page-title { font-family: 'Inter Tight', sans-serif; font-size: 20px; font-weight: 700; color: var(--purple-deep); }
.bei-page-sub { font-size: 12px; color: var(--gray-400); }
/* --- Scanner summary bar --- */
.bei-scanner-summary { background: var(--off-white); border: 1px solid var(--gray-100); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bei-summary-count { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.bei-summary-count strong { font-size: 16px; color: var(--purple-deep); }
.bei-summary-divider { width: 1px; height: 18px; background: var(--gray-100); }
.bei-summary-pills { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.bei-summary-pill { display: inline-flex; align-items: center; padding: 3px 9px; background: var(--off-white); color: var(--gray-800); border-radius: 999px; font-size: 12px; border: 1px solid var(--gray-100); }
.bei-summary-pill.radar-pill { background: rgba(74, 61, 107, 0.08); color: var(--purple-deep); border-color: rgba(74, 61, 107, 0.3); }
.bei-edit-scan { font-size: 12px; color: var(--purple-light); text-decoration: none; padding: 4px 10px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.bei-edit-scan:hover { background: var(--off-white); color: var(--purple-light); }
/* --- Results filter bar --- */
.bei-results-filters { background: var(--off-white); border: 1px solid var(--gray-100); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bei-filter-group { display: flex; align-items: center; gap: 5px; }
.bei-filter-label { font-size: 11px; font-weight: 600; color: var(--gray-800); text-transform: uppercase; letter-spacing: 0.04em; margin-right: 4px; }
.bei-filter-divider { width: 1px; height: 22px; background: var(--gray-100); }
.bei-spacer { flex: 1; }
.bei-action-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; font-size: 12px; background: var(--off-white); color: var(--gray-800); border: 1px solid var(--gray-100); border-radius: 8px; cursor: pointer; font-family: var(--font-body); }
.bei-action-btn:hover { background: var(--gray-50); color: var(--gray-900); }
.bei-action-btn svg { width: 11px; height: 11px; }
.bei-density-toggle { display: inline-flex; border: 1px solid var(--gray-100); border-radius: 8px; overflow: hidden; }
.bei-density-toggle button { padding: 5px 9px; font-size: 11px; background: var(--white); color: var(--gray-800); border: none; cursor: pointer; font-family: var(--font-body); display: inline-flex; align-items: center; }
.bei-density-toggle button.on { background: var(--gray-50); color: var(--gray-900); font-weight: 500; }
.bei-density-toggle button svg { width: 11px; height: 11px; }
.bei-sort-select { padding: 5px 9px; font-size: 12px; border: 1px solid var(--gray-100); border-radius: 8px; background: var(--white); color: var(--gray-900); cursor: pointer; font-family: var(--font-body); }
/* Sponsor filter dropdown */
.bei-sponsor-wrap { position: relative; }
.bei-sponsor-trigger { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; font-size: 12px; background: var(--white); color: var(--gray-800); border: 1px solid var(--gray-100); border-radius: 999px; cursor: pointer; font-family: var(--font-body); }
.bei-sponsor-trigger:hover { border-color: var(--gray-200); color: var(--gray-900); }
.bei-sponsor-trigger.has-filter { background: var(--gray-900); color: var(--white); border-color: var(--gray-900); }
.bei-sponsor-trigger svg { width: 9px; height: 9px; }
.bei-sponsor-dropdown { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: var(--white); border: 1px solid var(--gray-100); border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.08); min-width: 220px; max-height: 280px; overflow-y: auto; z-index: 30; padding: 4px; }
.bei-sponsor-dropdown.open { display: block; }
.bei-sponsor-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; font-size: 12px; border-radius: 8px; cursor: pointer; color: var(--gray-900); }
.bei-sponsor-item:hover { background: var(--off-white); }
.bei-sponsor-item.selected { background: rgba(74,61,107,0.1); color: var(--purple-light); font-weight: 600; }
.bei-sponsor-item-count { font-size: 11px; color: var(--gray-400); font-variant-numeric: tabular-nums; }
.bei-sponsor-item.selected .bei-sponsor-item-count { color: var(--purple-light); }
.bei-sponsor-clear { padding: 7px 10px; font-size: 11px; color: var(--gray-400); cursor: pointer; border-top: 1px solid var(--gray-100); margin-top: 4px; }
.bei-sponsor-clear:hover { color: var(--gray-900); }
/* --- Ranking weights collapsed panel --- */
.bei-radar-collapsed { background: var(--off-white); border: 1px solid var(--gray-100); border-radius: 12px; margin-bottom: 16px; }
.bei-radar-collapsed-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; cursor: pointer; user-select: none; }
.bei-radar-collapsed-head:hover { background: var(--off-white); }
.bei-radar-collapsed-left { display: flex; align-items: center; gap: 10px; }
.bei-radar-collapsed-icon { width: 18px; height: 18px; color: var(--purple-light); }
.bei-radar-collapsed-title { font-size: 13px; font-weight: 500; }
.bei-radar-collapsed-state { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.bei-radar-caret { font-size: 10px; color: var(--gray-400); transition: transform 0.15s; }
.bei-radar-caret.open { transform: rotate(180deg); }
.bei-radar-body.open { display: flex; gap: 18px; align-items: center; }
/* --- Event card grid --- */
.bei-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.bei-grid.compact { grid-template-columns: 1fr; gap: 6px; }
.bei-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 12px; padding: 14px; transition: all 0.15s; position: relative; }
.bei-card:hover { border-color: var(--gray-200); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.bei-card.shortlisted { border-color: var(--purple-light); background: rgba(74, 61, 107, 0.04); }
/* Tier badge top-right corner — neutral outlined, color independent of tier */
.bei-tier-corner { position: absolute; top: 12px; right: 14px; font-size: 10.5px; font-weight: 600; color: var(--gray-800); background: transparent; padding: 2px 8px; border: 1px solid var(--gray-200); border-radius: 4px; letter-spacing: 0.04em; }
.bei-tier-t1, .bei-tier-t2, .bei-tier-t3, .bei-tier-t4 { color: var(--gray-800); background: transparent; border-color: var(--gray-200); }
/* Score rectangle as visual anchor — top-left */
.bei-card-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; padding-right: 38px; }
.bei-score-rect { width: 56px; height: 48px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; cursor: help; font-family: var(--font-body); }
.bei-score-rect.excellent { background: linear-gradient(135deg, #16a34a, #22c55e); }
.bei-score-rect.good { background: linear-gradient(135deg, var(--purple-light), var(--purple-deep)); }
.bei-score-rect.fair { background: linear-gradient(135deg, #d4842a, #f59e0b); }
.bei-score-num { font-size: 22px; font-weight: 700; line-height: 1; }
.bei-score-tooltip { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: var(--gray-900); color: #fff; font-size: 11px; padding: 8px 11px; border-radius: 6px; white-space: nowrap; z-index: 10; font-weight: 400; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.bei-score-tooltip::before { content: ""; position: absolute; top: -4px; left: 24px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid var(--gray-900); }
.bei-score-rect:hover .bei-score-tooltip { display: block; }
.bei-score-tooltip strong { font-weight: 600; }
.bei-score-tooltip-line { margin-top: 3px; opacity: 0.9; }
/* Name + sponsor */
.bei-card-id { flex: 1; min-width: 0; }
.bei-card-name { font-size: 14px; font-weight: 600; color: var(--gray-900); line-height: 1.3; margin-bottom: 3px; }
.bei-card-sponsor { font-size: 12.5px; color: var(--gray-400); font-style: italic; }
/* Meta row beneath head */
.bei-card-meta { font-size: 12px; color: var(--gray-800); line-height: 1.5; margin-bottom: 8px; }
.bei-card-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bei-format-badge { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 3px; background: var(--gray-50); color: var(--gray-800); }
.bei-format-badge.virtual { background: rgba(124,58,237,0.1); color: #7c3aed; }
.bei-format-badge.hybrid { background: rgba(8,145,178,0.1); color: #0891b2; }
.bei-partnering-icon { display: inline-flex; align-items: center; gap: 3px; color: var(--purple-light); font-weight: 500; }
.bei-partnering-icon svg { width: 10px; height: 10px; }
.bei-booth-icon { display: inline-flex; align-items: center; gap: 3px; font-weight: 500; color: var(--gray-400); }
.bei-booth-icon svg { width: 10px; height: 10px; }
.bei-speaking-icon { display: inline-flex; align-items: center; gap: 3px; font-weight: 500; color: var(--gray-400); }
.bei-speaking-icon svg { width: 10px; height: 10px; }
/* Strong-on line */
.bei-strong-on { font-size: 12px; color: var(--gray-800); margin-bottom: 10px; line-height: 1.4; }
.bei-strong-on-label { color: var(--gray-400); font-weight: 500; }
.bei-strong-on strong { color: var(--gray-900); font-weight: 600; }
/* Bottom — shortlist action */
/* Bottom — detail actions (left) + shortlist (right) */
.bei-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--gray-100); flex-wrap: wrap; }
.bei-card-detail-actions { display: flex; align-items: center; gap: 6px; }
.bei-detail-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; background: transparent; border: 1px solid var(--gray-100); border-radius: 8px; cursor: pointer; font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--gray-800); transition: all 0.15s; }
.bei-detail-btn:hover { border-color: var(--gray-200); color: var(--gray-900); background: var(--off-white); }
.bei-detail-btn svg { width: 12px; height: 12px; flex-shrink: 0; }
.bei-shortlist-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: rgba(74, 61, 107, 0.12); border: 1px solid rgba(74, 61, 107, 0.35); border-radius: 8px; cursor: pointer; font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--purple-light); transition: all 0.15s; }
.bei-shortlist-btn:hover { background: var(--purple-light); color: #fff; border-color: var(--purple-light); }
.bei-shortlist-btn.added { background: var(--purple-light); color: #fff; border-color: var(--purple-light); }
.bei-shortlist-btn svg { width: 11px; height: 11px; }
/* Compact card variant */
.bei-card-compact { padding: 10px 14px; padding-right: 50px; }
.bei-card-compact .bei-card-head { margin-bottom: 4px; padding-right: 0; gap: 12px; align-items: center; }
.bei-card-compact .bei-card-meta { margin-bottom: 0; font-size: 11px; }
.bei-card-compact .bei-strong-on { display: none; }
.bei-card-compact .bei-card-bottom { padding-top: 6px; border-top: none; margin-top: 4px; }
.bei-card-compact .bei-detail-btn { padding: 5px 8px; gap: 0; }
.bei-card-compact .bei-detail-btn svg { width: 13px; height: 13px; }
.bei-card-compact .bei-score-rect { width: 44px; height: 38px; }
.bei-card-compact .bei-score-num { font-size: 18px; }
.bei-card-compact .bei-card-name { font-size: 13px; margin-bottom: 1px; }
.bei-card-compact .bei-card-sponsor { font-size: 11.5px; }
.bei-card-compact .bei-tier-corner { top: 14px; right: 14px; }
/* Empty state */
.bei-empty { background: var(--off-white); border: 1px solid var(--gray-100); border-radius: 12px; padding: 40px 30px; text-align: center; }
.bei-empty-icon { font-size: 32px; margin-bottom: 12px; opacity: 0.6; }
.bei-empty-title { font-size: 15px; font-weight: 600; color: var(--gray-900); margin-bottom: 6px; }
.bei-empty-desc { font-size: 13px; color: var(--gray-400); margin-bottom: 18px; }
.bei-empty-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bei-empty-btn { padding: 7px 14px; font-size: 12px; background: var(--off-white); color: var(--gray-900); border: 1px solid var(--gray-100); border-radius: 8px; cursor: pointer; font-family: var(--font-body); font-weight: 500; }
.bei-empty-btn:hover { background: var(--gray-50); border-color: var(--gray-200); }
.bei-empty-btn.primary { background: var(--purple-light); color: #fff; border-color: var(--purple-light); }
.bei-empty-btn.primary:hover { background: var(--purple-light); }
/* Shortlist footer */
.bei-shortlist-footer { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--gray-100); box-shadow: 0 -2px 12px rgba(0,0,0,0.06); padding: 12px 20px; z-index: 100; transform: translateY(100%); transition: transform 0.2s; }
.bei-shortlist-footer.visible { transform: translateY(0); }
.bei-shortlist-footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.bei-shortlist-info { display: flex; align-items: center; gap: 12px; }
.bei-shortlist-count-badge { background: var(--purple-light); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.bei-shortlist-text { font-size: 13px; color: var(--gray-900); }
.bei-shortlist-text strong { font-weight: 600; }
.bei-shortlist-preview { display: flex; gap: 4px; margin-left: 8px; }
.bei-shortlist-chip { padding: 3px 9px; background: var(--off-white); border-radius: 999px; font-size: 11px; color: var(--gray-800); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bei-shortlist-actions { display: flex; gap: 8px; }
.bei-shortlist-action { padding: 7px 14px; font-size: 12px; background: var(--off-white); color: var(--gray-900); border: 1px solid var(--gray-100); border-radius: 8px; cursor: pointer; font-family: var(--font-body); font-weight: 500; }
.bei-shortlist-action:hover { background: var(--gray-50); }
.bei-shortlist-action.primary { background: var(--purple-light); color: #fff; border-color: var(--purple-light); }
.bei-shortlist-action.primary:hover { background: var(--purple-light); }
.bei-shortlist-action.orange { background: var(--turq-dark); color: #fff; border-color: var(--turq-dark); }
.bei-shortlist-action.orange:hover { background: #c66821; }
/* Quicklook drawer — slides in from right */
.bei-ql-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.25); z-index: 150; }
.bei-ql-backdrop.open { display: block; }
.bei-ql-drawer { position: fixed; top: 0; right: 0; width: 420px; max-width: 92vw; height: 100vh; background: var(--white); border-left: 1px solid var(--gray-100); box-shadow: -8px 0 28px rgba(0,0,0,0.12); z-index: 160; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
.bei-ql-drawer.open { transform: translateX(0); }
.bei-ql-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 22px 16px; border-bottom: 1px solid var(--gray-100); position: relative; }
.bei-ql-close { position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; border-radius: 6px; border: none; background: var(--off-white); color: var(--gray-800); font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bei-ql-close:hover { background: var(--gray-50); color: var(--gray-900); }
.bei-ql-score { width: 60px; height: 52px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 24px; font-weight: 700; }
.bei-ql-score.excellent { background: linear-gradient(135deg, #16a34a, #22c55e); }
.bei-ql-score.good { background: linear-gradient(135deg, var(--purple-light), var(--purple-deep)); }
.bei-ql-score.fair { background: linear-gradient(135deg, #d4842a, #f59e0b); }
.bei-ql-title-wrap { flex: 1; min-width: 0; padding-right: 30px; }
.bei-ql-name { font-size: 16px; font-weight: 700; color: var(--gray-900); line-height: 1.25; margin-bottom: 3px; }
.bei-ql-sponsor { font-size: 12.5px; color: var(--gray-400); font-style: italic; }
.bei-ql-body { padding: 18px 22px 22px; }
.bei-ql-section { margin-bottom: 20px; }
.bei-ql-section-label { font-size: 11px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.bei-ql-facts { display: flex; flex-direction: column; gap: 7px; }
.bei-ql-text { font-size: 13px; line-height: 1.55; color: var(--gray-800); margin: 0; }
.bei-ql-whatsnew { background: rgba(46,184,166,0.07); border: 1px solid rgba(46,184,166,0.25); border-radius: 8px; padding: 12px 14px; }
.bei-ql-whatsnew-label { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; color: #1d8a7c; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 7px; }
.bei-ql-whatsnew-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--turq); flex-shrink: 0; }
.bei-ql-whatsnew-text { font-size: 13px; line-height: 1.55; color: var(--gray-800); margin: 0; }
.bei-ql-fact { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-800); }
.bei-ql-fact-icon { width: 14px; flex-shrink: 0; color: var(--gray-400); }
.bei-ql-fact strong { color: var(--gray-900); font-weight: 600; }
.bei-ql-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.bei-ql-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--off-white); color: var(--gray-800); border: 1px solid var(--gray-100); }
.bei-ql-badge.partnering { color: var(--purple-light); }
.bei-ql-axes { display: flex; flex-direction: column; gap: 9px; }
.bei-ql-axis { display: flex; align-items: center; gap: 10px; }
.bei-ql-axis-name { font-size: 12px; color: var(--gray-800); width: 90px; flex-shrink: 0; }
.bei-ql-axis-bar { flex: 1; height: 7px; background: var(--gray-50); border-radius: 4px; overflow: hidden; }
.bei-ql-axis-fill { height: 100%; border-radius: 4px; background: var(--purple-light); }
.bei-ql-axis-val { font-size: 12px; font-weight: 700; color: var(--gray-900); width: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.bei-ql-foot { display: flex; gap: 8px; padding: 16px 22px; border-top: 1px solid var(--gray-100); position: sticky; bottom: 0; background: var(--white); }
.bei-ql-foot .bei-shortlist-btn { flex: 1; justify-content: center; }
.bei-ql-foot-details { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; background: var(--purple-light); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-family: var(--font-body); font-size: 12px; font-weight: 600; text-decoration: none; }
.bei-ql-foot-details:hover { background: var(--purple-light); }
.bei-modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); align-items: center; justify-content: center; z-index: 200; }
.bei-modal-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; min-height: 26px; }

/* The department lens changes only two of the six axes. Without saying so, a
   user sees numbers move and can't tell which are opinions and which are facts
   about the event. The Scanner explains this in its scoring guide; the
   comparison table needs the same context at the point of confusion. */
.section-row .section-note {
  display: block; text-transform: none; letter-spacing: 0;
  font-family: var(--font-body); font-weight: 400;
  font-size: 0.72rem; color: var(--gray-400);
  margin-top: 3px; max-width: 640px; line-height: 1.4;
}
