:root {
  --eb-bg: #f7f7f8;
  --eb-surface: #ffffff;
  --eb-surface-2: #fafafa;
  --eb-ink: #09090b;
  --eb-ink-2: #27272a;
  --eb-ink-3: #52525b;
  --eb-ink-4: #63636d;
  --eb-line: #e4e4e7;
  --eb-line-soft: #f0f0f2;
  --eb-accent: #4f46e5;
  --eb-accent-soft: #eef2ff;
  --eb-beat: #047857;
  --eb-beat-bg: #ecfdf5;
  --eb-beat-ring: #a7f3d0;
  --eb-beat-solid: #10b981;
  --eb-miss: #be123c;
  --eb-miss-bg: #fff1f2;
  --eb-miss-ring: #fecdd3;
  --eb-na-bg: #f4f4f5;
  --eb-warn: #b45309;
  --eb-warn-bg: #fffbeb;
  --eb-radius-lg: 16px;
  --eb-radius: 10px;
  --eb-ring: 0 0 0 1px rgba(9, 9, 11, 0.06);
  --eb-shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.04), 0 0 0 1px rgba(9, 9, 11, 0.06);
  --eb-shadow-md: 0 4px 12px -2px rgba(9, 9, 11, 0.08), 0 0 0 1px rgba(9, 9, 11, 0.07);
  --eb-shadow-pop: 0 12px 32px -8px rgba(9, 9, 11, 0.18), 0 0 0 1px rgba(9, 9, 11, 0.08);
  --eb-cols: minmax(200px, 1fr) 80px minmax(0, 4fr) 140px;
  --eb-font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --eb-font-num: 'Manrope', var(--eb-font);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--eb-bg);
  color: var(--eb-ink);
  font-family: var(--eb-font);
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body { overflow-x: clip; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--eb-accent); outline-offset: 2px; }

.eb-wrap { max-width: 2200px; margin: 0 auto; padding: 0 5vw; }

/* Mobile-only: the summary bar and the Configure modal's header/footer. */
.eb-mbar, .eb-panel__mhead, .eb-panel__mfoot { display: none; }

/* ── Header ───────────────────────────────────────────── */
.eb-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
/* Transparent over the hero gradient; frosted once content scrolls underneath. */
.eb-header.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: rgba(9, 9, 11, 0.06);
}
.eb-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.eb-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--eb-ink); text-decoration: none; }
.eb-brand__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(145deg, #18181b, #09090b); color: #34d399; box-shadow: 0 4px 12px -4px rgba(9, 9, 11, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.eb-brand__mark svg { width: 24px; height: 24px; }
.eb-brand__word { font-size: 25px; font-weight: 750; letter-spacing: -0.04em; line-height: 1; }
.eb-brand__word span { color: var(--eb-beat-solid); }

.eb-nav { display: flex; align-items: center; gap: 10px; }
.eb-live { display: inline-flex; align-items: center; gap: 8px; height: 34px; font-size: 12.5px; color: var(--eb-ink-3); background: var(--eb-surface); padding: 0 12px; border-radius: 999px; box-shadow: var(--eb-shadow-sm); white-space: nowrap; }
.eb-live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--eb-beat-solid); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }

.eb-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 4px 14px -4px rgba(5, 150, 105, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.eb-upgrade svg { width: 13px; height: 13px; }
.eb-upgrade[hidden], .eb-account[hidden] { display: none; }
.eb-account { display: inline-flex; align-items: center; min-height: 34px; }
.eb-signin { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--eb-surface); box-shadow: var(--eb-shadow-sm); font-size: 13px; font-weight: 600; color: var(--eb-ink-2); }
.eb-signin:hover { box-shadow: var(--eb-shadow-md); }
.eb-plans { display: inline-flex; gap: 6px; }
.eb-plans[hidden] { display: none; }
.eb-plan { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.eb-plan--pro { color: #fff; background: linear-gradient(135deg, #10b981, #059669); }
.eb-plan--pro.is-preview { color: var(--eb-beat); background: var(--eb-beat-bg); box-shadow: inset 0 0 0 1px var(--eb-beat-ring); }
.eb-plan--beta { color: var(--eb-accent); background: var(--eb-accent-soft); }
.eb-plan--internal { color: var(--eb-warn); background: var(--eb-warn-bg); }

/* idkfa dev modal */
.eb-dev { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(9, 9, 11, 0.45); }
.eb-dev[hidden] { display: none; }
.eb-dev__dialog { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 20px 22px; border-radius: var(--eb-radius-lg); background: var(--eb-surface); box-shadow: var(--eb-shadow-pop); animation: eb-pop 0.12s ease-out; }
.eb-dev__head { display: flex; align-items: center; justify-content: space-between; }
.eb-dev__head h2 { margin: 0; font-size: 18px; }
.eb-dev__close { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--eb-ink-4); padding: 4px; }
.eb-dev__status { margin: 6px 0 12px; font-size: 13px; color: var(--eb-ink-3); }
.eb-dev__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--eb-line-soft); font-size: 14px; }
.eb-dev__desc { margin-top: 2px; font-size: 12.5px; color: var(--eb-ink-3); }
.eb-dev code { font-size: 11.5px; padding: 1px 5px; border-radius: 4px; background: var(--eb-na-bg); }
.eb-dev__switch { position: relative; flex-shrink: 0; width: 40px; height: 22px; border: 0; border-radius: 999px; background: var(--eb-line); transition: background 0.15s; }
.eb-dev__switch span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.15s; }
.eb-dev__switch.is-on { background: var(--eb-beat-solid); }
.eb-dev__switch.is-on span { transform: translateX(18px); }
.eb-dev h3 { margin: 16px 0 8px; font-size: 14px; }
.eb-dev h3 span { font-weight: 500; font-size: 12px; color: var(--eb-ink-4); margin-left: 6px; }
.eb-dev__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.eb-dev__table th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--eb-ink-4); padding: 6px 8px 6px 0; }
.eb-dev__table td { padding: 8px 8px 8px 0; border-top: 1px solid var(--eb-line-soft); vertical-align: top; }
.eb-dev__table td.is-on { color: var(--eb-beat); font-weight: 700; }
.eb-dev__table td.is-off { color: var(--eb-miss); font-weight: 700; }
.eb-dev__pill { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--eb-na-bg); }
.eb-dev__pill.is-pro { color: var(--eb-beat); background: var(--eb-beat-bg); }
.eb-dev__pill.is-beta { color: var(--eb-accent); background: var(--eb-accent-soft); }
.eb-dev__pill.is-internal { color: var(--eb-warn); background: var(--eb-warn-bg); }
.eb-dev__pill.is-off { color: var(--eb-miss); background: var(--eb-miss-bg); }
.eb-dev__hint { margin: 14px 0 0; font-size: 12px; color: var(--eb-ink-4); }
.eb-upgrade:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -4px rgba(5, 150, 105, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2); }

.eb-navmenu { position: relative; }
.eb-navmenu__trigger { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 14px; border: 0; border-radius: 999px; background: var(--eb-surface); box-shadow: var(--eb-shadow-sm); font-size: 13px; font-weight: 600; color: var(--eb-ink-2); }
.eb-navmenu__trigger:hover { box-shadow: var(--eb-shadow-md); }
.eb-navmenu.is-open .eb-chevron { transform: rotate(180deg); }
.eb-navmenu__panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; min-width: 210px; padding: 6px; border-radius: 14px; background: var(--eb-surface); box-shadow: var(--eb-shadow-pop); animation: eb-pop 0.12s ease-out; }
.eb-navmenu__panel[hidden] { display: none; }
.eb-navmenu__panel a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 550; color: var(--eb-ink); text-decoration: none; white-space: nowrap; }
.eb-navmenu__panel a:hover, .eb-navmenu__panel a[aria-current='page'] { background: var(--eb-na-bg); }
/* Phone-only menu extras: feature-flag pills and the Upgrade link moved out of the nav. */
.eb-navmenu__plans, .eb-navmenu__panel .eb-navmenu__upgrade, .eb-navmenu__burger { display: none; }
.eb-navmenu__panel .eb-navmenu__upgrade { color: var(--eb-beat); font-weight: 650; }

/* ── Hero ─────────────────────────────────────────────── */
.eb-hero { --eb-band-top: 76px; --eb-band-under: 96px; position: relative; padding: 56px 0 36px; }
/* Full-bleed gradient band from the top of the page to just under the configuration row. */
.eb-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--eb-band-top));
  bottom: calc(-1 * var(--eb-band-under));
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background:
    radial-gradient(60% 90% at 5% 0%, rgba(16, 185, 129, 0.28), transparent 65%),
    radial-gradient(50% 85% at 95% 5%, rgba(99, 102, 241, 0.2), transparent 62%),
    radial-gradient(55% 75% at 60% 100%, rgba(20, 184, 166, 0.17), transparent 70%),
    linear-gradient(160deg, #e6fbee 0%, #e9f5fd 55%, #f2effd 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
  mask-image: linear-gradient(180deg, #000 78%, transparent);
  pointer-events: none;
}
.eb-hero h1 { margin: 0 0 14px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.eb-hero__bench { padding: 0 0.04em; margin: 0 -0.04em; background: linear-gradient(180deg, transparent 60%, #d1fae5 60%, #d1fae5 92%, transparent 92%); }
.eb-hero__lede { margin: 0; font-size: 17.5px; line-height: 1.6; color: var(--eb-ink-3); text-wrap: pretty; }
.eb-hero__lede em { font-style: normal; font-weight: 650; color: var(--eb-ink); }
.eb-more-btn { display: inline-flex; align-items: center; gap: 4px; height: 26px; margin-left: 10px; padding: 0 9px 0 11px; vertical-align: 1px; border: 1px solid rgba(16, 185, 129, 0.35); border-radius: 999px; background: var(--eb-beat-bg); color: var(--eb-beat); font-size: 13px; font-weight: 650; line-height: 1; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.eb-more-btn:hover { background: #d1fae5; border-color: rgba(16, 185, 129, 0.6); }
.eb-more-btn:focus-visible { outline: 2px solid var(--eb-beat-solid); outline-offset: 2px; }
.eb-more-btn svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.eb-more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.eb-hero__benefits { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; color: var(--eb-ink-2); }
.eb-hero__benefits[hidden] { display: none; }
.eb-hero__benefits li { position: relative; padding-left: 26px; }
.eb-hero__benefits li::before { content: ''; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--eb-beat-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5' fill='none' stroke='%23059669' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.eb-hero__benefits strong { color: var(--eb-ink); font-weight: 650; }
.eb-key { font-weight: 600; padding: 1px 7px; border-radius: 6px; }
.eb-key.is-beat { color: var(--eb-beat); background: var(--eb-beat-bg); }
.eb-key.is-miss { color: var(--eb-miss); background: var(--eb-miss-bg); }

/* ── Filter panel ─────────────────────────────────────── */
.eb-panel { position: relative; z-index: 20; background: var(--eb-surface); border-radius: var(--eb-radius-lg); box-shadow: 0 1px 2px rgba(9, 9, 11, 0.04), 0 12px 32px -12px rgba(6, 78, 59, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.8); padding: 22px 24px 18px; }
.eb-toolbar { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(220px, 1.3fr) minmax(300px, 1.6fr) minmax(110px, 0.5fr); gap: 20px 24px; align-items: start; }
.eb-field { display: grid; gap: 8px; min-width: 0; }
.eb-field__label { font-size: 12px; font-weight: 550; color: var(--eb-ink-3); }
.eb-universe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 18px; }
.eb-universe__count { font-size: 12.5px; color: var(--eb-ink-4); font-variant-numeric: tabular-nums; }
.eb-universe__count strong { font-weight: 650; color: var(--eb-ink-3); }
.eb-segment { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--eb-na-bg); }
.eb-segment button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: none; font-size: 13px; font-weight: 600; color: var(--eb-ink-3); }
.eb-segment button:hover { color: var(--eb-ink); }
.eb-segment button.is-on { background: var(--eb-surface); color: var(--eb-ink); box-shadow: var(--eb-shadow-sm); }
.eb-lock { display: none; width: 11px; height: 11px; color: var(--eb-ink-4); }
.eb-segment button.is-locked .eb-lock { display: inline; }
.eb-upsell { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 12px 14px 12px 16px; border-radius: var(--eb-radius); background: var(--eb-accent-soft); color: var(--eb-ink-2); font-size: 13.5px; }
.eb-upsell[hidden] { display: none; }
.eb-upsell p { margin: 0; }
.eb-upsell__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.eb-upsell__btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--eb-surface); box-shadow: var(--eb-shadow-sm); font-size: 13px; font-weight: 600; color: var(--eb-ink-2); text-decoration: none; }
.eb-upsell__btn--primary { background: var(--eb-accent); color: #fff; box-shadow: none; }
.eb-upsell__close { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--eb-ink-4); padding: 4px; }

.eb-join { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 12px 14px 12px 16px; border-radius: var(--eb-radius); background: var(--eb-beat-bg); box-shadow: 0 0 0 1px var(--eb-beat-ring); color: var(--eb-ink-2); font-size: 13.5px; }
.eb-join[hidden] { display: none; }
.eb-join__text { margin: 0; }
.eb-join__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.eb-join__btn { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--eb-beat); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.eb-join__btn:disabled { opacity: 0.7; cursor: default; }
.eb-join__later { border: 0; background: none; font: inherit; font-size: 13px; color: var(--eb-ink-3); cursor: pointer; padding: 4px 6px; }
@media (max-width: 640px) {
  .eb-join { flex-direction: column; align-items: stretch; }
  .eb-join__actions { justify-content: flex-end; }
}
@media (max-width: 640px) {
  .eb-upsell { flex-direction: column; align-items: flex-start; }
}
.eb-divider { height: 1px; background: var(--eb-line-soft); margin: 20px 0 18px; }

.eb-quick { display: flex; gap: 4px; margin-top: -1px; }
.eb-quick button { border: 0; background: none; padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 550; color: var(--eb-ink-3); }
.eb-quick button:hover { background: var(--eb-na-bg); color: var(--eb-ink); }
.eb-error { margin: 0; font-size: 12.5px; color: var(--eb-miss); }
.eb-error[hidden] { display: none; }

/* Trigger buttons + inputs share one look */
.eb-menu, .eb-combo { position: relative; }
.eb-menu__trigger, .eb-combo__field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--eb-radius);
  background: var(--eb-surface);
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.05), inset 0 0 0 1px var(--eb-line);
  text-align: left;
  font-weight: 500;
  transition: box-shadow 0.15s ease;
}
.eb-menu__trigger:hover, .eb-combo__field:hover { box-shadow: 0 1px 2px rgba(9, 9, 11, 0.05), inset 0 0 0 1px #d4d4d8; }
.eb-menu.is-open .eb-menu__trigger, .eb-combo__field:focus-within { box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14), inset 0 0 0 1px var(--eb-accent); outline: none; }
.eb-menu__trigger:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14), inset 0 0 0 1px var(--eb-accent); }
.eb-menu__value { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-menu__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-right: 4px; padding: 0 6px; border-radius: 6px; background: var(--eb-ink); color: #fff; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.eb-chevron { flex: none; width: 16px; height: 16px; color: var(--eb-ink-3); transition: transform 0.15s ease; }
.eb-menu.is-open .eb-chevron { transform: rotate(180deg); }

.eb-combo__field { cursor: text; }
.eb-search-icon { flex: none; width: 15px; height: 15px; color: var(--eb-ink-4); }
.eb-combo__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-weight: 600; letter-spacing: 0.01em; text-transform: uppercase; }
.eb-combo__input::placeholder { text-transform: none; font-weight: 400; color: var(--eb-ink-4); letter-spacing: 0; }

/* Popover panels */
.eb-menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 100%;
  max-height: 320px;
  overflow-y: auto;
  padding: 5px;
  border-radius: 12px;
  background: var(--eb-surface);
  box-shadow: var(--eb-shadow-pop);
  animation: eb-pop 0.12s ease-out;
}
.eb-menu__panel[hidden] { display: none; }
@keyframes eb-pop { from { opacity: 0; transform: translateY(-4px) scale(0.985); } to { opacity: 1; transform: none; } }
.eb-menu__option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px; border-radius: 7px; white-space: nowrap; cursor: pointer; }
.eb-menu__option:hover, .eb-menu__option.is-active { background: var(--eb-na-bg); }
.eb-check { flex: none; width: 15px; height: 15px; color: var(--eb-accent); visibility: hidden; }
.eb-menu__label { flex: 1; }
.eb-menu__hint { font-size: 12px; font-weight: 500; color: var(--eb-ink-3); font-variant-numeric: tabular-nums; }
.eb-size { width: 168px; }
.eb-size .eb-menu__trigger { height: 34px; }
.eb-menu__option.is-selected { font-weight: 600; }
.eb-menu__option.is-selected .eb-check { visibility: visible; }

.eb-periods { width: 340px; max-height: none; padding: 14px; }
.eb-periods__hint { margin: 0 0 12px; font-size: 12.5px; color: var(--eb-ink-3); line-height: 1.5; }
.eb-periods__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.eb-period { height: 32px; border: 0; border-radius: 8px; background: var(--eb-na-bg); font-size: 12.5px; font-weight: 600; color: var(--eb-ink-2); font-variant-numeric: tabular-nums; transition: background 0.12s ease; }
.eb-period:hover { background: #e9e9ec; }
.eb-period.is-on { background: var(--eb-ink); color: #fff; }
.eb-period.is-locked { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--eb-ink-4); background: transparent; box-shadow: inset 0 0 0 1px var(--eb-na-bg); }
.eb-period.is-locked:hover { background: var(--eb-accent-soft); }
.eb-period.is-locked .eb-lock { display: inline; width: 10px; height: 10px; }
.eb-periods__min { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--eb-line-soft); }
.eb-periods__min[hidden] { display: none; }
.eb-periods__min-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; font-weight: 550; color: var(--eb-ink-2); }
.eb-periods__min-head span { font-size: 14.5px; font-weight: 650; color: var(--eb-ink); }
.eb-periods__min-head strong { font-weight: 700; color: var(--eb-ink); font-variant-numeric: tabular-nums; }
.eb-periods__min-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--eb-ink-4); }
.eb-range { --fill: 50%; display: block; width: 100%; height: 22px; margin: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.eb-range:disabled { cursor: default; opacity: 0.5; }
.eb-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--eb-ink) var(--fill), #e4e4e7 var(--fill)); }
.eb-range::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--eb-ink) var(--fill), #e4e4e7 var(--fill)); }
.eb-range::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -7px; border: 2px solid var(--eb-ink); border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(9, 9, 11, 0.25); -webkit-appearance: none; appearance: none; }
.eb-range::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--eb-ink); border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(9, 9, 11, 0.25); }
.eb-periods__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--eb-line-soft); }

.eb-combo__panel { min-width: 380px; max-height: 360px; }
.eb-combo__option { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.eb-combo__option.is-active { background: var(--eb-na-bg); }
.eb-combo__ticker { font-weight: 650; font-variant-numeric: tabular-nums; }
.eb-combo__name { color: var(--eb-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-combo__kind { font-size: 11px; font-weight: 600; color: var(--eb-ink-3); background: var(--eb-na-bg); padding: 2px 7px; border-radius: 6px; }
.eb-combo__option.is-active .eb-combo__kind { background: var(--eb-surface); }
.eb-combo__empty { padding: 12px 10px; color: var(--eb-ink-3); font-size: 13px; }

.eb-sort { display: flex; align-items: center; gap: 10px; }
.eb-sort > div { flex: 1.3; min-width: 0; }
.eb-sort__then { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.eb-sort__then[hidden] { display: none; }
.eb-sort__then > div { flex: 1; min-width: 0; }
.eb-sort__word { color: var(--eb-ink-4); font-size: 13px; }

/* Buttons */
.eb-text-btn { border: 0; background: none; padding: 6px 8px; margin: -6px -8px; border-radius: 7px; font-size: 13px; font-weight: 550; color: var(--eb-ink-3); }
.eb-text-btn:hover { color: var(--eb-ink); background: var(--eb-na-bg); }
.eb-primary-btn { border: 0; height: 32px; padding: 0 14px; border-radius: 8px; background: var(--eb-ink); color: #fff; font-size: 13px; font-weight: 600; }
.eb-primary-btn:hover { background: #27272a; }

/* Category tags */
.eb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.eb-tag { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--eb-surface); box-shadow: inset 0 0 0 1px var(--eb-line); font-size: 13px; font-weight: 500; color: var(--eb-ink-2); transition: background 0.12s ease, box-shadow 0.12s ease; }
.eb-tag[hidden] { display: none; }
.eb-tag:hover { box-shadow: inset 0 0 0 1px #d4d4d8; background: var(--eb-surface-2); }
.eb-tag__count { font-size: 11.5px; font-weight: 600; color: var(--eb-ink-4); font-variant-numeric: tabular-nums; }
.eb-tag.is-on { background: var(--eb-ink); color: #fff; box-shadow: none; }
.eb-tag.is-on .eb-tag__count { color: rgba(255, 255, 255, 0.6); }
.eb-tag--more { box-shadow: none; background: var(--eb-na-bg); color: var(--eb-ink-2); font-weight: 550; }
.eb-tag--more:hover { background: #e9e9ec; box-shadow: none; }
.eb-tags--sub { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--eb-line); gap: 5px; }
.eb-tags--sub[hidden] { display: none; }
.eb-tags--sub .eb-tag { height: 28px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
.eb-tags--sub .eb-tag__count { font-size: 11px; }

.eb-panel__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 18px; }
.eb-foot-group { display: flex; align-items: center; gap: 12px; }
.eb-reset { margin-left: auto; }
.eb-reset[hidden] { display: none; }

.eb-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--eb-ink-2); cursor: pointer; }
.eb-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.eb-switch__track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: #d4d4d8; transition: background 0.15s ease; }
.eb-switch__track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.15s ease; }
.eb-switch input:checked + .eb-switch__track { background: var(--eb-ink); }
.eb-switch input:checked + .eb-switch__track::after { transform: translateX(14px); }
.eb-switch input:focus-visible + .eb-switch__track { outline: 2px solid var(--eb-accent); outline-offset: 2px; }

/* ── Results ──────────────────────────────────────────── */
.eb-status { margin: 32px 0; color: var(--eb-ink-3); }
.eb-status.is-error { color: var(--eb-miss); }
.eb-results-head { display: flex; align-items: center; justify-content: space-between; margin: 36px 0 14px; }
.eb-summary { margin: 0; font-size: 15px; color: var(--eb-ink-3); }
.eb-summary strong { color: var(--eb-ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.eb-summary em { font-style: normal; color: var(--eb-ink); font-weight: 550; }
.eb-legend { display: flex; gap: 16px; margin: 0; font-size: 12.5px; color: var(--eb-ink-3); }
.eb-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.eb-legend__swatch { width: 12px; height: 12px; border-radius: 4px; }
.eb-legend__swatch.is-beat { background: var(--eb-beat-bg); box-shadow: inset 0 0 0 1.5px var(--eb-beat-solid); }
.eb-legend__swatch.is-miss { background: var(--eb-miss-bg); box-shadow: inset 0 0 0 1.5px #f43f5e; }
.eb-legend__swatch.is-na { background: var(--eb-na-bg); box-shadow: inset 0 0 0 1.5px #a1a1aa; }

.eb-list-head { display: none; }
body.is-ready .eb-list-head { display: grid; grid-template-columns: var(--eb-cols); align-items: center; gap: 18px; padding: 0 16px 10px; font-size: 12px; font-weight: 550; color: var(--eb-ink-4); }
.eb-list-head__periods { display: flex; align-items: center; gap: 10px; min-width: 0; }
.eb-list-head__sort { padding: 3px 9px; border-radius: 999px; background: var(--eb-accent-soft); color: var(--eb-accent); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-list { display: grid; gap: 8px; }
/* Desktop: floats in the space under the cells (the details column is taller), so it adds no height. */
.eb-card__hint { position: absolute; top: 100%; left: 2px; margin: 5px 0 0; font-size: 11px; line-height: 1.2; color: var(--eb-ink-4); white-space: nowrap; pointer-events: none; }
/* Matches the tooltip, which switches to tap on devices without hover. */
.eb-card__hint--tap { display: none; }
@media (hover: none) {
  .eb-card__hint--hover { display: none; }
  .eb-card__hint--tap { display: inline; }
}

.eb-card {
  display: grid;
  grid-template-columns: var(--eb-cols);
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--eb-radius-lg);
  background: var(--eb-surface);
  box-shadow: var(--eb-shadow-sm);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.eb-card:hover { box-shadow: var(--eb-shadow-md); transform: translateY(-1px); }
.eb-card--bench { margin-bottom: 14px; border: 1.5px dashed #60a5fa; background: #f5f9ff; box-shadow: none; }
.eb-card--bench:hover { transform: none; box-shadow: none; }
.eb-card--bench .eb-cell.is-bench { box-shadow: inset 0 0 0 1px #dbeafe; }
.eb-card--bench .eb-card__cells { border-top-color: #dbeafe; }
.eb-bench-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #2563eb; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.5); }
/* Desktop: next to the ticker (the score column is too narrow); phones: top right. */
.eb-bench-badge--title { height: 24px; padding: 0 10px; font-size: 12px; }
.eb-bench-badge--side { display: none; }

.eb-card__id { min-width: 0; }
.eb-card__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eb-card__ticker { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.eb-card__name { margin-top: 2px; font-size: 13.5px; color: var(--eb-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-card__meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; margin-top: 6px; font-size: 12px; color: var(--eb-ink-4); }
.eb-fact + .eb-fact::before { content: '·'; margin: 0 6px; color: var(--eb-ink-4); }

.eb-quotes { display: flex; flex-basis: 100%; gap: 4px; margin-top: 6px; opacity: 0.45; transition: opacity 0.15s ease; }
.eb-card:hover .eb-quotes, .eb-quotes:focus-within { opacity: 1; }
@media (hover: none) { .eb-quotes { opacity: 1; } }
.eb-quote { font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 6px; border-radius: 6px; color: var(--eb-ink-3); text-decoration: none; box-shadow: inset 0 0 0 1px var(--eb-line); }
.eb-quote:hover { color: var(--eb-accent); background: var(--eb-accent-soft); box-shadow: inset 0 0 0 1px transparent; }

.eb-badge { font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 6px; color: var(--eb-ink-2); background: var(--eb-na-bg); }
.eb-badge--path { line-height: 1.3; padding-top: 2px; padding-bottom: 2px; }
.eb-badge__sep { margin: 0 4px; color: var(--eb-ink-4); font-weight: 500; }
.eb-badge__sub { font-weight: 500; color: var(--eb-ink-3); }
.eb-badge--dark { color: #fff; background: var(--eb-ink); }
.eb-badge--warn { color: var(--eb-warn); background: var(--eb-warn-bg); }
.eb-badge--stock { color: var(--eb-accent); background: var(--eb-accent-soft); }

.eb-score { display: flex; align-items: baseline; gap: 1px; font-variant-numeric: tabular-nums; }
.eb-score strong { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.eb-score span { font-size: 14px; font-weight: 550; color: var(--eb-ink-4); }
.eb-score__note { margin-top: 5px; font-size: 11px; color: var(--eb-ink-4); }
.eb-pips { display: flex; gap: 3px; margin-top: 9px; }
.eb-pip { width: 8px; height: 8px; border-radius: 2.5px; background: #d4d4d8; }
.eb-pip.is-beat { background: var(--eb-beat-solid); }
.eb-pip.is-miss { background: #fda4af; }

/* Wraps onto another row instead of clipping when the periods don't fit. */
.eb-card__cells { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 5px; }
/* Value and multiple scale with the cell width (cqi), so few wide cells get big numbers. */
.eb-cell { position: relative; container-type: inline-size; display: grid; align-content: center; gap: 4px; min-height: 68px; padding: 19px 3px 8px; border-radius: 10px; text-align: center; background: var(--eb-na-bg); cursor: default; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.eb-cell[data-tip]:hover { transform: translateY(-1px); box-shadow: 0 0 0 1.5px var(--eb-ink-2); }
.eb-cell__label { position: absolute; top: 4px; left: 4px; padding: 1px 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.7); font-size: 10.5px; font-weight: 650; line-height: 1.35; letter-spacing: 0.03em; color: var(--eb-ink-3); }
/* Normal size is 19cqi (12–20px); long values shrink to fit the cell width (~0.62em per character). */
.eb-cell__value { --n: 6; font-family: var(--eb-font-num); font-size: clamp(9px, min(max(12px, 19cqi), (100cqi - 6px) / (var(--n) * 0.62)), 20px); font-weight: 700; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.eb-cell.is-beat { background: var(--eb-beat-bg); box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.14); }
.eb-cell.is-beat .eb-cell__value { color: var(--eb-beat); }
.eb-cell.is-beat .eb-cell__label { color: #047857; opacity: 0.8; }
.eb-cell.is-miss { background: var(--eb-miss-bg); box-shadow: inset 0 0 0 1px rgba(225, 29, 72, 0.1); }
.eb-cell.is-miss .eb-cell__value { color: var(--eb-miss); }
.eb-cell.is-miss .eb-cell__label { color: #be123c; opacity: 0.8; }
.eb-cell.is-na .eb-cell__value { color: var(--eb-ink-3); font-weight: 500; }
.eb-cell__mult { justify-self: center; padding: 1px 8px; font-family: var(--eb-font-num); border-radius: 999px; background: rgba(255, 255, 255, 0.75); font-size: clamp(12px, 15cqi, 16px); font-weight: 700; line-height: 1.45; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eb-cell.is-beat .eb-cell__mult { color: var(--eb-beat); box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.18); }
.eb-cell.is-bench .eb-cell__mult { color: var(--eb-ink-3); background: var(--eb-na-bg); }
.eb-cell.is-miss .eb-cell__mult { color: var(--eb-miss); box-shadow: inset 0 0 0 1px rgba(225, 29, 72, 0.14); }
.eb-card__score[data-tip], .eb-card__spark[data-tip], .eb-badge[data-tip] { cursor: default; }
.eb-cell.is-bench { background: var(--eb-surface); box-shadow: inset 0 0 0 1px var(--eb-line); }

.eb-card__spark { height: 44px; }
.eb-spark { display: block; width: 100%; height: 44px; overflow: visible; }
.eb-spark__line { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.eb-spark__area { stroke: none; opacity: 0.1; }
.eb-spark.is-up .eb-spark__line { stroke: var(--eb-beat-solid); }
.eb-spark.is-up .eb-spark__area { fill: var(--eb-beat-solid); }
.eb-spark.is-down .eb-spark__line { stroke: #f43f5e; }
.eb-spark.is-down .eb-spark__area { fill: #f43f5e; }
.eb-spark__bench { fill: none; stroke: var(--eb-ink-3); stroke-width: 1.2; stroke-dasharray: 2.5 3; vector-effect: non-scaling-stroke; }
.eb-card--bench .eb-spark .eb-spark__line { stroke: #2563eb; }
.eb-card--bench .eb-spark .eb-spark__area { fill: #2563eb; opacity: 0.08; }

.eb-more { display: block; margin: 22px auto 0; height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--eb-surface); box-shadow: var(--eb-shadow-sm); font-size: 13.5px; font-weight: 600; color: var(--eb-ink-2); transition: box-shadow 0.15s ease; }
.eb-more[hidden] { display: none; }
.eb-more:hover { box-shadow: var(--eb-shadow-md); color: var(--eb-ink); }

/* ── Tooltip ──────────────────────────────────────────── */
.eb-tip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 292px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #18181b;
  color: #fafafa;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 16px 40px -12px rgba(9, 9, 11, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  pointer-events: none;
  will-change: transform;
}
.eb-tip[hidden] { display: none; }
.eb-tip__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-weight: 600; font-size: 13.5px; }
.eb-tip__period { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); color: #d4d4d8; }
.eb-tip__rows { display: grid; gap: 5px; }
.eb-tip__row { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 8px; }
.eb-tip__name { font-weight: 600; color: #e4e4e7; }
.eb-tip__num { font-weight: 650; font-variant-numeric: tabular-nums; }
.eb-tip__swatch { width: 14px; height: 0; border-top: 2px solid; }
.eb-tip__swatch--main.is-up { border-color: #34d399; }
.eb-tip__swatch--main.is-down { border-color: #fb7185; }
.eb-tip__swatch--bench { border-top: 2px dashed #a1a1aa; }
.eb-tip__chart { margin: 12px 0 10px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.eb-tip__spark { display: block; width: 100%; height: 84px; overflow: visible; }
.eb-tip__spark--loading { background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.1), rgba(255,255,255,0.04)); background-size: 200% 100%; border-radius: 8px; animation: eb-shimmer 1s linear infinite; }
.eb-tip__spark--empty { height: 84px; }
@keyframes eb-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.eb-tip__spark .eb-spark__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.eb-tip__spark .eb-spark__area { opacity: 0.16; }
.eb-tip__spark.is-up .eb-spark__line { stroke: #34d399; }
.eb-tip__spark.is-up .eb-spark__area { fill: #34d399; }
.eb-tip__spark.is-down .eb-spark__line { stroke: #fb7185; }
.eb-tip__spark.is-down .eb-spark__area { fill: #fb7185; }
.eb-tip__spark .eb-spark__bench { stroke: #a1a1aa; stroke-width: 1.5; stroke-dasharray: 3 3; }
.eb-tip__sub { margin: 0; color: #d4d4d8; font-size: 12.5px; }
.eb-tip__sub strong { color: #fff; font-weight: 650; }
.eb-tip__text { margin: 0 0 6px; color: #e4e4e7; }
.eb-tip__verdict { display: inline-flex; margin-top: 10px; padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 650; }
.eb-tip__verdict.is-beat { background: rgba(52, 211, 153, 0.16); color: #6ee7b7; }
.eb-tip__verdict.is-miss { background: rgba(251, 113, 133, 0.16); color: #fda4af; }
.eb-tip__list { display: grid; grid-template-columns: 10px 62px 1fr; align-items: baseline; gap: 8px; margin-top: 4px; color: #e4e4e7; }
.eb-tip__list-label { color: #a1a1aa; font-weight: 500; }
.eb-tip__dot { width: 8px; height: 8px; border-radius: 2.5px; align-self: center; }
.eb-tip__dot.is-beat { background: #34d399; }
.eb-tip__dot.is-miss { background: #fb7185; }
.eb-tip__dot.is-na { background: #52525b; }

.eb-footer { margin-top: 64px; padding: 28px 0 48px; border-top: 1px solid var(--eb-line); font-size: 12.5px; color: var(--eb-ink-3); }
.eb-footer p { margin: 3px 0; }
.eb-footer a { color: var(--eb-ink-3); }
.eb-footer p.eb-footer__mission { margin-bottom: 12px; color: var(--eb-ink-2); }
.eb-footer p.eb-footer__mission a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ── Content pages (Benefits, Roadmap) ────────────────── */
.eb-page__hero { padding: 64px 0 40px; }
.eb-page__hero h1 { margin: 0 0 16px; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; }
.eb-page__kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--eb-beat); }
.eb-cta { display: inline-flex; align-items: center; height: 44px; margin-top: 26px; padding: 0 20px; border-radius: 999px; background: var(--eb-ink); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px -6px rgba(9, 9, 11, 0.45); transition: transform 0.15s ease; }
.eb-cta:hover { transform: translateY(-1px); }

.eb-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.eb-benefit { padding: 26px 28px; border-radius: var(--eb-radius-lg); background: var(--eb-surface); box-shadow: var(--eb-shadow-sm); }
.eb-benefit h2 { margin: 0 0 10px; font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.eb-benefit p { margin: 0; color: var(--eb-ink-3); font-size: 15px; line-height: 1.65; }

.eb-features { margin-top: 56px; padding: 36px; border-radius: var(--eb-radius-lg); background: var(--eb-surface); box-shadow: var(--eb-shadow-sm); }
.eb-features h2 { margin: 0 0 18px; font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.eb-features ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 48px; }
.eb-features li { position: relative; break-inside: avoid; padding: 7px 0 7px 24px; font-size: 15px; line-height: 1.5; color: var(--eb-ink-2); }
.eb-features li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 8px; height: 5px; border-left: 2px solid var(--eb-beat-solid); border-bottom: 2px solid var(--eb-beat-solid); transform: rotate(-45deg); }

.eb-steps { margin-top: 56px; padding: 36px; border-radius: var(--eb-radius-lg); background: var(--eb-surface); box-shadow: var(--eb-shadow-sm); }
.eb-steps h2, .eb-roadmap h2, .eb-changelog h2 { margin: 0 0 18px; font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.eb-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.eb-steps li { counter-increment: step; position: relative; min-height: 28px; padding: 3px 0 0 44px; font-size: 15px; line-height: 1.55; color: var(--eb-ink-3); }
.eb-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--eb-ink); color: #fff; font-size: 13px; font-weight: 650; }
.eb-steps li strong { color: var(--eb-ink); font-weight: 600; }

.eb-road-list { margin: 0; padding: 0; list-style: none; border-radius: var(--eb-radius-lg); background: var(--eb-surface); box-shadow: var(--eb-shadow-sm); }
.eb-road-list li { position: relative; padding: 18px 28px 18px 50px; }
.eb-road-list li + li { border-top: 1px solid var(--eb-na-bg); }
.eb-road-list li::before { content: ''; position: absolute; left: 28px; top: 25px; width: 8px; height: 8px; border-radius: 50%; background: var(--eb-beat-solid); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
.eb-road-list h3 { margin: 0 0 4px; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.eb-road-list p { margin: 0; font-size: 14px; color: var(--eb-ink-3); line-height: 1.55; }

.eb-changelog { margin-top: 56px; }
.eb-change { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 26px 28px; border-radius: var(--eb-radius-lg); background: var(--eb-surface); box-shadow: var(--eb-shadow-sm); }
.eb-change time { font-size: 13px; font-weight: 600; color: var(--eb-ink-3); padding-top: 2px; }
.eb-change h3 { margin: 0 0 10px; font-size: 16.5px; font-weight: 650; }
.eb-change ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--eb-ink-3); font-size: 14.5px; line-height: 1.55; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1180px) {
  .eb-toolbar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .eb-wrap { padding: 0 12px; }
  .eb-plans .eb-plan--beta, .eb-plans .eb-plan--internal { display: none; }
  .eb-navmenu__plans:not([hidden]) { display: flex; gap: 6px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--eb-line-soft); }
  .eb-header__inner { height: 64px; }
  .eb-brand__mark { width: 34px; height: 34px; border-radius: 10px; }
  .eb-brand__mark svg { width: 20px; height: 20px; }
  .eb-brand__word { font-size: 20px; }
  .eb-live { display: none; }
  .eb-legend { display: none; }
  .eb-benefits { grid-template-columns: 1fr; }
  .eb-features { padding: 24px; }
  .eb-features ul { columns: 1; }
  .eb-change { grid-template-columns: 1fr; gap: 8px; }
  .eb-steps { padding: 24px; }
  .eb-hero { --eb-band-top: 64px; --eb-band-under: 64px; padding: 24px 2px 20px; }
  .eb-hero h1 { margin-bottom: 10px; font-size: 25px; line-height: 1.2; letter-spacing: -0.03em; }
  .eb-hero__lede { font-size: 14.5px; line-height: 1.6; }
  .eb-hero__lede em { font-weight: 600; color: var(--eb-ink-2); }
  .eb-more-btn { height: 23px; margin-left: 8px; padding: 0 7px 0 9px; font-size: 12px; vertical-align: 1px; }
  .eb-more-btn svg { width: 12px; height: 12px; }
  .eb-hero__benefits { gap: 10px; margin-top: 14px; font-size: 13.5px; line-height: 1.55; }
  .eb-hero__benefits li { padding-left: 24px; }
  .eb-hero__benefits li::before { top: 2px; width: 16px; height: 16px; background-size: 12px; }

  /* Summary bar sticks under the header; Configure opens the panel full screen. */
  .eb-mbar { position: sticky; top: 72px; z-index: 25; display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 7px 7px 7px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); box-shadow: 0 1px 2px rgba(9, 9, 11, 0.05), 0 10px 28px -12px rgba(6, 78, 59, 0.22), inset 0 0 0 1px rgba(9, 9, 11, 0.04); }
  .eb-mbar__summary { flex: 1; min-width: 0; margin: 0; font-size: 12.5px; color: var(--eb-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .eb-mbar__summary strong { color: var(--eb-ink); font-weight: 650; }
  .eb-mbar__btn { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--eb-ink); color: #fff; font-size: 13.5px; font-weight: 600; }
  .eb-mbar__btn svg { width: 15px; height: 15px; }

  .eb-panel { display: none; }
  body.is-configuring { overflow: hidden; }
  body.is-configuring .eb-panel { position: fixed; inset: 0; z-index: 60; display: block; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px; border-radius: 0; box-shadow: none; animation: eb-pop 0.14s ease-out; }
  .eb-panel__mhead { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; margin: 0 -16px 14px; padding: 12px 16px; background: var(--eb-surface); border-bottom: 1px solid var(--eb-line-soft); }
  .eb-panel__mhead h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
  .eb-panel__mclose { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--eb-na-bg); font-size: 22px; line-height: 1; color: var(--eb-ink-2); }
  .eb-panel__mfoot { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; margin: 20px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--eb-surface); border-top: 1px solid var(--eb-line-soft); }
  .eb-panel__mbtn { flex: 1; height: 44px; border: 0; border-radius: 12px; background: var(--eb-na-bg); font-size: 15px; font-weight: 600; color: var(--eb-ink-2); }
  .eb-panel__mbtn--primary { flex: 2; background: var(--eb-ink); color: #fff; }
  .eb-toolbar { grid-template-columns: 1fr; gap: 16px; }
  .eb-sort { flex-wrap: wrap; }
  .eb-combo__panel { min-width: 100%; }
  .eb-periods { width: 100%; }
  .eb-reset { margin-left: 0; }

  .eb-results-head { margin-bottom: 8px; }
  .eb-summary { font-size: 13px; }
  body.is-ready .eb-list-head { display: none; }
  .eb-list { gap: 10px; }

  /* Header (details left; score over chart right), a hairline, then evenly split period rows. */
  .eb-card { grid-template-columns: minmax(0, 1fr) 92px; grid-template-rows: auto 1fr auto; grid-template-areas: 'id score' 'id spark' 'cells cells'; gap: 0 16px; padding: 14px 14px 12px; border-radius: 16px; }
  .eb-card:hover { transform: none; }
  .eb-card--bench { margin-bottom: 12px; }
  .eb-card__id { grid-area: id; align-self: start; }
  .eb-card__title { gap: 6px; }
  .eb-card__ticker { font-size: 17px; letter-spacing: -0.02em; }
  .eb-badge { padding: 3px 6px; font-size: 10.5px; }
  .eb-card__name { margin-top: 4px; font-size: 13px; }
  .eb-card__meta { margin-top: 4px; font-size: 11.5px; }
  .eb-quotes { gap: 12px; margin-top: 4px; opacity: 1; }
  .eb-quote { padding: 0; box-shadow: none; font-size: 11.5px; font-weight: 550; color: var(--eb-ink-3); text-decoration: underline; text-decoration-color: var(--eb-line); text-underline-offset: 3px; }
  .eb-quote:hover { background: none; box-shadow: none; }
  .eb-card__score { grid-area: score; display: flex; flex-direction: column; align-items: flex-end; }
  .eb-bench-badge--title { display: none; }
  .eb-bench-badge--side { display: inline-flex; }
  .eb-score strong { font-size: 24px; }
  .eb-score span { font-size: 13px; }
  .eb-score__note { margin-top: 2px; font-size: 10.5px; }
  .eb-pips { display: none; }
  .eb-card__spark { grid-area: spark; display: block; align-self: end; height: 30px; margin-top: 8px; }
  .eb-spark { height: 30px; }

  .eb-card__cells { grid-area: cells; grid-template-columns: repeat(var(--cols-md, 6), minmax(0, 1fr)); gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--eb-line-soft); }
  .eb-cell { min-height: 58px; gap: 3px; padding: 20px 4px 8px; border-radius: 10px; }
  .eb-cell__label { top: 5px; left: 6px; padding: 0; background: none; font-size: 10px; letter-spacing: 0.04em; }
  .eb-cell__value { font-size: clamp(9px, min(max(13px, 21cqi), (100cqi - 8px) / (var(--n) * 0.62)), 17px); }
  .eb-card .eb-cell .eb-cell__mult { padding: 0; background: none; box-shadow: none; font-size: 11.5px; font-weight: 600; opacity: 0.7; }
  .eb-card__hint { position: static; grid-column: 1 / -1; margin: 2px 0 0; white-space: normal; }
}

@media (max-width: 520px) {
  .eb-brand { gap: 8px; }
  .eb-brand__mark { width: 30px; height: 30px; border-radius: 9px; }
  .eb-brand__mark svg { width: 18px; height: 18px; }
  .eb-brand__word { font-size: 18px; }
  .eb-nav { gap: 6px; }
  .eb-upgrade { display: none; }
  .eb-navmenu__panel .eb-navmenu__upgrade:not([hidden]) { display: block; }
  .eb-navmenu__trigger { justify-content: center; width: 34px; height: 34px; padding: 0; }
  .eb-navmenu__label, .eb-navmenu__trigger .eb-chevron { display: none; }
  .eb-navmenu__burger { display: block; width: 17px; height: 17px; }
  .eb-card__cells { grid-template-columns: repeat(var(--cols-sm, 4), minmax(0, 1fr)); }
}
